From de74968b623d5a3687a9095b0ea8924eebd9542c Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 7 Jun 2024 18:55:36 +0000 Subject: [PATCH 1/2] feat: A new method_signature `parent` is added to method `ListOperations` in service `ClusterManager` PiperOrigin-RevId: 641218734 Source-Link: https://github.com/googleapis/googleapis/commit/067ac21d1eaab8692cec9d102c02acd2991abc91 Source-Link: https://github.com/googleapis/googleapis-gen/commit/2b38d68cfd75735df69d604d084d9691d20f203b Copy-Tag: eyJwIjoiQ29udGFpbmVyLy5Pd2xCb3QueWFtbCIsImgiOiIyYjM4ZDY4Y2ZkNzU3MzVkZjY5ZDYwNGQwODRkOTY5MWQyMGYyMDNiIn0= --- .../Google/Container/V1/ClusterService.php | Bin 0 -> 52735 bytes .../Cloud/Container/V1/AcceleratorConfig.php | 235 ++ .../V1/AdditionalNodeNetworkConfig.php | 102 + .../V1/AdditionalPodNetworkConfig.php | 150 + .../V1/AdditionalPodRangesConfig.php | 102 + .../Cloud/Container/V1/AddonsConfig.php | 613 ++++ .../AdvancedDatapathObservabilityConfig.php | 146 + .../RelayMode.php | 71 + .../Container/V1/AdvancedMachineFeatures.php | 85 + .../V1/AuthenticatorGroupsConfig.php | 109 + .../Cloud/Container/V1/AutoUpgradeOptions.php | 114 + .../Google/Cloud/Container/V1/Autopilot.php | 111 + .../V1/AutopilotCompatibilityIssue.php | 248 ++ .../AutopilotCompatibilityIssue/IssueType.php | 75 + .../V1/AutoprovisioningNodePoolDefaults.php | 537 +++ .../Container/V1/BestEffortProvisioning.php | 117 + .../Container/V1/BinaryAuthorization.php | 118 + .../V1/BinaryAuthorization/EvaluationMode.php | 66 + .../Cloud/Container/V1/BlueGreenSettings.php | 123 + .../StandardRolloutPolicy.php | 158 + .../Container/V1/CancelOperationRequest.php | 249 ++ .../V1/CheckAutopilotCompatibilityRequest.php | 72 + .../CheckAutopilotCompatibilityResponse.php | 101 + .../Container/V1/ClientCertificateConfig.php | 67 + .../Cloud/Container/V1/CloudRunConfig.php | 101 + .../V1/CloudRunConfig/LoadBalancerType.php | 64 + .../src/Google/Cloud/Container/V1/Cluster.php | 3164 +++++++++++++++++ .../Cloud/Container/V1/Cluster/Status.php | 97 + .../Cloud/Container/V1/ClusterAutoscaling.php | 232 ++ .../ClusterAutoscaling/AutoscalingProfile.php | 64 + .../Cloud/Container/V1/ClusterUpdate.php | 2473 +++++++++++++ .../V1/CompleteIPRotationRequest.php | 249 ++ .../V1/CompleteNodePoolUpgradeRequest.php | 76 + .../Cloud/Container/V1/ConfidentialNodes.php | 68 + .../Container/V1/ConfigConnectorConfig.php | 67 + .../Container/V1/CostManagementConfig.php | 67 + .../Container/V1/CreateClusterRequest.php | 257 ++ .../Container/V1/CreateNodePoolRequest.php | 302 ++ .../Google/Cloud/Container/V1/DNSConfig.php | 135 + .../Cloud/Container/V1/DNSConfig/DNSScope.php | 64 + .../Cloud/Container/V1/DNSConfig/Provider.php | 71 + .../Container/V1/DailyMaintenanceWindow.php | 121 + .../Cloud/Container/V1/DatabaseEncryption.php | 229 ++ .../V1/DatabaseEncryption/CurrentState.php | 95 + .../V1/DatabaseEncryption/OperationError.php | 149 + .../Container/V1/DatabaseEncryption/State.php | 65 + .../Cloud/Container/V1/DatapathProvider.php | 65 + .../Cloud/Container/V1/DefaultSnatStatus.php | 68 + .../Container/V1/DeleteClusterRequest.php | 249 ++ .../Container/V1/DeleteNodePoolRequest.php | 300 ++ .../Cloud/Container/V1/DnsCacheConfig.php | 67 + .../Cloud/Container/V1/EnterpriseConfig.php | 71 + .../V1/EnterpriseConfig/ClusterTier.php | 64 + .../V1/EphemeralStorageLocalSsdConfig.php | 132 + .../Google/Cloud/Container/V1/FastSocket.php | 67 + .../src/Google/Cloud/Container/V1/Fleet.php | 155 + .../V1/GPUDriverInstallationConfig.php | 78 + .../GPUDriverVersion.php | 75 + .../Cloud/Container/V1/GPUSharingConfig.php | 112 + .../GPUSharingConfig/GPUSharingStrategy.php | 57 + .../Cloud/Container/V1/GatewayAPIConfig.php | 67 + .../Container/V1/GatewayAPIConfig/Channel.php | 72 + .../V1/GcePersistentDiskCsiDriverConfig.php | 67 + .../Google/Cloud/Container/V1/GcfsConfig.php | 68 + .../V1/GcpFilestoreCsiDriverConfig.php | 67 + .../Container/V1/GcsFuseCsiDriverConfig.php | 67 + .../Cloud/Container/V1/GetClusterRequest.php | 249 ++ .../Container/V1/GetJSONWebKeysRequest.php | 74 + .../Container/V1/GetJSONWebKeysResponse.php | 71 + .../Cloud/Container/V1/GetNodePoolRequest.php | 300 ++ .../Container/V1/GetOpenIDConfigRequest.php | 72 + .../Container/V1/GetOpenIDConfigResponse.php | 272 ++ .../Container/V1/GetOperationRequest.php | 249 ++ .../Container/V1/GetServerConfigRequest.php | 203 ++ .../Container/V1/GkeBackupAgentConfig.php | 67 + .../Container/V1/HorizontalPodAutoscaling.php | 77 + .../Cloud/Container/V1/HttpLoadBalancing.php | 76 + .../Container/V1/ILBSubsettingConfig.php | 68 + .../Cloud/Container/V1/IPAllocationPolicy.php | 1040 ++++++ .../Cloud/Container/V1/IPv6AccessType.php | 61 + .../Container/V1/IdentityServiceConfig.php | 68 + .../V1/InTransitEncryptionConfig.php | 62 + .../V1/IntraNodeVisibilityConfig.php | 68 + .../src/Google/Cloud/Container/V1/Jwk.php | 339 ++ .../Cloud/Container/V1/K8sBetaAPIConfig.php | 67 + .../Container/V1/KubernetesDashboard.php | 67 + .../Google/Cloud/Container/V1/LegacyAbac.php | 80 + .../Cloud/Container/V1/LinuxNodeConfig.php | 153 + .../V1/LinuxNodeConfig/CgroupMode.php | 67 + .../Container/V1/ListClustersRequest.php | 208 ++ .../Container/V1/ListClustersResponse.php | 109 + .../Container/V1/ListNodePoolsRequest.php | 249 ++ .../Container/V1/ListNodePoolsResponse.php | 67 + .../Container/V1/ListOperationsRequest.php | 208 ++ .../Container/V1/ListOperationsResponse.php | 105 + .../V1/ListUsableSubnetworksRequest.php | 202 ++ .../V1/ListUsableSubnetworksResponse.php | 114 + .../Container/V1/LocalNvmeSsdBlockConfig.php | 124 + .../Container/V1/LoggingComponentConfig.php | 67 + .../V1/LoggingComponentConfig/Component.php | 85 + .../Cloud/Container/V1/LoggingConfig.php | 77 + .../Container/V1/LoggingVariantConfig.php | 67 + .../V1/LoggingVariantConfig/Variant.php | 68 + .../V1/MaintenanceExclusionOptions.php | 71 + .../V1/MaintenanceExclusionOptions/Scope.php | 69 + .../Cloud/Container/V1/MaintenancePolicy.php | 127 + .../Cloud/Container/V1/MaintenanceWindow.php | 152 + .../Container/V1/ManagedPrometheusConfig.php | 68 + .../Google/Cloud/Container/V1/MasterAuth.php | 331 ++ .../V1/MasterAuthorizedNetworksConfig.php | 152 + .../CidrBlock.php | 104 + .../Cloud/Container/V1/MaxPodsConstraint.php | 67 + .../Cloud/Container/V1/MeshCertificates.php | 140 + .../V1/MonitoringComponentConfig.php | 71 + .../MonitoringComponentConfig/Component.php | 120 + .../Cloud/Container/V1/MonitoringConfig.php | 169 + .../Cloud/Container/V1/NetworkConfig.php | 683 ++++ .../ClusterNetworkPerformanceConfig.php | 80 + .../ClusterNetworkPerformanceConfig/Tier.php | 57 + .../Cloud/Container/V1/NetworkPolicy.php | 102 + .../Container/V1/NetworkPolicy/Provider.php | 57 + .../Container/V1/NetworkPolicyConfig.php | 69 + .../Google/Cloud/Container/V1/NetworkTags.php | 68 + .../Google/Cloud/Container/V1/NodeConfig.php | 1869 ++++++++++ .../Cloud/Container/V1/NodeConfigDefaults.php | 121 + .../Cloud/Container/V1/NodeKubeletConfig.php | 348 ++ .../Google/Cloud/Container/V1/NodeLabels.php | 68 + .../Cloud/Container/V1/NodeManagement.php | 166 + .../Cloud/Container/V1/NodeNetworkConfig.php | 513 +++ .../NetworkPerformanceConfig.php | 80 + .../NetworkPerformanceConfig/Tier.php | 57 + .../Google/Cloud/Container/V1/NodePool.php | 953 +++++ .../Container/V1/NodePool/PlacementPolicy.php | 150 + .../V1/NodePool/PlacementPolicy/Type.php | 59 + .../V1/NodePool/QueuedProvisioning.php | 78 + .../Cloud/Container/V1/NodePool/Status.php | 99 + .../Container/V1/NodePool/UpdateInfo.php | 81 + .../V1/NodePool/UpdateInfo/BlueGreenInfo.php | 226 ++ .../UpdateInfo/BlueGreenInfo/Phase.php | 99 + .../Container/V1/NodePool/UpgradeSettings.php | 241 ++ .../Cloud/Container/V1/NodePoolAutoConfig.php | 138 + .../Container/V1/NodePoolAutoscaling.php | 304 ++ .../V1/NodePoolAutoscaling/LocationPolicy.php | 66 + .../Cloud/Container/V1/NodePoolDefaults.php | 77 + .../Container/V1/NodePoolLoggingConfig.php | 77 + .../Container/V1/NodePoolUpdateStrategy.php | 63 + .../Google/Cloud/Container/V1/NodeTaint.php | 139 + .../Cloud/Container/V1/NodeTaint/Effect.php | 71 + .../Google/Cloud/Container/V1/NodeTaints.php | 68 + .../Cloud/Container/V1/NotificationConfig.php | 77 + .../V1/NotificationConfig/EventType.php | 72 + .../V1/NotificationConfig/Filter.php | 73 + .../V1/NotificationConfig/PubSub.php | 160 + .../Google/Cloud/Container/V1/Operation.php | 672 ++++ .../Cloud/Container/V1/Operation/Status.php | 78 + .../Cloud/Container/V1/Operation/Type.php | 234 ++ .../Cloud/Container/V1/OperationProgress.php | 197 + .../Container/V1/OperationProgress/Metric.php | 178 + .../V1/PodCIDROverprovisionConfig.php | 72 + .../Container/V1/PrivateClusterConfig.php | 339 ++ ...PrivateClusterMasterGlobalAccessConfig.php | 67 + .../Container/V1/PrivateIPv6GoogleAccess.php | 69 + .../Google/Cloud/Container/V1/RangeInfo.php | 101 + .../Container/V1/RecurringTimeWindow.php | 211 ++ .../Cloud/Container/V1/ReleaseChannel.php | 71 + .../Container/V1/ReleaseChannel/Channel.php | 78 + .../Container/V1/ReservationAffinity.php | 149 + .../Container/V1/ReservationAffinity/Type.php | 72 + .../Cloud/Container/V1/ResourceLabels.php | 68 + .../Cloud/Container/V1/ResourceLimit.php | 136 + .../Container/V1/ResourceManagerTags.php | 84 + .../V1/ResourceUsageExportConfig.php | 159 + .../BigQueryDestination.php | 70 + .../ConsumptionMeteringConfig.php | 78 + .../V1/RollbackNodePoolUpgradeRequest.php | 340 ++ .../Cloud/Container/V1/SandboxConfig.php | 67 + .../Cloud/Container/V1/SandboxConfig/Type.php | 57 + .../Cloud/Container/V1/SecondaryBootDisk.php | 102 + .../Container/V1/SecondaryBootDisk/Mode.php | 59 + .../V1/SecondaryBootDiskUpdateStrategy.php | 34 + .../Container/V1/SecurityBulletinEvent.php | 406 +++ .../Container/V1/SecurityPostureConfig.php | 122 + .../V1/SecurityPostureConfig/Mode.php | 64 + .../VulnerabilityMode.php | 72 + .../Cloud/Container/V1/ServerConfig.php | 237 ++ .../V1/ServerConfig/ReleaseChannelConfig.php | 138 + .../Container/V1/ServiceExternalIPsConfig.php | 67 + .../Container/V1/SetAddonsConfigRequest.php | 303 ++ .../Cloud/Container/V1/SetLabelsRequest.php | 302 ++ .../Container/V1/SetLegacyAbacRequest.php | 288 ++ .../Container/V1/SetLocationsRequest.php | 319 ++ .../Container/V1/SetLoggingServiceRequest.php | 339 ++ .../V1/SetMaintenancePolicyRequest.php | 278 ++ .../Container/V1/SetMasterAuthRequest.php | 290 ++ .../V1/SetMasterAuthRequest/Action.php | 74 + .../V1/SetMonitoringServiceRequest.php | 339 ++ .../Container/V1/SetNetworkPolicyRequest.php | 297 ++ .../V1/SetNodePoolAutoscalingRequest.php | 303 ++ .../V1/SetNodePoolManagementRequest.php | 304 ++ .../Container/V1/SetNodePoolSizeRequest.php | 293 ++ .../Container/V1/ShieldedInstanceConfig.php | 129 + .../Cloud/Container/V1/ShieldedNodes.php | 67 + .../Cloud/Container/V1/SoleTenantConfig.php | 68 + .../V1/SoleTenantConfig/NodeAffinity.php | 140 + .../NodeAffinity/Operator.php | 65 + .../Google/Cloud/Container/V1/StackType.php | 61 + .../Container/V1/StartIPRotationRequest.php | 284 ++ .../Cloud/Container/V1/StatefulHAConfig.php | 67 + .../Cloud/Container/V1/StatusCondition.php | 145 + .../Container/V1/StatusCondition/Code.php | 95 + .../Google/Cloud/Container/V1/TimeWindow.php | 170 + .../Container/V1/UpdateClusterRequest.php | 297 ++ .../Container/V1/UpdateMasterRequest.php | 333 ++ .../Container/V1/UpdateNodePoolRequest.php | 1385 ++++++++ .../Container/V1/UpgradeAvailableEvent.php | 188 + .../Cloud/Container/V1/UpgradeEvent.php | 252 ++ .../Container/V1/UpgradeResourceType.php | 62 + .../Cloud/Container/V1/UsableSubnetwork.php | 224 ++ .../V1/UsableSubnetworkSecondaryRange.php | 139 + .../UsableSubnetworkSecondaryRange/Status.php | 83 + .../Container/V1/VerticalPodAutoscaling.php | 69 + .../Google/Cloud/Container/V1/VirtualNIC.php | 67 + .../Cloud/Container/V1/WindowsNodeConfig.php | 69 + .../V1/WindowsNodeConfig/OSVersion.php | 64 + .../Container/V1/WorkloadIdentityConfig.php | 68 + .../Container/V1/WorkloadMetadataConfig.php | 72 + .../V1/WorkloadMetadataConfig/Mode.php | 69 + .../Container/V1/WorkloadPolicyConfig.php | 78 + .../ClusterManagerClient/cancel_operation.php | 55 + .../check_autopilot_compatibility.php | 58 + .../complete_ip_rotation.php | 57 + .../complete_node_pool_upgrade.php | 56 + .../ClusterManagerClient/create_cluster.php | 73 + .../ClusterManagerClient/create_node_pool.php | 60 + .../ClusterManagerClient/delete_cluster.php | 65 + .../ClusterManagerClient/delete_node_pool.php | 57 + .../V1/ClusterManagerClient/get_cluster.php | 57 + .../get_json_web_keys.php | 58 + .../V1/ClusterManagerClient/get_node_pool.php | 57 + .../V1/ClusterManagerClient/get_operation.php | 57 + .../get_server_config.php | 57 + .../V1/ClusterManagerClient/list_clusters.php | 58 + .../ClusterManagerClient/list_node_pools.php | 57 + .../ClusterManagerClient/list_operations.php | 57 + .../list_usable_subnetworks.php | 62 + .../rollback_node_pool_upgrade.php | 58 + .../set_addons_config.php | 60 + .../V1/ClusterManagerClient/set_labels.php | 77 + .../ClusterManagerClient/set_legacy_abac.php | 70 + .../V1/ClusterManagerClient/set_locations.php | 80 + .../set_logging_service.php | 80 + .../set_maintenance_policy.php | 82 + .../ClusterManagerClient/set_master_auth.php | 76 + .../set_monitoring_service.php | 80 + .../set_network_policy.php | 60 + .../set_node_pool_autoscaling.php | 60 + .../set_node_pool_management.php | 60 + .../set_node_pool_size.php | 72 + .../start_ip_rotation.php | 57 + .../ClusterManagerClient/update_cluster.php | 60 + .../V1/ClusterManagerClient/update_master.php | 79 + .../ClusterManagerClient/update_node_pool.php | 85 + .../v1/src/V1/Client/ClusterManagerClient.php | 1205 +++++++ .../v1/src/V1/ClusterManagerClient.php | 34 + .../V1/Gapic/ClusterManagerGapicClient.php | 2968 ++++++++++++++++ .../Container/v1/src/V1/gapic_metadata.json | 188 + .../cluster_manager_client_config.json | 215 ++ .../cluster_manager_descriptor_config.php | 1005 ++++++ .../cluster_manager_rest_client_config.php | 1091 ++++++ .../V1/Client/ClusterManagerClientTest.php | 2644 ++++++++++++++ .../Unit/V1/ClusterManagerClientTest.php | 2476 +++++++++++++ 271 files changed, 56407 insertions(+) create mode 100644 owl-bot-staging/Container/v1/proto/src/GPBMetadata/Google/Container/V1/ClusterService.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AcceleratorConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdditionalNodeNetworkConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdditionalPodNetworkConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdditionalPodRangesConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AddonsConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdvancedDatapathObservabilityConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdvancedDatapathObservabilityConfig/RelayMode.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdvancedMachineFeatures.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AuthenticatorGroupsConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutoUpgradeOptions.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Autopilot.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutopilotCompatibilityIssue.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutopilotCompatibilityIssue/IssueType.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutoprovisioningNodePoolDefaults.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BestEffortProvisioning.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization/EvaluationMode.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings/StandardRolloutPolicy.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CancelOperationRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CheckAutopilotCompatibilityRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CheckAutopilotCompatibilityResponse.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClientCertificateConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CloudRunConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CloudRunConfig/LoadBalancerType.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Cluster.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Cluster/Status.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling/AutoscalingProfile.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterUpdate.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompleteIPRotationRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompleteNodePoolUpgradeRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfidentialNodes.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfigConnectorConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CostManagementConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateClusterRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateNodePoolRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/DNSScope.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/Provider.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DailyMaintenanceWindow.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption/CurrentState.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption/OperationError.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption/State.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatapathProvider.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DefaultSnatStatus.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DeleteClusterRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DeleteNodePoolRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DnsCacheConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EnterpriseConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EnterpriseConfig/ClusterTier.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EphemeralStorageLocalSsdConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/FastSocket.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Fleet.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUDriverInstallationConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUDriverInstallationConfig/GPUDriverVersion.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig/GPUSharingStrategy.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig/Channel.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcePersistentDiskCsiDriverConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcfsConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcpFilestoreCsiDriverConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcsFuseCsiDriverConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetClusterRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysResponse.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetNodePoolRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigResponse.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOperationRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetServerConfigRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GkeBackupAgentConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HorizontalPodAutoscaling.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HttpLoadBalancing.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ILBSubsettingConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPAllocationPolicy.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPv6AccessType.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IdentityServiceConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/InTransitEncryptionConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IntraNodeVisibilityConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Jwk.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/K8sBetaAPIConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/KubernetesDashboard.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LegacyAbac.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig/CgroupMode.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListClustersRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListClustersResponse.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsResponse.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsResponse.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksResponse.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LocalNvmeSsdBlockConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig/Component.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig/Variant.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceExclusionOptions.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceExclusionOptions/Scope.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenancePolicy.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceWindow.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ManagedPrometheusConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuth.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig/CidrBlock.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaxPodsConstraint.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MeshCertificates.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringComponentConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringComponentConfig/Component.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig/ClusterNetworkPerformanceConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig/ClusterNetworkPerformanceConfig/Tier.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicy.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicy/Provider.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicyConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkTags.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfigDefaults.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeKubeletConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeLabels.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeManagement.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig/Tier.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy/Type.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/QueuedProvisioning.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/Status.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo/Phase.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpgradeSettings.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling/LocationPolicy.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolDefaults.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolLoggingConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolUpdateStrategy.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaint.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaint/Effect.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaints.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/EventType.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/Filter.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/PubSub.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation/Status.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation/Type.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/OperationProgress.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/OperationProgress/Metric.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PodCIDROverprovisionConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateClusterConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateClusterMasterGlobalAccessConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateIPv6GoogleAccess.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RangeInfo.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RecurringTimeWindow.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReleaseChannel.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReleaseChannel/Channel.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReservationAffinity.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReservationAffinity/Type.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceLabels.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceLimit.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceManagerTags.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig/BigQueryDestination.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig/ConsumptionMeteringConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RollbackNodePoolUpgradeRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig/Type.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecondaryBootDisk.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecondaryBootDisk/Mode.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecondaryBootDiskUpdateStrategy.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityBulletinEvent.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityPostureConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityPostureConfig/Mode.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityPostureConfig/VulnerabilityMode.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig/ReleaseChannelConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServiceExternalIPsConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetAddonsConfigRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLabelsRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLegacyAbacRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLocationsRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLoggingServiceRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMaintenancePolicyRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest/Action.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMonitoringServiceRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNetworkPolicyRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolAutoscalingRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolManagementRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolSizeRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ShieldedInstanceConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ShieldedNodes.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SoleTenantConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SoleTenantConfig/NodeAffinity.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SoleTenantConfig/NodeAffinity/Operator.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StackType.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StartIPRotationRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatefulHAConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatusCondition.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatusCondition/Code.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/TimeWindow.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateClusterRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateMasterRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateNodePoolRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeAvailableEvent.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeEvent.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeResourceType.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetwork.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange/Status.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/VerticalPodAutoscaling.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/VirtualNIC.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig/OSVersion.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadIdentityConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadMetadataConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadMetadataConfig/Mode.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadPolicyConfig.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/cancel_operation.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/check_autopilot_compatibility.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_ip_rotation.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_node_pool_upgrade.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_cluster.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_node_pool.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_cluster.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_node_pool.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_cluster.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_json_web_keys.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_node_pool.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_operation.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_server_config.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_clusters.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_node_pools.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_operations.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_usable_subnetworks.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/rollback_node_pool_upgrade.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_addons_config.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_labels.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_legacy_abac.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_locations.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_logging_service.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_maintenance_policy.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_master_auth.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_monitoring_service.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_network_policy.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_autoscaling.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_management.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_size.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/start_ip_rotation.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_cluster.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_master.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_node_pool.php create mode 100644 owl-bot-staging/Container/v1/src/V1/Client/ClusterManagerClient.php create mode 100644 owl-bot-staging/Container/v1/src/V1/ClusterManagerClient.php create mode 100644 owl-bot-staging/Container/v1/src/V1/Gapic/ClusterManagerGapicClient.php create mode 100644 owl-bot-staging/Container/v1/src/V1/gapic_metadata.json create mode 100644 owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_client_config.json create mode 100644 owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_descriptor_config.php create mode 100644 owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_rest_client_config.php create mode 100644 owl-bot-staging/Container/v1/tests/Unit/V1/Client/ClusterManagerClientTest.php create mode 100644 owl-bot-staging/Container/v1/tests/Unit/V1/ClusterManagerClientTest.php diff --git a/owl-bot-staging/Container/v1/proto/src/GPBMetadata/Google/Container/V1/ClusterService.php b/owl-bot-staging/Container/v1/proto/src/GPBMetadata/Google/Container/V1/ClusterService.php new file mode 100644 index 0000000000000000000000000000000000000000..d1ea00507ec28d7f49e0ddd4fafeab0f18de2a62 GIT binary patch literal 52735 zcmchAX>eP~cAi0s64{g}>QW0tEyKB*MWZ)EjySt!#U=_PE*OC1ypi<`g8)e4i3B*f zpfq}8xt{H3``J#MIF6S%$@8nq;x&sCyRz7+B(8E6JFZG>|H)L!PR03=a+TvG<)mCr ze&jpnbl(N&3zCwa=f{Y+x4Uom>F(3#d}rym-rd>UQJ1FX>dkt)(y7;`*6vSrHtSP6 z?N+B%ZEa1h?XIua+f&un_D*A~-kzSC$}UYUE-g>xviapFQPpehwyX7PQyZ<;##Vi% z+G=(x4YW3M_v%b_YuD@4+hwobzT2qQr@2+7nw9Okw^OOsr{)Ujg?gt_t8^;2=eU8} z8PmY+)vIqRRo$w1-c&{!DoH!)Q#FPEc6Qgc8r3PUQ|aKJry5?l(QI@Ym955?Fp#&W z)+<|H9ZmF>UEgh1JB?OziYhEMtM$vzO-Y+n_Nko~2LASx=~01b0Xp2yH!+xIW$Sjf z?p523oldJ=K+$X0HtHRpg7oC_bNaK?Tw{Ievh?xVwVqDCJ=JON*27<)nrhcOyY1$i z+;3{&f&bTS3%yc1joYbavqe;BHN9)sf-wb6#8u2}HR{dI!RlOZ)VFHs`ex;Bqt!lG z)nZ+*mVI~9r+s!8>k|Xq{|Ei5AX;vFr*r=ysxCLMQahFHorkFVVY{-kQ*R$&Mv6OC zEdN@4{~x0oCCvP8%vX3Rzwk~&FWgkE=C9N1*v^;zl|}39S@q=~9#qfmdm}p&Qgqti z^V4^)PM*>AD?1JBe_CF$?I)iIy;!F;R9@4INEbL8D$v#|MZdbJUoiv0R-CEn<)Gi6 z>waIS3Ge!_U%6vuHLmr0dg}E1Q@Zu`P8IyErumpZQhH1qeAkom?$-v?@%ct`_mf2w z20vSGY&dCk#JlfRJ6m2dF*SI3boT1Bv>Kt_bXT?MlGMpHJMH^UR*hCS+O6H4@-`Yy z4ooF3kIl~PtDOwjTR^qRX>~Nx>ZlsLQ@@X1B`%LR$JEf>%GRzlK5}i~^@RI@QbBF! zoH~=4D=w`R$_q=`TzO@&RLEuW*YmmT_%}I@8VkQ%y*i%gc{V#f;QnGlo%pcPthMfW zArfVkYI)_m*fQAX+@G=87pMxK)yg}KnpfUx zY&SZ|LwG*uyriCKG`)Itw_Pvak?xh-^-8VP+`5l0wL9f{v$D2TuO*M5{P2x$`f4JP zeoozf7H8&us=0sjgi@ioI;oCsSE`#h=*yk^J9WK!@U+(O?vy>8z~zlK9_^5Wr>)9v zXS3{8TRU|RBN@a>JEM+kv7lV3R$IHxPI82Y_^uk>)-nMGM_c6uL#{BRnGSk0ZDa`9 zCXP~#ZOn!AY=|3uQyt!_VAj0kVQ%tsdo?-FrKLf1b*ojaY?VE)R+g?36^ERo>QJY$ z;U$N8L=$Rsr(Gw`(*UKDiU{qzrH*2FSS~oeT5T^m%AbG6`uS8)P_L~MYJ>^OG(O5B zNviSfMzc(7WM`|=S#PzslgIeYf=b?NweM`TDz&nqAi7KJCpm@^qqFu=f2b=ND(Y`f ztHUJ8b-d(p?(;=!pJ^7BshD$3jd_)3ZLRf*`RED$sB5iPlA`)sn6f4sDl?Z#Iy{`~ z>LgA9NPK+mmn-Y*B-z|gPH?N2t*t`9Fcng|yaTd$n{?jPYqZ!q707$0hbQ}xrKBt6 zbsgQ+ch!k4;_YSbuqN**Zs#d$pSoDO^Nt!bJ5<*`&9&`og6JFNH)qv}wN|TB=7n)* z+ba|IK7%GkoR`(;2Jsr*?pbd432U$BP)?6%Nu90K?h;wBZuF*Juj4!e`ID2}#`D%T zQo7cHRJyL~IMZrq<8HH2O9(%x7pDc{{C6atg(VaZ)eG+wC|BZQ%oLq@b=(LaWz904=Jo%Q zl?L=Zq2n|bAL~M4){$0YTdj?aMsveV$}`-TE3u7{{xC09^!#Mh#63AIBWv#VvwcX? zb3!^FsB^-^ns>MB%*od9`;O_>Wp2zq&-29m7E!I_)zVZ+cdV@3`p#y38@vs?5$uha zu6#r|C9|IAxMe%_a;ADoYV()y75#yfa=g|S7FX2*2(3OD$)m4YP{U*^)fi8*!3 zpH6c`GtYj3TZv^OJd+D@rZ0oXJD1ftIYOlyW_9XeC#TWeaC-1RrxFm;PU1*yHEWgj z{j$GRz2u91Sbxb>fFRJx;tX}x)g??8F=rB(wz(*lAbjLeJ(vkDo-gOEbfo?YaJ>ZV|$ApCEY>l@%jUU?0&&%H(s5^<+dZ);5_`-rnQy^OYaCA*i^A^HKqdwe;cD|YEU zN*(5>P|ng9)%kLtuBFeYQ(AE-N0w&#f;#6DxpzUjX>~3jYwv^|S4Z>=X~hBZpSQba zo{?fZ;{IGhO$Lqh%uTe4Xs_610gs@GldZ|^IoH*R?aC*#V`cw0u`yVy8lAO^6$_P5 z@KutMh}%NM6+UrNIS`Y&8iLw+I!0iGeyDdh`bPR09SJ<{Vds*6s1QW6(T02r-5z3Y zs|}HX^`~L?jye{VmS2I|K}weZ0JopDuAE4f>1C96FJWEaU+1_Qjq2@K5_7Bh(o%6e z;a*TGBpYI;r1LfDvHN=o=I1?9_L53s8+*HuEwIMT>p(dii_zk6HkiUjV&~2}`hbwR z8&iiFme9(hdn;}vKp+;E%EeqMS6odkL+OV;KcSAN7C(wS9B`8Aq(&|>kvD_xj}EBu z9x>vkI!^1wXdw+q#scHa+KJyKhOn|~#y1K0<0x$k^T3Q%7V&}_hMLUkqMqS55B`nm zCEbM6O}f|Bu>TH3SSsX-spX|^CUIB|gCTlemX!>wY4&MeK0`EJ149wQ3rjRG1El zO9zym+%G58SX6v+-u0mj`Mmv9i&lD+E}R3+Mf6}f*kB&?@e%hwCX`x$232pTfbihN z8Q#TyCIgRf_Vhq9K~HyJ#eo1-;}t!^PoZ`SK3uNW+nvUGqe_yG$O4)#+tm>HT1`&hN0$^*hq0*ZBZ?6Hq4u*u9^cQptwr?V`I} zAo4NV#l!B;A5lkfdVwYC-a(7o>~waZ9|4|Ot877jBNk7k;|`!3C_j(lX;T_X+~g*X zhA)wgY>S0Y0BbD|>X|t%;?S}iel?tFm@8Asd0(9*IHHZix9*i|6>oE`Rl!6N-Z(mI z*N+I0kP2B-o~IPbmOjJLH-bUUbP`Az*O*>h1+Jip^)>|Tt=29M@LgZ-B*<-a_L7ws zW~gv+w;5EgH35SFm+)8AaG&Z~%o3H=)o-dZRbEom{U+F0i?jt+W(m|AowaN4QXBu5 zD)Q5*si!vpIDs8|4eS%Bu?*Z)y+*kPX`dAlZd!!+SFGcktJVvC1Ed~iyhfI5>#sn% z-l*=B*J0EljTEEqX7A^>qT z=F}l`85O^gl0LD{?mn$f^zOECHH^6u*j#q?^C}s;k$Ou*eVDLp6~|uEwhwwsKB>mK zR%?%l_J(??-p2urMan@@=z4Oq+?0JV*N;nyUd!Da%n^Ft5OO^QYhtHMqlrV$`(eB2Ow7;(N; zozoxM;Ng;OfmANNFoX%%<*DenV`&DFy}PUBknTbZV#Lj=vveL};nS(sYR{3?E{^ID zV#ZiCAn9KaaM6JNI}ZOY&epRaoPu&fM+(>ps|G~Yu~|DT6m4=kIAQ8-Rueu^0&195Blqe8d!?+JCzQYQEL(wH4kCUULe1y3k*PUJtgZ6|Bo=y zo`w37n%a{m_Eefy=lU_ap7PJB(=lwPrzp1i$vGRx>nV8&+C>)&f3n^oQoWzTIn+z9A4;fW5&r4C z4VjaWtC|n6*w2+nt?7cU68-}1#bNhFHSE8H+Egemt>&{fY$cPL&u5mPNdG=G<#eM7 z5ZKHiqef6iqm#{&Q$ZcClZGp{u8?{EHR}Xg+MUk%^~ucd*40?_32ndJYHEIk^_}DC0ms zENp#(YWU!v9ac`hklG?E0YQNx^$`aok)Q$jVyjW{Si1(*9oV`w&>CW~JRxj9_8}u# zVse&TKppLO=EJRw&WhSGsm7Y1PjC<=`8?rSxCm(iXaro<;7ewpS^;VK{Zs0^X*$4} z1Q!gQK~Jj-ek;~ubPA2op=lcPzolVeF@)pHjrLT(ZSKkwD7R#z#$L+K5E~(S9VrclUh9P${wvI4p>pUGLVWb!vRHfKQ>U_mV zp993-7b=oyaddXtx=|wlW|0g9ntw~vGs>;i*DJeQ9d4JWsuyP_JFei&?q4~lj%cZl z%%*{&4Yo20%O|@fVqXbsh1}(6pGadmBtHw~e+b<+z&eVo9AN^7?v}s7wAD zaQie0Dh2f-`dD6_HX5B_E4q_Ub9;7tBdRXy{$;#1tGZSf#z(GM#s!M_y_dYqBeSmxW5*(%=3zk|Z^M0! zMpWIbKrP!!ibsbXi7QIkj1;Aj_&#Zn#i0*F$JNyR9QVOK5aW}U*L5^~--8XW?rnzg zRxg?1cI-BW1(XiKw;p)y>1qp}LE;OtjUJiqh(m~dvNNb6&LC7Hm~6P+3vi8DHtk&H z?!-*?VyJ>{#_sPVejRqhBv*|1I{~rusjClG)16njJ9fmjIYZ`41q%2V@v7r(@2@8fF_|5wkDv2Kq3<`223WO(fUs+`Ql9_fznE z)$eJM`kufIddnY$jHA^7a^X&Xk*mF=4nt~%_jU3Pe#gn3=FlYFd)I?4U`#5(Q_>?g zlic#Z0=b#L9|+Fm&zjsufgv&?^orfdCimnCHPO({g2I@}yKTq~Es_Gb{}9I_BNSiK z9ctK&4_vYV_?E}_F}Dgzn*%i2<|hzUG~5RHKI!4vaGbE;;R>%q>xMrPJ5YGZyDZ1p zofU;VSO`)WD!~XHM~MA_&HBrv!;i+O1at~QIey|`i$|C z-zCl2H!d+B5~#8w9(&@P_hyef-B+X$J12|!(WSsVeA~L&9^c)s6AONEy*0?dK}(Yd zLWD8Rd{vr>-SsjUqLFUtm^uU}=Z)kKP{k4FiW*wqs>4DLC;Df^tH)ggv}h<WBh}d!->xxQ%R-ARz z$ig94RQO4Zn{FBQNV*ntCfRxclaM=(jcYBsgt9EriWLK!LV{^O6p13>#XMN)djZw!PY zghpo{3Iho(OC!CLd}BsL0CDWH)Y~&WqD6JyblVDx5F`~xAsZ|L<-)Yr4IolH(1>&U zwtC8x=nFgupnOo^A+*iFZtR-5AW-&gwrW?*Lkl|wf{+*<`@*(D5Me?9(`r{VlY|eq z76jyo(9n{d5P7OdD|OYcrq@1$M4EkRi7gwLEO@I7wNehNe+0Vgykp_5%V zlj3IV+DeZaR|-~4!+=s?T52dX0!VMdybp&962K8>5eNx&%j$}$ z9X=#jn;`kjY}dCDKxjtp2jbLzC=KeZ{zmtTh*%5 zA|S`-$wrfde`a@7)dOxf-A}KR(_&f+Kw8;@r>1F2pC)YPl`}wZ-}R4cO@E_kgVVR; zd&3fhg+u(ZSzjcEF|bzl1$?PsHiw4g>@tD@(#1@r`;!awpD5_l7n19ln-_Yx(l#vF z4KpsBzsc_y|f03ZX1vM-r21v`;OXBdYsw+T28S2hZ+*U*~%?6#=K&RQS|B2XTJ zOw(&n{sUuf2b1;XdD7mWqK{Mu>M~kjC8I7D?lP8TV{58=8q#o2d)jZSA5qdTsjGg${f^B2 z819a-Tn0A(9TSShemW95GlDn@&SfF~4vpq|OZ%+Z)i35;d6Z&E*?mWi_)p+gprn<+ zA3}iVq#6we>=DqS9Vvcs7BT22>Plg(9aLO^dvsM|a>&lZJ}v}g#Mv7Bb|sPt z(J)#%CWInRa11JG;TVBCHJoFOE$#Jip~qw)j!Q$y1R@a0@gT6;5RNfIE+L&t8_B7} zlq1+g*qk6f6Xf}Tavd=`hfgld;MoAdrmQzTF#X-^D8Cblt8NS zESrPtUGQvxo~;xZhAuCpxE#&?G4pH@d3j0zu2HO*E2Q#8zqui)nhk&AFd?}5vs4ov zeoOP?N9d{kaPV}P@YGUn8L?KnAUd#^n#(N!RvjO4PN@^Am1PRQptyAK>S?bq7EtYR9LN132c?_4ypWbRDy?QiPwgkb8W>{pA65qGyG7 zd13|oofycz_xn5Q2(q@c8&wH%j0@!H`8s94K`rN1W;1Xw(^+%&xjiQv>acF%MA)H> zw(S5|$Ou4$G6!F>PZ@&c;jMYJ)#NF2l(&Sm7pq#$y+1^cA+W+1}OH|eEVgno)hLK~dIxI=l)o(`U)3gQQXgmTZ| z)u2>~wWjvPdTsjRf||f7v#sb-8Vv+}Y48i`WVAt~8AQ5Mh-Jf7k^W5@m%dsAD0OTb`5s8KAvahFt{ibU z)CBYhUm-jAYJ!y9G8j}pUE%|EipJr8=`oPzi|TZSq8+yUM!yl=muaY~)7{$nUFG zg*ZGAL=Le-zjo3WYE6DO6js{{m&wm=`SWFt(Xx(WO0RS||4BM!DjH^=2rwmL# z7TjXQ{dxjX;0zKN0p;Km8KcXI7%hyY)1r6`Svp$ur&yXuU;R**=xa;I#P&NC1; zI(yb^G^h=HLBzDVq(CxjB45@iYvTYc$JZ*IDqKqHxH|)|72*$QYYpJD{yYA-L=5P`WSj3h(>8sd;GxDwfvyO0FId+bUnbux-1M9d~N ze1+pp4X3K}1F&^lT*o@|XNYWAhZKIYfx=@k#tcIpZC=1AyW>wd28I!`x1%Z?oe&35 z;hfi$3WA$-V6I)sr%nY?O{C=8;{J%;#Ni`7DH5G%s7ZrQq>fOYaOYxnt+o=7y7X`?-VbV@v zY>0ehMi44zg&`<9C@v|g-*PVuL6LWBfY!@M#7F7>Bhbdj+@>88O`{UB@S#o^)tLMr z33a?1-NfFZ1>^0)#>o6@hyuLn(QdPH7nVy(oy5#?2=p4JKvK?GOq)4QiZDYGT9tGa z32C?i_J?x-4rw?D0%TS;h<(HNuzP0B=}|S}r%)Ci*xT;pR}U!_Oc}g>kB7d_vra57 zPT(>F0VWI&!aB|RwBH;0HTlzn>R99nB5;Qg748W!$6`*fJsX}bP#csWg8OS@U6dS# z@(!OBQre0PauMXR;6@n7uaOc+7H}{;V=fl?6?<1&;&O(2iumv^6KY6$1ckG3BUS3o z8^rcZHcBFVr?||?M-b7$MoAb>%X7tCjxvwHE;)b&Hj#n)%8@+f^!$o8SPnv*bh5=% zo`QNp&kvE78<;CgOR1Y=iyh+PWLS+BXKQG2X?{MP%G@lQ?i`u?yIB3*9N;~jg;iu? zdmd1KuDU9VV*t=iO3(rKo)#R^?(ALBHAZ9#9YhG1 zVz(e|gOSuRhXG7UBE9+50n>S+#Q zYnD1dfv*Ih=!U2RaZ*ju6sGI9q*G|6LOJC8u_2uR>EPf-#@?MW;yC2Zz!2QipXtz( zoZkkb5!?4Czn~`L-$t|a!VU!ORbP}8C)Ni2r<;`0!>~j1rgr~5(xwJ4osZN7>(I(( zO$)W`wg_8~_1Xs2rX$Wha$xyhs=neveF0P7-a*DMit84~ADQevrPCwoi0&fY>2$77 zR}i2!#P|R3;vI`YDf%=pU838A+(k9Se-MK~hF|TOQ3AlpjJ~{(U!-Kl;;>Ny%6UPZ zMLBtlH+&ZOuLqDxdcv~Y9H=dNp$f_DKx}9V;m9Iu9DauS_AL0Qown}@a(fA#p+x5q z&I+k-H4~=-_g^K{dFZ?55D7TspM?&NjL8qBM%WXxcrLNla&)e=LH{ z>ofb!aAqUAuFT{mw7aYr>+C!g#kCF-)U5s@ow}6XmiNZk>@_R5@9pSxsM7^$0S>~K zy89b~HZ)pE#|j-$_Jq9DYIwYc)LEUb03pqjJ>LlIWDM=PDDHdQZ^1rC-u#fTp$#f#Fw%O zbFz8F$f0D9WHI#U@ra3{6GGyBp%dp-@4aWNU@&GP*(L)=0Rk-;FJkurb~j+_7^%g6 z7^<)KXoQN~i{gYE6OfwM2|hGh1>oMl;iqgapLsj!!}{ zvw>jAkcI`rtba|KpLdSdSY&75PC{A+!^mXI*X*%|DRL5{S7WpG9GI5QA(w3=tt6tf z<#v;<4$A5X-bTC0kdu2ujdiug>1#8RJyYkwT!~zN8Qz8o=ZG4_wG-Hne~B)XfCB~J zC}@t9M?WDx4D(jG+fc4ce8b8byL(_uA19~dMOzLz*=iA=4Bk)=o3`WI*c2ZmntOb7 zIT_?v<#iQ3^2K-pN7U0L0x|N1qP{u#@pZsR3;Zd9HDMkA0#ruoBJE1%>2vyyI%_14 zZ)8V!qFm(mK0%SA`YOtRfq~PThgwu39x+IIWB3(w4>=78?xFi9K|sza#I^(xT5-(| zzwgFkb38(y^_M`nwKdGK5_y4T>rwKKV<|AFEuGG(uAuj6jRq^TxGIUncxAX>Wco*5PzD(q zXttQgWxp{O{=%(4zX(ikeqMNZD1i*Hvuy5qYGr;I5F_rqL5W;x87X2Y$xmoK=mEJu z0sax=JN%B$-6OMVSJ~}VIeCu@Sg}uH9eDA~A%tNex10iEnu2~yPi}^u47fj=P-jSO zl<2bpBMy&`yS*D2-1H$WLY!Tqk95MuiD4vVm%aemiFOz|9OUe1WB{K+2v*>fbj*>Y zWt2638NOpamqq@uFuoG$x7}_K0wSb8(Z2I(=>81u`Nk;%+aEZKPMG$lIz(55Ym~zt zli5{gn(lmODVBsVosLcz?PWDqtu*0}N|_+JT@ud5X2%V)pok@^?*8?JIz)f;IDOG_ zK{~6<&7~Cp!@wiY(Q={tvGRD6%4C*S7MIHs>jUk9fN`qw!OGHd3KuA4ayd$OH3&tM zqjJ(8mCcn=h%q8Getu~sTfVtaD&Nc@F*v8nIzs47hN>6x#CXO>++P^+GqejECW%v9 zZkbq|k~)-uR|pWOnLz$}b6K!}I82sH<6{y|MnUIZ989VewNNq&AhlYf?am^huX0B6 z$=+NL6dV^9;?t80qJZlJ^$m}f91s*$H#U2)91w7z3Z<_hr6DdqUy#10sLmNB&z7J- zQoY#KI`SeycJ$r^1-Plz61Fd45B5m!p0NFZ{@vlL$rBjYFye>%-GS-w*dIrZBPCrt89zDcC)5R8@*N-ao&KD9&eY#CV%z-{67{;% zOCU}!>JDe$D&6&rL!7$_JDtvsOYHMTYH=|)-zAYzOs0Mjl2QNwnWx~axgun?MTj$C z&Y|)Ua2B&EIQSlNKSz%HF&nm9jYr->@}Gp8Wiy|Z`86^_;14GF=YN8H(Nk0dj3^67 z*Q<$Jo6>_X9p*0qJVlfjJVE$7P|9Ex zcd`9XVR-MCmKHy(uidQQ_g(9{3DH)A@87$_b|KtLFTe_}MMPKhSn&gwENI1uE=+`2 zLekO*?4OAyA71=tU1!0^(@$76E1MVa+$6^g`=8YTiV@} zbFa0kxVIE+jn3Ry8Xw=$n9ib4jihHGg+ z3c6^?nvJ`Mp*^q8=3~>C^^|@_P1y2)^_2UK0W}hcQpnbCG!BSiTIi2)J@9J7HNkT+c1 zEy=wtu_I~SSy9JKMsaCH^h5i_Z!rvm+*C$Mm{k>JvbjZ`4Dxs zJMj?lp~jBfIK}VuP~Z3c#AS=xrI`NTGs$T-e6PJoh#!EBa`UE!+3AK}*gv>Y_e5G-1khxX9uvQsk%LYfE`u3_IKE z9Owb5i`^0Zx5mgpWE-8mVU_0NJA@<7w20Ie{5d>Ao`uQh=u*Po-eMuwa9VlD6=f2z zOhSN)ZHFX98J?tT8HRJ}X`u9+85em5Nyv<|7}I6Dz3>~@yuK>Xv^b@X8LKqJtgk~^6nc6L|7)ao4=!*K3L&-IVcbLscA_;HdsfBXiqnPNHL$=* zq_{sUfA;hUZe>H1%&#guAwBh{Dc~9MH9f<0_rf$(pP6MUN1f3OQx?L$JA><-G4GR0 z>ahF;|2tK`OHmK3XOX+d*z8s7va$>R=-0xKTzf55hRI=4z^pCy|WPB-mlS5B>_ z^2qQ6Zo{R)okHoVj$=$X*p!|AL&x44f8 z;j%bCjKy4P?)!X+w*;$;IG^BjC`sZpAAen)^dE)2d1Zd~Qg`+JHpVa}U;tQ{&eLX| zGYcch2ONWaHv}MXDWpvIGi3rSWT+s9sVqQ5&)A7CA7t#7i=SkSc6XgFEiv489;N%W zf#AA}^zIgg5;Udn$kAoS$*Z$mSzm`k8vr303iR+bU4gih955Jg^)9aQteN;)e9^0e z2Ds}&gDh|g^6L=*B~&Gsopz(XPJG{YyB1qL0wT<(1FWbF=aE*MO!gEr0Wb+*3GRxo znb=ux{$e2;4^YE4s!&>PlPk?qqa@06b zw#aLDRUM1wXwCs^18##Ld2pJlr1qgnjB~5#fblllD`ptgZzEqYf)()9>%4QkZ^AS7>+JM9>&lSDDNEIeNBoo zegecG0~<2<4bsn2=0+~NGLN5!NYVlTv`jH3FjR}Qg}Y_kAA^%nkk>@WfZ*;pYTD0% za03y7B6#Vnc=K|S8;BsAbx2Hlf@A^N4Nu~9T!V9>uB5xRsh+9S?otMUTA3sV&XBI* zzi6I$VH$S#hLmoCltXG^N$^8yK(7VxjZ6C|NB(AdVW6j+MvoTWu(L{@*>nx{HiQUf z9%Hk10dF5)q0srteKyb|dPjecn`ezvwu<}BNKWdP!y#GB&8MuF+5l7u;rk38%4O(f z!bs-RSU*6?%oXbN;86OwI%X^w{9(ATpEAC1{#qwl&q+~)eY-&bx1MR)igv5CuDdEV zH1R2mo$UqU`HtwenMcIQ61KY2`V($O9npW1A$b)(Dyg157xK(trDh@Z`SS9O;?m08 zjRFkX1C-R|Z2Y<}#d8b$ii~Y4#4vvK(HX|UIRwEJu;UkzZWHM_;aqs5kQyJRKS+fe zAwH8$zDvLDN>*Tw#9cBhJk^O3R1=it8)$RN$z4MV*P;+dYC+Rt?G3V|b&z zG4#<4yOlHoh;I?Id4SnBeTa1_tau{CISoC1)E)=Wr4V_^>uOL0~mJAJW>;t^9xw-KR=9wMsBuzOedgd2VS5*V>a0Os>>@X&mefm--YA zaqY|MsXhgf4p%+{$>4c)xlhS-J_~zLMr=RhgI7MJj9Hw7(yT^SNuE|u8odgMYnN7v zaMrP?U%-NNa$puvIP6J6Xs=X|+E<^qIM(kXQ+XSqz!%7$tdK$oCtsGA?O8ZDo#u0M zsmw=ZQxdWdM50u7mD1{FgU16`zD1ojM^bctoafZjeqRu#rNe%$Zi!f%9N^3GzaSsX zL#34>*x%rl_aIdHSJ2~t#fnC}u7wOp#f+(bS)?@ji)Vg(;L0NKvFKIwQ|dgg3cVaG zjbZCh7Gb2tnn#29We#Svhl3L4re)w+NH*V{GoEH1_}X$YwOGn8mo*4X0IW6!M&(SP zy7tncRrjKL-d=`#C}D2=y#kOvWM>|j{ResEmligm*`f2_pfD4#svmofJ%K^Eh_(+; z#>fz%#;|JH$`ASav()jxiSK!G+xsk~Q}TZ2Z~xaH9;i6a&)mH_^QmO%eOs6HX0FW8 zsX$g){QY1?vrO;SRcD6E`{h0jT7NLZ8M@yZAV@AD43N9Y^nV4~ZmKu|3G=$*cZ@34V;cJO2w_bJ+I?1TzeBS^vp>xIs zGu8HSN6PGX+&_=`ellj;TS)Ad)tWPTK`Qd*S_3=9h&sznF069-15H@PsW&2IdWvp1RWz<{vC3zkEYgj;xrFi z0^Z5J4zYg+3SJJn*nN0Ej~lTdcWC6~vy{Wci#%kyeRslr^`LZr_l<)R$sY;P z>85-Ak?7?2k4W|NAe9_>l1Vp)RN*4~-Io6Wbb782ouWxRKTA!>mgJ1Y#-P9y`|3d{ zCWoC2=y9wp=_!%xk0DADtMbz($B2@VGW#XikI7N_7axZE_#LA0F1hbN$_k-FAs8VI znJ=#WtSzljV%YtA1a-y7zdWHOUYI))%! zr3^vrN&3U>x%RamAO;(IFNFs)UZ{t+UU6R9=TeYrRkqJMe;XSf!wAI`#BBIzAv09_ zhVL$`H~gD?xap4e$9uwX$P5LMI6nd1o*0SIX1y4W94TYEY1e$ait1ke0+wxGTqg`( zeI?53?e}x*0f&v5uj78In$E@~fAw#Ua zxIIy;pP=j$>$4ObN$66tfPTC;zCYnU^l~Cb_^6VyKMN!S5wW6)&SQubEp!lKJ>=55 z^3a&mtq-q!gO=7W!}dguB$iBKj@`F4rnI47+_75Xm9pU8*z>sbH%D}PU90MDY6}z1 z_3sR*Gcjq+VtOA_+Vp;}t@8U1%UFIc;ievXU`kN zKgvq7G)cggV~&&{p_F5H7VIs!Uqb!b{t5LH3HRLtZ8~!>bX{vAqQx+ie@_l5KPOu}UyeV?l(B)h^w=0Ocb$7sc@xnFn`DumjN%EZKn z^*5Yfm1K2`;p9P%-8B>pDN<~|%jfs7eEMOeCSFF;^cajZ`jk1;k0#u=545;2&Pb1m zs6}_-QHVBM`H%9Vlp6-*@p@O51^Y z-Y`+Wb}-?J7idqmBqHpp`@y3U*4D0rq#T^xwmUA&i;<^D#qTL=$ZNO$##GVhz*|hG zSDlx6?e%E=4`wPGi1ea#IJKGG?#M{zzaZgNpJ0B+p6s$u4KozGKWpELdO!sp(EH9o z)Cr(v@kt~m=YKtw1iGXX$85A(8@O;xM>hRdYI?KN+3~K;%-p+ouRH7sw&+b@C9U1s z3p+^nhkHo2)87lt1RUI8j6uV9ucjw5;?hLW8tlXc!XFEXTW@j`L5=O1jn<4`aRz;X z|B(NCXYI|<-#(qPw!@Z1iNnkvEFv9_3c)r2n7DgEE`Q=Rs1{kb=l{{+GY;_$9r ed#d3f8BU|qz@2nos@JC8=8|u6xd-ZjQvV-Eb?PGk literal 0 HcmV?d00001 diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AcceleratorConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AcceleratorConfig.php new file mode 100644 index 000000000000..1426de744a26 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AcceleratorConfig.php @@ -0,0 +1,235 @@ +google.container.v1.AcceleratorConfig + */ +class AcceleratorConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The number of the accelerator cards exposed to an instance. + * + * Generated from protobuf field int64 accelerator_count = 1; + */ + protected $accelerator_count = 0; + /** + * The accelerator type resource name. List of supported accelerators + * [here](https://cloud.google.com/compute/docs/gpus) + * + * Generated from protobuf field string accelerator_type = 2; + */ + protected $accelerator_type = ''; + /** + * Size of partitions to create on the GPU. Valid values are described in the + * NVIDIA [mig user + * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning). + * + * Generated from protobuf field string gpu_partition_size = 3; + */ + protected $gpu_partition_size = ''; + /** + * The configuration for GPU sharing options. + * + * Generated from protobuf field optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; + */ + protected $gpu_sharing_config = null; + /** + * The configuration for auto installation of GPU driver. + * + * Generated from protobuf field optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; + */ + protected $gpu_driver_installation_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $accelerator_count + * The number of the accelerator cards exposed to an instance. + * @type string $accelerator_type + * The accelerator type resource name. List of supported accelerators + * [here](https://cloud.google.com/compute/docs/gpus) + * @type string $gpu_partition_size + * Size of partitions to create on the GPU. Valid values are described in the + * NVIDIA [mig user + * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning). + * @type \Google\Cloud\Container\V1\GPUSharingConfig $gpu_sharing_config + * The configuration for GPU sharing options. + * @type \Google\Cloud\Container\V1\GPUDriverInstallationConfig $gpu_driver_installation_config + * The configuration for auto installation of GPU driver. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The number of the accelerator cards exposed to an instance. + * + * Generated from protobuf field int64 accelerator_count = 1; + * @return int|string + */ + public function getAcceleratorCount() + { + return $this->accelerator_count; + } + + /** + * The number of the accelerator cards exposed to an instance. + * + * Generated from protobuf field int64 accelerator_count = 1; + * @param int|string $var + * @return $this + */ + public function setAcceleratorCount($var) + { + GPBUtil::checkInt64($var); + $this->accelerator_count = $var; + + return $this; + } + + /** + * The accelerator type resource name. List of supported accelerators + * [here](https://cloud.google.com/compute/docs/gpus) + * + * Generated from protobuf field string accelerator_type = 2; + * @return string + */ + public function getAcceleratorType() + { + return $this->accelerator_type; + } + + /** + * The accelerator type resource name. List of supported accelerators + * [here](https://cloud.google.com/compute/docs/gpus) + * + * Generated from protobuf field string accelerator_type = 2; + * @param string $var + * @return $this + */ + public function setAcceleratorType($var) + { + GPBUtil::checkString($var, True); + $this->accelerator_type = $var; + + return $this; + } + + /** + * Size of partitions to create on the GPU. Valid values are described in the + * NVIDIA [mig user + * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning). + * + * Generated from protobuf field string gpu_partition_size = 3; + * @return string + */ + public function getGpuPartitionSize() + { + return $this->gpu_partition_size; + } + + /** + * Size of partitions to create on the GPU. Valid values are described in the + * NVIDIA [mig user + * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning). + * + * Generated from protobuf field string gpu_partition_size = 3; + * @param string $var + * @return $this + */ + public function setGpuPartitionSize($var) + { + GPBUtil::checkString($var, True); + $this->gpu_partition_size = $var; + + return $this; + } + + /** + * The configuration for GPU sharing options. + * + * Generated from protobuf field optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; + * @return \Google\Cloud\Container\V1\GPUSharingConfig|null + */ + public function getGpuSharingConfig() + { + return $this->gpu_sharing_config; + } + + public function hasGpuSharingConfig() + { + return isset($this->gpu_sharing_config); + } + + public function clearGpuSharingConfig() + { + unset($this->gpu_sharing_config); + } + + /** + * The configuration for GPU sharing options. + * + * Generated from protobuf field optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; + * @param \Google\Cloud\Container\V1\GPUSharingConfig $var + * @return $this + */ + public function setGpuSharingConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GPUSharingConfig::class); + $this->gpu_sharing_config = $var; + + return $this; + } + + /** + * The configuration for auto installation of GPU driver. + * + * Generated from protobuf field optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; + * @return \Google\Cloud\Container\V1\GPUDriverInstallationConfig|null + */ + public function getGpuDriverInstallationConfig() + { + return $this->gpu_driver_installation_config; + } + + public function hasGpuDriverInstallationConfig() + { + return isset($this->gpu_driver_installation_config); + } + + public function clearGpuDriverInstallationConfig() + { + unset($this->gpu_driver_installation_config); + } + + /** + * The configuration for auto installation of GPU driver. + * + * Generated from protobuf field optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; + * @param \Google\Cloud\Container\V1\GPUDriverInstallationConfig $var + * @return $this + */ + public function setGpuDriverInstallationConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GPUDriverInstallationConfig::class); + $this->gpu_driver_installation_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdditionalNodeNetworkConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdditionalNodeNetworkConfig.php new file mode 100644 index 000000000000..25fbd076ebbf --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdditionalNodeNetworkConfig.php @@ -0,0 +1,102 @@ +google.container.v1.AdditionalNodeNetworkConfig + */ +class AdditionalNodeNetworkConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Name of the VPC where the additional interface belongs + * + * Generated from protobuf field string network = 1; + */ + protected $network = ''; + /** + * Name of the subnetwork where the additional interface belongs + * + * Generated from protobuf field string subnetwork = 2; + */ + protected $subnetwork = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $network + * Name of the VPC where the additional interface belongs + * @type string $subnetwork + * Name of the subnetwork where the additional interface belongs + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Name of the VPC where the additional interface belongs + * + * Generated from protobuf field string network = 1; + * @return string + */ + public function getNetwork() + { + return $this->network; + } + + /** + * Name of the VPC where the additional interface belongs + * + * Generated from protobuf field string network = 1; + * @param string $var + * @return $this + */ + public function setNetwork($var) + { + GPBUtil::checkString($var, True); + $this->network = $var; + + return $this; + } + + /** + * Name of the subnetwork where the additional interface belongs + * + * Generated from protobuf field string subnetwork = 2; + * @return string + */ + public function getSubnetwork() + { + return $this->subnetwork; + } + + /** + * Name of the subnetwork where the additional interface belongs + * + * Generated from protobuf field string subnetwork = 2; + * @param string $var + * @return $this + */ + public function setSubnetwork($var) + { + GPBUtil::checkString($var, True); + $this->subnetwork = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdditionalPodNetworkConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdditionalPodNetworkConfig.php new file mode 100644 index 000000000000..c7b650c6a2cd --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdditionalPodNetworkConfig.php @@ -0,0 +1,150 @@ +google.container.v1.AdditionalPodNetworkConfig + */ +class AdditionalPodNetworkConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Name of the subnetwork where the additional pod network belongs + * + * Generated from protobuf field string subnetwork = 1; + */ + protected $subnetwork = ''; + /** + * The name of the secondary range on the subnet which provides IP address for + * this pod range + * + * Generated from protobuf field string secondary_pod_range = 2; + */ + protected $secondary_pod_range = ''; + /** + * The maximum number of pods per node which use this pod network + * + * Generated from protobuf field optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; + */ + protected $max_pods_per_node = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $subnetwork + * Name of the subnetwork where the additional pod network belongs + * @type string $secondary_pod_range + * The name of the secondary range on the subnet which provides IP address for + * this pod range + * @type \Google\Cloud\Container\V1\MaxPodsConstraint $max_pods_per_node + * The maximum number of pods per node which use this pod network + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Name of the subnetwork where the additional pod network belongs + * + * Generated from protobuf field string subnetwork = 1; + * @return string + */ + public function getSubnetwork() + { + return $this->subnetwork; + } + + /** + * Name of the subnetwork where the additional pod network belongs + * + * Generated from protobuf field string subnetwork = 1; + * @param string $var + * @return $this + */ + public function setSubnetwork($var) + { + GPBUtil::checkString($var, True); + $this->subnetwork = $var; + + return $this; + } + + /** + * The name of the secondary range on the subnet which provides IP address for + * this pod range + * + * Generated from protobuf field string secondary_pod_range = 2; + * @return string + */ + public function getSecondaryPodRange() + { + return $this->secondary_pod_range; + } + + /** + * The name of the secondary range on the subnet which provides IP address for + * this pod range + * + * Generated from protobuf field string secondary_pod_range = 2; + * @param string $var + * @return $this + */ + public function setSecondaryPodRange($var) + { + GPBUtil::checkString($var, True); + $this->secondary_pod_range = $var; + + return $this; + } + + /** + * The maximum number of pods per node which use this pod network + * + * Generated from protobuf field optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; + * @return \Google\Cloud\Container\V1\MaxPodsConstraint|null + */ + public function getMaxPodsPerNode() + { + return $this->max_pods_per_node; + } + + public function hasMaxPodsPerNode() + { + return isset($this->max_pods_per_node); + } + + public function clearMaxPodsPerNode() + { + unset($this->max_pods_per_node); + } + + /** + * The maximum number of pods per node which use this pod network + * + * Generated from protobuf field optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; + * @param \Google\Cloud\Container\V1\MaxPodsConstraint $var + * @return $this + */ + public function setMaxPodsPerNode($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MaxPodsConstraint::class); + $this->max_pods_per_node = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdditionalPodRangesConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdditionalPodRangesConfig.php new file mode 100644 index 000000000000..b5b36bd68362 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdditionalPodRangesConfig.php @@ -0,0 +1,102 @@ +google.container.v1.AdditionalPodRangesConfig + */ +class AdditionalPodRangesConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Name for pod secondary ipv4 range which has the actual range defined ahead. + * + * Generated from protobuf field repeated string pod_range_names = 1; + */ + private $pod_range_names; + /** + * Output only. [Output only] Information for additional pod range. + * + * Generated from protobuf field repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $pod_range_info; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $pod_range_names + * Name for pod secondary ipv4 range which has the actual range defined ahead. + * @type array<\Google\Cloud\Container\V1\RangeInfo>|\Google\Protobuf\Internal\RepeatedField $pod_range_info + * Output only. [Output only] Information for additional pod range. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Name for pod secondary ipv4 range which has the actual range defined ahead. + * + * Generated from protobuf field repeated string pod_range_names = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPodRangeNames() + { + return $this->pod_range_names; + } + + /** + * Name for pod secondary ipv4 range which has the actual range defined ahead. + * + * Generated from protobuf field repeated string pod_range_names = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPodRangeNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->pod_range_names = $arr; + + return $this; + } + + /** + * Output only. [Output only] Information for additional pod range. + * + * Generated from protobuf field repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPodRangeInfo() + { + return $this->pod_range_info; + } + + /** + * Output only. [Output only] Information for additional pod range. + * + * Generated from protobuf field repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\Container\V1\RangeInfo>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPodRangeInfo($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\RangeInfo::class); + $this->pod_range_info = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AddonsConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AddonsConfig.php new file mode 100644 index 000000000000..da3f6766d641 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AddonsConfig.php @@ -0,0 +1,613 @@ +google.container.v1.AddonsConfig + */ +class AddonsConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Configuration for the HTTP (L7) load balancing controller addon, which + * makes it easy to set up HTTP load balancers for services in a cluster. + * + * Generated from protobuf field .google.container.v1.HttpLoadBalancing http_load_balancing = 1; + */ + protected $http_load_balancing = null; + /** + * Configuration for the horizontal pod autoscaling feature, which + * increases or decreases the number of replica pods a replication controller + * has based on the resource usage of the existing pods. + * + * Generated from protobuf field .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + protected $horizontal_pod_autoscaling = null; + /** + * Configuration for the Kubernetes Dashboard. + * This addon is deprecated, and will be disabled in 1.15. It is recommended + * to use the Cloud Console to manage and monitor your Kubernetes clusters, + * workloads and applications. For more information, see: + * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards + * + * Generated from protobuf field .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * @deprecated + */ + protected $kubernetes_dashboard = null; + /** + * Configuration for NetworkPolicy. This only tracks whether the addon + * is enabled or not on the Master, it does not track whether network policy + * is enabled for the nodes. + * + * Generated from protobuf field .google.container.v1.NetworkPolicyConfig network_policy_config = 4; + */ + protected $network_policy_config = null; + /** + * Configuration for the Cloud Run addon, which allows the user to use a + * managed Knative service. + * + * Generated from protobuf field .google.container.v1.CloudRunConfig cloud_run_config = 7; + */ + protected $cloud_run_config = null; + /** + * Configuration for NodeLocalDNS, a dns cache running on cluster nodes + * + * Generated from protobuf field .google.container.v1.DnsCacheConfig dns_cache_config = 8; + */ + protected $dns_cache_config = null; + /** + * Configuration for the ConfigConnector add-on, a Kubernetes + * extension to manage hosted GCP services through the Kubernetes API + * + * Generated from protobuf field .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + */ + protected $config_connector_config = null; + /** + * Configuration for the Compute Engine Persistent Disk CSI driver. + * + * Generated from protobuf field .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + */ + protected $gce_persistent_disk_csi_driver_config = null; + /** + * Configuration for the GCP Filestore CSI driver. + * + * Generated from protobuf field .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + */ + protected $gcp_filestore_csi_driver_config = null; + /** + * Configuration for the Backup for GKE agent addon. + * + * Generated from protobuf field .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; + */ + protected $gke_backup_agent_config = null; + /** + * Configuration for the Cloud Storage Fuse CSI driver. + * + * Generated from protobuf field .google.container.v1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; + */ + protected $gcs_fuse_csi_driver_config = null; + /** + * Optional. Configuration for the StatefulHA add-on. + * + * Generated from protobuf field .google.container.v1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $stateful_ha_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Container\V1\HttpLoadBalancing $http_load_balancing + * Configuration for the HTTP (L7) load balancing controller addon, which + * makes it easy to set up HTTP load balancers for services in a cluster. + * @type \Google\Cloud\Container\V1\HorizontalPodAutoscaling $horizontal_pod_autoscaling + * Configuration for the horizontal pod autoscaling feature, which + * increases or decreases the number of replica pods a replication controller + * has based on the resource usage of the existing pods. + * @type \Google\Cloud\Container\V1\KubernetesDashboard $kubernetes_dashboard + * Configuration for the Kubernetes Dashboard. + * This addon is deprecated, and will be disabled in 1.15. It is recommended + * to use the Cloud Console to manage and monitor your Kubernetes clusters, + * workloads and applications. For more information, see: + * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards + * @type \Google\Cloud\Container\V1\NetworkPolicyConfig $network_policy_config + * Configuration for NetworkPolicy. This only tracks whether the addon + * is enabled or not on the Master, it does not track whether network policy + * is enabled for the nodes. + * @type \Google\Cloud\Container\V1\CloudRunConfig $cloud_run_config + * Configuration for the Cloud Run addon, which allows the user to use a + * managed Knative service. + * @type \Google\Cloud\Container\V1\DnsCacheConfig $dns_cache_config + * Configuration for NodeLocalDNS, a dns cache running on cluster nodes + * @type \Google\Cloud\Container\V1\ConfigConnectorConfig $config_connector_config + * Configuration for the ConfigConnector add-on, a Kubernetes + * extension to manage hosted GCP services through the Kubernetes API + * @type \Google\Cloud\Container\V1\GcePersistentDiskCsiDriverConfig $gce_persistent_disk_csi_driver_config + * Configuration for the Compute Engine Persistent Disk CSI driver. + * @type \Google\Cloud\Container\V1\GcpFilestoreCsiDriverConfig $gcp_filestore_csi_driver_config + * Configuration for the GCP Filestore CSI driver. + * @type \Google\Cloud\Container\V1\GkeBackupAgentConfig $gke_backup_agent_config + * Configuration for the Backup for GKE agent addon. + * @type \Google\Cloud\Container\V1\GcsFuseCsiDriverConfig $gcs_fuse_csi_driver_config + * Configuration for the Cloud Storage Fuse CSI driver. + * @type \Google\Cloud\Container\V1\StatefulHAConfig $stateful_ha_config + * Optional. Configuration for the StatefulHA add-on. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Configuration for the HTTP (L7) load balancing controller addon, which + * makes it easy to set up HTTP load balancers for services in a cluster. + * + * Generated from protobuf field .google.container.v1.HttpLoadBalancing http_load_balancing = 1; + * @return \Google\Cloud\Container\V1\HttpLoadBalancing|null + */ + public function getHttpLoadBalancing() + { + return $this->http_load_balancing; + } + + public function hasHttpLoadBalancing() + { + return isset($this->http_load_balancing); + } + + public function clearHttpLoadBalancing() + { + unset($this->http_load_balancing); + } + + /** + * Configuration for the HTTP (L7) load balancing controller addon, which + * makes it easy to set up HTTP load balancers for services in a cluster. + * + * Generated from protobuf field .google.container.v1.HttpLoadBalancing http_load_balancing = 1; + * @param \Google\Cloud\Container\V1\HttpLoadBalancing $var + * @return $this + */ + public function setHttpLoadBalancing($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\HttpLoadBalancing::class); + $this->http_load_balancing = $var; + + return $this; + } + + /** + * Configuration for the horizontal pod autoscaling feature, which + * increases or decreases the number of replica pods a replication controller + * has based on the resource usage of the existing pods. + * + * Generated from protobuf field .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * @return \Google\Cloud\Container\V1\HorizontalPodAutoscaling|null + */ + public function getHorizontalPodAutoscaling() + { + return $this->horizontal_pod_autoscaling; + } + + public function hasHorizontalPodAutoscaling() + { + return isset($this->horizontal_pod_autoscaling); + } + + public function clearHorizontalPodAutoscaling() + { + unset($this->horizontal_pod_autoscaling); + } + + /** + * Configuration for the horizontal pod autoscaling feature, which + * increases or decreases the number of replica pods a replication controller + * has based on the resource usage of the existing pods. + * + * Generated from protobuf field .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * @param \Google\Cloud\Container\V1\HorizontalPodAutoscaling $var + * @return $this + */ + public function setHorizontalPodAutoscaling($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\HorizontalPodAutoscaling::class); + $this->horizontal_pod_autoscaling = $var; + + return $this; + } + + /** + * Configuration for the Kubernetes Dashboard. + * This addon is deprecated, and will be disabled in 1.15. It is recommended + * to use the Cloud Console to manage and monitor your Kubernetes clusters, + * workloads and applications. For more information, see: + * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards + * + * Generated from protobuf field .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * @return \Google\Cloud\Container\V1\KubernetesDashboard|null + * @deprecated + */ + public function getKubernetesDashboard() + { + @trigger_error('kubernetes_dashboard is deprecated.', E_USER_DEPRECATED); + return $this->kubernetes_dashboard; + } + + public function hasKubernetesDashboard() + { + @trigger_error('kubernetes_dashboard is deprecated.', E_USER_DEPRECATED); + return isset($this->kubernetes_dashboard); + } + + public function clearKubernetesDashboard() + { + @trigger_error('kubernetes_dashboard is deprecated.', E_USER_DEPRECATED); + unset($this->kubernetes_dashboard); + } + + /** + * Configuration for the Kubernetes Dashboard. + * This addon is deprecated, and will be disabled in 1.15. It is recommended + * to use the Cloud Console to manage and monitor your Kubernetes clusters, + * workloads and applications. For more information, see: + * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards + * + * Generated from protobuf field .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * @param \Google\Cloud\Container\V1\KubernetesDashboard $var + * @return $this + * @deprecated + */ + public function setKubernetesDashboard($var) + { + @trigger_error('kubernetes_dashboard is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\KubernetesDashboard::class); + $this->kubernetes_dashboard = $var; + + return $this; + } + + /** + * Configuration for NetworkPolicy. This only tracks whether the addon + * is enabled or not on the Master, it does not track whether network policy + * is enabled for the nodes. + * + * Generated from protobuf field .google.container.v1.NetworkPolicyConfig network_policy_config = 4; + * @return \Google\Cloud\Container\V1\NetworkPolicyConfig|null + */ + public function getNetworkPolicyConfig() + { + return $this->network_policy_config; + } + + public function hasNetworkPolicyConfig() + { + return isset($this->network_policy_config); + } + + public function clearNetworkPolicyConfig() + { + unset($this->network_policy_config); + } + + /** + * Configuration for NetworkPolicy. This only tracks whether the addon + * is enabled or not on the Master, it does not track whether network policy + * is enabled for the nodes. + * + * Generated from protobuf field .google.container.v1.NetworkPolicyConfig network_policy_config = 4; + * @param \Google\Cloud\Container\V1\NetworkPolicyConfig $var + * @return $this + */ + public function setNetworkPolicyConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkPolicyConfig::class); + $this->network_policy_config = $var; + + return $this; + } + + /** + * Configuration for the Cloud Run addon, which allows the user to use a + * managed Knative service. + * + * Generated from protobuf field .google.container.v1.CloudRunConfig cloud_run_config = 7; + * @return \Google\Cloud\Container\V1\CloudRunConfig|null + */ + public function getCloudRunConfig() + { + return $this->cloud_run_config; + } + + public function hasCloudRunConfig() + { + return isset($this->cloud_run_config); + } + + public function clearCloudRunConfig() + { + unset($this->cloud_run_config); + } + + /** + * Configuration for the Cloud Run addon, which allows the user to use a + * managed Knative service. + * + * Generated from protobuf field .google.container.v1.CloudRunConfig cloud_run_config = 7; + * @param \Google\Cloud\Container\V1\CloudRunConfig $var + * @return $this + */ + public function setCloudRunConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\CloudRunConfig::class); + $this->cloud_run_config = $var; + + return $this; + } + + /** + * Configuration for NodeLocalDNS, a dns cache running on cluster nodes + * + * Generated from protobuf field .google.container.v1.DnsCacheConfig dns_cache_config = 8; + * @return \Google\Cloud\Container\V1\DnsCacheConfig|null + */ + public function getDnsCacheConfig() + { + return $this->dns_cache_config; + } + + public function hasDnsCacheConfig() + { + return isset($this->dns_cache_config); + } + + public function clearDnsCacheConfig() + { + unset($this->dns_cache_config); + } + + /** + * Configuration for NodeLocalDNS, a dns cache running on cluster nodes + * + * Generated from protobuf field .google.container.v1.DnsCacheConfig dns_cache_config = 8; + * @param \Google\Cloud\Container\V1\DnsCacheConfig $var + * @return $this + */ + public function setDnsCacheConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\DnsCacheConfig::class); + $this->dns_cache_config = $var; + + return $this; + } + + /** + * Configuration for the ConfigConnector add-on, a Kubernetes + * extension to manage hosted GCP services through the Kubernetes API + * + * Generated from protobuf field .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + * @return \Google\Cloud\Container\V1\ConfigConnectorConfig|null + */ + public function getConfigConnectorConfig() + { + return $this->config_connector_config; + } + + public function hasConfigConnectorConfig() + { + return isset($this->config_connector_config); + } + + public function clearConfigConnectorConfig() + { + unset($this->config_connector_config); + } + + /** + * Configuration for the ConfigConnector add-on, a Kubernetes + * extension to manage hosted GCP services through the Kubernetes API + * + * Generated from protobuf field .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + * @param \Google\Cloud\Container\V1\ConfigConnectorConfig $var + * @return $this + */ + public function setConfigConnectorConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ConfigConnectorConfig::class); + $this->config_connector_config = $var; + + return $this; + } + + /** + * Configuration for the Compute Engine Persistent Disk CSI driver. + * + * Generated from protobuf field .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * @return \Google\Cloud\Container\V1\GcePersistentDiskCsiDriverConfig|null + */ + public function getGcePersistentDiskCsiDriverConfig() + { + return $this->gce_persistent_disk_csi_driver_config; + } + + public function hasGcePersistentDiskCsiDriverConfig() + { + return isset($this->gce_persistent_disk_csi_driver_config); + } + + public function clearGcePersistentDiskCsiDriverConfig() + { + unset($this->gce_persistent_disk_csi_driver_config); + } + + /** + * Configuration for the Compute Engine Persistent Disk CSI driver. + * + * Generated from protobuf field .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * @param \Google\Cloud\Container\V1\GcePersistentDiskCsiDriverConfig $var + * @return $this + */ + public function setGcePersistentDiskCsiDriverConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GcePersistentDiskCsiDriverConfig::class); + $this->gce_persistent_disk_csi_driver_config = $var; + + return $this; + } + + /** + * Configuration for the GCP Filestore CSI driver. + * + * Generated from protobuf field .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * @return \Google\Cloud\Container\V1\GcpFilestoreCsiDriverConfig|null + */ + public function getGcpFilestoreCsiDriverConfig() + { + return $this->gcp_filestore_csi_driver_config; + } + + public function hasGcpFilestoreCsiDriverConfig() + { + return isset($this->gcp_filestore_csi_driver_config); + } + + public function clearGcpFilestoreCsiDriverConfig() + { + unset($this->gcp_filestore_csi_driver_config); + } + + /** + * Configuration for the GCP Filestore CSI driver. + * + * Generated from protobuf field .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * @param \Google\Cloud\Container\V1\GcpFilestoreCsiDriverConfig $var + * @return $this + */ + public function setGcpFilestoreCsiDriverConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GcpFilestoreCsiDriverConfig::class); + $this->gcp_filestore_csi_driver_config = $var; + + return $this; + } + + /** + * Configuration for the Backup for GKE agent addon. + * + * Generated from protobuf field .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; + * @return \Google\Cloud\Container\V1\GkeBackupAgentConfig|null + */ + public function getGkeBackupAgentConfig() + { + return $this->gke_backup_agent_config; + } + + public function hasGkeBackupAgentConfig() + { + return isset($this->gke_backup_agent_config); + } + + public function clearGkeBackupAgentConfig() + { + unset($this->gke_backup_agent_config); + } + + /** + * Configuration for the Backup for GKE agent addon. + * + * Generated from protobuf field .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; + * @param \Google\Cloud\Container\V1\GkeBackupAgentConfig $var + * @return $this + */ + public function setGkeBackupAgentConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GkeBackupAgentConfig::class); + $this->gke_backup_agent_config = $var; + + return $this; + } + + /** + * Configuration for the Cloud Storage Fuse CSI driver. + * + * Generated from protobuf field .google.container.v1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; + * @return \Google\Cloud\Container\V1\GcsFuseCsiDriverConfig|null + */ + public function getGcsFuseCsiDriverConfig() + { + return $this->gcs_fuse_csi_driver_config; + } + + public function hasGcsFuseCsiDriverConfig() + { + return isset($this->gcs_fuse_csi_driver_config); + } + + public function clearGcsFuseCsiDriverConfig() + { + unset($this->gcs_fuse_csi_driver_config); + } + + /** + * Configuration for the Cloud Storage Fuse CSI driver. + * + * Generated from protobuf field .google.container.v1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; + * @param \Google\Cloud\Container\V1\GcsFuseCsiDriverConfig $var + * @return $this + */ + public function setGcsFuseCsiDriverConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GcsFuseCsiDriverConfig::class); + $this->gcs_fuse_csi_driver_config = $var; + + return $this; + } + + /** + * Optional. Configuration for the StatefulHA add-on. + * + * Generated from protobuf field .google.container.v1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Container\V1\StatefulHAConfig|null + */ + public function getStatefulHaConfig() + { + return $this->stateful_ha_config; + } + + public function hasStatefulHaConfig() + { + return isset($this->stateful_ha_config); + } + + public function clearStatefulHaConfig() + { + unset($this->stateful_ha_config); + } + + /** + * Optional. Configuration for the StatefulHA add-on. + * + * Generated from protobuf field .google.container.v1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Container\V1\StatefulHAConfig $var + * @return $this + */ + public function setStatefulHaConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\StatefulHAConfig::class); + $this->stateful_ha_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdvancedDatapathObservabilityConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdvancedDatapathObservabilityConfig.php new file mode 100644 index 000000000000..4008b7155ec3 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdvancedDatapathObservabilityConfig.php @@ -0,0 +1,146 @@ +google.container.v1.AdvancedDatapathObservabilityConfig + */ +class AdvancedDatapathObservabilityConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Expose flow metrics on nodes + * + * Generated from protobuf field bool enable_metrics = 1; + */ + protected $enable_metrics = false; + /** + * Method used to make Relay available + * + * Generated from protobuf field .google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; + */ + protected $relay_mode = 0; + /** + * Enable Relay component + * + * Generated from protobuf field optional bool enable_relay = 3; + */ + protected $enable_relay = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enable_metrics + * Expose flow metrics on nodes + * @type int $relay_mode + * Method used to make Relay available + * @type bool $enable_relay + * Enable Relay component + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Expose flow metrics on nodes + * + * Generated from protobuf field bool enable_metrics = 1; + * @return bool + */ + public function getEnableMetrics() + { + return $this->enable_metrics; + } + + /** + * Expose flow metrics on nodes + * + * Generated from protobuf field bool enable_metrics = 1; + * @param bool $var + * @return $this + */ + public function setEnableMetrics($var) + { + GPBUtil::checkBool($var); + $this->enable_metrics = $var; + + return $this; + } + + /** + * Method used to make Relay available + * + * Generated from protobuf field .google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; + * @return int + */ + public function getRelayMode() + { + return $this->relay_mode; + } + + /** + * Method used to make Relay available + * + * Generated from protobuf field .google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; + * @param int $var + * @return $this + */ + public function setRelayMode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\AdvancedDatapathObservabilityConfig\RelayMode::class); + $this->relay_mode = $var; + + return $this; + } + + /** + * Enable Relay component + * + * Generated from protobuf field optional bool enable_relay = 3; + * @return bool + */ + public function getEnableRelay() + { + return isset($this->enable_relay) ? $this->enable_relay : false; + } + + public function hasEnableRelay() + { + return isset($this->enable_relay); + } + + public function clearEnableRelay() + { + unset($this->enable_relay); + } + + /** + * Enable Relay component + * + * Generated from protobuf field optional bool enable_relay = 3; + * @param bool $var + * @return $this + */ + public function setEnableRelay($var) + { + GPBUtil::checkBool($var); + $this->enable_relay = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdvancedDatapathObservabilityConfig/RelayMode.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdvancedDatapathObservabilityConfig/RelayMode.php new file mode 100644 index 000000000000..827f5dffa365 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdvancedDatapathObservabilityConfig/RelayMode.php @@ -0,0 +1,71 @@ +google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode + */ +class RelayMode +{ + /** + * Default value. This shouldn't be used. + * + * Generated from protobuf enum RELAY_MODE_UNSPECIFIED = 0; + */ + const RELAY_MODE_UNSPECIFIED = 0; + /** + * disabled + * + * Generated from protobuf enum DISABLED = 1; + */ + const DISABLED = 1; + /** + * exposed via internal load balancer + * + * Generated from protobuf enum INTERNAL_VPC_LB = 3; + */ + const INTERNAL_VPC_LB = 3; + /** + * exposed via external load balancer + * + * Generated from protobuf enum EXTERNAL_LB = 4; + */ + const EXTERNAL_LB = 4; + + private static $valueToName = [ + self::RELAY_MODE_UNSPECIFIED => 'RELAY_MODE_UNSPECIFIED', + self::DISABLED => 'DISABLED', + self::INTERNAL_VPC_LB => 'INTERNAL_VPC_LB', + self::EXTERNAL_LB => 'EXTERNAL_LB', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(RelayMode::class, \Google\Cloud\Container\V1\AdvancedDatapathObservabilityConfig_RelayMode::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdvancedMachineFeatures.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdvancedMachineFeatures.php new file mode 100644 index 000000000000..807402018014 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdvancedMachineFeatures.php @@ -0,0 +1,85 @@ +google.container.v1.AdvancedMachineFeatures + */ +class AdvancedMachineFeatures extends \Google\Protobuf\Internal\Message +{ + /** + * The number of threads per physical core. To disable simultaneous + * multithreading (SMT) set this to 1. If unset, the maximum number of threads + * supported per core by the underlying processor is assumed. + * + * Generated from protobuf field optional int64 threads_per_core = 1; + */ + protected $threads_per_core = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $threads_per_core + * The number of threads per physical core. To disable simultaneous + * multithreading (SMT) set this to 1. If unset, the maximum number of threads + * supported per core by the underlying processor is assumed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The number of threads per physical core. To disable simultaneous + * multithreading (SMT) set this to 1. If unset, the maximum number of threads + * supported per core by the underlying processor is assumed. + * + * Generated from protobuf field optional int64 threads_per_core = 1; + * @return int|string + */ + public function getThreadsPerCore() + { + return isset($this->threads_per_core) ? $this->threads_per_core : 0; + } + + public function hasThreadsPerCore() + { + return isset($this->threads_per_core); + } + + public function clearThreadsPerCore() + { + unset($this->threads_per_core); + } + + /** + * The number of threads per physical core. To disable simultaneous + * multithreading (SMT) set this to 1. If unset, the maximum number of threads + * supported per core by the underlying processor is assumed. + * + * Generated from protobuf field optional int64 threads_per_core = 1; + * @param int|string $var + * @return $this + */ + public function setThreadsPerCore($var) + { + GPBUtil::checkInt64($var); + $this->threads_per_core = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AuthenticatorGroupsConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AuthenticatorGroupsConfig.php new file mode 100644 index 000000000000..2c82ec7e4c2a --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AuthenticatorGroupsConfig.php @@ -0,0 +1,109 @@ +google.container.v1.AuthenticatorGroupsConfig + */ +class AuthenticatorGroupsConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Whether this cluster should return group membership lookups + * during authentication using a group of security groups. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + /** + * The name of the security group-of-groups to be used. Only relevant + * if enabled = true. + * + * Generated from protobuf field string security_group = 2; + */ + protected $security_group = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Whether this cluster should return group membership lookups + * during authentication using a group of security groups. + * @type string $security_group + * The name of the security group-of-groups to be used. Only relevant + * if enabled = true. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether this cluster should return group membership lookups + * during authentication using a group of security groups. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Whether this cluster should return group membership lookups + * during authentication using a group of security groups. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + + /** + * The name of the security group-of-groups to be used. Only relevant + * if enabled = true. + * + * Generated from protobuf field string security_group = 2; + * @return string + */ + public function getSecurityGroup() + { + return $this->security_group; + } + + /** + * The name of the security group-of-groups to be used. Only relevant + * if enabled = true. + * + * Generated from protobuf field string security_group = 2; + * @param string $var + * @return $this + */ + public function setSecurityGroup($var) + { + GPBUtil::checkString($var, True); + $this->security_group = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutoUpgradeOptions.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutoUpgradeOptions.php new file mode 100644 index 000000000000..b5f35f9a7725 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutoUpgradeOptions.php @@ -0,0 +1,114 @@ +google.container.v1.AutoUpgradeOptions + */ +class AutoUpgradeOptions extends \Google\Protobuf\Internal\Message +{ + /** + * [Output only] This field is set when upgrades are about to commence + * with the approximate start time for the upgrades, in + * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * + * Generated from protobuf field string auto_upgrade_start_time = 1; + */ + protected $auto_upgrade_start_time = ''; + /** + * [Output only] This field is set when upgrades are about to commence + * with the description of the upgrade. + * + * Generated from protobuf field string description = 2; + */ + protected $description = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $auto_upgrade_start_time + * [Output only] This field is set when upgrades are about to commence + * with the approximate start time for the upgrades, in + * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * @type string $description + * [Output only] This field is set when upgrades are about to commence + * with the description of the upgrade. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * [Output only] This field is set when upgrades are about to commence + * with the approximate start time for the upgrades, in + * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * + * Generated from protobuf field string auto_upgrade_start_time = 1; + * @return string + */ + public function getAutoUpgradeStartTime() + { + return $this->auto_upgrade_start_time; + } + + /** + * [Output only] This field is set when upgrades are about to commence + * with the approximate start time for the upgrades, in + * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * + * Generated from protobuf field string auto_upgrade_start_time = 1; + * @param string $var + * @return $this + */ + public function setAutoUpgradeStartTime($var) + { + GPBUtil::checkString($var, True); + $this->auto_upgrade_start_time = $var; + + return $this; + } + + /** + * [Output only] This field is set when upgrades are about to commence + * with the description of the upgrade. + * + * Generated from protobuf field string description = 2; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * [Output only] This field is set when upgrades are about to commence + * with the description of the upgrade. + * + * Generated from protobuf field string description = 2; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Autopilot.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Autopilot.php new file mode 100644 index 000000000000..238b7e88db99 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Autopilot.php @@ -0,0 +1,111 @@ +google.container.v1.Autopilot + */ +class Autopilot extends \Google\Protobuf\Internal\Message +{ + /** + * Enable Autopilot + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + /** + * Workload policy configuration for Autopilot. + * + * Generated from protobuf field .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; + */ + protected $workload_policy_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Enable Autopilot + * @type \Google\Cloud\Container\V1\WorkloadPolicyConfig $workload_policy_config + * Workload policy configuration for Autopilot. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Enable Autopilot + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Enable Autopilot + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + + /** + * Workload policy configuration for Autopilot. + * + * Generated from protobuf field .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; + * @return \Google\Cloud\Container\V1\WorkloadPolicyConfig|null + */ + public function getWorkloadPolicyConfig() + { + return $this->workload_policy_config; + } + + public function hasWorkloadPolicyConfig() + { + return isset($this->workload_policy_config); + } + + public function clearWorkloadPolicyConfig() + { + unset($this->workload_policy_config); + } + + /** + * Workload policy configuration for Autopilot. + * + * Generated from protobuf field .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; + * @param \Google\Cloud\Container\V1\WorkloadPolicyConfig $var + * @return $this + */ + public function setWorkloadPolicyConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\WorkloadPolicyConfig::class); + $this->workload_policy_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutopilotCompatibilityIssue.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutopilotCompatibilityIssue.php new file mode 100644 index 000000000000..59fced6edbf7 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutopilotCompatibilityIssue.php @@ -0,0 +1,248 @@ +google.container.v1.AutopilotCompatibilityIssue + */ +class AutopilotCompatibilityIssue extends \Google\Protobuf\Internal\Message +{ + /** + * The last time when this issue was observed. + * + * Generated from protobuf field .google.protobuf.Timestamp last_observation = 1; + */ + protected $last_observation = null; + /** + * The constraint type of the issue. + * + * Generated from protobuf field string constraint_type = 2; + */ + protected $constraint_type = ''; + /** + * The incompatibility type of this issue. + * + * Generated from protobuf field .google.container.v1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; + */ + protected $incompatibility_type = 0; + /** + * The name of the resources which are subject to this issue. + * + * Generated from protobuf field repeated string subjects = 4; + */ + private $subjects; + /** + * A URL to a public documnetation, which addresses resolving this issue. + * + * Generated from protobuf field string documentation_url = 5; + */ + protected $documentation_url = ''; + /** + * The description of the issue. + * + * Generated from protobuf field string description = 6; + */ + protected $description = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $last_observation + * The last time when this issue was observed. + * @type string $constraint_type + * The constraint type of the issue. + * @type int $incompatibility_type + * The incompatibility type of this issue. + * @type array|\Google\Protobuf\Internal\RepeatedField $subjects + * The name of the resources which are subject to this issue. + * @type string $documentation_url + * A URL to a public documnetation, which addresses resolving this issue. + * @type string $description + * The description of the issue. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The last time when this issue was observed. + * + * Generated from protobuf field .google.protobuf.Timestamp last_observation = 1; + * @return \Google\Protobuf\Timestamp|null + */ + public function getLastObservation() + { + return $this->last_observation; + } + + public function hasLastObservation() + { + return isset($this->last_observation); + } + + public function clearLastObservation() + { + unset($this->last_observation); + } + + /** + * The last time when this issue was observed. + * + * Generated from protobuf field .google.protobuf.Timestamp last_observation = 1; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setLastObservation($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->last_observation = $var; + + return $this; + } + + /** + * The constraint type of the issue. + * + * Generated from protobuf field string constraint_type = 2; + * @return string + */ + public function getConstraintType() + { + return $this->constraint_type; + } + + /** + * The constraint type of the issue. + * + * Generated from protobuf field string constraint_type = 2; + * @param string $var + * @return $this + */ + public function setConstraintType($var) + { + GPBUtil::checkString($var, True); + $this->constraint_type = $var; + + return $this; + } + + /** + * The incompatibility type of this issue. + * + * Generated from protobuf field .google.container.v1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; + * @return int + */ + public function getIncompatibilityType() + { + return $this->incompatibility_type; + } + + /** + * The incompatibility type of this issue. + * + * Generated from protobuf field .google.container.v1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; + * @param int $var + * @return $this + */ + public function setIncompatibilityType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\AutopilotCompatibilityIssue\IssueType::class); + $this->incompatibility_type = $var; + + return $this; + } + + /** + * The name of the resources which are subject to this issue. + * + * Generated from protobuf field repeated string subjects = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSubjects() + { + return $this->subjects; + } + + /** + * The name of the resources which are subject to this issue. + * + * Generated from protobuf field repeated string subjects = 4; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSubjects($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->subjects = $arr; + + return $this; + } + + /** + * A URL to a public documnetation, which addresses resolving this issue. + * + * Generated from protobuf field string documentation_url = 5; + * @return string + */ + public function getDocumentationUrl() + { + return $this->documentation_url; + } + + /** + * A URL to a public documnetation, which addresses resolving this issue. + * + * Generated from protobuf field string documentation_url = 5; + * @param string $var + * @return $this + */ + public function setDocumentationUrl($var) + { + GPBUtil::checkString($var, True); + $this->documentation_url = $var; + + return $this; + } + + /** + * The description of the issue. + * + * Generated from protobuf field string description = 6; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * The description of the issue. + * + * Generated from protobuf field string description = 6; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutopilotCompatibilityIssue/IssueType.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutopilotCompatibilityIssue/IssueType.php new file mode 100644 index 000000000000..7ab458adac79 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutopilotCompatibilityIssue/IssueType.php @@ -0,0 +1,75 @@ +google.container.v1.AutopilotCompatibilityIssue.IssueType + */ +class IssueType +{ + /** + * Default value, should not be used. + * + * Generated from protobuf enum UNSPECIFIED = 0; + */ + const UNSPECIFIED = 0; + /** + * Indicates that the issue is a known incompatibility between the + * cluster and Autopilot mode. + * + * Generated from protobuf enum INCOMPATIBILITY = 1; + */ + const INCOMPATIBILITY = 1; + /** + * Indicates the issue is an incompatibility if customers take no further + * action to resolve. + * + * Generated from protobuf enum ADDITIONAL_CONFIG_REQUIRED = 2; + */ + const ADDITIONAL_CONFIG_REQUIRED = 2; + /** + * Indicates the issue is not an incompatibility, but depending on the + * workloads business logic, there is a potential that they won't work on + * Autopilot. + * + * Generated from protobuf enum PASSED_WITH_OPTIONAL_CONFIG = 3; + */ + const PASSED_WITH_OPTIONAL_CONFIG = 3; + + private static $valueToName = [ + self::UNSPECIFIED => 'UNSPECIFIED', + self::INCOMPATIBILITY => 'INCOMPATIBILITY', + self::ADDITIONAL_CONFIG_REQUIRED => 'ADDITIONAL_CONFIG_REQUIRED', + self::PASSED_WITH_OPTIONAL_CONFIG => 'PASSED_WITH_OPTIONAL_CONFIG', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(IssueType::class, \Google\Cloud\Container\V1\AutopilotCompatibilityIssue_IssueType::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutoprovisioningNodePoolDefaults.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutoprovisioningNodePoolDefaults.php new file mode 100644 index 000000000000..8028b6f87ae5 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutoprovisioningNodePoolDefaults.php @@ -0,0 +1,537 @@ +google.container.v1.AutoprovisioningNodePoolDefaults + */ +class AutoprovisioningNodePoolDefaults extends \Google\Protobuf\Internal\Message +{ + /** + * Scopes that are used by NAP when creating node pools. + * + * Generated from protobuf field repeated string oauth_scopes = 1; + */ + private $oauth_scopes; + /** + * The Google Cloud Platform Service Account to be used by the node VMs. + * + * Generated from protobuf field string service_account = 2; + */ + protected $service_account = ''; + /** + * Specifies the upgrade settings for NAP created node pools + * + * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + protected $upgrade_settings = null; + /** + * Specifies the node management options for NAP created node-pools. + * + * Generated from protobuf field .google.container.v1.NodeManagement management = 4; + */ + protected $management = null; + /** + * Deprecated. Minimum CPU platform to be used for NAP created node pools. + * The instance may be scheduled on the specified or newer CPU platform. + * Applicable values are the friendly names of CPU platforms, such as + * minCpuPlatform: Intel Haswell or + * minCpuPlatform: Intel Sandy Bridge. For more + * information, read [how to specify min CPU + * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). + * This field is deprecated, min_cpu_platform should be specified using + * `cloud.google.com/requested-min-cpu-platform` label selector on the pod. + * To unset the min cpu platform field pass "automatic" + * as field value. + * + * Generated from protobuf field string min_cpu_platform = 5 [deprecated = true]; + * @deprecated + */ + protected $min_cpu_platform = ''; + /** + * Size of the disk attached to each node, specified in GB. + * The smallest allowed disk size is 10GB. + * If unspecified, the default disk size is 100GB. + * + * Generated from protobuf field int32 disk_size_gb = 6; + */ + protected $disk_size_gb = 0; + /** + * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or + * 'pd-balanced') + * If unspecified, the default disk type is 'pd-standard' + * + * Generated from protobuf field string disk_type = 7; + */ + protected $disk_type = ''; + /** + * Shielded Instance options. + * + * Generated from protobuf field .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + protected $shielded_instance_config = null; + /** + * The Customer Managed Encryption Key used to encrypt the boot disk attached + * to each node in the node pool. This should be of the form + * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. + * For more information about protecting resources with Cloud KMS Keys please + * see: + * https://cloud.google.com/compute/docs/disks/customer-managed-encryption + * + * Generated from protobuf field string boot_disk_kms_key = 9; + */ + protected $boot_disk_kms_key = ''; + /** + * The image type to use for NAP created node. Please see + * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for + * available image types. + * + * Generated from protobuf field string image_type = 10; + */ + protected $image_type = ''; + /** + * Enable or disable Kubelet read only port. + * + * Generated from protobuf field optional bool insecure_kubelet_readonly_port_enabled = 13; + */ + protected $insecure_kubelet_readonly_port_enabled = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $oauth_scopes + * Scopes that are used by NAP when creating node pools. + * @type string $service_account + * The Google Cloud Platform Service Account to be used by the node VMs. + * @type \Google\Cloud\Container\V1\NodePool\UpgradeSettings $upgrade_settings + * Specifies the upgrade settings for NAP created node pools + * @type \Google\Cloud\Container\V1\NodeManagement $management + * Specifies the node management options for NAP created node-pools. + * @type string $min_cpu_platform + * Deprecated. Minimum CPU platform to be used for NAP created node pools. + * The instance may be scheduled on the specified or newer CPU platform. + * Applicable values are the friendly names of CPU platforms, such as + * minCpuPlatform: Intel Haswell or + * minCpuPlatform: Intel Sandy Bridge. For more + * information, read [how to specify min CPU + * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). + * This field is deprecated, min_cpu_platform should be specified using + * `cloud.google.com/requested-min-cpu-platform` label selector on the pod. + * To unset the min cpu platform field pass "automatic" + * as field value. + * @type int $disk_size_gb + * Size of the disk attached to each node, specified in GB. + * The smallest allowed disk size is 10GB. + * If unspecified, the default disk size is 100GB. + * @type string $disk_type + * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or + * 'pd-balanced') + * If unspecified, the default disk type is 'pd-standard' + * @type \Google\Cloud\Container\V1\ShieldedInstanceConfig $shielded_instance_config + * Shielded Instance options. + * @type string $boot_disk_kms_key + * The Customer Managed Encryption Key used to encrypt the boot disk attached + * to each node in the node pool. This should be of the form + * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. + * For more information about protecting resources with Cloud KMS Keys please + * see: + * https://cloud.google.com/compute/docs/disks/customer-managed-encryption + * @type string $image_type + * The image type to use for NAP created node. Please see + * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for + * available image types. + * @type bool $insecure_kubelet_readonly_port_enabled + * Enable or disable Kubelet read only port. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Scopes that are used by NAP when creating node pools. + * + * Generated from protobuf field repeated string oauth_scopes = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOauthScopes() + { + return $this->oauth_scopes; + } + + /** + * Scopes that are used by NAP when creating node pools. + * + * Generated from protobuf field repeated string oauth_scopes = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOauthScopes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->oauth_scopes = $arr; + + return $this; + } + + /** + * The Google Cloud Platform Service Account to be used by the node VMs. + * + * Generated from protobuf field string service_account = 2; + * @return string + */ + public function getServiceAccount() + { + return $this->service_account; + } + + /** + * The Google Cloud Platform Service Account to be used by the node VMs. + * + * Generated from protobuf field string service_account = 2; + * @param string $var + * @return $this + */ + public function setServiceAccount($var) + { + GPBUtil::checkString($var, True); + $this->service_account = $var; + + return $this; + } + + /** + * Specifies the upgrade settings for NAP created node pools + * + * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + * @return \Google\Cloud\Container\V1\NodePool\UpgradeSettings|null + */ + public function getUpgradeSettings() + { + return $this->upgrade_settings; + } + + public function hasUpgradeSettings() + { + return isset($this->upgrade_settings); + } + + public function clearUpgradeSettings() + { + unset($this->upgrade_settings); + } + + /** + * Specifies the upgrade settings for NAP created node pools + * + * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + * @param \Google\Cloud\Container\V1\NodePool\UpgradeSettings $var + * @return $this + */ + public function setUpgradeSettings($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool\UpgradeSettings::class); + $this->upgrade_settings = $var; + + return $this; + } + + /** + * Specifies the node management options for NAP created node-pools. + * + * Generated from protobuf field .google.container.v1.NodeManagement management = 4; + * @return \Google\Cloud\Container\V1\NodeManagement|null + */ + public function getManagement() + { + return $this->management; + } + + public function hasManagement() + { + return isset($this->management); + } + + public function clearManagement() + { + unset($this->management); + } + + /** + * Specifies the node management options for NAP created node-pools. + * + * Generated from protobuf field .google.container.v1.NodeManagement management = 4; + * @param \Google\Cloud\Container\V1\NodeManagement $var + * @return $this + */ + public function setManagement($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeManagement::class); + $this->management = $var; + + return $this; + } + + /** + * Deprecated. Minimum CPU platform to be used for NAP created node pools. + * The instance may be scheduled on the specified or newer CPU platform. + * Applicable values are the friendly names of CPU platforms, such as + * minCpuPlatform: Intel Haswell or + * minCpuPlatform: Intel Sandy Bridge. For more + * information, read [how to specify min CPU + * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). + * This field is deprecated, min_cpu_platform should be specified using + * `cloud.google.com/requested-min-cpu-platform` label selector on the pod. + * To unset the min cpu platform field pass "automatic" + * as field value. + * + * Generated from protobuf field string min_cpu_platform = 5 [deprecated = true]; + * @return string + * @deprecated + */ + public function getMinCpuPlatform() + { + @trigger_error('min_cpu_platform is deprecated.', E_USER_DEPRECATED); + return $this->min_cpu_platform; + } + + /** + * Deprecated. Minimum CPU platform to be used for NAP created node pools. + * The instance may be scheduled on the specified or newer CPU platform. + * Applicable values are the friendly names of CPU platforms, such as + * minCpuPlatform: Intel Haswell or + * minCpuPlatform: Intel Sandy Bridge. For more + * information, read [how to specify min CPU + * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). + * This field is deprecated, min_cpu_platform should be specified using + * `cloud.google.com/requested-min-cpu-platform` label selector on the pod. + * To unset the min cpu platform field pass "automatic" + * as field value. + * + * Generated from protobuf field string min_cpu_platform = 5 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setMinCpuPlatform($var) + { + @trigger_error('min_cpu_platform is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->min_cpu_platform = $var; + + return $this; + } + + /** + * Size of the disk attached to each node, specified in GB. + * The smallest allowed disk size is 10GB. + * If unspecified, the default disk size is 100GB. + * + * Generated from protobuf field int32 disk_size_gb = 6; + * @return int + */ + public function getDiskSizeGb() + { + return $this->disk_size_gb; + } + + /** + * Size of the disk attached to each node, specified in GB. + * The smallest allowed disk size is 10GB. + * If unspecified, the default disk size is 100GB. + * + * Generated from protobuf field int32 disk_size_gb = 6; + * @param int $var + * @return $this + */ + public function setDiskSizeGb($var) + { + GPBUtil::checkInt32($var); + $this->disk_size_gb = $var; + + return $this; + } + + /** + * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or + * 'pd-balanced') + * If unspecified, the default disk type is 'pd-standard' + * + * Generated from protobuf field string disk_type = 7; + * @return string + */ + public function getDiskType() + { + return $this->disk_type; + } + + /** + * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or + * 'pd-balanced') + * If unspecified, the default disk type is 'pd-standard' + * + * Generated from protobuf field string disk_type = 7; + * @param string $var + * @return $this + */ + public function setDiskType($var) + { + GPBUtil::checkString($var, True); + $this->disk_type = $var; + + return $this; + } + + /** + * Shielded Instance options. + * + * Generated from protobuf field .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + * @return \Google\Cloud\Container\V1\ShieldedInstanceConfig|null + */ + public function getShieldedInstanceConfig() + { + return $this->shielded_instance_config; + } + + public function hasShieldedInstanceConfig() + { + return isset($this->shielded_instance_config); + } + + public function clearShieldedInstanceConfig() + { + unset($this->shielded_instance_config); + } + + /** + * Shielded Instance options. + * + * Generated from protobuf field .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + * @param \Google\Cloud\Container\V1\ShieldedInstanceConfig $var + * @return $this + */ + public function setShieldedInstanceConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ShieldedInstanceConfig::class); + $this->shielded_instance_config = $var; + + return $this; + } + + /** + * The Customer Managed Encryption Key used to encrypt the boot disk attached + * to each node in the node pool. This should be of the form + * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. + * For more information about protecting resources with Cloud KMS Keys please + * see: + * https://cloud.google.com/compute/docs/disks/customer-managed-encryption + * + * Generated from protobuf field string boot_disk_kms_key = 9; + * @return string + */ + public function getBootDiskKmsKey() + { + return $this->boot_disk_kms_key; + } + + /** + * The Customer Managed Encryption Key used to encrypt the boot disk attached + * to each node in the node pool. This should be of the form + * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. + * For more information about protecting resources with Cloud KMS Keys please + * see: + * https://cloud.google.com/compute/docs/disks/customer-managed-encryption + * + * Generated from protobuf field string boot_disk_kms_key = 9; + * @param string $var + * @return $this + */ + public function setBootDiskKmsKey($var) + { + GPBUtil::checkString($var, True); + $this->boot_disk_kms_key = $var; + + return $this; + } + + /** + * The image type to use for NAP created node. Please see + * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for + * available image types. + * + * Generated from protobuf field string image_type = 10; + * @return string + */ + public function getImageType() + { + return $this->image_type; + } + + /** + * The image type to use for NAP created node. Please see + * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for + * available image types. + * + * Generated from protobuf field string image_type = 10; + * @param string $var + * @return $this + */ + public function setImageType($var) + { + GPBUtil::checkString($var, True); + $this->image_type = $var; + + return $this; + } + + /** + * Enable or disable Kubelet read only port. + * + * Generated from protobuf field optional bool insecure_kubelet_readonly_port_enabled = 13; + * @return bool + */ + public function getInsecureKubeletReadonlyPortEnabled() + { + return isset($this->insecure_kubelet_readonly_port_enabled) ? $this->insecure_kubelet_readonly_port_enabled : false; + } + + public function hasInsecureKubeletReadonlyPortEnabled() + { + return isset($this->insecure_kubelet_readonly_port_enabled); + } + + public function clearInsecureKubeletReadonlyPortEnabled() + { + unset($this->insecure_kubelet_readonly_port_enabled); + } + + /** + * Enable or disable Kubelet read only port. + * + * Generated from protobuf field optional bool insecure_kubelet_readonly_port_enabled = 13; + * @param bool $var + * @return $this + */ + public function setInsecureKubeletReadonlyPortEnabled($var) + { + GPBUtil::checkBool($var); + $this->insecure_kubelet_readonly_port_enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BestEffortProvisioning.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BestEffortProvisioning.php new file mode 100644 index 000000000000..a9a398e1599e --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BestEffortProvisioning.php @@ -0,0 +1,117 @@ +google.container.v1.BestEffortProvisioning + */ +class BestEffortProvisioning extends \Google\Protobuf\Internal\Message +{ + /** + * When this is enabled, cluster/node pool creations will ignore non-fatal + * errors like stockout to best provision as many nodes as possible right now + * and eventually bring up all target number of nodes + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + /** + * Minimum number of nodes to be provisioned to be considered as succeeded, + * and the rest of nodes will be provisioned gradually and eventually when + * stockout issue has been resolved. + * + * Generated from protobuf field int32 min_provision_nodes = 2; + */ + protected $min_provision_nodes = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * When this is enabled, cluster/node pool creations will ignore non-fatal + * errors like stockout to best provision as many nodes as possible right now + * and eventually bring up all target number of nodes + * @type int $min_provision_nodes + * Minimum number of nodes to be provisioned to be considered as succeeded, + * and the rest of nodes will be provisioned gradually and eventually when + * stockout issue has been resolved. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * When this is enabled, cluster/node pool creations will ignore non-fatal + * errors like stockout to best provision as many nodes as possible right now + * and eventually bring up all target number of nodes + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * When this is enabled, cluster/node pool creations will ignore non-fatal + * errors like stockout to best provision as many nodes as possible right now + * and eventually bring up all target number of nodes + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + + /** + * Minimum number of nodes to be provisioned to be considered as succeeded, + * and the rest of nodes will be provisioned gradually and eventually when + * stockout issue has been resolved. + * + * Generated from protobuf field int32 min_provision_nodes = 2; + * @return int + */ + public function getMinProvisionNodes() + { + return $this->min_provision_nodes; + } + + /** + * Minimum number of nodes to be provisioned to be considered as succeeded, + * and the rest of nodes will be provisioned gradually and eventually when + * stockout issue has been resolved. + * + * Generated from protobuf field int32 min_provision_nodes = 2; + * @param int $var + * @return $this + */ + public function setMinProvisionNodes($var) + { + GPBUtil::checkInt32($var); + $this->min_provision_nodes = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization.php new file mode 100644 index 000000000000..d97177fdd9b4 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization.php @@ -0,0 +1,118 @@ +google.container.v1.BinaryAuthorization + */ +class BinaryAuthorization extends \Google\Protobuf\Internal\Message +{ + /** + * This field is deprecated. Leave this unset and instead configure + * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to + * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored. + * + * Generated from protobuf field bool enabled = 1 [deprecated = true]; + * @deprecated + */ + protected $enabled = false; + /** + * Mode of operation for binauthz policy evaluation. If unspecified, defaults + * to DISABLED. + * + * Generated from protobuf field .google.container.v1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; + */ + protected $evaluation_mode = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * This field is deprecated. Leave this unset and instead configure + * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to + * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored. + * @type int $evaluation_mode + * Mode of operation for binauthz policy evaluation. If unspecified, defaults + * to DISABLED. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * This field is deprecated. Leave this unset and instead configure + * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to + * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored. + * + * Generated from protobuf field bool enabled = 1 [deprecated = true]; + * @return bool + * @deprecated + */ + public function getEnabled() + { + @trigger_error('enabled is deprecated.', E_USER_DEPRECATED); + return $this->enabled; + } + + /** + * This field is deprecated. Leave this unset and instead configure + * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to + * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored. + * + * Generated from protobuf field bool enabled = 1 [deprecated = true]; + * @param bool $var + * @return $this + * @deprecated + */ + public function setEnabled($var) + { + @trigger_error('enabled is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + + /** + * Mode of operation for binauthz policy evaluation. If unspecified, defaults + * to DISABLED. + * + * Generated from protobuf field .google.container.v1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; + * @return int + */ + public function getEvaluationMode() + { + return $this->evaluation_mode; + } + + /** + * Mode of operation for binauthz policy evaluation. If unspecified, defaults + * to DISABLED. + * + * Generated from protobuf field .google.container.v1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; + * @param int $var + * @return $this + */ + public function setEvaluationMode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\BinaryAuthorization\EvaluationMode::class); + $this->evaluation_mode = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization/EvaluationMode.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization/EvaluationMode.php new file mode 100644 index 000000000000..425ec404c0bf --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization/EvaluationMode.php @@ -0,0 +1,66 @@ +google.container.v1.BinaryAuthorization.EvaluationMode + */ +class EvaluationMode +{ + /** + * Default value + * + * Generated from protobuf enum EVALUATION_MODE_UNSPECIFIED = 0; + */ + const EVALUATION_MODE_UNSPECIFIED = 0; + /** + * Disable BinaryAuthorization + * + * Generated from protobuf enum DISABLED = 1; + */ + const DISABLED = 1; + /** + * Enforce Kubernetes admission requests with BinaryAuthorization using the + * project's singleton policy. This is equivalent to setting the + * enabled boolean to true. + * + * Generated from protobuf enum PROJECT_SINGLETON_POLICY_ENFORCE = 2; + */ + const PROJECT_SINGLETON_POLICY_ENFORCE = 2; + + private static $valueToName = [ + self::EVALUATION_MODE_UNSPECIFIED => 'EVALUATION_MODE_UNSPECIFIED', + self::DISABLED => 'DISABLED', + self::PROJECT_SINGLETON_POLICY_ENFORCE => 'PROJECT_SINGLETON_POLICY_ENFORCE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(EvaluationMode::class, \Google\Cloud\Container\V1\BinaryAuthorization_EvaluationMode::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings.php new file mode 100644 index 000000000000..e139c636a105 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings.php @@ -0,0 +1,123 @@ +google.container.v1.BlueGreenSettings + */ +class BlueGreenSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Time needed after draining entire blue pool. After this period, blue pool + * will be cleaned up. + * + * Generated from protobuf field optional .google.protobuf.Duration node_pool_soak_duration = 2; + */ + protected $node_pool_soak_duration = null; + protected $rollout_policy; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Container\V1\BlueGreenSettings\StandardRolloutPolicy $standard_rollout_policy + * Standard policy for the blue-green upgrade. + * @type \Google\Protobuf\Duration $node_pool_soak_duration + * Time needed after draining entire blue pool. After this period, blue pool + * will be cleaned up. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Standard policy for the blue-green upgrade. + * + * Generated from protobuf field .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; + * @return \Google\Cloud\Container\V1\BlueGreenSettings\StandardRolloutPolicy|null + */ + public function getStandardRolloutPolicy() + { + return $this->readOneof(1); + } + + public function hasStandardRolloutPolicy() + { + return $this->hasOneof(1); + } + + /** + * Standard policy for the blue-green upgrade. + * + * Generated from protobuf field .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; + * @param \Google\Cloud\Container\V1\BlueGreenSettings\StandardRolloutPolicy $var + * @return $this + */ + public function setStandardRolloutPolicy($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\BlueGreenSettings\StandardRolloutPolicy::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Time needed after draining entire blue pool. After this period, blue pool + * will be cleaned up. + * + * Generated from protobuf field optional .google.protobuf.Duration node_pool_soak_duration = 2; + * @return \Google\Protobuf\Duration|null + */ + public function getNodePoolSoakDuration() + { + return $this->node_pool_soak_duration; + } + + public function hasNodePoolSoakDuration() + { + return isset($this->node_pool_soak_duration); + } + + public function clearNodePoolSoakDuration() + { + unset($this->node_pool_soak_duration); + } + + /** + * Time needed after draining entire blue pool. After this period, blue pool + * will be cleaned up. + * + * Generated from protobuf field optional .google.protobuf.Duration node_pool_soak_duration = 2; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setNodePoolSoakDuration($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->node_pool_soak_duration = $var; + + return $this; + } + + /** + * @return string + */ + public function getRolloutPolicy() + { + return $this->whichOneof("rollout_policy"); + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings/StandardRolloutPolicy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings/StandardRolloutPolicy.php new file mode 100644 index 000000000000..8008e05364d2 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings/StandardRolloutPolicy.php @@ -0,0 +1,158 @@ +google.container.v1.BlueGreenSettings.StandardRolloutPolicy + */ +class StandardRolloutPolicy extends \Google\Protobuf\Internal\Message +{ + /** + * Soak time after each batch gets drained. Default to zero. + * + * Generated from protobuf field optional .google.protobuf.Duration batch_soak_duration = 3; + */ + protected $batch_soak_duration = null; + protected $update_batch_size; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $batch_percentage + * Percentage of the blue pool nodes to drain in a batch. + * The range of this field should be (0.0, 1.0]. + * @type int $batch_node_count + * Number of blue nodes to drain in a batch. + * @type \Google\Protobuf\Duration $batch_soak_duration + * Soak time after each batch gets drained. Default to zero. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Percentage of the blue pool nodes to drain in a batch. + * The range of this field should be (0.0, 1.0]. + * + * Generated from protobuf field float batch_percentage = 1; + * @return float + */ + public function getBatchPercentage() + { + return $this->readOneof(1); + } + + public function hasBatchPercentage() + { + return $this->hasOneof(1); + } + + /** + * Percentage of the blue pool nodes to drain in a batch. + * The range of this field should be (0.0, 1.0]. + * + * Generated from protobuf field float batch_percentage = 1; + * @param float $var + * @return $this + */ + public function setBatchPercentage($var) + { + GPBUtil::checkFloat($var); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Number of blue nodes to drain in a batch. + * + * Generated from protobuf field int32 batch_node_count = 2; + * @return int + */ + public function getBatchNodeCount() + { + return $this->readOneof(2); + } + + public function hasBatchNodeCount() + { + return $this->hasOneof(2); + } + + /** + * Number of blue nodes to drain in a batch. + * + * Generated from protobuf field int32 batch_node_count = 2; + * @param int $var + * @return $this + */ + public function setBatchNodeCount($var) + { + GPBUtil::checkInt32($var); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Soak time after each batch gets drained. Default to zero. + * + * Generated from protobuf field optional .google.protobuf.Duration batch_soak_duration = 3; + * @return \Google\Protobuf\Duration|null + */ + public function getBatchSoakDuration() + { + return $this->batch_soak_duration; + } + + public function hasBatchSoakDuration() + { + return isset($this->batch_soak_duration); + } + + public function clearBatchSoakDuration() + { + unset($this->batch_soak_duration); + } + + /** + * Soak time after each batch gets drained. Default to zero. + * + * Generated from protobuf field optional .google.protobuf.Duration batch_soak_duration = 3; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setBatchSoakDuration($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->batch_soak_duration = $var; + + return $this; + } + + /** + * @return string + */ + public function getUpdateBatchSize() + { + return $this->whichOneof("update_batch_size"); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(StandardRolloutPolicy::class, \Google\Cloud\Container\V1\BlueGreenSettings_StandardRolloutPolicy::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CancelOperationRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CancelOperationRequest.php new file mode 100644 index 000000000000..b0240be146af --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CancelOperationRequest.php @@ -0,0 +1,249 @@ +google.container.v1.CancelOperationRequest + */ +class CancelOperationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * operation resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The server-assigned `name` of the operation. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string operation_id = 3 [deprecated = true]; + * @deprecated + */ + protected $operation_id = ''; + /** + * The name (project, location, operation id) of the operation to cancel. + * Specified in the format `projects/*/locations/*/operations/*`. + * + * Generated from protobuf field string name = 4; + */ + protected $name = ''; + + /** + * @param string $projectId Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @param string $zone Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * operation resides. This field has been deprecated and replaced by the name + * field. + * @param string $operationId Deprecated. The server-assigned `name` of the operation. + * This field has been deprecated and replaced by the name field. + * + * @return \Google\Cloud\Container\V1\CancelOperationRequest + * + * @experimental + */ + public static function build(string $projectId, string $zone, string $operationId): self + { + return (new self()) + ->setProjectId($projectId) + ->setZone($zone) + ->setOperationId($operationId); + } + + /** + * @param string $name The name (project, location, operation id) of the operation to cancel. + * Specified in the format `projects/*/locations/*/operations/*`. + * + * @return \Google\Cloud\Container\V1\CancelOperationRequest + * + * @experimental + */ + public static function buildFromName(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * operation resides. This field has been deprecated and replaced by the name + * field. + * @type string $operation_id + * Deprecated. The server-assigned `name` of the operation. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, operation id) of the operation to cancel. + * Specified in the format `projects/*/locations/*/operations/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * operation resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * operation resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The server-assigned `name` of the operation. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string operation_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getOperationId() + { + @trigger_error('operation_id is deprecated.', E_USER_DEPRECATED); + return $this->operation_id; + } + + /** + * Deprecated. The server-assigned `name` of the operation. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string operation_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setOperationId($var) + { + @trigger_error('operation_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->operation_id = $var; + + return $this; + } + + /** + * The name (project, location, operation id) of the operation to cancel. + * Specified in the format `projects/*/locations/*/operations/*`. + * + * Generated from protobuf field string name = 4; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, operation id) of the operation to cancel. + * Specified in the format `projects/*/locations/*/operations/*`. + * + * Generated from protobuf field string name = 4; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CheckAutopilotCompatibilityRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CheckAutopilotCompatibilityRequest.php new file mode 100644 index 000000000000..700b298b2a29 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CheckAutopilotCompatibilityRequest.php @@ -0,0 +1,72 @@ +google.container.v1.CheckAutopilotCompatibilityRequest + */ +class CheckAutopilotCompatibilityRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The name (project, location, cluster) of the cluster to retrieve. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name (project, location, cluster) of the cluster to retrieve. + * Specified in the format `projects/*/locations/*/clusters/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The name (project, location, cluster) of the cluster to retrieve. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster) of the cluster to retrieve. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CheckAutopilotCompatibilityResponse.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CheckAutopilotCompatibilityResponse.php new file mode 100644 index 000000000000..18b56a4a8a04 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CheckAutopilotCompatibilityResponse.php @@ -0,0 +1,101 @@ +google.container.v1.CheckAutopilotCompatibilityResponse + */ +class CheckAutopilotCompatibilityResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of issues for the given operation. + * + * Generated from protobuf field repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; + */ + private $issues; + /** + * The summary of the autopilot compatibility response. + * + * Generated from protobuf field string summary = 2; + */ + protected $summary = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\Container\V1\AutopilotCompatibilityIssue>|\Google\Protobuf\Internal\RepeatedField $issues + * The list of issues for the given operation. + * @type string $summary + * The summary of the autopilot compatibility response. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The list of issues for the given operation. + * + * Generated from protobuf field repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getIssues() + { + return $this->issues; + } + + /** + * The list of issues for the given operation. + * + * Generated from protobuf field repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; + * @param array<\Google\Cloud\Container\V1\AutopilotCompatibilityIssue>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setIssues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\AutopilotCompatibilityIssue::class); + $this->issues = $arr; + + return $this; + } + + /** + * The summary of the autopilot compatibility response. + * + * Generated from protobuf field string summary = 2; + * @return string + */ + public function getSummary() + { + return $this->summary; + } + + /** + * The summary of the autopilot compatibility response. + * + * Generated from protobuf field string summary = 2; + * @param string $var + * @return $this + */ + public function setSummary($var) + { + GPBUtil::checkString($var, True); + $this->summary = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClientCertificateConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClientCertificateConfig.php new file mode 100644 index 000000000000..5ea0c28d3441 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClientCertificateConfig.php @@ -0,0 +1,67 @@ +google.container.v1.ClientCertificateConfig + */ +class ClientCertificateConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Issue a client certificate. + * + * Generated from protobuf field bool issue_client_certificate = 1; + */ + protected $issue_client_certificate = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $issue_client_certificate + * Issue a client certificate. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Issue a client certificate. + * + * Generated from protobuf field bool issue_client_certificate = 1; + * @return bool + */ + public function getIssueClientCertificate() + { + return $this->issue_client_certificate; + } + + /** + * Issue a client certificate. + * + * Generated from protobuf field bool issue_client_certificate = 1; + * @param bool $var + * @return $this + */ + public function setIssueClientCertificate($var) + { + GPBUtil::checkBool($var); + $this->issue_client_certificate = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CloudRunConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CloudRunConfig.php new file mode 100644 index 000000000000..2ad11c8938e1 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CloudRunConfig.php @@ -0,0 +1,101 @@ +google.container.v1.CloudRunConfig + */ +class CloudRunConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Whether Cloud Run addon is enabled for this cluster. + * + * Generated from protobuf field bool disabled = 1; + */ + protected $disabled = false; + /** + * Which load balancer type is installed for Cloud Run. + * + * Generated from protobuf field .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + */ + protected $load_balancer_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $disabled + * Whether Cloud Run addon is enabled for this cluster. + * @type int $load_balancer_type + * Which load balancer type is installed for Cloud Run. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether Cloud Run addon is enabled for this cluster. + * + * Generated from protobuf field bool disabled = 1; + * @return bool + */ + public function getDisabled() + { + return $this->disabled; + } + + /** + * Whether Cloud Run addon is enabled for this cluster. + * + * Generated from protobuf field bool disabled = 1; + * @param bool $var + * @return $this + */ + public function setDisabled($var) + { + GPBUtil::checkBool($var); + $this->disabled = $var; + + return $this; + } + + /** + * Which load balancer type is installed for Cloud Run. + * + * Generated from protobuf field .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * @return int + */ + public function getLoadBalancerType() + { + return $this->load_balancer_type; + } + + /** + * Which load balancer type is installed for Cloud Run. + * + * Generated from protobuf field .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * @param int $var + * @return $this + */ + public function setLoadBalancerType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\CloudRunConfig\LoadBalancerType::class); + $this->load_balancer_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CloudRunConfig/LoadBalancerType.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CloudRunConfig/LoadBalancerType.php new file mode 100644 index 000000000000..03aa3ae7995e --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CloudRunConfig/LoadBalancerType.php @@ -0,0 +1,64 @@ +google.container.v1.CloudRunConfig.LoadBalancerType + */ +class LoadBalancerType +{ + /** + * Load balancer type for Cloud Run is unspecified. + * + * Generated from protobuf enum LOAD_BALANCER_TYPE_UNSPECIFIED = 0; + */ + const LOAD_BALANCER_TYPE_UNSPECIFIED = 0; + /** + * Install external load balancer for Cloud Run. + * + * Generated from protobuf enum LOAD_BALANCER_TYPE_EXTERNAL = 1; + */ + const LOAD_BALANCER_TYPE_EXTERNAL = 1; + /** + * Install internal load balancer for Cloud Run. + * + * Generated from protobuf enum LOAD_BALANCER_TYPE_INTERNAL = 2; + */ + const LOAD_BALANCER_TYPE_INTERNAL = 2; + + private static $valueToName = [ + self::LOAD_BALANCER_TYPE_UNSPECIFIED => 'LOAD_BALANCER_TYPE_UNSPECIFIED', + self::LOAD_BALANCER_TYPE_EXTERNAL => 'LOAD_BALANCER_TYPE_EXTERNAL', + self::LOAD_BALANCER_TYPE_INTERNAL => 'LOAD_BALANCER_TYPE_INTERNAL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(LoadBalancerType::class, \Google\Cloud\Container\V1\CloudRunConfig_LoadBalancerType::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Cluster.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Cluster.php new file mode 100644 index 000000000000..fc63afec75d5 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Cluster.php @@ -0,0 +1,3164 @@ +google.container.v1.Cluster + */ +class Cluster extends \Google\Protobuf\Internal\Message +{ + /** + * The name of this cluster. The name must be unique within this project + * and location (e.g. zone or region), and can be up to 40 characters with + * the following restrictions: + * * Lowercase letters, numbers, and hyphens only. + * * Must start with a letter. + * * Must end with a number or a letter. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * An optional description of this cluster. + * + * Generated from protobuf field string description = 2; + */ + protected $description = ''; + /** + * The number of nodes to create in this cluster. You must ensure that your + * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) + * is sufficient for this number of instances. You must also have available + * firewall and routes quota. + * For requests, this field should only be used in lieu of a + * "node_pool" object, since this configuration (along with the + * "node_config") will be used to create a "NodePool" object with an + * auto-generated name. Do not use this and a node_pool at the same time. + * This field is deprecated, use node_pool.initial_node_count instead. + * + * Generated from protobuf field int32 initial_node_count = 3 [deprecated = true]; + * @deprecated + */ + protected $initial_node_count = 0; + /** + * Parameters used in creating the cluster's nodes. + * For requests, this field should only be used in lieu of a + * "node_pool" object, since this configuration (along with the + * "initial_node_count") will be used to create a "NodePool" object with an + * auto-generated name. Do not use this and a node_pool at the same time. + * For responses, this field will be populated with the node configuration of + * the first node pool. (For configuration of each node pool, see + * `node_pool.config`) + * If unspecified, the defaults are used. + * This field is deprecated, use node_pool.config instead. + * + * Generated from protobuf field .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; + * @deprecated + */ + protected $node_config = null; + /** + * The authentication information for accessing the master endpoint. + * If unspecified, the defaults are used: + * For clusters before v1.12, if master_auth is unspecified, `username` will + * be set to "admin", a random password will be generated, and a client + * certificate will be issued. + * + * Generated from protobuf field .google.container.v1.MasterAuth master_auth = 5; + */ + protected $master_auth = null; + /** + * The logging service the cluster should use to write logs. + * Currently available options: + * * `logging.googleapis.com/kubernetes` - The Cloud Logging + * service with a Kubernetes-native resource model + * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + * available as of GKE 1.15). + * * `none` - no logs will be exported from the cluster. + * If left as an empty string,`logging.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. + * + * Generated from protobuf field string logging_service = 6; + */ + protected $logging_service = ''; + /** + * The monitoring service the cluster should use to write metrics. + * Currently available options: + * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + * service with a Kubernetes-native resource model + * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + * longer available as of GKE 1.15). + * * `none` - No metrics will be exported from the cluster. + * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. + * + * Generated from protobuf field string monitoring_service = 7; + */ + protected $monitoring_service = ''; + /** + * The name of the Google Compute Engine + * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) + * to which the cluster is connected. If left unspecified, the `default` + * network will be used. + * + * Generated from protobuf field string network = 8; + */ + protected $network = ''; + /** + * The IP address range of the container pods in this cluster, in + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`). Leave blank to have + * one automatically chosen or specify a `/14` block in `10.0.0.0/8`. + * + * Generated from protobuf field string cluster_ipv4_cidr = 9; + */ + protected $cluster_ipv4_cidr = ''; + /** + * Configurations for the various addons available to run in the cluster. + * + * Generated from protobuf field .google.container.v1.AddonsConfig addons_config = 10; + */ + protected $addons_config = null; + /** + * The name of the Google Compute Engine + * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which + * the cluster is connected. + * + * Generated from protobuf field string subnetwork = 11; + */ + protected $subnetwork = ''; + /** + * The node pools associated with this cluster. + * This field should not be set if "node_config" or "initial_node_count" are + * specified. + * + * Generated from protobuf field repeated .google.container.v1.NodePool node_pools = 12; + */ + private $node_pools; + /** + * The list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster's nodes should be located. + * This field provides a default value if + * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) + * are not specified during node pool creation. + * Warning: changing cluster locations will update the + * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) + * of all node pools and will result in nodes being added and/or removed. + * + * Generated from protobuf field repeated string locations = 13; + */ + private $locations; + /** + * Kubernetes alpha features are enabled on this cluster. This includes alpha + * API groups (e.g. v1alpha1) and features that may not be production ready in + * the kubernetes version of the master and nodes. + * The cluster has no SLA for uptime and master/node upgrades are disabled. + * Alpha enabled clusters are automatically deleted thirty days after + * creation. + * + * Generated from protobuf field bool enable_kubernetes_alpha = 14; + */ + protected $enable_kubernetes_alpha = false; + /** + * The resource labels for the cluster to use to annotate any related + * Google Compute Engine resources. + * + * Generated from protobuf field map resource_labels = 15; + */ + private $resource_labels; + /** + * The fingerprint of the set of labels for this cluster. + * + * Generated from protobuf field string label_fingerprint = 16; + */ + protected $label_fingerprint = ''; + /** + * Configuration for the legacy ABAC authorization mode. + * + * Generated from protobuf field .google.container.v1.LegacyAbac legacy_abac = 18; + */ + protected $legacy_abac = null; + /** + * Configuration options for the NetworkPolicy feature. + * + * Generated from protobuf field .google.container.v1.NetworkPolicy network_policy = 19; + */ + protected $network_policy = null; + /** + * Configuration for cluster IP allocation. + * + * Generated from protobuf field .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; + */ + protected $ip_allocation_policy = null; + /** + * The configuration options for master authorized networks feature. + * + * Generated from protobuf field .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + protected $master_authorized_networks_config = null; + /** + * Configure the maintenance policy for this cluster. + * + * Generated from protobuf field .google.container.v1.MaintenancePolicy maintenance_policy = 23; + */ + protected $maintenance_policy = null; + /** + * Configuration for Binary Authorization. + * + * Generated from protobuf field .google.container.v1.BinaryAuthorization binary_authorization = 24; + */ + protected $binary_authorization = null; + /** + * Cluster-level autoscaling configuration. + * + * Generated from protobuf field .google.container.v1.ClusterAutoscaling autoscaling = 26; + */ + protected $autoscaling = null; + /** + * Configuration for cluster networking. + * + * Generated from protobuf field .google.container.v1.NetworkConfig network_config = 27; + */ + protected $network_config = null; + /** + * The default constraint on the maximum number of pods that can be run + * simultaneously on a node in the node pool of this cluster. Only honored + * if cluster created with IP Alias support. + * + * Generated from protobuf field .google.container.v1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + protected $default_max_pods_constraint = null; + /** + * Configuration for exporting resource usages. Resource usage export is + * disabled when this config is unspecified. + * + * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; + */ + protected $resource_usage_export_config = null; + /** + * Configuration controlling RBAC group membership information. + * + * Generated from protobuf field .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + */ + protected $authenticator_groups_config = null; + /** + * Configuration for private cluster. + * + * Generated from protobuf field .google.container.v1.PrivateClusterConfig private_cluster_config = 37; + */ + protected $private_cluster_config = null; + /** + * Configuration of etcd encryption. + * + * Generated from protobuf field .google.container.v1.DatabaseEncryption database_encryption = 38; + */ + protected $database_encryption = null; + /** + * Cluster-level Vertical Pod Autoscaling configuration. + * + * Generated from protobuf field .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + */ + protected $vertical_pod_autoscaling = null; + /** + * Shielded Nodes configuration. + * + * Generated from protobuf field .google.container.v1.ShieldedNodes shielded_nodes = 40; + */ + protected $shielded_nodes = null; + /** + * Release channel configuration. If left unspecified on cluster creation and + * a version is specified, the cluster is enrolled in the most mature release + * channel where the version is available (first checking STABLE, then + * REGULAR, and finally RAPID). Otherwise, if no release channel + * configuration and no version is specified, the cluster is enrolled in the + * REGULAR channel with its default version. + * + * Generated from protobuf field .google.container.v1.ReleaseChannel release_channel = 41; + */ + protected $release_channel = null; + /** + * Configuration for the use of Kubernetes Service Accounts in GCP IAM + * policies. + * + * Generated from protobuf field .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + */ + protected $workload_identity_config = null; + /** + * Configuration for issuance of mTLS keys and certificates to Kubernetes + * pods. + * + * Generated from protobuf field .google.container.v1.MeshCertificates mesh_certificates = 67; + */ + protected $mesh_certificates = null; + /** + * Configuration for the fine-grained cost management feature. + * + * Generated from protobuf field .google.container.v1.CostManagementConfig cost_management_config = 45; + */ + protected $cost_management_config = null; + /** + * Notification configuration of the cluster. + * + * Generated from protobuf field .google.container.v1.NotificationConfig notification_config = 49; + */ + protected $notification_config = null; + /** + * Configuration of Confidential Nodes. + * All the nodes in the cluster will be Confidential VM once enabled. + * + * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 50; + */ + protected $confidential_nodes = null; + /** + * Configuration for Identity Service component. + * + * Generated from protobuf field .google.container.v1.IdentityServiceConfig identity_service_config = 54; + */ + protected $identity_service_config = null; + /** + * [Output only] Server-defined URL for the resource. + * + * Generated from protobuf field string self_link = 100; + */ + protected $self_link = ''; + /** + * [Output only] The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field is deprecated, use location instead. + * + * Generated from protobuf field string zone = 101 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * [Output only] The IP address of this cluster's master endpoint. + * The endpoint can be accessed from the internet at + * `https://username:password@endpoint/`. + * See the `masterAuth` property of this resource for username and + * password information. + * + * Generated from protobuf field string endpoint = 102; + */ + protected $endpoint = ''; + /** + * The initial Kubernetes version for this cluster. Valid versions are those + * found in validMasterVersions returned by getServerConfig. The version can + * be upgraded over time; such upgrades are reflected in + * currentMasterVersion and currentNodeVersion. + * Users may specify either explicit versions offered by + * Kubernetes Engine or version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "","-": picks the default Kubernetes version + * + * Generated from protobuf field string initial_cluster_version = 103; + */ + protected $initial_cluster_version = ''; + /** + * [Output only] The current software version of the master endpoint. + * + * Generated from protobuf field string current_master_version = 104; + */ + protected $current_master_version = ''; + /** + * [Output only] Deprecated, use + * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools) + * instead. The current version of the node software components. If they are + * currently at multiple versions because they're in the process of being + * upgraded, this reflects the minimum version of all nodes. + * + * Generated from protobuf field string current_node_version = 105 [deprecated = true]; + * @deprecated + */ + protected $current_node_version = ''; + /** + * [Output only] The time the cluster was created, in + * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * + * Generated from protobuf field string create_time = 106; + */ + protected $create_time = ''; + /** + * [Output only] The current status of this cluster. + * + * Generated from protobuf field .google.container.v1.Cluster.Status status = 107; + */ + protected $status = 0; + /** + * [Output only] Deprecated. Use conditions instead. + * Additional information about the current status of this + * cluster, if available. + * + * Generated from protobuf field string status_message = 108 [deprecated = true]; + * @deprecated + */ + protected $status_message = ''; + /** + * [Output only] The size of the address space on each node for hosting + * containers. This is provisioned from within the `container_ipv4_cidr` + * range. This field will only be set when cluster is in route-based network + * mode. + * + * Generated from protobuf field int32 node_ipv4_cidr_size = 109; + */ + protected $node_ipv4_cidr_size = 0; + /** + * [Output only] The IP address range of the Kubernetes services in + * this cluster, in + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `1.2.3.4/29`). Service addresses are + * typically put in the last `/16` from the container CIDR. + * + * Generated from protobuf field string services_ipv4_cidr = 110; + */ + protected $services_ipv4_cidr = ''; + /** + * Deprecated. Use node_pools.instance_group_urls. + * + * Generated from protobuf field repeated string instance_group_urls = 111 [deprecated = true]; + * @deprecated + */ + private $instance_group_urls; + /** + * [Output only] The number of nodes currently in the cluster. Deprecated. + * Call Kubernetes API directly to retrieve node information. + * + * Generated from protobuf field int32 current_node_count = 112 [deprecated = true]; + * @deprecated + */ + protected $current_node_count = 0; + /** + * [Output only] The time the cluster will be automatically + * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * + * Generated from protobuf field string expire_time = 113; + */ + protected $expire_time = ''; + /** + * [Output only] The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + * or + * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + * in which the cluster resides. + * + * Generated from protobuf field string location = 114; + */ + protected $location = ''; + /** + * Enable the ability to use Cloud TPUs in this cluster. + * + * Generated from protobuf field bool enable_tpu = 115; + */ + protected $enable_tpu = false; + /** + * [Output only] The IP address range of the Cloud TPUs in this cluster, in + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `1.2.3.4/29`). + * + * Generated from protobuf field string tpu_ipv4_cidr_block = 116; + */ + protected $tpu_ipv4_cidr_block = ''; + /** + * Which conditions caused the current cluster state. + * + * Generated from protobuf field repeated .google.container.v1.StatusCondition conditions = 118; + */ + private $conditions; + /** + * Autopilot configuration for the cluster. + * + * Generated from protobuf field .google.container.v1.Autopilot autopilot = 128; + */ + protected $autopilot = null; + /** + * Output only. Unique id for the cluster. + * + * Generated from protobuf field string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $id = ''; + /** + * Default NodePool settings for the entire cluster. These settings are + * overridden if specified on the specific NodePool object. + * + * Generated from protobuf field optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; + */ + protected $node_pool_defaults = null; + /** + * Logging configuration for the cluster. + * + * Generated from protobuf field .google.container.v1.LoggingConfig logging_config = 132; + */ + protected $logging_config = null; + /** + * Monitoring configuration for the cluster. + * + * Generated from protobuf field .google.container.v1.MonitoringConfig monitoring_config = 133; + */ + protected $monitoring_config = null; + /** + * Node pool configs that apply to all auto-provisioned node pools + * in autopilot clusters and node auto-provisioning enabled clusters. + * + * Generated from protobuf field .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; + */ + protected $node_pool_auto_config = null; + /** + * This checksum is computed by the server based on the value of cluster + * fields, and may be sent on update requests to ensure the client has an + * up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 139; + */ + protected $etag = ''; + /** + * Fleet information for the cluster. + * + * Generated from protobuf field .google.container.v1.Fleet fleet = 140; + */ + protected $fleet = null; + /** + * Enable/Disable Security Posture API features for the cluster. + * + * Generated from protobuf field .google.container.v1.SecurityPostureConfig security_posture_config = 145; + */ + protected $security_posture_config = null; + /** + * Beta APIs Config + * + * Generated from protobuf field .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; + */ + protected $enable_k8s_beta_apis = null; + /** + * GKE Enterprise Configuration. + * + * Generated from protobuf field .google.container.v1.EnterpriseConfig enterprise_config = 149; + */ + protected $enterprise_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of this cluster. The name must be unique within this project + * and location (e.g. zone or region), and can be up to 40 characters with + * the following restrictions: + * * Lowercase letters, numbers, and hyphens only. + * * Must start with a letter. + * * Must end with a number or a letter. + * @type string $description + * An optional description of this cluster. + * @type int $initial_node_count + * The number of nodes to create in this cluster. You must ensure that your + * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) + * is sufficient for this number of instances. You must also have available + * firewall and routes quota. + * For requests, this field should only be used in lieu of a + * "node_pool" object, since this configuration (along with the + * "node_config") will be used to create a "NodePool" object with an + * auto-generated name. Do not use this and a node_pool at the same time. + * This field is deprecated, use node_pool.initial_node_count instead. + * @type \Google\Cloud\Container\V1\NodeConfig $node_config + * Parameters used in creating the cluster's nodes. + * For requests, this field should only be used in lieu of a + * "node_pool" object, since this configuration (along with the + * "initial_node_count") will be used to create a "NodePool" object with an + * auto-generated name. Do not use this and a node_pool at the same time. + * For responses, this field will be populated with the node configuration of + * the first node pool. (For configuration of each node pool, see + * `node_pool.config`) + * If unspecified, the defaults are used. + * This field is deprecated, use node_pool.config instead. + * @type \Google\Cloud\Container\V1\MasterAuth $master_auth + * The authentication information for accessing the master endpoint. + * If unspecified, the defaults are used: + * For clusters before v1.12, if master_auth is unspecified, `username` will + * be set to "admin", a random password will be generated, and a client + * certificate will be issued. + * @type string $logging_service + * The logging service the cluster should use to write logs. + * Currently available options: + * * `logging.googleapis.com/kubernetes` - The Cloud Logging + * service with a Kubernetes-native resource model + * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + * available as of GKE 1.15). + * * `none` - no logs will be exported from the cluster. + * If left as an empty string,`logging.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. + * @type string $monitoring_service + * The monitoring service the cluster should use to write metrics. + * Currently available options: + * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + * service with a Kubernetes-native resource model + * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + * longer available as of GKE 1.15). + * * `none` - No metrics will be exported from the cluster. + * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. + * @type string $network + * The name of the Google Compute Engine + * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) + * to which the cluster is connected. If left unspecified, the `default` + * network will be used. + * @type string $cluster_ipv4_cidr + * The IP address range of the container pods in this cluster, in + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`). Leave blank to have + * one automatically chosen or specify a `/14` block in `10.0.0.0/8`. + * @type \Google\Cloud\Container\V1\AddonsConfig $addons_config + * Configurations for the various addons available to run in the cluster. + * @type string $subnetwork + * The name of the Google Compute Engine + * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which + * the cluster is connected. + * @type array<\Google\Cloud\Container\V1\NodePool>|\Google\Protobuf\Internal\RepeatedField $node_pools + * The node pools associated with this cluster. + * This field should not be set if "node_config" or "initial_node_count" are + * specified. + * @type array|\Google\Protobuf\Internal\RepeatedField $locations + * The list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster's nodes should be located. + * This field provides a default value if + * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) + * are not specified during node pool creation. + * Warning: changing cluster locations will update the + * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) + * of all node pools and will result in nodes being added and/or removed. + * @type bool $enable_kubernetes_alpha + * Kubernetes alpha features are enabled on this cluster. This includes alpha + * API groups (e.g. v1alpha1) and features that may not be production ready in + * the kubernetes version of the master and nodes. + * The cluster has no SLA for uptime and master/node upgrades are disabled. + * Alpha enabled clusters are automatically deleted thirty days after + * creation. + * @type array|\Google\Protobuf\Internal\MapField $resource_labels + * The resource labels for the cluster to use to annotate any related + * Google Compute Engine resources. + * @type string $label_fingerprint + * The fingerprint of the set of labels for this cluster. + * @type \Google\Cloud\Container\V1\LegacyAbac $legacy_abac + * Configuration for the legacy ABAC authorization mode. + * @type \Google\Cloud\Container\V1\NetworkPolicy $network_policy + * Configuration options for the NetworkPolicy feature. + * @type \Google\Cloud\Container\V1\IPAllocationPolicy $ip_allocation_policy + * Configuration for cluster IP allocation. + * @type \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig $master_authorized_networks_config + * The configuration options for master authorized networks feature. + * @type \Google\Cloud\Container\V1\MaintenancePolicy $maintenance_policy + * Configure the maintenance policy for this cluster. + * @type \Google\Cloud\Container\V1\BinaryAuthorization $binary_authorization + * Configuration for Binary Authorization. + * @type \Google\Cloud\Container\V1\ClusterAutoscaling $autoscaling + * Cluster-level autoscaling configuration. + * @type \Google\Cloud\Container\V1\NetworkConfig $network_config + * Configuration for cluster networking. + * @type \Google\Cloud\Container\V1\MaxPodsConstraint $default_max_pods_constraint + * The default constraint on the maximum number of pods that can be run + * simultaneously on a node in the node pool of this cluster. Only honored + * if cluster created with IP Alias support. + * @type \Google\Cloud\Container\V1\ResourceUsageExportConfig $resource_usage_export_config + * Configuration for exporting resource usages. Resource usage export is + * disabled when this config is unspecified. + * @type \Google\Cloud\Container\V1\AuthenticatorGroupsConfig $authenticator_groups_config + * Configuration controlling RBAC group membership information. + * @type \Google\Cloud\Container\V1\PrivateClusterConfig $private_cluster_config + * Configuration for private cluster. + * @type \Google\Cloud\Container\V1\DatabaseEncryption $database_encryption + * Configuration of etcd encryption. + * @type \Google\Cloud\Container\V1\VerticalPodAutoscaling $vertical_pod_autoscaling + * Cluster-level Vertical Pod Autoscaling configuration. + * @type \Google\Cloud\Container\V1\ShieldedNodes $shielded_nodes + * Shielded Nodes configuration. + * @type \Google\Cloud\Container\V1\ReleaseChannel $release_channel + * Release channel configuration. If left unspecified on cluster creation and + * a version is specified, the cluster is enrolled in the most mature release + * channel where the version is available (first checking STABLE, then + * REGULAR, and finally RAPID). Otherwise, if no release channel + * configuration and no version is specified, the cluster is enrolled in the + * REGULAR channel with its default version. + * @type \Google\Cloud\Container\V1\WorkloadIdentityConfig $workload_identity_config + * Configuration for the use of Kubernetes Service Accounts in GCP IAM + * policies. + * @type \Google\Cloud\Container\V1\MeshCertificates $mesh_certificates + * Configuration for issuance of mTLS keys and certificates to Kubernetes + * pods. + * @type \Google\Cloud\Container\V1\CostManagementConfig $cost_management_config + * Configuration for the fine-grained cost management feature. + * @type \Google\Cloud\Container\V1\NotificationConfig $notification_config + * Notification configuration of the cluster. + * @type \Google\Cloud\Container\V1\ConfidentialNodes $confidential_nodes + * Configuration of Confidential Nodes. + * All the nodes in the cluster will be Confidential VM once enabled. + * @type \Google\Cloud\Container\V1\IdentityServiceConfig $identity_service_config + * Configuration for Identity Service component. + * @type string $self_link + * [Output only] Server-defined URL for the resource. + * @type string $zone + * [Output only] The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field is deprecated, use location instead. + * @type string $endpoint + * [Output only] The IP address of this cluster's master endpoint. + * The endpoint can be accessed from the internet at + * `https://username:password@endpoint/`. + * See the `masterAuth` property of this resource for username and + * password information. + * @type string $initial_cluster_version + * The initial Kubernetes version for this cluster. Valid versions are those + * found in validMasterVersions returned by getServerConfig. The version can + * be upgraded over time; such upgrades are reflected in + * currentMasterVersion and currentNodeVersion. + * Users may specify either explicit versions offered by + * Kubernetes Engine or version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "","-": picks the default Kubernetes version + * @type string $current_master_version + * [Output only] The current software version of the master endpoint. + * @type string $current_node_version + * [Output only] Deprecated, use + * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools) + * instead. The current version of the node software components. If they are + * currently at multiple versions because they're in the process of being + * upgraded, this reflects the minimum version of all nodes. + * @type string $create_time + * [Output only] The time the cluster was created, in + * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * @type int $status + * [Output only] The current status of this cluster. + * @type string $status_message + * [Output only] Deprecated. Use conditions instead. + * Additional information about the current status of this + * cluster, if available. + * @type int $node_ipv4_cidr_size + * [Output only] The size of the address space on each node for hosting + * containers. This is provisioned from within the `container_ipv4_cidr` + * range. This field will only be set when cluster is in route-based network + * mode. + * @type string $services_ipv4_cidr + * [Output only] The IP address range of the Kubernetes services in + * this cluster, in + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `1.2.3.4/29`). Service addresses are + * typically put in the last `/16` from the container CIDR. + * @type array|\Google\Protobuf\Internal\RepeatedField $instance_group_urls + * Deprecated. Use node_pools.instance_group_urls. + * @type int $current_node_count + * [Output only] The number of nodes currently in the cluster. Deprecated. + * Call Kubernetes API directly to retrieve node information. + * @type string $expire_time + * [Output only] The time the cluster will be automatically + * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * @type string $location + * [Output only] The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + * or + * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + * in which the cluster resides. + * @type bool $enable_tpu + * Enable the ability to use Cloud TPUs in this cluster. + * @type string $tpu_ipv4_cidr_block + * [Output only] The IP address range of the Cloud TPUs in this cluster, in + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `1.2.3.4/29`). + * @type array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $conditions + * Which conditions caused the current cluster state. + * @type \Google\Cloud\Container\V1\Autopilot $autopilot + * Autopilot configuration for the cluster. + * @type string $id + * Output only. Unique id for the cluster. + * @type \Google\Cloud\Container\V1\NodePoolDefaults $node_pool_defaults + * Default NodePool settings for the entire cluster. These settings are + * overridden if specified on the specific NodePool object. + * @type \Google\Cloud\Container\V1\LoggingConfig $logging_config + * Logging configuration for the cluster. + * @type \Google\Cloud\Container\V1\MonitoringConfig $monitoring_config + * Monitoring configuration for the cluster. + * @type \Google\Cloud\Container\V1\NodePoolAutoConfig $node_pool_auto_config + * Node pool configs that apply to all auto-provisioned node pools + * in autopilot clusters and node auto-provisioning enabled clusters. + * @type string $etag + * This checksum is computed by the server based on the value of cluster + * fields, and may be sent on update requests to ensure the client has an + * up-to-date value before proceeding. + * @type \Google\Cloud\Container\V1\Fleet $fleet + * Fleet information for the cluster. + * @type \Google\Cloud\Container\V1\SecurityPostureConfig $security_posture_config + * Enable/Disable Security Posture API features for the cluster. + * @type \Google\Cloud\Container\V1\K8sBetaAPIConfig $enable_k8s_beta_apis + * Beta APIs Config + * @type \Google\Cloud\Container\V1\EnterpriseConfig $enterprise_config + * GKE Enterprise Configuration. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The name of this cluster. The name must be unique within this project + * and location (e.g. zone or region), and can be up to 40 characters with + * the following restrictions: + * * Lowercase letters, numbers, and hyphens only. + * * Must start with a letter. + * * Must end with a number or a letter. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of this cluster. The name must be unique within this project + * and location (e.g. zone or region), and can be up to 40 characters with + * the following restrictions: + * * Lowercase letters, numbers, and hyphens only. + * * Must start with a letter. + * * Must end with a number or a letter. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * An optional description of this cluster. + * + * Generated from protobuf field string description = 2; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * An optional description of this cluster. + * + * Generated from protobuf field string description = 2; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * The number of nodes to create in this cluster. You must ensure that your + * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) + * is sufficient for this number of instances. You must also have available + * firewall and routes quota. + * For requests, this field should only be used in lieu of a + * "node_pool" object, since this configuration (along with the + * "node_config") will be used to create a "NodePool" object with an + * auto-generated name. Do not use this and a node_pool at the same time. + * This field is deprecated, use node_pool.initial_node_count instead. + * + * Generated from protobuf field int32 initial_node_count = 3 [deprecated = true]; + * @return int + * @deprecated + */ + public function getInitialNodeCount() + { + @trigger_error('initial_node_count is deprecated.', E_USER_DEPRECATED); + return $this->initial_node_count; + } + + /** + * The number of nodes to create in this cluster. You must ensure that your + * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) + * is sufficient for this number of instances. You must also have available + * firewall and routes quota. + * For requests, this field should only be used in lieu of a + * "node_pool" object, since this configuration (along with the + * "node_config") will be used to create a "NodePool" object with an + * auto-generated name. Do not use this and a node_pool at the same time. + * This field is deprecated, use node_pool.initial_node_count instead. + * + * Generated from protobuf field int32 initial_node_count = 3 [deprecated = true]; + * @param int $var + * @return $this + * @deprecated + */ + public function setInitialNodeCount($var) + { + @trigger_error('initial_node_count is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkInt32($var); + $this->initial_node_count = $var; + + return $this; + } + + /** + * Parameters used in creating the cluster's nodes. + * For requests, this field should only be used in lieu of a + * "node_pool" object, since this configuration (along with the + * "initial_node_count") will be used to create a "NodePool" object with an + * auto-generated name. Do not use this and a node_pool at the same time. + * For responses, this field will be populated with the node configuration of + * the first node pool. (For configuration of each node pool, see + * `node_pool.config`) + * If unspecified, the defaults are used. + * This field is deprecated, use node_pool.config instead. + * + * Generated from protobuf field .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; + * @return \Google\Cloud\Container\V1\NodeConfig|null + * @deprecated + */ + public function getNodeConfig() + { + @trigger_error('node_config is deprecated.', E_USER_DEPRECATED); + return $this->node_config; + } + + public function hasNodeConfig() + { + @trigger_error('node_config is deprecated.', E_USER_DEPRECATED); + return isset($this->node_config); + } + + public function clearNodeConfig() + { + @trigger_error('node_config is deprecated.', E_USER_DEPRECATED); + unset($this->node_config); + } + + /** + * Parameters used in creating the cluster's nodes. + * For requests, this field should only be used in lieu of a + * "node_pool" object, since this configuration (along with the + * "initial_node_count") will be used to create a "NodePool" object with an + * auto-generated name. Do not use this and a node_pool at the same time. + * For responses, this field will be populated with the node configuration of + * the first node pool. (For configuration of each node pool, see + * `node_pool.config`) + * If unspecified, the defaults are used. + * This field is deprecated, use node_pool.config instead. + * + * Generated from protobuf field .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; + * @param \Google\Cloud\Container\V1\NodeConfig $var + * @return $this + * @deprecated + */ + public function setNodeConfig($var) + { + @trigger_error('node_config is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeConfig::class); + $this->node_config = $var; + + return $this; + } + + /** + * The authentication information for accessing the master endpoint. + * If unspecified, the defaults are used: + * For clusters before v1.12, if master_auth is unspecified, `username` will + * be set to "admin", a random password will be generated, and a client + * certificate will be issued. + * + * Generated from protobuf field .google.container.v1.MasterAuth master_auth = 5; + * @return \Google\Cloud\Container\V1\MasterAuth|null + */ + public function getMasterAuth() + { + return $this->master_auth; + } + + public function hasMasterAuth() + { + return isset($this->master_auth); + } + + public function clearMasterAuth() + { + unset($this->master_auth); + } + + /** + * The authentication information for accessing the master endpoint. + * If unspecified, the defaults are used: + * For clusters before v1.12, if master_auth is unspecified, `username` will + * be set to "admin", a random password will be generated, and a client + * certificate will be issued. + * + * Generated from protobuf field .google.container.v1.MasterAuth master_auth = 5; + * @param \Google\Cloud\Container\V1\MasterAuth $var + * @return $this + */ + public function setMasterAuth($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MasterAuth::class); + $this->master_auth = $var; + + return $this; + } + + /** + * The logging service the cluster should use to write logs. + * Currently available options: + * * `logging.googleapis.com/kubernetes` - The Cloud Logging + * service with a Kubernetes-native resource model + * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + * available as of GKE 1.15). + * * `none` - no logs will be exported from the cluster. + * If left as an empty string,`logging.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. + * + * Generated from protobuf field string logging_service = 6; + * @return string + */ + public function getLoggingService() + { + return $this->logging_service; + } + + /** + * The logging service the cluster should use to write logs. + * Currently available options: + * * `logging.googleapis.com/kubernetes` - The Cloud Logging + * service with a Kubernetes-native resource model + * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + * available as of GKE 1.15). + * * `none` - no logs will be exported from the cluster. + * If left as an empty string,`logging.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. + * + * Generated from protobuf field string logging_service = 6; + * @param string $var + * @return $this + */ + public function setLoggingService($var) + { + GPBUtil::checkString($var, True); + $this->logging_service = $var; + + return $this; + } + + /** + * The monitoring service the cluster should use to write metrics. + * Currently available options: + * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + * service with a Kubernetes-native resource model + * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + * longer available as of GKE 1.15). + * * `none` - No metrics will be exported from the cluster. + * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. + * + * Generated from protobuf field string monitoring_service = 7; + * @return string + */ + public function getMonitoringService() + { + return $this->monitoring_service; + } + + /** + * The monitoring service the cluster should use to write metrics. + * Currently available options: + * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + * service with a Kubernetes-native resource model + * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + * longer available as of GKE 1.15). + * * `none` - No metrics will be exported from the cluster. + * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. + * + * Generated from protobuf field string monitoring_service = 7; + * @param string $var + * @return $this + */ + public function setMonitoringService($var) + { + GPBUtil::checkString($var, True); + $this->monitoring_service = $var; + + return $this; + } + + /** + * The name of the Google Compute Engine + * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) + * to which the cluster is connected. If left unspecified, the `default` + * network will be used. + * + * Generated from protobuf field string network = 8; + * @return string + */ + public function getNetwork() + { + return $this->network; + } + + /** + * The name of the Google Compute Engine + * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) + * to which the cluster is connected. If left unspecified, the `default` + * network will be used. + * + * Generated from protobuf field string network = 8; + * @param string $var + * @return $this + */ + public function setNetwork($var) + { + GPBUtil::checkString($var, True); + $this->network = $var; + + return $this; + } + + /** + * The IP address range of the container pods in this cluster, in + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`). Leave blank to have + * one automatically chosen or specify a `/14` block in `10.0.0.0/8`. + * + * Generated from protobuf field string cluster_ipv4_cidr = 9; + * @return string + */ + public function getClusterIpv4Cidr() + { + return $this->cluster_ipv4_cidr; + } + + /** + * The IP address range of the container pods in this cluster, in + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`). Leave blank to have + * one automatically chosen or specify a `/14` block in `10.0.0.0/8`. + * + * Generated from protobuf field string cluster_ipv4_cidr = 9; + * @param string $var + * @return $this + */ + public function setClusterIpv4Cidr($var) + { + GPBUtil::checkString($var, True); + $this->cluster_ipv4_cidr = $var; + + return $this; + } + + /** + * Configurations for the various addons available to run in the cluster. + * + * Generated from protobuf field .google.container.v1.AddonsConfig addons_config = 10; + * @return \Google\Cloud\Container\V1\AddonsConfig|null + */ + public function getAddonsConfig() + { + return $this->addons_config; + } + + public function hasAddonsConfig() + { + return isset($this->addons_config); + } + + public function clearAddonsConfig() + { + unset($this->addons_config); + } + + /** + * Configurations for the various addons available to run in the cluster. + * + * Generated from protobuf field .google.container.v1.AddonsConfig addons_config = 10; + * @param \Google\Cloud\Container\V1\AddonsConfig $var + * @return $this + */ + public function setAddonsConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AddonsConfig::class); + $this->addons_config = $var; + + return $this; + } + + /** + * The name of the Google Compute Engine + * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which + * the cluster is connected. + * + * Generated from protobuf field string subnetwork = 11; + * @return string + */ + public function getSubnetwork() + { + return $this->subnetwork; + } + + /** + * The name of the Google Compute Engine + * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which + * the cluster is connected. + * + * Generated from protobuf field string subnetwork = 11; + * @param string $var + * @return $this + */ + public function setSubnetwork($var) + { + GPBUtil::checkString($var, True); + $this->subnetwork = $var; + + return $this; + } + + /** + * The node pools associated with this cluster. + * This field should not be set if "node_config" or "initial_node_count" are + * specified. + * + * Generated from protobuf field repeated .google.container.v1.NodePool node_pools = 12; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getNodePools() + { + return $this->node_pools; + } + + /** + * The node pools associated with this cluster. + * This field should not be set if "node_config" or "initial_node_count" are + * specified. + * + * Generated from protobuf field repeated .google.container.v1.NodePool node_pools = 12; + * @param array<\Google\Cloud\Container\V1\NodePool>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setNodePools($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\NodePool::class); + $this->node_pools = $arr; + + return $this; + } + + /** + * The list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster's nodes should be located. + * This field provides a default value if + * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) + * are not specified during node pool creation. + * Warning: changing cluster locations will update the + * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) + * of all node pools and will result in nodes being added and/or removed. + * + * Generated from protobuf field repeated string locations = 13; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getLocations() + { + return $this->locations; + } + + /** + * The list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster's nodes should be located. + * This field provides a default value if + * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) + * are not specified during node pool creation. + * Warning: changing cluster locations will update the + * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) + * of all node pools and will result in nodes being added and/or removed. + * + * Generated from protobuf field repeated string locations = 13; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->locations = $arr; + + return $this; + } + + /** + * Kubernetes alpha features are enabled on this cluster. This includes alpha + * API groups (e.g. v1alpha1) and features that may not be production ready in + * the kubernetes version of the master and nodes. + * The cluster has no SLA for uptime and master/node upgrades are disabled. + * Alpha enabled clusters are automatically deleted thirty days after + * creation. + * + * Generated from protobuf field bool enable_kubernetes_alpha = 14; + * @return bool + */ + public function getEnableKubernetesAlpha() + { + return $this->enable_kubernetes_alpha; + } + + /** + * Kubernetes alpha features are enabled on this cluster. This includes alpha + * API groups (e.g. v1alpha1) and features that may not be production ready in + * the kubernetes version of the master and nodes. + * The cluster has no SLA for uptime and master/node upgrades are disabled. + * Alpha enabled clusters are automatically deleted thirty days after + * creation. + * + * Generated from protobuf field bool enable_kubernetes_alpha = 14; + * @param bool $var + * @return $this + */ + public function setEnableKubernetesAlpha($var) + { + GPBUtil::checkBool($var); + $this->enable_kubernetes_alpha = $var; + + return $this; + } + + /** + * The resource labels for the cluster to use to annotate any related + * Google Compute Engine resources. + * + * Generated from protobuf field map resource_labels = 15; + * @return \Google\Protobuf\Internal\MapField + */ + public function getResourceLabels() + { + return $this->resource_labels; + } + + /** + * The resource labels for the cluster to use to annotate any related + * Google Compute Engine resources. + * + * Generated from protobuf field map resource_labels = 15; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setResourceLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->resource_labels = $arr; + + return $this; + } + + /** + * The fingerprint of the set of labels for this cluster. + * + * Generated from protobuf field string label_fingerprint = 16; + * @return string + */ + public function getLabelFingerprint() + { + return $this->label_fingerprint; + } + + /** + * The fingerprint of the set of labels for this cluster. + * + * Generated from protobuf field string label_fingerprint = 16; + * @param string $var + * @return $this + */ + public function setLabelFingerprint($var) + { + GPBUtil::checkString($var, True); + $this->label_fingerprint = $var; + + return $this; + } + + /** + * Configuration for the legacy ABAC authorization mode. + * + * Generated from protobuf field .google.container.v1.LegacyAbac legacy_abac = 18; + * @return \Google\Cloud\Container\V1\LegacyAbac|null + */ + public function getLegacyAbac() + { + return $this->legacy_abac; + } + + public function hasLegacyAbac() + { + return isset($this->legacy_abac); + } + + public function clearLegacyAbac() + { + unset($this->legacy_abac); + } + + /** + * Configuration for the legacy ABAC authorization mode. + * + * Generated from protobuf field .google.container.v1.LegacyAbac legacy_abac = 18; + * @param \Google\Cloud\Container\V1\LegacyAbac $var + * @return $this + */ + public function setLegacyAbac($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LegacyAbac::class); + $this->legacy_abac = $var; + + return $this; + } + + /** + * Configuration options for the NetworkPolicy feature. + * + * Generated from protobuf field .google.container.v1.NetworkPolicy network_policy = 19; + * @return \Google\Cloud\Container\V1\NetworkPolicy|null + */ + public function getNetworkPolicy() + { + return $this->network_policy; + } + + public function hasNetworkPolicy() + { + return isset($this->network_policy); + } + + public function clearNetworkPolicy() + { + unset($this->network_policy); + } + + /** + * Configuration options for the NetworkPolicy feature. + * + * Generated from protobuf field .google.container.v1.NetworkPolicy network_policy = 19; + * @param \Google\Cloud\Container\V1\NetworkPolicy $var + * @return $this + */ + public function setNetworkPolicy($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkPolicy::class); + $this->network_policy = $var; + + return $this; + } + + /** + * Configuration for cluster IP allocation. + * + * Generated from protobuf field .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; + * @return \Google\Cloud\Container\V1\IPAllocationPolicy|null + */ + public function getIpAllocationPolicy() + { + return $this->ip_allocation_policy; + } + + public function hasIpAllocationPolicy() + { + return isset($this->ip_allocation_policy); + } + + public function clearIpAllocationPolicy() + { + unset($this->ip_allocation_policy); + } + + /** + * Configuration for cluster IP allocation. + * + * Generated from protobuf field .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; + * @param \Google\Cloud\Container\V1\IPAllocationPolicy $var + * @return $this + */ + public function setIpAllocationPolicy($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\IPAllocationPolicy::class); + $this->ip_allocation_policy = $var; + + return $this; + } + + /** + * The configuration options for master authorized networks feature. + * + * Generated from protobuf field .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * @return \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig|null + */ + public function getMasterAuthorizedNetworksConfig() + { + return $this->master_authorized_networks_config; + } + + public function hasMasterAuthorizedNetworksConfig() + { + return isset($this->master_authorized_networks_config); + } + + public function clearMasterAuthorizedNetworksConfig() + { + unset($this->master_authorized_networks_config); + } + + /** + * The configuration options for master authorized networks feature. + * + * Generated from protobuf field .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * @param \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig $var + * @return $this + */ + public function setMasterAuthorizedNetworksConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig::class); + $this->master_authorized_networks_config = $var; + + return $this; + } + + /** + * Configure the maintenance policy for this cluster. + * + * Generated from protobuf field .google.container.v1.MaintenancePolicy maintenance_policy = 23; + * @return \Google\Cloud\Container\V1\MaintenancePolicy|null + */ + public function getMaintenancePolicy() + { + return $this->maintenance_policy; + } + + public function hasMaintenancePolicy() + { + return isset($this->maintenance_policy); + } + + public function clearMaintenancePolicy() + { + unset($this->maintenance_policy); + } + + /** + * Configure the maintenance policy for this cluster. + * + * Generated from protobuf field .google.container.v1.MaintenancePolicy maintenance_policy = 23; + * @param \Google\Cloud\Container\V1\MaintenancePolicy $var + * @return $this + */ + public function setMaintenancePolicy($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MaintenancePolicy::class); + $this->maintenance_policy = $var; + + return $this; + } + + /** + * Configuration for Binary Authorization. + * + * Generated from protobuf field .google.container.v1.BinaryAuthorization binary_authorization = 24; + * @return \Google\Cloud\Container\V1\BinaryAuthorization|null + */ + public function getBinaryAuthorization() + { + return $this->binary_authorization; + } + + public function hasBinaryAuthorization() + { + return isset($this->binary_authorization); + } + + public function clearBinaryAuthorization() + { + unset($this->binary_authorization); + } + + /** + * Configuration for Binary Authorization. + * + * Generated from protobuf field .google.container.v1.BinaryAuthorization binary_authorization = 24; + * @param \Google\Cloud\Container\V1\BinaryAuthorization $var + * @return $this + */ + public function setBinaryAuthorization($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\BinaryAuthorization::class); + $this->binary_authorization = $var; + + return $this; + } + + /** + * Cluster-level autoscaling configuration. + * + * Generated from protobuf field .google.container.v1.ClusterAutoscaling autoscaling = 26; + * @return \Google\Cloud\Container\V1\ClusterAutoscaling|null + */ + public function getAutoscaling() + { + return $this->autoscaling; + } + + public function hasAutoscaling() + { + return isset($this->autoscaling); + } + + public function clearAutoscaling() + { + unset($this->autoscaling); + } + + /** + * Cluster-level autoscaling configuration. + * + * Generated from protobuf field .google.container.v1.ClusterAutoscaling autoscaling = 26; + * @param \Google\Cloud\Container\V1\ClusterAutoscaling $var + * @return $this + */ + public function setAutoscaling($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ClusterAutoscaling::class); + $this->autoscaling = $var; + + return $this; + } + + /** + * Configuration for cluster networking. + * + * Generated from protobuf field .google.container.v1.NetworkConfig network_config = 27; + * @return \Google\Cloud\Container\V1\NetworkConfig|null + */ + public function getNetworkConfig() + { + return $this->network_config; + } + + public function hasNetworkConfig() + { + return isset($this->network_config); + } + + public function clearNetworkConfig() + { + unset($this->network_config); + } + + /** + * Configuration for cluster networking. + * + * Generated from protobuf field .google.container.v1.NetworkConfig network_config = 27; + * @param \Google\Cloud\Container\V1\NetworkConfig $var + * @return $this + */ + public function setNetworkConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkConfig::class); + $this->network_config = $var; + + return $this; + } + + /** + * The default constraint on the maximum number of pods that can be run + * simultaneously on a node in the node pool of this cluster. Only honored + * if cluster created with IP Alias support. + * + * Generated from protobuf field .google.container.v1.MaxPodsConstraint default_max_pods_constraint = 30; + * @return \Google\Cloud\Container\V1\MaxPodsConstraint|null + */ + public function getDefaultMaxPodsConstraint() + { + return $this->default_max_pods_constraint; + } + + public function hasDefaultMaxPodsConstraint() + { + return isset($this->default_max_pods_constraint); + } + + public function clearDefaultMaxPodsConstraint() + { + unset($this->default_max_pods_constraint); + } + + /** + * The default constraint on the maximum number of pods that can be run + * simultaneously on a node in the node pool of this cluster. Only honored + * if cluster created with IP Alias support. + * + * Generated from protobuf field .google.container.v1.MaxPodsConstraint default_max_pods_constraint = 30; + * @param \Google\Cloud\Container\V1\MaxPodsConstraint $var + * @return $this + */ + public function setDefaultMaxPodsConstraint($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MaxPodsConstraint::class); + $this->default_max_pods_constraint = $var; + + return $this; + } + + /** + * Configuration for exporting resource usages. Resource usage export is + * disabled when this config is unspecified. + * + * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; + * @return \Google\Cloud\Container\V1\ResourceUsageExportConfig|null + */ + public function getResourceUsageExportConfig() + { + return $this->resource_usage_export_config; + } + + public function hasResourceUsageExportConfig() + { + return isset($this->resource_usage_export_config); + } + + public function clearResourceUsageExportConfig() + { + unset($this->resource_usage_export_config); + } + + /** + * Configuration for exporting resource usages. Resource usage export is + * disabled when this config is unspecified. + * + * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; + * @param \Google\Cloud\Container\V1\ResourceUsageExportConfig $var + * @return $this + */ + public function setResourceUsageExportConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ResourceUsageExportConfig::class); + $this->resource_usage_export_config = $var; + + return $this; + } + + /** + * Configuration controlling RBAC group membership information. + * + * Generated from protobuf field .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * @return \Google\Cloud\Container\V1\AuthenticatorGroupsConfig|null + */ + public function getAuthenticatorGroupsConfig() + { + return $this->authenticator_groups_config; + } + + public function hasAuthenticatorGroupsConfig() + { + return isset($this->authenticator_groups_config); + } + + public function clearAuthenticatorGroupsConfig() + { + unset($this->authenticator_groups_config); + } + + /** + * Configuration controlling RBAC group membership information. + * + * Generated from protobuf field .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * @param \Google\Cloud\Container\V1\AuthenticatorGroupsConfig $var + * @return $this + */ + public function setAuthenticatorGroupsConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AuthenticatorGroupsConfig::class); + $this->authenticator_groups_config = $var; + + return $this; + } + + /** + * Configuration for private cluster. + * + * Generated from protobuf field .google.container.v1.PrivateClusterConfig private_cluster_config = 37; + * @return \Google\Cloud\Container\V1\PrivateClusterConfig|null + */ + public function getPrivateClusterConfig() + { + return $this->private_cluster_config; + } + + public function hasPrivateClusterConfig() + { + return isset($this->private_cluster_config); + } + + public function clearPrivateClusterConfig() + { + unset($this->private_cluster_config); + } + + /** + * Configuration for private cluster. + * + * Generated from protobuf field .google.container.v1.PrivateClusterConfig private_cluster_config = 37; + * @param \Google\Cloud\Container\V1\PrivateClusterConfig $var + * @return $this + */ + public function setPrivateClusterConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\PrivateClusterConfig::class); + $this->private_cluster_config = $var; + + return $this; + } + + /** + * Configuration of etcd encryption. + * + * Generated from protobuf field .google.container.v1.DatabaseEncryption database_encryption = 38; + * @return \Google\Cloud\Container\V1\DatabaseEncryption|null + */ + public function getDatabaseEncryption() + { + return $this->database_encryption; + } + + public function hasDatabaseEncryption() + { + return isset($this->database_encryption); + } + + public function clearDatabaseEncryption() + { + unset($this->database_encryption); + } + + /** + * Configuration of etcd encryption. + * + * Generated from protobuf field .google.container.v1.DatabaseEncryption database_encryption = 38; + * @param \Google\Cloud\Container\V1\DatabaseEncryption $var + * @return $this + */ + public function setDatabaseEncryption($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\DatabaseEncryption::class); + $this->database_encryption = $var; + + return $this; + } + + /** + * Cluster-level Vertical Pod Autoscaling configuration. + * + * Generated from protobuf field .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + * @return \Google\Cloud\Container\V1\VerticalPodAutoscaling|null + */ + public function getVerticalPodAutoscaling() + { + return $this->vertical_pod_autoscaling; + } + + public function hasVerticalPodAutoscaling() + { + return isset($this->vertical_pod_autoscaling); + } + + public function clearVerticalPodAutoscaling() + { + unset($this->vertical_pod_autoscaling); + } + + /** + * Cluster-level Vertical Pod Autoscaling configuration. + * + * Generated from protobuf field .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + * @param \Google\Cloud\Container\V1\VerticalPodAutoscaling $var + * @return $this + */ + public function setVerticalPodAutoscaling($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\VerticalPodAutoscaling::class); + $this->vertical_pod_autoscaling = $var; + + return $this; + } + + /** + * Shielded Nodes configuration. + * + * Generated from protobuf field .google.container.v1.ShieldedNodes shielded_nodes = 40; + * @return \Google\Cloud\Container\V1\ShieldedNodes|null + */ + public function getShieldedNodes() + { + return $this->shielded_nodes; + } + + public function hasShieldedNodes() + { + return isset($this->shielded_nodes); + } + + public function clearShieldedNodes() + { + unset($this->shielded_nodes); + } + + /** + * Shielded Nodes configuration. + * + * Generated from protobuf field .google.container.v1.ShieldedNodes shielded_nodes = 40; + * @param \Google\Cloud\Container\V1\ShieldedNodes $var + * @return $this + */ + public function setShieldedNodes($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ShieldedNodes::class); + $this->shielded_nodes = $var; + + return $this; + } + + /** + * Release channel configuration. If left unspecified on cluster creation and + * a version is specified, the cluster is enrolled in the most mature release + * channel where the version is available (first checking STABLE, then + * REGULAR, and finally RAPID). Otherwise, if no release channel + * configuration and no version is specified, the cluster is enrolled in the + * REGULAR channel with its default version. + * + * Generated from protobuf field .google.container.v1.ReleaseChannel release_channel = 41; + * @return \Google\Cloud\Container\V1\ReleaseChannel|null + */ + public function getReleaseChannel() + { + return $this->release_channel; + } + + public function hasReleaseChannel() + { + return isset($this->release_channel); + } + + public function clearReleaseChannel() + { + unset($this->release_channel); + } + + /** + * Release channel configuration. If left unspecified on cluster creation and + * a version is specified, the cluster is enrolled in the most mature release + * channel where the version is available (first checking STABLE, then + * REGULAR, and finally RAPID). Otherwise, if no release channel + * configuration and no version is specified, the cluster is enrolled in the + * REGULAR channel with its default version. + * + * Generated from protobuf field .google.container.v1.ReleaseChannel release_channel = 41; + * @param \Google\Cloud\Container\V1\ReleaseChannel $var + * @return $this + */ + public function setReleaseChannel($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ReleaseChannel::class); + $this->release_channel = $var; + + return $this; + } + + /** + * Configuration for the use of Kubernetes Service Accounts in GCP IAM + * policies. + * + * Generated from protobuf field .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + * @return \Google\Cloud\Container\V1\WorkloadIdentityConfig|null + */ + public function getWorkloadIdentityConfig() + { + return $this->workload_identity_config; + } + + public function hasWorkloadIdentityConfig() + { + return isset($this->workload_identity_config); + } + + public function clearWorkloadIdentityConfig() + { + unset($this->workload_identity_config); + } + + /** + * Configuration for the use of Kubernetes Service Accounts in GCP IAM + * policies. + * + * Generated from protobuf field .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + * @param \Google\Cloud\Container\V1\WorkloadIdentityConfig $var + * @return $this + */ + public function setWorkloadIdentityConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\WorkloadIdentityConfig::class); + $this->workload_identity_config = $var; + + return $this; + } + + /** + * Configuration for issuance of mTLS keys and certificates to Kubernetes + * pods. + * + * Generated from protobuf field .google.container.v1.MeshCertificates mesh_certificates = 67; + * @return \Google\Cloud\Container\V1\MeshCertificates|null + */ + public function getMeshCertificates() + { + return $this->mesh_certificates; + } + + public function hasMeshCertificates() + { + return isset($this->mesh_certificates); + } + + public function clearMeshCertificates() + { + unset($this->mesh_certificates); + } + + /** + * Configuration for issuance of mTLS keys and certificates to Kubernetes + * pods. + * + * Generated from protobuf field .google.container.v1.MeshCertificates mesh_certificates = 67; + * @param \Google\Cloud\Container\V1\MeshCertificates $var + * @return $this + */ + public function setMeshCertificates($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MeshCertificates::class); + $this->mesh_certificates = $var; + + return $this; + } + + /** + * Configuration for the fine-grained cost management feature. + * + * Generated from protobuf field .google.container.v1.CostManagementConfig cost_management_config = 45; + * @return \Google\Cloud\Container\V1\CostManagementConfig|null + */ + public function getCostManagementConfig() + { + return $this->cost_management_config; + } + + public function hasCostManagementConfig() + { + return isset($this->cost_management_config); + } + + public function clearCostManagementConfig() + { + unset($this->cost_management_config); + } + + /** + * Configuration for the fine-grained cost management feature. + * + * Generated from protobuf field .google.container.v1.CostManagementConfig cost_management_config = 45; + * @param \Google\Cloud\Container\V1\CostManagementConfig $var + * @return $this + */ + public function setCostManagementConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\CostManagementConfig::class); + $this->cost_management_config = $var; + + return $this; + } + + /** + * Notification configuration of the cluster. + * + * Generated from protobuf field .google.container.v1.NotificationConfig notification_config = 49; + * @return \Google\Cloud\Container\V1\NotificationConfig|null + */ + public function getNotificationConfig() + { + return $this->notification_config; + } + + public function hasNotificationConfig() + { + return isset($this->notification_config); + } + + public function clearNotificationConfig() + { + unset($this->notification_config); + } + + /** + * Notification configuration of the cluster. + * + * Generated from protobuf field .google.container.v1.NotificationConfig notification_config = 49; + * @param \Google\Cloud\Container\V1\NotificationConfig $var + * @return $this + */ + public function setNotificationConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NotificationConfig::class); + $this->notification_config = $var; + + return $this; + } + + /** + * Configuration of Confidential Nodes. + * All the nodes in the cluster will be Confidential VM once enabled. + * + * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 50; + * @return \Google\Cloud\Container\V1\ConfidentialNodes|null + */ + public function getConfidentialNodes() + { + return $this->confidential_nodes; + } + + public function hasConfidentialNodes() + { + return isset($this->confidential_nodes); + } + + public function clearConfidentialNodes() + { + unset($this->confidential_nodes); + } + + /** + * Configuration of Confidential Nodes. + * All the nodes in the cluster will be Confidential VM once enabled. + * + * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 50; + * @param \Google\Cloud\Container\V1\ConfidentialNodes $var + * @return $this + */ + public function setConfidentialNodes($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ConfidentialNodes::class); + $this->confidential_nodes = $var; + + return $this; + } + + /** + * Configuration for Identity Service component. + * + * Generated from protobuf field .google.container.v1.IdentityServiceConfig identity_service_config = 54; + * @return \Google\Cloud\Container\V1\IdentityServiceConfig|null + */ + public function getIdentityServiceConfig() + { + return $this->identity_service_config; + } + + public function hasIdentityServiceConfig() + { + return isset($this->identity_service_config); + } + + public function clearIdentityServiceConfig() + { + unset($this->identity_service_config); + } + + /** + * Configuration for Identity Service component. + * + * Generated from protobuf field .google.container.v1.IdentityServiceConfig identity_service_config = 54; + * @param \Google\Cloud\Container\V1\IdentityServiceConfig $var + * @return $this + */ + public function setIdentityServiceConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\IdentityServiceConfig::class); + $this->identity_service_config = $var; + + return $this; + } + + /** + * [Output only] Server-defined URL for the resource. + * + * Generated from protobuf field string self_link = 100; + * @return string + */ + public function getSelfLink() + { + return $this->self_link; + } + + /** + * [Output only] Server-defined URL for the resource. + * + * Generated from protobuf field string self_link = 100; + * @param string $var + * @return $this + */ + public function setSelfLink($var) + { + GPBUtil::checkString($var, True); + $this->self_link = $var; + + return $this; + } + + /** + * [Output only] The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field is deprecated, use location instead. + * + * Generated from protobuf field string zone = 101 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * [Output only] The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field is deprecated, use location instead. + * + * Generated from protobuf field string zone = 101 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * [Output only] The IP address of this cluster's master endpoint. + * The endpoint can be accessed from the internet at + * `https://username:password@endpoint/`. + * See the `masterAuth` property of this resource for username and + * password information. + * + * Generated from protobuf field string endpoint = 102; + * @return string + */ + public function getEndpoint() + { + return $this->endpoint; + } + + /** + * [Output only] The IP address of this cluster's master endpoint. + * The endpoint can be accessed from the internet at + * `https://username:password@endpoint/`. + * See the `masterAuth` property of this resource for username and + * password information. + * + * Generated from protobuf field string endpoint = 102; + * @param string $var + * @return $this + */ + public function setEndpoint($var) + { + GPBUtil::checkString($var, True); + $this->endpoint = $var; + + return $this; + } + + /** + * The initial Kubernetes version for this cluster. Valid versions are those + * found in validMasterVersions returned by getServerConfig. The version can + * be upgraded over time; such upgrades are reflected in + * currentMasterVersion and currentNodeVersion. + * Users may specify either explicit versions offered by + * Kubernetes Engine or version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "","-": picks the default Kubernetes version + * + * Generated from protobuf field string initial_cluster_version = 103; + * @return string + */ + public function getInitialClusterVersion() + { + return $this->initial_cluster_version; + } + + /** + * The initial Kubernetes version for this cluster. Valid versions are those + * found in validMasterVersions returned by getServerConfig. The version can + * be upgraded over time; such upgrades are reflected in + * currentMasterVersion and currentNodeVersion. + * Users may specify either explicit versions offered by + * Kubernetes Engine or version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "","-": picks the default Kubernetes version + * + * Generated from protobuf field string initial_cluster_version = 103; + * @param string $var + * @return $this + */ + public function setInitialClusterVersion($var) + { + GPBUtil::checkString($var, True); + $this->initial_cluster_version = $var; + + return $this; + } + + /** + * [Output only] The current software version of the master endpoint. + * + * Generated from protobuf field string current_master_version = 104; + * @return string + */ + public function getCurrentMasterVersion() + { + return $this->current_master_version; + } + + /** + * [Output only] The current software version of the master endpoint. + * + * Generated from protobuf field string current_master_version = 104; + * @param string $var + * @return $this + */ + public function setCurrentMasterVersion($var) + { + GPBUtil::checkString($var, True); + $this->current_master_version = $var; + + return $this; + } + + /** + * [Output only] Deprecated, use + * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools) + * instead. The current version of the node software components. If they are + * currently at multiple versions because they're in the process of being + * upgraded, this reflects the minimum version of all nodes. + * + * Generated from protobuf field string current_node_version = 105 [deprecated = true]; + * @return string + * @deprecated + */ + public function getCurrentNodeVersion() + { + @trigger_error('current_node_version is deprecated.', E_USER_DEPRECATED); + return $this->current_node_version; + } + + /** + * [Output only] Deprecated, use + * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools) + * instead. The current version of the node software components. If they are + * currently at multiple versions because they're in the process of being + * upgraded, this reflects the minimum version of all nodes. + * + * Generated from protobuf field string current_node_version = 105 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setCurrentNodeVersion($var) + { + @trigger_error('current_node_version is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->current_node_version = $var; + + return $this; + } + + /** + * [Output only] The time the cluster was created, in + * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * + * Generated from protobuf field string create_time = 106; + * @return string + */ + public function getCreateTime() + { + return $this->create_time; + } + + /** + * [Output only] The time the cluster was created, in + * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * + * Generated from protobuf field string create_time = 106; + * @param string $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkString($var, True); + $this->create_time = $var; + + return $this; + } + + /** + * [Output only] The current status of this cluster. + * + * Generated from protobuf field .google.container.v1.Cluster.Status status = 107; + * @return int + */ + public function getStatus() + { + return $this->status; + } + + /** + * [Output only] The current status of this cluster. + * + * Generated from protobuf field .google.container.v1.Cluster.Status status = 107; + * @param int $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\Cluster\Status::class); + $this->status = $var; + + return $this; + } + + /** + * [Output only] Deprecated. Use conditions instead. + * Additional information about the current status of this + * cluster, if available. + * + * Generated from protobuf field string status_message = 108 [deprecated = true]; + * @return string + * @deprecated + */ + public function getStatusMessage() + { + @trigger_error('status_message is deprecated.', E_USER_DEPRECATED); + return $this->status_message; + } + + /** + * [Output only] Deprecated. Use conditions instead. + * Additional information about the current status of this + * cluster, if available. + * + * Generated from protobuf field string status_message = 108 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setStatusMessage($var) + { + @trigger_error('status_message is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->status_message = $var; + + return $this; + } + + /** + * [Output only] The size of the address space on each node for hosting + * containers. This is provisioned from within the `container_ipv4_cidr` + * range. This field will only be set when cluster is in route-based network + * mode. + * + * Generated from protobuf field int32 node_ipv4_cidr_size = 109; + * @return int + */ + public function getNodeIpv4CidrSize() + { + return $this->node_ipv4_cidr_size; + } + + /** + * [Output only] The size of the address space on each node for hosting + * containers. This is provisioned from within the `container_ipv4_cidr` + * range. This field will only be set when cluster is in route-based network + * mode. + * + * Generated from protobuf field int32 node_ipv4_cidr_size = 109; + * @param int $var + * @return $this + */ + public function setNodeIpv4CidrSize($var) + { + GPBUtil::checkInt32($var); + $this->node_ipv4_cidr_size = $var; + + return $this; + } + + /** + * [Output only] The IP address range of the Kubernetes services in + * this cluster, in + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `1.2.3.4/29`). Service addresses are + * typically put in the last `/16` from the container CIDR. + * + * Generated from protobuf field string services_ipv4_cidr = 110; + * @return string + */ + public function getServicesIpv4Cidr() + { + return $this->services_ipv4_cidr; + } + + /** + * [Output only] The IP address range of the Kubernetes services in + * this cluster, in + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `1.2.3.4/29`). Service addresses are + * typically put in the last `/16` from the container CIDR. + * + * Generated from protobuf field string services_ipv4_cidr = 110; + * @param string $var + * @return $this + */ + public function setServicesIpv4Cidr($var) + { + GPBUtil::checkString($var, True); + $this->services_ipv4_cidr = $var; + + return $this; + } + + /** + * Deprecated. Use node_pools.instance_group_urls. + * + * Generated from protobuf field repeated string instance_group_urls = 111 [deprecated = true]; + * @return \Google\Protobuf\Internal\RepeatedField + * @deprecated + */ + public function getInstanceGroupUrls() + { + @trigger_error('instance_group_urls is deprecated.', E_USER_DEPRECATED); + return $this->instance_group_urls; + } + + /** + * Deprecated. Use node_pools.instance_group_urls. + * + * Generated from protobuf field repeated string instance_group_urls = 111 [deprecated = true]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + * @deprecated + */ + public function setInstanceGroupUrls($var) + { + @trigger_error('instance_group_urls is deprecated.', E_USER_DEPRECATED); + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->instance_group_urls = $arr; + + return $this; + } + + /** + * [Output only] The number of nodes currently in the cluster. Deprecated. + * Call Kubernetes API directly to retrieve node information. + * + * Generated from protobuf field int32 current_node_count = 112 [deprecated = true]; + * @return int + * @deprecated + */ + public function getCurrentNodeCount() + { + @trigger_error('current_node_count is deprecated.', E_USER_DEPRECATED); + return $this->current_node_count; + } + + /** + * [Output only] The number of nodes currently in the cluster. Deprecated. + * Call Kubernetes API directly to retrieve node information. + * + * Generated from protobuf field int32 current_node_count = 112 [deprecated = true]; + * @param int $var + * @return $this + * @deprecated + */ + public function setCurrentNodeCount($var) + { + @trigger_error('current_node_count is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkInt32($var); + $this->current_node_count = $var; + + return $this; + } + + /** + * [Output only] The time the cluster will be automatically + * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * + * Generated from protobuf field string expire_time = 113; + * @return string + */ + public function getExpireTime() + { + return $this->expire_time; + } + + /** + * [Output only] The time the cluster will be automatically + * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * + * Generated from protobuf field string expire_time = 113; + * @param string $var + * @return $this + */ + public function setExpireTime($var) + { + GPBUtil::checkString($var, True); + $this->expire_time = $var; + + return $this; + } + + /** + * [Output only] The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + * or + * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + * in which the cluster resides. + * + * Generated from protobuf field string location = 114; + * @return string + */ + public function getLocation() + { + return $this->location; + } + + /** + * [Output only] The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + * or + * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + * in which the cluster resides. + * + * Generated from protobuf field string location = 114; + * @param string $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkString($var, True); + $this->location = $var; + + return $this; + } + + /** + * Enable the ability to use Cloud TPUs in this cluster. + * + * Generated from protobuf field bool enable_tpu = 115; + * @return bool + */ + public function getEnableTpu() + { + return $this->enable_tpu; + } + + /** + * Enable the ability to use Cloud TPUs in this cluster. + * + * Generated from protobuf field bool enable_tpu = 115; + * @param bool $var + * @return $this + */ + public function setEnableTpu($var) + { + GPBUtil::checkBool($var); + $this->enable_tpu = $var; + + return $this; + } + + /** + * [Output only] The IP address range of the Cloud TPUs in this cluster, in + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `1.2.3.4/29`). + * + * Generated from protobuf field string tpu_ipv4_cidr_block = 116; + * @return string + */ + public function getTpuIpv4CidrBlock() + { + return $this->tpu_ipv4_cidr_block; + } + + /** + * [Output only] The IP address range of the Cloud TPUs in this cluster, in + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `1.2.3.4/29`). + * + * Generated from protobuf field string tpu_ipv4_cidr_block = 116; + * @param string $var + * @return $this + */ + public function setTpuIpv4CidrBlock($var) + { + GPBUtil::checkString($var, True); + $this->tpu_ipv4_cidr_block = $var; + + return $this; + } + + /** + * Which conditions caused the current cluster state. + * + * Generated from protobuf field repeated .google.container.v1.StatusCondition conditions = 118; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getConditions() + { + return $this->conditions; + } + + /** + * Which conditions caused the current cluster state. + * + * Generated from protobuf field repeated .google.container.v1.StatusCondition conditions = 118; + * @param array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setConditions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\StatusCondition::class); + $this->conditions = $arr; + + return $this; + } + + /** + * Autopilot configuration for the cluster. + * + * Generated from protobuf field .google.container.v1.Autopilot autopilot = 128; + * @return \Google\Cloud\Container\V1\Autopilot|null + */ + public function getAutopilot() + { + return $this->autopilot; + } + + public function hasAutopilot() + { + return isset($this->autopilot); + } + + public function clearAutopilot() + { + unset($this->autopilot); + } + + /** + * Autopilot configuration for the cluster. + * + * Generated from protobuf field .google.container.v1.Autopilot autopilot = 128; + * @param \Google\Cloud\Container\V1\Autopilot $var + * @return $this + */ + public function setAutopilot($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\Autopilot::class); + $this->autopilot = $var; + + return $this; + } + + /** + * Output only. Unique id for the cluster. + * + * Generated from protobuf field string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * Output only. Unique id for the cluster. + * + * Generated from protobuf field string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * Default NodePool settings for the entire cluster. These settings are + * overridden if specified on the specific NodePool object. + * + * Generated from protobuf field optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; + * @return \Google\Cloud\Container\V1\NodePoolDefaults|null + */ + public function getNodePoolDefaults() + { + return $this->node_pool_defaults; + } + + public function hasNodePoolDefaults() + { + return isset($this->node_pool_defaults); + } + + public function clearNodePoolDefaults() + { + unset($this->node_pool_defaults); + } + + /** + * Default NodePool settings for the entire cluster. These settings are + * overridden if specified on the specific NodePool object. + * + * Generated from protobuf field optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; + * @param \Google\Cloud\Container\V1\NodePoolDefaults $var + * @return $this + */ + public function setNodePoolDefaults($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolDefaults::class); + $this->node_pool_defaults = $var; + + return $this; + } + + /** + * Logging configuration for the cluster. + * + * Generated from protobuf field .google.container.v1.LoggingConfig logging_config = 132; + * @return \Google\Cloud\Container\V1\LoggingConfig|null + */ + public function getLoggingConfig() + { + return $this->logging_config; + } + + public function hasLoggingConfig() + { + return isset($this->logging_config); + } + + public function clearLoggingConfig() + { + unset($this->logging_config); + } + + /** + * Logging configuration for the cluster. + * + * Generated from protobuf field .google.container.v1.LoggingConfig logging_config = 132; + * @param \Google\Cloud\Container\V1\LoggingConfig $var + * @return $this + */ + public function setLoggingConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LoggingConfig::class); + $this->logging_config = $var; + + return $this; + } + + /** + * Monitoring configuration for the cluster. + * + * Generated from protobuf field .google.container.v1.MonitoringConfig monitoring_config = 133; + * @return \Google\Cloud\Container\V1\MonitoringConfig|null + */ + public function getMonitoringConfig() + { + return $this->monitoring_config; + } + + public function hasMonitoringConfig() + { + return isset($this->monitoring_config); + } + + public function clearMonitoringConfig() + { + unset($this->monitoring_config); + } + + /** + * Monitoring configuration for the cluster. + * + * Generated from protobuf field .google.container.v1.MonitoringConfig monitoring_config = 133; + * @param \Google\Cloud\Container\V1\MonitoringConfig $var + * @return $this + */ + public function setMonitoringConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MonitoringConfig::class); + $this->monitoring_config = $var; + + return $this; + } + + /** + * Node pool configs that apply to all auto-provisioned node pools + * in autopilot clusters and node auto-provisioning enabled clusters. + * + * Generated from protobuf field .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; + * @return \Google\Cloud\Container\V1\NodePoolAutoConfig|null + */ + public function getNodePoolAutoConfig() + { + return $this->node_pool_auto_config; + } + + public function hasNodePoolAutoConfig() + { + return isset($this->node_pool_auto_config); + } + + public function clearNodePoolAutoConfig() + { + unset($this->node_pool_auto_config); + } + + /** + * Node pool configs that apply to all auto-provisioned node pools + * in autopilot clusters and node auto-provisioning enabled clusters. + * + * Generated from protobuf field .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; + * @param \Google\Cloud\Container\V1\NodePoolAutoConfig $var + * @return $this + */ + public function setNodePoolAutoConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolAutoConfig::class); + $this->node_pool_auto_config = $var; + + return $this; + } + + /** + * This checksum is computed by the server based on the value of cluster + * fields, and may be sent on update requests to ensure the client has an + * up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 139; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * This checksum is computed by the server based on the value of cluster + * fields, and may be sent on update requests to ensure the client has an + * up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 139; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Fleet information for the cluster. + * + * Generated from protobuf field .google.container.v1.Fleet fleet = 140; + * @return \Google\Cloud\Container\V1\Fleet|null + */ + public function getFleet() + { + return $this->fleet; + } + + public function hasFleet() + { + return isset($this->fleet); + } + + public function clearFleet() + { + unset($this->fleet); + } + + /** + * Fleet information for the cluster. + * + * Generated from protobuf field .google.container.v1.Fleet fleet = 140; + * @param \Google\Cloud\Container\V1\Fleet $var + * @return $this + */ + public function setFleet($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\Fleet::class); + $this->fleet = $var; + + return $this; + } + + /** + * Enable/Disable Security Posture API features for the cluster. + * + * Generated from protobuf field .google.container.v1.SecurityPostureConfig security_posture_config = 145; + * @return \Google\Cloud\Container\V1\SecurityPostureConfig|null + */ + public function getSecurityPostureConfig() + { + return $this->security_posture_config; + } + + public function hasSecurityPostureConfig() + { + return isset($this->security_posture_config); + } + + public function clearSecurityPostureConfig() + { + unset($this->security_posture_config); + } + + /** + * Enable/Disable Security Posture API features for the cluster. + * + * Generated from protobuf field .google.container.v1.SecurityPostureConfig security_posture_config = 145; + * @param \Google\Cloud\Container\V1\SecurityPostureConfig $var + * @return $this + */ + public function setSecurityPostureConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\SecurityPostureConfig::class); + $this->security_posture_config = $var; + + return $this; + } + + /** + * Beta APIs Config + * + * Generated from protobuf field .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; + * @return \Google\Cloud\Container\V1\K8sBetaAPIConfig|null + */ + public function getEnableK8SBetaApis() + { + return $this->enable_k8s_beta_apis; + } + + public function hasEnableK8SBetaApis() + { + return isset($this->enable_k8s_beta_apis); + } + + public function clearEnableK8SBetaApis() + { + unset($this->enable_k8s_beta_apis); + } + + /** + * Beta APIs Config + * + * Generated from protobuf field .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; + * @param \Google\Cloud\Container\V1\K8sBetaAPIConfig $var + * @return $this + */ + public function setEnableK8SBetaApis($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\K8sBetaAPIConfig::class); + $this->enable_k8s_beta_apis = $var; + + return $this; + } + + /** + * GKE Enterprise Configuration. + * + * Generated from protobuf field .google.container.v1.EnterpriseConfig enterprise_config = 149; + * @return \Google\Cloud\Container\V1\EnterpriseConfig|null + */ + public function getEnterpriseConfig() + { + return $this->enterprise_config; + } + + public function hasEnterpriseConfig() + { + return isset($this->enterprise_config); + } + + public function clearEnterpriseConfig() + { + unset($this->enterprise_config); + } + + /** + * GKE Enterprise Configuration. + * + * Generated from protobuf field .google.container.v1.EnterpriseConfig enterprise_config = 149; + * @param \Google\Cloud\Container\V1\EnterpriseConfig $var + * @return $this + */ + public function setEnterpriseConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\EnterpriseConfig::class); + $this->enterprise_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Cluster/Status.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Cluster/Status.php new file mode 100644 index 000000000000..c9b3957604fb --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Cluster/Status.php @@ -0,0 +1,97 @@ +google.container.v1.Cluster.Status + */ +class Status +{ + /** + * Not set. + * + * Generated from protobuf enum STATUS_UNSPECIFIED = 0; + */ + const STATUS_UNSPECIFIED = 0; + /** + * The PROVISIONING state indicates the cluster is being created. + * + * Generated from protobuf enum PROVISIONING = 1; + */ + const PROVISIONING = 1; + /** + * The RUNNING state indicates the cluster has been created and is fully + * usable. + * + * Generated from protobuf enum RUNNING = 2; + */ + const RUNNING = 2; + /** + * The RECONCILING state indicates that some work is actively being done on + * the cluster, such as upgrading the master or node software. Details can + * be found in the `statusMessage` field. + * + * Generated from protobuf enum RECONCILING = 3; + */ + const RECONCILING = 3; + /** + * The STOPPING state indicates the cluster is being deleted. + * + * Generated from protobuf enum STOPPING = 4; + */ + const STOPPING = 4; + /** + * The ERROR state indicates the cluster is unusable. It will be + * automatically deleted. Details can be found in the `statusMessage` field. + * + * Generated from protobuf enum ERROR = 5; + */ + const ERROR = 5; + /** + * The DEGRADED state indicates the cluster requires user action to restore + * full functionality. Details can be found in the `statusMessage` field. + * + * Generated from protobuf enum DEGRADED = 6; + */ + const DEGRADED = 6; + + private static $valueToName = [ + self::STATUS_UNSPECIFIED => 'STATUS_UNSPECIFIED', + self::PROVISIONING => 'PROVISIONING', + self::RUNNING => 'RUNNING', + self::RECONCILING => 'RECONCILING', + self::STOPPING => 'STOPPING', + self::ERROR => 'ERROR', + self::DEGRADED => 'DEGRADED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Status::class, \Google\Cloud\Container\V1\Cluster_Status::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling.php new file mode 100644 index 000000000000..5ca6c015c80b --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling.php @@ -0,0 +1,232 @@ +google.container.v1.ClusterAutoscaling + */ +class ClusterAutoscaling extends \Google\Protobuf\Internal\Message +{ + /** + * Enables automatic node pool creation and deletion. + * + * Generated from protobuf field bool enable_node_autoprovisioning = 1; + */ + protected $enable_node_autoprovisioning = false; + /** + * Contains global constraints regarding minimum and maximum + * amount of resources in the cluster. + * + * Generated from protobuf field repeated .google.container.v1.ResourceLimit resource_limits = 2; + */ + private $resource_limits; + /** + * Defines autoscaling behaviour. + * + * Generated from protobuf field .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + */ + protected $autoscaling_profile = 0; + /** + * AutoprovisioningNodePoolDefaults contains defaults for a node pool + * created by NAP. + * + * Generated from protobuf field .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + */ + protected $autoprovisioning_node_pool_defaults = null; + /** + * The list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * NodePool's nodes can be created by NAP. + * + * Generated from protobuf field repeated string autoprovisioning_locations = 5; + */ + private $autoprovisioning_locations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enable_node_autoprovisioning + * Enables automatic node pool creation and deletion. + * @type array<\Google\Cloud\Container\V1\ResourceLimit>|\Google\Protobuf\Internal\RepeatedField $resource_limits + * Contains global constraints regarding minimum and maximum + * amount of resources in the cluster. + * @type int $autoscaling_profile + * Defines autoscaling behaviour. + * @type \Google\Cloud\Container\V1\AutoprovisioningNodePoolDefaults $autoprovisioning_node_pool_defaults + * AutoprovisioningNodePoolDefaults contains defaults for a node pool + * created by NAP. + * @type array|\Google\Protobuf\Internal\RepeatedField $autoprovisioning_locations + * The list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * NodePool's nodes can be created by NAP. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Enables automatic node pool creation and deletion. + * + * Generated from protobuf field bool enable_node_autoprovisioning = 1; + * @return bool + */ + public function getEnableNodeAutoprovisioning() + { + return $this->enable_node_autoprovisioning; + } + + /** + * Enables automatic node pool creation and deletion. + * + * Generated from protobuf field bool enable_node_autoprovisioning = 1; + * @param bool $var + * @return $this + */ + public function setEnableNodeAutoprovisioning($var) + { + GPBUtil::checkBool($var); + $this->enable_node_autoprovisioning = $var; + + return $this; + } + + /** + * Contains global constraints regarding minimum and maximum + * amount of resources in the cluster. + * + * Generated from protobuf field repeated .google.container.v1.ResourceLimit resource_limits = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getResourceLimits() + { + return $this->resource_limits; + } + + /** + * Contains global constraints regarding minimum and maximum + * amount of resources in the cluster. + * + * Generated from protobuf field repeated .google.container.v1.ResourceLimit resource_limits = 2; + * @param array<\Google\Cloud\Container\V1\ResourceLimit>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setResourceLimits($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\ResourceLimit::class); + $this->resource_limits = $arr; + + return $this; + } + + /** + * Defines autoscaling behaviour. + * + * Generated from protobuf field .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * @return int + */ + public function getAutoscalingProfile() + { + return $this->autoscaling_profile; + } + + /** + * Defines autoscaling behaviour. + * + * Generated from protobuf field .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * @param int $var + * @return $this + */ + public function setAutoscalingProfile($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\ClusterAutoscaling\AutoscalingProfile::class); + $this->autoscaling_profile = $var; + + return $this; + } + + /** + * AutoprovisioningNodePoolDefaults contains defaults for a node pool + * created by NAP. + * + * Generated from protobuf field .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * @return \Google\Cloud\Container\V1\AutoprovisioningNodePoolDefaults|null + */ + public function getAutoprovisioningNodePoolDefaults() + { + return $this->autoprovisioning_node_pool_defaults; + } + + public function hasAutoprovisioningNodePoolDefaults() + { + return isset($this->autoprovisioning_node_pool_defaults); + } + + public function clearAutoprovisioningNodePoolDefaults() + { + unset($this->autoprovisioning_node_pool_defaults); + } + + /** + * AutoprovisioningNodePoolDefaults contains defaults for a node pool + * created by NAP. + * + * Generated from protobuf field .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * @param \Google\Cloud\Container\V1\AutoprovisioningNodePoolDefaults $var + * @return $this + */ + public function setAutoprovisioningNodePoolDefaults($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AutoprovisioningNodePoolDefaults::class); + $this->autoprovisioning_node_pool_defaults = $var; + + return $this; + } + + /** + * The list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * NodePool's nodes can be created by NAP. + * + * Generated from protobuf field repeated string autoprovisioning_locations = 5; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAutoprovisioningLocations() + { + return $this->autoprovisioning_locations; + } + + /** + * The list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * NodePool's nodes can be created by NAP. + * + * Generated from protobuf field repeated string autoprovisioning_locations = 5; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAutoprovisioningLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->autoprovisioning_locations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling/AutoscalingProfile.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling/AutoscalingProfile.php new file mode 100644 index 000000000000..c749df9997d7 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling/AutoscalingProfile.php @@ -0,0 +1,64 @@ +google.container.v1.ClusterAutoscaling.AutoscalingProfile + */ +class AutoscalingProfile +{ + /** + * No change to autoscaling configuration. + * + * Generated from protobuf enum PROFILE_UNSPECIFIED = 0; + */ + const PROFILE_UNSPECIFIED = 0; + /** + * Prioritize optimizing utilization of resources. + * + * Generated from protobuf enum OPTIMIZE_UTILIZATION = 1; + */ + const OPTIMIZE_UTILIZATION = 1; + /** + * Use default (balanced) autoscaling configuration. + * + * Generated from protobuf enum BALANCED = 2; + */ + const BALANCED = 2; + + private static $valueToName = [ + self::PROFILE_UNSPECIFIED => 'PROFILE_UNSPECIFIED', + self::OPTIMIZE_UTILIZATION => 'OPTIMIZE_UTILIZATION', + self::BALANCED => 'BALANCED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(AutoscalingProfile::class, \Google\Cloud\Container\V1\ClusterAutoscaling_AutoscalingProfile::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterUpdate.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterUpdate.php new file mode 100644 index 000000000000..a692e468e02d --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterUpdate.php @@ -0,0 +1,2473 @@ +google.container.v1.ClusterUpdate + */ +class ClusterUpdate extends \Google\Protobuf\Internal\Message +{ + /** + * The Kubernetes version to change the nodes to (typically an + * upgrade). + * Users may specify either explicit versions offered by + * Kubernetes Engine or version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the Kubernetes master version + * + * Generated from protobuf field string desired_node_version = 4; + */ + protected $desired_node_version = ''; + /** + * The monitoring service the cluster should use to write metrics. + * Currently available options: + * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + * service with a Kubernetes-native resource model + * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + * longer available as of GKE 1.15). + * * `none` - No metrics will be exported from the cluster. + * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. + * + * Generated from protobuf field string desired_monitoring_service = 5; + */ + protected $desired_monitoring_service = ''; + /** + * Configurations for the various addons available to run in the cluster. + * + * Generated from protobuf field .google.container.v1.AddonsConfig desired_addons_config = 6; + */ + protected $desired_addons_config = null; + /** + * The node pool to be upgraded. This field is mandatory if + * "desired_node_version", "desired_image_family" or + * "desired_node_pool_autoscaling" is specified and there is more than one + * node pool on the cluster. + * + * Generated from protobuf field string desired_node_pool_id = 7; + */ + protected $desired_node_pool_id = ''; + /** + * The desired image type for the node pool. + * NOTE: Set the "desired_node_pool" field as well. + * + * Generated from protobuf field string desired_image_type = 8; + */ + protected $desired_image_type = ''; + /** + * Configuration of etcd encryption. + * + * Generated from protobuf field .google.container.v1.DatabaseEncryption desired_database_encryption = 46; + */ + protected $desired_database_encryption = null; + /** + * Configuration for Workload Identity. + * + * Generated from protobuf field .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + */ + protected $desired_workload_identity_config = null; + /** + * Configuration for issuance of mTLS keys and certificates to Kubernetes + * pods. + * + * Generated from protobuf field .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + */ + protected $desired_mesh_certificates = null; + /** + * Configuration for Shielded Nodes. + * + * Generated from protobuf field .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + */ + protected $desired_shielded_nodes = null; + /** + * The desired configuration for the fine-grained cost management feature. + * + * Generated from protobuf field .google.container.v1.CostManagementConfig desired_cost_management_config = 49; + */ + protected $desired_cost_management_config = null; + /** + * DNSConfig contains clusterDNS config for this cluster. + * + * Generated from protobuf field .google.container.v1.DNSConfig desired_dns_config = 53; + */ + protected $desired_dns_config = null; + /** + * Autoscaler configuration for the node pool specified in + * desired_node_pool_id. If there is only one pool in the + * cluster and desired_node_pool_id is not provided then + * the change applies to that single node pool. + * + * Generated from protobuf field .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + protected $desired_node_pool_autoscaling = null; + /** + * The desired list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster's nodes should be located. + * This list must always include the cluster's primary zone. + * Warning: changing cluster locations will update the locations of all node + * pools and will result in nodes being added and/or removed. + * + * Generated from protobuf field repeated string desired_locations = 10; + */ + private $desired_locations; + /** + * The desired configuration options for master authorized networks feature. + * + * Generated from protobuf field .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + protected $desired_master_authorized_networks_config = null; + /** + * Cluster-level autoscaling configuration. + * + * Generated from protobuf field .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + protected $desired_cluster_autoscaling = null; + /** + * The desired configuration options for the Binary Authorization feature. + * + * Generated from protobuf field .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; + */ + protected $desired_binary_authorization = null; + /** + * The logging service the cluster should use to write logs. + * Currently available options: + * * `logging.googleapis.com/kubernetes` - The Cloud Logging + * service with a Kubernetes-native resource model + * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + * available as of GKE 1.15). + * * `none` - no logs will be exported from the cluster. + * If left as an empty string,`logging.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. + * + * Generated from protobuf field string desired_logging_service = 19; + */ + protected $desired_logging_service = ''; + /** + * The desired configuration for exporting resource usage. + * + * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + */ + protected $desired_resource_usage_export_config = null; + /** + * Cluster-level Vertical Pod Autoscaling configuration. + * + * Generated from protobuf field .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + */ + protected $desired_vertical_pod_autoscaling = null; + /** + * The desired private cluster configuration. + * + * Generated from protobuf field .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + */ + protected $desired_private_cluster_config = null; + /** + * The desired config of Intra-node visibility. + * + * Generated from protobuf field .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + */ + protected $desired_intra_node_visibility_config = null; + /** + * The desired status of whether to disable default sNAT for this cluster. + * + * Generated from protobuf field .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + */ + protected $desired_default_snat_status = null; + /** + * The desired release channel configuration. + * + * Generated from protobuf field .google.container.v1.ReleaseChannel desired_release_channel = 31; + */ + protected $desired_release_channel = null; + /** + * The desired L4 Internal Load Balancer Subsetting configuration. + * + * Generated from protobuf field .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + */ + protected $desired_l4ilb_subsetting_config = null; + /** + * The desired datapath provider for the cluster. + * + * Generated from protobuf field .google.container.v1.DatapathProvider desired_datapath_provider = 50; + */ + protected $desired_datapath_provider = 0; + /** + * The desired state of IPv6 connectivity to Google Services. + * + * Generated from protobuf field .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + */ + protected $desired_private_ipv6_google_access = 0; + /** + * The desired notification configuration. + * + * Generated from protobuf field .google.container.v1.NotificationConfig desired_notification_config = 55; + */ + protected $desired_notification_config = null; + /** + * The desired authenticator groups config for the cluster. + * + * Generated from protobuf field .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + */ + protected $desired_authenticator_groups_config = null; + /** + * The desired logging configuration. + * + * Generated from protobuf field .google.container.v1.LoggingConfig desired_logging_config = 64; + */ + protected $desired_logging_config = null; + /** + * The desired monitoring configuration. + * + * Generated from protobuf field .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + */ + protected $desired_monitoring_config = null; + /** + * The desired Identity Service component configuration. + * + * Generated from protobuf field .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; + */ + protected $desired_identity_service_config = null; + /** + * ServiceExternalIPsConfig specifies the config for the use of Services with + * ExternalIPs field. + * + * Generated from protobuf field .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + */ + protected $desired_service_external_ips_config = null; + /** + * Enable/Disable private endpoint for the cluster's master. + * + * Generated from protobuf field optional bool desired_enable_private_endpoint = 71; + */ + protected $desired_enable_private_endpoint = null; + /** + * The Kubernetes version to change the master to. + * Users may specify either explicit versions offered by + * Kubernetes Engine or version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the default Kubernetes version + * + * Generated from protobuf field string desired_master_version = 100; + */ + protected $desired_master_version = ''; + /** + * The desired GCFS config for the cluster + * + * Generated from protobuf field .google.container.v1.GcfsConfig desired_gcfs_config = 109; + */ + protected $desired_gcfs_config = null; + /** + * The desired network tags that apply to all auto-provisioned node pools + * in autopilot clusters and node auto-provisioning enabled clusters. + * + * Generated from protobuf field .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; + */ + protected $desired_node_pool_auto_config_network_tags = null; + /** + * The desired config of Gateway API on this cluster. + * + * Generated from protobuf field .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; + */ + protected $desired_gateway_api_config = null; + /** + * The current etag of the cluster. + * If an etag is provided and does not match the current etag of the cluster, + * update will be blocked and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 115; + */ + protected $etag = ''; + /** + * The desired node pool logging configuration defaults for the cluster. + * + * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; + */ + protected $desired_node_pool_logging_config = null; + /** + * The desired fleet configuration for the cluster. + * + * Generated from protobuf field .google.container.v1.Fleet desired_fleet = 117; + */ + protected $desired_fleet = null; + /** + * The desired stack type of the cluster. + * If a stack type is provided and does not match the current stack type of + * the cluster, update will attempt to change the stack type to the new type. + * + * Generated from protobuf field .google.container.v1.StackType desired_stack_type = 119; + */ + protected $desired_stack_type = 0; + /** + * The additional pod ranges to be added to the cluster. These pod ranges + * can be used by node pools to allocate pod IPs. + * + * Generated from protobuf field .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; + */ + protected $additional_pod_ranges_config = null; + /** + * The additional pod ranges that are to be removed from the cluster. + * The pod ranges specified here must have been specified earlier in the + * 'additional_pod_ranges_config' argument. + * + * Generated from protobuf field .google.container.v1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; + */ + protected $removed_additional_pod_ranges_config = null; + /** + * Kubernetes open source beta apis enabled on the cluster. Only beta apis + * + * Generated from protobuf field .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; + */ + protected $enable_k8s_beta_apis = null; + /** + * Enable/Disable Security Posture API features for the cluster. + * + * Generated from protobuf field .google.container.v1.SecurityPostureConfig desired_security_posture_config = 124; + */ + protected $desired_security_posture_config = null; + /** + * The desired network performance config. + * + * Generated from protobuf field .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; + */ + protected $desired_network_performance_config = null; + /** + * Enable/Disable FQDN Network Policy for the cluster. + * + * Generated from protobuf field optional bool desired_enable_fqdn_network_policy = 126; + */ + protected $desired_enable_fqdn_network_policy = null; + /** + * The desired workload policy configuration for the autopilot cluster. + * + * Generated from protobuf field .google.container.v1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; + */ + protected $desired_autopilot_workload_policy_config = null; + /** + * Desired Beta APIs to be enabled for cluster. + * + * Generated from protobuf field .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; + */ + protected $desired_k8s_beta_apis = null; + /** + * Enable/Disable Multi-Networking for the cluster + * + * Generated from protobuf field optional bool desired_enable_multi_networking = 135; + */ + protected $desired_enable_multi_networking = null; + /** + * The desired resource manager tags that apply to all auto-provisioned node + * pools in autopilot clusters and node auto-provisioning enabled clusters. + * + * Generated from protobuf field .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; + */ + protected $desired_node_pool_auto_config_resource_manager_tags = null; + /** + * Specify the details of in-transit encryption. + * + * Generated from protobuf field optional .google.container.v1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; + */ + protected $desired_in_transit_encryption_config = null; + /** + * Enable/Disable Cilium Clusterwide Network Policy for the cluster. + * + * Generated from protobuf field optional bool desired_enable_cilium_clusterwide_network_policy = 138; + */ + protected $desired_enable_cilium_clusterwide_network_policy = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $desired_node_version + * The Kubernetes version to change the nodes to (typically an + * upgrade). + * Users may specify either explicit versions offered by + * Kubernetes Engine or version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the Kubernetes master version + * @type string $desired_monitoring_service + * The monitoring service the cluster should use to write metrics. + * Currently available options: + * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + * service with a Kubernetes-native resource model + * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + * longer available as of GKE 1.15). + * * `none` - No metrics will be exported from the cluster. + * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. + * @type \Google\Cloud\Container\V1\AddonsConfig $desired_addons_config + * Configurations for the various addons available to run in the cluster. + * @type string $desired_node_pool_id + * The node pool to be upgraded. This field is mandatory if + * "desired_node_version", "desired_image_family" or + * "desired_node_pool_autoscaling" is specified and there is more than one + * node pool on the cluster. + * @type string $desired_image_type + * The desired image type for the node pool. + * NOTE: Set the "desired_node_pool" field as well. + * @type \Google\Cloud\Container\V1\DatabaseEncryption $desired_database_encryption + * Configuration of etcd encryption. + * @type \Google\Cloud\Container\V1\WorkloadIdentityConfig $desired_workload_identity_config + * Configuration for Workload Identity. + * @type \Google\Cloud\Container\V1\MeshCertificates $desired_mesh_certificates + * Configuration for issuance of mTLS keys and certificates to Kubernetes + * pods. + * @type \Google\Cloud\Container\V1\ShieldedNodes $desired_shielded_nodes + * Configuration for Shielded Nodes. + * @type \Google\Cloud\Container\V1\CostManagementConfig $desired_cost_management_config + * The desired configuration for the fine-grained cost management feature. + * @type \Google\Cloud\Container\V1\DNSConfig $desired_dns_config + * DNSConfig contains clusterDNS config for this cluster. + * @type \Google\Cloud\Container\V1\NodePoolAutoscaling $desired_node_pool_autoscaling + * Autoscaler configuration for the node pool specified in + * desired_node_pool_id. If there is only one pool in the + * cluster and desired_node_pool_id is not provided then + * the change applies to that single node pool. + * @type array|\Google\Protobuf\Internal\RepeatedField $desired_locations + * The desired list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster's nodes should be located. + * This list must always include the cluster's primary zone. + * Warning: changing cluster locations will update the locations of all node + * pools and will result in nodes being added and/or removed. + * @type \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig $desired_master_authorized_networks_config + * The desired configuration options for master authorized networks feature. + * @type \Google\Cloud\Container\V1\ClusterAutoscaling $desired_cluster_autoscaling + * Cluster-level autoscaling configuration. + * @type \Google\Cloud\Container\V1\BinaryAuthorization $desired_binary_authorization + * The desired configuration options for the Binary Authorization feature. + * @type string $desired_logging_service + * The logging service the cluster should use to write logs. + * Currently available options: + * * `logging.googleapis.com/kubernetes` - The Cloud Logging + * service with a Kubernetes-native resource model + * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + * available as of GKE 1.15). + * * `none` - no logs will be exported from the cluster. + * If left as an empty string,`logging.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. + * @type \Google\Cloud\Container\V1\ResourceUsageExportConfig $desired_resource_usage_export_config + * The desired configuration for exporting resource usage. + * @type \Google\Cloud\Container\V1\VerticalPodAutoscaling $desired_vertical_pod_autoscaling + * Cluster-level Vertical Pod Autoscaling configuration. + * @type \Google\Cloud\Container\V1\PrivateClusterConfig $desired_private_cluster_config + * The desired private cluster configuration. + * @type \Google\Cloud\Container\V1\IntraNodeVisibilityConfig $desired_intra_node_visibility_config + * The desired config of Intra-node visibility. + * @type \Google\Cloud\Container\V1\DefaultSnatStatus $desired_default_snat_status + * The desired status of whether to disable default sNAT for this cluster. + * @type \Google\Cloud\Container\V1\ReleaseChannel $desired_release_channel + * The desired release channel configuration. + * @type \Google\Cloud\Container\V1\ILBSubsettingConfig $desired_l4ilb_subsetting_config + * The desired L4 Internal Load Balancer Subsetting configuration. + * @type int $desired_datapath_provider + * The desired datapath provider for the cluster. + * @type int $desired_private_ipv6_google_access + * The desired state of IPv6 connectivity to Google Services. + * @type \Google\Cloud\Container\V1\NotificationConfig $desired_notification_config + * The desired notification configuration. + * @type \Google\Cloud\Container\V1\AuthenticatorGroupsConfig $desired_authenticator_groups_config + * The desired authenticator groups config for the cluster. + * @type \Google\Cloud\Container\V1\LoggingConfig $desired_logging_config + * The desired logging configuration. + * @type \Google\Cloud\Container\V1\MonitoringConfig $desired_monitoring_config + * The desired monitoring configuration. + * @type \Google\Cloud\Container\V1\IdentityServiceConfig $desired_identity_service_config + * The desired Identity Service component configuration. + * @type \Google\Cloud\Container\V1\ServiceExternalIPsConfig $desired_service_external_ips_config + * ServiceExternalIPsConfig specifies the config for the use of Services with + * ExternalIPs field. + * @type bool $desired_enable_private_endpoint + * Enable/Disable private endpoint for the cluster's master. + * @type string $desired_master_version + * The Kubernetes version to change the master to. + * Users may specify either explicit versions offered by + * Kubernetes Engine or version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the default Kubernetes version + * @type \Google\Cloud\Container\V1\GcfsConfig $desired_gcfs_config + * The desired GCFS config for the cluster + * @type \Google\Cloud\Container\V1\NetworkTags $desired_node_pool_auto_config_network_tags + * The desired network tags that apply to all auto-provisioned node pools + * in autopilot clusters and node auto-provisioning enabled clusters. + * @type \Google\Cloud\Container\V1\GatewayAPIConfig $desired_gateway_api_config + * The desired config of Gateway API on this cluster. + * @type string $etag + * The current etag of the cluster. + * If an etag is provided and does not match the current etag of the cluster, + * update will be blocked and an ABORTED error will be returned. + * @type \Google\Cloud\Container\V1\NodePoolLoggingConfig $desired_node_pool_logging_config + * The desired node pool logging configuration defaults for the cluster. + * @type \Google\Cloud\Container\V1\Fleet $desired_fleet + * The desired fleet configuration for the cluster. + * @type int $desired_stack_type + * The desired stack type of the cluster. + * If a stack type is provided and does not match the current stack type of + * the cluster, update will attempt to change the stack type to the new type. + * @type \Google\Cloud\Container\V1\AdditionalPodRangesConfig $additional_pod_ranges_config + * The additional pod ranges to be added to the cluster. These pod ranges + * can be used by node pools to allocate pod IPs. + * @type \Google\Cloud\Container\V1\AdditionalPodRangesConfig $removed_additional_pod_ranges_config + * The additional pod ranges that are to be removed from the cluster. + * The pod ranges specified here must have been specified earlier in the + * 'additional_pod_ranges_config' argument. + * @type \Google\Cloud\Container\V1\K8sBetaAPIConfig $enable_k8s_beta_apis + * Kubernetes open source beta apis enabled on the cluster. Only beta apis + * @type \Google\Cloud\Container\V1\SecurityPostureConfig $desired_security_posture_config + * Enable/Disable Security Posture API features for the cluster. + * @type \Google\Cloud\Container\V1\NetworkConfig\ClusterNetworkPerformanceConfig $desired_network_performance_config + * The desired network performance config. + * @type bool $desired_enable_fqdn_network_policy + * Enable/Disable FQDN Network Policy for the cluster. + * @type \Google\Cloud\Container\V1\WorkloadPolicyConfig $desired_autopilot_workload_policy_config + * The desired workload policy configuration for the autopilot cluster. + * @type \Google\Cloud\Container\V1\K8sBetaAPIConfig $desired_k8s_beta_apis + * Desired Beta APIs to be enabled for cluster. + * @type bool $desired_enable_multi_networking + * Enable/Disable Multi-Networking for the cluster + * @type \Google\Cloud\Container\V1\ResourceManagerTags $desired_node_pool_auto_config_resource_manager_tags + * The desired resource manager tags that apply to all auto-provisioned node + * pools in autopilot clusters and node auto-provisioning enabled clusters. + * @type int $desired_in_transit_encryption_config + * Specify the details of in-transit encryption. + * @type bool $desired_enable_cilium_clusterwide_network_policy + * Enable/Disable Cilium Clusterwide Network Policy for the cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The Kubernetes version to change the nodes to (typically an + * upgrade). + * Users may specify either explicit versions offered by + * Kubernetes Engine or version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the Kubernetes master version + * + * Generated from protobuf field string desired_node_version = 4; + * @return string + */ + public function getDesiredNodeVersion() + { + return $this->desired_node_version; + } + + /** + * The Kubernetes version to change the nodes to (typically an + * upgrade). + * Users may specify either explicit versions offered by + * Kubernetes Engine or version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the Kubernetes master version + * + * Generated from protobuf field string desired_node_version = 4; + * @param string $var + * @return $this + */ + public function setDesiredNodeVersion($var) + { + GPBUtil::checkString($var, True); + $this->desired_node_version = $var; + + return $this; + } + + /** + * The monitoring service the cluster should use to write metrics. + * Currently available options: + * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + * service with a Kubernetes-native resource model + * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + * longer available as of GKE 1.15). + * * `none` - No metrics will be exported from the cluster. + * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. + * + * Generated from protobuf field string desired_monitoring_service = 5; + * @return string + */ + public function getDesiredMonitoringService() + { + return $this->desired_monitoring_service; + } + + /** + * The monitoring service the cluster should use to write metrics. + * Currently available options: + * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + * service with a Kubernetes-native resource model + * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + * longer available as of GKE 1.15). + * * `none` - No metrics will be exported from the cluster. + * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. + * + * Generated from protobuf field string desired_monitoring_service = 5; + * @param string $var + * @return $this + */ + public function setDesiredMonitoringService($var) + { + GPBUtil::checkString($var, True); + $this->desired_monitoring_service = $var; + + return $this; + } + + /** + * Configurations for the various addons available to run in the cluster. + * + * Generated from protobuf field .google.container.v1.AddonsConfig desired_addons_config = 6; + * @return \Google\Cloud\Container\V1\AddonsConfig|null + */ + public function getDesiredAddonsConfig() + { + return $this->desired_addons_config; + } + + public function hasDesiredAddonsConfig() + { + return isset($this->desired_addons_config); + } + + public function clearDesiredAddonsConfig() + { + unset($this->desired_addons_config); + } + + /** + * Configurations for the various addons available to run in the cluster. + * + * Generated from protobuf field .google.container.v1.AddonsConfig desired_addons_config = 6; + * @param \Google\Cloud\Container\V1\AddonsConfig $var + * @return $this + */ + public function setDesiredAddonsConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AddonsConfig::class); + $this->desired_addons_config = $var; + + return $this; + } + + /** + * The node pool to be upgraded. This field is mandatory if + * "desired_node_version", "desired_image_family" or + * "desired_node_pool_autoscaling" is specified and there is more than one + * node pool on the cluster. + * + * Generated from protobuf field string desired_node_pool_id = 7; + * @return string + */ + public function getDesiredNodePoolId() + { + return $this->desired_node_pool_id; + } + + /** + * The node pool to be upgraded. This field is mandatory if + * "desired_node_version", "desired_image_family" or + * "desired_node_pool_autoscaling" is specified and there is more than one + * node pool on the cluster. + * + * Generated from protobuf field string desired_node_pool_id = 7; + * @param string $var + * @return $this + */ + public function setDesiredNodePoolId($var) + { + GPBUtil::checkString($var, True); + $this->desired_node_pool_id = $var; + + return $this; + } + + /** + * The desired image type for the node pool. + * NOTE: Set the "desired_node_pool" field as well. + * + * Generated from protobuf field string desired_image_type = 8; + * @return string + */ + public function getDesiredImageType() + { + return $this->desired_image_type; + } + + /** + * The desired image type for the node pool. + * NOTE: Set the "desired_node_pool" field as well. + * + * Generated from protobuf field string desired_image_type = 8; + * @param string $var + * @return $this + */ + public function setDesiredImageType($var) + { + GPBUtil::checkString($var, True); + $this->desired_image_type = $var; + + return $this; + } + + /** + * Configuration of etcd encryption. + * + * Generated from protobuf field .google.container.v1.DatabaseEncryption desired_database_encryption = 46; + * @return \Google\Cloud\Container\V1\DatabaseEncryption|null + */ + public function getDesiredDatabaseEncryption() + { + return $this->desired_database_encryption; + } + + public function hasDesiredDatabaseEncryption() + { + return isset($this->desired_database_encryption); + } + + public function clearDesiredDatabaseEncryption() + { + unset($this->desired_database_encryption); + } + + /** + * Configuration of etcd encryption. + * + * Generated from protobuf field .google.container.v1.DatabaseEncryption desired_database_encryption = 46; + * @param \Google\Cloud\Container\V1\DatabaseEncryption $var + * @return $this + */ + public function setDesiredDatabaseEncryption($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\DatabaseEncryption::class); + $this->desired_database_encryption = $var; + + return $this; + } + + /** + * Configuration for Workload Identity. + * + * Generated from protobuf field .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * @return \Google\Cloud\Container\V1\WorkloadIdentityConfig|null + */ + public function getDesiredWorkloadIdentityConfig() + { + return $this->desired_workload_identity_config; + } + + public function hasDesiredWorkloadIdentityConfig() + { + return isset($this->desired_workload_identity_config); + } + + public function clearDesiredWorkloadIdentityConfig() + { + unset($this->desired_workload_identity_config); + } + + /** + * Configuration for Workload Identity. + * + * Generated from protobuf field .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * @param \Google\Cloud\Container\V1\WorkloadIdentityConfig $var + * @return $this + */ + public function setDesiredWorkloadIdentityConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\WorkloadIdentityConfig::class); + $this->desired_workload_identity_config = $var; + + return $this; + } + + /** + * Configuration for issuance of mTLS keys and certificates to Kubernetes + * pods. + * + * Generated from protobuf field .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + * @return \Google\Cloud\Container\V1\MeshCertificates|null + */ + public function getDesiredMeshCertificates() + { + return $this->desired_mesh_certificates; + } + + public function hasDesiredMeshCertificates() + { + return isset($this->desired_mesh_certificates); + } + + public function clearDesiredMeshCertificates() + { + unset($this->desired_mesh_certificates); + } + + /** + * Configuration for issuance of mTLS keys and certificates to Kubernetes + * pods. + * + * Generated from protobuf field .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + * @param \Google\Cloud\Container\V1\MeshCertificates $var + * @return $this + */ + public function setDesiredMeshCertificates($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MeshCertificates::class); + $this->desired_mesh_certificates = $var; + + return $this; + } + + /** + * Configuration for Shielded Nodes. + * + * Generated from protobuf field .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + * @return \Google\Cloud\Container\V1\ShieldedNodes|null + */ + public function getDesiredShieldedNodes() + { + return $this->desired_shielded_nodes; + } + + public function hasDesiredShieldedNodes() + { + return isset($this->desired_shielded_nodes); + } + + public function clearDesiredShieldedNodes() + { + unset($this->desired_shielded_nodes); + } + + /** + * Configuration for Shielded Nodes. + * + * Generated from protobuf field .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + * @param \Google\Cloud\Container\V1\ShieldedNodes $var + * @return $this + */ + public function setDesiredShieldedNodes($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ShieldedNodes::class); + $this->desired_shielded_nodes = $var; + + return $this; + } + + /** + * The desired configuration for the fine-grained cost management feature. + * + * Generated from protobuf field .google.container.v1.CostManagementConfig desired_cost_management_config = 49; + * @return \Google\Cloud\Container\V1\CostManagementConfig|null + */ + public function getDesiredCostManagementConfig() + { + return $this->desired_cost_management_config; + } + + public function hasDesiredCostManagementConfig() + { + return isset($this->desired_cost_management_config); + } + + public function clearDesiredCostManagementConfig() + { + unset($this->desired_cost_management_config); + } + + /** + * The desired configuration for the fine-grained cost management feature. + * + * Generated from protobuf field .google.container.v1.CostManagementConfig desired_cost_management_config = 49; + * @param \Google\Cloud\Container\V1\CostManagementConfig $var + * @return $this + */ + public function setDesiredCostManagementConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\CostManagementConfig::class); + $this->desired_cost_management_config = $var; + + return $this; + } + + /** + * DNSConfig contains clusterDNS config for this cluster. + * + * Generated from protobuf field .google.container.v1.DNSConfig desired_dns_config = 53; + * @return \Google\Cloud\Container\V1\DNSConfig|null + */ + public function getDesiredDnsConfig() + { + return $this->desired_dns_config; + } + + public function hasDesiredDnsConfig() + { + return isset($this->desired_dns_config); + } + + public function clearDesiredDnsConfig() + { + unset($this->desired_dns_config); + } + + /** + * DNSConfig contains clusterDNS config for this cluster. + * + * Generated from protobuf field .google.container.v1.DNSConfig desired_dns_config = 53; + * @param \Google\Cloud\Container\V1\DNSConfig $var + * @return $this + */ + public function setDesiredDnsConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\DNSConfig::class); + $this->desired_dns_config = $var; + + return $this; + } + + /** + * Autoscaler configuration for the node pool specified in + * desired_node_pool_id. If there is only one pool in the + * cluster and desired_node_pool_id is not provided then + * the change applies to that single node pool. + * + * Generated from protobuf field .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + * @return \Google\Cloud\Container\V1\NodePoolAutoscaling|null + */ + public function getDesiredNodePoolAutoscaling() + { + return $this->desired_node_pool_autoscaling; + } + + public function hasDesiredNodePoolAutoscaling() + { + return isset($this->desired_node_pool_autoscaling); + } + + public function clearDesiredNodePoolAutoscaling() + { + unset($this->desired_node_pool_autoscaling); + } + + /** + * Autoscaler configuration for the node pool specified in + * desired_node_pool_id. If there is only one pool in the + * cluster and desired_node_pool_id is not provided then + * the change applies to that single node pool. + * + * Generated from protobuf field .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + * @param \Google\Cloud\Container\V1\NodePoolAutoscaling $var + * @return $this + */ + public function setDesiredNodePoolAutoscaling($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolAutoscaling::class); + $this->desired_node_pool_autoscaling = $var; + + return $this; + } + + /** + * The desired list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster's nodes should be located. + * This list must always include the cluster's primary zone. + * Warning: changing cluster locations will update the locations of all node + * pools and will result in nodes being added and/or removed. + * + * Generated from protobuf field repeated string desired_locations = 10; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDesiredLocations() + { + return $this->desired_locations; + } + + /** + * The desired list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster's nodes should be located. + * This list must always include the cluster's primary zone. + * Warning: changing cluster locations will update the locations of all node + * pools and will result in nodes being added and/or removed. + * + * Generated from protobuf field repeated string desired_locations = 10; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDesiredLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->desired_locations = $arr; + + return $this; + } + + /** + * The desired configuration options for master authorized networks feature. + * + * Generated from protobuf field .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * @return \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig|null + */ + public function getDesiredMasterAuthorizedNetworksConfig() + { + return $this->desired_master_authorized_networks_config; + } + + public function hasDesiredMasterAuthorizedNetworksConfig() + { + return isset($this->desired_master_authorized_networks_config); + } + + public function clearDesiredMasterAuthorizedNetworksConfig() + { + unset($this->desired_master_authorized_networks_config); + } + + /** + * The desired configuration options for master authorized networks feature. + * + * Generated from protobuf field .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * @param \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig $var + * @return $this + */ + public function setDesiredMasterAuthorizedNetworksConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig::class); + $this->desired_master_authorized_networks_config = $var; + + return $this; + } + + /** + * Cluster-level autoscaling configuration. + * + * Generated from protobuf field .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; + * @return \Google\Cloud\Container\V1\ClusterAutoscaling|null + */ + public function getDesiredClusterAutoscaling() + { + return $this->desired_cluster_autoscaling; + } + + public function hasDesiredClusterAutoscaling() + { + return isset($this->desired_cluster_autoscaling); + } + + public function clearDesiredClusterAutoscaling() + { + unset($this->desired_cluster_autoscaling); + } + + /** + * Cluster-level autoscaling configuration. + * + * Generated from protobuf field .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; + * @param \Google\Cloud\Container\V1\ClusterAutoscaling $var + * @return $this + */ + public function setDesiredClusterAutoscaling($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ClusterAutoscaling::class); + $this->desired_cluster_autoscaling = $var; + + return $this; + } + + /** + * The desired configuration options for the Binary Authorization feature. + * + * Generated from protobuf field .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; + * @return \Google\Cloud\Container\V1\BinaryAuthorization|null + */ + public function getDesiredBinaryAuthorization() + { + return $this->desired_binary_authorization; + } + + public function hasDesiredBinaryAuthorization() + { + return isset($this->desired_binary_authorization); + } + + public function clearDesiredBinaryAuthorization() + { + unset($this->desired_binary_authorization); + } + + /** + * The desired configuration options for the Binary Authorization feature. + * + * Generated from protobuf field .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; + * @param \Google\Cloud\Container\V1\BinaryAuthorization $var + * @return $this + */ + public function setDesiredBinaryAuthorization($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\BinaryAuthorization::class); + $this->desired_binary_authorization = $var; + + return $this; + } + + /** + * The logging service the cluster should use to write logs. + * Currently available options: + * * `logging.googleapis.com/kubernetes` - The Cloud Logging + * service with a Kubernetes-native resource model + * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + * available as of GKE 1.15). + * * `none` - no logs will be exported from the cluster. + * If left as an empty string,`logging.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. + * + * Generated from protobuf field string desired_logging_service = 19; + * @return string + */ + public function getDesiredLoggingService() + { + return $this->desired_logging_service; + } + + /** + * The logging service the cluster should use to write logs. + * Currently available options: + * * `logging.googleapis.com/kubernetes` - The Cloud Logging + * service with a Kubernetes-native resource model + * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + * available as of GKE 1.15). + * * `none` - no logs will be exported from the cluster. + * If left as an empty string,`logging.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. + * + * Generated from protobuf field string desired_logging_service = 19; + * @param string $var + * @return $this + */ + public function setDesiredLoggingService($var) + { + GPBUtil::checkString($var, True); + $this->desired_logging_service = $var; + + return $this; + } + + /** + * The desired configuration for exporting resource usage. + * + * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * @return \Google\Cloud\Container\V1\ResourceUsageExportConfig|null + */ + public function getDesiredResourceUsageExportConfig() + { + return $this->desired_resource_usage_export_config; + } + + public function hasDesiredResourceUsageExportConfig() + { + return isset($this->desired_resource_usage_export_config); + } + + public function clearDesiredResourceUsageExportConfig() + { + unset($this->desired_resource_usage_export_config); + } + + /** + * The desired configuration for exporting resource usage. + * + * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * @param \Google\Cloud\Container\V1\ResourceUsageExportConfig $var + * @return $this + */ + public function setDesiredResourceUsageExportConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ResourceUsageExportConfig::class); + $this->desired_resource_usage_export_config = $var; + + return $this; + } + + /** + * Cluster-level Vertical Pod Autoscaling configuration. + * + * Generated from protobuf field .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * @return \Google\Cloud\Container\V1\VerticalPodAutoscaling|null + */ + public function getDesiredVerticalPodAutoscaling() + { + return $this->desired_vertical_pod_autoscaling; + } + + public function hasDesiredVerticalPodAutoscaling() + { + return isset($this->desired_vertical_pod_autoscaling); + } + + public function clearDesiredVerticalPodAutoscaling() + { + unset($this->desired_vertical_pod_autoscaling); + } + + /** + * Cluster-level Vertical Pod Autoscaling configuration. + * + * Generated from protobuf field .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * @param \Google\Cloud\Container\V1\VerticalPodAutoscaling $var + * @return $this + */ + public function setDesiredVerticalPodAutoscaling($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\VerticalPodAutoscaling::class); + $this->desired_vertical_pod_autoscaling = $var; + + return $this; + } + + /** + * The desired private cluster configuration. + * + * Generated from protobuf field .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + * @return \Google\Cloud\Container\V1\PrivateClusterConfig|null + */ + public function getDesiredPrivateClusterConfig() + { + return $this->desired_private_cluster_config; + } + + public function hasDesiredPrivateClusterConfig() + { + return isset($this->desired_private_cluster_config); + } + + public function clearDesiredPrivateClusterConfig() + { + unset($this->desired_private_cluster_config); + } + + /** + * The desired private cluster configuration. + * + * Generated from protobuf field .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + * @param \Google\Cloud\Container\V1\PrivateClusterConfig $var + * @return $this + */ + public function setDesiredPrivateClusterConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\PrivateClusterConfig::class); + $this->desired_private_cluster_config = $var; + + return $this; + } + + /** + * The desired config of Intra-node visibility. + * + * Generated from protobuf field .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * @return \Google\Cloud\Container\V1\IntraNodeVisibilityConfig|null + */ + public function getDesiredIntraNodeVisibilityConfig() + { + return $this->desired_intra_node_visibility_config; + } + + public function hasDesiredIntraNodeVisibilityConfig() + { + return isset($this->desired_intra_node_visibility_config); + } + + public function clearDesiredIntraNodeVisibilityConfig() + { + unset($this->desired_intra_node_visibility_config); + } + + /** + * The desired config of Intra-node visibility. + * + * Generated from protobuf field .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * @param \Google\Cloud\Container\V1\IntraNodeVisibilityConfig $var + * @return $this + */ + public function setDesiredIntraNodeVisibilityConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\IntraNodeVisibilityConfig::class); + $this->desired_intra_node_visibility_config = $var; + + return $this; + } + + /** + * The desired status of whether to disable default sNAT for this cluster. + * + * Generated from protobuf field .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + * @return \Google\Cloud\Container\V1\DefaultSnatStatus|null + */ + public function getDesiredDefaultSnatStatus() + { + return $this->desired_default_snat_status; + } + + public function hasDesiredDefaultSnatStatus() + { + return isset($this->desired_default_snat_status); + } + + public function clearDesiredDefaultSnatStatus() + { + unset($this->desired_default_snat_status); + } + + /** + * The desired status of whether to disable default sNAT for this cluster. + * + * Generated from protobuf field .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + * @param \Google\Cloud\Container\V1\DefaultSnatStatus $var + * @return $this + */ + public function setDesiredDefaultSnatStatus($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\DefaultSnatStatus::class); + $this->desired_default_snat_status = $var; + + return $this; + } + + /** + * The desired release channel configuration. + * + * Generated from protobuf field .google.container.v1.ReleaseChannel desired_release_channel = 31; + * @return \Google\Cloud\Container\V1\ReleaseChannel|null + */ + public function getDesiredReleaseChannel() + { + return $this->desired_release_channel; + } + + public function hasDesiredReleaseChannel() + { + return isset($this->desired_release_channel); + } + + public function clearDesiredReleaseChannel() + { + unset($this->desired_release_channel); + } + + /** + * The desired release channel configuration. + * + * Generated from protobuf field .google.container.v1.ReleaseChannel desired_release_channel = 31; + * @param \Google\Cloud\Container\V1\ReleaseChannel $var + * @return $this + */ + public function setDesiredReleaseChannel($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ReleaseChannel::class); + $this->desired_release_channel = $var; + + return $this; + } + + /** + * The desired L4 Internal Load Balancer Subsetting configuration. + * + * Generated from protobuf field .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + * @return \Google\Cloud\Container\V1\ILBSubsettingConfig|null + */ + public function getDesiredL4IlbSubsettingConfig() + { + return $this->desired_l4ilb_subsetting_config; + } + + public function hasDesiredL4IlbSubsettingConfig() + { + return isset($this->desired_l4ilb_subsetting_config); + } + + public function clearDesiredL4IlbSubsettingConfig() + { + unset($this->desired_l4ilb_subsetting_config); + } + + /** + * The desired L4 Internal Load Balancer Subsetting configuration. + * + * Generated from protobuf field .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + * @param \Google\Cloud\Container\V1\ILBSubsettingConfig $var + * @return $this + */ + public function setDesiredL4IlbSubsettingConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ILBSubsettingConfig::class); + $this->desired_l4ilb_subsetting_config = $var; + + return $this; + } + + /** + * The desired datapath provider for the cluster. + * + * Generated from protobuf field .google.container.v1.DatapathProvider desired_datapath_provider = 50; + * @return int + */ + public function getDesiredDatapathProvider() + { + return $this->desired_datapath_provider; + } + + /** + * The desired datapath provider for the cluster. + * + * Generated from protobuf field .google.container.v1.DatapathProvider desired_datapath_provider = 50; + * @param int $var + * @return $this + */ + public function setDesiredDatapathProvider($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\DatapathProvider::class); + $this->desired_datapath_provider = $var; + + return $this; + } + + /** + * The desired state of IPv6 connectivity to Google Services. + * + * Generated from protobuf field .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + * @return int + */ + public function getDesiredPrivateIpv6GoogleAccess() + { + return $this->desired_private_ipv6_google_access; + } + + /** + * The desired state of IPv6 connectivity to Google Services. + * + * Generated from protobuf field .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + * @param int $var + * @return $this + */ + public function setDesiredPrivateIpv6GoogleAccess($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\PrivateIPv6GoogleAccess::class); + $this->desired_private_ipv6_google_access = $var; + + return $this; + } + + /** + * The desired notification configuration. + * + * Generated from protobuf field .google.container.v1.NotificationConfig desired_notification_config = 55; + * @return \Google\Cloud\Container\V1\NotificationConfig|null + */ + public function getDesiredNotificationConfig() + { + return $this->desired_notification_config; + } + + public function hasDesiredNotificationConfig() + { + return isset($this->desired_notification_config); + } + + public function clearDesiredNotificationConfig() + { + unset($this->desired_notification_config); + } + + /** + * The desired notification configuration. + * + * Generated from protobuf field .google.container.v1.NotificationConfig desired_notification_config = 55; + * @param \Google\Cloud\Container\V1\NotificationConfig $var + * @return $this + */ + public function setDesiredNotificationConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NotificationConfig::class); + $this->desired_notification_config = $var; + + return $this; + } + + /** + * The desired authenticator groups config for the cluster. + * + * Generated from protobuf field .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * @return \Google\Cloud\Container\V1\AuthenticatorGroupsConfig|null + */ + public function getDesiredAuthenticatorGroupsConfig() + { + return $this->desired_authenticator_groups_config; + } + + public function hasDesiredAuthenticatorGroupsConfig() + { + return isset($this->desired_authenticator_groups_config); + } + + public function clearDesiredAuthenticatorGroupsConfig() + { + unset($this->desired_authenticator_groups_config); + } + + /** + * The desired authenticator groups config for the cluster. + * + * Generated from protobuf field .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * @param \Google\Cloud\Container\V1\AuthenticatorGroupsConfig $var + * @return $this + */ + public function setDesiredAuthenticatorGroupsConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AuthenticatorGroupsConfig::class); + $this->desired_authenticator_groups_config = $var; + + return $this; + } + + /** + * The desired logging configuration. + * + * Generated from protobuf field .google.container.v1.LoggingConfig desired_logging_config = 64; + * @return \Google\Cloud\Container\V1\LoggingConfig|null + */ + public function getDesiredLoggingConfig() + { + return $this->desired_logging_config; + } + + public function hasDesiredLoggingConfig() + { + return isset($this->desired_logging_config); + } + + public function clearDesiredLoggingConfig() + { + unset($this->desired_logging_config); + } + + /** + * The desired logging configuration. + * + * Generated from protobuf field .google.container.v1.LoggingConfig desired_logging_config = 64; + * @param \Google\Cloud\Container\V1\LoggingConfig $var + * @return $this + */ + public function setDesiredLoggingConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LoggingConfig::class); + $this->desired_logging_config = $var; + + return $this; + } + + /** + * The desired monitoring configuration. + * + * Generated from protobuf field .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + * @return \Google\Cloud\Container\V1\MonitoringConfig|null + */ + public function getDesiredMonitoringConfig() + { + return $this->desired_monitoring_config; + } + + public function hasDesiredMonitoringConfig() + { + return isset($this->desired_monitoring_config); + } + + public function clearDesiredMonitoringConfig() + { + unset($this->desired_monitoring_config); + } + + /** + * The desired monitoring configuration. + * + * Generated from protobuf field .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + * @param \Google\Cloud\Container\V1\MonitoringConfig $var + * @return $this + */ + public function setDesiredMonitoringConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MonitoringConfig::class); + $this->desired_monitoring_config = $var; + + return $this; + } + + /** + * The desired Identity Service component configuration. + * + * Generated from protobuf field .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; + * @return \Google\Cloud\Container\V1\IdentityServiceConfig|null + */ + public function getDesiredIdentityServiceConfig() + { + return $this->desired_identity_service_config; + } + + public function hasDesiredIdentityServiceConfig() + { + return isset($this->desired_identity_service_config); + } + + public function clearDesiredIdentityServiceConfig() + { + unset($this->desired_identity_service_config); + } + + /** + * The desired Identity Service component configuration. + * + * Generated from protobuf field .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; + * @param \Google\Cloud\Container\V1\IdentityServiceConfig $var + * @return $this + */ + public function setDesiredIdentityServiceConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\IdentityServiceConfig::class); + $this->desired_identity_service_config = $var; + + return $this; + } + + /** + * ServiceExternalIPsConfig specifies the config for the use of Services with + * ExternalIPs field. + * + * Generated from protobuf field .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + * @return \Google\Cloud\Container\V1\ServiceExternalIPsConfig|null + */ + public function getDesiredServiceExternalIpsConfig() + { + return $this->desired_service_external_ips_config; + } + + public function hasDesiredServiceExternalIpsConfig() + { + return isset($this->desired_service_external_ips_config); + } + + public function clearDesiredServiceExternalIpsConfig() + { + unset($this->desired_service_external_ips_config); + } + + /** + * ServiceExternalIPsConfig specifies the config for the use of Services with + * ExternalIPs field. + * + * Generated from protobuf field .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + * @param \Google\Cloud\Container\V1\ServiceExternalIPsConfig $var + * @return $this + */ + public function setDesiredServiceExternalIpsConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ServiceExternalIPsConfig::class); + $this->desired_service_external_ips_config = $var; + + return $this; + } + + /** + * Enable/Disable private endpoint for the cluster's master. + * + * Generated from protobuf field optional bool desired_enable_private_endpoint = 71; + * @return bool + */ + public function getDesiredEnablePrivateEndpoint() + { + return isset($this->desired_enable_private_endpoint) ? $this->desired_enable_private_endpoint : false; + } + + public function hasDesiredEnablePrivateEndpoint() + { + return isset($this->desired_enable_private_endpoint); + } + + public function clearDesiredEnablePrivateEndpoint() + { + unset($this->desired_enable_private_endpoint); + } + + /** + * Enable/Disable private endpoint for the cluster's master. + * + * Generated from protobuf field optional bool desired_enable_private_endpoint = 71; + * @param bool $var + * @return $this + */ + public function setDesiredEnablePrivateEndpoint($var) + { + GPBUtil::checkBool($var); + $this->desired_enable_private_endpoint = $var; + + return $this; + } + + /** + * The Kubernetes version to change the master to. + * Users may specify either explicit versions offered by + * Kubernetes Engine or version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the default Kubernetes version + * + * Generated from protobuf field string desired_master_version = 100; + * @return string + */ + public function getDesiredMasterVersion() + { + return $this->desired_master_version; + } + + /** + * The Kubernetes version to change the master to. + * Users may specify either explicit versions offered by + * Kubernetes Engine or version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the default Kubernetes version + * + * Generated from protobuf field string desired_master_version = 100; + * @param string $var + * @return $this + */ + public function setDesiredMasterVersion($var) + { + GPBUtil::checkString($var, True); + $this->desired_master_version = $var; + + return $this; + } + + /** + * The desired GCFS config for the cluster + * + * Generated from protobuf field .google.container.v1.GcfsConfig desired_gcfs_config = 109; + * @return \Google\Cloud\Container\V1\GcfsConfig|null + */ + public function getDesiredGcfsConfig() + { + return $this->desired_gcfs_config; + } + + public function hasDesiredGcfsConfig() + { + return isset($this->desired_gcfs_config); + } + + public function clearDesiredGcfsConfig() + { + unset($this->desired_gcfs_config); + } + + /** + * The desired GCFS config for the cluster + * + * Generated from protobuf field .google.container.v1.GcfsConfig desired_gcfs_config = 109; + * @param \Google\Cloud\Container\V1\GcfsConfig $var + * @return $this + */ + public function setDesiredGcfsConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GcfsConfig::class); + $this->desired_gcfs_config = $var; + + return $this; + } + + /** + * The desired network tags that apply to all auto-provisioned node pools + * in autopilot clusters and node auto-provisioning enabled clusters. + * + * Generated from protobuf field .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; + * @return \Google\Cloud\Container\V1\NetworkTags|null + */ + public function getDesiredNodePoolAutoConfigNetworkTags() + { + return $this->desired_node_pool_auto_config_network_tags; + } + + public function hasDesiredNodePoolAutoConfigNetworkTags() + { + return isset($this->desired_node_pool_auto_config_network_tags); + } + + public function clearDesiredNodePoolAutoConfigNetworkTags() + { + unset($this->desired_node_pool_auto_config_network_tags); + } + + /** + * The desired network tags that apply to all auto-provisioned node pools + * in autopilot clusters and node auto-provisioning enabled clusters. + * + * Generated from protobuf field .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; + * @param \Google\Cloud\Container\V1\NetworkTags $var + * @return $this + */ + public function setDesiredNodePoolAutoConfigNetworkTags($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkTags::class); + $this->desired_node_pool_auto_config_network_tags = $var; + + return $this; + } + + /** + * The desired config of Gateway API on this cluster. + * + * Generated from protobuf field .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; + * @return \Google\Cloud\Container\V1\GatewayAPIConfig|null + */ + public function getDesiredGatewayApiConfig() + { + return $this->desired_gateway_api_config; + } + + public function hasDesiredGatewayApiConfig() + { + return isset($this->desired_gateway_api_config); + } + + public function clearDesiredGatewayApiConfig() + { + unset($this->desired_gateway_api_config); + } + + /** + * The desired config of Gateway API on this cluster. + * + * Generated from protobuf field .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; + * @param \Google\Cloud\Container\V1\GatewayAPIConfig $var + * @return $this + */ + public function setDesiredGatewayApiConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GatewayAPIConfig::class); + $this->desired_gateway_api_config = $var; + + return $this; + } + + /** + * The current etag of the cluster. + * If an etag is provided and does not match the current etag of the cluster, + * update will be blocked and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 115; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * The current etag of the cluster. + * If an etag is provided and does not match the current etag of the cluster, + * update will be blocked and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 115; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * The desired node pool logging configuration defaults for the cluster. + * + * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; + * @return \Google\Cloud\Container\V1\NodePoolLoggingConfig|null + */ + public function getDesiredNodePoolLoggingConfig() + { + return $this->desired_node_pool_logging_config; + } + + public function hasDesiredNodePoolLoggingConfig() + { + return isset($this->desired_node_pool_logging_config); + } + + public function clearDesiredNodePoolLoggingConfig() + { + unset($this->desired_node_pool_logging_config); + } + + /** + * The desired node pool logging configuration defaults for the cluster. + * + * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; + * @param \Google\Cloud\Container\V1\NodePoolLoggingConfig $var + * @return $this + */ + public function setDesiredNodePoolLoggingConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolLoggingConfig::class); + $this->desired_node_pool_logging_config = $var; + + return $this; + } + + /** + * The desired fleet configuration for the cluster. + * + * Generated from protobuf field .google.container.v1.Fleet desired_fleet = 117; + * @return \Google\Cloud\Container\V1\Fleet|null + */ + public function getDesiredFleet() + { + return $this->desired_fleet; + } + + public function hasDesiredFleet() + { + return isset($this->desired_fleet); + } + + public function clearDesiredFleet() + { + unset($this->desired_fleet); + } + + /** + * The desired fleet configuration for the cluster. + * + * Generated from protobuf field .google.container.v1.Fleet desired_fleet = 117; + * @param \Google\Cloud\Container\V1\Fleet $var + * @return $this + */ + public function setDesiredFleet($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\Fleet::class); + $this->desired_fleet = $var; + + return $this; + } + + /** + * The desired stack type of the cluster. + * If a stack type is provided and does not match the current stack type of + * the cluster, update will attempt to change the stack type to the new type. + * + * Generated from protobuf field .google.container.v1.StackType desired_stack_type = 119; + * @return int + */ + public function getDesiredStackType() + { + return $this->desired_stack_type; + } + + /** + * The desired stack type of the cluster. + * If a stack type is provided and does not match the current stack type of + * the cluster, update will attempt to change the stack type to the new type. + * + * Generated from protobuf field .google.container.v1.StackType desired_stack_type = 119; + * @param int $var + * @return $this + */ + public function setDesiredStackType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\StackType::class); + $this->desired_stack_type = $var; + + return $this; + } + + /** + * The additional pod ranges to be added to the cluster. These pod ranges + * can be used by node pools to allocate pod IPs. + * + * Generated from protobuf field .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; + * @return \Google\Cloud\Container\V1\AdditionalPodRangesConfig|null + */ + public function getAdditionalPodRangesConfig() + { + return $this->additional_pod_ranges_config; + } + + public function hasAdditionalPodRangesConfig() + { + return isset($this->additional_pod_ranges_config); + } + + public function clearAdditionalPodRangesConfig() + { + unset($this->additional_pod_ranges_config); + } + + /** + * The additional pod ranges to be added to the cluster. These pod ranges + * can be used by node pools to allocate pod IPs. + * + * Generated from protobuf field .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; + * @param \Google\Cloud\Container\V1\AdditionalPodRangesConfig $var + * @return $this + */ + public function setAdditionalPodRangesConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AdditionalPodRangesConfig::class); + $this->additional_pod_ranges_config = $var; + + return $this; + } + + /** + * The additional pod ranges that are to be removed from the cluster. + * The pod ranges specified here must have been specified earlier in the + * 'additional_pod_ranges_config' argument. + * + * Generated from protobuf field .google.container.v1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; + * @return \Google\Cloud\Container\V1\AdditionalPodRangesConfig|null + */ + public function getRemovedAdditionalPodRangesConfig() + { + return $this->removed_additional_pod_ranges_config; + } + + public function hasRemovedAdditionalPodRangesConfig() + { + return isset($this->removed_additional_pod_ranges_config); + } + + public function clearRemovedAdditionalPodRangesConfig() + { + unset($this->removed_additional_pod_ranges_config); + } + + /** + * The additional pod ranges that are to be removed from the cluster. + * The pod ranges specified here must have been specified earlier in the + * 'additional_pod_ranges_config' argument. + * + * Generated from protobuf field .google.container.v1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; + * @param \Google\Cloud\Container\V1\AdditionalPodRangesConfig $var + * @return $this + */ + public function setRemovedAdditionalPodRangesConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AdditionalPodRangesConfig::class); + $this->removed_additional_pod_ranges_config = $var; + + return $this; + } + + /** + * Kubernetes open source beta apis enabled on the cluster. Only beta apis + * + * Generated from protobuf field .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; + * @return \Google\Cloud\Container\V1\K8sBetaAPIConfig|null + */ + public function getEnableK8SBetaApis() + { + return $this->enable_k8s_beta_apis; + } + + public function hasEnableK8SBetaApis() + { + return isset($this->enable_k8s_beta_apis); + } + + public function clearEnableK8SBetaApis() + { + unset($this->enable_k8s_beta_apis); + } + + /** + * Kubernetes open source beta apis enabled on the cluster. Only beta apis + * + * Generated from protobuf field .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; + * @param \Google\Cloud\Container\V1\K8sBetaAPIConfig $var + * @return $this + */ + public function setEnableK8SBetaApis($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\K8sBetaAPIConfig::class); + $this->enable_k8s_beta_apis = $var; + + return $this; + } + + /** + * Enable/Disable Security Posture API features for the cluster. + * + * Generated from protobuf field .google.container.v1.SecurityPostureConfig desired_security_posture_config = 124; + * @return \Google\Cloud\Container\V1\SecurityPostureConfig|null + */ + public function getDesiredSecurityPostureConfig() + { + return $this->desired_security_posture_config; + } + + public function hasDesiredSecurityPostureConfig() + { + return isset($this->desired_security_posture_config); + } + + public function clearDesiredSecurityPostureConfig() + { + unset($this->desired_security_posture_config); + } + + /** + * Enable/Disable Security Posture API features for the cluster. + * + * Generated from protobuf field .google.container.v1.SecurityPostureConfig desired_security_posture_config = 124; + * @param \Google\Cloud\Container\V1\SecurityPostureConfig $var + * @return $this + */ + public function setDesiredSecurityPostureConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\SecurityPostureConfig::class); + $this->desired_security_posture_config = $var; + + return $this; + } + + /** + * The desired network performance config. + * + * Generated from protobuf field .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; + * @return \Google\Cloud\Container\V1\NetworkConfig\ClusterNetworkPerformanceConfig|null + */ + public function getDesiredNetworkPerformanceConfig() + { + return $this->desired_network_performance_config; + } + + public function hasDesiredNetworkPerformanceConfig() + { + return isset($this->desired_network_performance_config); + } + + public function clearDesiredNetworkPerformanceConfig() + { + unset($this->desired_network_performance_config); + } + + /** + * The desired network performance config. + * + * Generated from protobuf field .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; + * @param \Google\Cloud\Container\V1\NetworkConfig\ClusterNetworkPerformanceConfig $var + * @return $this + */ + public function setDesiredNetworkPerformanceConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkConfig\ClusterNetworkPerformanceConfig::class); + $this->desired_network_performance_config = $var; + + return $this; + } + + /** + * Enable/Disable FQDN Network Policy for the cluster. + * + * Generated from protobuf field optional bool desired_enable_fqdn_network_policy = 126; + * @return bool + */ + public function getDesiredEnableFqdnNetworkPolicy() + { + return isset($this->desired_enable_fqdn_network_policy) ? $this->desired_enable_fqdn_network_policy : false; + } + + public function hasDesiredEnableFqdnNetworkPolicy() + { + return isset($this->desired_enable_fqdn_network_policy); + } + + public function clearDesiredEnableFqdnNetworkPolicy() + { + unset($this->desired_enable_fqdn_network_policy); + } + + /** + * Enable/Disable FQDN Network Policy for the cluster. + * + * Generated from protobuf field optional bool desired_enable_fqdn_network_policy = 126; + * @param bool $var + * @return $this + */ + public function setDesiredEnableFqdnNetworkPolicy($var) + { + GPBUtil::checkBool($var); + $this->desired_enable_fqdn_network_policy = $var; + + return $this; + } + + /** + * The desired workload policy configuration for the autopilot cluster. + * + * Generated from protobuf field .google.container.v1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; + * @return \Google\Cloud\Container\V1\WorkloadPolicyConfig|null + */ + public function getDesiredAutopilotWorkloadPolicyConfig() + { + return $this->desired_autopilot_workload_policy_config; + } + + public function hasDesiredAutopilotWorkloadPolicyConfig() + { + return isset($this->desired_autopilot_workload_policy_config); + } + + public function clearDesiredAutopilotWorkloadPolicyConfig() + { + unset($this->desired_autopilot_workload_policy_config); + } + + /** + * The desired workload policy configuration for the autopilot cluster. + * + * Generated from protobuf field .google.container.v1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; + * @param \Google\Cloud\Container\V1\WorkloadPolicyConfig $var + * @return $this + */ + public function setDesiredAutopilotWorkloadPolicyConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\WorkloadPolicyConfig::class); + $this->desired_autopilot_workload_policy_config = $var; + + return $this; + } + + /** + * Desired Beta APIs to be enabled for cluster. + * + * Generated from protobuf field .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; + * @return \Google\Cloud\Container\V1\K8sBetaAPIConfig|null + */ + public function getDesiredK8SBetaApis() + { + return $this->desired_k8s_beta_apis; + } + + public function hasDesiredK8SBetaApis() + { + return isset($this->desired_k8s_beta_apis); + } + + public function clearDesiredK8SBetaApis() + { + unset($this->desired_k8s_beta_apis); + } + + /** + * Desired Beta APIs to be enabled for cluster. + * + * Generated from protobuf field .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; + * @param \Google\Cloud\Container\V1\K8sBetaAPIConfig $var + * @return $this + */ + public function setDesiredK8SBetaApis($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\K8sBetaAPIConfig::class); + $this->desired_k8s_beta_apis = $var; + + return $this; + } + + /** + * Enable/Disable Multi-Networking for the cluster + * + * Generated from protobuf field optional bool desired_enable_multi_networking = 135; + * @return bool + */ + public function getDesiredEnableMultiNetworking() + { + return isset($this->desired_enable_multi_networking) ? $this->desired_enable_multi_networking : false; + } + + public function hasDesiredEnableMultiNetworking() + { + return isset($this->desired_enable_multi_networking); + } + + public function clearDesiredEnableMultiNetworking() + { + unset($this->desired_enable_multi_networking); + } + + /** + * Enable/Disable Multi-Networking for the cluster + * + * Generated from protobuf field optional bool desired_enable_multi_networking = 135; + * @param bool $var + * @return $this + */ + public function setDesiredEnableMultiNetworking($var) + { + GPBUtil::checkBool($var); + $this->desired_enable_multi_networking = $var; + + return $this; + } + + /** + * The desired resource manager tags that apply to all auto-provisioned node + * pools in autopilot clusters and node auto-provisioning enabled clusters. + * + * Generated from protobuf field .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; + * @return \Google\Cloud\Container\V1\ResourceManagerTags|null + */ + public function getDesiredNodePoolAutoConfigResourceManagerTags() + { + return $this->desired_node_pool_auto_config_resource_manager_tags; + } + + public function hasDesiredNodePoolAutoConfigResourceManagerTags() + { + return isset($this->desired_node_pool_auto_config_resource_manager_tags); + } + + public function clearDesiredNodePoolAutoConfigResourceManagerTags() + { + unset($this->desired_node_pool_auto_config_resource_manager_tags); + } + + /** + * The desired resource manager tags that apply to all auto-provisioned node + * pools in autopilot clusters and node auto-provisioning enabled clusters. + * + * Generated from protobuf field .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; + * @param \Google\Cloud\Container\V1\ResourceManagerTags $var + * @return $this + */ + public function setDesiredNodePoolAutoConfigResourceManagerTags($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ResourceManagerTags::class); + $this->desired_node_pool_auto_config_resource_manager_tags = $var; + + return $this; + } + + /** + * Specify the details of in-transit encryption. + * + * Generated from protobuf field optional .google.container.v1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; + * @return int + */ + public function getDesiredInTransitEncryptionConfig() + { + return isset($this->desired_in_transit_encryption_config) ? $this->desired_in_transit_encryption_config : 0; + } + + public function hasDesiredInTransitEncryptionConfig() + { + return isset($this->desired_in_transit_encryption_config); + } + + public function clearDesiredInTransitEncryptionConfig() + { + unset($this->desired_in_transit_encryption_config); + } + + /** + * Specify the details of in-transit encryption. + * + * Generated from protobuf field optional .google.container.v1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; + * @param int $var + * @return $this + */ + public function setDesiredInTransitEncryptionConfig($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\InTransitEncryptionConfig::class); + $this->desired_in_transit_encryption_config = $var; + + return $this; + } + + /** + * Enable/Disable Cilium Clusterwide Network Policy for the cluster. + * + * Generated from protobuf field optional bool desired_enable_cilium_clusterwide_network_policy = 138; + * @return bool + */ + public function getDesiredEnableCiliumClusterwideNetworkPolicy() + { + return isset($this->desired_enable_cilium_clusterwide_network_policy) ? $this->desired_enable_cilium_clusterwide_network_policy : false; + } + + public function hasDesiredEnableCiliumClusterwideNetworkPolicy() + { + return isset($this->desired_enable_cilium_clusterwide_network_policy); + } + + public function clearDesiredEnableCiliumClusterwideNetworkPolicy() + { + unset($this->desired_enable_cilium_clusterwide_network_policy); + } + + /** + * Enable/Disable Cilium Clusterwide Network Policy for the cluster. + * + * Generated from protobuf field optional bool desired_enable_cilium_clusterwide_network_policy = 138; + * @param bool $var + * @return $this + */ + public function setDesiredEnableCiliumClusterwideNetworkPolicy($var) + { + GPBUtil::checkBool($var); + $this->desired_enable_cilium_clusterwide_network_policy = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompleteIPRotationRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompleteIPRotationRequest.php new file mode 100644 index 000000000000..92481f5c6a36 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompleteIPRotationRequest.php @@ -0,0 +1,249 @@ +google.container.v1.CompleteIPRotationRequest + */ +class CompleteIPRotationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * The name (project, location, cluster name) of the cluster to complete IP + * rotation. Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 7; + */ + protected $name = ''; + + /** + * @param string $projectId Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @param string $zone Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @param string $clusterId Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * @return \Google\Cloud\Container\V1\CompleteIPRotationRequest + * + * @experimental + */ + public static function build(string $projectId, string $zone, string $clusterId): self + { + return (new self()) + ->setProjectId($projectId) + ->setZone($zone) + ->setClusterId($clusterId); + } + + /** + * @param string $name The name (project, location, cluster name) of the cluster to complete IP + * rotation. Specified in the format `projects/*/locations/*/clusters/*`. + * + * @return \Google\Cloud\Container\V1\CompleteIPRotationRequest + * + * @experimental + */ + public static function buildFromName(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster name) of the cluster to complete IP + * rotation. Specified in the format `projects/*/locations/*/clusters/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * The name (project, location, cluster name) of the cluster to complete IP + * rotation. Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 7; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster name) of the cluster to complete IP + * rotation. Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 7; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompleteNodePoolUpgradeRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompleteNodePoolUpgradeRequest.php new file mode 100644 index 000000000000..b14c8d08063e --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompleteNodePoolUpgradeRequest.php @@ -0,0 +1,76 @@ +google.container.v1.CompleteNodePoolUpgradeRequest + */ +class CompleteNodePoolUpgradeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The name (project, location, cluster, node pool id) of the node pool to + * complete upgrade. + * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name (project, location, cluster, node pool id) of the node pool to + * complete upgrade. + * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The name (project, location, cluster, node pool id) of the node pool to + * complete upgrade. + * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster, node pool id) of the node pool to + * complete upgrade. + * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfidentialNodes.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfidentialNodes.php new file mode 100644 index 000000000000..a7d3cd2c9116 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfidentialNodes.php @@ -0,0 +1,68 @@ +google.container.v1.ConfidentialNodes + */ +class ConfidentialNodes extends \Google\Protobuf\Internal\Message +{ + /** + * Whether Confidential Nodes feature is enabled. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Whether Confidential Nodes feature is enabled. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether Confidential Nodes feature is enabled. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Whether Confidential Nodes feature is enabled. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfigConnectorConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfigConnectorConfig.php new file mode 100644 index 000000000000..936f2cdd1d89 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfigConnectorConfig.php @@ -0,0 +1,67 @@ +google.container.v1.ConfigConnectorConfig + */ +class ConfigConnectorConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Whether Cloud Connector is enabled for this cluster. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Whether Cloud Connector is enabled for this cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether Cloud Connector is enabled for this cluster. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Whether Cloud Connector is enabled for this cluster. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CostManagementConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CostManagementConfig.php new file mode 100644 index 000000000000..5b896434bf8e --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CostManagementConfig.php @@ -0,0 +1,67 @@ +google.container.v1.CostManagementConfig + */ +class CostManagementConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Whether the feature is enabled or not. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Whether the feature is enabled or not. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether the feature is enabled or not. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Whether the feature is enabled or not. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateClusterRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateClusterRequest.php new file mode 100644 index 000000000000..727d5bd02ea5 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateClusterRequest.php @@ -0,0 +1,257 @@ +google.container.v1.CreateClusterRequest + */ +class CreateClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the parent + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Required. A [cluster + * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) + * + * Generated from protobuf field .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $cluster = null; + /** + * The parent (project and location) where the cluster will be created. + * Specified in the format `projects/*/locations/*`. + * + * Generated from protobuf field string parent = 5; + */ + protected $parent = ''; + + /** + * @param string $projectId Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * @param string $zone Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the parent + * field. + * @param \Google\Cloud\Container\V1\Cluster $cluster Required. A [cluster + * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) + * + * @return \Google\Cloud\Container\V1\CreateClusterRequest + * + * @experimental + */ + public static function build(string $projectId, string $zone, \Google\Cloud\Container\V1\Cluster $cluster): self + { + return (new self()) + ->setProjectId($projectId) + ->setZone($zone) + ->setCluster($cluster); + } + + /** + * @param string $parent The parent (project and location) where the cluster will be created. + * Specified in the format `projects/*/locations/*`. + * @param \Google\Cloud\Container\V1\Cluster $cluster Required. A [cluster + * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) + * + * @return \Google\Cloud\Container\V1\CreateClusterRequest + * + * @experimental + */ + public static function buildFromParentCluster(string $parent, \Google\Cloud\Container\V1\Cluster $cluster): self + { + return (new self()) + ->setParent($parent) + ->setCluster($cluster); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the parent + * field. + * @type \Google\Cloud\Container\V1\Cluster $cluster + * Required. A [cluster + * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) + * @type string $parent + * The parent (project and location) where the cluster will be created. + * Specified in the format `projects/*/locations/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the parent + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the parent + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Required. A [cluster + * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) + * + * Generated from protobuf field .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Container\V1\Cluster|null + */ + public function getCluster() + { + return $this->cluster; + } + + public function hasCluster() + { + return isset($this->cluster); + } + + public function clearCluster() + { + unset($this->cluster); + } + + /** + * Required. A [cluster + * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) + * + * Generated from protobuf field .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Container\V1\Cluster $var + * @return $this + */ + public function setCluster($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\Cluster::class); + $this->cluster = $var; + + return $this; + } + + /** + * The parent (project and location) where the cluster will be created. + * Specified in the format `projects/*/locations/*`. + * + * Generated from protobuf field string parent = 5; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * The parent (project and location) where the cluster will be created. + * Specified in the format `projects/*/locations/*`. + * + * Generated from protobuf field string parent = 5; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateNodePoolRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateNodePoolRequest.php new file mode 100644 index 000000000000..2c4595bd0f7b --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateNodePoolRequest.php @@ -0,0 +1,302 @@ +google.container.v1.CreateNodePoolRequest + */ +class CreateNodePoolRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the parent + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * Required. The node pool to create. + * + * Generated from protobuf field .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $node_pool = null; + /** + * The parent (project, location, cluster name) where the node pool will be + * created. Specified in the format + * `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string parent = 6; + */ + protected $parent = ''; + + /** + * @param string $projectId Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * @param string $zone Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the parent + * field. + * @param string $clusterId Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the parent field. + * @param \Google\Cloud\Container\V1\NodePool $nodePool Required. The node pool to create. + * + * @return \Google\Cloud\Container\V1\CreateNodePoolRequest + * + * @experimental + */ + public static function build(string $projectId, string $zone, string $clusterId, \Google\Cloud\Container\V1\NodePool $nodePool): self + { + return (new self()) + ->setProjectId($projectId) + ->setZone($zone) + ->setClusterId($clusterId) + ->setNodePool($nodePool); + } + + /** + * @param string $parent The parent (project, location, cluster name) where the node pool will be + * created. Specified in the format + * `projects/*/locations/*/clusters/*`. + * @param \Google\Cloud\Container\V1\NodePool $nodePool Required. The node pool to create. + * + * @return \Google\Cloud\Container\V1\CreateNodePoolRequest + * + * @experimental + */ + public static function buildFromParentNodePool(string $parent, \Google\Cloud\Container\V1\NodePool $nodePool): self + { + return (new self()) + ->setParent($parent) + ->setNodePool($nodePool); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the parent + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the parent field. + * @type \Google\Cloud\Container\V1\NodePool $node_pool + * Required. The node pool to create. + * @type string $parent + * The parent (project, location, cluster name) where the node pool will be + * created. Specified in the format + * `projects/*/locations/*/clusters/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the parent + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the parent + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Required. The node pool to create. + * + * Generated from protobuf field .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Container\V1\NodePool|null + */ + public function getNodePool() + { + return $this->node_pool; + } + + public function hasNodePool() + { + return isset($this->node_pool); + } + + public function clearNodePool() + { + unset($this->node_pool); + } + + /** + * Required. The node pool to create. + * + * Generated from protobuf field .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Container\V1\NodePool $var + * @return $this + */ + public function setNodePool($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool::class); + $this->node_pool = $var; + + return $this; + } + + /** + * The parent (project, location, cluster name) where the node pool will be + * created. Specified in the format + * `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string parent = 6; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * The parent (project, location, cluster name) where the node pool will be + * created. Specified in the format + * `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string parent = 6; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig.php new file mode 100644 index 000000000000..a1c6338f5310 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig.php @@ -0,0 +1,135 @@ +google.container.v1.DNSConfig + */ +class DNSConfig extends \Google\Protobuf\Internal\Message +{ + /** + * cluster_dns indicates which in-cluster DNS provider should be used. + * + * Generated from protobuf field .google.container.v1.DNSConfig.Provider cluster_dns = 1; + */ + protected $cluster_dns = 0; + /** + * cluster_dns_scope indicates the scope of access to cluster DNS records. + * + * Generated from protobuf field .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; + */ + protected $cluster_dns_scope = 0; + /** + * cluster_dns_domain is the suffix used for all cluster service records. + * + * Generated from protobuf field string cluster_dns_domain = 3; + */ + protected $cluster_dns_domain = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $cluster_dns + * cluster_dns indicates which in-cluster DNS provider should be used. + * @type int $cluster_dns_scope + * cluster_dns_scope indicates the scope of access to cluster DNS records. + * @type string $cluster_dns_domain + * cluster_dns_domain is the suffix used for all cluster service records. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * cluster_dns indicates which in-cluster DNS provider should be used. + * + * Generated from protobuf field .google.container.v1.DNSConfig.Provider cluster_dns = 1; + * @return int + */ + public function getClusterDns() + { + return $this->cluster_dns; + } + + /** + * cluster_dns indicates which in-cluster DNS provider should be used. + * + * Generated from protobuf field .google.container.v1.DNSConfig.Provider cluster_dns = 1; + * @param int $var + * @return $this + */ + public function setClusterDns($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\DNSConfig\Provider::class); + $this->cluster_dns = $var; + + return $this; + } + + /** + * cluster_dns_scope indicates the scope of access to cluster DNS records. + * + * Generated from protobuf field .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; + * @return int + */ + public function getClusterDnsScope() + { + return $this->cluster_dns_scope; + } + + /** + * cluster_dns_scope indicates the scope of access to cluster DNS records. + * + * Generated from protobuf field .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; + * @param int $var + * @return $this + */ + public function setClusterDnsScope($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\DNSConfig\DNSScope::class); + $this->cluster_dns_scope = $var; + + return $this; + } + + /** + * cluster_dns_domain is the suffix used for all cluster service records. + * + * Generated from protobuf field string cluster_dns_domain = 3; + * @return string + */ + public function getClusterDnsDomain() + { + return $this->cluster_dns_domain; + } + + /** + * cluster_dns_domain is the suffix used for all cluster service records. + * + * Generated from protobuf field string cluster_dns_domain = 3; + * @param string $var + * @return $this + */ + public function setClusterDnsDomain($var) + { + GPBUtil::checkString($var, True); + $this->cluster_dns_domain = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/DNSScope.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/DNSScope.php new file mode 100644 index 000000000000..deaedc169384 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/DNSScope.php @@ -0,0 +1,64 @@ +google.container.v1.DNSConfig.DNSScope + */ +class DNSScope +{ + /** + * Default value, will be inferred as cluster scope. + * + * Generated from protobuf enum DNS_SCOPE_UNSPECIFIED = 0; + */ + const DNS_SCOPE_UNSPECIFIED = 0; + /** + * DNS records are accessible from within the cluster. + * + * Generated from protobuf enum CLUSTER_SCOPE = 1; + */ + const CLUSTER_SCOPE = 1; + /** + * DNS records are accessible from within the VPC. + * + * Generated from protobuf enum VPC_SCOPE = 2; + */ + const VPC_SCOPE = 2; + + private static $valueToName = [ + self::DNS_SCOPE_UNSPECIFIED => 'DNS_SCOPE_UNSPECIFIED', + self::CLUSTER_SCOPE => 'CLUSTER_SCOPE', + self::VPC_SCOPE => 'VPC_SCOPE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(DNSScope::class, \Google\Cloud\Container\V1\DNSConfig_DNSScope::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/Provider.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/Provider.php new file mode 100644 index 000000000000..b6da4189a40e --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/Provider.php @@ -0,0 +1,71 @@ +google.container.v1.DNSConfig.Provider + */ +class Provider +{ + /** + * Default value + * + * Generated from protobuf enum PROVIDER_UNSPECIFIED = 0; + */ + const PROVIDER_UNSPECIFIED = 0; + /** + * Use GKE default DNS provider(kube-dns) for DNS resolution. + * + * Generated from protobuf enum PLATFORM_DEFAULT = 1; + */ + const PLATFORM_DEFAULT = 1; + /** + * Use CloudDNS for DNS resolution. + * + * Generated from protobuf enum CLOUD_DNS = 2; + */ + const CLOUD_DNS = 2; + /** + * Use KubeDNS for DNS resolution. + * + * Generated from protobuf enum KUBE_DNS = 3; + */ + const KUBE_DNS = 3; + + private static $valueToName = [ + self::PROVIDER_UNSPECIFIED => 'PROVIDER_UNSPECIFIED', + self::PLATFORM_DEFAULT => 'PLATFORM_DEFAULT', + self::CLOUD_DNS => 'CLOUD_DNS', + self::KUBE_DNS => 'KUBE_DNS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Provider::class, \Google\Cloud\Container\V1\DNSConfig_Provider::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DailyMaintenanceWindow.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DailyMaintenanceWindow.php new file mode 100644 index 000000000000..06b1941635a3 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DailyMaintenanceWindow.php @@ -0,0 +1,121 @@ +google.container.v1.DailyMaintenanceWindow + */ +class DailyMaintenanceWindow extends \Google\Protobuf\Internal\Message +{ + /** + * Time within the maintenance window to start the maintenance operations. + * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) + * format "HH:MM", where HH : [00-23] and MM : [00-59] GMT. + * + * Generated from protobuf field string start_time = 2; + */ + protected $start_time = ''; + /** + * [Output only] Duration of the time window, automatically chosen to be + * smallest possible in the given scenario. + * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) + * format "PTnHnMnS". + * + * Generated from protobuf field string duration = 3; + */ + protected $duration = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $start_time + * Time within the maintenance window to start the maintenance operations. + * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) + * format "HH:MM", where HH : [00-23] and MM : [00-59] GMT. + * @type string $duration + * [Output only] Duration of the time window, automatically chosen to be + * smallest possible in the given scenario. + * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) + * format "PTnHnMnS". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Time within the maintenance window to start the maintenance operations. + * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) + * format "HH:MM", where HH : [00-23] and MM : [00-59] GMT. + * + * Generated from protobuf field string start_time = 2; + * @return string + */ + public function getStartTime() + { + return $this->start_time; + } + + /** + * Time within the maintenance window to start the maintenance operations. + * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) + * format "HH:MM", where HH : [00-23] and MM : [00-59] GMT. + * + * Generated from protobuf field string start_time = 2; + * @param string $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkString($var, True); + $this->start_time = $var; + + return $this; + } + + /** + * [Output only] Duration of the time window, automatically chosen to be + * smallest possible in the given scenario. + * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) + * format "PTnHnMnS". + * + * Generated from protobuf field string duration = 3; + * @return string + */ + public function getDuration() + { + return $this->duration; + } + + /** + * [Output only] Duration of the time window, automatically chosen to be + * smallest possible in the given scenario. + * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) + * format "PTnHnMnS". + * + * Generated from protobuf field string duration = 3; + * @param string $var + * @return $this + */ + public function setDuration($var) + { + GPBUtil::checkString($var, True); + $this->duration = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption.php new file mode 100644 index 000000000000..28de62926feb --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption.php @@ -0,0 +1,229 @@ +google.container.v1.DatabaseEncryption + */ +class DatabaseEncryption extends \Google\Protobuf\Internal\Message +{ + /** + * Name of CloudKMS key to use for the encryption of secrets in etcd. + * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key + * + * Generated from protobuf field string key_name = 1; + */ + protected $key_name = ''; + /** + * The desired state of etcd encryption. + * + * Generated from protobuf field .google.container.v1.DatabaseEncryption.State state = 2; + */ + protected $state = 0; + /** + * Output only. The current state of etcd encryption. + * + * Generated from protobuf field optional .google.container.v1.DatabaseEncryption.CurrentState current_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $current_state = null; + /** + * Output only. Keys in use by the cluster for decrypting + * existing objects, in addition to the key in `key_name`. + * Each item is a CloudKMS key resource. + * + * Generated from protobuf field repeated string decryption_keys = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $decryption_keys; + /** + * Output only. Records errors seen during DatabaseEncryption update + * operations. + * + * Generated from protobuf field repeated .google.container.v1.DatabaseEncryption.OperationError last_operation_errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $last_operation_errors; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $key_name + * Name of CloudKMS key to use for the encryption of secrets in etcd. + * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key + * @type int $state + * The desired state of etcd encryption. + * @type int $current_state + * Output only. The current state of etcd encryption. + * @type array|\Google\Protobuf\Internal\RepeatedField $decryption_keys + * Output only. Keys in use by the cluster for decrypting + * existing objects, in addition to the key in `key_name`. + * Each item is a CloudKMS key resource. + * @type array<\Google\Cloud\Container\V1\DatabaseEncryption\OperationError>|\Google\Protobuf\Internal\RepeatedField $last_operation_errors + * Output only. Records errors seen during DatabaseEncryption update + * operations. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Name of CloudKMS key to use for the encryption of secrets in etcd. + * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key + * + * Generated from protobuf field string key_name = 1; + * @return string + */ + public function getKeyName() + { + return $this->key_name; + } + + /** + * Name of CloudKMS key to use for the encryption of secrets in etcd. + * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key + * + * Generated from protobuf field string key_name = 1; + * @param string $var + * @return $this + */ + public function setKeyName($var) + { + GPBUtil::checkString($var, True); + $this->key_name = $var; + + return $this; + } + + /** + * The desired state of etcd encryption. + * + * Generated from protobuf field .google.container.v1.DatabaseEncryption.State state = 2; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * The desired state of etcd encryption. + * + * Generated from protobuf field .google.container.v1.DatabaseEncryption.State state = 2; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\DatabaseEncryption\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. The current state of etcd encryption. + * + * Generated from protobuf field optional .google.container.v1.DatabaseEncryption.CurrentState current_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getCurrentState() + { + return isset($this->current_state) ? $this->current_state : 0; + } + + public function hasCurrentState() + { + return isset($this->current_state); + } + + public function clearCurrentState() + { + unset($this->current_state); + } + + /** + * Output only. The current state of etcd encryption. + * + * Generated from protobuf field optional .google.container.v1.DatabaseEncryption.CurrentState current_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setCurrentState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\DatabaseEncryption\CurrentState::class); + $this->current_state = $var; + + return $this; + } + + /** + * Output only. Keys in use by the cluster for decrypting + * existing objects, in addition to the key in `key_name`. + * Each item is a CloudKMS key resource. + * + * Generated from protobuf field repeated string decryption_keys = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDecryptionKeys() + { + return $this->decryption_keys; + } + + /** + * Output only. Keys in use by the cluster for decrypting + * existing objects, in addition to the key in `key_name`. + * Each item is a CloudKMS key resource. + * + * Generated from protobuf field repeated string decryption_keys = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDecryptionKeys($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->decryption_keys = $arr; + + return $this; + } + + /** + * Output only. Records errors seen during DatabaseEncryption update + * operations. + * + * Generated from protobuf field repeated .google.container.v1.DatabaseEncryption.OperationError last_operation_errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getLastOperationErrors() + { + return $this->last_operation_errors; + } + + /** + * Output only. Records errors seen during DatabaseEncryption update + * operations. + * + * Generated from protobuf field repeated .google.container.v1.DatabaseEncryption.OperationError last_operation_errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\Container\V1\DatabaseEncryption\OperationError>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setLastOperationErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\DatabaseEncryption\OperationError::class); + $this->last_operation_errors = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption/CurrentState.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption/CurrentState.php new file mode 100644 index 000000000000..56936b10a1c3 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption/CurrentState.php @@ -0,0 +1,95 @@ +google.container.v1.DatabaseEncryption.CurrentState + */ +class CurrentState +{ + /** + * Should never be set + * + * Generated from protobuf enum CURRENT_STATE_UNSPECIFIED = 0; + */ + const CURRENT_STATE_UNSPECIFIED = 0; + /** + * Secrets in etcd are encrypted. + * + * Generated from protobuf enum CURRENT_STATE_ENCRYPTED = 7; + */ + const CURRENT_STATE_ENCRYPTED = 7; + /** + * Secrets in etcd are stored in plain text (at etcd level) - this is + * unrelated to Compute Engine level full disk encryption. + * + * Generated from protobuf enum CURRENT_STATE_DECRYPTED = 2; + */ + const CURRENT_STATE_DECRYPTED = 2; + /** + * Encryption (or re-encryption with a different CloudKMS key) + * of Secrets is in progress. + * + * Generated from protobuf enum CURRENT_STATE_ENCRYPTION_PENDING = 3; + */ + const CURRENT_STATE_ENCRYPTION_PENDING = 3; + /** + * Encryption (or re-encryption with a different CloudKMS key) of Secrets in + * etcd encountered an error. + * + * Generated from protobuf enum CURRENT_STATE_ENCRYPTION_ERROR = 4; + */ + const CURRENT_STATE_ENCRYPTION_ERROR = 4; + /** + * De-crypting Secrets to plain text in etcd is in progress. + * + * Generated from protobuf enum CURRENT_STATE_DECRYPTION_PENDING = 5; + */ + const CURRENT_STATE_DECRYPTION_PENDING = 5; + /** + * De-crypting Secrets to plain text in etcd encountered an error. + * + * Generated from protobuf enum CURRENT_STATE_DECRYPTION_ERROR = 6; + */ + const CURRENT_STATE_DECRYPTION_ERROR = 6; + + private static $valueToName = [ + self::CURRENT_STATE_UNSPECIFIED => 'CURRENT_STATE_UNSPECIFIED', + self::CURRENT_STATE_ENCRYPTED => 'CURRENT_STATE_ENCRYPTED', + self::CURRENT_STATE_DECRYPTED => 'CURRENT_STATE_DECRYPTED', + self::CURRENT_STATE_ENCRYPTION_PENDING => 'CURRENT_STATE_ENCRYPTION_PENDING', + self::CURRENT_STATE_ENCRYPTION_ERROR => 'CURRENT_STATE_ENCRYPTION_ERROR', + self::CURRENT_STATE_DECRYPTION_PENDING => 'CURRENT_STATE_DECRYPTION_PENDING', + self::CURRENT_STATE_DECRYPTION_ERROR => 'CURRENT_STATE_DECRYPTION_ERROR', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CurrentState::class, \Google\Cloud\Container\V1\DatabaseEncryption_CurrentState::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption/OperationError.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption/OperationError.php new file mode 100644 index 000000000000..1b513765d51b --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption/OperationError.php @@ -0,0 +1,149 @@ +google.container.v1.DatabaseEncryption.OperationError + */ +class OperationError extends \Google\Protobuf\Internal\Message +{ + /** + * CloudKMS key resource that had the error. + * + * Generated from protobuf field string key_name = 1; + */ + protected $key_name = ''; + /** + * Description of the error seen during the operation. + * + * Generated from protobuf field string error_message = 2; + */ + protected $error_message = ''; + /** + * Time when the CloudKMS error was seen. + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp = 3; + */ + protected $timestamp = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $key_name + * CloudKMS key resource that had the error. + * @type string $error_message + * Description of the error seen during the operation. + * @type \Google\Protobuf\Timestamp $timestamp + * Time when the CloudKMS error was seen. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * CloudKMS key resource that had the error. + * + * Generated from protobuf field string key_name = 1; + * @return string + */ + public function getKeyName() + { + return $this->key_name; + } + + /** + * CloudKMS key resource that had the error. + * + * Generated from protobuf field string key_name = 1; + * @param string $var + * @return $this + */ + public function setKeyName($var) + { + GPBUtil::checkString($var, True); + $this->key_name = $var; + + return $this; + } + + /** + * Description of the error seen during the operation. + * + * Generated from protobuf field string error_message = 2; + * @return string + */ + public function getErrorMessage() + { + return $this->error_message; + } + + /** + * Description of the error seen during the operation. + * + * Generated from protobuf field string error_message = 2; + * @param string $var + * @return $this + */ + public function setErrorMessage($var) + { + GPBUtil::checkString($var, True); + $this->error_message = $var; + + return $this; + } + + /** + * Time when the CloudKMS error was seen. + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp = 3; + * @return \Google\Protobuf\Timestamp|null + */ + public function getTimestamp() + { + return $this->timestamp; + } + + public function hasTimestamp() + { + return isset($this->timestamp); + } + + public function clearTimestamp() + { + unset($this->timestamp); + } + + /** + * Time when the CloudKMS error was seen. + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setTimestamp($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->timestamp = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(OperationError::class, \Google\Cloud\Container\V1\DatabaseEncryption_OperationError::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption/State.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption/State.php new file mode 100644 index 000000000000..98e8b9929762 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption/State.php @@ -0,0 +1,65 @@ +google.container.v1.DatabaseEncryption.State + */ +class State +{ + /** + * Should never be set + * + * Generated from protobuf enum UNKNOWN = 0; + */ + const UNKNOWN = 0; + /** + * Secrets in etcd are encrypted. + * + * Generated from protobuf enum ENCRYPTED = 1; + */ + const ENCRYPTED = 1; + /** + * Secrets in etcd are stored in plain text (at etcd level) - this is + * unrelated to Compute Engine level full disk encryption. + * + * Generated from protobuf enum DECRYPTED = 2; + */ + const DECRYPTED = 2; + + private static $valueToName = [ + self::UNKNOWN => 'UNKNOWN', + self::ENCRYPTED => 'ENCRYPTED', + self::DECRYPTED => 'DECRYPTED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(State::class, \Google\Cloud\Container\V1\DatabaseEncryption_State::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatapathProvider.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatapathProvider.php new file mode 100644 index 000000000000..b346731a33e4 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatapathProvider.php @@ -0,0 +1,65 @@ +google.container.v1.DatapathProvider + */ +class DatapathProvider +{ + /** + * Default value. + * + * Generated from protobuf enum DATAPATH_PROVIDER_UNSPECIFIED = 0; + */ + const DATAPATH_PROVIDER_UNSPECIFIED = 0; + /** + * Use the IPTables implementation based on kube-proxy. + * + * Generated from protobuf enum LEGACY_DATAPATH = 1; + */ + const LEGACY_DATAPATH = 1; + /** + * Use the eBPF based GKE Dataplane V2 with additional features. See the [GKE + * Dataplane V2 + * documentation](https://cloud.google.com/kubernetes-engine/docs/how-to/dataplane-v2) + * for more. + * + * Generated from protobuf enum ADVANCED_DATAPATH = 2; + */ + const ADVANCED_DATAPATH = 2; + + private static $valueToName = [ + self::DATAPATH_PROVIDER_UNSPECIFIED => 'DATAPATH_PROVIDER_UNSPECIFIED', + self::LEGACY_DATAPATH => 'LEGACY_DATAPATH', + self::ADVANCED_DATAPATH => 'ADVANCED_DATAPATH', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DefaultSnatStatus.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DefaultSnatStatus.php new file mode 100644 index 000000000000..b7bfa31d2eae --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DefaultSnatStatus.php @@ -0,0 +1,68 @@ +google.container.v1.DefaultSnatStatus + */ +class DefaultSnatStatus extends \Google\Protobuf\Internal\Message +{ + /** + * Disables cluster default sNAT rules. + * + * Generated from protobuf field bool disabled = 1; + */ + protected $disabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $disabled + * Disables cluster default sNAT rules. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Disables cluster default sNAT rules. + * + * Generated from protobuf field bool disabled = 1; + * @return bool + */ + public function getDisabled() + { + return $this->disabled; + } + + /** + * Disables cluster default sNAT rules. + * + * Generated from protobuf field bool disabled = 1; + * @param bool $var + * @return $this + */ + public function setDisabled($var) + { + GPBUtil::checkBool($var); + $this->disabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DeleteClusterRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DeleteClusterRequest.php new file mode 100644 index 000000000000..5fbd5929f476 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DeleteClusterRequest.php @@ -0,0 +1,249 @@ +google.container.v1.DeleteClusterRequest + */ +class DeleteClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster to delete. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * The name (project, location, cluster) of the cluster to delete. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 4; + */ + protected $name = ''; + + /** + * @param string $projectId Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @param string $zone Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @param string $clusterId Deprecated. The name of the cluster to delete. + * This field has been deprecated and replaced by the name field. + * + * @return \Google\Cloud\Container\V1\DeleteClusterRequest + * + * @experimental + */ + public static function build(string $projectId, string $zone, string $clusterId): self + { + return (new self()) + ->setProjectId($projectId) + ->setZone($zone) + ->setClusterId($clusterId); + } + + /** + * @param string $name The name (project, location, cluster) of the cluster to delete. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * @return \Google\Cloud\Container\V1\DeleteClusterRequest + * + * @experimental + */ + public static function buildFromName(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster to delete. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster) of the cluster to delete. + * Specified in the format `projects/*/locations/*/clusters/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster to delete. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster to delete. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * The name (project, location, cluster) of the cluster to delete. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 4; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster) of the cluster to delete. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 4; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DeleteNodePoolRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DeleteNodePoolRequest.php new file mode 100644 index 000000000000..8da8944d2389 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DeleteNodePoolRequest.php @@ -0,0 +1,300 @@ +google.container.v1.DeleteNodePoolRequest + */ +class DeleteNodePoolRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * Deprecated. The name of the node pool to delete. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @deprecated + */ + protected $node_pool_id = ''; + /** + * The name (project, location, cluster, node pool id) of the node pool to + * delete. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 6; + */ + protected $name = ''; + + /** + * @param string $projectId Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @param string $zone Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @param string $clusterId Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * @param string $nodePoolId Deprecated. The name of the node pool to delete. + * This field has been deprecated and replaced by the name field. + * + * @return \Google\Cloud\Container\V1\DeleteNodePoolRequest + * + * @experimental + */ + public static function build(string $projectId, string $zone, string $clusterId, string $nodePoolId): self + { + return (new self()) + ->setProjectId($projectId) + ->setZone($zone) + ->setClusterId($clusterId) + ->setNodePoolId($nodePoolId); + } + + /** + * @param string $name The name (project, location, cluster, node pool id) of the node pool to + * delete. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * + * @return \Google\Cloud\Container\V1\DeleteNodePoolRequest + * + * @experimental + */ + public static function buildFromName(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * @type string $node_pool_id + * Deprecated. The name of the node pool to delete. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster, node pool id) of the node pool to + * delete. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the node pool to delete. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @return string + * @deprecated + */ + public function getNodePoolId() + { + @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); + return $this->node_pool_id; + } + + /** + * Deprecated. The name of the node pool to delete. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setNodePoolId($var) + { + @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->node_pool_id = $var; + + return $this; + } + + /** + * The name (project, location, cluster, node pool id) of the node pool to + * delete. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 6; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster, node pool id) of the node pool to + * delete. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 6; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DnsCacheConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DnsCacheConfig.php new file mode 100644 index 000000000000..d97751e491df --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DnsCacheConfig.php @@ -0,0 +1,67 @@ +google.container.v1.DnsCacheConfig + */ +class DnsCacheConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Whether NodeLocal DNSCache is enabled for this cluster. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Whether NodeLocal DNSCache is enabled for this cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether NodeLocal DNSCache is enabled for this cluster. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Whether NodeLocal DNSCache is enabled for this cluster. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EnterpriseConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EnterpriseConfig.php new file mode 100644 index 000000000000..9d2e2de369b9 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EnterpriseConfig.php @@ -0,0 +1,71 @@ +google.container.v1.EnterpriseConfig + */ +class EnterpriseConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. [Output only] cluster_tier specifies the premium tier of the + * cluster. + * + * Generated from protobuf field .google.container.v1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $cluster_tier = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $cluster_tier + * Output only. [Output only] cluster_tier specifies the premium tier of the + * cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Output only. [Output only] cluster_tier specifies the premium tier of the + * cluster. + * + * Generated from protobuf field .google.container.v1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getClusterTier() + { + return $this->cluster_tier; + } + + /** + * Output only. [Output only] cluster_tier specifies the premium tier of the + * cluster. + * + * Generated from protobuf field .google.container.v1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setClusterTier($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\EnterpriseConfig\ClusterTier::class); + $this->cluster_tier = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EnterpriseConfig/ClusterTier.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EnterpriseConfig/ClusterTier.php new file mode 100644 index 000000000000..b5705813e917 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EnterpriseConfig/ClusterTier.php @@ -0,0 +1,64 @@ +google.container.v1.EnterpriseConfig.ClusterTier + */ +class ClusterTier +{ + /** + * CLUSTER_TIER_UNSPECIFIED is when cluster_tier is not set. + * + * Generated from protobuf enum CLUSTER_TIER_UNSPECIFIED = 0; + */ + const CLUSTER_TIER_UNSPECIFIED = 0; + /** + * STANDARD indicates a standard GKE cluster. + * + * Generated from protobuf enum STANDARD = 1; + */ + const STANDARD = 1; + /** + * ENTERPRISE indicates a GKE Enterprise cluster. + * + * Generated from protobuf enum ENTERPRISE = 2; + */ + const ENTERPRISE = 2; + + private static $valueToName = [ + self::CLUSTER_TIER_UNSPECIFIED => 'CLUSTER_TIER_UNSPECIFIED', + self::STANDARD => 'STANDARD', + self::ENTERPRISE => 'ENTERPRISE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ClusterTier::class, \Google\Cloud\Container\V1\EnterpriseConfig_ClusterTier::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EphemeralStorageLocalSsdConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EphemeralStorageLocalSsdConfig.php new file mode 100644 index 000000000000..9e7a7edbb66f --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EphemeralStorageLocalSsdConfig.php @@ -0,0 +1,132 @@ +google.container.v1.EphemeralStorageLocalSsdConfig + */ +class EphemeralStorageLocalSsdConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Number of local SSDs to use to back ephemeral storage. Uses NVMe + * interfaces. + * A zero (or unset) value has different meanings depending on machine type + * being used: + * 1. For pre-Gen3 machines, which support flexible numbers of local ssds, + * zero (or unset) means to disable using local SSDs as ephemeral storage. The + * limit for this value is dependent upon the maximum number of disk + * available on a machine per zone. See: + * https://cloud.google.com/compute/docs/disks/local-ssd + * for more information. + * 2. For Gen3 machines which dictate a specific number of local ssds, zero + * (or unset) means to use the default number of local ssds that goes with + * that machine type. For example, for a c3-standard-8-lssd machine, 2 local + * ssds would be provisioned. For c3-standard-8 (which doesn't support local + * ssds), 0 will be provisioned. See + * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds + * for more info. + * + * Generated from protobuf field int32 local_ssd_count = 1; + */ + protected $local_ssd_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $local_ssd_count + * Number of local SSDs to use to back ephemeral storage. Uses NVMe + * interfaces. + * A zero (or unset) value has different meanings depending on machine type + * being used: + * 1. For pre-Gen3 machines, which support flexible numbers of local ssds, + * zero (or unset) means to disable using local SSDs as ephemeral storage. The + * limit for this value is dependent upon the maximum number of disk + * available on a machine per zone. See: + * https://cloud.google.com/compute/docs/disks/local-ssd + * for more information. + * 2. For Gen3 machines which dictate a specific number of local ssds, zero + * (or unset) means to use the default number of local ssds that goes with + * that machine type. For example, for a c3-standard-8-lssd machine, 2 local + * ssds would be provisioned. For c3-standard-8 (which doesn't support local + * ssds), 0 will be provisioned. See + * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds + * for more info. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Number of local SSDs to use to back ephemeral storage. Uses NVMe + * interfaces. + * A zero (or unset) value has different meanings depending on machine type + * being used: + * 1. For pre-Gen3 machines, which support flexible numbers of local ssds, + * zero (or unset) means to disable using local SSDs as ephemeral storage. The + * limit for this value is dependent upon the maximum number of disk + * available on a machine per zone. See: + * https://cloud.google.com/compute/docs/disks/local-ssd + * for more information. + * 2. For Gen3 machines which dictate a specific number of local ssds, zero + * (or unset) means to use the default number of local ssds that goes with + * that machine type. For example, for a c3-standard-8-lssd machine, 2 local + * ssds would be provisioned. For c3-standard-8 (which doesn't support local + * ssds), 0 will be provisioned. See + * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds + * for more info. + * + * Generated from protobuf field int32 local_ssd_count = 1; + * @return int + */ + public function getLocalSsdCount() + { + return $this->local_ssd_count; + } + + /** + * Number of local SSDs to use to back ephemeral storage. Uses NVMe + * interfaces. + * A zero (or unset) value has different meanings depending on machine type + * being used: + * 1. For pre-Gen3 machines, which support flexible numbers of local ssds, + * zero (or unset) means to disable using local SSDs as ephemeral storage. The + * limit for this value is dependent upon the maximum number of disk + * available on a machine per zone. See: + * https://cloud.google.com/compute/docs/disks/local-ssd + * for more information. + * 2. For Gen3 machines which dictate a specific number of local ssds, zero + * (or unset) means to use the default number of local ssds that goes with + * that machine type. For example, for a c3-standard-8-lssd machine, 2 local + * ssds would be provisioned. For c3-standard-8 (which doesn't support local + * ssds), 0 will be provisioned. See + * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds + * for more info. + * + * Generated from protobuf field int32 local_ssd_count = 1; + * @param int $var + * @return $this + */ + public function setLocalSsdCount($var) + { + GPBUtil::checkInt32($var); + $this->local_ssd_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/FastSocket.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/FastSocket.php new file mode 100644 index 000000000000..18d90d015cd3 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/FastSocket.php @@ -0,0 +1,67 @@ +google.container.v1.FastSocket + */ +class FastSocket extends \Google\Protobuf\Internal\Message +{ + /** + * Whether Fast Socket features are enabled in the node pool. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Whether Fast Socket features are enabled in the node pool. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether Fast Socket features are enabled in the node pool. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Whether Fast Socket features are enabled in the node pool. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Fleet.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Fleet.php new file mode 100644 index 000000000000..713677be1e14 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Fleet.php @@ -0,0 +1,155 @@ +google.container.v1.Fleet + */ +class Fleet extends \Google\Protobuf\Internal\Message +{ + /** + * The Fleet host project(project ID or project number) where this cluster + * will be registered to. This field cannot be changed after the cluster has + * been registered. + * + * Generated from protobuf field string project = 1; + */ + protected $project = ''; + /** + * [Output only] The full resource name of the registered fleet membership of + * the cluster, in the format + * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`. + * + * Generated from protobuf field string membership = 2; + */ + protected $membership = ''; + /** + * [Output only] Whether the cluster has been registered through the fleet + * API. + * + * Generated from protobuf field bool pre_registered = 3; + */ + protected $pre_registered = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project + * The Fleet host project(project ID or project number) where this cluster + * will be registered to. This field cannot be changed after the cluster has + * been registered. + * @type string $membership + * [Output only] The full resource name of the registered fleet membership of + * the cluster, in the format + * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`. + * @type bool $pre_registered + * [Output only] Whether the cluster has been registered through the fleet + * API. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The Fleet host project(project ID or project number) where this cluster + * will be registered to. This field cannot be changed after the cluster has + * been registered. + * + * Generated from protobuf field string project = 1; + * @return string + */ + public function getProject() + { + return $this->project; + } + + /** + * The Fleet host project(project ID or project number) where this cluster + * will be registered to. This field cannot be changed after the cluster has + * been registered. + * + * Generated from protobuf field string project = 1; + * @param string $var + * @return $this + */ + public function setProject($var) + { + GPBUtil::checkString($var, True); + $this->project = $var; + + return $this; + } + + /** + * [Output only] The full resource name of the registered fleet membership of + * the cluster, in the format + * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`. + * + * Generated from protobuf field string membership = 2; + * @return string + */ + public function getMembership() + { + return $this->membership; + } + + /** + * [Output only] The full resource name of the registered fleet membership of + * the cluster, in the format + * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`. + * + * Generated from protobuf field string membership = 2; + * @param string $var + * @return $this + */ + public function setMembership($var) + { + GPBUtil::checkString($var, True); + $this->membership = $var; + + return $this; + } + + /** + * [Output only] Whether the cluster has been registered through the fleet + * API. + * + * Generated from protobuf field bool pre_registered = 3; + * @return bool + */ + public function getPreRegistered() + { + return $this->pre_registered; + } + + /** + * [Output only] Whether the cluster has been registered through the fleet + * API. + * + * Generated from protobuf field bool pre_registered = 3; + * @param bool $var + * @return $this + */ + public function setPreRegistered($var) + { + GPBUtil::checkBool($var); + $this->pre_registered = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUDriverInstallationConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUDriverInstallationConfig.php new file mode 100644 index 000000000000..5893eba5ed8e --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUDriverInstallationConfig.php @@ -0,0 +1,78 @@ +google.container.v1.GPUDriverInstallationConfig + */ +class GPUDriverInstallationConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Mode for how the GPU driver is installed. + * + * Generated from protobuf field optional .google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; + */ + protected $gpu_driver_version = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $gpu_driver_version + * Mode for how the GPU driver is installed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Mode for how the GPU driver is installed. + * + * Generated from protobuf field optional .google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; + * @return int + */ + public function getGpuDriverVersion() + { + return isset($this->gpu_driver_version) ? $this->gpu_driver_version : 0; + } + + public function hasGpuDriverVersion() + { + return isset($this->gpu_driver_version); + } + + public function clearGpuDriverVersion() + { + unset($this->gpu_driver_version); + } + + /** + * Mode for how the GPU driver is installed. + * + * Generated from protobuf field optional .google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; + * @param int $var + * @return $this + */ + public function setGpuDriverVersion($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\GPUDriverInstallationConfig\GPUDriverVersion::class); + $this->gpu_driver_version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUDriverInstallationConfig/GPUDriverVersion.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUDriverInstallationConfig/GPUDriverVersion.php new file mode 100644 index 000000000000..2f3d3e8af1cb --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUDriverInstallationConfig/GPUDriverVersion.php @@ -0,0 +1,75 @@ +google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion + */ +class GPUDriverVersion +{ + /** + * Default value is to not install any GPU driver. + * + * Generated from protobuf enum GPU_DRIVER_VERSION_UNSPECIFIED = 0; + */ + const GPU_DRIVER_VERSION_UNSPECIFIED = 0; + /** + * Disable GPU driver auto installation and needs manual installation + * + * Generated from protobuf enum INSTALLATION_DISABLED = 1; + */ + const INSTALLATION_DISABLED = 1; + /** + * "Default" GPU driver in COS and Ubuntu. + * + * Generated from protobuf enum DEFAULT = 2; + */ + const PBDEFAULT = 2; + /** + * "Latest" GPU driver in COS. + * + * Generated from protobuf enum LATEST = 3; + */ + const LATEST = 3; + + private static $valueToName = [ + self::GPU_DRIVER_VERSION_UNSPECIFIED => 'GPU_DRIVER_VERSION_UNSPECIFIED', + self::INSTALLATION_DISABLED => 'INSTALLATION_DISABLED', + self::PBDEFAULT => 'DEFAULT', + self::LATEST => 'LATEST', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + $pbconst = __CLASS__. '::PB' . strtoupper($name); + if (!defined($pbconst)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($pbconst); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GPUDriverVersion::class, \Google\Cloud\Container\V1\GPUDriverInstallationConfig_GPUDriverVersion::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig.php new file mode 100644 index 000000000000..2badc2e49622 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig.php @@ -0,0 +1,112 @@ +google.container.v1.GPUSharingConfig + */ +class GPUSharingConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The max number of containers that can share a physical GPU. + * + * Generated from protobuf field int64 max_shared_clients_per_gpu = 1; + */ + protected $max_shared_clients_per_gpu = 0; + /** + * The type of GPU sharing strategy to enable on the GPU node. + * + * Generated from protobuf field optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; + */ + protected $gpu_sharing_strategy = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $max_shared_clients_per_gpu + * The max number of containers that can share a physical GPU. + * @type int $gpu_sharing_strategy + * The type of GPU sharing strategy to enable on the GPU node. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The max number of containers that can share a physical GPU. + * + * Generated from protobuf field int64 max_shared_clients_per_gpu = 1; + * @return int|string + */ + public function getMaxSharedClientsPerGpu() + { + return $this->max_shared_clients_per_gpu; + } + + /** + * The max number of containers that can share a physical GPU. + * + * Generated from protobuf field int64 max_shared_clients_per_gpu = 1; + * @param int|string $var + * @return $this + */ + public function setMaxSharedClientsPerGpu($var) + { + GPBUtil::checkInt64($var); + $this->max_shared_clients_per_gpu = $var; + + return $this; + } + + /** + * The type of GPU sharing strategy to enable on the GPU node. + * + * Generated from protobuf field optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; + * @return int + */ + public function getGpuSharingStrategy() + { + return isset($this->gpu_sharing_strategy) ? $this->gpu_sharing_strategy : 0; + } + + public function hasGpuSharingStrategy() + { + return isset($this->gpu_sharing_strategy); + } + + public function clearGpuSharingStrategy() + { + unset($this->gpu_sharing_strategy); + } + + /** + * The type of GPU sharing strategy to enable on the GPU node. + * + * Generated from protobuf field optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; + * @param int $var + * @return $this + */ + public function setGpuSharingStrategy($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\GPUSharingConfig\GPUSharingStrategy::class); + $this->gpu_sharing_strategy = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig/GPUSharingStrategy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig/GPUSharingStrategy.php new file mode 100644 index 000000000000..b7c519c60962 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig/GPUSharingStrategy.php @@ -0,0 +1,57 @@ +google.container.v1.GPUSharingConfig.GPUSharingStrategy + */ +class GPUSharingStrategy +{ + /** + * Default value. + * + * Generated from protobuf enum GPU_SHARING_STRATEGY_UNSPECIFIED = 0; + */ + const GPU_SHARING_STRATEGY_UNSPECIFIED = 0; + /** + * GPUs are time-shared between containers. + * + * Generated from protobuf enum TIME_SHARING = 1; + */ + const TIME_SHARING = 1; + + private static $valueToName = [ + self::GPU_SHARING_STRATEGY_UNSPECIFIED => 'GPU_SHARING_STRATEGY_UNSPECIFIED', + self::TIME_SHARING => 'TIME_SHARING', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GPUSharingStrategy::class, \Google\Cloud\Container\V1\GPUSharingConfig_GPUSharingStrategy::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig.php new file mode 100644 index 000000000000..4dce79867c91 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig.php @@ -0,0 +1,67 @@ +google.container.v1.GatewayAPIConfig + */ +class GatewayAPIConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The Gateway API release channel to use for Gateway API. + * + * Generated from protobuf field .google.container.v1.GatewayAPIConfig.Channel channel = 1; + */ + protected $channel = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $channel + * The Gateway API release channel to use for Gateway API. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The Gateway API release channel to use for Gateway API. + * + * Generated from protobuf field .google.container.v1.GatewayAPIConfig.Channel channel = 1; + * @return int + */ + public function getChannel() + { + return $this->channel; + } + + /** + * The Gateway API release channel to use for Gateway API. + * + * Generated from protobuf field .google.container.v1.GatewayAPIConfig.Channel channel = 1; + * @param int $var + * @return $this + */ + public function setChannel($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\GatewayAPIConfig\Channel::class); + $this->channel = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig/Channel.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig/Channel.php new file mode 100644 index 000000000000..e947315711f5 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig/Channel.php @@ -0,0 +1,72 @@ +google.container.v1.GatewayAPIConfig.Channel + */ +class Channel +{ + /** + * Default value. + * + * Generated from protobuf enum CHANNEL_UNSPECIFIED = 0; + */ + const CHANNEL_UNSPECIFIED = 0; + /** + * Gateway API support is disabled + * + * Generated from protobuf enum CHANNEL_DISABLED = 1; + */ + const CHANNEL_DISABLED = 1; + /** + * Gateway API support is enabled, experimental CRDs are installed + * + * Generated from protobuf enum CHANNEL_EXPERIMENTAL = 3; + */ + const CHANNEL_EXPERIMENTAL = 3; + /** + * Gateway API support is enabled, standard CRDs are installed + * + * Generated from protobuf enum CHANNEL_STANDARD = 4; + */ + const CHANNEL_STANDARD = 4; + + private static $valueToName = [ + self::CHANNEL_UNSPECIFIED => 'CHANNEL_UNSPECIFIED', + self::CHANNEL_DISABLED => 'CHANNEL_DISABLED', + self::CHANNEL_EXPERIMENTAL => 'CHANNEL_EXPERIMENTAL', + self::CHANNEL_STANDARD => 'CHANNEL_STANDARD', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Channel::class, \Google\Cloud\Container\V1\GatewayAPIConfig_Channel::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcePersistentDiskCsiDriverConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcePersistentDiskCsiDriverConfig.php new file mode 100644 index 000000000000..79388de90a25 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcePersistentDiskCsiDriverConfig.php @@ -0,0 +1,67 @@ +google.container.v1.GcePersistentDiskCsiDriverConfig + */ +class GcePersistentDiskCsiDriverConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Whether the Compute Engine PD CSI driver is enabled for this cluster. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Whether the Compute Engine PD CSI driver is enabled for this cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether the Compute Engine PD CSI driver is enabled for this cluster. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Whether the Compute Engine PD CSI driver is enabled for this cluster. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcfsConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcfsConfig.php new file mode 100644 index 000000000000..3f110ac4b85a --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcfsConfig.php @@ -0,0 +1,68 @@ +google.container.v1.GcfsConfig + */ +class GcfsConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Whether to use GCFS. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Whether to use GCFS. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether to use GCFS. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Whether to use GCFS. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcpFilestoreCsiDriverConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcpFilestoreCsiDriverConfig.php new file mode 100644 index 000000000000..c100bb46cc57 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcpFilestoreCsiDriverConfig.php @@ -0,0 +1,67 @@ +google.container.v1.GcpFilestoreCsiDriverConfig + */ +class GcpFilestoreCsiDriverConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Whether the GCP Filestore CSI driver is enabled for this cluster. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Whether the GCP Filestore CSI driver is enabled for this cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether the GCP Filestore CSI driver is enabled for this cluster. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Whether the GCP Filestore CSI driver is enabled for this cluster. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcsFuseCsiDriverConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcsFuseCsiDriverConfig.php new file mode 100644 index 000000000000..18c4664f0894 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcsFuseCsiDriverConfig.php @@ -0,0 +1,67 @@ +google.container.v1.GcsFuseCsiDriverConfig + */ +class GcsFuseCsiDriverConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Whether the Cloud Storage Fuse CSI driver is enabled for this cluster. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Whether the Cloud Storage Fuse CSI driver is enabled for this cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether the Cloud Storage Fuse CSI driver is enabled for this cluster. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Whether the Cloud Storage Fuse CSI driver is enabled for this cluster. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetClusterRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetClusterRequest.php new file mode 100644 index 000000000000..35eef236164e --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetClusterRequest.php @@ -0,0 +1,249 @@ +google.container.v1.GetClusterRequest + */ +class GetClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster to retrieve. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * The name (project, location, cluster) of the cluster to retrieve. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 5; + */ + protected $name = ''; + + /** + * @param string $projectId Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @param string $zone Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @param string $clusterId Deprecated. The name of the cluster to retrieve. + * This field has been deprecated and replaced by the name field. + * + * @return \Google\Cloud\Container\V1\GetClusterRequest + * + * @experimental + */ + public static function build(string $projectId, string $zone, string $clusterId): self + { + return (new self()) + ->setProjectId($projectId) + ->setZone($zone) + ->setClusterId($clusterId); + } + + /** + * @param string $name The name (project, location, cluster) of the cluster to retrieve. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * @return \Google\Cloud\Container\V1\GetClusterRequest + * + * @experimental + */ + public static function buildFromName(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster to retrieve. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster) of the cluster to retrieve. + * Specified in the format `projects/*/locations/*/clusters/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster to retrieve. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster to retrieve. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * The name (project, location, cluster) of the cluster to retrieve. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 5; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster) of the cluster to retrieve. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 5; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysRequest.php new file mode 100644 index 000000000000..51b7332269ce --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysRequest.php @@ -0,0 +1,74 @@ +google.container.v1.GetJSONWebKeysRequest + */ +class GetJSONWebKeysRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The cluster (project, location, cluster name) to get keys for. Specified in + * the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string parent = 1; + */ + protected $parent = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * The cluster (project, location, cluster name) to get keys for. Specified in + * the format `projects/*/locations/*/clusters/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The cluster (project, location, cluster name) to get keys for. Specified in + * the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string parent = 1; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * The cluster (project, location, cluster name) to get keys for. Specified in + * the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string parent = 1; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysResponse.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysResponse.php new file mode 100644 index 000000000000..e87ea71c60c3 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysResponse.php @@ -0,0 +1,71 @@ +google.container.v1.GetJSONWebKeysResponse + */ +class GetJSONWebKeysResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The public component of the keys used by the cluster to sign token + * requests. + * + * Generated from protobuf field repeated .google.container.v1.Jwk keys = 1; + */ + private $keys; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\Container\V1\Jwk>|\Google\Protobuf\Internal\RepeatedField $keys + * The public component of the keys used by the cluster to sign token + * requests. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The public component of the keys used by the cluster to sign token + * requests. + * + * Generated from protobuf field repeated .google.container.v1.Jwk keys = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getKeys() + { + return $this->keys; + } + + /** + * The public component of the keys used by the cluster to sign token + * requests. + * + * Generated from protobuf field repeated .google.container.v1.Jwk keys = 1; + * @param array<\Google\Cloud\Container\V1\Jwk>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setKeys($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\Jwk::class); + $this->keys = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetNodePoolRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetNodePoolRequest.php new file mode 100644 index 000000000000..3a6cd8bd5255 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetNodePoolRequest.php @@ -0,0 +1,300 @@ +google.container.v1.GetNodePoolRequest + */ +class GetNodePoolRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * Deprecated. The name of the node pool. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @deprecated + */ + protected $node_pool_id = ''; + /** + * The name (project, location, cluster, node pool id) of the node pool to + * get. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 6; + */ + protected $name = ''; + + /** + * @param string $projectId Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @param string $zone Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @param string $clusterId Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * @param string $nodePoolId Deprecated. The name of the node pool. + * This field has been deprecated and replaced by the name field. + * + * @return \Google\Cloud\Container\V1\GetNodePoolRequest + * + * @experimental + */ + public static function build(string $projectId, string $zone, string $clusterId, string $nodePoolId): self + { + return (new self()) + ->setProjectId($projectId) + ->setZone($zone) + ->setClusterId($clusterId) + ->setNodePoolId($nodePoolId); + } + + /** + * @param string $name The name (project, location, cluster, node pool id) of the node pool to + * get. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * + * @return \Google\Cloud\Container\V1\GetNodePoolRequest + * + * @experimental + */ + public static function buildFromName(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * @type string $node_pool_id + * Deprecated. The name of the node pool. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster, node pool id) of the node pool to + * get. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the node pool. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @return string + * @deprecated + */ + public function getNodePoolId() + { + @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); + return $this->node_pool_id; + } + + /** + * Deprecated. The name of the node pool. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setNodePoolId($var) + { + @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->node_pool_id = $var; + + return $this; + } + + /** + * The name (project, location, cluster, node pool id) of the node pool to + * get. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 6; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster, node pool id) of the node pool to + * get. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 6; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigRequest.php new file mode 100644 index 000000000000..91eed5acb736 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigRequest.php @@ -0,0 +1,72 @@ +google.container.v1.GetOpenIDConfigRequest + */ +class GetOpenIDConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The cluster (project, location, cluster name) to get the discovery document + * for. Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string parent = 1; + */ + protected $parent = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * The cluster (project, location, cluster name) to get the discovery document + * for. Specified in the format `projects/*/locations/*/clusters/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The cluster (project, location, cluster name) to get the discovery document + * for. Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string parent = 1; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * The cluster (project, location, cluster name) to get the discovery document + * for. Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string parent = 1; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigResponse.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigResponse.php new file mode 100644 index 000000000000..99ed8727e6b6 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigResponse.php @@ -0,0 +1,272 @@ +google.container.v1.GetOpenIDConfigResponse + */ +class GetOpenIDConfigResponse extends \Google\Protobuf\Internal\Message +{ + /** + * OIDC Issuer. + * + * Generated from protobuf field string issuer = 1; + */ + protected $issuer = ''; + /** + * JSON Web Key uri. + * + * Generated from protobuf field string jwks_uri = 2; + */ + protected $jwks_uri = ''; + /** + * Supported response types. + * + * Generated from protobuf field repeated string response_types_supported = 3; + */ + private $response_types_supported; + /** + * Supported subject types. + * + * Generated from protobuf field repeated string subject_types_supported = 4; + */ + private $subject_types_supported; + /** + * supported ID Token signing Algorithms. + * + * Generated from protobuf field repeated string id_token_signing_alg_values_supported = 5; + */ + private $id_token_signing_alg_values_supported; + /** + * Supported claims. + * + * Generated from protobuf field repeated string claims_supported = 6; + */ + private $claims_supported; + /** + * Supported grant types. + * + * Generated from protobuf field repeated string grant_types = 7; + */ + private $grant_types; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $issuer + * OIDC Issuer. + * @type string $jwks_uri + * JSON Web Key uri. + * @type array|\Google\Protobuf\Internal\RepeatedField $response_types_supported + * Supported response types. + * @type array|\Google\Protobuf\Internal\RepeatedField $subject_types_supported + * Supported subject types. + * @type array|\Google\Protobuf\Internal\RepeatedField $id_token_signing_alg_values_supported + * supported ID Token signing Algorithms. + * @type array|\Google\Protobuf\Internal\RepeatedField $claims_supported + * Supported claims. + * @type array|\Google\Protobuf\Internal\RepeatedField $grant_types + * Supported grant types. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * OIDC Issuer. + * + * Generated from protobuf field string issuer = 1; + * @return string + */ + public function getIssuer() + { + return $this->issuer; + } + + /** + * OIDC Issuer. + * + * Generated from protobuf field string issuer = 1; + * @param string $var + * @return $this + */ + public function setIssuer($var) + { + GPBUtil::checkString($var, True); + $this->issuer = $var; + + return $this; + } + + /** + * JSON Web Key uri. + * + * Generated from protobuf field string jwks_uri = 2; + * @return string + */ + public function getJwksUri() + { + return $this->jwks_uri; + } + + /** + * JSON Web Key uri. + * + * Generated from protobuf field string jwks_uri = 2; + * @param string $var + * @return $this + */ + public function setJwksUri($var) + { + GPBUtil::checkString($var, True); + $this->jwks_uri = $var; + + return $this; + } + + /** + * Supported response types. + * + * Generated from protobuf field repeated string response_types_supported = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getResponseTypesSupported() + { + return $this->response_types_supported; + } + + /** + * Supported response types. + * + * Generated from protobuf field repeated string response_types_supported = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setResponseTypesSupported($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->response_types_supported = $arr; + + return $this; + } + + /** + * Supported subject types. + * + * Generated from protobuf field repeated string subject_types_supported = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSubjectTypesSupported() + { + return $this->subject_types_supported; + } + + /** + * Supported subject types. + * + * Generated from protobuf field repeated string subject_types_supported = 4; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSubjectTypesSupported($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->subject_types_supported = $arr; + + return $this; + } + + /** + * supported ID Token signing Algorithms. + * + * Generated from protobuf field repeated string id_token_signing_alg_values_supported = 5; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getIdTokenSigningAlgValuesSupported() + { + return $this->id_token_signing_alg_values_supported; + } + + /** + * supported ID Token signing Algorithms. + * + * Generated from protobuf field repeated string id_token_signing_alg_values_supported = 5; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setIdTokenSigningAlgValuesSupported($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->id_token_signing_alg_values_supported = $arr; + + return $this; + } + + /** + * Supported claims. + * + * Generated from protobuf field repeated string claims_supported = 6; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getClaimsSupported() + { + return $this->claims_supported; + } + + /** + * Supported claims. + * + * Generated from protobuf field repeated string claims_supported = 6; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setClaimsSupported($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->claims_supported = $arr; + + return $this; + } + + /** + * Supported grant types. + * + * Generated from protobuf field repeated string grant_types = 7; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getGrantTypes() + { + return $this->grant_types; + } + + /** + * Supported grant types. + * + * Generated from protobuf field repeated string grant_types = 7; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setGrantTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->grant_types = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOperationRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOperationRequest.php new file mode 100644 index 000000000000..c07ae9a9dd77 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOperationRequest.php @@ -0,0 +1,249 @@ +google.container.v1.GetOperationRequest + */ +class GetOperationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The server-assigned `name` of the operation. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string operation_id = 3 [deprecated = true]; + * @deprecated + */ + protected $operation_id = ''; + /** + * The name (project, location, operation id) of the operation to get. + * Specified in the format `projects/*/locations/*/operations/*`. + * + * Generated from protobuf field string name = 5; + */ + protected $name = ''; + + /** + * @param string $projectId Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @param string $zone Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @param string $operationId Deprecated. The server-assigned `name` of the operation. + * This field has been deprecated and replaced by the name field. + * + * @return \Google\Cloud\Container\V1\GetOperationRequest + * + * @experimental + */ + public static function build(string $projectId, string $zone, string $operationId): self + { + return (new self()) + ->setProjectId($projectId) + ->setZone($zone) + ->setOperationId($operationId); + } + + /** + * @param string $name The name (project, location, operation id) of the operation to get. + * Specified in the format `projects/*/locations/*/operations/*`. + * + * @return \Google\Cloud\Container\V1\GetOperationRequest + * + * @experimental + */ + public static function buildFromName(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $operation_id + * Deprecated. The server-assigned `name` of the operation. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, operation id) of the operation to get. + * Specified in the format `projects/*/locations/*/operations/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The server-assigned `name` of the operation. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string operation_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getOperationId() + { + @trigger_error('operation_id is deprecated.', E_USER_DEPRECATED); + return $this->operation_id; + } + + /** + * Deprecated. The server-assigned `name` of the operation. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string operation_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setOperationId($var) + { + @trigger_error('operation_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->operation_id = $var; + + return $this; + } + + /** + * The name (project, location, operation id) of the operation to get. + * Specified in the format `projects/*/locations/*/operations/*`. + * + * Generated from protobuf field string name = 5; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, operation id) of the operation to get. + * Specified in the format `projects/*/locations/*/operations/*`. + * + * Generated from protobuf field string name = 5; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetServerConfigRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetServerConfigRequest.php new file mode 100644 index 000000000000..f8c09b1b122c --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetServerConfigRequest.php @@ -0,0 +1,203 @@ +google.container.v1.GetServerConfigRequest + */ +class GetServerConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) to return + * operations for. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * The name (project and location) of the server config to get, + * specified in the format `projects/*/locations/*`. + * + * Generated from protobuf field string name = 4; + */ + protected $name = ''; + + /** + * @param string $projectId Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @param string $zone Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) to return + * operations for. This field has been deprecated and replaced by the name + * field. + * + * @return \Google\Cloud\Container\V1\GetServerConfigRequest + * + * @experimental + */ + public static function build(string $projectId, string $zone): self + { + return (new self()) + ->setProjectId($projectId) + ->setZone($zone); + } + + /** + * @param string $name The name (project and location) of the server config to get, + * specified in the format `projects/*/locations/*`. + * + * @return \Google\Cloud\Container\V1\GetServerConfigRequest + * + * @experimental + */ + public static function buildFromName(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) to return + * operations for. This field has been deprecated and replaced by the name + * field. + * @type string $name + * The name (project and location) of the server config to get, + * specified in the format `projects/*/locations/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) to return + * operations for. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) to return + * operations for. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * The name (project and location) of the server config to get, + * specified in the format `projects/*/locations/*`. + * + * Generated from protobuf field string name = 4; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project and location) of the server config to get, + * specified in the format `projects/*/locations/*`. + * + * Generated from protobuf field string name = 4; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GkeBackupAgentConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GkeBackupAgentConfig.php new file mode 100644 index 000000000000..de7ae1b5392b --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GkeBackupAgentConfig.php @@ -0,0 +1,67 @@ +google.container.v1.GkeBackupAgentConfig + */ +class GkeBackupAgentConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Whether the Backup for GKE agent is enabled for this cluster. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Whether the Backup for GKE agent is enabled for this cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether the Backup for GKE agent is enabled for this cluster. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Whether the Backup for GKE agent is enabled for this cluster. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HorizontalPodAutoscaling.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HorizontalPodAutoscaling.php new file mode 100644 index 000000000000..0e904a7e225a --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HorizontalPodAutoscaling.php @@ -0,0 +1,77 @@ +google.container.v1.HorizontalPodAutoscaling + */ +class HorizontalPodAutoscaling extends \Google\Protobuf\Internal\Message +{ + /** + * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. + * When enabled, it ensures that metrics are collected into Stackdriver + * Monitoring. + * + * Generated from protobuf field bool disabled = 1; + */ + protected $disabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $disabled + * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. + * When enabled, it ensures that metrics are collected into Stackdriver + * Monitoring. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. + * When enabled, it ensures that metrics are collected into Stackdriver + * Monitoring. + * + * Generated from protobuf field bool disabled = 1; + * @return bool + */ + public function getDisabled() + { + return $this->disabled; + } + + /** + * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. + * When enabled, it ensures that metrics are collected into Stackdriver + * Monitoring. + * + * Generated from protobuf field bool disabled = 1; + * @param bool $var + * @return $this + */ + public function setDisabled($var) + { + GPBUtil::checkBool($var); + $this->disabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HttpLoadBalancing.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HttpLoadBalancing.php new file mode 100644 index 000000000000..abe2b7c900b2 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HttpLoadBalancing.php @@ -0,0 +1,76 @@ +google.container.v1.HttpLoadBalancing + */ +class HttpLoadBalancing extends \Google\Protobuf\Internal\Message +{ + /** + * Whether the HTTP Load Balancing controller is enabled in the cluster. + * When enabled, it runs a small pod in the cluster that manages the load + * balancers. + * + * Generated from protobuf field bool disabled = 1; + */ + protected $disabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $disabled + * Whether the HTTP Load Balancing controller is enabled in the cluster. + * When enabled, it runs a small pod in the cluster that manages the load + * balancers. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether the HTTP Load Balancing controller is enabled in the cluster. + * When enabled, it runs a small pod in the cluster that manages the load + * balancers. + * + * Generated from protobuf field bool disabled = 1; + * @return bool + */ + public function getDisabled() + { + return $this->disabled; + } + + /** + * Whether the HTTP Load Balancing controller is enabled in the cluster. + * When enabled, it runs a small pod in the cluster that manages the load + * balancers. + * + * Generated from protobuf field bool disabled = 1; + * @param bool $var + * @return $this + */ + public function setDisabled($var) + { + GPBUtil::checkBool($var); + $this->disabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ILBSubsettingConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ILBSubsettingConfig.php new file mode 100644 index 000000000000..64b0d8c63670 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ILBSubsettingConfig.php @@ -0,0 +1,68 @@ +google.container.v1.ILBSubsettingConfig + */ +class ILBSubsettingConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Enables l4 ILB subsetting for this cluster. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Enables l4 ILB subsetting for this cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Enables l4 ILB subsetting for this cluster. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Enables l4 ILB subsetting for this cluster. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPAllocationPolicy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPAllocationPolicy.php new file mode 100644 index 000000000000..3b4ada5acd73 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPAllocationPolicy.php @@ -0,0 +1,1040 @@ +google.container.v1.IPAllocationPolicy + */ +class IPAllocationPolicy extends \Google\Protobuf\Internal\Message +{ + /** + * Whether alias IPs will be used for pod IPs in the cluster. + * This is used in conjunction with use_routes. It cannot + * be true if use_routes is true. If both use_ip_aliases and use_routes are + * false, then the server picks the default IP allocation mode + * + * Generated from protobuf field bool use_ip_aliases = 1; + */ + protected $use_ip_aliases = false; + /** + * Whether a new subnetwork will be created automatically for the cluster. + * This field is only applicable when `use_ip_aliases` is true. + * + * Generated from protobuf field bool create_subnetwork = 2; + */ + protected $create_subnetwork = false; + /** + * A custom subnetwork name to be used if `create_subnetwork` is true. If + * this field is empty, then an automatic name will be chosen for the new + * subnetwork. + * + * Generated from protobuf field string subnetwork_name = 3; + */ + protected $subnetwork_name = ''; + /** + * This field is deprecated, use cluster_ipv4_cidr_block. + * + * Generated from protobuf field string cluster_ipv4_cidr = 4 [deprecated = true]; + * @deprecated + */ + protected $cluster_ipv4_cidr = ''; + /** + * This field is deprecated, use node_ipv4_cidr_block. + * + * Generated from protobuf field string node_ipv4_cidr = 5 [deprecated = true]; + * @deprecated + */ + protected $node_ipv4_cidr = ''; + /** + * This field is deprecated, use services_ipv4_cidr_block. + * + * Generated from protobuf field string services_ipv4_cidr = 6 [deprecated = true]; + * @deprecated + */ + protected $services_ipv4_cidr = ''; + /** + * The name of the secondary range to be used for the cluster CIDR + * block. The secondary range will be used for pod IP + * addresses. This must be an existing secondary range associated + * with the cluster subnetwork. + * This field is only applicable with use_ip_aliases is true and + * create_subnetwork is false. + * + * Generated from protobuf field string cluster_secondary_range_name = 7; + */ + protected $cluster_secondary_range_name = ''; + /** + * The name of the secondary range to be used as for the services + * CIDR block. The secondary range will be used for service + * ClusterIPs. This must be an existing secondary range associated + * with the cluster subnetwork. + * This field is only applicable with use_ip_aliases is true and + * create_subnetwork is false. + * + * Generated from protobuf field string services_secondary_range_name = 8; + */ + protected $services_secondary_range_name = ''; + /** + * The IP address range for the cluster pod IPs. If this field is set, then + * `cluster.cluster_ipv4_cidr` must be left blank. + * This field is only applicable when `use_ip_aliases` is true. + * Set to blank to have a range chosen with the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + * to use. + * + * Generated from protobuf field string cluster_ipv4_cidr_block = 9; + */ + protected $cluster_ipv4_cidr_block = ''; + /** + * The IP address range of the instance IPs in this cluster. + * This is applicable only if `create_subnetwork` is true. + * Set to blank to have a range chosen with the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + * to use. + * + * Generated from protobuf field string node_ipv4_cidr_block = 10; + */ + protected $node_ipv4_cidr_block = ''; + /** + * The IP address range of the services IPs in this cluster. If blank, a range + * will be automatically chosen with the default size. + * This field is only applicable when `use_ip_aliases` is true. + * Set to blank to have a range chosen with the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + * to use. + * + * Generated from protobuf field string services_ipv4_cidr_block = 11; + */ + protected $services_ipv4_cidr_block = ''; + /** + * The IP address range of the Cloud TPUs in this cluster. If unspecified, a + * range will be automatically chosen with the default size. + * This field is only applicable when `use_ip_aliases` is true. + * If unspecified, the range will use the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + * to use. + * + * Generated from protobuf field string tpu_ipv4_cidr_block = 13; + */ + protected $tpu_ipv4_cidr_block = ''; + /** + * Whether routes will be used for pod IPs in the cluster. + * This is used in conjunction with use_ip_aliases. It cannot be true if + * use_ip_aliases is true. If both use_ip_aliases and use_routes are false, + * then the server picks the default IP allocation mode + * + * Generated from protobuf field bool use_routes = 15; + */ + protected $use_routes = false; + /** + * The IP stack type of the cluster + * + * Generated from protobuf field .google.container.v1.StackType stack_type = 16; + */ + protected $stack_type = 0; + /** + * The ipv6 access type (internal or external) when create_subnetwork is true + * + * Generated from protobuf field .google.container.v1.IPv6AccessType ipv6_access_type = 17; + */ + protected $ipv6_access_type = 0; + /** + * [PRIVATE FIELD] + * Pod CIDR size overprovisioning config for the cluster. + * Pod CIDR size per node depends on max_pods_per_node. By default, the value + * of max_pods_per_node is doubled and then rounded off to next power of 2 to + * get the size of pod CIDR block per node. + * Example: max_pods_per_node of 30 would result in 64 IPs (/26). + * This config can disable the doubling of IPs (we still round off to next + * power of 2) + * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when + * overprovisioning is disabled. + * + * Generated from protobuf field .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; + */ + protected $pod_cidr_overprovision_config = null; + /** + * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and + * pods. + * + * Generated from protobuf field string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $subnet_ipv6_cidr_block = ''; + /** + * Output only. [Output only] The services IPv6 CIDR block for the cluster. + * + * Generated from protobuf field string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $services_ipv6_cidr_block = ''; + /** + * Output only. [Output only] The additional pod ranges that are added to the + * cluster. These pod ranges can be used by new node pools to allocate pod IPs + * automatically. Once the range is removed it will not show up in + * IPAllocationPolicy. + * + * Generated from protobuf field .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $additional_pod_ranges_config = null; + /** + * Output only. [Output only] The utilization of the cluster default IPv4 + * range for the pod. The ratio is Usage/[Total number of IPs in the secondary + * range], Usage=numNodes*numZones*podIPsPerNode. + * + * Generated from protobuf field double default_pod_ipv4_range_utilization = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $default_pod_ipv4_range_utilization = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $use_ip_aliases + * Whether alias IPs will be used for pod IPs in the cluster. + * This is used in conjunction with use_routes. It cannot + * be true if use_routes is true. If both use_ip_aliases and use_routes are + * false, then the server picks the default IP allocation mode + * @type bool $create_subnetwork + * Whether a new subnetwork will be created automatically for the cluster. + * This field is only applicable when `use_ip_aliases` is true. + * @type string $subnetwork_name + * A custom subnetwork name to be used if `create_subnetwork` is true. If + * this field is empty, then an automatic name will be chosen for the new + * subnetwork. + * @type string $cluster_ipv4_cidr + * This field is deprecated, use cluster_ipv4_cidr_block. + * @type string $node_ipv4_cidr + * This field is deprecated, use node_ipv4_cidr_block. + * @type string $services_ipv4_cidr + * This field is deprecated, use services_ipv4_cidr_block. + * @type string $cluster_secondary_range_name + * The name of the secondary range to be used for the cluster CIDR + * block. The secondary range will be used for pod IP + * addresses. This must be an existing secondary range associated + * with the cluster subnetwork. + * This field is only applicable with use_ip_aliases is true and + * create_subnetwork is false. + * @type string $services_secondary_range_name + * The name of the secondary range to be used as for the services + * CIDR block. The secondary range will be used for service + * ClusterIPs. This must be an existing secondary range associated + * with the cluster subnetwork. + * This field is only applicable with use_ip_aliases is true and + * create_subnetwork is false. + * @type string $cluster_ipv4_cidr_block + * The IP address range for the cluster pod IPs. If this field is set, then + * `cluster.cluster_ipv4_cidr` must be left blank. + * This field is only applicable when `use_ip_aliases` is true. + * Set to blank to have a range chosen with the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + * to use. + * @type string $node_ipv4_cidr_block + * The IP address range of the instance IPs in this cluster. + * This is applicable only if `create_subnetwork` is true. + * Set to blank to have a range chosen with the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + * to use. + * @type string $services_ipv4_cidr_block + * The IP address range of the services IPs in this cluster. If blank, a range + * will be automatically chosen with the default size. + * This field is only applicable when `use_ip_aliases` is true. + * Set to blank to have a range chosen with the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + * to use. + * @type string $tpu_ipv4_cidr_block + * The IP address range of the Cloud TPUs in this cluster. If unspecified, a + * range will be automatically chosen with the default size. + * This field is only applicable when `use_ip_aliases` is true. + * If unspecified, the range will use the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + * to use. + * @type bool $use_routes + * Whether routes will be used for pod IPs in the cluster. + * This is used in conjunction with use_ip_aliases. It cannot be true if + * use_ip_aliases is true. If both use_ip_aliases and use_routes are false, + * then the server picks the default IP allocation mode + * @type int $stack_type + * The IP stack type of the cluster + * @type int $ipv6_access_type + * The ipv6 access type (internal or external) when create_subnetwork is true + * @type \Google\Cloud\Container\V1\PodCIDROverprovisionConfig $pod_cidr_overprovision_config + * [PRIVATE FIELD] + * Pod CIDR size overprovisioning config for the cluster. + * Pod CIDR size per node depends on max_pods_per_node. By default, the value + * of max_pods_per_node is doubled and then rounded off to next power of 2 to + * get the size of pod CIDR block per node. + * Example: max_pods_per_node of 30 would result in 64 IPs (/26). + * This config can disable the doubling of IPs (we still round off to next + * power of 2) + * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when + * overprovisioning is disabled. + * @type string $subnet_ipv6_cidr_block + * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and + * pods. + * @type string $services_ipv6_cidr_block + * Output only. [Output only] The services IPv6 CIDR block for the cluster. + * @type \Google\Cloud\Container\V1\AdditionalPodRangesConfig $additional_pod_ranges_config + * Output only. [Output only] The additional pod ranges that are added to the + * cluster. These pod ranges can be used by new node pools to allocate pod IPs + * automatically. Once the range is removed it will not show up in + * IPAllocationPolicy. + * @type float $default_pod_ipv4_range_utilization + * Output only. [Output only] The utilization of the cluster default IPv4 + * range for the pod. The ratio is Usage/[Total number of IPs in the secondary + * range], Usage=numNodes*numZones*podIPsPerNode. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether alias IPs will be used for pod IPs in the cluster. + * This is used in conjunction with use_routes. It cannot + * be true if use_routes is true. If both use_ip_aliases and use_routes are + * false, then the server picks the default IP allocation mode + * + * Generated from protobuf field bool use_ip_aliases = 1; + * @return bool + */ + public function getUseIpAliases() + { + return $this->use_ip_aliases; + } + + /** + * Whether alias IPs will be used for pod IPs in the cluster. + * This is used in conjunction with use_routes. It cannot + * be true if use_routes is true. If both use_ip_aliases and use_routes are + * false, then the server picks the default IP allocation mode + * + * Generated from protobuf field bool use_ip_aliases = 1; + * @param bool $var + * @return $this + */ + public function setUseIpAliases($var) + { + GPBUtil::checkBool($var); + $this->use_ip_aliases = $var; + + return $this; + } + + /** + * Whether a new subnetwork will be created automatically for the cluster. + * This field is only applicable when `use_ip_aliases` is true. + * + * Generated from protobuf field bool create_subnetwork = 2; + * @return bool + */ + public function getCreateSubnetwork() + { + return $this->create_subnetwork; + } + + /** + * Whether a new subnetwork will be created automatically for the cluster. + * This field is only applicable when `use_ip_aliases` is true. + * + * Generated from protobuf field bool create_subnetwork = 2; + * @param bool $var + * @return $this + */ + public function setCreateSubnetwork($var) + { + GPBUtil::checkBool($var); + $this->create_subnetwork = $var; + + return $this; + } + + /** + * A custom subnetwork name to be used if `create_subnetwork` is true. If + * this field is empty, then an automatic name will be chosen for the new + * subnetwork. + * + * Generated from protobuf field string subnetwork_name = 3; + * @return string + */ + public function getSubnetworkName() + { + return $this->subnetwork_name; + } + + /** + * A custom subnetwork name to be used if `create_subnetwork` is true. If + * this field is empty, then an automatic name will be chosen for the new + * subnetwork. + * + * Generated from protobuf field string subnetwork_name = 3; + * @param string $var + * @return $this + */ + public function setSubnetworkName($var) + { + GPBUtil::checkString($var, True); + $this->subnetwork_name = $var; + + return $this; + } + + /** + * This field is deprecated, use cluster_ipv4_cidr_block. + * + * Generated from protobuf field string cluster_ipv4_cidr = 4 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterIpv4Cidr() + { + @trigger_error('cluster_ipv4_cidr is deprecated.', E_USER_DEPRECATED); + return $this->cluster_ipv4_cidr; + } + + /** + * This field is deprecated, use cluster_ipv4_cidr_block. + * + * Generated from protobuf field string cluster_ipv4_cidr = 4 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterIpv4Cidr($var) + { + @trigger_error('cluster_ipv4_cidr is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_ipv4_cidr = $var; + + return $this; + } + + /** + * This field is deprecated, use node_ipv4_cidr_block. + * + * Generated from protobuf field string node_ipv4_cidr = 5 [deprecated = true]; + * @return string + * @deprecated + */ + public function getNodeIpv4Cidr() + { + @trigger_error('node_ipv4_cidr is deprecated.', E_USER_DEPRECATED); + return $this->node_ipv4_cidr; + } + + /** + * This field is deprecated, use node_ipv4_cidr_block. + * + * Generated from protobuf field string node_ipv4_cidr = 5 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setNodeIpv4Cidr($var) + { + @trigger_error('node_ipv4_cidr is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->node_ipv4_cidr = $var; + + return $this; + } + + /** + * This field is deprecated, use services_ipv4_cidr_block. + * + * Generated from protobuf field string services_ipv4_cidr = 6 [deprecated = true]; + * @return string + * @deprecated + */ + public function getServicesIpv4Cidr() + { + @trigger_error('services_ipv4_cidr is deprecated.', E_USER_DEPRECATED); + return $this->services_ipv4_cidr; + } + + /** + * This field is deprecated, use services_ipv4_cidr_block. + * + * Generated from protobuf field string services_ipv4_cidr = 6 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setServicesIpv4Cidr($var) + { + @trigger_error('services_ipv4_cidr is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->services_ipv4_cidr = $var; + + return $this; + } + + /** + * The name of the secondary range to be used for the cluster CIDR + * block. The secondary range will be used for pod IP + * addresses. This must be an existing secondary range associated + * with the cluster subnetwork. + * This field is only applicable with use_ip_aliases is true and + * create_subnetwork is false. + * + * Generated from protobuf field string cluster_secondary_range_name = 7; + * @return string + */ + public function getClusterSecondaryRangeName() + { + return $this->cluster_secondary_range_name; + } + + /** + * The name of the secondary range to be used for the cluster CIDR + * block. The secondary range will be used for pod IP + * addresses. This must be an existing secondary range associated + * with the cluster subnetwork. + * This field is only applicable with use_ip_aliases is true and + * create_subnetwork is false. + * + * Generated from protobuf field string cluster_secondary_range_name = 7; + * @param string $var + * @return $this + */ + public function setClusterSecondaryRangeName($var) + { + GPBUtil::checkString($var, True); + $this->cluster_secondary_range_name = $var; + + return $this; + } + + /** + * The name of the secondary range to be used as for the services + * CIDR block. The secondary range will be used for service + * ClusterIPs. This must be an existing secondary range associated + * with the cluster subnetwork. + * This field is only applicable with use_ip_aliases is true and + * create_subnetwork is false. + * + * Generated from protobuf field string services_secondary_range_name = 8; + * @return string + */ + public function getServicesSecondaryRangeName() + { + return $this->services_secondary_range_name; + } + + /** + * The name of the secondary range to be used as for the services + * CIDR block. The secondary range will be used for service + * ClusterIPs. This must be an existing secondary range associated + * with the cluster subnetwork. + * This field is only applicable with use_ip_aliases is true and + * create_subnetwork is false. + * + * Generated from protobuf field string services_secondary_range_name = 8; + * @param string $var + * @return $this + */ + public function setServicesSecondaryRangeName($var) + { + GPBUtil::checkString($var, True); + $this->services_secondary_range_name = $var; + + return $this; + } + + /** + * The IP address range for the cluster pod IPs. If this field is set, then + * `cluster.cluster_ipv4_cidr` must be left blank. + * This field is only applicable when `use_ip_aliases` is true. + * Set to blank to have a range chosen with the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + * to use. + * + * Generated from protobuf field string cluster_ipv4_cidr_block = 9; + * @return string + */ + public function getClusterIpv4CidrBlock() + { + return $this->cluster_ipv4_cidr_block; + } + + /** + * The IP address range for the cluster pod IPs. If this field is set, then + * `cluster.cluster_ipv4_cidr` must be left blank. + * This field is only applicable when `use_ip_aliases` is true. + * Set to blank to have a range chosen with the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + * to use. + * + * Generated from protobuf field string cluster_ipv4_cidr_block = 9; + * @param string $var + * @return $this + */ + public function setClusterIpv4CidrBlock($var) + { + GPBUtil::checkString($var, True); + $this->cluster_ipv4_cidr_block = $var; + + return $this; + } + + /** + * The IP address range of the instance IPs in this cluster. + * This is applicable only if `create_subnetwork` is true. + * Set to blank to have a range chosen with the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + * to use. + * + * Generated from protobuf field string node_ipv4_cidr_block = 10; + * @return string + */ + public function getNodeIpv4CidrBlock() + { + return $this->node_ipv4_cidr_block; + } + + /** + * The IP address range of the instance IPs in this cluster. + * This is applicable only if `create_subnetwork` is true. + * Set to blank to have a range chosen with the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + * to use. + * + * Generated from protobuf field string node_ipv4_cidr_block = 10; + * @param string $var + * @return $this + */ + public function setNodeIpv4CidrBlock($var) + { + GPBUtil::checkString($var, True); + $this->node_ipv4_cidr_block = $var; + + return $this; + } + + /** + * The IP address range of the services IPs in this cluster. If blank, a range + * will be automatically chosen with the default size. + * This field is only applicable when `use_ip_aliases` is true. + * Set to blank to have a range chosen with the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + * to use. + * + * Generated from protobuf field string services_ipv4_cidr_block = 11; + * @return string + */ + public function getServicesIpv4CidrBlock() + { + return $this->services_ipv4_cidr_block; + } + + /** + * The IP address range of the services IPs in this cluster. If blank, a range + * will be automatically chosen with the default size. + * This field is only applicable when `use_ip_aliases` is true. + * Set to blank to have a range chosen with the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + * to use. + * + * Generated from protobuf field string services_ipv4_cidr_block = 11; + * @param string $var + * @return $this + */ + public function setServicesIpv4CidrBlock($var) + { + GPBUtil::checkString($var, True); + $this->services_ipv4_cidr_block = $var; + + return $this; + } + + /** + * The IP address range of the Cloud TPUs in this cluster. If unspecified, a + * range will be automatically chosen with the default size. + * This field is only applicable when `use_ip_aliases` is true. + * If unspecified, the range will use the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + * to use. + * + * Generated from protobuf field string tpu_ipv4_cidr_block = 13; + * @return string + */ + public function getTpuIpv4CidrBlock() + { + return $this->tpu_ipv4_cidr_block; + } + + /** + * The IP address range of the Cloud TPUs in this cluster. If unspecified, a + * range will be automatically chosen with the default size. + * This field is only applicable when `use_ip_aliases` is true. + * If unspecified, the range will use the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + * to use. + * + * Generated from protobuf field string tpu_ipv4_cidr_block = 13; + * @param string $var + * @return $this + */ + public function setTpuIpv4CidrBlock($var) + { + GPBUtil::checkString($var, True); + $this->tpu_ipv4_cidr_block = $var; + + return $this; + } + + /** + * Whether routes will be used for pod IPs in the cluster. + * This is used in conjunction with use_ip_aliases. It cannot be true if + * use_ip_aliases is true. If both use_ip_aliases and use_routes are false, + * then the server picks the default IP allocation mode + * + * Generated from protobuf field bool use_routes = 15; + * @return bool + */ + public function getUseRoutes() + { + return $this->use_routes; + } + + /** + * Whether routes will be used for pod IPs in the cluster. + * This is used in conjunction with use_ip_aliases. It cannot be true if + * use_ip_aliases is true. If both use_ip_aliases and use_routes are false, + * then the server picks the default IP allocation mode + * + * Generated from protobuf field bool use_routes = 15; + * @param bool $var + * @return $this + */ + public function setUseRoutes($var) + { + GPBUtil::checkBool($var); + $this->use_routes = $var; + + return $this; + } + + /** + * The IP stack type of the cluster + * + * Generated from protobuf field .google.container.v1.StackType stack_type = 16; + * @return int + */ + public function getStackType() + { + return $this->stack_type; + } + + /** + * The IP stack type of the cluster + * + * Generated from protobuf field .google.container.v1.StackType stack_type = 16; + * @param int $var + * @return $this + */ + public function setStackType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\StackType::class); + $this->stack_type = $var; + + return $this; + } + + /** + * The ipv6 access type (internal or external) when create_subnetwork is true + * + * Generated from protobuf field .google.container.v1.IPv6AccessType ipv6_access_type = 17; + * @return int + */ + public function getIpv6AccessType() + { + return $this->ipv6_access_type; + } + + /** + * The ipv6 access type (internal or external) when create_subnetwork is true + * + * Generated from protobuf field .google.container.v1.IPv6AccessType ipv6_access_type = 17; + * @param int $var + * @return $this + */ + public function setIpv6AccessType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\IPv6AccessType::class); + $this->ipv6_access_type = $var; + + return $this; + } + + /** + * [PRIVATE FIELD] + * Pod CIDR size overprovisioning config for the cluster. + * Pod CIDR size per node depends on max_pods_per_node. By default, the value + * of max_pods_per_node is doubled and then rounded off to next power of 2 to + * get the size of pod CIDR block per node. + * Example: max_pods_per_node of 30 would result in 64 IPs (/26). + * This config can disable the doubling of IPs (we still round off to next + * power of 2) + * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when + * overprovisioning is disabled. + * + * Generated from protobuf field .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; + * @return \Google\Cloud\Container\V1\PodCIDROverprovisionConfig|null + */ + public function getPodCidrOverprovisionConfig() + { + return $this->pod_cidr_overprovision_config; + } + + public function hasPodCidrOverprovisionConfig() + { + return isset($this->pod_cidr_overprovision_config); + } + + public function clearPodCidrOverprovisionConfig() + { + unset($this->pod_cidr_overprovision_config); + } + + /** + * [PRIVATE FIELD] + * Pod CIDR size overprovisioning config for the cluster. + * Pod CIDR size per node depends on max_pods_per_node. By default, the value + * of max_pods_per_node is doubled and then rounded off to next power of 2 to + * get the size of pod CIDR block per node. + * Example: max_pods_per_node of 30 would result in 64 IPs (/26). + * This config can disable the doubling of IPs (we still round off to next + * power of 2) + * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when + * overprovisioning is disabled. + * + * Generated from protobuf field .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; + * @param \Google\Cloud\Container\V1\PodCIDROverprovisionConfig $var + * @return $this + */ + public function setPodCidrOverprovisionConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\PodCIDROverprovisionConfig::class); + $this->pod_cidr_overprovision_config = $var; + + return $this; + } + + /** + * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and + * pods. + * + * Generated from protobuf field string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getSubnetIpv6CidrBlock() + { + return $this->subnet_ipv6_cidr_block; + } + + /** + * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and + * pods. + * + * Generated from protobuf field string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setSubnetIpv6CidrBlock($var) + { + GPBUtil::checkString($var, True); + $this->subnet_ipv6_cidr_block = $var; + + return $this; + } + + /** + * Output only. [Output only] The services IPv6 CIDR block for the cluster. + * + * Generated from protobuf field string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getServicesIpv6CidrBlock() + { + return $this->services_ipv6_cidr_block; + } + + /** + * Output only. [Output only] The services IPv6 CIDR block for the cluster. + * + * Generated from protobuf field string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setServicesIpv6CidrBlock($var) + { + GPBUtil::checkString($var, True); + $this->services_ipv6_cidr_block = $var; + + return $this; + } + + /** + * Output only. [Output only] The additional pod ranges that are added to the + * cluster. These pod ranges can be used by new node pools to allocate pod IPs + * automatically. Once the range is removed it will not show up in + * IPAllocationPolicy. + * + * Generated from protobuf field .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Container\V1\AdditionalPodRangesConfig|null + */ + public function getAdditionalPodRangesConfig() + { + return $this->additional_pod_ranges_config; + } + + public function hasAdditionalPodRangesConfig() + { + return isset($this->additional_pod_ranges_config); + } + + public function clearAdditionalPodRangesConfig() + { + unset($this->additional_pod_ranges_config); + } + + /** + * Output only. [Output only] The additional pod ranges that are added to the + * cluster. These pod ranges can be used by new node pools to allocate pod IPs + * automatically. Once the range is removed it will not show up in + * IPAllocationPolicy. + * + * Generated from protobuf field .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Container\V1\AdditionalPodRangesConfig $var + * @return $this + */ + public function setAdditionalPodRangesConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AdditionalPodRangesConfig::class); + $this->additional_pod_ranges_config = $var; + + return $this; + } + + /** + * Output only. [Output only] The utilization of the cluster default IPv4 + * range for the pod. The ratio is Usage/[Total number of IPs in the secondary + * range], Usage=numNodes*numZones*podIPsPerNode. + * + * Generated from protobuf field double default_pod_ipv4_range_utilization = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getDefaultPodIpv4RangeUtilization() + { + return $this->default_pod_ipv4_range_utilization; + } + + /** + * Output only. [Output only] The utilization of the cluster default IPv4 + * range for the pod. The ratio is Usage/[Total number of IPs in the secondary + * range], Usage=numNodes*numZones*podIPsPerNode. + * + * Generated from protobuf field double default_pod_ipv4_range_utilization = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setDefaultPodIpv4RangeUtilization($var) + { + GPBUtil::checkDouble($var); + $this->default_pod_ipv4_range_utilization = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPv6AccessType.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPv6AccessType.php new file mode 100644 index 000000000000..1b4be8e42d32 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPv6AccessType.php @@ -0,0 +1,61 @@ +google.container.v1.IPv6AccessType + */ +class IPv6AccessType +{ + /** + * Default value, will be defaulted as type external. + * + * Generated from protobuf enum IPV6_ACCESS_TYPE_UNSPECIFIED = 0; + */ + const IPV6_ACCESS_TYPE_UNSPECIFIED = 0; + /** + * Access type internal (all v6 addresses are internal IPs) + * + * Generated from protobuf enum INTERNAL = 1; + */ + const INTERNAL = 1; + /** + * Access type external (all v6 addresses are external IPs) + * + * Generated from protobuf enum EXTERNAL = 2; + */ + const EXTERNAL = 2; + + private static $valueToName = [ + self::IPV6_ACCESS_TYPE_UNSPECIFIED => 'IPV6_ACCESS_TYPE_UNSPECIFIED', + self::INTERNAL => 'INTERNAL', + self::EXTERNAL => 'EXTERNAL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IdentityServiceConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IdentityServiceConfig.php new file mode 100644 index 000000000000..61767b760f86 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IdentityServiceConfig.php @@ -0,0 +1,68 @@ +google.container.v1.IdentityServiceConfig + */ +class IdentityServiceConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Whether to enable the Identity Service component + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Whether to enable the Identity Service component + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether to enable the Identity Service component + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Whether to enable the Identity Service component + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/InTransitEncryptionConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/InTransitEncryptionConfig.php new file mode 100644 index 000000000000..67f6b5c4264a --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/InTransitEncryptionConfig.php @@ -0,0 +1,62 @@ +google.container.v1.InTransitEncryptionConfig + */ +class InTransitEncryptionConfig +{ + /** + * Unspecified, will be inferred as default - + * IN_TRANSIT_ENCRYPTION_UNSPECIFIED. + * + * Generated from protobuf enum IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED = 0; + */ + const IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED = 0; + /** + * In-transit encryption is disabled. + * + * Generated from protobuf enum IN_TRANSIT_ENCRYPTION_DISABLED = 1; + */ + const IN_TRANSIT_ENCRYPTION_DISABLED = 1; + /** + * Data in-transit is encrypted using inter-node transparent encryption. + * + * Generated from protobuf enum IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT = 2; + */ + const IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT = 2; + + private static $valueToName = [ + self::IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED => 'IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED', + self::IN_TRANSIT_ENCRYPTION_DISABLED => 'IN_TRANSIT_ENCRYPTION_DISABLED', + self::IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT => 'IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IntraNodeVisibilityConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IntraNodeVisibilityConfig.php new file mode 100644 index 000000000000..944edc0cbbde --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IntraNodeVisibilityConfig.php @@ -0,0 +1,68 @@ +google.container.v1.IntraNodeVisibilityConfig + */ +class IntraNodeVisibilityConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Enables intra node visibility for this cluster. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Enables intra node visibility for this cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Enables intra node visibility for this cluster. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Enables intra node visibility for this cluster. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Jwk.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Jwk.php new file mode 100644 index 000000000000..b35d6423015b --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Jwk.php @@ -0,0 +1,339 @@ +google.container.v1.Jwk + */ +class Jwk extends \Google\Protobuf\Internal\Message +{ + /** + * Key Type. + * + * Generated from protobuf field string kty = 1; + */ + protected $kty = ''; + /** + * Algorithm. + * + * Generated from protobuf field string alg = 2; + */ + protected $alg = ''; + /** + * Permitted uses for the public keys. + * + * Generated from protobuf field string use = 3; + */ + protected $use = ''; + /** + * Key ID. + * + * Generated from protobuf field string kid = 4; + */ + protected $kid = ''; + /** + * Used for RSA keys. + * + * Generated from protobuf field string n = 5; + */ + protected $n = ''; + /** + * Used for RSA keys. + * + * Generated from protobuf field string e = 6; + */ + protected $e = ''; + /** + * Used for ECDSA keys. + * + * Generated from protobuf field string x = 7; + */ + protected $x = ''; + /** + * Used for ECDSA keys. + * + * Generated from protobuf field string y = 8; + */ + protected $y = ''; + /** + * Used for ECDSA keys. + * + * Generated from protobuf field string crv = 9; + */ + protected $crv = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $kty + * Key Type. + * @type string $alg + * Algorithm. + * @type string $use + * Permitted uses for the public keys. + * @type string $kid + * Key ID. + * @type string $n + * Used for RSA keys. + * @type string $e + * Used for RSA keys. + * @type string $x + * Used for ECDSA keys. + * @type string $y + * Used for ECDSA keys. + * @type string $crv + * Used for ECDSA keys. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Key Type. + * + * Generated from protobuf field string kty = 1; + * @return string + */ + public function getKty() + { + return $this->kty; + } + + /** + * Key Type. + * + * Generated from protobuf field string kty = 1; + * @param string $var + * @return $this + */ + public function setKty($var) + { + GPBUtil::checkString($var, True); + $this->kty = $var; + + return $this; + } + + /** + * Algorithm. + * + * Generated from protobuf field string alg = 2; + * @return string + */ + public function getAlg() + { + return $this->alg; + } + + /** + * Algorithm. + * + * Generated from protobuf field string alg = 2; + * @param string $var + * @return $this + */ + public function setAlg($var) + { + GPBUtil::checkString($var, True); + $this->alg = $var; + + return $this; + } + + /** + * Permitted uses for the public keys. + * + * Generated from protobuf field string use = 3; + * @return string + */ + public function getUse() + { + return $this->use; + } + + /** + * Permitted uses for the public keys. + * + * Generated from protobuf field string use = 3; + * @param string $var + * @return $this + */ + public function setUse($var) + { + GPBUtil::checkString($var, True); + $this->use = $var; + + return $this; + } + + /** + * Key ID. + * + * Generated from protobuf field string kid = 4; + * @return string + */ + public function getKid() + { + return $this->kid; + } + + /** + * Key ID. + * + * Generated from protobuf field string kid = 4; + * @param string $var + * @return $this + */ + public function setKid($var) + { + GPBUtil::checkString($var, True); + $this->kid = $var; + + return $this; + } + + /** + * Used for RSA keys. + * + * Generated from protobuf field string n = 5; + * @return string + */ + public function getN() + { + return $this->n; + } + + /** + * Used for RSA keys. + * + * Generated from protobuf field string n = 5; + * @param string $var + * @return $this + */ + public function setN($var) + { + GPBUtil::checkString($var, True); + $this->n = $var; + + return $this; + } + + /** + * Used for RSA keys. + * + * Generated from protobuf field string e = 6; + * @return string + */ + public function getE() + { + return $this->e; + } + + /** + * Used for RSA keys. + * + * Generated from protobuf field string e = 6; + * @param string $var + * @return $this + */ + public function setE($var) + { + GPBUtil::checkString($var, True); + $this->e = $var; + + return $this; + } + + /** + * Used for ECDSA keys. + * + * Generated from protobuf field string x = 7; + * @return string + */ + public function getX() + { + return $this->x; + } + + /** + * Used for ECDSA keys. + * + * Generated from protobuf field string x = 7; + * @param string $var + * @return $this + */ + public function setX($var) + { + GPBUtil::checkString($var, True); + $this->x = $var; + + return $this; + } + + /** + * Used for ECDSA keys. + * + * Generated from protobuf field string y = 8; + * @return string + */ + public function getY() + { + return $this->y; + } + + /** + * Used for ECDSA keys. + * + * Generated from protobuf field string y = 8; + * @param string $var + * @return $this + */ + public function setY($var) + { + GPBUtil::checkString($var, True); + $this->y = $var; + + return $this; + } + + /** + * Used for ECDSA keys. + * + * Generated from protobuf field string crv = 9; + * @return string + */ + public function getCrv() + { + return $this->crv; + } + + /** + * Used for ECDSA keys. + * + * Generated from protobuf field string crv = 9; + * @param string $var + * @return $this + */ + public function setCrv($var) + { + GPBUtil::checkString($var, True); + $this->crv = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/K8sBetaAPIConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/K8sBetaAPIConfig.php new file mode 100644 index 000000000000..f3873962eab7 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/K8sBetaAPIConfig.php @@ -0,0 +1,67 @@ +google.container.v1.K8sBetaAPIConfig + */ +class K8sBetaAPIConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Enabled k8s beta APIs. + * + * Generated from protobuf field repeated string enabled_apis = 1; + */ + private $enabled_apis; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $enabled_apis + * Enabled k8s beta APIs. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Enabled k8s beta APIs. + * + * Generated from protobuf field repeated string enabled_apis = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEnabledApis() + { + return $this->enabled_apis; + } + + /** + * Enabled k8s beta APIs. + * + * Generated from protobuf field repeated string enabled_apis = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEnabledApis($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->enabled_apis = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/KubernetesDashboard.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/KubernetesDashboard.php new file mode 100644 index 000000000000..62ffe2fdca29 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/KubernetesDashboard.php @@ -0,0 +1,67 @@ +google.container.v1.KubernetesDashboard + */ +class KubernetesDashboard extends \Google\Protobuf\Internal\Message +{ + /** + * Whether the Kubernetes Dashboard is enabled for this cluster. + * + * Generated from protobuf field bool disabled = 1; + */ + protected $disabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $disabled + * Whether the Kubernetes Dashboard is enabled for this cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether the Kubernetes Dashboard is enabled for this cluster. + * + * Generated from protobuf field bool disabled = 1; + * @return bool + */ + public function getDisabled() + { + return $this->disabled; + } + + /** + * Whether the Kubernetes Dashboard is enabled for this cluster. + * + * Generated from protobuf field bool disabled = 1; + * @param bool $var + * @return $this + */ + public function setDisabled($var) + { + GPBUtil::checkBool($var); + $this->disabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LegacyAbac.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LegacyAbac.php new file mode 100644 index 000000000000..703bd19cfb95 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LegacyAbac.php @@ -0,0 +1,80 @@ +google.container.v1.LegacyAbac + */ +class LegacyAbac extends \Google\Protobuf\Internal\Message +{ + /** + * Whether the ABAC authorizer is enabled for this cluster. When enabled, + * identities in the system, including service accounts, nodes, and + * controllers, will have statically granted permissions beyond those + * provided by the RBAC configuration or IAM. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Whether the ABAC authorizer is enabled for this cluster. When enabled, + * identities in the system, including service accounts, nodes, and + * controllers, will have statically granted permissions beyond those + * provided by the RBAC configuration or IAM. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether the ABAC authorizer is enabled for this cluster. When enabled, + * identities in the system, including service accounts, nodes, and + * controllers, will have statically granted permissions beyond those + * provided by the RBAC configuration or IAM. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Whether the ABAC authorizer is enabled for this cluster. When enabled, + * identities in the system, including service accounts, nodes, and + * controllers, will have statically granted permissions beyond those + * provided by the RBAC configuration or IAM. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig.php new file mode 100644 index 000000000000..523e5541d78d --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig.php @@ -0,0 +1,153 @@ +google.container.v1.LinuxNodeConfig + */ +class LinuxNodeConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The Linux kernel parameters to be applied to the nodes and all pods running + * on the nodes. + * The following parameters are supported. + * net.core.busy_poll + * net.core.busy_read + * net.core.netdev_max_backlog + * net.core.rmem_max + * net.core.wmem_default + * net.core.wmem_max + * net.core.optmem_max + * net.core.somaxconn + * net.ipv4.tcp_rmem + * net.ipv4.tcp_wmem + * net.ipv4.tcp_tw_reuse + * + * Generated from protobuf field map sysctls = 1; + */ + private $sysctls; + /** + * cgroup_mode specifies the cgroup mode to be used on the node. + * + * Generated from protobuf field .google.container.v1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; + */ + protected $cgroup_mode = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\MapField $sysctls + * The Linux kernel parameters to be applied to the nodes and all pods running + * on the nodes. + * The following parameters are supported. + * net.core.busy_poll + * net.core.busy_read + * net.core.netdev_max_backlog + * net.core.rmem_max + * net.core.wmem_default + * net.core.wmem_max + * net.core.optmem_max + * net.core.somaxconn + * net.ipv4.tcp_rmem + * net.ipv4.tcp_wmem + * net.ipv4.tcp_tw_reuse + * @type int $cgroup_mode + * cgroup_mode specifies the cgroup mode to be used on the node. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The Linux kernel parameters to be applied to the nodes and all pods running + * on the nodes. + * The following parameters are supported. + * net.core.busy_poll + * net.core.busy_read + * net.core.netdev_max_backlog + * net.core.rmem_max + * net.core.wmem_default + * net.core.wmem_max + * net.core.optmem_max + * net.core.somaxconn + * net.ipv4.tcp_rmem + * net.ipv4.tcp_wmem + * net.ipv4.tcp_tw_reuse + * + * Generated from protobuf field map sysctls = 1; + * @return \Google\Protobuf\Internal\MapField + */ + public function getSysctls() + { + return $this->sysctls; + } + + /** + * The Linux kernel parameters to be applied to the nodes and all pods running + * on the nodes. + * The following parameters are supported. + * net.core.busy_poll + * net.core.busy_read + * net.core.netdev_max_backlog + * net.core.rmem_max + * net.core.wmem_default + * net.core.wmem_max + * net.core.optmem_max + * net.core.somaxconn + * net.ipv4.tcp_rmem + * net.ipv4.tcp_wmem + * net.ipv4.tcp_tw_reuse + * + * Generated from protobuf field map sysctls = 1; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setSysctls($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->sysctls = $arr; + + return $this; + } + + /** + * cgroup_mode specifies the cgroup mode to be used on the node. + * + * Generated from protobuf field .google.container.v1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; + * @return int + */ + public function getCgroupMode() + { + return $this->cgroup_mode; + } + + /** + * cgroup_mode specifies the cgroup mode to be used on the node. + * + * Generated from protobuf field .google.container.v1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; + * @param int $var + * @return $this + */ + public function setCgroupMode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\LinuxNodeConfig\CgroupMode::class); + $this->cgroup_mode = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig/CgroupMode.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig/CgroupMode.php new file mode 100644 index 000000000000..677f044abfac --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig/CgroupMode.php @@ -0,0 +1,67 @@ +google.container.v1.LinuxNodeConfig.CgroupMode + */ +class CgroupMode +{ + /** + * CGROUP_MODE_UNSPECIFIED is when unspecified cgroup configuration is used. + * The default for the GKE node OS image will be used. + * + * Generated from protobuf enum CGROUP_MODE_UNSPECIFIED = 0; + */ + const CGROUP_MODE_UNSPECIFIED = 0; + /** + * CGROUP_MODE_V1 specifies to use cgroupv1 for the cgroup configuration on + * the node image. + * + * Generated from protobuf enum CGROUP_MODE_V1 = 1; + */ + const CGROUP_MODE_V1 = 1; + /** + * CGROUP_MODE_V2 specifies to use cgroupv2 for the cgroup configuration on + * the node image. + * + * Generated from protobuf enum CGROUP_MODE_V2 = 2; + */ + const CGROUP_MODE_V2 = 2; + + private static $valueToName = [ + self::CGROUP_MODE_UNSPECIFIED => 'CGROUP_MODE_UNSPECIFIED', + self::CGROUP_MODE_V1 => 'CGROUP_MODE_V1', + self::CGROUP_MODE_V2 => 'CGROUP_MODE_V2', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CgroupMode::class, \Google\Cloud\Container\V1\LinuxNodeConfig_CgroupMode::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListClustersRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListClustersRequest.php new file mode 100644 index 000000000000..c106b440f234 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListClustersRequest.php @@ -0,0 +1,208 @@ +google.container.v1.ListClustersRequest + */ +class ListClustersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides, or "-" for all zones. This field has been deprecated and + * replaced by the parent field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * The parent (project and location) where the clusters will be listed. + * Specified in the format `projects/*/locations/*`. + * Location "-" matches all zones and all regions. + * + * Generated from protobuf field string parent = 4; + */ + protected $parent = ''; + + /** + * @param string $projectId Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * @param string $zone Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides, or "-" for all zones. This field has been deprecated and + * replaced by the parent field. + * + * @return \Google\Cloud\Container\V1\ListClustersRequest + * + * @experimental + */ + public static function build(string $projectId, string $zone): self + { + return (new self()) + ->setProjectId($projectId) + ->setZone($zone); + } + + /** + * @param string $parent The parent (project and location) where the clusters will be listed. + * Specified in the format `projects/*/locations/*`. + * Location "-" matches all zones and all regions. + * + * @return \Google\Cloud\Container\V1\ListClustersRequest + * + * @experimental + */ + public static function buildFromParent(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides, or "-" for all zones. This field has been deprecated and + * replaced by the parent field. + * @type string $parent + * The parent (project and location) where the clusters will be listed. + * Specified in the format `projects/*/locations/*`. + * Location "-" matches all zones and all regions. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides, or "-" for all zones. This field has been deprecated and + * replaced by the parent field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides, or "-" for all zones. This field has been deprecated and + * replaced by the parent field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * The parent (project and location) where the clusters will be listed. + * Specified in the format `projects/*/locations/*`. + * Location "-" matches all zones and all regions. + * + * Generated from protobuf field string parent = 4; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * The parent (project and location) where the clusters will be listed. + * Specified in the format `projects/*/locations/*`. + * Location "-" matches all zones and all regions. + * + * Generated from protobuf field string parent = 4; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListClustersResponse.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListClustersResponse.php new file mode 100644 index 000000000000..4d8a2365a5c0 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListClustersResponse.php @@ -0,0 +1,109 @@ +google.container.v1.ListClustersResponse + */ +class ListClustersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * A list of clusters in the project in the specified zone, or + * across all ones. + * + * Generated from protobuf field repeated .google.container.v1.Cluster clusters = 1; + */ + private $clusters; + /** + * If any zones are listed here, the list of clusters returned + * may be missing those zones. + * + * Generated from protobuf field repeated string missing_zones = 2; + */ + private $missing_zones; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\Container\V1\Cluster>|\Google\Protobuf\Internal\RepeatedField $clusters + * A list of clusters in the project in the specified zone, or + * across all ones. + * @type array|\Google\Protobuf\Internal\RepeatedField $missing_zones + * If any zones are listed here, the list of clusters returned + * may be missing those zones. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * A list of clusters in the project in the specified zone, or + * across all ones. + * + * Generated from protobuf field repeated .google.container.v1.Cluster clusters = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getClusters() + { + return $this->clusters; + } + + /** + * A list of clusters in the project in the specified zone, or + * across all ones. + * + * Generated from protobuf field repeated .google.container.v1.Cluster clusters = 1; + * @param array<\Google\Cloud\Container\V1\Cluster>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setClusters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\Cluster::class); + $this->clusters = $arr; + + return $this; + } + + /** + * If any zones are listed here, the list of clusters returned + * may be missing those zones. + * + * Generated from protobuf field repeated string missing_zones = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMissingZones() + { + return $this->missing_zones; + } + + /** + * If any zones are listed here, the list of clusters returned + * may be missing those zones. + * + * Generated from protobuf field repeated string missing_zones = 2; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMissingZones($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->missing_zones = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsRequest.php new file mode 100644 index 000000000000..28cf9ef5990a --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsRequest.php @@ -0,0 +1,249 @@ +google.container.v1.ListNodePoolsRequest + */ +class ListNodePoolsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the parent + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * The parent (project, location, cluster name) where the node pools will be + * listed. Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string parent = 5; + */ + protected $parent = ''; + + /** + * @param string $projectId Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * @param string $zone Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the parent + * field. + * @param string $clusterId Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the parent field. + * + * @return \Google\Cloud\Container\V1\ListNodePoolsRequest + * + * @experimental + */ + public static function build(string $projectId, string $zone, string $clusterId): self + { + return (new self()) + ->setProjectId($projectId) + ->setZone($zone) + ->setClusterId($clusterId); + } + + /** + * @param string $parent The parent (project, location, cluster name) where the node pools will be + * listed. Specified in the format `projects/*/locations/*/clusters/*`. + * + * @return \Google\Cloud\Container\V1\ListNodePoolsRequest + * + * @experimental + */ + public static function buildFromParent(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the parent + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the parent field. + * @type string $parent + * The parent (project, location, cluster name) where the node pools will be + * listed. Specified in the format `projects/*/locations/*/clusters/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the parent + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the parent + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * The parent (project, location, cluster name) where the node pools will be + * listed. Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string parent = 5; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * The parent (project, location, cluster name) where the node pools will be + * listed. Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string parent = 5; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsResponse.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsResponse.php new file mode 100644 index 000000000000..abf30ec49198 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsResponse.php @@ -0,0 +1,67 @@ +google.container.v1.ListNodePoolsResponse + */ +class ListNodePoolsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * A list of node pools for a cluster. + * + * Generated from protobuf field repeated .google.container.v1.NodePool node_pools = 1; + */ + private $node_pools; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\Container\V1\NodePool>|\Google\Protobuf\Internal\RepeatedField $node_pools + * A list of node pools for a cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * A list of node pools for a cluster. + * + * Generated from protobuf field repeated .google.container.v1.NodePool node_pools = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getNodePools() + { + return $this->node_pools; + } + + /** + * A list of node pools for a cluster. + * + * Generated from protobuf field repeated .google.container.v1.NodePool node_pools = 1; + * @param array<\Google\Cloud\Container\V1\NodePool>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setNodePools($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\NodePool::class); + $this->node_pools = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsRequest.php new file mode 100644 index 000000000000..461d0d27a66c --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsRequest.php @@ -0,0 +1,208 @@ +google.container.v1.ListOperationsRequest + */ +class ListOperationsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) to return + * operations for, or `-` for all zones. This field has been deprecated and + * replaced by the parent field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * The parent (project and location) where the operations will be listed. + * Specified in the format `projects/*/locations/*`. + * Location "-" matches all zones and all regions. + * + * Generated from protobuf field string parent = 4; + */ + protected $parent = ''; + + /** + * @param string $projectId Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * @param string $zone Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) to return + * operations for, or `-` for all zones. This field has been deprecated and + * replaced by the parent field. + * + * @return \Google\Cloud\Container\V1\ListOperationsRequest + * + * @experimental + */ + public static function build(string $projectId, string $zone): self + { + return (new self()) + ->setProjectId($projectId) + ->setZone($zone); + } + + /** + * @param string $parent The parent (project and location) where the operations will be listed. + * Specified in the format `projects/*/locations/*`. + * Location "-" matches all zones and all regions. + * + * @return \Google\Cloud\Container\V1\ListOperationsRequest + * + * @experimental + */ + public static function buildFromParent(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) to return + * operations for, or `-` for all zones. This field has been deprecated and + * replaced by the parent field. + * @type string $parent + * The parent (project and location) where the operations will be listed. + * Specified in the format `projects/*/locations/*`. + * Location "-" matches all zones and all regions. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) to return + * operations for, or `-` for all zones. This field has been deprecated and + * replaced by the parent field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) to return + * operations for, or `-` for all zones. This field has been deprecated and + * replaced by the parent field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * The parent (project and location) where the operations will be listed. + * Specified in the format `projects/*/locations/*`. + * Location "-" matches all zones and all regions. + * + * Generated from protobuf field string parent = 4; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * The parent (project and location) where the operations will be listed. + * Specified in the format `projects/*/locations/*`. + * Location "-" matches all zones and all regions. + * + * Generated from protobuf field string parent = 4; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsResponse.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsResponse.php new file mode 100644 index 000000000000..82eb8e28098f --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsResponse.php @@ -0,0 +1,105 @@ +google.container.v1.ListOperationsResponse + */ +class ListOperationsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * A list of operations in the project in the specified zone. + * + * Generated from protobuf field repeated .google.container.v1.Operation operations = 1; + */ + private $operations; + /** + * If any zones are listed here, the list of operations returned + * may be missing the operations from those zones. + * + * Generated from protobuf field repeated string missing_zones = 2; + */ + private $missing_zones; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\Container\V1\Operation>|\Google\Protobuf\Internal\RepeatedField $operations + * A list of operations in the project in the specified zone. + * @type array|\Google\Protobuf\Internal\RepeatedField $missing_zones + * If any zones are listed here, the list of operations returned + * may be missing the operations from those zones. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * A list of operations in the project in the specified zone. + * + * Generated from protobuf field repeated .google.container.v1.Operation operations = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOperations() + { + return $this->operations; + } + + /** + * A list of operations in the project in the specified zone. + * + * Generated from protobuf field repeated .google.container.v1.Operation operations = 1; + * @param array<\Google\Cloud\Container\V1\Operation>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOperations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\Operation::class); + $this->operations = $arr; + + return $this; + } + + /** + * If any zones are listed here, the list of operations returned + * may be missing the operations from those zones. + * + * Generated from protobuf field repeated string missing_zones = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMissingZones() + { + return $this->missing_zones; + } + + /** + * If any zones are listed here, the list of operations returned + * may be missing the operations from those zones. + * + * Generated from protobuf field repeated string missing_zones = 2; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMissingZones($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->missing_zones = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksRequest.php new file mode 100644 index 000000000000..bae700cc3b00 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksRequest.php @@ -0,0 +1,202 @@ +google.container.v1.ListUsableSubnetworksRequest + */ +class ListUsableSubnetworksRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The parent project where subnetworks are usable. + * Specified in the format `projects/*`. + * + * Generated from protobuf field string parent = 1; + */ + protected $parent = ''; + /** + * Filtering currently only supports equality on the networkProjectId and must + * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` + * is the project which owns the listed subnetworks. This defaults to the + * parent project ID. + * + * Generated from protobuf field string filter = 2; + */ + protected $filter = ''; + /** + * The max number of results per page that should be returned. If the number + * of available results is larger than `page_size`, a `next_page_token` is + * returned which can be used to get the next page of results in subsequent + * requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * + * Generated from protobuf field int32 page_size = 3; + */ + protected $page_size = 0; + /** + * Specifies a page token to use. Set this to the nextPageToken returned by + * previous list requests to get the next page of results. + * + * Generated from protobuf field string page_token = 4; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * The parent project where subnetworks are usable. + * Specified in the format `projects/*`. + * @type string $filter + * Filtering currently only supports equality on the networkProjectId and must + * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` + * is the project which owns the listed subnetworks. This defaults to the + * parent project ID. + * @type int $page_size + * The max number of results per page that should be returned. If the number + * of available results is larger than `page_size`, a `next_page_token` is + * returned which can be used to get the next page of results in subsequent + * requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * @type string $page_token + * Specifies a page token to use. Set this to the nextPageToken returned by + * previous list requests to get the next page of results. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The parent project where subnetworks are usable. + * Specified in the format `projects/*`. + * + * Generated from protobuf field string parent = 1; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * The parent project where subnetworks are usable. + * Specified in the format `projects/*`. + * + * Generated from protobuf field string parent = 1; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Filtering currently only supports equality on the networkProjectId and must + * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` + * is the project which owns the listed subnetworks. This defaults to the + * parent project ID. + * + * Generated from protobuf field string filter = 2; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Filtering currently only supports equality on the networkProjectId and must + * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` + * is the project which owns the listed subnetworks. This defaults to the + * parent project ID. + * + * Generated from protobuf field string filter = 2; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * The max number of results per page that should be returned. If the number + * of available results is larger than `page_size`, a `next_page_token` is + * returned which can be used to get the next page of results in subsequent + * requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * + * Generated from protobuf field int32 page_size = 3; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The max number of results per page that should be returned. If the number + * of available results is larger than `page_size`, a `next_page_token` is + * returned which can be used to get the next page of results in subsequent + * requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * + * Generated from protobuf field int32 page_size = 3; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Specifies a page token to use. Set this to the nextPageToken returned by + * previous list requests to get the next page of results. + * + * Generated from protobuf field string page_token = 4; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Specifies a page token to use. Set this to the nextPageToken returned by + * previous list requests to get the next page of results. + * + * Generated from protobuf field string page_token = 4; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksResponse.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksResponse.php new file mode 100644 index 000000000000..73913d380a2a --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksResponse.php @@ -0,0 +1,114 @@ +google.container.v1.ListUsableSubnetworksResponse + */ +class ListUsableSubnetworksResponse extends \Google\Protobuf\Internal\Message +{ + /** + * A list of usable subnetworks in the specified network project. + * + * Generated from protobuf field repeated .google.container.v1.UsableSubnetwork subnetworks = 1; + */ + private $subnetworks; + /** + * This token allows you to get the next page of results for list requests. + * If the number of results is larger than `page_size`, use the + * `next_page_token` as a value for the query parameter `page_token` in the + * next request. The value will become empty when there are no more pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\Container\V1\UsableSubnetwork>|\Google\Protobuf\Internal\RepeatedField $subnetworks + * A list of usable subnetworks in the specified network project. + * @type string $next_page_token + * This token allows you to get the next page of results for list requests. + * If the number of results is larger than `page_size`, use the + * `next_page_token` as a value for the query parameter `page_token` in the + * next request. The value will become empty when there are no more pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * A list of usable subnetworks in the specified network project. + * + * Generated from protobuf field repeated .google.container.v1.UsableSubnetwork subnetworks = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSubnetworks() + { + return $this->subnetworks; + } + + /** + * A list of usable subnetworks in the specified network project. + * + * Generated from protobuf field repeated .google.container.v1.UsableSubnetwork subnetworks = 1; + * @param array<\Google\Cloud\Container\V1\UsableSubnetwork>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSubnetworks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\UsableSubnetwork::class); + $this->subnetworks = $arr; + + return $this; + } + + /** + * This token allows you to get the next page of results for list requests. + * If the number of results is larger than `page_size`, use the + * `next_page_token` as a value for the query parameter `page_token` in the + * next request. The value will become empty when there are no more pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * This token allows you to get the next page of results for list requests. + * If the number of results is larger than `page_size`, use the + * `next_page_token` as a value for the query parameter `page_token` in the + * next request. The value will become empty when there are no more pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LocalNvmeSsdBlockConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LocalNvmeSsdBlockConfig.php new file mode 100644 index 000000000000..66503b19b89a --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LocalNvmeSsdBlockConfig.php @@ -0,0 +1,124 @@ +google.container.v1.LocalNvmeSsdBlockConfig + */ +class LocalNvmeSsdBlockConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Number of local NVMe SSDs to use. The limit for this value is dependent + * upon the maximum number of disk available on a machine per zone. See: + * https://cloud.google.com/compute/docs/disks/local-ssd + * for more information. + * A zero (or unset) value has different meanings depending on machine type + * being used: + * 1. For pre-Gen3 machines, which support flexible numbers of local ssds, + * zero (or unset) means to disable using local SSDs as ephemeral storage. + * 2. For Gen3 machines which dictate a specific number of local ssds, zero + * (or unset) means to use the default number of local ssds that goes with + * that machine type. For example, for a c3-standard-8-lssd machine, 2 local + * ssds would be provisioned. For c3-standard-8 (which doesn't support local + * ssds), 0 will be provisioned. See + * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds + * for more info. + * + * Generated from protobuf field int32 local_ssd_count = 1; + */ + protected $local_ssd_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $local_ssd_count + * Number of local NVMe SSDs to use. The limit for this value is dependent + * upon the maximum number of disk available on a machine per zone. See: + * https://cloud.google.com/compute/docs/disks/local-ssd + * for more information. + * A zero (or unset) value has different meanings depending on machine type + * being used: + * 1. For pre-Gen3 machines, which support flexible numbers of local ssds, + * zero (or unset) means to disable using local SSDs as ephemeral storage. + * 2. For Gen3 machines which dictate a specific number of local ssds, zero + * (or unset) means to use the default number of local ssds that goes with + * that machine type. For example, for a c3-standard-8-lssd machine, 2 local + * ssds would be provisioned. For c3-standard-8 (which doesn't support local + * ssds), 0 will be provisioned. See + * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds + * for more info. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Number of local NVMe SSDs to use. The limit for this value is dependent + * upon the maximum number of disk available on a machine per zone. See: + * https://cloud.google.com/compute/docs/disks/local-ssd + * for more information. + * A zero (or unset) value has different meanings depending on machine type + * being used: + * 1. For pre-Gen3 machines, which support flexible numbers of local ssds, + * zero (or unset) means to disable using local SSDs as ephemeral storage. + * 2. For Gen3 machines which dictate a specific number of local ssds, zero + * (or unset) means to use the default number of local ssds that goes with + * that machine type. For example, for a c3-standard-8-lssd machine, 2 local + * ssds would be provisioned. For c3-standard-8 (which doesn't support local + * ssds), 0 will be provisioned. See + * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds + * for more info. + * + * Generated from protobuf field int32 local_ssd_count = 1; + * @return int + */ + public function getLocalSsdCount() + { + return $this->local_ssd_count; + } + + /** + * Number of local NVMe SSDs to use. The limit for this value is dependent + * upon the maximum number of disk available on a machine per zone. See: + * https://cloud.google.com/compute/docs/disks/local-ssd + * for more information. + * A zero (or unset) value has different meanings depending on machine type + * being used: + * 1. For pre-Gen3 machines, which support flexible numbers of local ssds, + * zero (or unset) means to disable using local SSDs as ephemeral storage. + * 2. For Gen3 machines which dictate a specific number of local ssds, zero + * (or unset) means to use the default number of local ssds that goes with + * that machine type. For example, for a c3-standard-8-lssd machine, 2 local + * ssds would be provisioned. For c3-standard-8 (which doesn't support local + * ssds), 0 will be provisioned. See + * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds + * for more info. + * + * Generated from protobuf field int32 local_ssd_count = 1; + * @param int $var + * @return $this + */ + public function setLocalSsdCount($var) + { + GPBUtil::checkInt32($var); + $this->local_ssd_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig.php new file mode 100644 index 000000000000..30537335ecb7 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig.php @@ -0,0 +1,67 @@ +google.container.v1.LoggingComponentConfig + */ +class LoggingComponentConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Select components to collect logs. An empty set would disable all logging. + * + * Generated from protobuf field repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + */ + private $enable_components; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $enable_components + * Select components to collect logs. An empty set would disable all logging. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Select components to collect logs. An empty set would disable all logging. + * + * Generated from protobuf field repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEnableComponents() + { + return $this->enable_components; + } + + /** + * Select components to collect logs. An empty set would disable all logging. + * + * Generated from protobuf field repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEnableComponents($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Container\V1\LoggingComponentConfig\Component::class); + $this->enable_components = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig/Component.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig/Component.php new file mode 100644 index 000000000000..b8e91d33ba74 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig/Component.php @@ -0,0 +1,85 @@ +google.container.v1.LoggingComponentConfig.Component + */ +class Component +{ + /** + * Default value. This shouldn't be used. + * + * Generated from protobuf enum COMPONENT_UNSPECIFIED = 0; + */ + const COMPONENT_UNSPECIFIED = 0; + /** + * system components + * + * Generated from protobuf enum SYSTEM_COMPONENTS = 1; + */ + const SYSTEM_COMPONENTS = 1; + /** + * workloads + * + * Generated from protobuf enum WORKLOADS = 2; + */ + const WORKLOADS = 2; + /** + * kube-apiserver + * + * Generated from protobuf enum APISERVER = 3; + */ + const APISERVER = 3; + /** + * kube-scheduler + * + * Generated from protobuf enum SCHEDULER = 4; + */ + const SCHEDULER = 4; + /** + * kube-controller-manager + * + * Generated from protobuf enum CONTROLLER_MANAGER = 5; + */ + const CONTROLLER_MANAGER = 5; + + private static $valueToName = [ + self::COMPONENT_UNSPECIFIED => 'COMPONENT_UNSPECIFIED', + self::SYSTEM_COMPONENTS => 'SYSTEM_COMPONENTS', + self::WORKLOADS => 'WORKLOADS', + self::APISERVER => 'APISERVER', + self::SCHEDULER => 'SCHEDULER', + self::CONTROLLER_MANAGER => 'CONTROLLER_MANAGER', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Component::class, \Google\Cloud\Container\V1\LoggingComponentConfig_Component::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingConfig.php new file mode 100644 index 000000000000..19c906a114cc --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingConfig.php @@ -0,0 +1,77 @@ +google.container.v1.LoggingConfig + */ +class LoggingConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Logging components configuration + * + * Generated from protobuf field .google.container.v1.LoggingComponentConfig component_config = 1; + */ + protected $component_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Container\V1\LoggingComponentConfig $component_config + * Logging components configuration + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Logging components configuration + * + * Generated from protobuf field .google.container.v1.LoggingComponentConfig component_config = 1; + * @return \Google\Cloud\Container\V1\LoggingComponentConfig|null + */ + public function getComponentConfig() + { + return $this->component_config; + } + + public function hasComponentConfig() + { + return isset($this->component_config); + } + + public function clearComponentConfig() + { + unset($this->component_config); + } + + /** + * Logging components configuration + * + * Generated from protobuf field .google.container.v1.LoggingComponentConfig component_config = 1; + * @param \Google\Cloud\Container\V1\LoggingComponentConfig $var + * @return $this + */ + public function setComponentConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LoggingComponentConfig::class); + $this->component_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig.php new file mode 100644 index 000000000000..1121954e01e5 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig.php @@ -0,0 +1,67 @@ +google.container.v1.LoggingVariantConfig + */ +class LoggingVariantConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Logging variant deployed on nodes. + * + * Generated from protobuf field .google.container.v1.LoggingVariantConfig.Variant variant = 1; + */ + protected $variant = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $variant + * Logging variant deployed on nodes. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Logging variant deployed on nodes. + * + * Generated from protobuf field .google.container.v1.LoggingVariantConfig.Variant variant = 1; + * @return int + */ + public function getVariant() + { + return $this->variant; + } + + /** + * Logging variant deployed on nodes. + * + * Generated from protobuf field .google.container.v1.LoggingVariantConfig.Variant variant = 1; + * @param int $var + * @return $this + */ + public function setVariant($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\LoggingVariantConfig\Variant::class); + $this->variant = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig/Variant.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig/Variant.php new file mode 100644 index 000000000000..dbff8651edd2 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig/Variant.php @@ -0,0 +1,68 @@ +google.container.v1.LoggingVariantConfig.Variant + */ +class Variant +{ + /** + * Default value. This shouldn't be used. + * + * Generated from protobuf enum VARIANT_UNSPECIFIED = 0; + */ + const VARIANT_UNSPECIFIED = 0; + /** + * default logging variant. + * + * Generated from protobuf enum DEFAULT = 1; + */ + const PBDEFAULT = 1; + /** + * maximum logging throughput variant. + * + * Generated from protobuf enum MAX_THROUGHPUT = 2; + */ + const MAX_THROUGHPUT = 2; + + private static $valueToName = [ + self::VARIANT_UNSPECIFIED => 'VARIANT_UNSPECIFIED', + self::PBDEFAULT => 'DEFAULT', + self::MAX_THROUGHPUT => 'MAX_THROUGHPUT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + $pbconst = __CLASS__. '::PB' . strtoupper($name); + if (!defined($pbconst)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($pbconst); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Variant::class, \Google\Cloud\Container\V1\LoggingVariantConfig_Variant::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceExclusionOptions.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceExclusionOptions.php new file mode 100644 index 000000000000..8c5ebd1447bd --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceExclusionOptions.php @@ -0,0 +1,71 @@ +google.container.v1.MaintenanceExclusionOptions + */ +class MaintenanceExclusionOptions extends \Google\Protobuf\Internal\Message +{ + /** + * Scope specifies the upgrade scope which upgrades are blocked by the + * exclusion. + * + * Generated from protobuf field .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; + */ + protected $scope = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $scope + * Scope specifies the upgrade scope which upgrades are blocked by the + * exclusion. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Scope specifies the upgrade scope which upgrades are blocked by the + * exclusion. + * + * Generated from protobuf field .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; + * @return int + */ + public function getScope() + { + return $this->scope; + } + + /** + * Scope specifies the upgrade scope which upgrades are blocked by the + * exclusion. + * + * Generated from protobuf field .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; + * @param int $var + * @return $this + */ + public function setScope($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\MaintenanceExclusionOptions\Scope::class); + $this->scope = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceExclusionOptions/Scope.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceExclusionOptions/Scope.php new file mode 100644 index 000000000000..c7d1639c5828 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceExclusionOptions/Scope.php @@ -0,0 +1,69 @@ +google.container.v1.MaintenanceExclusionOptions.Scope + */ +class Scope +{ + /** + * NO_UPGRADES excludes all upgrades, including patch upgrades and minor + * upgrades across control planes and nodes. This is the default exclusion + * behavior. + * + * Generated from protobuf enum NO_UPGRADES = 0; + */ + const NO_UPGRADES = 0; + /** + * NO_MINOR_UPGRADES excludes all minor upgrades for the cluster, only + * patches are allowed. + * + * Generated from protobuf enum NO_MINOR_UPGRADES = 1; + */ + const NO_MINOR_UPGRADES = 1; + /** + * NO_MINOR_OR_NODE_UPGRADES excludes all minor upgrades for the cluster, + * and also exclude all node pool upgrades. Only control + * plane patches are allowed. + * + * Generated from protobuf enum NO_MINOR_OR_NODE_UPGRADES = 2; + */ + const NO_MINOR_OR_NODE_UPGRADES = 2; + + private static $valueToName = [ + self::NO_UPGRADES => 'NO_UPGRADES', + self::NO_MINOR_UPGRADES => 'NO_MINOR_UPGRADES', + self::NO_MINOR_OR_NODE_UPGRADES => 'NO_MINOR_OR_NODE_UPGRADES', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Scope::class, \Google\Cloud\Container\V1\MaintenanceExclusionOptions_Scope::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenancePolicy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenancePolicy.php new file mode 100644 index 000000000000..b804aa0d803b --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenancePolicy.php @@ -0,0 +1,127 @@ +google.container.v1.MaintenancePolicy + */ +class MaintenancePolicy extends \Google\Protobuf\Internal\Message +{ + /** + * Specifies the maintenance window in which maintenance may be performed. + * + * Generated from protobuf field .google.container.v1.MaintenanceWindow window = 1; + */ + protected $window = null; + /** + * A hash identifying the version of this policy, so that updates to fields of + * the policy won't accidentally undo intermediate changes (and so that users + * of the API unaware of some fields won't accidentally remove other fields). + * Make a `get()` request to the cluster to get the current + * resource version and include it with requests to set the policy. + * + * Generated from protobuf field string resource_version = 3; + */ + protected $resource_version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Container\V1\MaintenanceWindow $window + * Specifies the maintenance window in which maintenance may be performed. + * @type string $resource_version + * A hash identifying the version of this policy, so that updates to fields of + * the policy won't accidentally undo intermediate changes (and so that users + * of the API unaware of some fields won't accidentally remove other fields). + * Make a `get()` request to the cluster to get the current + * resource version and include it with requests to set the policy. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Specifies the maintenance window in which maintenance may be performed. + * + * Generated from protobuf field .google.container.v1.MaintenanceWindow window = 1; + * @return \Google\Cloud\Container\V1\MaintenanceWindow|null + */ + public function getWindow() + { + return $this->window; + } + + public function hasWindow() + { + return isset($this->window); + } + + public function clearWindow() + { + unset($this->window); + } + + /** + * Specifies the maintenance window in which maintenance may be performed. + * + * Generated from protobuf field .google.container.v1.MaintenanceWindow window = 1; + * @param \Google\Cloud\Container\V1\MaintenanceWindow $var + * @return $this + */ + public function setWindow($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MaintenanceWindow::class); + $this->window = $var; + + return $this; + } + + /** + * A hash identifying the version of this policy, so that updates to fields of + * the policy won't accidentally undo intermediate changes (and so that users + * of the API unaware of some fields won't accidentally remove other fields). + * Make a `get()` request to the cluster to get the current + * resource version and include it with requests to set the policy. + * + * Generated from protobuf field string resource_version = 3; + * @return string + */ + public function getResourceVersion() + { + return $this->resource_version; + } + + /** + * A hash identifying the version of this policy, so that updates to fields of + * the policy won't accidentally undo intermediate changes (and so that users + * of the API unaware of some fields won't accidentally remove other fields). + * Make a `get()` request to the cluster to get the current + * resource version and include it with requests to set the policy. + * + * Generated from protobuf field string resource_version = 3; + * @param string $var + * @return $this + */ + public function setResourceVersion($var) + { + GPBUtil::checkString($var, True); + $this->resource_version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceWindow.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceWindow.php new file mode 100644 index 000000000000..6d7de92a2b52 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceWindow.php @@ -0,0 +1,152 @@ +google.container.v1.MaintenanceWindow + */ +class MaintenanceWindow extends \Google\Protobuf\Internal\Message +{ + /** + * Exceptions to maintenance window. Non-emergency maintenance should not + * occur in these windows. + * + * Generated from protobuf field map maintenance_exclusions = 4; + */ + private $maintenance_exclusions; + protected $policy; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Container\V1\DailyMaintenanceWindow $daily_maintenance_window + * DailyMaintenanceWindow specifies a daily maintenance operation window. + * @type \Google\Cloud\Container\V1\RecurringTimeWindow $recurring_window + * RecurringWindow specifies some number of recurring time periods for + * maintenance to occur. The time windows may be overlapping. If no + * maintenance windows are set, maintenance can occur at any time. + * @type array|\Google\Protobuf\Internal\MapField $maintenance_exclusions + * Exceptions to maintenance window. Non-emergency maintenance should not + * occur in these windows. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * DailyMaintenanceWindow specifies a daily maintenance operation window. + * + * Generated from protobuf field .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; + * @return \Google\Cloud\Container\V1\DailyMaintenanceWindow|null + */ + public function getDailyMaintenanceWindow() + { + return $this->readOneof(2); + } + + public function hasDailyMaintenanceWindow() + { + return $this->hasOneof(2); + } + + /** + * DailyMaintenanceWindow specifies a daily maintenance operation window. + * + * Generated from protobuf field .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; + * @param \Google\Cloud\Container\V1\DailyMaintenanceWindow $var + * @return $this + */ + public function setDailyMaintenanceWindow($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\DailyMaintenanceWindow::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * RecurringWindow specifies some number of recurring time periods for + * maintenance to occur. The time windows may be overlapping. If no + * maintenance windows are set, maintenance can occur at any time. + * + * Generated from protobuf field .google.container.v1.RecurringTimeWindow recurring_window = 3; + * @return \Google\Cloud\Container\V1\RecurringTimeWindow|null + */ + public function getRecurringWindow() + { + return $this->readOneof(3); + } + + public function hasRecurringWindow() + { + return $this->hasOneof(3); + } + + /** + * RecurringWindow specifies some number of recurring time periods for + * maintenance to occur. The time windows may be overlapping. If no + * maintenance windows are set, maintenance can occur at any time. + * + * Generated from protobuf field .google.container.v1.RecurringTimeWindow recurring_window = 3; + * @param \Google\Cloud\Container\V1\RecurringTimeWindow $var + * @return $this + */ + public function setRecurringWindow($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\RecurringTimeWindow::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Exceptions to maintenance window. Non-emergency maintenance should not + * occur in these windows. + * + * Generated from protobuf field map maintenance_exclusions = 4; + * @return \Google\Protobuf\Internal\MapField + */ + public function getMaintenanceExclusions() + { + return $this->maintenance_exclusions; + } + + /** + * Exceptions to maintenance window. Non-emergency maintenance should not + * occur in these windows. + * + * Generated from protobuf field map maintenance_exclusions = 4; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setMaintenanceExclusions($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\TimeWindow::class); + $this->maintenance_exclusions = $arr; + + return $this; + } + + /** + * @return string + */ + public function getPolicy() + { + return $this->whichOneof("policy"); + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ManagedPrometheusConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ManagedPrometheusConfig.php new file mode 100644 index 000000000000..f4876f921559 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ManagedPrometheusConfig.php @@ -0,0 +1,68 @@ +google.container.v1.ManagedPrometheusConfig + */ +class ManagedPrometheusConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Enable Managed Collection. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Enable Managed Collection. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Enable Managed Collection. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Enable Managed Collection. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuth.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuth.php new file mode 100644 index 000000000000..c00aa522ff6a --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuth.php @@ -0,0 +1,331 @@ +google.container.v1.MasterAuth + */ +class MasterAuth extends \Google\Protobuf\Internal\Message +{ + /** + * The username to use for HTTP basic authentication to the master endpoint. + * For clusters v1.6.0 and later, basic authentication can be disabled by + * leaving username unspecified (or setting it to the empty string). + * Warning: basic authentication is deprecated, and will be removed in GKE + * control plane versions 1.19 and newer. For a list of recommended + * authentication methods, see: + * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication + * + * Generated from protobuf field string username = 1 [deprecated = true]; + * @deprecated + */ + protected $username = ''; + /** + * The password to use for HTTP basic authentication to the master endpoint. + * Because the master endpoint is open to the Internet, you should create a + * strong password. If a password is provided for cluster creation, username + * must be non-empty. + * Warning: basic authentication is deprecated, and will be removed in GKE + * control plane versions 1.19 and newer. For a list of recommended + * authentication methods, see: + * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication + * + * Generated from protobuf field string password = 2 [deprecated = true]; + * @deprecated + */ + protected $password = ''; + /** + * Configuration for client certificate authentication on the cluster. For + * clusters before v1.12, if no configuration is specified, a client + * certificate is issued. + * + * Generated from protobuf field .google.container.v1.ClientCertificateConfig client_certificate_config = 3; + */ + protected $client_certificate_config = null; + /** + * [Output only] Base64-encoded public certificate that is the root of + * trust for the cluster. + * + * Generated from protobuf field string cluster_ca_certificate = 100; + */ + protected $cluster_ca_certificate = ''; + /** + * [Output only] Base64-encoded public certificate used by clients to + * authenticate to the cluster endpoint. + * + * Generated from protobuf field string client_certificate = 101; + */ + protected $client_certificate = ''; + /** + * [Output only] Base64-encoded private key used by clients to authenticate + * to the cluster endpoint. + * + * Generated from protobuf field string client_key = 102; + */ + protected $client_key = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $username + * The username to use for HTTP basic authentication to the master endpoint. + * For clusters v1.6.0 and later, basic authentication can be disabled by + * leaving username unspecified (or setting it to the empty string). + * Warning: basic authentication is deprecated, and will be removed in GKE + * control plane versions 1.19 and newer. For a list of recommended + * authentication methods, see: + * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication + * @type string $password + * The password to use for HTTP basic authentication to the master endpoint. + * Because the master endpoint is open to the Internet, you should create a + * strong password. If a password is provided for cluster creation, username + * must be non-empty. + * Warning: basic authentication is deprecated, and will be removed in GKE + * control plane versions 1.19 and newer. For a list of recommended + * authentication methods, see: + * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication + * @type \Google\Cloud\Container\V1\ClientCertificateConfig $client_certificate_config + * Configuration for client certificate authentication on the cluster. For + * clusters before v1.12, if no configuration is specified, a client + * certificate is issued. + * @type string $cluster_ca_certificate + * [Output only] Base64-encoded public certificate that is the root of + * trust for the cluster. + * @type string $client_certificate + * [Output only] Base64-encoded public certificate used by clients to + * authenticate to the cluster endpoint. + * @type string $client_key + * [Output only] Base64-encoded private key used by clients to authenticate + * to the cluster endpoint. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The username to use for HTTP basic authentication to the master endpoint. + * For clusters v1.6.0 and later, basic authentication can be disabled by + * leaving username unspecified (or setting it to the empty string). + * Warning: basic authentication is deprecated, and will be removed in GKE + * control plane versions 1.19 and newer. For a list of recommended + * authentication methods, see: + * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication + * + * Generated from protobuf field string username = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getUsername() + { + @trigger_error('username is deprecated.', E_USER_DEPRECATED); + return $this->username; + } + + /** + * The username to use for HTTP basic authentication to the master endpoint. + * For clusters v1.6.0 and later, basic authentication can be disabled by + * leaving username unspecified (or setting it to the empty string). + * Warning: basic authentication is deprecated, and will be removed in GKE + * control plane versions 1.19 and newer. For a list of recommended + * authentication methods, see: + * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication + * + * Generated from protobuf field string username = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setUsername($var) + { + @trigger_error('username is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->username = $var; + + return $this; + } + + /** + * The password to use for HTTP basic authentication to the master endpoint. + * Because the master endpoint is open to the Internet, you should create a + * strong password. If a password is provided for cluster creation, username + * must be non-empty. + * Warning: basic authentication is deprecated, and will be removed in GKE + * control plane versions 1.19 and newer. For a list of recommended + * authentication methods, see: + * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication + * + * Generated from protobuf field string password = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getPassword() + { + @trigger_error('password is deprecated.', E_USER_DEPRECATED); + return $this->password; + } + + /** + * The password to use for HTTP basic authentication to the master endpoint. + * Because the master endpoint is open to the Internet, you should create a + * strong password. If a password is provided for cluster creation, username + * must be non-empty. + * Warning: basic authentication is deprecated, and will be removed in GKE + * control plane versions 1.19 and newer. For a list of recommended + * authentication methods, see: + * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication + * + * Generated from protobuf field string password = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setPassword($var) + { + @trigger_error('password is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->password = $var; + + return $this; + } + + /** + * Configuration for client certificate authentication on the cluster. For + * clusters before v1.12, if no configuration is specified, a client + * certificate is issued. + * + * Generated from protobuf field .google.container.v1.ClientCertificateConfig client_certificate_config = 3; + * @return \Google\Cloud\Container\V1\ClientCertificateConfig|null + */ + public function getClientCertificateConfig() + { + return $this->client_certificate_config; + } + + public function hasClientCertificateConfig() + { + return isset($this->client_certificate_config); + } + + public function clearClientCertificateConfig() + { + unset($this->client_certificate_config); + } + + /** + * Configuration for client certificate authentication on the cluster. For + * clusters before v1.12, if no configuration is specified, a client + * certificate is issued. + * + * Generated from protobuf field .google.container.v1.ClientCertificateConfig client_certificate_config = 3; + * @param \Google\Cloud\Container\V1\ClientCertificateConfig $var + * @return $this + */ + public function setClientCertificateConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ClientCertificateConfig::class); + $this->client_certificate_config = $var; + + return $this; + } + + /** + * [Output only] Base64-encoded public certificate that is the root of + * trust for the cluster. + * + * Generated from protobuf field string cluster_ca_certificate = 100; + * @return string + */ + public function getClusterCaCertificate() + { + return $this->cluster_ca_certificate; + } + + /** + * [Output only] Base64-encoded public certificate that is the root of + * trust for the cluster. + * + * Generated from protobuf field string cluster_ca_certificate = 100; + * @param string $var + * @return $this + */ + public function setClusterCaCertificate($var) + { + GPBUtil::checkString($var, True); + $this->cluster_ca_certificate = $var; + + return $this; + } + + /** + * [Output only] Base64-encoded public certificate used by clients to + * authenticate to the cluster endpoint. + * + * Generated from protobuf field string client_certificate = 101; + * @return string + */ + public function getClientCertificate() + { + return $this->client_certificate; + } + + /** + * [Output only] Base64-encoded public certificate used by clients to + * authenticate to the cluster endpoint. + * + * Generated from protobuf field string client_certificate = 101; + * @param string $var + * @return $this + */ + public function setClientCertificate($var) + { + GPBUtil::checkString($var, True); + $this->client_certificate = $var; + + return $this; + } + + /** + * [Output only] Base64-encoded private key used by clients to authenticate + * to the cluster endpoint. + * + * Generated from protobuf field string client_key = 102; + * @return string + */ + public function getClientKey() + { + return $this->client_key; + } + + /** + * [Output only] Base64-encoded private key used by clients to authenticate + * to the cluster endpoint. + * + * Generated from protobuf field string client_key = 102; + * @param string $var + * @return $this + */ + public function setClientKey($var) + { + GPBUtil::checkString($var, True); + $this->client_key = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig.php new file mode 100644 index 000000000000..f2d4ee45311c --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig.php @@ -0,0 +1,152 @@ +google.container.v1.MasterAuthorizedNetworksConfig + */ +class MasterAuthorizedNetworksConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Whether or not master authorized networks is enabled. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + /** + * cidr_blocks define up to 50 external networks that could access + * Kubernetes master through HTTPS. + * + * Generated from protobuf field repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + private $cidr_blocks; + /** + * Whether master is accessbile via Google Compute Engine Public IP addresses. + * + * Generated from protobuf field optional bool gcp_public_cidrs_access_enabled = 3; + */ + protected $gcp_public_cidrs_access_enabled = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Whether or not master authorized networks is enabled. + * @type array<\Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig\CidrBlock>|\Google\Protobuf\Internal\RepeatedField $cidr_blocks + * cidr_blocks define up to 50 external networks that could access + * Kubernetes master through HTTPS. + * @type bool $gcp_public_cidrs_access_enabled + * Whether master is accessbile via Google Compute Engine Public IP addresses. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether or not master authorized networks is enabled. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Whether or not master authorized networks is enabled. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + + /** + * cidr_blocks define up to 50 external networks that could access + * Kubernetes master through HTTPS. + * + * Generated from protobuf field repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCidrBlocks() + { + return $this->cidr_blocks; + } + + /** + * cidr_blocks define up to 50 external networks that could access + * Kubernetes master through HTTPS. + * + * Generated from protobuf field repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * @param array<\Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig\CidrBlock>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCidrBlocks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig\CidrBlock::class); + $this->cidr_blocks = $arr; + + return $this; + } + + /** + * Whether master is accessbile via Google Compute Engine Public IP addresses. + * + * Generated from protobuf field optional bool gcp_public_cidrs_access_enabled = 3; + * @return bool + */ + public function getGcpPublicCidrsAccessEnabled() + { + return isset($this->gcp_public_cidrs_access_enabled) ? $this->gcp_public_cidrs_access_enabled : false; + } + + public function hasGcpPublicCidrsAccessEnabled() + { + return isset($this->gcp_public_cidrs_access_enabled); + } + + public function clearGcpPublicCidrsAccessEnabled() + { + unset($this->gcp_public_cidrs_access_enabled); + } + + /** + * Whether master is accessbile via Google Compute Engine Public IP addresses. + * + * Generated from protobuf field optional bool gcp_public_cidrs_access_enabled = 3; + * @param bool $var + * @return $this + */ + public function setGcpPublicCidrsAccessEnabled($var) + { + GPBUtil::checkBool($var); + $this->gcp_public_cidrs_access_enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig/CidrBlock.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig/CidrBlock.php new file mode 100644 index 000000000000..8ab57c26dfce --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig/CidrBlock.php @@ -0,0 +1,104 @@ +google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock + */ +class CidrBlock extends \Google\Protobuf\Internal\Message +{ + /** + * display_name is an optional field for users to identify CIDR blocks. + * + * Generated from protobuf field string display_name = 1; + */ + protected $display_name = ''; + /** + * cidr_block must be specified in CIDR notation. + * + * Generated from protobuf field string cidr_block = 2; + */ + protected $cidr_block = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $display_name + * display_name is an optional field for users to identify CIDR blocks. + * @type string $cidr_block + * cidr_block must be specified in CIDR notation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * display_name is an optional field for users to identify CIDR blocks. + * + * Generated from protobuf field string display_name = 1; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * display_name is an optional field for users to identify CIDR blocks. + * + * Generated from protobuf field string display_name = 1; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * cidr_block must be specified in CIDR notation. + * + * Generated from protobuf field string cidr_block = 2; + * @return string + */ + public function getCidrBlock() + { + return $this->cidr_block; + } + + /** + * cidr_block must be specified in CIDR notation. + * + * Generated from protobuf field string cidr_block = 2; + * @param string $var + * @return $this + */ + public function setCidrBlock($var) + { + GPBUtil::checkString($var, True); + $this->cidr_block = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CidrBlock::class, \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig_CidrBlock::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaxPodsConstraint.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaxPodsConstraint.php new file mode 100644 index 000000000000..b085ff78a2c2 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaxPodsConstraint.php @@ -0,0 +1,67 @@ +google.container.v1.MaxPodsConstraint + */ +class MaxPodsConstraint extends \Google\Protobuf\Internal\Message +{ + /** + * Constraint enforced on the max num of pods per node. + * + * Generated from protobuf field int64 max_pods_per_node = 1; + */ + protected $max_pods_per_node = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $max_pods_per_node + * Constraint enforced on the max num of pods per node. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Constraint enforced on the max num of pods per node. + * + * Generated from protobuf field int64 max_pods_per_node = 1; + * @return int|string + */ + public function getMaxPodsPerNode() + { + return $this->max_pods_per_node; + } + + /** + * Constraint enforced on the max num of pods per node. + * + * Generated from protobuf field int64 max_pods_per_node = 1; + * @param int|string $var + * @return $this + */ + public function setMaxPodsPerNode($var) + { + GPBUtil::checkInt64($var); + $this->max_pods_per_node = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MeshCertificates.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MeshCertificates.php new file mode 100644 index 000000000000..ba761de84ac4 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MeshCertificates.php @@ -0,0 +1,140 @@ +google.container.v1.MeshCertificates + */ +class MeshCertificates extends \Google\Protobuf\Internal\Message +{ + /** + * enable_certificates controls issuance of workload mTLS certificates. + * If set, the GKE Workload Identity Certificates controller and node agent + * will be deployed in the cluster, which can then be configured by creating a + * WorkloadCertificateConfig Custom Resource. + * Requires Workload Identity + * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool] + * must be non-empty). + * + * Generated from protobuf field .google.protobuf.BoolValue enable_certificates = 1; + */ + protected $enable_certificates = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\BoolValue $enable_certificates + * enable_certificates controls issuance of workload mTLS certificates. + * If set, the GKE Workload Identity Certificates controller and node agent + * will be deployed in the cluster, which can then be configured by creating a + * WorkloadCertificateConfig Custom Resource. + * Requires Workload Identity + * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool] + * must be non-empty). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * enable_certificates controls issuance of workload mTLS certificates. + * If set, the GKE Workload Identity Certificates controller and node agent + * will be deployed in the cluster, which can then be configured by creating a + * WorkloadCertificateConfig Custom Resource. + * Requires Workload Identity + * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool] + * must be non-empty). + * + * Generated from protobuf field .google.protobuf.BoolValue enable_certificates = 1; + * @return \Google\Protobuf\BoolValue|null + */ + public function getEnableCertificates() + { + return $this->enable_certificates; + } + + public function hasEnableCertificates() + { + return isset($this->enable_certificates); + } + + public function clearEnableCertificates() + { + unset($this->enable_certificates); + } + + /** + * Returns the unboxed value from getEnableCertificates() + + * enable_certificates controls issuance of workload mTLS certificates. + * If set, the GKE Workload Identity Certificates controller and node agent + * will be deployed in the cluster, which can then be configured by creating a + * WorkloadCertificateConfig Custom Resource. + * Requires Workload Identity + * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool] + * must be non-empty). + * + * Generated from protobuf field .google.protobuf.BoolValue enable_certificates = 1; + * @return bool|null + */ + public function getEnableCertificatesUnwrapped() + { + return $this->readWrapperValue("enable_certificates"); + } + + /** + * enable_certificates controls issuance of workload mTLS certificates. + * If set, the GKE Workload Identity Certificates controller and node agent + * will be deployed in the cluster, which can then be configured by creating a + * WorkloadCertificateConfig Custom Resource. + * Requires Workload Identity + * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool] + * must be non-empty). + * + * Generated from protobuf field .google.protobuf.BoolValue enable_certificates = 1; + * @param \Google\Protobuf\BoolValue $var + * @return $this + */ + public function setEnableCertificates($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); + $this->enable_certificates = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. + + * enable_certificates controls issuance of workload mTLS certificates. + * If set, the GKE Workload Identity Certificates controller and node agent + * will be deployed in the cluster, which can then be configured by creating a + * WorkloadCertificateConfig Custom Resource. + * Requires Workload Identity + * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool] + * must be non-empty). + * + * Generated from protobuf field .google.protobuf.BoolValue enable_certificates = 1; + * @param bool|null $var + * @return $this + */ + public function setEnableCertificatesUnwrapped($var) + { + $this->writeWrapperValue("enable_certificates", $var); + return $this;} + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringComponentConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringComponentConfig.php new file mode 100644 index 000000000000..38e5ca512685 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringComponentConfig.php @@ -0,0 +1,71 @@ +google.container.v1.MonitoringComponentConfig + */ +class MonitoringComponentConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Select components to collect metrics. An empty set would disable all + * monitoring. + * + * Generated from protobuf field repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + */ + private $enable_components; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $enable_components + * Select components to collect metrics. An empty set would disable all + * monitoring. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Select components to collect metrics. An empty set would disable all + * monitoring. + * + * Generated from protobuf field repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEnableComponents() + { + return $this->enable_components; + } + + /** + * Select components to collect metrics. An empty set would disable all + * monitoring. + * + * Generated from protobuf field repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEnableComponents($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Container\V1\MonitoringComponentConfig\Component::class); + $this->enable_components = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringComponentConfig/Component.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringComponentConfig/Component.php new file mode 100644 index 000000000000..afcbfb191c68 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringComponentConfig/Component.php @@ -0,0 +1,120 @@ +google.container.v1.MonitoringComponentConfig.Component + */ +class Component +{ + /** + * Default value. This shouldn't be used. + * + * Generated from protobuf enum COMPONENT_UNSPECIFIED = 0; + */ + const COMPONENT_UNSPECIFIED = 0; + /** + * system components + * + * Generated from protobuf enum SYSTEM_COMPONENTS = 1; + */ + const SYSTEM_COMPONENTS = 1; + /** + * kube-apiserver + * + * Generated from protobuf enum APISERVER = 3; + */ + const APISERVER = 3; + /** + * kube-scheduler + * + * Generated from protobuf enum SCHEDULER = 4; + */ + const SCHEDULER = 4; + /** + * kube-controller-manager + * + * Generated from protobuf enum CONTROLLER_MANAGER = 5; + */ + const CONTROLLER_MANAGER = 5; + /** + * Storage + * + * Generated from protobuf enum STORAGE = 7; + */ + const STORAGE = 7; + /** + * Horizontal Pod Autoscaling + * + * Generated from protobuf enum HPA = 8; + */ + const HPA = 8; + /** + * Pod + * + * Generated from protobuf enum POD = 9; + */ + const POD = 9; + /** + * DaemonSet + * + * Generated from protobuf enum DAEMONSET = 10; + */ + const DAEMONSET = 10; + /** + * Deployment + * + * Generated from protobuf enum DEPLOYMENT = 11; + */ + const DEPLOYMENT = 11; + /** + * Statefulset + * + * Generated from protobuf enum STATEFULSET = 12; + */ + const STATEFULSET = 12; + + private static $valueToName = [ + self::COMPONENT_UNSPECIFIED => 'COMPONENT_UNSPECIFIED', + self::SYSTEM_COMPONENTS => 'SYSTEM_COMPONENTS', + self::APISERVER => 'APISERVER', + self::SCHEDULER => 'SCHEDULER', + self::CONTROLLER_MANAGER => 'CONTROLLER_MANAGER', + self::STORAGE => 'STORAGE', + self::HPA => 'HPA', + self::POD => 'POD', + self::DAEMONSET => 'DAEMONSET', + self::DEPLOYMENT => 'DEPLOYMENT', + self::STATEFULSET => 'STATEFULSET', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Component::class, \Google\Cloud\Container\V1\MonitoringComponentConfig_Component::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringConfig.php new file mode 100644 index 000000000000..114215b5d699 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringConfig.php @@ -0,0 +1,169 @@ +google.container.v1.MonitoringConfig + */ +class MonitoringConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Monitoring components configuration + * + * Generated from protobuf field .google.container.v1.MonitoringComponentConfig component_config = 1; + */ + protected $component_config = null; + /** + * Enable Google Cloud Managed Service for Prometheus + * in the cluster. + * + * Generated from protobuf field .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + protected $managed_prometheus_config = null; + /** + * Configuration of Advanced Datapath Observability features. + * + * Generated from protobuf field .google.container.v1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; + */ + protected $advanced_datapath_observability_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Container\V1\MonitoringComponentConfig $component_config + * Monitoring components configuration + * @type \Google\Cloud\Container\V1\ManagedPrometheusConfig $managed_prometheus_config + * Enable Google Cloud Managed Service for Prometheus + * in the cluster. + * @type \Google\Cloud\Container\V1\AdvancedDatapathObservabilityConfig $advanced_datapath_observability_config + * Configuration of Advanced Datapath Observability features. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Monitoring components configuration + * + * Generated from protobuf field .google.container.v1.MonitoringComponentConfig component_config = 1; + * @return \Google\Cloud\Container\V1\MonitoringComponentConfig|null + */ + public function getComponentConfig() + { + return $this->component_config; + } + + public function hasComponentConfig() + { + return isset($this->component_config); + } + + public function clearComponentConfig() + { + unset($this->component_config); + } + + /** + * Monitoring components configuration + * + * Generated from protobuf field .google.container.v1.MonitoringComponentConfig component_config = 1; + * @param \Google\Cloud\Container\V1\MonitoringComponentConfig $var + * @return $this + */ + public function setComponentConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MonitoringComponentConfig::class); + $this->component_config = $var; + + return $this; + } + + /** + * Enable Google Cloud Managed Service for Prometheus + * in the cluster. + * + * Generated from protobuf field .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + * @return \Google\Cloud\Container\V1\ManagedPrometheusConfig|null + */ + public function getManagedPrometheusConfig() + { + return $this->managed_prometheus_config; + } + + public function hasManagedPrometheusConfig() + { + return isset($this->managed_prometheus_config); + } + + public function clearManagedPrometheusConfig() + { + unset($this->managed_prometheus_config); + } + + /** + * Enable Google Cloud Managed Service for Prometheus + * in the cluster. + * + * Generated from protobuf field .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + * @param \Google\Cloud\Container\V1\ManagedPrometheusConfig $var + * @return $this + */ + public function setManagedPrometheusConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ManagedPrometheusConfig::class); + $this->managed_prometheus_config = $var; + + return $this; + } + + /** + * Configuration of Advanced Datapath Observability features. + * + * Generated from protobuf field .google.container.v1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; + * @return \Google\Cloud\Container\V1\AdvancedDatapathObservabilityConfig|null + */ + public function getAdvancedDatapathObservabilityConfig() + { + return $this->advanced_datapath_observability_config; + } + + public function hasAdvancedDatapathObservabilityConfig() + { + return isset($this->advanced_datapath_observability_config); + } + + public function clearAdvancedDatapathObservabilityConfig() + { + unset($this->advanced_datapath_observability_config); + } + + /** + * Configuration of Advanced Datapath Observability features. + * + * Generated from protobuf field .google.container.v1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; + * @param \Google\Cloud\Container\V1\AdvancedDatapathObservabilityConfig $var + * @return $this + */ + public function setAdvancedDatapathObservabilityConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AdvancedDatapathObservabilityConfig::class); + $this->advanced_datapath_observability_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig.php new file mode 100644 index 000000000000..5409d5d1e960 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig.php @@ -0,0 +1,683 @@ +google.container.v1.NetworkConfig + */ +class NetworkConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The relative name of the Google Compute Engine + * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) + * to which the cluster is connected. Example: + * projects/my-project/global/networks/my-network + * + * Generated from protobuf field string network = 1; + */ + protected $network = ''; + /** + * Output only. The relative name of the Google Compute Engine + * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the + * cluster is connected. Example: + * projects/my-project/regions/us-central1/subnetworks/my-subnet + * + * Generated from protobuf field string subnetwork = 2; + */ + protected $subnetwork = ''; + /** + * Whether Intra-node visibility is enabled for this cluster. + * This makes same node pod to pod traffic visible for VPC network. + * + * Generated from protobuf field bool enable_intra_node_visibility = 5; + */ + protected $enable_intra_node_visibility = false; + /** + * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules + * will be disabled when default_snat_status is disabled. When disabled is set + * to false, default IP masquerade rules will be applied to the nodes to + * prevent sNAT on cluster internal traffic. + * + * Generated from protobuf field .google.container.v1.DefaultSnatStatus default_snat_status = 7; + */ + protected $default_snat_status = null; + /** + * Whether L4ILB Subsetting is enabled for this cluster. + * + * Generated from protobuf field bool enable_l4ilb_subsetting = 10; + */ + protected $enable_l4ilb_subsetting = false; + /** + * The desired datapath provider for this cluster. By default, uses the + * IPTables-based kube-proxy implementation. + * + * Generated from protobuf field .google.container.v1.DatapathProvider datapath_provider = 11; + */ + protected $datapath_provider = 0; + /** + * The desired state of IPv6 connectivity to Google Services. + * By default, no private IPv6 access to or from Google Services (all access + * will be via IPv4) + * + * Generated from protobuf field .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + */ + protected $private_ipv6_google_access = 0; + /** + * DNSConfig contains clusterDNS config for this cluster. + * + * Generated from protobuf field .google.container.v1.DNSConfig dns_config = 13; + */ + protected $dns_config = null; + /** + * ServiceExternalIPsConfig specifies if services with externalIPs field are + * blocked or not. + * + * Generated from protobuf field .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + */ + protected $service_external_ips_config = null; + /** + * GatewayAPIConfig contains the desired config of Gateway API on this + * cluster. + * + * Generated from protobuf field .google.container.v1.GatewayAPIConfig gateway_api_config = 16; + */ + protected $gateway_api_config = null; + /** + * Whether multi-networking is enabled for this cluster. + * + * Generated from protobuf field bool enable_multi_networking = 17; + */ + protected $enable_multi_networking = false; + /** + * Network bandwidth tier configuration. + * + * Generated from protobuf field .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; + */ + protected $network_performance_config = null; + /** + * Whether FQDN Network Policy is enabled on this cluster. + * + * Generated from protobuf field optional bool enable_fqdn_network_policy = 19; + */ + protected $enable_fqdn_network_policy = null; + /** + * Specify the details of in-transit encryption. + * + * Generated from protobuf field optional .google.container.v1.InTransitEncryptionConfig in_transit_encryption_config = 20; + */ + protected $in_transit_encryption_config = null; + /** + * Whether CiliumClusterwideNetworkPolicy is enabled on this cluster. + * + * Generated from protobuf field optional bool enable_cilium_clusterwide_network_policy = 21; + */ + protected $enable_cilium_clusterwide_network_policy = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $network + * Output only. The relative name of the Google Compute Engine + * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) + * to which the cluster is connected. Example: + * projects/my-project/global/networks/my-network + * @type string $subnetwork + * Output only. The relative name of the Google Compute Engine + * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the + * cluster is connected. Example: + * projects/my-project/regions/us-central1/subnetworks/my-subnet + * @type bool $enable_intra_node_visibility + * Whether Intra-node visibility is enabled for this cluster. + * This makes same node pod to pod traffic visible for VPC network. + * @type \Google\Cloud\Container\V1\DefaultSnatStatus $default_snat_status + * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules + * will be disabled when default_snat_status is disabled. When disabled is set + * to false, default IP masquerade rules will be applied to the nodes to + * prevent sNAT on cluster internal traffic. + * @type bool $enable_l4ilb_subsetting + * Whether L4ILB Subsetting is enabled for this cluster. + * @type int $datapath_provider + * The desired datapath provider for this cluster. By default, uses the + * IPTables-based kube-proxy implementation. + * @type int $private_ipv6_google_access + * The desired state of IPv6 connectivity to Google Services. + * By default, no private IPv6 access to or from Google Services (all access + * will be via IPv4) + * @type \Google\Cloud\Container\V1\DNSConfig $dns_config + * DNSConfig contains clusterDNS config for this cluster. + * @type \Google\Cloud\Container\V1\ServiceExternalIPsConfig $service_external_ips_config + * ServiceExternalIPsConfig specifies if services with externalIPs field are + * blocked or not. + * @type \Google\Cloud\Container\V1\GatewayAPIConfig $gateway_api_config + * GatewayAPIConfig contains the desired config of Gateway API on this + * cluster. + * @type bool $enable_multi_networking + * Whether multi-networking is enabled for this cluster. + * @type \Google\Cloud\Container\V1\NetworkConfig\ClusterNetworkPerformanceConfig $network_performance_config + * Network bandwidth tier configuration. + * @type bool $enable_fqdn_network_policy + * Whether FQDN Network Policy is enabled on this cluster. + * @type int $in_transit_encryption_config + * Specify the details of in-transit encryption. + * @type bool $enable_cilium_clusterwide_network_policy + * Whether CiliumClusterwideNetworkPolicy is enabled on this cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The relative name of the Google Compute Engine + * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) + * to which the cluster is connected. Example: + * projects/my-project/global/networks/my-network + * + * Generated from protobuf field string network = 1; + * @return string + */ + public function getNetwork() + { + return $this->network; + } + + /** + * Output only. The relative name of the Google Compute Engine + * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) + * to which the cluster is connected. Example: + * projects/my-project/global/networks/my-network + * + * Generated from protobuf field string network = 1; + * @param string $var + * @return $this + */ + public function setNetwork($var) + { + GPBUtil::checkString($var, True); + $this->network = $var; + + return $this; + } + + /** + * Output only. The relative name of the Google Compute Engine + * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the + * cluster is connected. Example: + * projects/my-project/regions/us-central1/subnetworks/my-subnet + * + * Generated from protobuf field string subnetwork = 2; + * @return string + */ + public function getSubnetwork() + { + return $this->subnetwork; + } + + /** + * Output only. The relative name of the Google Compute Engine + * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the + * cluster is connected. Example: + * projects/my-project/regions/us-central1/subnetworks/my-subnet + * + * Generated from protobuf field string subnetwork = 2; + * @param string $var + * @return $this + */ + public function setSubnetwork($var) + { + GPBUtil::checkString($var, True); + $this->subnetwork = $var; + + return $this; + } + + /** + * Whether Intra-node visibility is enabled for this cluster. + * This makes same node pod to pod traffic visible for VPC network. + * + * Generated from protobuf field bool enable_intra_node_visibility = 5; + * @return bool + */ + public function getEnableIntraNodeVisibility() + { + return $this->enable_intra_node_visibility; + } + + /** + * Whether Intra-node visibility is enabled for this cluster. + * This makes same node pod to pod traffic visible for VPC network. + * + * Generated from protobuf field bool enable_intra_node_visibility = 5; + * @param bool $var + * @return $this + */ + public function setEnableIntraNodeVisibility($var) + { + GPBUtil::checkBool($var); + $this->enable_intra_node_visibility = $var; + + return $this; + } + + /** + * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules + * will be disabled when default_snat_status is disabled. When disabled is set + * to false, default IP masquerade rules will be applied to the nodes to + * prevent sNAT on cluster internal traffic. + * + * Generated from protobuf field .google.container.v1.DefaultSnatStatus default_snat_status = 7; + * @return \Google\Cloud\Container\V1\DefaultSnatStatus|null + */ + public function getDefaultSnatStatus() + { + return $this->default_snat_status; + } + + public function hasDefaultSnatStatus() + { + return isset($this->default_snat_status); + } + + public function clearDefaultSnatStatus() + { + unset($this->default_snat_status); + } + + /** + * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules + * will be disabled when default_snat_status is disabled. When disabled is set + * to false, default IP masquerade rules will be applied to the nodes to + * prevent sNAT on cluster internal traffic. + * + * Generated from protobuf field .google.container.v1.DefaultSnatStatus default_snat_status = 7; + * @param \Google\Cloud\Container\V1\DefaultSnatStatus $var + * @return $this + */ + public function setDefaultSnatStatus($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\DefaultSnatStatus::class); + $this->default_snat_status = $var; + + return $this; + } + + /** + * Whether L4ILB Subsetting is enabled for this cluster. + * + * Generated from protobuf field bool enable_l4ilb_subsetting = 10; + * @return bool + */ + public function getEnableL4IlbSubsetting() + { + return $this->enable_l4ilb_subsetting; + } + + /** + * Whether L4ILB Subsetting is enabled for this cluster. + * + * Generated from protobuf field bool enable_l4ilb_subsetting = 10; + * @param bool $var + * @return $this + */ + public function setEnableL4IlbSubsetting($var) + { + GPBUtil::checkBool($var); + $this->enable_l4ilb_subsetting = $var; + + return $this; + } + + /** + * The desired datapath provider for this cluster. By default, uses the + * IPTables-based kube-proxy implementation. + * + * Generated from protobuf field .google.container.v1.DatapathProvider datapath_provider = 11; + * @return int + */ + public function getDatapathProvider() + { + return $this->datapath_provider; + } + + /** + * The desired datapath provider for this cluster. By default, uses the + * IPTables-based kube-proxy implementation. + * + * Generated from protobuf field .google.container.v1.DatapathProvider datapath_provider = 11; + * @param int $var + * @return $this + */ + public function setDatapathProvider($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\DatapathProvider::class); + $this->datapath_provider = $var; + + return $this; + } + + /** + * The desired state of IPv6 connectivity to Google Services. + * By default, no private IPv6 access to or from Google Services (all access + * will be via IPv4) + * + * Generated from protobuf field .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + * @return int + */ + public function getPrivateIpv6GoogleAccess() + { + return $this->private_ipv6_google_access; + } + + /** + * The desired state of IPv6 connectivity to Google Services. + * By default, no private IPv6 access to or from Google Services (all access + * will be via IPv4) + * + * Generated from protobuf field .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + * @param int $var + * @return $this + */ + public function setPrivateIpv6GoogleAccess($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\PrivateIPv6GoogleAccess::class); + $this->private_ipv6_google_access = $var; + + return $this; + } + + /** + * DNSConfig contains clusterDNS config for this cluster. + * + * Generated from protobuf field .google.container.v1.DNSConfig dns_config = 13; + * @return \Google\Cloud\Container\V1\DNSConfig|null + */ + public function getDnsConfig() + { + return $this->dns_config; + } + + public function hasDnsConfig() + { + return isset($this->dns_config); + } + + public function clearDnsConfig() + { + unset($this->dns_config); + } + + /** + * DNSConfig contains clusterDNS config for this cluster. + * + * Generated from protobuf field .google.container.v1.DNSConfig dns_config = 13; + * @param \Google\Cloud\Container\V1\DNSConfig $var + * @return $this + */ + public function setDnsConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\DNSConfig::class); + $this->dns_config = $var; + + return $this; + } + + /** + * ServiceExternalIPsConfig specifies if services with externalIPs field are + * blocked or not. + * + * Generated from protobuf field .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + * @return \Google\Cloud\Container\V1\ServiceExternalIPsConfig|null + */ + public function getServiceExternalIpsConfig() + { + return $this->service_external_ips_config; + } + + public function hasServiceExternalIpsConfig() + { + return isset($this->service_external_ips_config); + } + + public function clearServiceExternalIpsConfig() + { + unset($this->service_external_ips_config); + } + + /** + * ServiceExternalIPsConfig specifies if services with externalIPs field are + * blocked or not. + * + * Generated from protobuf field .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + * @param \Google\Cloud\Container\V1\ServiceExternalIPsConfig $var + * @return $this + */ + public function setServiceExternalIpsConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ServiceExternalIPsConfig::class); + $this->service_external_ips_config = $var; + + return $this; + } + + /** + * GatewayAPIConfig contains the desired config of Gateway API on this + * cluster. + * + * Generated from protobuf field .google.container.v1.GatewayAPIConfig gateway_api_config = 16; + * @return \Google\Cloud\Container\V1\GatewayAPIConfig|null + */ + public function getGatewayApiConfig() + { + return $this->gateway_api_config; + } + + public function hasGatewayApiConfig() + { + return isset($this->gateway_api_config); + } + + public function clearGatewayApiConfig() + { + unset($this->gateway_api_config); + } + + /** + * GatewayAPIConfig contains the desired config of Gateway API on this + * cluster. + * + * Generated from protobuf field .google.container.v1.GatewayAPIConfig gateway_api_config = 16; + * @param \Google\Cloud\Container\V1\GatewayAPIConfig $var + * @return $this + */ + public function setGatewayApiConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GatewayAPIConfig::class); + $this->gateway_api_config = $var; + + return $this; + } + + /** + * Whether multi-networking is enabled for this cluster. + * + * Generated from protobuf field bool enable_multi_networking = 17; + * @return bool + */ + public function getEnableMultiNetworking() + { + return $this->enable_multi_networking; + } + + /** + * Whether multi-networking is enabled for this cluster. + * + * Generated from protobuf field bool enable_multi_networking = 17; + * @param bool $var + * @return $this + */ + public function setEnableMultiNetworking($var) + { + GPBUtil::checkBool($var); + $this->enable_multi_networking = $var; + + return $this; + } + + /** + * Network bandwidth tier configuration. + * + * Generated from protobuf field .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; + * @return \Google\Cloud\Container\V1\NetworkConfig\ClusterNetworkPerformanceConfig|null + */ + public function getNetworkPerformanceConfig() + { + return $this->network_performance_config; + } + + public function hasNetworkPerformanceConfig() + { + return isset($this->network_performance_config); + } + + public function clearNetworkPerformanceConfig() + { + unset($this->network_performance_config); + } + + /** + * Network bandwidth tier configuration. + * + * Generated from protobuf field .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; + * @param \Google\Cloud\Container\V1\NetworkConfig\ClusterNetworkPerformanceConfig $var + * @return $this + */ + public function setNetworkPerformanceConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkConfig\ClusterNetworkPerformanceConfig::class); + $this->network_performance_config = $var; + + return $this; + } + + /** + * Whether FQDN Network Policy is enabled on this cluster. + * + * Generated from protobuf field optional bool enable_fqdn_network_policy = 19; + * @return bool + */ + public function getEnableFqdnNetworkPolicy() + { + return isset($this->enable_fqdn_network_policy) ? $this->enable_fqdn_network_policy : false; + } + + public function hasEnableFqdnNetworkPolicy() + { + return isset($this->enable_fqdn_network_policy); + } + + public function clearEnableFqdnNetworkPolicy() + { + unset($this->enable_fqdn_network_policy); + } + + /** + * Whether FQDN Network Policy is enabled on this cluster. + * + * Generated from protobuf field optional bool enable_fqdn_network_policy = 19; + * @param bool $var + * @return $this + */ + public function setEnableFqdnNetworkPolicy($var) + { + GPBUtil::checkBool($var); + $this->enable_fqdn_network_policy = $var; + + return $this; + } + + /** + * Specify the details of in-transit encryption. + * + * Generated from protobuf field optional .google.container.v1.InTransitEncryptionConfig in_transit_encryption_config = 20; + * @return int + */ + public function getInTransitEncryptionConfig() + { + return isset($this->in_transit_encryption_config) ? $this->in_transit_encryption_config : 0; + } + + public function hasInTransitEncryptionConfig() + { + return isset($this->in_transit_encryption_config); + } + + public function clearInTransitEncryptionConfig() + { + unset($this->in_transit_encryption_config); + } + + /** + * Specify the details of in-transit encryption. + * + * Generated from protobuf field optional .google.container.v1.InTransitEncryptionConfig in_transit_encryption_config = 20; + * @param int $var + * @return $this + */ + public function setInTransitEncryptionConfig($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\InTransitEncryptionConfig::class); + $this->in_transit_encryption_config = $var; + + return $this; + } + + /** + * Whether CiliumClusterwideNetworkPolicy is enabled on this cluster. + * + * Generated from protobuf field optional bool enable_cilium_clusterwide_network_policy = 21; + * @return bool + */ + public function getEnableCiliumClusterwideNetworkPolicy() + { + return isset($this->enable_cilium_clusterwide_network_policy) ? $this->enable_cilium_clusterwide_network_policy : false; + } + + public function hasEnableCiliumClusterwideNetworkPolicy() + { + return isset($this->enable_cilium_clusterwide_network_policy); + } + + public function clearEnableCiliumClusterwideNetworkPolicy() + { + unset($this->enable_cilium_clusterwide_network_policy); + } + + /** + * Whether CiliumClusterwideNetworkPolicy is enabled on this cluster. + * + * Generated from protobuf field optional bool enable_cilium_clusterwide_network_policy = 21; + * @param bool $var + * @return $this + */ + public function setEnableCiliumClusterwideNetworkPolicy($var) + { + GPBUtil::checkBool($var); + $this->enable_cilium_clusterwide_network_policy = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig/ClusterNetworkPerformanceConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig/ClusterNetworkPerformanceConfig.php new file mode 100644 index 000000000000..c43c6d2f0e3b --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig/ClusterNetworkPerformanceConfig.php @@ -0,0 +1,80 @@ +google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig + */ +class ClusterNetworkPerformanceConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Specifies the total network bandwidth tier for NodePools in the cluster. + * + * Generated from protobuf field optional .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + */ + protected $total_egress_bandwidth_tier = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $total_egress_bandwidth_tier + * Specifies the total network bandwidth tier for NodePools in the cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Specifies the total network bandwidth tier for NodePools in the cluster. + * + * Generated from protobuf field optional .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return int + */ + public function getTotalEgressBandwidthTier() + { + return isset($this->total_egress_bandwidth_tier) ? $this->total_egress_bandwidth_tier : 0; + } + + public function hasTotalEgressBandwidthTier() + { + return isset($this->total_egress_bandwidth_tier); + } + + public function clearTotalEgressBandwidthTier() + { + unset($this->total_egress_bandwidth_tier); + } + + /** + * Specifies the total network bandwidth tier for NodePools in the cluster. + * + * Generated from protobuf field optional .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @param int $var + * @return $this + */ + public function setTotalEgressBandwidthTier($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NetworkConfig\ClusterNetworkPerformanceConfig\Tier::class); + $this->total_egress_bandwidth_tier = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ClusterNetworkPerformanceConfig::class, \Google\Cloud\Container\V1\NetworkConfig_ClusterNetworkPerformanceConfig::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig/ClusterNetworkPerformanceConfig/Tier.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig/ClusterNetworkPerformanceConfig/Tier.php new file mode 100644 index 000000000000..9f221983b15b --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig/ClusterNetworkPerformanceConfig/Tier.php @@ -0,0 +1,57 @@ +google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier + */ +class Tier +{ + /** + * Default value + * + * Generated from protobuf enum TIER_UNSPECIFIED = 0; + */ + const TIER_UNSPECIFIED = 0; + /** + * Higher bandwidth, actual values based on VM size. + * + * Generated from protobuf enum TIER_1 = 1; + */ + const TIER_1 = 1; + + private static $valueToName = [ + self::TIER_UNSPECIFIED => 'TIER_UNSPECIFIED', + self::TIER_1 => 'TIER_1', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Tier::class, \Google\Cloud\Container\V1\NetworkConfig_ClusterNetworkPerformanceConfig_Tier::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicy.php new file mode 100644 index 000000000000..b883a5302a12 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicy.php @@ -0,0 +1,102 @@ +google.container.v1.NetworkPolicy + */ +class NetworkPolicy extends \Google\Protobuf\Internal\Message +{ + /** + * The selected network policy provider. + * + * Generated from protobuf field .google.container.v1.NetworkPolicy.Provider provider = 1; + */ + protected $provider = 0; + /** + * Whether network policy is enabled on the cluster. + * + * Generated from protobuf field bool enabled = 2; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $provider + * The selected network policy provider. + * @type bool $enabled + * Whether network policy is enabled on the cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The selected network policy provider. + * + * Generated from protobuf field .google.container.v1.NetworkPolicy.Provider provider = 1; + * @return int + */ + public function getProvider() + { + return $this->provider; + } + + /** + * The selected network policy provider. + * + * Generated from protobuf field .google.container.v1.NetworkPolicy.Provider provider = 1; + * @param int $var + * @return $this + */ + public function setProvider($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NetworkPolicy\Provider::class); + $this->provider = $var; + + return $this; + } + + /** + * Whether network policy is enabled on the cluster. + * + * Generated from protobuf field bool enabled = 2; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Whether network policy is enabled on the cluster. + * + * Generated from protobuf field bool enabled = 2; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicy/Provider.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicy/Provider.php new file mode 100644 index 000000000000..ec0b75a7993d --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicy/Provider.php @@ -0,0 +1,57 @@ +google.container.v1.NetworkPolicy.Provider + */ +class Provider +{ + /** + * Not set + * + * Generated from protobuf enum PROVIDER_UNSPECIFIED = 0; + */ + const PROVIDER_UNSPECIFIED = 0; + /** + * Tigera (Calico Felix). + * + * Generated from protobuf enum CALICO = 1; + */ + const CALICO = 1; + + private static $valueToName = [ + self::PROVIDER_UNSPECIFIED => 'PROVIDER_UNSPECIFIED', + self::CALICO => 'CALICO', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Provider::class, \Google\Cloud\Container\V1\NetworkPolicy_Provider::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicyConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicyConfig.php new file mode 100644 index 000000000000..23e9c2000fc8 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicyConfig.php @@ -0,0 +1,69 @@ +google.container.v1.NetworkPolicyConfig + */ +class NetworkPolicyConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Whether NetworkPolicy is enabled for this cluster. + * + * Generated from protobuf field bool disabled = 1; + */ + protected $disabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $disabled + * Whether NetworkPolicy is enabled for this cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether NetworkPolicy is enabled for this cluster. + * + * Generated from protobuf field bool disabled = 1; + * @return bool + */ + public function getDisabled() + { + return $this->disabled; + } + + /** + * Whether NetworkPolicy is enabled for this cluster. + * + * Generated from protobuf field bool disabled = 1; + * @param bool $var + * @return $this + */ + public function setDisabled($var) + { + GPBUtil::checkBool($var); + $this->disabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkTags.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkTags.php new file mode 100644 index 000000000000..7e34a1b2eda3 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkTags.php @@ -0,0 +1,68 @@ +google.container.v1.NetworkTags + */ +class NetworkTags extends \Google\Protobuf\Internal\Message +{ + /** + * List of network tags. + * + * Generated from protobuf field repeated string tags = 1; + */ + private $tags; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $tags + * List of network tags. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * List of network tags. + * + * Generated from protobuf field repeated string tags = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTags() + { + return $this->tags; + } + + /** + * List of network tags. + * + * Generated from protobuf field repeated string tags = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->tags = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfig.php new file mode 100644 index 000000000000..a33283a96c17 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfig.php @@ -0,0 +1,1869 @@ +google.container.v1.NodeConfig + */ +class NodeConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The name of a Google Compute Engine [machine + * type](https://cloud.google.com/compute/docs/machine-types) + * If unspecified, the default machine type is `e2-medium`. + * + * Generated from protobuf field string machine_type = 1; + */ + protected $machine_type = ''; + /** + * Size of the disk attached to each node, specified in GB. + * The smallest allowed disk size is 10GB. + * If unspecified, the default disk size is 100GB. + * + * Generated from protobuf field int32 disk_size_gb = 2; + */ + protected $disk_size_gb = 0; + /** + * The set of Google API scopes to be made available on all of the + * node VMs under the "default" service account. + * The following scopes are recommended, but not required, and by default are + * not included: + * * `https://www.googleapis.com/auth/compute` is required for mounting + * persistent storage on your nodes. + * * `https://www.googleapis.com/auth/devstorage.read_only` is required for + * communicating with **gcr.io** + * (the [Google Container + * Registry](https://cloud.google.com/container-registry/)). + * If unspecified, no scopes are added, unless Cloud Logging or Cloud + * Monitoring are enabled, in which case their required scopes will be added. + * + * Generated from protobuf field repeated string oauth_scopes = 3; + */ + private $oauth_scopes; + /** + * The Google Cloud Platform Service Account to be used by the node VMs. + * Specify the email address of the Service Account; otherwise, if no Service + * Account is specified, the "default" service account is used. + * + * Generated from protobuf field string service_account = 9; + */ + protected $service_account = ''; + /** + * The metadata key/value pairs assigned to instances in the cluster. + * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes + * in length. These are reflected as part of a URL in the metadata server. + * Additionally, to avoid ambiguity, keys must not conflict with any other + * metadata keys for the project or be one of the reserved keys: + * - "cluster-location" + * - "cluster-name" + * - "cluster-uid" + * - "configure-sh" + * - "containerd-configure-sh" + * - "enable-os-login" + * - "gci-ensure-gke-docker" + * - "gci-metrics-enabled" + * - "gci-update-strategy" + * - "instance-template" + * - "kube-env" + * - "startup-script" + * - "user-data" + * - "disable-address-manager" + * - "windows-startup-script-ps1" + * - "common-psm1" + * - "k8s-node-setup-psm1" + * - "install-ssh-psm1" + * - "user-profile-psm1" + * Values are free-form strings, and only have meaning as interpreted by + * the image running in the instance. The only restriction placed on them is + * that each value's size must be less than or equal to 32 KB. + * The total size of all keys and values must be less than 512 KB. + * + * Generated from protobuf field map metadata = 4; + */ + private $metadata; + /** + * The image type to use for this node. Note that for a given image type, + * the latest version of it will be used. Please see + * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for + * available image types. + * + * Generated from protobuf field string image_type = 5; + */ + protected $image_type = ''; + /** + * The map of Kubernetes labels (key/value pairs) to be applied to each node. + * These will added in addition to any default label(s) that + * Kubernetes may apply to the node. + * In case of conflict in label keys, the applied set may differ depending on + * the Kubernetes version -- it's best to assume the behavior is undefined + * and conflicts should be avoided. + * For more information, including usage and the valid values, see: + * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ + * + * Generated from protobuf field map labels = 6; + */ + private $labels; + /** + * The number of local SSD disks to be attached to the node. + * The limit for this value is dependent upon the maximum number of + * disks available on a machine per zone. See: + * https://cloud.google.com/compute/docs/disks/local-ssd + * for more information. + * + * Generated from protobuf field int32 local_ssd_count = 7; + */ + protected $local_ssd_count = 0; + /** + * The list of instance tags applied to all nodes. Tags are used to identify + * valid sources or targets for network firewalls and are specified by + * the client during cluster or node pool creation. Each tag within the list + * must comply with RFC1035. + * + * Generated from protobuf field repeated string tags = 8; + */ + private $tags; + /** + * Whether the nodes are created as preemptible VM instances. See: + * https://cloud.google.com/compute/docs/instances/preemptible for more + * information about preemptible VM instances. + * + * Generated from protobuf field bool preemptible = 10; + */ + protected $preemptible = false; + /** + * A list of hardware accelerators to be attached to each node. + * See https://cloud.google.com/compute/docs/gpus for more information about + * support for GPUs. + * + * Generated from protobuf field repeated .google.container.v1.AcceleratorConfig accelerators = 11; + */ + private $accelerators; + /** + * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or + * 'pd-balanced') + * If unspecified, the default disk type is 'pd-standard' + * + * Generated from protobuf field string disk_type = 12; + */ + protected $disk_type = ''; + /** + * Minimum CPU platform to be used by this instance. The instance may be + * scheduled on the specified or newer CPU platform. Applicable values are the + * friendly names of CPU platforms, such as + * `minCpuPlatform: "Intel Haswell"` or + * `minCpuPlatform: "Intel Sandy Bridge"`. For more + * information, read [how to specify min CPU + * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) + * + * Generated from protobuf field string min_cpu_platform = 13; + */ + protected $min_cpu_platform = ''; + /** + * The workload metadata configuration for this node. + * + * Generated from protobuf field .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + protected $workload_metadata_config = null; + /** + * List of kubernetes taints to be applied to each node. + * For more information, including usage and the valid values, see: + * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ + * + * Generated from protobuf field repeated .google.container.v1.NodeTaint taints = 15; + */ + private $taints; + /** + * Sandbox configuration for this node. + * + * Generated from protobuf field .google.container.v1.SandboxConfig sandbox_config = 17; + */ + protected $sandbox_config = null; + /** + * Setting this field will assign instances of this + * pool to run on the specified node group. This is useful for running + * workloads on [sole tenant + * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes). + * + * Generated from protobuf field string node_group = 18; + */ + protected $node_group = ''; + /** + * The optional reservation affinity. Setting this field will apply + * the specified [Zonal Compute + * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) + * to this node pool. + * + * Generated from protobuf field .google.container.v1.ReservationAffinity reservation_affinity = 19; + */ + protected $reservation_affinity = null; + /** + * Shielded Instance options. + * + * Generated from protobuf field .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + protected $shielded_instance_config = null; + /** + * Parameters that can be configured on Linux nodes. + * + * Generated from protobuf field .google.container.v1.LinuxNodeConfig linux_node_config = 21; + */ + protected $linux_node_config = null; + /** + * Node kubelet configs. + * + * Generated from protobuf field .google.container.v1.NodeKubeletConfig kubelet_config = 22; + */ + protected $kubelet_config = null; + /** + * The Customer Managed Encryption Key used to encrypt the boot disk attached + * to each node in the node pool. This should be of the form + * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. + * For more information about protecting resources with Cloud KMS Keys please + * see: + * https://cloud.google.com/compute/docs/disks/customer-managed-encryption + * + * Generated from protobuf field string boot_disk_kms_key = 23; + */ + protected $boot_disk_kms_key = ''; + /** + * Google Container File System (image streaming) configs. + * + * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 25; + */ + protected $gcfs_config = null; + /** + * Advanced features for the Compute Engine VM. + * + * Generated from protobuf field .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + protected $advanced_machine_features = null; + /** + * Enable or disable gvnic in the node pool. + * + * Generated from protobuf field .google.container.v1.VirtualNIC gvnic = 29; + */ + protected $gvnic = null; + /** + * Spot flag for enabling Spot VM, which is a rebrand of + * the existing preemptible flag. + * + * Generated from protobuf field bool spot = 32; + */ + protected $spot = false; + /** + * Confidential nodes config. + * All the nodes in the node pool will be Confidential VM once enabled. + * + * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 35; + */ + protected $confidential_nodes = null; + /** + * Enable or disable NCCL fast socket for the node pool. + * + * Generated from protobuf field optional .google.container.v1.FastSocket fast_socket = 36; + */ + protected $fast_socket = null; + /** + * The resource labels for the node pool to use to annotate any related + * Google Compute Engine resources. + * + * Generated from protobuf field map resource_labels = 37; + */ + private $resource_labels; + /** + * Logging configuration. + * + * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 38; + */ + protected $logging_config = null; + /** + * Parameters that can be configured on Windows nodes. + * + * Generated from protobuf field .google.container.v1.WindowsNodeConfig windows_node_config = 39; + */ + protected $windows_node_config = null; + /** + * Parameters for using raw-block Local NVMe SSDs. + * + * Generated from protobuf field .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; + */ + protected $local_nvme_ssd_block_config = null; + /** + * Parameters for the node ephemeral storage using Local SSDs. + * If unspecified, ephemeral storage is backed by the boot disk. + * + * Generated from protobuf field .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; + */ + protected $ephemeral_storage_local_ssd_config = null; + /** + * Parameters for node pools to be backed by shared sole tenant node groups. + * + * Generated from protobuf field .google.container.v1.SoleTenantConfig sole_tenant_config = 42; + */ + protected $sole_tenant_config = null; + /** + * A map of resource manager tag keys and values to be attached to the nodes. + * + * Generated from protobuf field .google.container.v1.ResourceManagerTags resource_manager_tags = 45; + */ + protected $resource_manager_tags = null; + /** + * Optional. Reserved for future use. + * + * Generated from protobuf field bool enable_confidential_storage = 46 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $enable_confidential_storage = false; + /** + * List of secondary boot disks attached to the nodes. + * + * Generated from protobuf field repeated .google.container.v1.SecondaryBootDisk secondary_boot_disks = 48; + */ + private $secondary_boot_disks; + /** + * Secondary boot disk update strategy. + * + * Generated from protobuf field optional .google.container.v1.SecondaryBootDiskUpdateStrategy secondary_boot_disk_update_strategy = 50; + */ + protected $secondary_boot_disk_update_strategy = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $machine_type + * The name of a Google Compute Engine [machine + * type](https://cloud.google.com/compute/docs/machine-types) + * If unspecified, the default machine type is `e2-medium`. + * @type int $disk_size_gb + * Size of the disk attached to each node, specified in GB. + * The smallest allowed disk size is 10GB. + * If unspecified, the default disk size is 100GB. + * @type array|\Google\Protobuf\Internal\RepeatedField $oauth_scopes + * The set of Google API scopes to be made available on all of the + * node VMs under the "default" service account. + * The following scopes are recommended, but not required, and by default are + * not included: + * * `https://www.googleapis.com/auth/compute` is required for mounting + * persistent storage on your nodes. + * * `https://www.googleapis.com/auth/devstorage.read_only` is required for + * communicating with **gcr.io** + * (the [Google Container + * Registry](https://cloud.google.com/container-registry/)). + * If unspecified, no scopes are added, unless Cloud Logging or Cloud + * Monitoring are enabled, in which case their required scopes will be added. + * @type string $service_account + * The Google Cloud Platform Service Account to be used by the node VMs. + * Specify the email address of the Service Account; otherwise, if no Service + * Account is specified, the "default" service account is used. + * @type array|\Google\Protobuf\Internal\MapField $metadata + * The metadata key/value pairs assigned to instances in the cluster. + * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes + * in length. These are reflected as part of a URL in the metadata server. + * Additionally, to avoid ambiguity, keys must not conflict with any other + * metadata keys for the project or be one of the reserved keys: + * - "cluster-location" + * - "cluster-name" + * - "cluster-uid" + * - "configure-sh" + * - "containerd-configure-sh" + * - "enable-os-login" + * - "gci-ensure-gke-docker" + * - "gci-metrics-enabled" + * - "gci-update-strategy" + * - "instance-template" + * - "kube-env" + * - "startup-script" + * - "user-data" + * - "disable-address-manager" + * - "windows-startup-script-ps1" + * - "common-psm1" + * - "k8s-node-setup-psm1" + * - "install-ssh-psm1" + * - "user-profile-psm1" + * Values are free-form strings, and only have meaning as interpreted by + * the image running in the instance. The only restriction placed on them is + * that each value's size must be less than or equal to 32 KB. + * The total size of all keys and values must be less than 512 KB. + * @type string $image_type + * The image type to use for this node. Note that for a given image type, + * the latest version of it will be used. Please see + * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for + * available image types. + * @type array|\Google\Protobuf\Internal\MapField $labels + * The map of Kubernetes labels (key/value pairs) to be applied to each node. + * These will added in addition to any default label(s) that + * Kubernetes may apply to the node. + * In case of conflict in label keys, the applied set may differ depending on + * the Kubernetes version -- it's best to assume the behavior is undefined + * and conflicts should be avoided. + * For more information, including usage and the valid values, see: + * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ + * @type int $local_ssd_count + * The number of local SSD disks to be attached to the node. + * The limit for this value is dependent upon the maximum number of + * disks available on a machine per zone. See: + * https://cloud.google.com/compute/docs/disks/local-ssd + * for more information. + * @type array|\Google\Protobuf\Internal\RepeatedField $tags + * The list of instance tags applied to all nodes. Tags are used to identify + * valid sources or targets for network firewalls and are specified by + * the client during cluster or node pool creation. Each tag within the list + * must comply with RFC1035. + * @type bool $preemptible + * Whether the nodes are created as preemptible VM instances. See: + * https://cloud.google.com/compute/docs/instances/preemptible for more + * information about preemptible VM instances. + * @type array<\Google\Cloud\Container\V1\AcceleratorConfig>|\Google\Protobuf\Internal\RepeatedField $accelerators + * A list of hardware accelerators to be attached to each node. + * See https://cloud.google.com/compute/docs/gpus for more information about + * support for GPUs. + * @type string $disk_type + * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or + * 'pd-balanced') + * If unspecified, the default disk type is 'pd-standard' + * @type string $min_cpu_platform + * Minimum CPU platform to be used by this instance. The instance may be + * scheduled on the specified or newer CPU platform. Applicable values are the + * friendly names of CPU platforms, such as + * `minCpuPlatform: "Intel Haswell"` or + * `minCpuPlatform: "Intel Sandy Bridge"`. For more + * information, read [how to specify min CPU + * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) + * @type \Google\Cloud\Container\V1\WorkloadMetadataConfig $workload_metadata_config + * The workload metadata configuration for this node. + * @type array<\Google\Cloud\Container\V1\NodeTaint>|\Google\Protobuf\Internal\RepeatedField $taints + * List of kubernetes taints to be applied to each node. + * For more information, including usage and the valid values, see: + * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ + * @type \Google\Cloud\Container\V1\SandboxConfig $sandbox_config + * Sandbox configuration for this node. + * @type string $node_group + * Setting this field will assign instances of this + * pool to run on the specified node group. This is useful for running + * workloads on [sole tenant + * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes). + * @type \Google\Cloud\Container\V1\ReservationAffinity $reservation_affinity + * The optional reservation affinity. Setting this field will apply + * the specified [Zonal Compute + * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) + * to this node pool. + * @type \Google\Cloud\Container\V1\ShieldedInstanceConfig $shielded_instance_config + * Shielded Instance options. + * @type \Google\Cloud\Container\V1\LinuxNodeConfig $linux_node_config + * Parameters that can be configured on Linux nodes. + * @type \Google\Cloud\Container\V1\NodeKubeletConfig $kubelet_config + * Node kubelet configs. + * @type string $boot_disk_kms_key + * The Customer Managed Encryption Key used to encrypt the boot disk attached + * to each node in the node pool. This should be of the form + * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. + * For more information about protecting resources with Cloud KMS Keys please + * see: + * https://cloud.google.com/compute/docs/disks/customer-managed-encryption + * @type \Google\Cloud\Container\V1\GcfsConfig $gcfs_config + * Google Container File System (image streaming) configs. + * @type \Google\Cloud\Container\V1\AdvancedMachineFeatures $advanced_machine_features + * Advanced features for the Compute Engine VM. + * @type \Google\Cloud\Container\V1\VirtualNIC $gvnic + * Enable or disable gvnic in the node pool. + * @type bool $spot + * Spot flag for enabling Spot VM, which is a rebrand of + * the existing preemptible flag. + * @type \Google\Cloud\Container\V1\ConfidentialNodes $confidential_nodes + * Confidential nodes config. + * All the nodes in the node pool will be Confidential VM once enabled. + * @type \Google\Cloud\Container\V1\FastSocket $fast_socket + * Enable or disable NCCL fast socket for the node pool. + * @type array|\Google\Protobuf\Internal\MapField $resource_labels + * The resource labels for the node pool to use to annotate any related + * Google Compute Engine resources. + * @type \Google\Cloud\Container\V1\NodePoolLoggingConfig $logging_config + * Logging configuration. + * @type \Google\Cloud\Container\V1\WindowsNodeConfig $windows_node_config + * Parameters that can be configured on Windows nodes. + * @type \Google\Cloud\Container\V1\LocalNvmeSsdBlockConfig $local_nvme_ssd_block_config + * Parameters for using raw-block Local NVMe SSDs. + * @type \Google\Cloud\Container\V1\EphemeralStorageLocalSsdConfig $ephemeral_storage_local_ssd_config + * Parameters for the node ephemeral storage using Local SSDs. + * If unspecified, ephemeral storage is backed by the boot disk. + * @type \Google\Cloud\Container\V1\SoleTenantConfig $sole_tenant_config + * Parameters for node pools to be backed by shared sole tenant node groups. + * @type \Google\Cloud\Container\V1\ResourceManagerTags $resource_manager_tags + * A map of resource manager tag keys and values to be attached to the nodes. + * @type bool $enable_confidential_storage + * Optional. Reserved for future use. + * @type array<\Google\Cloud\Container\V1\SecondaryBootDisk>|\Google\Protobuf\Internal\RepeatedField $secondary_boot_disks + * List of secondary boot disks attached to the nodes. + * @type \Google\Cloud\Container\V1\SecondaryBootDiskUpdateStrategy $secondary_boot_disk_update_strategy + * Secondary boot disk update strategy. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The name of a Google Compute Engine [machine + * type](https://cloud.google.com/compute/docs/machine-types) + * If unspecified, the default machine type is `e2-medium`. + * + * Generated from protobuf field string machine_type = 1; + * @return string + */ + public function getMachineType() + { + return $this->machine_type; + } + + /** + * The name of a Google Compute Engine [machine + * type](https://cloud.google.com/compute/docs/machine-types) + * If unspecified, the default machine type is `e2-medium`. + * + * Generated from protobuf field string machine_type = 1; + * @param string $var + * @return $this + */ + public function setMachineType($var) + { + GPBUtil::checkString($var, True); + $this->machine_type = $var; + + return $this; + } + + /** + * Size of the disk attached to each node, specified in GB. + * The smallest allowed disk size is 10GB. + * If unspecified, the default disk size is 100GB. + * + * Generated from protobuf field int32 disk_size_gb = 2; + * @return int + */ + public function getDiskSizeGb() + { + return $this->disk_size_gb; + } + + /** + * Size of the disk attached to each node, specified in GB. + * The smallest allowed disk size is 10GB. + * If unspecified, the default disk size is 100GB. + * + * Generated from protobuf field int32 disk_size_gb = 2; + * @param int $var + * @return $this + */ + public function setDiskSizeGb($var) + { + GPBUtil::checkInt32($var); + $this->disk_size_gb = $var; + + return $this; + } + + /** + * The set of Google API scopes to be made available on all of the + * node VMs under the "default" service account. + * The following scopes are recommended, but not required, and by default are + * not included: + * * `https://www.googleapis.com/auth/compute` is required for mounting + * persistent storage on your nodes. + * * `https://www.googleapis.com/auth/devstorage.read_only` is required for + * communicating with **gcr.io** + * (the [Google Container + * Registry](https://cloud.google.com/container-registry/)). + * If unspecified, no scopes are added, unless Cloud Logging or Cloud + * Monitoring are enabled, in which case their required scopes will be added. + * + * Generated from protobuf field repeated string oauth_scopes = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOauthScopes() + { + return $this->oauth_scopes; + } + + /** + * The set of Google API scopes to be made available on all of the + * node VMs under the "default" service account. + * The following scopes are recommended, but not required, and by default are + * not included: + * * `https://www.googleapis.com/auth/compute` is required for mounting + * persistent storage on your nodes. + * * `https://www.googleapis.com/auth/devstorage.read_only` is required for + * communicating with **gcr.io** + * (the [Google Container + * Registry](https://cloud.google.com/container-registry/)). + * If unspecified, no scopes are added, unless Cloud Logging or Cloud + * Monitoring are enabled, in which case their required scopes will be added. + * + * Generated from protobuf field repeated string oauth_scopes = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOauthScopes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->oauth_scopes = $arr; + + return $this; + } + + /** + * The Google Cloud Platform Service Account to be used by the node VMs. + * Specify the email address of the Service Account; otherwise, if no Service + * Account is specified, the "default" service account is used. + * + * Generated from protobuf field string service_account = 9; + * @return string + */ + public function getServiceAccount() + { + return $this->service_account; + } + + /** + * The Google Cloud Platform Service Account to be used by the node VMs. + * Specify the email address of the Service Account; otherwise, if no Service + * Account is specified, the "default" service account is used. + * + * Generated from protobuf field string service_account = 9; + * @param string $var + * @return $this + */ + public function setServiceAccount($var) + { + GPBUtil::checkString($var, True); + $this->service_account = $var; + + return $this; + } + + /** + * The metadata key/value pairs assigned to instances in the cluster. + * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes + * in length. These are reflected as part of a URL in the metadata server. + * Additionally, to avoid ambiguity, keys must not conflict with any other + * metadata keys for the project or be one of the reserved keys: + * - "cluster-location" + * - "cluster-name" + * - "cluster-uid" + * - "configure-sh" + * - "containerd-configure-sh" + * - "enable-os-login" + * - "gci-ensure-gke-docker" + * - "gci-metrics-enabled" + * - "gci-update-strategy" + * - "instance-template" + * - "kube-env" + * - "startup-script" + * - "user-data" + * - "disable-address-manager" + * - "windows-startup-script-ps1" + * - "common-psm1" + * - "k8s-node-setup-psm1" + * - "install-ssh-psm1" + * - "user-profile-psm1" + * Values are free-form strings, and only have meaning as interpreted by + * the image running in the instance. The only restriction placed on them is + * that each value's size must be less than or equal to 32 KB. + * The total size of all keys and values must be less than 512 KB. + * + * Generated from protobuf field map metadata = 4; + * @return \Google\Protobuf\Internal\MapField + */ + public function getMetadata() + { + return $this->metadata; + } + + /** + * The metadata key/value pairs assigned to instances in the cluster. + * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes + * in length. These are reflected as part of a URL in the metadata server. + * Additionally, to avoid ambiguity, keys must not conflict with any other + * metadata keys for the project or be one of the reserved keys: + * - "cluster-location" + * - "cluster-name" + * - "cluster-uid" + * - "configure-sh" + * - "containerd-configure-sh" + * - "enable-os-login" + * - "gci-ensure-gke-docker" + * - "gci-metrics-enabled" + * - "gci-update-strategy" + * - "instance-template" + * - "kube-env" + * - "startup-script" + * - "user-data" + * - "disable-address-manager" + * - "windows-startup-script-ps1" + * - "common-psm1" + * - "k8s-node-setup-psm1" + * - "install-ssh-psm1" + * - "user-profile-psm1" + * Values are free-form strings, and only have meaning as interpreted by + * the image running in the instance. The only restriction placed on them is + * that each value's size must be less than or equal to 32 KB. + * The total size of all keys and values must be less than 512 KB. + * + * Generated from protobuf field map metadata = 4; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setMetadata($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->metadata = $arr; + + return $this; + } + + /** + * The image type to use for this node. Note that for a given image type, + * the latest version of it will be used. Please see + * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for + * available image types. + * + * Generated from protobuf field string image_type = 5; + * @return string + */ + public function getImageType() + { + return $this->image_type; + } + + /** + * The image type to use for this node. Note that for a given image type, + * the latest version of it will be used. Please see + * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for + * available image types. + * + * Generated from protobuf field string image_type = 5; + * @param string $var + * @return $this + */ + public function setImageType($var) + { + GPBUtil::checkString($var, True); + $this->image_type = $var; + + return $this; + } + + /** + * The map of Kubernetes labels (key/value pairs) to be applied to each node. + * These will added in addition to any default label(s) that + * Kubernetes may apply to the node. + * In case of conflict in label keys, the applied set may differ depending on + * the Kubernetes version -- it's best to assume the behavior is undefined + * and conflicts should be avoided. + * For more information, including usage and the valid values, see: + * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ + * + * Generated from protobuf field map labels = 6; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * The map of Kubernetes labels (key/value pairs) to be applied to each node. + * These will added in addition to any default label(s) that + * Kubernetes may apply to the node. + * In case of conflict in label keys, the applied set may differ depending on + * the Kubernetes version -- it's best to assume the behavior is undefined + * and conflicts should be avoided. + * For more information, including usage and the valid values, see: + * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ + * + * Generated from protobuf field map labels = 6; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * The number of local SSD disks to be attached to the node. + * The limit for this value is dependent upon the maximum number of + * disks available on a machine per zone. See: + * https://cloud.google.com/compute/docs/disks/local-ssd + * for more information. + * + * Generated from protobuf field int32 local_ssd_count = 7; + * @return int + */ + public function getLocalSsdCount() + { + return $this->local_ssd_count; + } + + /** + * The number of local SSD disks to be attached to the node. + * The limit for this value is dependent upon the maximum number of + * disks available on a machine per zone. See: + * https://cloud.google.com/compute/docs/disks/local-ssd + * for more information. + * + * Generated from protobuf field int32 local_ssd_count = 7; + * @param int $var + * @return $this + */ + public function setLocalSsdCount($var) + { + GPBUtil::checkInt32($var); + $this->local_ssd_count = $var; + + return $this; + } + + /** + * The list of instance tags applied to all nodes. Tags are used to identify + * valid sources or targets for network firewalls and are specified by + * the client during cluster or node pool creation. Each tag within the list + * must comply with RFC1035. + * + * Generated from protobuf field repeated string tags = 8; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTags() + { + return $this->tags; + } + + /** + * The list of instance tags applied to all nodes. Tags are used to identify + * valid sources or targets for network firewalls and are specified by + * the client during cluster or node pool creation. Each tag within the list + * must comply with RFC1035. + * + * Generated from protobuf field repeated string tags = 8; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->tags = $arr; + + return $this; + } + + /** + * Whether the nodes are created as preemptible VM instances. See: + * https://cloud.google.com/compute/docs/instances/preemptible for more + * information about preemptible VM instances. + * + * Generated from protobuf field bool preemptible = 10; + * @return bool + */ + public function getPreemptible() + { + return $this->preemptible; + } + + /** + * Whether the nodes are created as preemptible VM instances. See: + * https://cloud.google.com/compute/docs/instances/preemptible for more + * information about preemptible VM instances. + * + * Generated from protobuf field bool preemptible = 10; + * @param bool $var + * @return $this + */ + public function setPreemptible($var) + { + GPBUtil::checkBool($var); + $this->preemptible = $var; + + return $this; + } + + /** + * A list of hardware accelerators to be attached to each node. + * See https://cloud.google.com/compute/docs/gpus for more information about + * support for GPUs. + * + * Generated from protobuf field repeated .google.container.v1.AcceleratorConfig accelerators = 11; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAccelerators() + { + return $this->accelerators; + } + + /** + * A list of hardware accelerators to be attached to each node. + * See https://cloud.google.com/compute/docs/gpus for more information about + * support for GPUs. + * + * Generated from protobuf field repeated .google.container.v1.AcceleratorConfig accelerators = 11; + * @param array<\Google\Cloud\Container\V1\AcceleratorConfig>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAccelerators($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\AcceleratorConfig::class); + $this->accelerators = $arr; + + return $this; + } + + /** + * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or + * 'pd-balanced') + * If unspecified, the default disk type is 'pd-standard' + * + * Generated from protobuf field string disk_type = 12; + * @return string + */ + public function getDiskType() + { + return $this->disk_type; + } + + /** + * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or + * 'pd-balanced') + * If unspecified, the default disk type is 'pd-standard' + * + * Generated from protobuf field string disk_type = 12; + * @param string $var + * @return $this + */ + public function setDiskType($var) + { + GPBUtil::checkString($var, True); + $this->disk_type = $var; + + return $this; + } + + /** + * Minimum CPU platform to be used by this instance. The instance may be + * scheduled on the specified or newer CPU platform. Applicable values are the + * friendly names of CPU platforms, such as + * `minCpuPlatform: "Intel Haswell"` or + * `minCpuPlatform: "Intel Sandy Bridge"`. For more + * information, read [how to specify min CPU + * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) + * + * Generated from protobuf field string min_cpu_platform = 13; + * @return string + */ + public function getMinCpuPlatform() + { + return $this->min_cpu_platform; + } + + /** + * Minimum CPU platform to be used by this instance. The instance may be + * scheduled on the specified or newer CPU platform. Applicable values are the + * friendly names of CPU platforms, such as + * `minCpuPlatform: "Intel Haswell"` or + * `minCpuPlatform: "Intel Sandy Bridge"`. For more + * information, read [how to specify min CPU + * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) + * + * Generated from protobuf field string min_cpu_platform = 13; + * @param string $var + * @return $this + */ + public function setMinCpuPlatform($var) + { + GPBUtil::checkString($var, True); + $this->min_cpu_platform = $var; + + return $this; + } + + /** + * The workload metadata configuration for this node. + * + * Generated from protobuf field .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + * @return \Google\Cloud\Container\V1\WorkloadMetadataConfig|null + */ + public function getWorkloadMetadataConfig() + { + return $this->workload_metadata_config; + } + + public function hasWorkloadMetadataConfig() + { + return isset($this->workload_metadata_config); + } + + public function clearWorkloadMetadataConfig() + { + unset($this->workload_metadata_config); + } + + /** + * The workload metadata configuration for this node. + * + * Generated from protobuf field .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + * @param \Google\Cloud\Container\V1\WorkloadMetadataConfig $var + * @return $this + */ + public function setWorkloadMetadataConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\WorkloadMetadataConfig::class); + $this->workload_metadata_config = $var; + + return $this; + } + + /** + * List of kubernetes taints to be applied to each node. + * For more information, including usage and the valid values, see: + * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ + * + * Generated from protobuf field repeated .google.container.v1.NodeTaint taints = 15; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTaints() + { + return $this->taints; + } + + /** + * List of kubernetes taints to be applied to each node. + * For more information, including usage and the valid values, see: + * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ + * + * Generated from protobuf field repeated .google.container.v1.NodeTaint taints = 15; + * @param array<\Google\Cloud\Container\V1\NodeTaint>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTaints($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\NodeTaint::class); + $this->taints = $arr; + + return $this; + } + + /** + * Sandbox configuration for this node. + * + * Generated from protobuf field .google.container.v1.SandboxConfig sandbox_config = 17; + * @return \Google\Cloud\Container\V1\SandboxConfig|null + */ + public function getSandboxConfig() + { + return $this->sandbox_config; + } + + public function hasSandboxConfig() + { + return isset($this->sandbox_config); + } + + public function clearSandboxConfig() + { + unset($this->sandbox_config); + } + + /** + * Sandbox configuration for this node. + * + * Generated from protobuf field .google.container.v1.SandboxConfig sandbox_config = 17; + * @param \Google\Cloud\Container\V1\SandboxConfig $var + * @return $this + */ + public function setSandboxConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\SandboxConfig::class); + $this->sandbox_config = $var; + + return $this; + } + + /** + * Setting this field will assign instances of this + * pool to run on the specified node group. This is useful for running + * workloads on [sole tenant + * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes). + * + * Generated from protobuf field string node_group = 18; + * @return string + */ + public function getNodeGroup() + { + return $this->node_group; + } + + /** + * Setting this field will assign instances of this + * pool to run on the specified node group. This is useful for running + * workloads on [sole tenant + * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes). + * + * Generated from protobuf field string node_group = 18; + * @param string $var + * @return $this + */ + public function setNodeGroup($var) + { + GPBUtil::checkString($var, True); + $this->node_group = $var; + + return $this; + } + + /** + * The optional reservation affinity. Setting this field will apply + * the specified [Zonal Compute + * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) + * to this node pool. + * + * Generated from protobuf field .google.container.v1.ReservationAffinity reservation_affinity = 19; + * @return \Google\Cloud\Container\V1\ReservationAffinity|null + */ + public function getReservationAffinity() + { + return $this->reservation_affinity; + } + + public function hasReservationAffinity() + { + return isset($this->reservation_affinity); + } + + public function clearReservationAffinity() + { + unset($this->reservation_affinity); + } + + /** + * The optional reservation affinity. Setting this field will apply + * the specified [Zonal Compute + * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) + * to this node pool. + * + * Generated from protobuf field .google.container.v1.ReservationAffinity reservation_affinity = 19; + * @param \Google\Cloud\Container\V1\ReservationAffinity $var + * @return $this + */ + public function setReservationAffinity($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ReservationAffinity::class); + $this->reservation_affinity = $var; + + return $this; + } + + /** + * Shielded Instance options. + * + * Generated from protobuf field .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + * @return \Google\Cloud\Container\V1\ShieldedInstanceConfig|null + */ + public function getShieldedInstanceConfig() + { + return $this->shielded_instance_config; + } + + public function hasShieldedInstanceConfig() + { + return isset($this->shielded_instance_config); + } + + public function clearShieldedInstanceConfig() + { + unset($this->shielded_instance_config); + } + + /** + * Shielded Instance options. + * + * Generated from protobuf field .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + * @param \Google\Cloud\Container\V1\ShieldedInstanceConfig $var + * @return $this + */ + public function setShieldedInstanceConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ShieldedInstanceConfig::class); + $this->shielded_instance_config = $var; + + return $this; + } + + /** + * Parameters that can be configured on Linux nodes. + * + * Generated from protobuf field .google.container.v1.LinuxNodeConfig linux_node_config = 21; + * @return \Google\Cloud\Container\V1\LinuxNodeConfig|null + */ + public function getLinuxNodeConfig() + { + return $this->linux_node_config; + } + + public function hasLinuxNodeConfig() + { + return isset($this->linux_node_config); + } + + public function clearLinuxNodeConfig() + { + unset($this->linux_node_config); + } + + /** + * Parameters that can be configured on Linux nodes. + * + * Generated from protobuf field .google.container.v1.LinuxNodeConfig linux_node_config = 21; + * @param \Google\Cloud\Container\V1\LinuxNodeConfig $var + * @return $this + */ + public function setLinuxNodeConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LinuxNodeConfig::class); + $this->linux_node_config = $var; + + return $this; + } + + /** + * Node kubelet configs. + * + * Generated from protobuf field .google.container.v1.NodeKubeletConfig kubelet_config = 22; + * @return \Google\Cloud\Container\V1\NodeKubeletConfig|null + */ + public function getKubeletConfig() + { + return $this->kubelet_config; + } + + public function hasKubeletConfig() + { + return isset($this->kubelet_config); + } + + public function clearKubeletConfig() + { + unset($this->kubelet_config); + } + + /** + * Node kubelet configs. + * + * Generated from protobuf field .google.container.v1.NodeKubeletConfig kubelet_config = 22; + * @param \Google\Cloud\Container\V1\NodeKubeletConfig $var + * @return $this + */ + public function setKubeletConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeKubeletConfig::class); + $this->kubelet_config = $var; + + return $this; + } + + /** + * The Customer Managed Encryption Key used to encrypt the boot disk attached + * to each node in the node pool. This should be of the form + * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. + * For more information about protecting resources with Cloud KMS Keys please + * see: + * https://cloud.google.com/compute/docs/disks/customer-managed-encryption + * + * Generated from protobuf field string boot_disk_kms_key = 23; + * @return string + */ + public function getBootDiskKmsKey() + { + return $this->boot_disk_kms_key; + } + + /** + * The Customer Managed Encryption Key used to encrypt the boot disk attached + * to each node in the node pool. This should be of the form + * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. + * For more information about protecting resources with Cloud KMS Keys please + * see: + * https://cloud.google.com/compute/docs/disks/customer-managed-encryption + * + * Generated from protobuf field string boot_disk_kms_key = 23; + * @param string $var + * @return $this + */ + public function setBootDiskKmsKey($var) + { + GPBUtil::checkString($var, True); + $this->boot_disk_kms_key = $var; + + return $this; + } + + /** + * Google Container File System (image streaming) configs. + * + * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 25; + * @return \Google\Cloud\Container\V1\GcfsConfig|null + */ + public function getGcfsConfig() + { + return $this->gcfs_config; + } + + public function hasGcfsConfig() + { + return isset($this->gcfs_config); + } + + public function clearGcfsConfig() + { + unset($this->gcfs_config); + } + + /** + * Google Container File System (image streaming) configs. + * + * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 25; + * @param \Google\Cloud\Container\V1\GcfsConfig $var + * @return $this + */ + public function setGcfsConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GcfsConfig::class); + $this->gcfs_config = $var; + + return $this; + } + + /** + * Advanced features for the Compute Engine VM. + * + * Generated from protobuf field .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + * @return \Google\Cloud\Container\V1\AdvancedMachineFeatures|null + */ + public function getAdvancedMachineFeatures() + { + return $this->advanced_machine_features; + } + + public function hasAdvancedMachineFeatures() + { + return isset($this->advanced_machine_features); + } + + public function clearAdvancedMachineFeatures() + { + unset($this->advanced_machine_features); + } + + /** + * Advanced features for the Compute Engine VM. + * + * Generated from protobuf field .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + * @param \Google\Cloud\Container\V1\AdvancedMachineFeatures $var + * @return $this + */ + public function setAdvancedMachineFeatures($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AdvancedMachineFeatures::class); + $this->advanced_machine_features = $var; + + return $this; + } + + /** + * Enable or disable gvnic in the node pool. + * + * Generated from protobuf field .google.container.v1.VirtualNIC gvnic = 29; + * @return \Google\Cloud\Container\V1\VirtualNIC|null + */ + public function getGvnic() + { + return $this->gvnic; + } + + public function hasGvnic() + { + return isset($this->gvnic); + } + + public function clearGvnic() + { + unset($this->gvnic); + } + + /** + * Enable or disable gvnic in the node pool. + * + * Generated from protobuf field .google.container.v1.VirtualNIC gvnic = 29; + * @param \Google\Cloud\Container\V1\VirtualNIC $var + * @return $this + */ + public function setGvnic($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\VirtualNIC::class); + $this->gvnic = $var; + + return $this; + } + + /** + * Spot flag for enabling Spot VM, which is a rebrand of + * the existing preemptible flag. + * + * Generated from protobuf field bool spot = 32; + * @return bool + */ + public function getSpot() + { + return $this->spot; + } + + /** + * Spot flag for enabling Spot VM, which is a rebrand of + * the existing preemptible flag. + * + * Generated from protobuf field bool spot = 32; + * @param bool $var + * @return $this + */ + public function setSpot($var) + { + GPBUtil::checkBool($var); + $this->spot = $var; + + return $this; + } + + /** + * Confidential nodes config. + * All the nodes in the node pool will be Confidential VM once enabled. + * + * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 35; + * @return \Google\Cloud\Container\V1\ConfidentialNodes|null + */ + public function getConfidentialNodes() + { + return $this->confidential_nodes; + } + + public function hasConfidentialNodes() + { + return isset($this->confidential_nodes); + } + + public function clearConfidentialNodes() + { + unset($this->confidential_nodes); + } + + /** + * Confidential nodes config. + * All the nodes in the node pool will be Confidential VM once enabled. + * + * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 35; + * @param \Google\Cloud\Container\V1\ConfidentialNodes $var + * @return $this + */ + public function setConfidentialNodes($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ConfidentialNodes::class); + $this->confidential_nodes = $var; + + return $this; + } + + /** + * Enable or disable NCCL fast socket for the node pool. + * + * Generated from protobuf field optional .google.container.v1.FastSocket fast_socket = 36; + * @return \Google\Cloud\Container\V1\FastSocket|null + */ + public function getFastSocket() + { + return $this->fast_socket; + } + + public function hasFastSocket() + { + return isset($this->fast_socket); + } + + public function clearFastSocket() + { + unset($this->fast_socket); + } + + /** + * Enable or disable NCCL fast socket for the node pool. + * + * Generated from protobuf field optional .google.container.v1.FastSocket fast_socket = 36; + * @param \Google\Cloud\Container\V1\FastSocket $var + * @return $this + */ + public function setFastSocket($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\FastSocket::class); + $this->fast_socket = $var; + + return $this; + } + + /** + * The resource labels for the node pool to use to annotate any related + * Google Compute Engine resources. + * + * Generated from protobuf field map resource_labels = 37; + * @return \Google\Protobuf\Internal\MapField + */ + public function getResourceLabels() + { + return $this->resource_labels; + } + + /** + * The resource labels for the node pool to use to annotate any related + * Google Compute Engine resources. + * + * Generated from protobuf field map resource_labels = 37; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setResourceLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->resource_labels = $arr; + + return $this; + } + + /** + * Logging configuration. + * + * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 38; + * @return \Google\Cloud\Container\V1\NodePoolLoggingConfig|null + */ + public function getLoggingConfig() + { + return $this->logging_config; + } + + public function hasLoggingConfig() + { + return isset($this->logging_config); + } + + public function clearLoggingConfig() + { + unset($this->logging_config); + } + + /** + * Logging configuration. + * + * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 38; + * @param \Google\Cloud\Container\V1\NodePoolLoggingConfig $var + * @return $this + */ + public function setLoggingConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolLoggingConfig::class); + $this->logging_config = $var; + + return $this; + } + + /** + * Parameters that can be configured on Windows nodes. + * + * Generated from protobuf field .google.container.v1.WindowsNodeConfig windows_node_config = 39; + * @return \Google\Cloud\Container\V1\WindowsNodeConfig|null + */ + public function getWindowsNodeConfig() + { + return $this->windows_node_config; + } + + public function hasWindowsNodeConfig() + { + return isset($this->windows_node_config); + } + + public function clearWindowsNodeConfig() + { + unset($this->windows_node_config); + } + + /** + * Parameters that can be configured on Windows nodes. + * + * Generated from protobuf field .google.container.v1.WindowsNodeConfig windows_node_config = 39; + * @param \Google\Cloud\Container\V1\WindowsNodeConfig $var + * @return $this + */ + public function setWindowsNodeConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\WindowsNodeConfig::class); + $this->windows_node_config = $var; + + return $this; + } + + /** + * Parameters for using raw-block Local NVMe SSDs. + * + * Generated from protobuf field .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; + * @return \Google\Cloud\Container\V1\LocalNvmeSsdBlockConfig|null + */ + public function getLocalNvmeSsdBlockConfig() + { + return $this->local_nvme_ssd_block_config; + } + + public function hasLocalNvmeSsdBlockConfig() + { + return isset($this->local_nvme_ssd_block_config); + } + + public function clearLocalNvmeSsdBlockConfig() + { + unset($this->local_nvme_ssd_block_config); + } + + /** + * Parameters for using raw-block Local NVMe SSDs. + * + * Generated from protobuf field .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; + * @param \Google\Cloud\Container\V1\LocalNvmeSsdBlockConfig $var + * @return $this + */ + public function setLocalNvmeSsdBlockConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LocalNvmeSsdBlockConfig::class); + $this->local_nvme_ssd_block_config = $var; + + return $this; + } + + /** + * Parameters for the node ephemeral storage using Local SSDs. + * If unspecified, ephemeral storage is backed by the boot disk. + * + * Generated from protobuf field .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; + * @return \Google\Cloud\Container\V1\EphemeralStorageLocalSsdConfig|null + */ + public function getEphemeralStorageLocalSsdConfig() + { + return $this->ephemeral_storage_local_ssd_config; + } + + public function hasEphemeralStorageLocalSsdConfig() + { + return isset($this->ephemeral_storage_local_ssd_config); + } + + public function clearEphemeralStorageLocalSsdConfig() + { + unset($this->ephemeral_storage_local_ssd_config); + } + + /** + * Parameters for the node ephemeral storage using Local SSDs. + * If unspecified, ephemeral storage is backed by the boot disk. + * + * Generated from protobuf field .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; + * @param \Google\Cloud\Container\V1\EphemeralStorageLocalSsdConfig $var + * @return $this + */ + public function setEphemeralStorageLocalSsdConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\EphemeralStorageLocalSsdConfig::class); + $this->ephemeral_storage_local_ssd_config = $var; + + return $this; + } + + /** + * Parameters for node pools to be backed by shared sole tenant node groups. + * + * Generated from protobuf field .google.container.v1.SoleTenantConfig sole_tenant_config = 42; + * @return \Google\Cloud\Container\V1\SoleTenantConfig|null + */ + public function getSoleTenantConfig() + { + return $this->sole_tenant_config; + } + + public function hasSoleTenantConfig() + { + return isset($this->sole_tenant_config); + } + + public function clearSoleTenantConfig() + { + unset($this->sole_tenant_config); + } + + /** + * Parameters for node pools to be backed by shared sole tenant node groups. + * + * Generated from protobuf field .google.container.v1.SoleTenantConfig sole_tenant_config = 42; + * @param \Google\Cloud\Container\V1\SoleTenantConfig $var + * @return $this + */ + public function setSoleTenantConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\SoleTenantConfig::class); + $this->sole_tenant_config = $var; + + return $this; + } + + /** + * A map of resource manager tag keys and values to be attached to the nodes. + * + * Generated from protobuf field .google.container.v1.ResourceManagerTags resource_manager_tags = 45; + * @return \Google\Cloud\Container\V1\ResourceManagerTags|null + */ + public function getResourceManagerTags() + { + return $this->resource_manager_tags; + } + + public function hasResourceManagerTags() + { + return isset($this->resource_manager_tags); + } + + public function clearResourceManagerTags() + { + unset($this->resource_manager_tags); + } + + /** + * A map of resource manager tag keys and values to be attached to the nodes. + * + * Generated from protobuf field .google.container.v1.ResourceManagerTags resource_manager_tags = 45; + * @param \Google\Cloud\Container\V1\ResourceManagerTags $var + * @return $this + */ + public function setResourceManagerTags($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ResourceManagerTags::class); + $this->resource_manager_tags = $var; + + return $this; + } + + /** + * Optional. Reserved for future use. + * + * Generated from protobuf field bool enable_confidential_storage = 46 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getEnableConfidentialStorage() + { + return $this->enable_confidential_storage; + } + + /** + * Optional. Reserved for future use. + * + * Generated from protobuf field bool enable_confidential_storage = 46 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setEnableConfidentialStorage($var) + { + GPBUtil::checkBool($var); + $this->enable_confidential_storage = $var; + + return $this; + } + + /** + * List of secondary boot disks attached to the nodes. + * + * Generated from protobuf field repeated .google.container.v1.SecondaryBootDisk secondary_boot_disks = 48; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSecondaryBootDisks() + { + return $this->secondary_boot_disks; + } + + /** + * List of secondary boot disks attached to the nodes. + * + * Generated from protobuf field repeated .google.container.v1.SecondaryBootDisk secondary_boot_disks = 48; + * @param array<\Google\Cloud\Container\V1\SecondaryBootDisk>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSecondaryBootDisks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\SecondaryBootDisk::class); + $this->secondary_boot_disks = $arr; + + return $this; + } + + /** + * Secondary boot disk update strategy. + * + * Generated from protobuf field optional .google.container.v1.SecondaryBootDiskUpdateStrategy secondary_boot_disk_update_strategy = 50; + * @return \Google\Cloud\Container\V1\SecondaryBootDiskUpdateStrategy|null + */ + public function getSecondaryBootDiskUpdateStrategy() + { + return $this->secondary_boot_disk_update_strategy; + } + + public function hasSecondaryBootDiskUpdateStrategy() + { + return isset($this->secondary_boot_disk_update_strategy); + } + + public function clearSecondaryBootDiskUpdateStrategy() + { + unset($this->secondary_boot_disk_update_strategy); + } + + /** + * Secondary boot disk update strategy. + * + * Generated from protobuf field optional .google.container.v1.SecondaryBootDiskUpdateStrategy secondary_boot_disk_update_strategy = 50; + * @param \Google\Cloud\Container\V1\SecondaryBootDiskUpdateStrategy $var + * @return $this + */ + public function setSecondaryBootDiskUpdateStrategy($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\SecondaryBootDiskUpdateStrategy::class); + $this->secondary_boot_disk_update_strategy = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfigDefaults.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfigDefaults.php new file mode 100644 index 000000000000..c217054480c1 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfigDefaults.php @@ -0,0 +1,121 @@ +google.container.v1.NodeConfigDefaults + */ +class NodeConfigDefaults extends \Google\Protobuf\Internal\Message +{ + /** + * GCFS (Google Container File System, also known as Riptide) options. + * + * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 1; + */ + protected $gcfs_config = null; + /** + * Logging configuration for node pools. + * + * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 3; + */ + protected $logging_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Container\V1\GcfsConfig $gcfs_config + * GCFS (Google Container File System, also known as Riptide) options. + * @type \Google\Cloud\Container\V1\NodePoolLoggingConfig $logging_config + * Logging configuration for node pools. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * GCFS (Google Container File System, also known as Riptide) options. + * + * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 1; + * @return \Google\Cloud\Container\V1\GcfsConfig|null + */ + public function getGcfsConfig() + { + return $this->gcfs_config; + } + + public function hasGcfsConfig() + { + return isset($this->gcfs_config); + } + + public function clearGcfsConfig() + { + unset($this->gcfs_config); + } + + /** + * GCFS (Google Container File System, also known as Riptide) options. + * + * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 1; + * @param \Google\Cloud\Container\V1\GcfsConfig $var + * @return $this + */ + public function setGcfsConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GcfsConfig::class); + $this->gcfs_config = $var; + + return $this; + } + + /** + * Logging configuration for node pools. + * + * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 3; + * @return \Google\Cloud\Container\V1\NodePoolLoggingConfig|null + */ + public function getLoggingConfig() + { + return $this->logging_config; + } + + public function hasLoggingConfig() + { + return isset($this->logging_config); + } + + public function clearLoggingConfig() + { + unset($this->logging_config); + } + + /** + * Logging configuration for node pools. + * + * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 3; + * @param \Google\Cloud\Container\V1\NodePoolLoggingConfig $var + * @return $this + */ + public function setLoggingConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolLoggingConfig::class); + $this->logging_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeKubeletConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeKubeletConfig.php new file mode 100644 index 000000000000..a6d7d3efb3a3 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeKubeletConfig.php @@ -0,0 +1,348 @@ +google.container.v1.NodeKubeletConfig + */ +class NodeKubeletConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Control the CPU management policy on the node. + * See + * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ + * The following values are allowed. + * * "none": the default, which represents the existing scheduling behavior. + * * "static": allows pods with certain resource characteristics to be granted + * increased CPU affinity and exclusivity on the node. + * The default value is 'none' if unspecified. + * + * Generated from protobuf field string cpu_manager_policy = 1; + */ + protected $cpu_manager_policy = ''; + /** + * Enable CPU CFS quota enforcement for containers that specify CPU limits. + * This option is enabled by default which makes kubelet use CFS quota + * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to + * enforce container CPU limits. Otherwise, CPU limits will not be enforced at + * all. + * Disable this option to mitigate CPU throttling problems while still having + * your pods to be in Guaranteed QoS class by specifying the CPU limits. + * The default value is 'true' if unspecified. + * + * Generated from protobuf field .google.protobuf.BoolValue cpu_cfs_quota = 2; + */ + protected $cpu_cfs_quota = null; + /** + * Set the CPU CFS quota period value 'cpu.cfs_period_us'. + * The string must be a sequence of decimal numbers, each with optional + * fraction and a unit suffix, such as "300ms". + * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". + * The value must be a positive duration. + * + * Generated from protobuf field string cpu_cfs_quota_period = 3; + */ + protected $cpu_cfs_quota_period = ''; + /** + * Set the Pod PID limits. See + * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits + * Controls the maximum number of processes allowed to run in a pod. The value + * must be greater than or equal to 1024 and less than 4194304. + * + * Generated from protobuf field int64 pod_pids_limit = 4; + */ + protected $pod_pids_limit = 0; + /** + * Enable or disable Kubelet read only port. + * + * Generated from protobuf field optional bool insecure_kubelet_readonly_port_enabled = 7; + */ + protected $insecure_kubelet_readonly_port_enabled = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $cpu_manager_policy + * Control the CPU management policy on the node. + * See + * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ + * The following values are allowed. + * * "none": the default, which represents the existing scheduling behavior. + * * "static": allows pods with certain resource characteristics to be granted + * increased CPU affinity and exclusivity on the node. + * The default value is 'none' if unspecified. + * @type \Google\Protobuf\BoolValue $cpu_cfs_quota + * Enable CPU CFS quota enforcement for containers that specify CPU limits. + * This option is enabled by default which makes kubelet use CFS quota + * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to + * enforce container CPU limits. Otherwise, CPU limits will not be enforced at + * all. + * Disable this option to mitigate CPU throttling problems while still having + * your pods to be in Guaranteed QoS class by specifying the CPU limits. + * The default value is 'true' if unspecified. + * @type string $cpu_cfs_quota_period + * Set the CPU CFS quota period value 'cpu.cfs_period_us'. + * The string must be a sequence of decimal numbers, each with optional + * fraction and a unit suffix, such as "300ms". + * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". + * The value must be a positive duration. + * @type int|string $pod_pids_limit + * Set the Pod PID limits. See + * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits + * Controls the maximum number of processes allowed to run in a pod. The value + * must be greater than or equal to 1024 and less than 4194304. + * @type bool $insecure_kubelet_readonly_port_enabled + * Enable or disable Kubelet read only port. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Control the CPU management policy on the node. + * See + * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ + * The following values are allowed. + * * "none": the default, which represents the existing scheduling behavior. + * * "static": allows pods with certain resource characteristics to be granted + * increased CPU affinity and exclusivity on the node. + * The default value is 'none' if unspecified. + * + * Generated from protobuf field string cpu_manager_policy = 1; + * @return string + */ + public function getCpuManagerPolicy() + { + return $this->cpu_manager_policy; + } + + /** + * Control the CPU management policy on the node. + * See + * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ + * The following values are allowed. + * * "none": the default, which represents the existing scheduling behavior. + * * "static": allows pods with certain resource characteristics to be granted + * increased CPU affinity and exclusivity on the node. + * The default value is 'none' if unspecified. + * + * Generated from protobuf field string cpu_manager_policy = 1; + * @param string $var + * @return $this + */ + public function setCpuManagerPolicy($var) + { + GPBUtil::checkString($var, True); + $this->cpu_manager_policy = $var; + + return $this; + } + + /** + * Enable CPU CFS quota enforcement for containers that specify CPU limits. + * This option is enabled by default which makes kubelet use CFS quota + * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to + * enforce container CPU limits. Otherwise, CPU limits will not be enforced at + * all. + * Disable this option to mitigate CPU throttling problems while still having + * your pods to be in Guaranteed QoS class by specifying the CPU limits. + * The default value is 'true' if unspecified. + * + * Generated from protobuf field .google.protobuf.BoolValue cpu_cfs_quota = 2; + * @return \Google\Protobuf\BoolValue|null + */ + public function getCpuCfsQuota() + { + return $this->cpu_cfs_quota; + } + + public function hasCpuCfsQuota() + { + return isset($this->cpu_cfs_quota); + } + + public function clearCpuCfsQuota() + { + unset($this->cpu_cfs_quota); + } + + /** + * Returns the unboxed value from getCpuCfsQuota() + + * Enable CPU CFS quota enforcement for containers that specify CPU limits. + * This option is enabled by default which makes kubelet use CFS quota + * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to + * enforce container CPU limits. Otherwise, CPU limits will not be enforced at + * all. + * Disable this option to mitigate CPU throttling problems while still having + * your pods to be in Guaranteed QoS class by specifying the CPU limits. + * The default value is 'true' if unspecified. + * + * Generated from protobuf field .google.protobuf.BoolValue cpu_cfs_quota = 2; + * @return bool|null + */ + public function getCpuCfsQuotaUnwrapped() + { + return $this->readWrapperValue("cpu_cfs_quota"); + } + + /** + * Enable CPU CFS quota enforcement for containers that specify CPU limits. + * This option is enabled by default which makes kubelet use CFS quota + * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to + * enforce container CPU limits. Otherwise, CPU limits will not be enforced at + * all. + * Disable this option to mitigate CPU throttling problems while still having + * your pods to be in Guaranteed QoS class by specifying the CPU limits. + * The default value is 'true' if unspecified. + * + * Generated from protobuf field .google.protobuf.BoolValue cpu_cfs_quota = 2; + * @param \Google\Protobuf\BoolValue $var + * @return $this + */ + public function setCpuCfsQuota($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); + $this->cpu_cfs_quota = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. + + * Enable CPU CFS quota enforcement for containers that specify CPU limits. + * This option is enabled by default which makes kubelet use CFS quota + * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to + * enforce container CPU limits. Otherwise, CPU limits will not be enforced at + * all. + * Disable this option to mitigate CPU throttling problems while still having + * your pods to be in Guaranteed QoS class by specifying the CPU limits. + * The default value is 'true' if unspecified. + * + * Generated from protobuf field .google.protobuf.BoolValue cpu_cfs_quota = 2; + * @param bool|null $var + * @return $this + */ + public function setCpuCfsQuotaUnwrapped($var) + { + $this->writeWrapperValue("cpu_cfs_quota", $var); + return $this;} + + /** + * Set the CPU CFS quota period value 'cpu.cfs_period_us'. + * The string must be a sequence of decimal numbers, each with optional + * fraction and a unit suffix, such as "300ms". + * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". + * The value must be a positive duration. + * + * Generated from protobuf field string cpu_cfs_quota_period = 3; + * @return string + */ + public function getCpuCfsQuotaPeriod() + { + return $this->cpu_cfs_quota_period; + } + + /** + * Set the CPU CFS quota period value 'cpu.cfs_period_us'. + * The string must be a sequence of decimal numbers, each with optional + * fraction and a unit suffix, such as "300ms". + * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". + * The value must be a positive duration. + * + * Generated from protobuf field string cpu_cfs_quota_period = 3; + * @param string $var + * @return $this + */ + public function setCpuCfsQuotaPeriod($var) + { + GPBUtil::checkString($var, True); + $this->cpu_cfs_quota_period = $var; + + return $this; + } + + /** + * Set the Pod PID limits. See + * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits + * Controls the maximum number of processes allowed to run in a pod. The value + * must be greater than or equal to 1024 and less than 4194304. + * + * Generated from protobuf field int64 pod_pids_limit = 4; + * @return int|string + */ + public function getPodPidsLimit() + { + return $this->pod_pids_limit; + } + + /** + * Set the Pod PID limits. See + * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits + * Controls the maximum number of processes allowed to run in a pod. The value + * must be greater than or equal to 1024 and less than 4194304. + * + * Generated from protobuf field int64 pod_pids_limit = 4; + * @param int|string $var + * @return $this + */ + public function setPodPidsLimit($var) + { + GPBUtil::checkInt64($var); + $this->pod_pids_limit = $var; + + return $this; + } + + /** + * Enable or disable Kubelet read only port. + * + * Generated from protobuf field optional bool insecure_kubelet_readonly_port_enabled = 7; + * @return bool + */ + public function getInsecureKubeletReadonlyPortEnabled() + { + return isset($this->insecure_kubelet_readonly_port_enabled) ? $this->insecure_kubelet_readonly_port_enabled : false; + } + + public function hasInsecureKubeletReadonlyPortEnabled() + { + return isset($this->insecure_kubelet_readonly_port_enabled); + } + + public function clearInsecureKubeletReadonlyPortEnabled() + { + unset($this->insecure_kubelet_readonly_port_enabled); + } + + /** + * Enable or disable Kubelet read only port. + * + * Generated from protobuf field optional bool insecure_kubelet_readonly_port_enabled = 7; + * @param bool $var + * @return $this + */ + public function setInsecureKubeletReadonlyPortEnabled($var) + { + GPBUtil::checkBool($var); + $this->insecure_kubelet_readonly_port_enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeLabels.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeLabels.php new file mode 100644 index 000000000000..c358a5fd2b22 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeLabels.php @@ -0,0 +1,68 @@ +google.container.v1.NodeLabels + */ +class NodeLabels extends \Google\Protobuf\Internal\Message +{ + /** + * Map of node label keys and node label values. + * + * Generated from protobuf field map labels = 1; + */ + private $labels; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\MapField $labels + * Map of node label keys and node label values. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Map of node label keys and node label values. + * + * Generated from protobuf field map labels = 1; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Map of node label keys and node label values. + * + * Generated from protobuf field map labels = 1; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeManagement.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeManagement.php new file mode 100644 index 000000000000..a915f86917fc --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeManagement.php @@ -0,0 +1,166 @@ +google.container.v1.NodeManagement + */ +class NodeManagement extends \Google\Protobuf\Internal\Message +{ + /** + * A flag that specifies whether node auto-upgrade is enabled for the node + * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool + * up to date with the latest release version of Kubernetes. + * + * Generated from protobuf field bool auto_upgrade = 1; + */ + protected $auto_upgrade = false; + /** + * A flag that specifies whether the node auto-repair is enabled for the node + * pool. If enabled, the nodes in this node pool will be monitored and, if + * they fail health checks too many times, an automatic repair action will be + * triggered. + * + * Generated from protobuf field bool auto_repair = 2; + */ + protected $auto_repair = false; + /** + * Specifies the Auto Upgrade knobs for the node pool. + * + * Generated from protobuf field .google.container.v1.AutoUpgradeOptions upgrade_options = 10; + */ + protected $upgrade_options = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $auto_upgrade + * A flag that specifies whether node auto-upgrade is enabled for the node + * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool + * up to date with the latest release version of Kubernetes. + * @type bool $auto_repair + * A flag that specifies whether the node auto-repair is enabled for the node + * pool. If enabled, the nodes in this node pool will be monitored and, if + * they fail health checks too many times, an automatic repair action will be + * triggered. + * @type \Google\Cloud\Container\V1\AutoUpgradeOptions $upgrade_options + * Specifies the Auto Upgrade knobs for the node pool. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * A flag that specifies whether node auto-upgrade is enabled for the node + * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool + * up to date with the latest release version of Kubernetes. + * + * Generated from protobuf field bool auto_upgrade = 1; + * @return bool + */ + public function getAutoUpgrade() + { + return $this->auto_upgrade; + } + + /** + * A flag that specifies whether node auto-upgrade is enabled for the node + * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool + * up to date with the latest release version of Kubernetes. + * + * Generated from protobuf field bool auto_upgrade = 1; + * @param bool $var + * @return $this + */ + public function setAutoUpgrade($var) + { + GPBUtil::checkBool($var); + $this->auto_upgrade = $var; + + return $this; + } + + /** + * A flag that specifies whether the node auto-repair is enabled for the node + * pool. If enabled, the nodes in this node pool will be monitored and, if + * they fail health checks too many times, an automatic repair action will be + * triggered. + * + * Generated from protobuf field bool auto_repair = 2; + * @return bool + */ + public function getAutoRepair() + { + return $this->auto_repair; + } + + /** + * A flag that specifies whether the node auto-repair is enabled for the node + * pool. If enabled, the nodes in this node pool will be monitored and, if + * they fail health checks too many times, an automatic repair action will be + * triggered. + * + * Generated from protobuf field bool auto_repair = 2; + * @param bool $var + * @return $this + */ + public function setAutoRepair($var) + { + GPBUtil::checkBool($var); + $this->auto_repair = $var; + + return $this; + } + + /** + * Specifies the Auto Upgrade knobs for the node pool. + * + * Generated from protobuf field .google.container.v1.AutoUpgradeOptions upgrade_options = 10; + * @return \Google\Cloud\Container\V1\AutoUpgradeOptions|null + */ + public function getUpgradeOptions() + { + return $this->upgrade_options; + } + + public function hasUpgradeOptions() + { + return isset($this->upgrade_options); + } + + public function clearUpgradeOptions() + { + unset($this->upgrade_options); + } + + /** + * Specifies the Auto Upgrade knobs for the node pool. + * + * Generated from protobuf field .google.container.v1.AutoUpgradeOptions upgrade_options = 10; + * @param \Google\Cloud\Container\V1\AutoUpgradeOptions $var + * @return $this + */ + public function setUpgradeOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AutoUpgradeOptions::class); + $this->upgrade_options = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig.php new file mode 100644 index 000000000000..29e7d391f6f6 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig.php @@ -0,0 +1,513 @@ +google.container.v1.NodeNetworkConfig + */ +class NodeNetworkConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Input only. Whether to create a new range for pod IPs in this node pool. + * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they + * are not specified. + * If neither `create_pod_range` or `pod_range` are specified, the + * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is + * used. + * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. + * This field cannot be changed after the node pool has been created. + * + * Generated from protobuf field bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + protected $create_pod_range = false; + /** + * The ID of the secondary range for pod IPs. + * If `create_pod_range` is true, this ID is used for the new range. + * If `create_pod_range` is false, uses an existing secondary range with this + * ID. + * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. + * This field cannot be changed after the node pool has been created. + * + * Generated from protobuf field string pod_range = 5; + */ + protected $pod_range = ''; + /** + * The IP address range for pod IPs in this node pool. + * Only applicable if `create_pod_range` is true. + * Set to blank to have a range chosen with the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) to pick a specific range to use. + * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. + * This field cannot be changed after the node pool has been created. + * + * Generated from protobuf field string pod_ipv4_cidr_block = 6; + */ + protected $pod_ipv4_cidr_block = ''; + /** + * Whether nodes have internal IP addresses only. + * If enable_private_nodes is not specified, then the value is derived from + * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes] + * + * Generated from protobuf field optional bool enable_private_nodes = 9; + */ + protected $enable_private_nodes = null; + /** + * Network bandwidth tier configuration. + * + * Generated from protobuf field optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; + */ + protected $network_performance_config = null; + /** + * [PRIVATE FIELD] + * Pod CIDR size overprovisioning config for the nodepool. + * Pod CIDR size per node depends on max_pods_per_node. By default, the value + * of max_pods_per_node is rounded off to next power of 2 and we then double + * that to get the size of pod CIDR block per node. + * Example: max_pods_per_node of 30 would result in 64 IPs (/26). + * This config can disable the doubling of IPs (we still round off to next + * power of 2) + * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when + * overprovisioning is disabled. + * + * Generated from protobuf field .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; + */ + protected $pod_cidr_overprovision_config = null; + /** + * We specify the additional node networks for this node pool using this list. + * Each node network corresponds to an additional interface + * + * Generated from protobuf field repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + private $additional_node_network_configs; + /** + * We specify the additional pod networks for this node pool using this list. + * Each pod network corresponds to an additional alias IP range for the node + * + * Generated from protobuf field repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + private $additional_pod_network_configs; + /** + * Output only. [Output only] The utilization of the IPv4 range for the pod. + * The ratio is Usage/[Total number of IPs in the secondary range], + * Usage=numNodes*numZones*podIPsPerNode. + * + * Generated from protobuf field double pod_ipv4_range_utilization = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $pod_ipv4_range_utilization = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $create_pod_range + * Input only. Whether to create a new range for pod IPs in this node pool. + * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they + * are not specified. + * If neither `create_pod_range` or `pod_range` are specified, the + * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is + * used. + * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. + * This field cannot be changed after the node pool has been created. + * @type string $pod_range + * The ID of the secondary range for pod IPs. + * If `create_pod_range` is true, this ID is used for the new range. + * If `create_pod_range` is false, uses an existing secondary range with this + * ID. + * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. + * This field cannot be changed after the node pool has been created. + * @type string $pod_ipv4_cidr_block + * The IP address range for pod IPs in this node pool. + * Only applicable if `create_pod_range` is true. + * Set to blank to have a range chosen with the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) to pick a specific range to use. + * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. + * This field cannot be changed after the node pool has been created. + * @type bool $enable_private_nodes + * Whether nodes have internal IP addresses only. + * If enable_private_nodes is not specified, then the value is derived from + * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes] + * @type \Google\Cloud\Container\V1\NodeNetworkConfig\NetworkPerformanceConfig $network_performance_config + * Network bandwidth tier configuration. + * @type \Google\Cloud\Container\V1\PodCIDROverprovisionConfig $pod_cidr_overprovision_config + * [PRIVATE FIELD] + * Pod CIDR size overprovisioning config for the nodepool. + * Pod CIDR size per node depends on max_pods_per_node. By default, the value + * of max_pods_per_node is rounded off to next power of 2 and we then double + * that to get the size of pod CIDR block per node. + * Example: max_pods_per_node of 30 would result in 64 IPs (/26). + * This config can disable the doubling of IPs (we still round off to next + * power of 2) + * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when + * overprovisioning is disabled. + * @type array<\Google\Cloud\Container\V1\AdditionalNodeNetworkConfig>|\Google\Protobuf\Internal\RepeatedField $additional_node_network_configs + * We specify the additional node networks for this node pool using this list. + * Each node network corresponds to an additional interface + * @type array<\Google\Cloud\Container\V1\AdditionalPodNetworkConfig>|\Google\Protobuf\Internal\RepeatedField $additional_pod_network_configs + * We specify the additional pod networks for this node pool using this list. + * Each pod network corresponds to an additional alias IP range for the node + * @type float $pod_ipv4_range_utilization + * Output only. [Output only] The utilization of the IPv4 range for the pod. + * The ratio is Usage/[Total number of IPs in the secondary range], + * Usage=numNodes*numZones*podIPsPerNode. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Input only. Whether to create a new range for pod IPs in this node pool. + * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they + * are not specified. + * If neither `create_pod_range` or `pod_range` are specified, the + * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is + * used. + * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. + * This field cannot be changed after the node pool has been created. + * + * Generated from protobuf field bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return bool + */ + public function getCreatePodRange() + { + return $this->create_pod_range; + } + + /** + * Input only. Whether to create a new range for pod IPs in this node pool. + * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they + * are not specified. + * If neither `create_pod_range` or `pod_range` are specified, the + * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is + * used. + * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. + * This field cannot be changed after the node pool has been created. + * + * Generated from protobuf field bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setCreatePodRange($var) + { + GPBUtil::checkBool($var); + $this->create_pod_range = $var; + + return $this; + } + + /** + * The ID of the secondary range for pod IPs. + * If `create_pod_range` is true, this ID is used for the new range. + * If `create_pod_range` is false, uses an existing secondary range with this + * ID. + * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. + * This field cannot be changed after the node pool has been created. + * + * Generated from protobuf field string pod_range = 5; + * @return string + */ + public function getPodRange() + { + return $this->pod_range; + } + + /** + * The ID of the secondary range for pod IPs. + * If `create_pod_range` is true, this ID is used for the new range. + * If `create_pod_range` is false, uses an existing secondary range with this + * ID. + * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. + * This field cannot be changed after the node pool has been created. + * + * Generated from protobuf field string pod_range = 5; + * @param string $var + * @return $this + */ + public function setPodRange($var) + { + GPBUtil::checkString($var, True); + $this->pod_range = $var; + + return $this; + } + + /** + * The IP address range for pod IPs in this node pool. + * Only applicable if `create_pod_range` is true. + * Set to blank to have a range chosen with the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) to pick a specific range to use. + * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. + * This field cannot be changed after the node pool has been created. + * + * Generated from protobuf field string pod_ipv4_cidr_block = 6; + * @return string + */ + public function getPodIpv4CidrBlock() + { + return $this->pod_ipv4_cidr_block; + } + + /** + * The IP address range for pod IPs in this node pool. + * Only applicable if `create_pod_range` is true. + * Set to blank to have a range chosen with the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) to pick a specific range to use. + * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. + * This field cannot be changed after the node pool has been created. + * + * Generated from protobuf field string pod_ipv4_cidr_block = 6; + * @param string $var + * @return $this + */ + public function setPodIpv4CidrBlock($var) + { + GPBUtil::checkString($var, True); + $this->pod_ipv4_cidr_block = $var; + + return $this; + } + + /** + * Whether nodes have internal IP addresses only. + * If enable_private_nodes is not specified, then the value is derived from + * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes] + * + * Generated from protobuf field optional bool enable_private_nodes = 9; + * @return bool + */ + public function getEnablePrivateNodes() + { + return isset($this->enable_private_nodes) ? $this->enable_private_nodes : false; + } + + public function hasEnablePrivateNodes() + { + return isset($this->enable_private_nodes); + } + + public function clearEnablePrivateNodes() + { + unset($this->enable_private_nodes); + } + + /** + * Whether nodes have internal IP addresses only. + * If enable_private_nodes is not specified, then the value is derived from + * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes] + * + * Generated from protobuf field optional bool enable_private_nodes = 9; + * @param bool $var + * @return $this + */ + public function setEnablePrivateNodes($var) + { + GPBUtil::checkBool($var); + $this->enable_private_nodes = $var; + + return $this; + } + + /** + * Network bandwidth tier configuration. + * + * Generated from protobuf field optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; + * @return \Google\Cloud\Container\V1\NodeNetworkConfig\NetworkPerformanceConfig|null + */ + public function getNetworkPerformanceConfig() + { + return $this->network_performance_config; + } + + public function hasNetworkPerformanceConfig() + { + return isset($this->network_performance_config); + } + + public function clearNetworkPerformanceConfig() + { + unset($this->network_performance_config); + } + + /** + * Network bandwidth tier configuration. + * + * Generated from protobuf field optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; + * @param \Google\Cloud\Container\V1\NodeNetworkConfig\NetworkPerformanceConfig $var + * @return $this + */ + public function setNetworkPerformanceConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeNetworkConfig\NetworkPerformanceConfig::class); + $this->network_performance_config = $var; + + return $this; + } + + /** + * [PRIVATE FIELD] + * Pod CIDR size overprovisioning config for the nodepool. + * Pod CIDR size per node depends on max_pods_per_node. By default, the value + * of max_pods_per_node is rounded off to next power of 2 and we then double + * that to get the size of pod CIDR block per node. + * Example: max_pods_per_node of 30 would result in 64 IPs (/26). + * This config can disable the doubling of IPs (we still round off to next + * power of 2) + * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when + * overprovisioning is disabled. + * + * Generated from protobuf field .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; + * @return \Google\Cloud\Container\V1\PodCIDROverprovisionConfig|null + */ + public function getPodCidrOverprovisionConfig() + { + return $this->pod_cidr_overprovision_config; + } + + public function hasPodCidrOverprovisionConfig() + { + return isset($this->pod_cidr_overprovision_config); + } + + public function clearPodCidrOverprovisionConfig() + { + unset($this->pod_cidr_overprovision_config); + } + + /** + * [PRIVATE FIELD] + * Pod CIDR size overprovisioning config for the nodepool. + * Pod CIDR size per node depends on max_pods_per_node. By default, the value + * of max_pods_per_node is rounded off to next power of 2 and we then double + * that to get the size of pod CIDR block per node. + * Example: max_pods_per_node of 30 would result in 64 IPs (/26). + * This config can disable the doubling of IPs (we still round off to next + * power of 2) + * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when + * overprovisioning is disabled. + * + * Generated from protobuf field .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; + * @param \Google\Cloud\Container\V1\PodCIDROverprovisionConfig $var + * @return $this + */ + public function setPodCidrOverprovisionConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\PodCIDROverprovisionConfig::class); + $this->pod_cidr_overprovision_config = $var; + + return $this; + } + + /** + * We specify the additional node networks for this node pool using this list. + * Each node network corresponds to an additional interface + * + * Generated from protobuf field repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAdditionalNodeNetworkConfigs() + { + return $this->additional_node_network_configs; + } + + /** + * We specify the additional node networks for this node pool using this list. + * Each node network corresponds to an additional interface + * + * Generated from protobuf field repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + * @param array<\Google\Cloud\Container\V1\AdditionalNodeNetworkConfig>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAdditionalNodeNetworkConfigs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\AdditionalNodeNetworkConfig::class); + $this->additional_node_network_configs = $arr; + + return $this; + } + + /** + * We specify the additional pod networks for this node pool using this list. + * Each pod network corresponds to an additional alias IP range for the node + * + * Generated from protobuf field repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAdditionalPodNetworkConfigs() + { + return $this->additional_pod_network_configs; + } + + /** + * We specify the additional pod networks for this node pool using this list. + * Each pod network corresponds to an additional alias IP range for the node + * + * Generated from protobuf field repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + * @param array<\Google\Cloud\Container\V1\AdditionalPodNetworkConfig>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAdditionalPodNetworkConfigs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\AdditionalPodNetworkConfig::class); + $this->additional_pod_network_configs = $arr; + + return $this; + } + + /** + * Output only. [Output only] The utilization of the IPv4 range for the pod. + * The ratio is Usage/[Total number of IPs in the secondary range], + * Usage=numNodes*numZones*podIPsPerNode. + * + * Generated from protobuf field double pod_ipv4_range_utilization = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getPodIpv4RangeUtilization() + { + return $this->pod_ipv4_range_utilization; + } + + /** + * Output only. [Output only] The utilization of the IPv4 range for the pod. + * The ratio is Usage/[Total number of IPs in the secondary range], + * Usage=numNodes*numZones*podIPsPerNode. + * + * Generated from protobuf field double pod_ipv4_range_utilization = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setPodIpv4RangeUtilization($var) + { + GPBUtil::checkDouble($var); + $this->pod_ipv4_range_utilization = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig.php new file mode 100644 index 000000000000..171177950b7c --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig.php @@ -0,0 +1,80 @@ +google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig + */ +class NetworkPerformanceConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Specifies the total network bandwidth tier for the NodePool. + * + * Generated from protobuf field optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + */ + protected $total_egress_bandwidth_tier = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $total_egress_bandwidth_tier + * Specifies the total network bandwidth tier for the NodePool. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Specifies the total network bandwidth tier for the NodePool. + * + * Generated from protobuf field optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return int + */ + public function getTotalEgressBandwidthTier() + { + return isset($this->total_egress_bandwidth_tier) ? $this->total_egress_bandwidth_tier : 0; + } + + public function hasTotalEgressBandwidthTier() + { + return isset($this->total_egress_bandwidth_tier); + } + + public function clearTotalEgressBandwidthTier() + { + unset($this->total_egress_bandwidth_tier); + } + + /** + * Specifies the total network bandwidth tier for the NodePool. + * + * Generated from protobuf field optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @param int $var + * @return $this + */ + public function setTotalEgressBandwidthTier($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NodeNetworkConfig\NetworkPerformanceConfig\Tier::class); + $this->total_egress_bandwidth_tier = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(NetworkPerformanceConfig::class, \Google\Cloud\Container\V1\NodeNetworkConfig_NetworkPerformanceConfig::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig/Tier.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig/Tier.php new file mode 100644 index 000000000000..7101c3334fff --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig/Tier.php @@ -0,0 +1,57 @@ +google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier + */ +class Tier +{ + /** + * Default value + * + * Generated from protobuf enum TIER_UNSPECIFIED = 0; + */ + const TIER_UNSPECIFIED = 0; + /** + * Higher bandwidth, actual values based on VM size. + * + * Generated from protobuf enum TIER_1 = 1; + */ + const TIER_1 = 1; + + private static $valueToName = [ + self::TIER_UNSPECIFIED => 'TIER_UNSPECIFIED', + self::TIER_1 => 'TIER_1', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Tier::class, \Google\Cloud\Container\V1\NodeNetworkConfig_NetworkPerformanceConfig_Tier::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool.php new file mode 100644 index 000000000000..3654254ce77d --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool.php @@ -0,0 +1,953 @@ +google.container.v1.NodePool + */ +class NodePool extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the node pool. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * The node configuration of the pool. + * + * Generated from protobuf field .google.container.v1.NodeConfig config = 2; + */ + protected $config = null; + /** + * The initial node count for the pool. You must ensure that your + * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) + * is sufficient for this number of instances. You must also have available + * firewall and routes quota. + * + * Generated from protobuf field int32 initial_node_count = 3; + */ + protected $initial_node_count = 0; + /** + * The list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * NodePool's nodes should be located. + * If this value is unspecified during node pool creation, the + * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) + * value will be used, instead. + * Warning: changing node pool locations will result in nodes being added + * and/or removed. + * + * Generated from protobuf field repeated string locations = 13; + */ + private $locations; + /** + * Networking configuration for this NodePool. If specified, it overrides the + * cluster-level defaults. + * + * Generated from protobuf field .google.container.v1.NodeNetworkConfig network_config = 14; + */ + protected $network_config = null; + /** + * [Output only] Server-defined URL for the resource. + * + * Generated from protobuf field string self_link = 100; + */ + protected $self_link = ''; + /** + * The version of Kubernetes running on this NodePool's nodes. If unspecified, + * it defaults as described + * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version). + * + * Generated from protobuf field string version = 101; + */ + protected $version = ''; + /** + * [Output only] The resource URLs of the [managed instance + * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) + * associated with this node pool. + * During the node pool blue-green upgrade operation, the URLs contain both + * blue and green resources. + * + * Generated from protobuf field repeated string instance_group_urls = 102; + */ + private $instance_group_urls; + /** + * [Output only] The status of the nodes in this pool instance. + * + * Generated from protobuf field .google.container.v1.NodePool.Status status = 103; + */ + protected $status = 0; + /** + * [Output only] Deprecated. Use conditions instead. + * Additional information about the current status of this + * node pool instance, if available. + * + * Generated from protobuf field string status_message = 104 [deprecated = true]; + * @deprecated + */ + protected $status_message = ''; + /** + * Autoscaler configuration for this NodePool. Autoscaler is enabled + * only if a valid configuration is present. + * + * Generated from protobuf field .google.container.v1.NodePoolAutoscaling autoscaling = 4; + */ + protected $autoscaling = null; + /** + * NodeManagement configuration for this NodePool. + * + * Generated from protobuf field .google.container.v1.NodeManagement management = 5; + */ + protected $management = null; + /** + * The constraint on the maximum number of pods that can be run + * simultaneously on a node in the node pool. + * + * Generated from protobuf field .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; + */ + protected $max_pods_constraint = null; + /** + * Which conditions caused the current node pool state. + * + * Generated from protobuf field repeated .google.container.v1.StatusCondition conditions = 105; + */ + private $conditions; + /** + * [Output only] The pod CIDR block size per node in this node pool. + * + * Generated from protobuf field int32 pod_ipv4_cidr_size = 7; + */ + protected $pod_ipv4_cidr_size = 0; + /** + * Upgrade settings control disruption and speed of the upgrade. + * + * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + protected $upgrade_settings = null; + /** + * Specifies the node placement policy. + * + * Generated from protobuf field .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; + */ + protected $placement_policy = null; + /** + * Output only. [Output only] Update info contains relevant information during + * a node pool update. + * + * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_info = null; + /** + * This checksum is computed by the server based on the value of node pool + * fields, and may be sent on update requests to ensure the client has an + * up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 110; + */ + protected $etag = ''; + /** + * Specifies the configuration of queued provisioning. + * + * Generated from protobuf field .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; + */ + protected $queued_provisioning = null; + /** + * Enable best effort provisioning for nodes + * + * Generated from protobuf field .google.container.v1.BestEffortProvisioning best_effort_provisioning = 113; + */ + protected $best_effort_provisioning = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of the node pool. + * @type \Google\Cloud\Container\V1\NodeConfig $config + * The node configuration of the pool. + * @type int $initial_node_count + * The initial node count for the pool. You must ensure that your + * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) + * is sufficient for this number of instances. You must also have available + * firewall and routes quota. + * @type array|\Google\Protobuf\Internal\RepeatedField $locations + * The list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * NodePool's nodes should be located. + * If this value is unspecified during node pool creation, the + * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) + * value will be used, instead. + * Warning: changing node pool locations will result in nodes being added + * and/or removed. + * @type \Google\Cloud\Container\V1\NodeNetworkConfig $network_config + * Networking configuration for this NodePool. If specified, it overrides the + * cluster-level defaults. + * @type string $self_link + * [Output only] Server-defined URL for the resource. + * @type string $version + * The version of Kubernetes running on this NodePool's nodes. If unspecified, + * it defaults as described + * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version). + * @type array|\Google\Protobuf\Internal\RepeatedField $instance_group_urls + * [Output only] The resource URLs of the [managed instance + * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) + * associated with this node pool. + * During the node pool blue-green upgrade operation, the URLs contain both + * blue and green resources. + * @type int $status + * [Output only] The status of the nodes in this pool instance. + * @type string $status_message + * [Output only] Deprecated. Use conditions instead. + * Additional information about the current status of this + * node pool instance, if available. + * @type \Google\Cloud\Container\V1\NodePoolAutoscaling $autoscaling + * Autoscaler configuration for this NodePool. Autoscaler is enabled + * only if a valid configuration is present. + * @type \Google\Cloud\Container\V1\NodeManagement $management + * NodeManagement configuration for this NodePool. + * @type \Google\Cloud\Container\V1\MaxPodsConstraint $max_pods_constraint + * The constraint on the maximum number of pods that can be run + * simultaneously on a node in the node pool. + * @type array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $conditions + * Which conditions caused the current node pool state. + * @type int $pod_ipv4_cidr_size + * [Output only] The pod CIDR block size per node in this node pool. + * @type \Google\Cloud\Container\V1\NodePool\UpgradeSettings $upgrade_settings + * Upgrade settings control disruption and speed of the upgrade. + * @type \Google\Cloud\Container\V1\NodePool\PlacementPolicy $placement_policy + * Specifies the node placement policy. + * @type \Google\Cloud\Container\V1\NodePool\UpdateInfo $update_info + * Output only. [Output only] Update info contains relevant information during + * a node pool update. + * @type string $etag + * This checksum is computed by the server based on the value of node pool + * fields, and may be sent on update requests to ensure the client has an + * up-to-date value before proceeding. + * @type \Google\Cloud\Container\V1\NodePool\QueuedProvisioning $queued_provisioning + * Specifies the configuration of queued provisioning. + * @type \Google\Cloud\Container\V1\BestEffortProvisioning $best_effort_provisioning + * Enable best effort provisioning for nodes + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The name of the node pool. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of the node pool. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The node configuration of the pool. + * + * Generated from protobuf field .google.container.v1.NodeConfig config = 2; + * @return \Google\Cloud\Container\V1\NodeConfig|null + */ + public function getConfig() + { + return $this->config; + } + + public function hasConfig() + { + return isset($this->config); + } + + public function clearConfig() + { + unset($this->config); + } + + /** + * The node configuration of the pool. + * + * Generated from protobuf field .google.container.v1.NodeConfig config = 2; + * @param \Google\Cloud\Container\V1\NodeConfig $var + * @return $this + */ + public function setConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeConfig::class); + $this->config = $var; + + return $this; + } + + /** + * The initial node count for the pool. You must ensure that your + * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) + * is sufficient for this number of instances. You must also have available + * firewall and routes quota. + * + * Generated from protobuf field int32 initial_node_count = 3; + * @return int + */ + public function getInitialNodeCount() + { + return $this->initial_node_count; + } + + /** + * The initial node count for the pool. You must ensure that your + * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) + * is sufficient for this number of instances. You must also have available + * firewall and routes quota. + * + * Generated from protobuf field int32 initial_node_count = 3; + * @param int $var + * @return $this + */ + public function setInitialNodeCount($var) + { + GPBUtil::checkInt32($var); + $this->initial_node_count = $var; + + return $this; + } + + /** + * The list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * NodePool's nodes should be located. + * If this value is unspecified during node pool creation, the + * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) + * value will be used, instead. + * Warning: changing node pool locations will result in nodes being added + * and/or removed. + * + * Generated from protobuf field repeated string locations = 13; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getLocations() + { + return $this->locations; + } + + /** + * The list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * NodePool's nodes should be located. + * If this value is unspecified during node pool creation, the + * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) + * value will be used, instead. + * Warning: changing node pool locations will result in nodes being added + * and/or removed. + * + * Generated from protobuf field repeated string locations = 13; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->locations = $arr; + + return $this; + } + + /** + * Networking configuration for this NodePool. If specified, it overrides the + * cluster-level defaults. + * + * Generated from protobuf field .google.container.v1.NodeNetworkConfig network_config = 14; + * @return \Google\Cloud\Container\V1\NodeNetworkConfig|null + */ + public function getNetworkConfig() + { + return $this->network_config; + } + + public function hasNetworkConfig() + { + return isset($this->network_config); + } + + public function clearNetworkConfig() + { + unset($this->network_config); + } + + /** + * Networking configuration for this NodePool. If specified, it overrides the + * cluster-level defaults. + * + * Generated from protobuf field .google.container.v1.NodeNetworkConfig network_config = 14; + * @param \Google\Cloud\Container\V1\NodeNetworkConfig $var + * @return $this + */ + public function setNetworkConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeNetworkConfig::class); + $this->network_config = $var; + + return $this; + } + + /** + * [Output only] Server-defined URL for the resource. + * + * Generated from protobuf field string self_link = 100; + * @return string + */ + public function getSelfLink() + { + return $this->self_link; + } + + /** + * [Output only] Server-defined URL for the resource. + * + * Generated from protobuf field string self_link = 100; + * @param string $var + * @return $this + */ + public function setSelfLink($var) + { + GPBUtil::checkString($var, True); + $this->self_link = $var; + + return $this; + } + + /** + * The version of Kubernetes running on this NodePool's nodes. If unspecified, + * it defaults as described + * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version). + * + * Generated from protobuf field string version = 101; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * The version of Kubernetes running on this NodePool's nodes. If unspecified, + * it defaults as described + * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version). + * + * Generated from protobuf field string version = 101; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + + /** + * [Output only] The resource URLs of the [managed instance + * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) + * associated with this node pool. + * During the node pool blue-green upgrade operation, the URLs contain both + * blue and green resources. + * + * Generated from protobuf field repeated string instance_group_urls = 102; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getInstanceGroupUrls() + { + return $this->instance_group_urls; + } + + /** + * [Output only] The resource URLs of the [managed instance + * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) + * associated with this node pool. + * During the node pool blue-green upgrade operation, the URLs contain both + * blue and green resources. + * + * Generated from protobuf field repeated string instance_group_urls = 102; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setInstanceGroupUrls($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->instance_group_urls = $arr; + + return $this; + } + + /** + * [Output only] The status of the nodes in this pool instance. + * + * Generated from protobuf field .google.container.v1.NodePool.Status status = 103; + * @return int + */ + public function getStatus() + { + return $this->status; + } + + /** + * [Output only] The status of the nodes in this pool instance. + * + * Generated from protobuf field .google.container.v1.NodePool.Status status = 103; + * @param int $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NodePool\Status::class); + $this->status = $var; + + return $this; + } + + /** + * [Output only] Deprecated. Use conditions instead. + * Additional information about the current status of this + * node pool instance, if available. + * + * Generated from protobuf field string status_message = 104 [deprecated = true]; + * @return string + * @deprecated + */ + public function getStatusMessage() + { + @trigger_error('status_message is deprecated.', E_USER_DEPRECATED); + return $this->status_message; + } + + /** + * [Output only] Deprecated. Use conditions instead. + * Additional information about the current status of this + * node pool instance, if available. + * + * Generated from protobuf field string status_message = 104 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setStatusMessage($var) + { + @trigger_error('status_message is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->status_message = $var; + + return $this; + } + + /** + * Autoscaler configuration for this NodePool. Autoscaler is enabled + * only if a valid configuration is present. + * + * Generated from protobuf field .google.container.v1.NodePoolAutoscaling autoscaling = 4; + * @return \Google\Cloud\Container\V1\NodePoolAutoscaling|null + */ + public function getAutoscaling() + { + return $this->autoscaling; + } + + public function hasAutoscaling() + { + return isset($this->autoscaling); + } + + public function clearAutoscaling() + { + unset($this->autoscaling); + } + + /** + * Autoscaler configuration for this NodePool. Autoscaler is enabled + * only if a valid configuration is present. + * + * Generated from protobuf field .google.container.v1.NodePoolAutoscaling autoscaling = 4; + * @param \Google\Cloud\Container\V1\NodePoolAutoscaling $var + * @return $this + */ + public function setAutoscaling($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolAutoscaling::class); + $this->autoscaling = $var; + + return $this; + } + + /** + * NodeManagement configuration for this NodePool. + * + * Generated from protobuf field .google.container.v1.NodeManagement management = 5; + * @return \Google\Cloud\Container\V1\NodeManagement|null + */ + public function getManagement() + { + return $this->management; + } + + public function hasManagement() + { + return isset($this->management); + } + + public function clearManagement() + { + unset($this->management); + } + + /** + * NodeManagement configuration for this NodePool. + * + * Generated from protobuf field .google.container.v1.NodeManagement management = 5; + * @param \Google\Cloud\Container\V1\NodeManagement $var + * @return $this + */ + public function setManagement($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeManagement::class); + $this->management = $var; + + return $this; + } + + /** + * The constraint on the maximum number of pods that can be run + * simultaneously on a node in the node pool. + * + * Generated from protobuf field .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; + * @return \Google\Cloud\Container\V1\MaxPodsConstraint|null + */ + public function getMaxPodsConstraint() + { + return $this->max_pods_constraint; + } + + public function hasMaxPodsConstraint() + { + return isset($this->max_pods_constraint); + } + + public function clearMaxPodsConstraint() + { + unset($this->max_pods_constraint); + } + + /** + * The constraint on the maximum number of pods that can be run + * simultaneously on a node in the node pool. + * + * Generated from protobuf field .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; + * @param \Google\Cloud\Container\V1\MaxPodsConstraint $var + * @return $this + */ + public function setMaxPodsConstraint($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MaxPodsConstraint::class); + $this->max_pods_constraint = $var; + + return $this; + } + + /** + * Which conditions caused the current node pool state. + * + * Generated from protobuf field repeated .google.container.v1.StatusCondition conditions = 105; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getConditions() + { + return $this->conditions; + } + + /** + * Which conditions caused the current node pool state. + * + * Generated from protobuf field repeated .google.container.v1.StatusCondition conditions = 105; + * @param array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setConditions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\StatusCondition::class); + $this->conditions = $arr; + + return $this; + } + + /** + * [Output only] The pod CIDR block size per node in this node pool. + * + * Generated from protobuf field int32 pod_ipv4_cidr_size = 7; + * @return int + */ + public function getPodIpv4CidrSize() + { + return $this->pod_ipv4_cidr_size; + } + + /** + * [Output only] The pod CIDR block size per node in this node pool. + * + * Generated from protobuf field int32 pod_ipv4_cidr_size = 7; + * @param int $var + * @return $this + */ + public function setPodIpv4CidrSize($var) + { + GPBUtil::checkInt32($var); + $this->pod_ipv4_cidr_size = $var; + + return $this; + } + + /** + * Upgrade settings control disruption and speed of the upgrade. + * + * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + * @return \Google\Cloud\Container\V1\NodePool\UpgradeSettings|null + */ + public function getUpgradeSettings() + { + return $this->upgrade_settings; + } + + public function hasUpgradeSettings() + { + return isset($this->upgrade_settings); + } + + public function clearUpgradeSettings() + { + unset($this->upgrade_settings); + } + + /** + * Upgrade settings control disruption and speed of the upgrade. + * + * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + * @param \Google\Cloud\Container\V1\NodePool\UpgradeSettings $var + * @return $this + */ + public function setUpgradeSettings($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool\UpgradeSettings::class); + $this->upgrade_settings = $var; + + return $this; + } + + /** + * Specifies the node placement policy. + * + * Generated from protobuf field .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; + * @return \Google\Cloud\Container\V1\NodePool\PlacementPolicy|null + */ + public function getPlacementPolicy() + { + return $this->placement_policy; + } + + public function hasPlacementPolicy() + { + return isset($this->placement_policy); + } + + public function clearPlacementPolicy() + { + unset($this->placement_policy); + } + + /** + * Specifies the node placement policy. + * + * Generated from protobuf field .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; + * @param \Google\Cloud\Container\V1\NodePool\PlacementPolicy $var + * @return $this + */ + public function setPlacementPolicy($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool\PlacementPolicy::class); + $this->placement_policy = $var; + + return $this; + } + + /** + * Output only. [Output only] Update info contains relevant information during + * a node pool update. + * + * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Container\V1\NodePool\UpdateInfo|null + */ + public function getUpdateInfo() + { + return $this->update_info; + } + + public function hasUpdateInfo() + { + return isset($this->update_info); + } + + public function clearUpdateInfo() + { + unset($this->update_info); + } + + /** + * Output only. [Output only] Update info contains relevant information during + * a node pool update. + * + * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Container\V1\NodePool\UpdateInfo $var + * @return $this + */ + public function setUpdateInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool\UpdateInfo::class); + $this->update_info = $var; + + return $this; + } + + /** + * This checksum is computed by the server based on the value of node pool + * fields, and may be sent on update requests to ensure the client has an + * up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 110; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * This checksum is computed by the server based on the value of node pool + * fields, and may be sent on update requests to ensure the client has an + * up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 110; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Specifies the configuration of queued provisioning. + * + * Generated from protobuf field .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; + * @return \Google\Cloud\Container\V1\NodePool\QueuedProvisioning|null + */ + public function getQueuedProvisioning() + { + return $this->queued_provisioning; + } + + public function hasQueuedProvisioning() + { + return isset($this->queued_provisioning); + } + + public function clearQueuedProvisioning() + { + unset($this->queued_provisioning); + } + + /** + * Specifies the configuration of queued provisioning. + * + * Generated from protobuf field .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; + * @param \Google\Cloud\Container\V1\NodePool\QueuedProvisioning $var + * @return $this + */ + public function setQueuedProvisioning($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool\QueuedProvisioning::class); + $this->queued_provisioning = $var; + + return $this; + } + + /** + * Enable best effort provisioning for nodes + * + * Generated from protobuf field .google.container.v1.BestEffortProvisioning best_effort_provisioning = 113; + * @return \Google\Cloud\Container\V1\BestEffortProvisioning|null + */ + public function getBestEffortProvisioning() + { + return $this->best_effort_provisioning; + } + + public function hasBestEffortProvisioning() + { + return isset($this->best_effort_provisioning); + } + + public function clearBestEffortProvisioning() + { + unset($this->best_effort_provisioning); + } + + /** + * Enable best effort provisioning for nodes + * + * Generated from protobuf field .google.container.v1.BestEffortProvisioning best_effort_provisioning = 113; + * @param \Google\Cloud\Container\V1\BestEffortProvisioning $var + * @return $this + */ + public function setBestEffortProvisioning($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\BestEffortProvisioning::class); + $this->best_effort_provisioning = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy.php new file mode 100644 index 000000000000..66b18a002b4d --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy.php @@ -0,0 +1,150 @@ +google.container.v1.NodePool.PlacementPolicy + */ +class PlacementPolicy extends \Google\Protobuf\Internal\Message +{ + /** + * The type of placement. + * + * Generated from protobuf field .google.container.v1.NodePool.PlacementPolicy.Type type = 1; + */ + protected $type = 0; + /** + * Optional. TPU placement topology for pod slice node pool. + * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies + * + * Generated from protobuf field string tpu_topology = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $tpu_topology = ''; + /** + * If set, refers to the name of a custom resource policy supplied by the + * user. The resource policy must be in the same project and region as the + * node pool. If not found, InvalidArgument error is returned. + * + * Generated from protobuf field string policy_name = 3; + */ + protected $policy_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $type + * The type of placement. + * @type string $tpu_topology + * Optional. TPU placement topology for pod slice node pool. + * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies + * @type string $policy_name + * If set, refers to the name of a custom resource policy supplied by the + * user. The resource policy must be in the same project and region as the + * node pool. If not found, InvalidArgument error is returned. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The type of placement. + * + * Generated from protobuf field .google.container.v1.NodePool.PlacementPolicy.Type type = 1; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * The type of placement. + * + * Generated from protobuf field .google.container.v1.NodePool.PlacementPolicy.Type type = 1; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NodePool\PlacementPolicy\Type::class); + $this->type = $var; + + return $this; + } + + /** + * Optional. TPU placement topology for pod slice node pool. + * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies + * + * Generated from protobuf field string tpu_topology = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getTpuTopology() + { + return $this->tpu_topology; + } + + /** + * Optional. TPU placement topology for pod slice node pool. + * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies + * + * Generated from protobuf field string tpu_topology = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setTpuTopology($var) + { + GPBUtil::checkString($var, True); + $this->tpu_topology = $var; + + return $this; + } + + /** + * If set, refers to the name of a custom resource policy supplied by the + * user. The resource policy must be in the same project and region as the + * node pool. If not found, InvalidArgument error is returned. + * + * Generated from protobuf field string policy_name = 3; + * @return string + */ + public function getPolicyName() + { + return $this->policy_name; + } + + /** + * If set, refers to the name of a custom resource policy supplied by the + * user. The resource policy must be in the same project and region as the + * node pool. If not found, InvalidArgument error is returned. + * + * Generated from protobuf field string policy_name = 3; + * @param string $var + * @return $this + */ + public function setPolicyName($var) + { + GPBUtil::checkString($var, True); + $this->policy_name = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(PlacementPolicy::class, \Google\Cloud\Container\V1\NodePool_PlacementPolicy::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy/Type.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy/Type.php new file mode 100644 index 000000000000..feb385c477d5 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy/Type.php @@ -0,0 +1,59 @@ +google.container.v1.NodePool.PlacementPolicy.Type + */ +class Type +{ + /** + * TYPE_UNSPECIFIED specifies no requirements on nodes + * placement. + * + * Generated from protobuf enum TYPE_UNSPECIFIED = 0; + */ + const TYPE_UNSPECIFIED = 0; + /** + * COMPACT specifies node placement in the same availability domain to + * ensure low communication latency. + * + * Generated from protobuf enum COMPACT = 1; + */ + const COMPACT = 1; + + private static $valueToName = [ + self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', + self::COMPACT => 'COMPACT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Type::class, \Google\Cloud\Container\V1\NodePool_PlacementPolicy_Type::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/QueuedProvisioning.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/QueuedProvisioning.php new file mode 100644 index 000000000000..f2d189abac0b --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/QueuedProvisioning.php @@ -0,0 +1,78 @@ +google.container.v1.NodePool.QueuedProvisioning + */ +class QueuedProvisioning extends \Google\Protobuf\Internal\Message +{ + /** + * Denotes that this nodepool is QRM specific, meaning nodes can be only + * obtained through queuing via the Cluster Autoscaler ProvisioningRequest + * API. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Denotes that this nodepool is QRM specific, meaning nodes can be only + * obtained through queuing via the Cluster Autoscaler ProvisioningRequest + * API. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Denotes that this nodepool is QRM specific, meaning nodes can be only + * obtained through queuing via the Cluster Autoscaler ProvisioningRequest + * API. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Denotes that this nodepool is QRM specific, meaning nodes can be only + * obtained through queuing via the Cluster Autoscaler ProvisioningRequest + * API. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(QueuedProvisioning::class, \Google\Cloud\Container\V1\NodePool_QueuedProvisioning::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/Status.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/Status.php new file mode 100644 index 000000000000..76d3391edf7d --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/Status.php @@ -0,0 +1,99 @@ +google.container.v1.NodePool.Status + */ +class Status +{ + /** + * Not set. + * + * Generated from protobuf enum STATUS_UNSPECIFIED = 0; + */ + const STATUS_UNSPECIFIED = 0; + /** + * The PROVISIONING state indicates the node pool is being created. + * + * Generated from protobuf enum PROVISIONING = 1; + */ + const PROVISIONING = 1; + /** + * The RUNNING state indicates the node pool has been created + * and is fully usable. + * + * Generated from protobuf enum RUNNING = 2; + */ + const RUNNING = 2; + /** + * The RUNNING_WITH_ERROR state indicates the node pool has been created + * and is partially usable. Some error state has occurred and some + * functionality may be impaired. Customer may need to reissue a request + * or trigger a new update. + * + * Generated from protobuf enum RUNNING_WITH_ERROR = 3; + */ + const RUNNING_WITH_ERROR = 3; + /** + * The RECONCILING state indicates that some work is actively being done on + * the node pool, such as upgrading node software. Details can + * be found in the `statusMessage` field. + * + * Generated from protobuf enum RECONCILING = 4; + */ + const RECONCILING = 4; + /** + * The STOPPING state indicates the node pool is being deleted. + * + * Generated from protobuf enum STOPPING = 5; + */ + const STOPPING = 5; + /** + * The ERROR state indicates the node pool may be unusable. Details + * can be found in the `statusMessage` field. + * + * Generated from protobuf enum ERROR = 6; + */ + const ERROR = 6; + + private static $valueToName = [ + self::STATUS_UNSPECIFIED => 'STATUS_UNSPECIFIED', + self::PROVISIONING => 'PROVISIONING', + self::RUNNING => 'RUNNING', + self::RUNNING_WITH_ERROR => 'RUNNING_WITH_ERROR', + self::RECONCILING => 'RECONCILING', + self::STOPPING => 'STOPPING', + self::ERROR => 'ERROR', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Status::class, \Google\Cloud\Container\V1\NodePool_Status::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo.php new file mode 100644 index 000000000000..051fb577f24d --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo.php @@ -0,0 +1,81 @@ +google.container.v1.NodePool.UpdateInfo + */ +class UpdateInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Information of a blue-green upgrade. + * + * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; + */ + protected $blue_green_info = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Container\V1\NodePool\UpdateInfo\BlueGreenInfo $blue_green_info + * Information of a blue-green upgrade. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Information of a blue-green upgrade. + * + * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; + * @return \Google\Cloud\Container\V1\NodePool\UpdateInfo\BlueGreenInfo|null + */ + public function getBlueGreenInfo() + { + return $this->blue_green_info; + } + + public function hasBlueGreenInfo() + { + return isset($this->blue_green_info); + } + + public function clearBlueGreenInfo() + { + unset($this->blue_green_info); + } + + /** + * Information of a blue-green upgrade. + * + * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; + * @param \Google\Cloud\Container\V1\NodePool\UpdateInfo\BlueGreenInfo $var + * @return $this + */ + public function setBlueGreenInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool\UpdateInfo\BlueGreenInfo::class); + $this->blue_green_info = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(UpdateInfo::class, \Google\Cloud\Container\V1\NodePool_UpdateInfo::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo.php new file mode 100644 index 000000000000..5a4d73eb77af --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo.php @@ -0,0 +1,226 @@ +google.container.v1.NodePool.UpdateInfo.BlueGreenInfo + */ +class BlueGreenInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Current blue-green upgrade phase. + * + * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; + */ + protected $phase = 0; + /** + * The resource URLs of the [managed instance groups] + * (/compute/docs/instance-groups/creating-groups-of-managed-instances) + * associated with blue pool. + * + * Generated from protobuf field repeated string blue_instance_group_urls = 2; + */ + private $blue_instance_group_urls; + /** + * The resource URLs of the [managed instance groups] + * (/compute/docs/instance-groups/creating-groups-of-managed-instances) + * associated with green pool. + * + * Generated from protobuf field repeated string green_instance_group_urls = 3; + */ + private $green_instance_group_urls; + /** + * Time to start deleting blue pool to complete blue-green upgrade, + * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * + * Generated from protobuf field string blue_pool_deletion_start_time = 4; + */ + protected $blue_pool_deletion_start_time = ''; + /** + * Version of green pool. + * + * Generated from protobuf field string green_pool_version = 5; + */ + protected $green_pool_version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $phase + * Current blue-green upgrade phase. + * @type array|\Google\Protobuf\Internal\RepeatedField $blue_instance_group_urls + * The resource URLs of the [managed instance groups] + * (/compute/docs/instance-groups/creating-groups-of-managed-instances) + * associated with blue pool. + * @type array|\Google\Protobuf\Internal\RepeatedField $green_instance_group_urls + * The resource URLs of the [managed instance groups] + * (/compute/docs/instance-groups/creating-groups-of-managed-instances) + * associated with green pool. + * @type string $blue_pool_deletion_start_time + * Time to start deleting blue pool to complete blue-green upgrade, + * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * @type string $green_pool_version + * Version of green pool. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Current blue-green upgrade phase. + * + * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; + * @return int + */ + public function getPhase() + { + return $this->phase; + } + + /** + * Current blue-green upgrade phase. + * + * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; + * @param int $var + * @return $this + */ + public function setPhase($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NodePool\UpdateInfo\BlueGreenInfo\Phase::class); + $this->phase = $var; + + return $this; + } + + /** + * The resource URLs of the [managed instance groups] + * (/compute/docs/instance-groups/creating-groups-of-managed-instances) + * associated with blue pool. + * + * Generated from protobuf field repeated string blue_instance_group_urls = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getBlueInstanceGroupUrls() + { + return $this->blue_instance_group_urls; + } + + /** + * The resource URLs of the [managed instance groups] + * (/compute/docs/instance-groups/creating-groups-of-managed-instances) + * associated with blue pool. + * + * Generated from protobuf field repeated string blue_instance_group_urls = 2; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setBlueInstanceGroupUrls($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->blue_instance_group_urls = $arr; + + return $this; + } + + /** + * The resource URLs of the [managed instance groups] + * (/compute/docs/instance-groups/creating-groups-of-managed-instances) + * associated with green pool. + * + * Generated from protobuf field repeated string green_instance_group_urls = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getGreenInstanceGroupUrls() + { + return $this->green_instance_group_urls; + } + + /** + * The resource URLs of the [managed instance groups] + * (/compute/docs/instance-groups/creating-groups-of-managed-instances) + * associated with green pool. + * + * Generated from protobuf field repeated string green_instance_group_urls = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setGreenInstanceGroupUrls($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->green_instance_group_urls = $arr; + + return $this; + } + + /** + * Time to start deleting blue pool to complete blue-green upgrade, + * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * + * Generated from protobuf field string blue_pool_deletion_start_time = 4; + * @return string + */ + public function getBluePoolDeletionStartTime() + { + return $this->blue_pool_deletion_start_time; + } + + /** + * Time to start deleting blue pool to complete blue-green upgrade, + * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * + * Generated from protobuf field string blue_pool_deletion_start_time = 4; + * @param string $var + * @return $this + */ + public function setBluePoolDeletionStartTime($var) + { + GPBUtil::checkString($var, True); + $this->blue_pool_deletion_start_time = $var; + + return $this; + } + + /** + * Version of green pool. + * + * Generated from protobuf field string green_pool_version = 5; + * @return string + */ + public function getGreenPoolVersion() + { + return $this->green_pool_version; + } + + /** + * Version of green pool. + * + * Generated from protobuf field string green_pool_version = 5; + * @param string $var + * @return $this + */ + public function setGreenPoolVersion($var) + { + GPBUtil::checkString($var, True); + $this->green_pool_version = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(BlueGreenInfo::class, \Google\Cloud\Container\V1\NodePool_UpdateInfo_BlueGreenInfo::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo/Phase.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo/Phase.php new file mode 100644 index 000000000000..f47b3342f3ef --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo/Phase.php @@ -0,0 +1,99 @@ +google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase + */ +class Phase +{ + /** + * Unspecified phase. + * + * Generated from protobuf enum PHASE_UNSPECIFIED = 0; + */ + const PHASE_UNSPECIFIED = 0; + /** + * blue-green upgrade has been initiated. + * + * Generated from protobuf enum UPDATE_STARTED = 1; + */ + const UPDATE_STARTED = 1; + /** + * Start creating green pool nodes. + * + * Generated from protobuf enum CREATING_GREEN_POOL = 2; + */ + const CREATING_GREEN_POOL = 2; + /** + * Start cordoning blue pool nodes. + * + * Generated from protobuf enum CORDONING_BLUE_POOL = 3; + */ + const CORDONING_BLUE_POOL = 3; + /** + * Start draining blue pool nodes. + * + * Generated from protobuf enum DRAINING_BLUE_POOL = 4; + */ + const DRAINING_BLUE_POOL = 4; + /** + * Start soaking time after draining entire blue pool. + * + * Generated from protobuf enum NODE_POOL_SOAKING = 5; + */ + const NODE_POOL_SOAKING = 5; + /** + * Start deleting blue nodes. + * + * Generated from protobuf enum DELETING_BLUE_POOL = 6; + */ + const DELETING_BLUE_POOL = 6; + /** + * Rollback has been initiated. + * + * Generated from protobuf enum ROLLBACK_STARTED = 7; + */ + const ROLLBACK_STARTED = 7; + + private static $valueToName = [ + self::PHASE_UNSPECIFIED => 'PHASE_UNSPECIFIED', + self::UPDATE_STARTED => 'UPDATE_STARTED', + self::CREATING_GREEN_POOL => 'CREATING_GREEN_POOL', + self::CORDONING_BLUE_POOL => 'CORDONING_BLUE_POOL', + self::DRAINING_BLUE_POOL => 'DRAINING_BLUE_POOL', + self::NODE_POOL_SOAKING => 'NODE_POOL_SOAKING', + self::DELETING_BLUE_POOL => 'DELETING_BLUE_POOL', + self::ROLLBACK_STARTED => 'ROLLBACK_STARTED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Phase::class, \Google\Cloud\Container\V1\NodePool_UpdateInfo_BlueGreenInfo_Phase::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpgradeSettings.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpgradeSettings.php new file mode 100644 index 000000000000..7fea002183a1 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpgradeSettings.php @@ -0,0 +1,241 @@ +google.container.v1.NodePool.UpgradeSettings + */ +class UpgradeSettings extends \Google\Protobuf\Internal\Message +{ + /** + * The maximum number of nodes that can be created beyond the current size + * of the node pool during the upgrade process. + * + * Generated from protobuf field int32 max_surge = 1; + */ + protected $max_surge = 0; + /** + * The maximum number of nodes that can be simultaneously unavailable during + * the upgrade process. A node is considered available if its status is + * Ready. + * + * Generated from protobuf field int32 max_unavailable = 2; + */ + protected $max_unavailable = 0; + /** + * Update strategy of the node pool. + * + * Generated from protobuf field optional .google.container.v1.NodePoolUpdateStrategy strategy = 3; + */ + protected $strategy = null; + /** + * Settings for blue-green upgrade strategy. + * + * Generated from protobuf field optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; + */ + protected $blue_green_settings = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $max_surge + * The maximum number of nodes that can be created beyond the current size + * of the node pool during the upgrade process. + * @type int $max_unavailable + * The maximum number of nodes that can be simultaneously unavailable during + * the upgrade process. A node is considered available if its status is + * Ready. + * @type int $strategy + * Update strategy of the node pool. + * @type \Google\Cloud\Container\V1\BlueGreenSettings $blue_green_settings + * Settings for blue-green upgrade strategy. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The maximum number of nodes that can be created beyond the current size + * of the node pool during the upgrade process. + * + * Generated from protobuf field int32 max_surge = 1; + * @return int + */ + public function getMaxSurge() + { + return $this->max_surge; + } + + /** + * The maximum number of nodes that can be created beyond the current size + * of the node pool during the upgrade process. + * + * Generated from protobuf field int32 max_surge = 1; + * @param int $var + * @return $this + */ + public function setMaxSurge($var) + { + GPBUtil::checkInt32($var); + $this->max_surge = $var; + + return $this; + } + + /** + * The maximum number of nodes that can be simultaneously unavailable during + * the upgrade process. A node is considered available if its status is + * Ready. + * + * Generated from protobuf field int32 max_unavailable = 2; + * @return int + */ + public function getMaxUnavailable() + { + return $this->max_unavailable; + } + + /** + * The maximum number of nodes that can be simultaneously unavailable during + * the upgrade process. A node is considered available if its status is + * Ready. + * + * Generated from protobuf field int32 max_unavailable = 2; + * @param int $var + * @return $this + */ + public function setMaxUnavailable($var) + { + GPBUtil::checkInt32($var); + $this->max_unavailable = $var; + + return $this; + } + + /** + * Update strategy of the node pool. + * + * Generated from protobuf field optional .google.container.v1.NodePoolUpdateStrategy strategy = 3; + * @return int + */ + public function getStrategy() + { + return isset($this->strategy) ? $this->strategy : 0; + } + + public function hasStrategy() + { + return isset($this->strategy); + } + + public function clearStrategy() + { + unset($this->strategy); + } + + /** + * Update strategy of the node pool. + * + * Generated from protobuf field optional .google.container.v1.NodePoolUpdateStrategy strategy = 3; + * @param int $var + * @return $this + */ + public function setStrategy($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NodePoolUpdateStrategy::class); + $this->strategy = $var; + + return $this; + } + + /** + * Settings for blue-green upgrade strategy. + * + * Generated from protobuf field optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; + * @return \Google\Cloud\Container\V1\BlueGreenSettings|null + */ + public function getBlueGreenSettings() + { + return $this->blue_green_settings; + } + + public function hasBlueGreenSettings() + { + return isset($this->blue_green_settings); + } + + public function clearBlueGreenSettings() + { + unset($this->blue_green_settings); + } + + /** + * Settings for blue-green upgrade strategy. + * + * Generated from protobuf field optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; + * @param \Google\Cloud\Container\V1\BlueGreenSettings $var + * @return $this + */ + public function setBlueGreenSettings($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\BlueGreenSettings::class); + $this->blue_green_settings = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(UpgradeSettings::class, \Google\Cloud\Container\V1\NodePool_UpgradeSettings::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoConfig.php new file mode 100644 index 000000000000..96815e4fe279 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoConfig.php @@ -0,0 +1,138 @@ +google.container.v1.NodePoolAutoConfig + */ +class NodePoolAutoConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The list of instance tags applied to all nodes. Tags are used to identify + * valid sources or targets for network firewalls and are specified by + * the client during cluster creation. Each tag within the list + * must comply with RFC1035. + * + * Generated from protobuf field .google.container.v1.NetworkTags network_tags = 1; + */ + protected $network_tags = null; + /** + * Resource manager tag keys and values to be attached to the nodes + * for managing Compute Engine firewalls using Network Firewall Policies. + * + * Generated from protobuf field .google.container.v1.ResourceManagerTags resource_manager_tags = 2; + */ + protected $resource_manager_tags = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Container\V1\NetworkTags $network_tags + * The list of instance tags applied to all nodes. Tags are used to identify + * valid sources or targets for network firewalls and are specified by + * the client during cluster creation. Each tag within the list + * must comply with RFC1035. + * @type \Google\Cloud\Container\V1\ResourceManagerTags $resource_manager_tags + * Resource manager tag keys and values to be attached to the nodes + * for managing Compute Engine firewalls using Network Firewall Policies. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The list of instance tags applied to all nodes. Tags are used to identify + * valid sources or targets for network firewalls and are specified by + * the client during cluster creation. Each tag within the list + * must comply with RFC1035. + * + * Generated from protobuf field .google.container.v1.NetworkTags network_tags = 1; + * @return \Google\Cloud\Container\V1\NetworkTags|null + */ + public function getNetworkTags() + { + return $this->network_tags; + } + + public function hasNetworkTags() + { + return isset($this->network_tags); + } + + public function clearNetworkTags() + { + unset($this->network_tags); + } + + /** + * The list of instance tags applied to all nodes. Tags are used to identify + * valid sources or targets for network firewalls and are specified by + * the client during cluster creation. Each tag within the list + * must comply with RFC1035. + * + * Generated from protobuf field .google.container.v1.NetworkTags network_tags = 1; + * @param \Google\Cloud\Container\V1\NetworkTags $var + * @return $this + */ + public function setNetworkTags($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkTags::class); + $this->network_tags = $var; + + return $this; + } + + /** + * Resource manager tag keys and values to be attached to the nodes + * for managing Compute Engine firewalls using Network Firewall Policies. + * + * Generated from protobuf field .google.container.v1.ResourceManagerTags resource_manager_tags = 2; + * @return \Google\Cloud\Container\V1\ResourceManagerTags|null + */ + public function getResourceManagerTags() + { + return $this->resource_manager_tags; + } + + public function hasResourceManagerTags() + { + return isset($this->resource_manager_tags); + } + + public function clearResourceManagerTags() + { + unset($this->resource_manager_tags); + } + + /** + * Resource manager tag keys and values to be attached to the nodes + * for managing Compute Engine firewalls using Network Firewall Policies. + * + * Generated from protobuf field .google.container.v1.ResourceManagerTags resource_manager_tags = 2; + * @param \Google\Cloud\Container\V1\ResourceManagerTags $var + * @return $this + */ + public function setResourceManagerTags($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ResourceManagerTags::class); + $this->resource_manager_tags = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling.php new file mode 100644 index 000000000000..6f5f3887bcfe --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling.php @@ -0,0 +1,304 @@ +google.container.v1.NodePoolAutoscaling + */ +class NodePoolAutoscaling extends \Google\Protobuf\Internal\Message +{ + /** + * Is autoscaling enabled for this node pool. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + /** + * Minimum number of nodes for one location in the NodePool. Must be >= 1 and + * <= max_node_count. + * + * Generated from protobuf field int32 min_node_count = 2; + */ + protected $min_node_count = 0; + /** + * Maximum number of nodes for one location in the NodePool. Must be >= + * min_node_count. There has to be enough quota to scale up the cluster. + * + * Generated from protobuf field int32 max_node_count = 3; + */ + protected $max_node_count = 0; + /** + * Can this node pool be deleted automatically. + * + * Generated from protobuf field bool autoprovisioned = 4; + */ + protected $autoprovisioned = false; + /** + * Location policy used when scaling up a nodepool. + * + * Generated from protobuf field .google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5; + */ + protected $location_policy = 0; + /** + * Minimum number of nodes in the node pool. Must be greater than 1 less than + * total_max_node_count. + * The total_*_node_count fields are mutually exclusive with the *_node_count + * fields. + * + * Generated from protobuf field int32 total_min_node_count = 6; + */ + protected $total_min_node_count = 0; + /** + * Maximum number of nodes in the node pool. Must be greater than + * total_min_node_count. There has to be enough quota to scale up the cluster. + * The total_*_node_count fields are mutually exclusive with the *_node_count + * fields. + * + * Generated from protobuf field int32 total_max_node_count = 7; + */ + protected $total_max_node_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Is autoscaling enabled for this node pool. + * @type int $min_node_count + * Minimum number of nodes for one location in the NodePool. Must be >= 1 and + * <= max_node_count. + * @type int $max_node_count + * Maximum number of nodes for one location in the NodePool. Must be >= + * min_node_count. There has to be enough quota to scale up the cluster. + * @type bool $autoprovisioned + * Can this node pool be deleted automatically. + * @type int $location_policy + * Location policy used when scaling up a nodepool. + * @type int $total_min_node_count + * Minimum number of nodes in the node pool. Must be greater than 1 less than + * total_max_node_count. + * The total_*_node_count fields are mutually exclusive with the *_node_count + * fields. + * @type int $total_max_node_count + * Maximum number of nodes in the node pool. Must be greater than + * total_min_node_count. There has to be enough quota to scale up the cluster. + * The total_*_node_count fields are mutually exclusive with the *_node_count + * fields. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Is autoscaling enabled for this node pool. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Is autoscaling enabled for this node pool. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + + /** + * Minimum number of nodes for one location in the NodePool. Must be >= 1 and + * <= max_node_count. + * + * Generated from protobuf field int32 min_node_count = 2; + * @return int + */ + public function getMinNodeCount() + { + return $this->min_node_count; + } + + /** + * Minimum number of nodes for one location in the NodePool. Must be >= 1 and + * <= max_node_count. + * + * Generated from protobuf field int32 min_node_count = 2; + * @param int $var + * @return $this + */ + public function setMinNodeCount($var) + { + GPBUtil::checkInt32($var); + $this->min_node_count = $var; + + return $this; + } + + /** + * Maximum number of nodes for one location in the NodePool. Must be >= + * min_node_count. There has to be enough quota to scale up the cluster. + * + * Generated from protobuf field int32 max_node_count = 3; + * @return int + */ + public function getMaxNodeCount() + { + return $this->max_node_count; + } + + /** + * Maximum number of nodes for one location in the NodePool. Must be >= + * min_node_count. There has to be enough quota to scale up the cluster. + * + * Generated from protobuf field int32 max_node_count = 3; + * @param int $var + * @return $this + */ + public function setMaxNodeCount($var) + { + GPBUtil::checkInt32($var); + $this->max_node_count = $var; + + return $this; + } + + /** + * Can this node pool be deleted automatically. + * + * Generated from protobuf field bool autoprovisioned = 4; + * @return bool + */ + public function getAutoprovisioned() + { + return $this->autoprovisioned; + } + + /** + * Can this node pool be deleted automatically. + * + * Generated from protobuf field bool autoprovisioned = 4; + * @param bool $var + * @return $this + */ + public function setAutoprovisioned($var) + { + GPBUtil::checkBool($var); + $this->autoprovisioned = $var; + + return $this; + } + + /** + * Location policy used when scaling up a nodepool. + * + * Generated from protobuf field .google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5; + * @return int + */ + public function getLocationPolicy() + { + return $this->location_policy; + } + + /** + * Location policy used when scaling up a nodepool. + * + * Generated from protobuf field .google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5; + * @param int $var + * @return $this + */ + public function setLocationPolicy($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NodePoolAutoscaling\LocationPolicy::class); + $this->location_policy = $var; + + return $this; + } + + /** + * Minimum number of nodes in the node pool. Must be greater than 1 less than + * total_max_node_count. + * The total_*_node_count fields are mutually exclusive with the *_node_count + * fields. + * + * Generated from protobuf field int32 total_min_node_count = 6; + * @return int + */ + public function getTotalMinNodeCount() + { + return $this->total_min_node_count; + } + + /** + * Minimum number of nodes in the node pool. Must be greater than 1 less than + * total_max_node_count. + * The total_*_node_count fields are mutually exclusive with the *_node_count + * fields. + * + * Generated from protobuf field int32 total_min_node_count = 6; + * @param int $var + * @return $this + */ + public function setTotalMinNodeCount($var) + { + GPBUtil::checkInt32($var); + $this->total_min_node_count = $var; + + return $this; + } + + /** + * Maximum number of nodes in the node pool. Must be greater than + * total_min_node_count. There has to be enough quota to scale up the cluster. + * The total_*_node_count fields are mutually exclusive with the *_node_count + * fields. + * + * Generated from protobuf field int32 total_max_node_count = 7; + * @return int + */ + public function getTotalMaxNodeCount() + { + return $this->total_max_node_count; + } + + /** + * Maximum number of nodes in the node pool. Must be greater than + * total_min_node_count. There has to be enough quota to scale up the cluster. + * The total_*_node_count fields are mutually exclusive with the *_node_count + * fields. + * + * Generated from protobuf field int32 total_max_node_count = 7; + * @param int $var + * @return $this + */ + public function setTotalMaxNodeCount($var) + { + GPBUtil::checkInt32($var); + $this->total_max_node_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling/LocationPolicy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling/LocationPolicy.php new file mode 100644 index 000000000000..1a3cea48b398 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling/LocationPolicy.php @@ -0,0 +1,66 @@ +google.container.v1.NodePoolAutoscaling.LocationPolicy + */ +class LocationPolicy +{ + /** + * Not set. + * + * Generated from protobuf enum LOCATION_POLICY_UNSPECIFIED = 0; + */ + const LOCATION_POLICY_UNSPECIFIED = 0; + /** + * BALANCED is a best effort policy that aims to balance the sizes of + * different zones. + * + * Generated from protobuf enum BALANCED = 1; + */ + const BALANCED = 1; + /** + * ANY policy picks zones that have the highest capacity available. + * + * Generated from protobuf enum ANY = 2; + */ + const ANY = 2; + + private static $valueToName = [ + self::LOCATION_POLICY_UNSPECIFIED => 'LOCATION_POLICY_UNSPECIFIED', + self::BALANCED => 'BALANCED', + self::ANY => 'ANY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(LocationPolicy::class, \Google\Cloud\Container\V1\NodePoolAutoscaling_LocationPolicy::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolDefaults.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolDefaults.php new file mode 100644 index 000000000000..2dc7616a949f --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolDefaults.php @@ -0,0 +1,77 @@ +google.container.v1.NodePoolDefaults + */ +class NodePoolDefaults extends \Google\Protobuf\Internal\Message +{ + /** + * Subset of NodeConfig message that has defaults. + * + * Generated from protobuf field .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + */ + protected $node_config_defaults = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Container\V1\NodeConfigDefaults $node_config_defaults + * Subset of NodeConfig message that has defaults. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Subset of NodeConfig message that has defaults. + * + * Generated from protobuf field .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + * @return \Google\Cloud\Container\V1\NodeConfigDefaults|null + */ + public function getNodeConfigDefaults() + { + return $this->node_config_defaults; + } + + public function hasNodeConfigDefaults() + { + return isset($this->node_config_defaults); + } + + public function clearNodeConfigDefaults() + { + unset($this->node_config_defaults); + } + + /** + * Subset of NodeConfig message that has defaults. + * + * Generated from protobuf field .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + * @param \Google\Cloud\Container\V1\NodeConfigDefaults $var + * @return $this + */ + public function setNodeConfigDefaults($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeConfigDefaults::class); + $this->node_config_defaults = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolLoggingConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolLoggingConfig.php new file mode 100644 index 000000000000..3b1a6d619f08 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolLoggingConfig.php @@ -0,0 +1,77 @@ +google.container.v1.NodePoolLoggingConfig + */ +class NodePoolLoggingConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Logging variant configuration. + * + * Generated from protobuf field .google.container.v1.LoggingVariantConfig variant_config = 1; + */ + protected $variant_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Container\V1\LoggingVariantConfig $variant_config + * Logging variant configuration. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Logging variant configuration. + * + * Generated from protobuf field .google.container.v1.LoggingVariantConfig variant_config = 1; + * @return \Google\Cloud\Container\V1\LoggingVariantConfig|null + */ + public function getVariantConfig() + { + return $this->variant_config; + } + + public function hasVariantConfig() + { + return isset($this->variant_config); + } + + public function clearVariantConfig() + { + unset($this->variant_config); + } + + /** + * Logging variant configuration. + * + * Generated from protobuf field .google.container.v1.LoggingVariantConfig variant_config = 1; + * @param \Google\Cloud\Container\V1\LoggingVariantConfig $var + * @return $this + */ + public function setVariantConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LoggingVariantConfig::class); + $this->variant_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolUpdateStrategy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolUpdateStrategy.php new file mode 100644 index 000000000000..0879bfb66d87 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolUpdateStrategy.php @@ -0,0 +1,63 @@ +google.container.v1.NodePoolUpdateStrategy + */ +class NodePoolUpdateStrategy +{ + /** + * Default value if unset. GKE internally defaults the update strategy to + * SURGE for unspecified strategies. + * + * Generated from protobuf enum NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED = 0; + */ + const NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED = 0; + /** + * blue-green upgrade. + * + * Generated from protobuf enum BLUE_GREEN = 2; + */ + const BLUE_GREEN = 2; + /** + * SURGE is the traditional way of upgrade a node pool. + * max_surge and max_unavailable determines the level of upgrade parallelism. + * + * Generated from protobuf enum SURGE = 3; + */ + const SURGE = 3; + + private static $valueToName = [ + self::NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED => 'NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED', + self::BLUE_GREEN => 'BLUE_GREEN', + self::SURGE => 'SURGE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaint.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaint.php new file mode 100644 index 000000000000..f89a2a0a6096 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaint.php @@ -0,0 +1,139 @@ +google.container.v1.NodeTaint + */ +class NodeTaint extends \Google\Protobuf\Internal\Message +{ + /** + * Key for taint. + * + * Generated from protobuf field string key = 1; + */ + protected $key = ''; + /** + * Value for taint. + * + * Generated from protobuf field string value = 2; + */ + protected $value = ''; + /** + * Effect for taint. + * + * Generated from protobuf field .google.container.v1.NodeTaint.Effect effect = 3; + */ + protected $effect = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $key + * Key for taint. + * @type string $value + * Value for taint. + * @type int $effect + * Effect for taint. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Key for taint. + * + * Generated from protobuf field string key = 1; + * @return string + */ + public function getKey() + { + return $this->key; + } + + /** + * Key for taint. + * + * Generated from protobuf field string key = 1; + * @param string $var + * @return $this + */ + public function setKey($var) + { + GPBUtil::checkString($var, True); + $this->key = $var; + + return $this; + } + + /** + * Value for taint. + * + * Generated from protobuf field string value = 2; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * Value for taint. + * + * Generated from protobuf field string value = 2; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + + /** + * Effect for taint. + * + * Generated from protobuf field .google.container.v1.NodeTaint.Effect effect = 3; + * @return int + */ + public function getEffect() + { + return $this->effect; + } + + /** + * Effect for taint. + * + * Generated from protobuf field .google.container.v1.NodeTaint.Effect effect = 3; + * @param int $var + * @return $this + */ + public function setEffect($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NodeTaint\Effect::class); + $this->effect = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaint/Effect.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaint/Effect.php new file mode 100644 index 000000000000..c6436f7b1826 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaint/Effect.php @@ -0,0 +1,71 @@ +google.container.v1.NodeTaint.Effect + */ +class Effect +{ + /** + * Not set + * + * Generated from protobuf enum EFFECT_UNSPECIFIED = 0; + */ + const EFFECT_UNSPECIFIED = 0; + /** + * NoSchedule + * + * Generated from protobuf enum NO_SCHEDULE = 1; + */ + const NO_SCHEDULE = 1; + /** + * PreferNoSchedule + * + * Generated from protobuf enum PREFER_NO_SCHEDULE = 2; + */ + const PREFER_NO_SCHEDULE = 2; + /** + * NoExecute + * + * Generated from protobuf enum NO_EXECUTE = 3; + */ + const NO_EXECUTE = 3; + + private static $valueToName = [ + self::EFFECT_UNSPECIFIED => 'EFFECT_UNSPECIFIED', + self::NO_SCHEDULE => 'NO_SCHEDULE', + self::PREFER_NO_SCHEDULE => 'PREFER_NO_SCHEDULE', + self::NO_EXECUTE => 'NO_EXECUTE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Effect::class, \Google\Cloud\Container\V1\NodeTaint_Effect::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaints.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaints.php new file mode 100644 index 000000000000..fe6166f0dc3b --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaints.php @@ -0,0 +1,68 @@ +google.container.v1.NodeTaints + */ +class NodeTaints extends \Google\Protobuf\Internal\Message +{ + /** + * List of node taints. + * + * Generated from protobuf field repeated .google.container.v1.NodeTaint taints = 1; + */ + private $taints; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\Container\V1\NodeTaint>|\Google\Protobuf\Internal\RepeatedField $taints + * List of node taints. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * List of node taints. + * + * Generated from protobuf field repeated .google.container.v1.NodeTaint taints = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTaints() + { + return $this->taints; + } + + /** + * List of node taints. + * + * Generated from protobuf field repeated .google.container.v1.NodeTaint taints = 1; + * @param array<\Google\Cloud\Container\V1\NodeTaint>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTaints($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\NodeTaint::class); + $this->taints = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig.php new file mode 100644 index 000000000000..e478d70b2638 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig.php @@ -0,0 +1,77 @@ +google.container.v1.NotificationConfig + */ +class NotificationConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Notification config for Pub/Sub. + * + * Generated from protobuf field .google.container.v1.NotificationConfig.PubSub pubsub = 1; + */ + protected $pubsub = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Container\V1\NotificationConfig\PubSub $pubsub + * Notification config for Pub/Sub. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Notification config for Pub/Sub. + * + * Generated from protobuf field .google.container.v1.NotificationConfig.PubSub pubsub = 1; + * @return \Google\Cloud\Container\V1\NotificationConfig\PubSub|null + */ + public function getPubsub() + { + return $this->pubsub; + } + + public function hasPubsub() + { + return isset($this->pubsub); + } + + public function clearPubsub() + { + unset($this->pubsub); + } + + /** + * Notification config for Pub/Sub. + * + * Generated from protobuf field .google.container.v1.NotificationConfig.PubSub pubsub = 1; + * @param \Google\Cloud\Container\V1\NotificationConfig\PubSub $var + * @return $this + */ + public function setPubsub($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NotificationConfig\PubSub::class); + $this->pubsub = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/EventType.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/EventType.php new file mode 100644 index 000000000000..7489b2c7e292 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/EventType.php @@ -0,0 +1,72 @@ +google.container.v1.NotificationConfig.EventType + */ +class EventType +{ + /** + * Not set, will be ignored. + * + * Generated from protobuf enum EVENT_TYPE_UNSPECIFIED = 0; + */ + const EVENT_TYPE_UNSPECIFIED = 0; + /** + * Corresponds with UpgradeAvailableEvent. + * + * Generated from protobuf enum UPGRADE_AVAILABLE_EVENT = 1; + */ + const UPGRADE_AVAILABLE_EVENT = 1; + /** + * Corresponds with UpgradeEvent. + * + * Generated from protobuf enum UPGRADE_EVENT = 2; + */ + const UPGRADE_EVENT = 2; + /** + * Corresponds with SecurityBulletinEvent. + * + * Generated from protobuf enum SECURITY_BULLETIN_EVENT = 3; + */ + const SECURITY_BULLETIN_EVENT = 3; + + private static $valueToName = [ + self::EVENT_TYPE_UNSPECIFIED => 'EVENT_TYPE_UNSPECIFIED', + self::UPGRADE_AVAILABLE_EVENT => 'UPGRADE_AVAILABLE_EVENT', + self::UPGRADE_EVENT => 'UPGRADE_EVENT', + self::SECURITY_BULLETIN_EVENT => 'SECURITY_BULLETIN_EVENT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(EventType::class, \Google\Cloud\Container\V1\NotificationConfig_EventType::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/Filter.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/Filter.php new file mode 100644 index 000000000000..cdeb11220ad9 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/Filter.php @@ -0,0 +1,73 @@ +google.container.v1.NotificationConfig.Filter + */ +class Filter extends \Google\Protobuf\Internal\Message +{ + /** + * Event types to allowlist. + * + * Generated from protobuf field repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + */ + private $event_type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $event_type + * Event types to allowlist. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Event types to allowlist. + * + * Generated from protobuf field repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEventType() + { + return $this->event_type; + } + + /** + * Event types to allowlist. + * + * Generated from protobuf field repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEventType($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Container\V1\NotificationConfig\EventType::class); + $this->event_type = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Filter::class, \Google\Cloud\Container\V1\NotificationConfig_Filter::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/PubSub.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/PubSub.php new file mode 100644 index 000000000000..21ded6c6c98a --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/PubSub.php @@ -0,0 +1,160 @@ +google.container.v1.NotificationConfig.PubSub + */ +class PubSub extends \Google\Protobuf\Internal\Message +{ + /** + * Enable notifications for Pub/Sub. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + /** + * The desired Pub/Sub topic to which notifications will be + * sent by GKE. Format is `projects/{project}/topics/{topic}`. + * + * Generated from protobuf field string topic = 2 [(.google.api.resource_reference) = { + */ + protected $topic = ''; + /** + * Allows filtering to one or more specific event types. If no filter is + * specified, or if a filter is specified with no event types, all event + * types will be sent + * + * Generated from protobuf field .google.container.v1.NotificationConfig.Filter filter = 3; + */ + protected $filter = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Enable notifications for Pub/Sub. + * @type string $topic + * The desired Pub/Sub topic to which notifications will be + * sent by GKE. Format is `projects/{project}/topics/{topic}`. + * @type \Google\Cloud\Container\V1\NotificationConfig\Filter $filter + * Allows filtering to one or more specific event types. If no filter is + * specified, or if a filter is specified with no event types, all event + * types will be sent + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Enable notifications for Pub/Sub. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Enable notifications for Pub/Sub. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + + /** + * The desired Pub/Sub topic to which notifications will be + * sent by GKE. Format is `projects/{project}/topics/{topic}`. + * + * Generated from protobuf field string topic = 2 [(.google.api.resource_reference) = { + * @return string + */ + public function getTopic() + { + return $this->topic; + } + + /** + * The desired Pub/Sub topic to which notifications will be + * sent by GKE. Format is `projects/{project}/topics/{topic}`. + * + * Generated from protobuf field string topic = 2 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setTopic($var) + { + GPBUtil::checkString($var, True); + $this->topic = $var; + + return $this; + } + + /** + * Allows filtering to one or more specific event types. If no filter is + * specified, or if a filter is specified with no event types, all event + * types will be sent + * + * Generated from protobuf field .google.container.v1.NotificationConfig.Filter filter = 3; + * @return \Google\Cloud\Container\V1\NotificationConfig\Filter|null + */ + public function getFilter() + { + return $this->filter; + } + + public function hasFilter() + { + return isset($this->filter); + } + + public function clearFilter() + { + unset($this->filter); + } + + /** + * Allows filtering to one or more specific event types. If no filter is + * specified, or if a filter is specified with no event types, all event + * types will be sent + * + * Generated from protobuf field .google.container.v1.NotificationConfig.Filter filter = 3; + * @param \Google\Cloud\Container\V1\NotificationConfig\Filter $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NotificationConfig\Filter::class); + $this->filter = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(PubSub::class, \Google\Cloud\Container\V1\NotificationConfig_PubSub::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation.php new file mode 100644 index 000000000000..56bee17d416c --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation.php @@ -0,0 +1,672 @@ +google.container.v1.Operation + */ +class Operation extends \Google\Protobuf\Internal\Message +{ + /** + * The server-assigned ID for the operation. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * operation is taking place. This field is deprecated, use location instead. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * The operation type. + * + * Generated from protobuf field .google.container.v1.Operation.Type operation_type = 3; + */ + protected $operation_type = 0; + /** + * The current status of the operation. + * + * Generated from protobuf field .google.container.v1.Operation.Status status = 4; + */ + protected $status = 0; + /** + * Detailed operation progress, if available. + * + * Generated from protobuf field string detail = 8; + */ + protected $detail = ''; + /** + * Output only. If an error has occurred, a textual description of the error. + * Deprecated. Use the field error instead. + * + * Generated from protobuf field string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @deprecated + */ + protected $status_message = ''; + /** + * Server-defined URI for the operation. Example: + * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`. + * + * Generated from protobuf field string self_link = 6; + */ + protected $self_link = ''; + /** + * Server-defined URI for the target of the operation. The format of this is a + * URI to the resource being modified (such as a cluster, node pool, or node). + * For node pool repairs, there may be multiple nodes being repaired, but only + * one will be the target. + * Examples: + * - + * ## + * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster` + * ## + * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np` + * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node` + * + * Generated from protobuf field string target_link = 7; + */ + protected $target_link = ''; + /** + * [Output only] The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + * or + * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + * in which the cluster resides. + * + * Generated from protobuf field string location = 9; + */ + protected $location = ''; + /** + * [Output only] The time the operation started, in + * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * + * Generated from protobuf field string start_time = 10; + */ + protected $start_time = ''; + /** + * [Output only] The time the operation completed, in + * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * + * Generated from protobuf field string end_time = 11; + */ + protected $end_time = ''; + /** + * Output only. [Output only] Progress information for an operation. + * + * Generated from protobuf field .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $progress = null; + /** + * Which conditions caused the current cluster state. + * Deprecated. Use field error instead. + * + * Generated from protobuf field repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * @deprecated + */ + private $cluster_conditions; + /** + * Which conditions caused the current node pool state. + * Deprecated. Use field error instead. + * + * Generated from protobuf field repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * @deprecated + */ + private $nodepool_conditions; + /** + * The error result of the operation in case of failure. + * + * Generated from protobuf field .google.rpc.Status error = 15; + */ + protected $error = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The server-assigned ID for the operation. + * @type string $zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * operation is taking place. This field is deprecated, use location instead. + * @type int $operation_type + * The operation type. + * @type int $status + * The current status of the operation. + * @type string $detail + * Detailed operation progress, if available. + * @type string $status_message + * Output only. If an error has occurred, a textual description of the error. + * Deprecated. Use the field error instead. + * @type string $self_link + * Server-defined URI for the operation. Example: + * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`. + * @type string $target_link + * Server-defined URI for the target of the operation. The format of this is a + * URI to the resource being modified (such as a cluster, node pool, or node). + * For node pool repairs, there may be multiple nodes being repaired, but only + * one will be the target. + * Examples: + * - + * ## + * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster` + * ## + * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np` + * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node` + * @type string $location + * [Output only] The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + * or + * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + * in which the cluster resides. + * @type string $start_time + * [Output only] The time the operation started, in + * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * @type string $end_time + * [Output only] The time the operation completed, in + * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * @type \Google\Cloud\Container\V1\OperationProgress $progress + * Output only. [Output only] Progress information for an operation. + * @type array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $cluster_conditions + * Which conditions caused the current cluster state. + * Deprecated. Use field error instead. + * @type array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $nodepool_conditions + * Which conditions caused the current node pool state. + * Deprecated. Use field error instead. + * @type \Google\Rpc\Status $error + * The error result of the operation in case of failure. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The server-assigned ID for the operation. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The server-assigned ID for the operation. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * operation is taking place. This field is deprecated, use location instead. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * operation is taking place. This field is deprecated, use location instead. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * The operation type. + * + * Generated from protobuf field .google.container.v1.Operation.Type operation_type = 3; + * @return int + */ + public function getOperationType() + { + return $this->operation_type; + } + + /** + * The operation type. + * + * Generated from protobuf field .google.container.v1.Operation.Type operation_type = 3; + * @param int $var + * @return $this + */ + public function setOperationType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\Operation\Type::class); + $this->operation_type = $var; + + return $this; + } + + /** + * The current status of the operation. + * + * Generated from protobuf field .google.container.v1.Operation.Status status = 4; + * @return int + */ + public function getStatus() + { + return $this->status; + } + + /** + * The current status of the operation. + * + * Generated from protobuf field .google.container.v1.Operation.Status status = 4; + * @param int $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\Operation\Status::class); + $this->status = $var; + + return $this; + } + + /** + * Detailed operation progress, if available. + * + * Generated from protobuf field string detail = 8; + * @return string + */ + public function getDetail() + { + return $this->detail; + } + + /** + * Detailed operation progress, if available. + * + * Generated from protobuf field string detail = 8; + * @param string $var + * @return $this + */ + public function setDetail($var) + { + GPBUtil::checkString($var, True); + $this->detail = $var; + + return $this; + } + + /** + * Output only. If an error has occurred, a textual description of the error. + * Deprecated. Use the field error instead. + * + * Generated from protobuf field string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + * @deprecated + */ + public function getStatusMessage() + { + @trigger_error('status_message is deprecated.', E_USER_DEPRECATED); + return $this->status_message; + } + + /** + * Output only. If an error has occurred, a textual description of the error. + * Deprecated. Use the field error instead. + * + * Generated from protobuf field string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + * @deprecated + */ + public function setStatusMessage($var) + { + @trigger_error('status_message is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->status_message = $var; + + return $this; + } + + /** + * Server-defined URI for the operation. Example: + * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`. + * + * Generated from protobuf field string self_link = 6; + * @return string + */ + public function getSelfLink() + { + return $this->self_link; + } + + /** + * Server-defined URI for the operation. Example: + * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`. + * + * Generated from protobuf field string self_link = 6; + * @param string $var + * @return $this + */ + public function setSelfLink($var) + { + GPBUtil::checkString($var, True); + $this->self_link = $var; + + return $this; + } + + /** + * Server-defined URI for the target of the operation. The format of this is a + * URI to the resource being modified (such as a cluster, node pool, or node). + * For node pool repairs, there may be multiple nodes being repaired, but only + * one will be the target. + * Examples: + * - + * ## + * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster` + * ## + * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np` + * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node` + * + * Generated from protobuf field string target_link = 7; + * @return string + */ + public function getTargetLink() + { + return $this->target_link; + } + + /** + * Server-defined URI for the target of the operation. The format of this is a + * URI to the resource being modified (such as a cluster, node pool, or node). + * For node pool repairs, there may be multiple nodes being repaired, but only + * one will be the target. + * Examples: + * - + * ## + * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster` + * ## + * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np` + * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node` + * + * Generated from protobuf field string target_link = 7; + * @param string $var + * @return $this + */ + public function setTargetLink($var) + { + GPBUtil::checkString($var, True); + $this->target_link = $var; + + return $this; + } + + /** + * [Output only] The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + * or + * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + * in which the cluster resides. + * + * Generated from protobuf field string location = 9; + * @return string + */ + public function getLocation() + { + return $this->location; + } + + /** + * [Output only] The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + * or + * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + * in which the cluster resides. + * + * Generated from protobuf field string location = 9; + * @param string $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkString($var, True); + $this->location = $var; + + return $this; + } + + /** + * [Output only] The time the operation started, in + * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * + * Generated from protobuf field string start_time = 10; + * @return string + */ + public function getStartTime() + { + return $this->start_time; + } + + /** + * [Output only] The time the operation started, in + * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * + * Generated from protobuf field string start_time = 10; + * @param string $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkString($var, True); + $this->start_time = $var; + + return $this; + } + + /** + * [Output only] The time the operation completed, in + * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * + * Generated from protobuf field string end_time = 11; + * @return string + */ + public function getEndTime() + { + return $this->end_time; + } + + /** + * [Output only] The time the operation completed, in + * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * + * Generated from protobuf field string end_time = 11; + * @param string $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkString($var, True); + $this->end_time = $var; + + return $this; + } + + /** + * Output only. [Output only] Progress information for an operation. + * + * Generated from protobuf field .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Container\V1\OperationProgress|null + */ + public function getProgress() + { + return $this->progress; + } + + public function hasProgress() + { + return isset($this->progress); + } + + public function clearProgress() + { + unset($this->progress); + } + + /** + * Output only. [Output only] Progress information for an operation. + * + * Generated from protobuf field .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Container\V1\OperationProgress $var + * @return $this + */ + public function setProgress($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\OperationProgress::class); + $this->progress = $var; + + return $this; + } + + /** + * Which conditions caused the current cluster state. + * Deprecated. Use field error instead. + * + * Generated from protobuf field repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * @return \Google\Protobuf\Internal\RepeatedField + * @deprecated + */ + public function getClusterConditions() + { + @trigger_error('cluster_conditions is deprecated.', E_USER_DEPRECATED); + return $this->cluster_conditions; + } + + /** + * Which conditions caused the current cluster state. + * Deprecated. Use field error instead. + * + * Generated from protobuf field repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * @param array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + * @deprecated + */ + public function setClusterConditions($var) + { + @trigger_error('cluster_conditions is deprecated.', E_USER_DEPRECATED); + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\StatusCondition::class); + $this->cluster_conditions = $arr; + + return $this; + } + + /** + * Which conditions caused the current node pool state. + * Deprecated. Use field error instead. + * + * Generated from protobuf field repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * @return \Google\Protobuf\Internal\RepeatedField + * @deprecated + */ + public function getNodepoolConditions() + { + @trigger_error('nodepool_conditions is deprecated.', E_USER_DEPRECATED); + return $this->nodepool_conditions; + } + + /** + * Which conditions caused the current node pool state. + * Deprecated. Use field error instead. + * + * Generated from protobuf field repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * @param array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + * @deprecated + */ + public function setNodepoolConditions($var) + { + @trigger_error('nodepool_conditions is deprecated.', E_USER_DEPRECATED); + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\StatusCondition::class); + $this->nodepool_conditions = $arr; + + return $this; + } + + /** + * The error result of the operation in case of failure. + * + * Generated from protobuf field .google.rpc.Status error = 15; + * @return \Google\Rpc\Status|null + */ + public function getError() + { + return $this->error; + } + + public function hasError() + { + return isset($this->error); + } + + public function clearError() + { + unset($this->error); + } + + /** + * The error result of the operation in case of failure. + * + * Generated from protobuf field .google.rpc.Status error = 15; + * @param \Google\Rpc\Status $var + * @return $this + */ + public function setError($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Status::class); + $this->error = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation/Status.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation/Status.php new file mode 100644 index 000000000000..49c8585d1851 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation/Status.php @@ -0,0 +1,78 @@ +google.container.v1.Operation.Status + */ +class Status +{ + /** + * Not set. + * + * Generated from protobuf enum STATUS_UNSPECIFIED = 0; + */ + const STATUS_UNSPECIFIED = 0; + /** + * The operation has been created. + * + * Generated from protobuf enum PENDING = 1; + */ + const PENDING = 1; + /** + * The operation is currently running. + * + * Generated from protobuf enum RUNNING = 2; + */ + const RUNNING = 2; + /** + * The operation is done, either cancelled or completed. + * + * Generated from protobuf enum DONE = 3; + */ + const DONE = 3; + /** + * The operation is aborting. + * + * Generated from protobuf enum ABORTING = 4; + */ + const ABORTING = 4; + + private static $valueToName = [ + self::STATUS_UNSPECIFIED => 'STATUS_UNSPECIFIED', + self::PENDING => 'PENDING', + self::RUNNING => 'RUNNING', + self::DONE => 'DONE', + self::ABORTING => 'ABORTING', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Status::class, \Google\Cloud\Container\V1\Operation_Status::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation/Type.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation/Type.php new file mode 100644 index 000000000000..59d8003dacf6 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation/Type.php @@ -0,0 +1,234 @@ +google.container.v1.Operation.Type + */ +class Type +{ + /** + * Not set. + * + * Generated from protobuf enum TYPE_UNSPECIFIED = 0; + */ + const TYPE_UNSPECIFIED = 0; + /** + * The cluster is being created. The cluster should be assumed to be + * unusable until the operation finishes. + * In the event of the operation failing, the cluster will enter the [ERROR + * state][Cluster.Status.ERROR] and eventually be deleted. + * + * Generated from protobuf enum CREATE_CLUSTER = 1; + */ + const CREATE_CLUSTER = 1; + /** + * The cluster is being deleted. The cluster should be assumed to be + * unusable as soon as this operation starts. + * In the event of the operation failing, the cluster will enter the [ERROR + * state][Cluster.Status.ERROR] and the deletion will be automatically + * retried until completed. + * + * Generated from protobuf enum DELETE_CLUSTER = 2; + */ + const DELETE_CLUSTER = 2; + /** + * The [cluster + * version][google.container.v1.ClusterUpdate.desired_master_version] is + * being updated. Note that this includes "upgrades" to the same version, + * which are simply a recreation. This also includes + * [auto-upgrades](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-upgrades#upgrading_automatically). + * For more details, see [documentation on cluster + * upgrades](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-upgrades#cluster_upgrades). + * + * Generated from protobuf enum UPGRADE_MASTER = 3; + */ + const UPGRADE_MASTER = 3; + /** + * A node pool is being updated. Despite calling this an "upgrade", this + * includes most forms of updates to node pools. This also includes + * [auto-upgrades](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-upgrades). + * This operation sets the + * [progress][google.container.v1.Operation.progress] field and may be + * [canceled][google.container.v1.ClusterManager.CancelOperation]. + * The upgrade strategy depends on [node pool + * configuration](https://cloud.google.com/kubernetes-engine/docs/concepts/node-pool-upgrade-strategies). + * The nodes are generally still usable during this operation. + * + * Generated from protobuf enum UPGRADE_NODES = 4; + */ + const UPGRADE_NODES = 4; + /** + * A problem has been detected with the control plane and is being repaired. + * This operation type is initiated by GKE. For more details, see + * [documentation on + * repairs](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions#repairs). + * + * Generated from protobuf enum REPAIR_CLUSTER = 5; + */ + const REPAIR_CLUSTER = 5; + /** + * The cluster is being updated. This is a broad category of operations and + * includes operations that only change metadata as well as those that must + * recreate the entire cluster. If the control plane must be recreated, this + * will cause temporary downtime for zonal clusters. + * Some features require recreating the nodes as well. Those will be + * recreated as separate operations and the update may not be completely + * functional until the node pools recreations finish. Node recreations will + * generally follow [maintenance + * policies](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions). + * Some GKE-initiated operations use this type. This includes certain types + * of auto-upgrades and incident mitigations. + * + * Generated from protobuf enum UPDATE_CLUSTER = 6; + */ + const UPDATE_CLUSTER = 6; + /** + * A node pool is being created. The node pool should be assumed to be + * unusable until this operation finishes. In the event of an error, the + * node pool may be partially created. + * If enabled, [node + * autoprovisioning](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-provisioning) + * may have automatically initiated such operations. + * + * Generated from protobuf enum CREATE_NODE_POOL = 7; + */ + const CREATE_NODE_POOL = 7; + /** + * The node pool is being deleted. The node pool should be assumed to be + * unusable as soon as this operation starts. + * + * Generated from protobuf enum DELETE_NODE_POOL = 8; + */ + const DELETE_NODE_POOL = 8; + /** + * The node pool's [manamagent][google.container.v1.NodePool.management] + * field is being updated. These operations only update metadata and may be + * concurrent with most other operations. + * + * Generated from protobuf enum SET_NODE_POOL_MANAGEMENT = 9; + */ + const SET_NODE_POOL_MANAGEMENT = 9; + /** + * A problem has been detected with nodes and [they are being + * repaired](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-repair). + * This operation type is initiated by GKE, typically automatically. This + * operation may be concurrent with other operations and there may be + * multiple repairs occurring on the same node pool. + * + * Generated from protobuf enum AUTO_REPAIR_NODES = 10; + */ + const AUTO_REPAIR_NODES = 10; + /** + * Unused. Automatic node upgrade uses + * [UPGRADE_NODES][google.container.v1.Operation.Type.UPGRADE_NODES]. + * + * Generated from protobuf enum AUTO_UPGRADE_NODES = 11 [deprecated = true]; + */ + const AUTO_UPGRADE_NODES = 11; + /** + * Unused. Updating labels uses + * [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER]. + * + * Generated from protobuf enum SET_LABELS = 12 [deprecated = true]; + */ + const SET_LABELS = 12; + /** + * Unused. Updating master auth uses + * [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER]. + * + * Generated from protobuf enum SET_MASTER_AUTH = 13 [deprecated = true]; + */ + const SET_MASTER_AUTH = 13; + /** + * The node pool is being resized. With the exception of resizing to or from + * size zero, the node pool is generally usable during this operation. + * + * Generated from protobuf enum SET_NODE_POOL_SIZE = 14; + */ + const SET_NODE_POOL_SIZE = 14; + /** + * Unused. Updating network policy uses + * [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER]. + * + * Generated from protobuf enum SET_NETWORK_POLICY = 15 [deprecated = true]; + */ + const SET_NETWORK_POLICY = 15; + /** + * Unused. Updating maintenance policy uses + * [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER]. + * + * Generated from protobuf enum SET_MAINTENANCE_POLICY = 16 [deprecated = true]; + */ + const SET_MAINTENANCE_POLICY = 16; + /** + * The control plane is being resized. This operation type is initiated by + * GKE. These operations are often performed preemptively to ensure that the + * control plane has sufficient resources and is not typically an indication + * of issues. For more details, see + * [documentation on + * resizes](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions#repairs). + * + * Generated from protobuf enum RESIZE_CLUSTER = 18; + */ + const RESIZE_CLUSTER = 18; + /** + * Fleet features of GKE Enterprise are being upgraded. The cluster should + * be assumed to be blocked for other upgrades until the operation finishes. + * + * Generated from protobuf enum FLEET_FEATURE_UPGRADE = 19; + */ + const FLEET_FEATURE_UPGRADE = 19; + + private static $valueToName = [ + self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', + self::CREATE_CLUSTER => 'CREATE_CLUSTER', + self::DELETE_CLUSTER => 'DELETE_CLUSTER', + self::UPGRADE_MASTER => 'UPGRADE_MASTER', + self::UPGRADE_NODES => 'UPGRADE_NODES', + self::REPAIR_CLUSTER => 'REPAIR_CLUSTER', + self::UPDATE_CLUSTER => 'UPDATE_CLUSTER', + self::CREATE_NODE_POOL => 'CREATE_NODE_POOL', + self::DELETE_NODE_POOL => 'DELETE_NODE_POOL', + self::SET_NODE_POOL_MANAGEMENT => 'SET_NODE_POOL_MANAGEMENT', + self::AUTO_REPAIR_NODES => 'AUTO_REPAIR_NODES', + self::AUTO_UPGRADE_NODES => 'AUTO_UPGRADE_NODES', + self::SET_LABELS => 'SET_LABELS', + self::SET_MASTER_AUTH => 'SET_MASTER_AUTH', + self::SET_NODE_POOL_SIZE => 'SET_NODE_POOL_SIZE', + self::SET_NETWORK_POLICY => 'SET_NETWORK_POLICY', + self::SET_MAINTENANCE_POLICY => 'SET_MAINTENANCE_POLICY', + self::RESIZE_CLUSTER => 'RESIZE_CLUSTER', + self::FLEET_FEATURE_UPGRADE => 'FLEET_FEATURE_UPGRADE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Type::class, \Google\Cloud\Container\V1\Operation_Type::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/OperationProgress.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/OperationProgress.php new file mode 100644 index 000000000000..533975905024 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/OperationProgress.php @@ -0,0 +1,197 @@ +google.container.v1.OperationProgress + */ +class OperationProgress extends \Google\Protobuf\Internal\Message +{ + /** + * A non-parameterized string describing an operation stage. + * Unset for single-stage operations. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Status of an operation stage. + * Unset for single-stage operations. + * + * Generated from protobuf field .google.container.v1.Operation.Status status = 2; + */ + protected $status = 0; + /** + * Progress metric bundle, for example: + * metrics: [{name: "nodes done", int_value: 15}, + * {name: "nodes total", int_value: 32}] + * or + * metrics: [{name: "progress", double_value: 0.56}, + * {name: "progress scale", double_value: 1.0}] + * + * Generated from protobuf field repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + private $metrics; + /** + * Substages of an operation or a stage. + * + * Generated from protobuf field repeated .google.container.v1.OperationProgress stages = 4; + */ + private $stages; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * A non-parameterized string describing an operation stage. + * Unset for single-stage operations. + * @type int $status + * Status of an operation stage. + * Unset for single-stage operations. + * @type array<\Google\Cloud\Container\V1\OperationProgress\Metric>|\Google\Protobuf\Internal\RepeatedField $metrics + * Progress metric bundle, for example: + * metrics: [{name: "nodes done", int_value: 15}, + * {name: "nodes total", int_value: 32}] + * or + * metrics: [{name: "progress", double_value: 0.56}, + * {name: "progress scale", double_value: 1.0}] + * @type array<\Google\Cloud\Container\V1\OperationProgress>|\Google\Protobuf\Internal\RepeatedField $stages + * Substages of an operation or a stage. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * A non-parameterized string describing an operation stage. + * Unset for single-stage operations. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * A non-parameterized string describing an operation stage. + * Unset for single-stage operations. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Status of an operation stage. + * Unset for single-stage operations. + * + * Generated from protobuf field .google.container.v1.Operation.Status status = 2; + * @return int + */ + public function getStatus() + { + return $this->status; + } + + /** + * Status of an operation stage. + * Unset for single-stage operations. + * + * Generated from protobuf field .google.container.v1.Operation.Status status = 2; + * @param int $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\Operation\Status::class); + $this->status = $var; + + return $this; + } + + /** + * Progress metric bundle, for example: + * metrics: [{name: "nodes done", int_value: 15}, + * {name: "nodes total", int_value: 32}] + * or + * metrics: [{name: "progress", double_value: 0.56}, + * {name: "progress scale", double_value: 1.0}] + * + * Generated from protobuf field repeated .google.container.v1.OperationProgress.Metric metrics = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMetrics() + { + return $this->metrics; + } + + /** + * Progress metric bundle, for example: + * metrics: [{name: "nodes done", int_value: 15}, + * {name: "nodes total", int_value: 32}] + * or + * metrics: [{name: "progress", double_value: 0.56}, + * {name: "progress scale", double_value: 1.0}] + * + * Generated from protobuf field repeated .google.container.v1.OperationProgress.Metric metrics = 3; + * @param array<\Google\Cloud\Container\V1\OperationProgress\Metric>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMetrics($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\OperationProgress\Metric::class); + $this->metrics = $arr; + + return $this; + } + + /** + * Substages of an operation or a stage. + * + * Generated from protobuf field repeated .google.container.v1.OperationProgress stages = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getStages() + { + return $this->stages; + } + + /** + * Substages of an operation or a stage. + * + * Generated from protobuf field repeated .google.container.v1.OperationProgress stages = 4; + * @param array<\Google\Cloud\Container\V1\OperationProgress>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setStages($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\OperationProgress::class); + $this->stages = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/OperationProgress/Metric.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/OperationProgress/Metric.php new file mode 100644 index 000000000000..6c134eae0fd1 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/OperationProgress/Metric.php @@ -0,0 +1,178 @@ +google.container.v1.OperationProgress.Metric + */ +class Metric extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Metric name, e.g., "nodes total", "percent done". + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + protected $value; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Metric name, e.g., "nodes total", "percent done". + * @type int|string $int_value + * For metrics with integer value. + * @type float $double_value + * For metrics with floating point value. + * @type string $string_value + * For metrics with custom values (ratios, visual progress, etc.). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Metric name, e.g., "nodes total", "percent done". + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Metric name, e.g., "nodes total", "percent done". + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * For metrics with integer value. + * + * Generated from protobuf field int64 int_value = 2; + * @return int|string + */ + public function getIntValue() + { + return $this->readOneof(2); + } + + public function hasIntValue() + { + return $this->hasOneof(2); + } + + /** + * For metrics with integer value. + * + * Generated from protobuf field int64 int_value = 2; + * @param int|string $var + * @return $this + */ + public function setIntValue($var) + { + GPBUtil::checkInt64($var); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * For metrics with floating point value. + * + * Generated from protobuf field double double_value = 3; + * @return float + */ + public function getDoubleValue() + { + return $this->readOneof(3); + } + + public function hasDoubleValue() + { + return $this->hasOneof(3); + } + + /** + * For metrics with floating point value. + * + * Generated from protobuf field double double_value = 3; + * @param float $var + * @return $this + */ + public function setDoubleValue($var) + { + GPBUtil::checkDouble($var); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * For metrics with custom values (ratios, visual progress, etc.). + * + * Generated from protobuf field string string_value = 4; + * @return string + */ + public function getStringValue() + { + return $this->readOneof(4); + } + + public function hasStringValue() + { + return $this->hasOneof(4); + } + + /** + * For metrics with custom values (ratios, visual progress, etc.). + * + * Generated from protobuf field string string_value = 4; + * @param string $var + * @return $this + */ + public function setStringValue($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * @return string + */ + public function getValue() + { + return $this->whichOneof("value"); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Metric::class, \Google\Cloud\Container\V1\OperationProgress_Metric::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PodCIDROverprovisionConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PodCIDROverprovisionConfig.php new file mode 100644 index 000000000000..d5f56d4b2ade --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PodCIDROverprovisionConfig.php @@ -0,0 +1,72 @@ +google.container.v1.PodCIDROverprovisionConfig + */ +class PodCIDROverprovisionConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Whether Pod CIDR overprovisioning is disabled. + * Note: Pod CIDR overprovisioning is enabled by default. + * + * Generated from protobuf field bool disable = 1; + */ + protected $disable = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $disable + * Whether Pod CIDR overprovisioning is disabled. + * Note: Pod CIDR overprovisioning is enabled by default. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether Pod CIDR overprovisioning is disabled. + * Note: Pod CIDR overprovisioning is enabled by default. + * + * Generated from protobuf field bool disable = 1; + * @return bool + */ + public function getDisable() + { + return $this->disable; + } + + /** + * Whether Pod CIDR overprovisioning is disabled. + * Note: Pod CIDR overprovisioning is enabled by default. + * + * Generated from protobuf field bool disable = 1; + * @param bool $var + * @return $this + */ + public function setDisable($var) + { + GPBUtil::checkBool($var); + $this->disable = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateClusterConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateClusterConfig.php new file mode 100644 index 000000000000..1b060f96e51a --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateClusterConfig.php @@ -0,0 +1,339 @@ +google.container.v1.PrivateClusterConfig + */ +class PrivateClusterConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Whether nodes have internal IP addresses only. If enabled, all nodes are + * given only RFC 1918 private addresses and communicate with the master via + * private networking. + * + * Generated from protobuf field bool enable_private_nodes = 1; + */ + protected $enable_private_nodes = false; + /** + * Whether the master's internal IP address is used as the cluster endpoint. + * + * Generated from protobuf field bool enable_private_endpoint = 2; + */ + protected $enable_private_endpoint = false; + /** + * The IP range in CIDR notation to use for the hosted master network. This + * range will be used for assigning internal IP addresses to the master or + * set of masters, as well as the ILB VIP. This range must not overlap with + * any other ranges in use within the cluster's network. + * + * Generated from protobuf field string master_ipv4_cidr_block = 3; + */ + protected $master_ipv4_cidr_block = ''; + /** + * Output only. The internal IP address of this cluster's master endpoint. + * + * Generated from protobuf field string private_endpoint = 4; + */ + protected $private_endpoint = ''; + /** + * Output only. The external IP address of this cluster's master endpoint. + * + * Generated from protobuf field string public_endpoint = 5; + */ + protected $public_endpoint = ''; + /** + * Output only. The peering name in the customer VPC used by this cluster. + * + * Generated from protobuf field string peering_name = 7; + */ + protected $peering_name = ''; + /** + * Controls master global access settings. + * + * Generated from protobuf field .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + */ + protected $master_global_access_config = null; + /** + * Subnet to provision the master's private endpoint during cluster creation. + * Specified in projects/*/regions/*/subnetworks/* format. + * + * Generated from protobuf field string private_endpoint_subnetwork = 10; + */ + protected $private_endpoint_subnetwork = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enable_private_nodes + * Whether nodes have internal IP addresses only. If enabled, all nodes are + * given only RFC 1918 private addresses and communicate with the master via + * private networking. + * @type bool $enable_private_endpoint + * Whether the master's internal IP address is used as the cluster endpoint. + * @type string $master_ipv4_cidr_block + * The IP range in CIDR notation to use for the hosted master network. This + * range will be used for assigning internal IP addresses to the master or + * set of masters, as well as the ILB VIP. This range must not overlap with + * any other ranges in use within the cluster's network. + * @type string $private_endpoint + * Output only. The internal IP address of this cluster's master endpoint. + * @type string $public_endpoint + * Output only. The external IP address of this cluster's master endpoint. + * @type string $peering_name + * Output only. The peering name in the customer VPC used by this cluster. + * @type \Google\Cloud\Container\V1\PrivateClusterMasterGlobalAccessConfig $master_global_access_config + * Controls master global access settings. + * @type string $private_endpoint_subnetwork + * Subnet to provision the master's private endpoint during cluster creation. + * Specified in projects/*/regions/*/subnetworks/* format. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether nodes have internal IP addresses only. If enabled, all nodes are + * given only RFC 1918 private addresses and communicate with the master via + * private networking. + * + * Generated from protobuf field bool enable_private_nodes = 1; + * @return bool + */ + public function getEnablePrivateNodes() + { + return $this->enable_private_nodes; + } + + /** + * Whether nodes have internal IP addresses only. If enabled, all nodes are + * given only RFC 1918 private addresses and communicate with the master via + * private networking. + * + * Generated from protobuf field bool enable_private_nodes = 1; + * @param bool $var + * @return $this + */ + public function setEnablePrivateNodes($var) + { + GPBUtil::checkBool($var); + $this->enable_private_nodes = $var; + + return $this; + } + + /** + * Whether the master's internal IP address is used as the cluster endpoint. + * + * Generated from protobuf field bool enable_private_endpoint = 2; + * @return bool + */ + public function getEnablePrivateEndpoint() + { + return $this->enable_private_endpoint; + } + + /** + * Whether the master's internal IP address is used as the cluster endpoint. + * + * Generated from protobuf field bool enable_private_endpoint = 2; + * @param bool $var + * @return $this + */ + public function setEnablePrivateEndpoint($var) + { + GPBUtil::checkBool($var); + $this->enable_private_endpoint = $var; + + return $this; + } + + /** + * The IP range in CIDR notation to use for the hosted master network. This + * range will be used for assigning internal IP addresses to the master or + * set of masters, as well as the ILB VIP. This range must not overlap with + * any other ranges in use within the cluster's network. + * + * Generated from protobuf field string master_ipv4_cidr_block = 3; + * @return string + */ + public function getMasterIpv4CidrBlock() + { + return $this->master_ipv4_cidr_block; + } + + /** + * The IP range in CIDR notation to use for the hosted master network. This + * range will be used for assigning internal IP addresses to the master or + * set of masters, as well as the ILB VIP. This range must not overlap with + * any other ranges in use within the cluster's network. + * + * Generated from protobuf field string master_ipv4_cidr_block = 3; + * @param string $var + * @return $this + */ + public function setMasterIpv4CidrBlock($var) + { + GPBUtil::checkString($var, True); + $this->master_ipv4_cidr_block = $var; + + return $this; + } + + /** + * Output only. The internal IP address of this cluster's master endpoint. + * + * Generated from protobuf field string private_endpoint = 4; + * @return string + */ + public function getPrivateEndpoint() + { + return $this->private_endpoint; + } + + /** + * Output only. The internal IP address of this cluster's master endpoint. + * + * Generated from protobuf field string private_endpoint = 4; + * @param string $var + * @return $this + */ + public function setPrivateEndpoint($var) + { + GPBUtil::checkString($var, True); + $this->private_endpoint = $var; + + return $this; + } + + /** + * Output only. The external IP address of this cluster's master endpoint. + * + * Generated from protobuf field string public_endpoint = 5; + * @return string + */ + public function getPublicEndpoint() + { + return $this->public_endpoint; + } + + /** + * Output only. The external IP address of this cluster's master endpoint. + * + * Generated from protobuf field string public_endpoint = 5; + * @param string $var + * @return $this + */ + public function setPublicEndpoint($var) + { + GPBUtil::checkString($var, True); + $this->public_endpoint = $var; + + return $this; + } + + /** + * Output only. The peering name in the customer VPC used by this cluster. + * + * Generated from protobuf field string peering_name = 7; + * @return string + */ + public function getPeeringName() + { + return $this->peering_name; + } + + /** + * Output only. The peering name in the customer VPC used by this cluster. + * + * Generated from protobuf field string peering_name = 7; + * @param string $var + * @return $this + */ + public function setPeeringName($var) + { + GPBUtil::checkString($var, True); + $this->peering_name = $var; + + return $this; + } + + /** + * Controls master global access settings. + * + * Generated from protobuf field .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * @return \Google\Cloud\Container\V1\PrivateClusterMasterGlobalAccessConfig|null + */ + public function getMasterGlobalAccessConfig() + { + return $this->master_global_access_config; + } + + public function hasMasterGlobalAccessConfig() + { + return isset($this->master_global_access_config); + } + + public function clearMasterGlobalAccessConfig() + { + unset($this->master_global_access_config); + } + + /** + * Controls master global access settings. + * + * Generated from protobuf field .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * @param \Google\Cloud\Container\V1\PrivateClusterMasterGlobalAccessConfig $var + * @return $this + */ + public function setMasterGlobalAccessConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\PrivateClusterMasterGlobalAccessConfig::class); + $this->master_global_access_config = $var; + + return $this; + } + + /** + * Subnet to provision the master's private endpoint during cluster creation. + * Specified in projects/*/regions/*/subnetworks/* format. + * + * Generated from protobuf field string private_endpoint_subnetwork = 10; + * @return string + */ + public function getPrivateEndpointSubnetwork() + { + return $this->private_endpoint_subnetwork; + } + + /** + * Subnet to provision the master's private endpoint during cluster creation. + * Specified in projects/*/regions/*/subnetworks/* format. + * + * Generated from protobuf field string private_endpoint_subnetwork = 10; + * @param string $var + * @return $this + */ + public function setPrivateEndpointSubnetwork($var) + { + GPBUtil::checkString($var, True); + $this->private_endpoint_subnetwork = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateClusterMasterGlobalAccessConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateClusterMasterGlobalAccessConfig.php new file mode 100644 index 000000000000..0bfb60386807 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateClusterMasterGlobalAccessConfig.php @@ -0,0 +1,67 @@ +google.container.v1.PrivateClusterMasterGlobalAccessConfig + */ +class PrivateClusterMasterGlobalAccessConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Whenever master is accessible globally or not. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Whenever master is accessible globally or not. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whenever master is accessible globally or not. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Whenever master is accessible globally or not. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateIPv6GoogleAccess.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateIPv6GoogleAccess.php new file mode 100644 index 000000000000..fae45c6c2353 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateIPv6GoogleAccess.php @@ -0,0 +1,69 @@ +google.container.v1.PrivateIPv6GoogleAccess + */ +class PrivateIPv6GoogleAccess +{ + /** + * Default value. Same as DISABLED + * + * Generated from protobuf enum PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0; + */ + const PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0; + /** + * No private access to or from Google Services + * + * Generated from protobuf enum PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED = 1; + */ + const PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED = 1; + /** + * Enables private IPv6 access to Google Services from GKE + * + * Generated from protobuf enum PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE = 2; + */ + const PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE = 2; + /** + * Enables private IPv6 access to and from Google Services + * + * Generated from protobuf enum PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL = 3; + */ + const PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL = 3; + + private static $valueToName = [ + self::PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED => 'PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED', + self::PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED => 'PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED', + self::PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE => 'PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE', + self::PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL => 'PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RangeInfo.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RangeInfo.php new file mode 100644 index 000000000000..3d7f6294d97b --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RangeInfo.php @@ -0,0 +1,101 @@ +google.container.v1.RangeInfo + */ +class RangeInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. [Output only] Name of a range. + * + * Generated from protobuf field string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $range_name = ''; + /** + * Output only. [Output only] The utilization of the range. + * + * Generated from protobuf field double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $utilization = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $range_name + * Output only. [Output only] Name of a range. + * @type float $utilization + * Output only. [Output only] The utilization of the range. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Output only. [Output only] Name of a range. + * + * Generated from protobuf field string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getRangeName() + { + return $this->range_name; + } + + /** + * Output only. [Output only] Name of a range. + * + * Generated from protobuf field string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setRangeName($var) + { + GPBUtil::checkString($var, True); + $this->range_name = $var; + + return $this; + } + + /** + * Output only. [Output only] The utilization of the range. + * + * Generated from protobuf field double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getUtilization() + { + return $this->utilization; + } + + /** + * Output only. [Output only] The utilization of the range. + * + * Generated from protobuf field double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setUtilization($var) + { + GPBUtil::checkDouble($var); + $this->utilization = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RecurringTimeWindow.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RecurringTimeWindow.php new file mode 100644 index 000000000000..d048032ea79c --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RecurringTimeWindow.php @@ -0,0 +1,211 @@ +google.container.v1.RecurringTimeWindow + */ +class RecurringTimeWindow extends \Google\Protobuf\Internal\Message +{ + /** + * The window of the first recurrence. + * + * Generated from protobuf field .google.container.v1.TimeWindow window = 1; + */ + protected $window = null; + /** + * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how + * this window reccurs. They go on for the span of time between the start and + * end time. + * For example, to have something repeat every weekday, you'd use: + * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR` + * To repeat some window daily (equivalent to the DailyMaintenanceWindow): + * `FREQ=DAILY` + * For the first weekend of every month: + * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU` + * This specifies how frequently the window starts. Eg, if you wanted to have + * a 9-5 UTC-4 window every weekday, you'd use something like: + * ``` + * start time = 2019-01-01T09:00:00-0400 + * end time = 2019-01-01T17:00:00-0400 + * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR + * ``` + * Windows can span multiple days. Eg, to make the window encompass every + * weekend from midnight Saturday till the last minute of Sunday UTC: + * ``` + * start time = 2019-01-05T00:00:00Z + * end time = 2019-01-07T23:59:00Z + * recurrence = FREQ=WEEKLY;BYDAY=SA + * ``` + * Note the start and end time's specific dates are largely arbitrary except + * to specify duration of the window and when it first starts. + * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported. + * + * Generated from protobuf field string recurrence = 2; + */ + protected $recurrence = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Container\V1\TimeWindow $window + * The window of the first recurrence. + * @type string $recurrence + * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how + * this window reccurs. They go on for the span of time between the start and + * end time. + * For example, to have something repeat every weekday, you'd use: + * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR` + * To repeat some window daily (equivalent to the DailyMaintenanceWindow): + * `FREQ=DAILY` + * For the first weekend of every month: + * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU` + * This specifies how frequently the window starts. Eg, if you wanted to have + * a 9-5 UTC-4 window every weekday, you'd use something like: + * ``` + * start time = 2019-01-01T09:00:00-0400 + * end time = 2019-01-01T17:00:00-0400 + * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR + * ``` + * Windows can span multiple days. Eg, to make the window encompass every + * weekend from midnight Saturday till the last minute of Sunday UTC: + * ``` + * start time = 2019-01-05T00:00:00Z + * end time = 2019-01-07T23:59:00Z + * recurrence = FREQ=WEEKLY;BYDAY=SA + * ``` + * Note the start and end time's specific dates are largely arbitrary except + * to specify duration of the window and when it first starts. + * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The window of the first recurrence. + * + * Generated from protobuf field .google.container.v1.TimeWindow window = 1; + * @return \Google\Cloud\Container\V1\TimeWindow|null + */ + public function getWindow() + { + return $this->window; + } + + public function hasWindow() + { + return isset($this->window); + } + + public function clearWindow() + { + unset($this->window); + } + + /** + * The window of the first recurrence. + * + * Generated from protobuf field .google.container.v1.TimeWindow window = 1; + * @param \Google\Cloud\Container\V1\TimeWindow $var + * @return $this + */ + public function setWindow($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\TimeWindow::class); + $this->window = $var; + + return $this; + } + + /** + * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how + * this window reccurs. They go on for the span of time between the start and + * end time. + * For example, to have something repeat every weekday, you'd use: + * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR` + * To repeat some window daily (equivalent to the DailyMaintenanceWindow): + * `FREQ=DAILY` + * For the first weekend of every month: + * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU` + * This specifies how frequently the window starts. Eg, if you wanted to have + * a 9-5 UTC-4 window every weekday, you'd use something like: + * ``` + * start time = 2019-01-01T09:00:00-0400 + * end time = 2019-01-01T17:00:00-0400 + * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR + * ``` + * Windows can span multiple days. Eg, to make the window encompass every + * weekend from midnight Saturday till the last minute of Sunday UTC: + * ``` + * start time = 2019-01-05T00:00:00Z + * end time = 2019-01-07T23:59:00Z + * recurrence = FREQ=WEEKLY;BYDAY=SA + * ``` + * Note the start and end time's specific dates are largely arbitrary except + * to specify duration of the window and when it first starts. + * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported. + * + * Generated from protobuf field string recurrence = 2; + * @return string + */ + public function getRecurrence() + { + return $this->recurrence; + } + + /** + * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how + * this window reccurs. They go on for the span of time between the start and + * end time. + * For example, to have something repeat every weekday, you'd use: + * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR` + * To repeat some window daily (equivalent to the DailyMaintenanceWindow): + * `FREQ=DAILY` + * For the first weekend of every month: + * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU` + * This specifies how frequently the window starts. Eg, if you wanted to have + * a 9-5 UTC-4 window every weekday, you'd use something like: + * ``` + * start time = 2019-01-01T09:00:00-0400 + * end time = 2019-01-01T17:00:00-0400 + * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR + * ``` + * Windows can span multiple days. Eg, to make the window encompass every + * weekend from midnight Saturday till the last minute of Sunday UTC: + * ``` + * start time = 2019-01-05T00:00:00Z + * end time = 2019-01-07T23:59:00Z + * recurrence = FREQ=WEEKLY;BYDAY=SA + * ``` + * Note the start and end time's specific dates are largely arbitrary except + * to specify duration of the window and when it first starts. + * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported. + * + * Generated from protobuf field string recurrence = 2; + * @param string $var + * @return $this + */ + public function setRecurrence($var) + { + GPBUtil::checkString($var, True); + $this->recurrence = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReleaseChannel.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReleaseChannel.php new file mode 100644 index 000000000000..9b9b1b38c11b --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReleaseChannel.php @@ -0,0 +1,71 @@ +google.container.v1.ReleaseChannel + */ +class ReleaseChannel extends \Google\Protobuf\Internal\Message +{ + /** + * channel specifies which release channel the cluster is subscribed to. + * + * Generated from protobuf field .google.container.v1.ReleaseChannel.Channel channel = 1; + */ + protected $channel = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $channel + * channel specifies which release channel the cluster is subscribed to. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * channel specifies which release channel the cluster is subscribed to. + * + * Generated from protobuf field .google.container.v1.ReleaseChannel.Channel channel = 1; + * @return int + */ + public function getChannel() + { + return $this->channel; + } + + /** + * channel specifies which release channel the cluster is subscribed to. + * + * Generated from protobuf field .google.container.v1.ReleaseChannel.Channel channel = 1; + * @param int $var + * @return $this + */ + public function setChannel($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\ReleaseChannel\Channel::class); + $this->channel = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReleaseChannel/Channel.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReleaseChannel/Channel.php new file mode 100644 index 000000000000..d02de572a02f --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReleaseChannel/Channel.php @@ -0,0 +1,78 @@ +google.container.v1.ReleaseChannel.Channel + */ +class Channel +{ + /** + * No channel specified. + * + * Generated from protobuf enum UNSPECIFIED = 0; + */ + const UNSPECIFIED = 0; + /** + * RAPID channel is offered on an early access basis for customers who want + * to test new releases. + * WARNING: Versions available in the RAPID Channel may be subject to + * unresolved issues with no known workaround and are not subject to any + * SLAs. + * + * Generated from protobuf enum RAPID = 1; + */ + const RAPID = 1; + /** + * Clusters subscribed to REGULAR receive versions that are considered GA + * quality. REGULAR is intended for production users who want to take + * advantage of new features. + * + * Generated from protobuf enum REGULAR = 2; + */ + const REGULAR = 2; + /** + * Clusters subscribed to STABLE receive versions that are known to be + * stable and reliable in production. + * + * Generated from protobuf enum STABLE = 3; + */ + const STABLE = 3; + + private static $valueToName = [ + self::UNSPECIFIED => 'UNSPECIFIED', + self::RAPID => 'RAPID', + self::REGULAR => 'REGULAR', + self::STABLE => 'STABLE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Channel::class, \Google\Cloud\Container\V1\ReleaseChannel_Channel::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReservationAffinity.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReservationAffinity.php new file mode 100644 index 000000000000..4ab66cc2346b --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReservationAffinity.php @@ -0,0 +1,149 @@ +google.container.v1.ReservationAffinity + */ +class ReservationAffinity extends \Google\Protobuf\Internal\Message +{ + /** + * Corresponds to the type of reservation consumption. + * + * Generated from protobuf field .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; + */ + protected $consume_reservation_type = 0; + /** + * Corresponds to the label key of a reservation resource. To target a + * SPECIFIC_RESERVATION by name, specify + * "compute.googleapis.com/reservation-name" as the key and specify the name + * of your reservation as its value. + * + * Generated from protobuf field string key = 2; + */ + protected $key = ''; + /** + * Corresponds to the label value(s) of reservation resource(s). + * + * Generated from protobuf field repeated string values = 3; + */ + private $values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $consume_reservation_type + * Corresponds to the type of reservation consumption. + * @type string $key + * Corresponds to the label key of a reservation resource. To target a + * SPECIFIC_RESERVATION by name, specify + * "compute.googleapis.com/reservation-name" as the key and specify the name + * of your reservation as its value. + * @type array|\Google\Protobuf\Internal\RepeatedField $values + * Corresponds to the label value(s) of reservation resource(s). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Corresponds to the type of reservation consumption. + * + * Generated from protobuf field .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; + * @return int + */ + public function getConsumeReservationType() + { + return $this->consume_reservation_type; + } + + /** + * Corresponds to the type of reservation consumption. + * + * Generated from protobuf field .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; + * @param int $var + * @return $this + */ + public function setConsumeReservationType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\ReservationAffinity\Type::class); + $this->consume_reservation_type = $var; + + return $this; + } + + /** + * Corresponds to the label key of a reservation resource. To target a + * SPECIFIC_RESERVATION by name, specify + * "compute.googleapis.com/reservation-name" as the key and specify the name + * of your reservation as its value. + * + * Generated from protobuf field string key = 2; + * @return string + */ + public function getKey() + { + return $this->key; + } + + /** + * Corresponds to the label key of a reservation resource. To target a + * SPECIFIC_RESERVATION by name, specify + * "compute.googleapis.com/reservation-name" as the key and specify the name + * of your reservation as its value. + * + * Generated from protobuf field string key = 2; + * @param string $var + * @return $this + */ + public function setKey($var) + { + GPBUtil::checkString($var, True); + $this->key = $var; + + return $this; + } + + /** + * Corresponds to the label value(s) of reservation resource(s). + * + * Generated from protobuf field repeated string values = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getValues() + { + return $this->values; + } + + /** + * Corresponds to the label value(s) of reservation resource(s). + * + * Generated from protobuf field repeated string values = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->values = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReservationAffinity/Type.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReservationAffinity/Type.php new file mode 100644 index 000000000000..3c29ed5934e3 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReservationAffinity/Type.php @@ -0,0 +1,72 @@ +google.container.v1.ReservationAffinity.Type + */ +class Type +{ + /** + * Default value. This should not be used. + * + * Generated from protobuf enum UNSPECIFIED = 0; + */ + const UNSPECIFIED = 0; + /** + * Do not consume from any reserved capacity. + * + * Generated from protobuf enum NO_RESERVATION = 1; + */ + const NO_RESERVATION = 1; + /** + * Consume any reservation available. + * + * Generated from protobuf enum ANY_RESERVATION = 2; + */ + const ANY_RESERVATION = 2; + /** + * Must consume from a specific reservation. Must specify key value fields + * for specifying the reservations. + * + * Generated from protobuf enum SPECIFIC_RESERVATION = 3; + */ + const SPECIFIC_RESERVATION = 3; + + private static $valueToName = [ + self::UNSPECIFIED => 'UNSPECIFIED', + self::NO_RESERVATION => 'NO_RESERVATION', + self::ANY_RESERVATION => 'ANY_RESERVATION', + self::SPECIFIC_RESERVATION => 'SPECIFIC_RESERVATION', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Type::class, \Google\Cloud\Container\V1\ReservationAffinity_Type::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceLabels.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceLabels.php new file mode 100644 index 000000000000..b7898abdd523 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceLabels.php @@ -0,0 +1,68 @@ +google.container.v1.ResourceLabels + */ +class ResourceLabels extends \Google\Protobuf\Internal\Message +{ + /** + * Map of node label keys and node label values. + * + * Generated from protobuf field map labels = 1; + */ + private $labels; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\MapField $labels + * Map of node label keys and node label values. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Map of node label keys and node label values. + * + * Generated from protobuf field map labels = 1; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Map of node label keys and node label values. + * + * Generated from protobuf field map labels = 1; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceLimit.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceLimit.php new file mode 100644 index 000000000000..9b37f1e58826 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceLimit.php @@ -0,0 +1,136 @@ +google.container.v1.ResourceLimit + */ +class ResourceLimit extends \Google\Protobuf\Internal\Message +{ + /** + * Resource name "cpu", "memory" or gpu-specific string. + * + * Generated from protobuf field string resource_type = 1; + */ + protected $resource_type = ''; + /** + * Minimum amount of the resource in the cluster. + * + * Generated from protobuf field int64 minimum = 2; + */ + protected $minimum = 0; + /** + * Maximum amount of the resource in the cluster. + * + * Generated from protobuf field int64 maximum = 3; + */ + protected $maximum = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $resource_type + * Resource name "cpu", "memory" or gpu-specific string. + * @type int|string $minimum + * Minimum amount of the resource in the cluster. + * @type int|string $maximum + * Maximum amount of the resource in the cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Resource name "cpu", "memory" or gpu-specific string. + * + * Generated from protobuf field string resource_type = 1; + * @return string + */ + public function getResourceType() + { + return $this->resource_type; + } + + /** + * Resource name "cpu", "memory" or gpu-specific string. + * + * Generated from protobuf field string resource_type = 1; + * @param string $var + * @return $this + */ + public function setResourceType($var) + { + GPBUtil::checkString($var, True); + $this->resource_type = $var; + + return $this; + } + + /** + * Minimum amount of the resource in the cluster. + * + * Generated from protobuf field int64 minimum = 2; + * @return int|string + */ + public function getMinimum() + { + return $this->minimum; + } + + /** + * Minimum amount of the resource in the cluster. + * + * Generated from protobuf field int64 minimum = 2; + * @param int|string $var + * @return $this + */ + public function setMinimum($var) + { + GPBUtil::checkInt64($var); + $this->minimum = $var; + + return $this; + } + + /** + * Maximum amount of the resource in the cluster. + * + * Generated from protobuf field int64 maximum = 3; + * @return int|string + */ + public function getMaximum() + { + return $this->maximum; + } + + /** + * Maximum amount of the resource in the cluster. + * + * Generated from protobuf field int64 maximum = 3; + * @param int|string $var + * @return $this + */ + public function setMaximum($var) + { + GPBUtil::checkInt64($var); + $this->maximum = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceManagerTags.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceManagerTags.php new file mode 100644 index 000000000000..8ca1fb9c68a7 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceManagerTags.php @@ -0,0 +1,84 @@ +google.container.v1.ResourceManagerTags + */ +class ResourceManagerTags extends \Google\Protobuf\Internal\Message +{ + /** + * TagKeyValue must be in one of the following formats ([KEY]=[VALUE]) + * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}` + * 2. `{org_id}/{tag_key_name}={tag_value_name}` + * 3. `{project_id}/{tag_key_name}={tag_value_name}` + * + * Generated from protobuf field map tags = 1; + */ + private $tags; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\MapField $tags + * TagKeyValue must be in one of the following formats ([KEY]=[VALUE]) + * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}` + * 2. `{org_id}/{tag_key_name}={tag_value_name}` + * 3. `{project_id}/{tag_key_name}={tag_value_name}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * TagKeyValue must be in one of the following formats ([KEY]=[VALUE]) + * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}` + * 2. `{org_id}/{tag_key_name}={tag_value_name}` + * 3. `{project_id}/{tag_key_name}={tag_value_name}` + * + * Generated from protobuf field map tags = 1; + * @return \Google\Protobuf\Internal\MapField + */ + public function getTags() + { + return $this->tags; + } + + /** + * TagKeyValue must be in one of the following formats ([KEY]=[VALUE]) + * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}` + * 2. `{org_id}/{tag_key_name}={tag_value_name}` + * 3. `{project_id}/{tag_key_name}={tag_value_name}` + * + * Generated from protobuf field map tags = 1; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setTags($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->tags = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig.php new file mode 100644 index 000000000000..b29b99b6d250 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig.php @@ -0,0 +1,159 @@ +google.container.v1.ResourceUsageExportConfig + */ +class ResourceUsageExportConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Configuration to use BigQuery as usage export destination. + * + * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + */ + protected $bigquery_destination = null; + /** + * Whether to enable network egress metering for this cluster. If enabled, a + * daemonset will be created in the cluster to meter network egress traffic. + * + * Generated from protobuf field bool enable_network_egress_metering = 2; + */ + protected $enable_network_egress_metering = false; + /** + * Configuration to enable resource consumption metering. + * + * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + */ + protected $consumption_metering_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Container\V1\ResourceUsageExportConfig\BigQueryDestination $bigquery_destination + * Configuration to use BigQuery as usage export destination. + * @type bool $enable_network_egress_metering + * Whether to enable network egress metering for this cluster. If enabled, a + * daemonset will be created in the cluster to meter network egress traffic. + * @type \Google\Cloud\Container\V1\ResourceUsageExportConfig\ConsumptionMeteringConfig $consumption_metering_config + * Configuration to enable resource consumption metering. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Configuration to use BigQuery as usage export destination. + * + * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * @return \Google\Cloud\Container\V1\ResourceUsageExportConfig\BigQueryDestination|null + */ + public function getBigqueryDestination() + { + return $this->bigquery_destination; + } + + public function hasBigqueryDestination() + { + return isset($this->bigquery_destination); + } + + public function clearBigqueryDestination() + { + unset($this->bigquery_destination); + } + + /** + * Configuration to use BigQuery as usage export destination. + * + * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * @param \Google\Cloud\Container\V1\ResourceUsageExportConfig\BigQueryDestination $var + * @return $this + */ + public function setBigqueryDestination($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ResourceUsageExportConfig\BigQueryDestination::class); + $this->bigquery_destination = $var; + + return $this; + } + + /** + * Whether to enable network egress metering for this cluster. If enabled, a + * daemonset will be created in the cluster to meter network egress traffic. + * + * Generated from protobuf field bool enable_network_egress_metering = 2; + * @return bool + */ + public function getEnableNetworkEgressMetering() + { + return $this->enable_network_egress_metering; + } + + /** + * Whether to enable network egress metering for this cluster. If enabled, a + * daemonset will be created in the cluster to meter network egress traffic. + * + * Generated from protobuf field bool enable_network_egress_metering = 2; + * @param bool $var + * @return $this + */ + public function setEnableNetworkEgressMetering($var) + { + GPBUtil::checkBool($var); + $this->enable_network_egress_metering = $var; + + return $this; + } + + /** + * Configuration to enable resource consumption metering. + * + * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * @return \Google\Cloud\Container\V1\ResourceUsageExportConfig\ConsumptionMeteringConfig|null + */ + public function getConsumptionMeteringConfig() + { + return $this->consumption_metering_config; + } + + public function hasConsumptionMeteringConfig() + { + return isset($this->consumption_metering_config); + } + + public function clearConsumptionMeteringConfig() + { + unset($this->consumption_metering_config); + } + + /** + * Configuration to enable resource consumption metering. + * + * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * @param \Google\Cloud\Container\V1\ResourceUsageExportConfig\ConsumptionMeteringConfig $var + * @return $this + */ + public function setConsumptionMeteringConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ResourceUsageExportConfig\ConsumptionMeteringConfig::class); + $this->consumption_metering_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig/BigQueryDestination.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig/BigQueryDestination.php new file mode 100644 index 000000000000..8ab2f49d58dd --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig/BigQueryDestination.php @@ -0,0 +1,70 @@ +google.container.v1.ResourceUsageExportConfig.BigQueryDestination + */ +class BigQueryDestination extends \Google\Protobuf\Internal\Message +{ + /** + * The ID of a BigQuery Dataset. + * + * Generated from protobuf field string dataset_id = 1; + */ + protected $dataset_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $dataset_id + * The ID of a BigQuery Dataset. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The ID of a BigQuery Dataset. + * + * Generated from protobuf field string dataset_id = 1; + * @return string + */ + public function getDatasetId() + { + return $this->dataset_id; + } + + /** + * The ID of a BigQuery Dataset. + * + * Generated from protobuf field string dataset_id = 1; + * @param string $var + * @return $this + */ + public function setDatasetId($var) + { + GPBUtil::checkString($var, True); + $this->dataset_id = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(BigQueryDestination::class, \Google\Cloud\Container\V1\ResourceUsageExportConfig_BigQueryDestination::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig/ConsumptionMeteringConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig/ConsumptionMeteringConfig.php new file mode 100644 index 000000000000..9f574500466f --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig/ConsumptionMeteringConfig.php @@ -0,0 +1,78 @@ +google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig + */ +class ConsumptionMeteringConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Whether to enable consumption metering for this cluster. If enabled, a + * second BigQuery table will be created to hold resource consumption + * records. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Whether to enable consumption metering for this cluster. If enabled, a + * second BigQuery table will be created to hold resource consumption + * records. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether to enable consumption metering for this cluster. If enabled, a + * second BigQuery table will be created to hold resource consumption + * records. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Whether to enable consumption metering for this cluster. If enabled, a + * second BigQuery table will be created to hold resource consumption + * records. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ConsumptionMeteringConfig::class, \Google\Cloud\Container\V1\ResourceUsageExportConfig_ConsumptionMeteringConfig::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RollbackNodePoolUpgradeRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RollbackNodePoolUpgradeRequest.php new file mode 100644 index 000000000000..abae3fefbdc5 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RollbackNodePoolUpgradeRequest.php @@ -0,0 +1,340 @@ +google.container.v1.RollbackNodePoolUpgradeRequest + */ +class RollbackNodePoolUpgradeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster to rollback. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * Deprecated. The name of the node pool to rollback. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @deprecated + */ + protected $node_pool_id = ''; + /** + * The name (project, location, cluster, node pool id) of the node poll to + * rollback upgrade. + * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 6; + */ + protected $name = ''; + /** + * Option for rollback to ignore the PodDisruptionBudget. + * Default value is false. + * + * Generated from protobuf field bool respect_pdb = 7; + */ + protected $respect_pdb = false; + + /** + * @param string $projectId Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @param string $zone Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @param string $clusterId Deprecated. The name of the cluster to rollback. + * This field has been deprecated and replaced by the name field. + * @param string $nodePoolId Deprecated. The name of the node pool to rollback. + * This field has been deprecated and replaced by the name field. + * + * @return \Google\Cloud\Container\V1\RollbackNodePoolUpgradeRequest + * + * @experimental + */ + public static function build(string $projectId, string $zone, string $clusterId, string $nodePoolId): self + { + return (new self()) + ->setProjectId($projectId) + ->setZone($zone) + ->setClusterId($clusterId) + ->setNodePoolId($nodePoolId); + } + + /** + * @param string $name The name (project, location, cluster, node pool id) of the node poll to + * rollback upgrade. + * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. + * + * @return \Google\Cloud\Container\V1\RollbackNodePoolUpgradeRequest + * + * @experimental + */ + public static function buildFromName(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster to rollback. + * This field has been deprecated and replaced by the name field. + * @type string $node_pool_id + * Deprecated. The name of the node pool to rollback. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster, node pool id) of the node poll to + * rollback upgrade. + * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. + * @type bool $respect_pdb + * Option for rollback to ignore the PodDisruptionBudget. + * Default value is false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster to rollback. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster to rollback. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the node pool to rollback. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @return string + * @deprecated + */ + public function getNodePoolId() + { + @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); + return $this->node_pool_id; + } + + /** + * Deprecated. The name of the node pool to rollback. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setNodePoolId($var) + { + @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->node_pool_id = $var; + + return $this; + } + + /** + * The name (project, location, cluster, node pool id) of the node poll to + * rollback upgrade. + * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 6; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster, node pool id) of the node poll to + * rollback upgrade. + * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 6; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Option for rollback to ignore the PodDisruptionBudget. + * Default value is false. + * + * Generated from protobuf field bool respect_pdb = 7; + * @return bool + */ + public function getRespectPdb() + { + return $this->respect_pdb; + } + + /** + * Option for rollback to ignore the PodDisruptionBudget. + * Default value is false. + * + * Generated from protobuf field bool respect_pdb = 7; + * @param bool $var + * @return $this + */ + public function setRespectPdb($var) + { + GPBUtil::checkBool($var); + $this->respect_pdb = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig.php new file mode 100644 index 000000000000..edad92dc8d78 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig.php @@ -0,0 +1,67 @@ +google.container.v1.SandboxConfig + */ +class SandboxConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Type of the sandbox to use for the node. + * + * Generated from protobuf field .google.container.v1.SandboxConfig.Type type = 2; + */ + protected $type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $type + * Type of the sandbox to use for the node. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Type of the sandbox to use for the node. + * + * Generated from protobuf field .google.container.v1.SandboxConfig.Type type = 2; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Type of the sandbox to use for the node. + * + * Generated from protobuf field .google.container.v1.SandboxConfig.Type type = 2; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\SandboxConfig\Type::class); + $this->type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig/Type.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig/Type.php new file mode 100644 index 000000000000..824af0ee6238 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig/Type.php @@ -0,0 +1,57 @@ +google.container.v1.SandboxConfig.Type + */ +class Type +{ + /** + * Default value. This should not be used. + * + * Generated from protobuf enum UNSPECIFIED = 0; + */ + const UNSPECIFIED = 0; + /** + * Run sandbox using gvisor. + * + * Generated from protobuf enum GVISOR = 1; + */ + const GVISOR = 1; + + private static $valueToName = [ + self::UNSPECIFIED => 'UNSPECIFIED', + self::GVISOR => 'GVISOR', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Type::class, \Google\Cloud\Container\V1\SandboxConfig_Type::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecondaryBootDisk.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecondaryBootDisk.php new file mode 100644 index 000000000000..39efd4ea402a --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecondaryBootDisk.php @@ -0,0 +1,102 @@ +google.container.v1.SecondaryBootDisk + */ +class SecondaryBootDisk extends \Google\Protobuf\Internal\Message +{ + /** + * Disk mode (container image cache, etc.) + * + * Generated from protobuf field .google.container.v1.SecondaryBootDisk.Mode mode = 1; + */ + protected $mode = 0; + /** + * Fully-qualified resource ID for an existing disk image. + * + * Generated from protobuf field string disk_image = 2; + */ + protected $disk_image = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $mode + * Disk mode (container image cache, etc.) + * @type string $disk_image + * Fully-qualified resource ID for an existing disk image. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Disk mode (container image cache, etc.) + * + * Generated from protobuf field .google.container.v1.SecondaryBootDisk.Mode mode = 1; + * @return int + */ + public function getMode() + { + return $this->mode; + } + + /** + * Disk mode (container image cache, etc.) + * + * Generated from protobuf field .google.container.v1.SecondaryBootDisk.Mode mode = 1; + * @param int $var + * @return $this + */ + public function setMode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\SecondaryBootDisk\Mode::class); + $this->mode = $var; + + return $this; + } + + /** + * Fully-qualified resource ID for an existing disk image. + * + * Generated from protobuf field string disk_image = 2; + * @return string + */ + public function getDiskImage() + { + return $this->disk_image; + } + + /** + * Fully-qualified resource ID for an existing disk image. + * + * Generated from protobuf field string disk_image = 2; + * @param string $var + * @return $this + */ + public function setDiskImage($var) + { + GPBUtil::checkString($var, True); + $this->disk_image = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecondaryBootDisk/Mode.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecondaryBootDisk/Mode.php new file mode 100644 index 000000000000..86e73c36a945 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecondaryBootDisk/Mode.php @@ -0,0 +1,59 @@ +google.container.v1.SecondaryBootDisk.Mode + */ +class Mode +{ + /** + * MODE_UNSPECIFIED is when mode is not set. + * + * Generated from protobuf enum MODE_UNSPECIFIED = 0; + */ + const MODE_UNSPECIFIED = 0; + /** + * CONTAINER_IMAGE_CACHE is for using the secondary boot disk as + * a container image cache. + * + * Generated from protobuf enum CONTAINER_IMAGE_CACHE = 1; + */ + const CONTAINER_IMAGE_CACHE = 1; + + private static $valueToName = [ + self::MODE_UNSPECIFIED => 'MODE_UNSPECIFIED', + self::CONTAINER_IMAGE_CACHE => 'CONTAINER_IMAGE_CACHE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Mode::class, \Google\Cloud\Container\V1\SecondaryBootDisk_Mode::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecondaryBootDiskUpdateStrategy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecondaryBootDiskUpdateStrategy.php new file mode 100644 index 000000000000..0bd62853b10d --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecondaryBootDiskUpdateStrategy.php @@ -0,0 +1,34 @@ +google.container.v1.SecondaryBootDiskUpdateStrategy + */ +class SecondaryBootDiskUpdateStrategy extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityBulletinEvent.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityBulletinEvent.php new file mode 100644 index 000000000000..b20c6257342d --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityBulletinEvent.php @@ -0,0 +1,406 @@ +google.container.v1.SecurityBulletinEvent + */ +class SecurityBulletinEvent extends \Google\Protobuf\Internal\Message +{ + /** + * The resource type (node/control plane) that has the vulnerability. Multiple + * notifications (1 notification per resource type) will be sent for a + * vulnerability that affects > 1 resource type. + * + * Generated from protobuf field string resource_type_affected = 1; + */ + protected $resource_type_affected = ''; + /** + * The ID of the bulletin corresponding to the vulnerability. + * + * Generated from protobuf field string bulletin_id = 2; + */ + protected $bulletin_id = ''; + /** + * The CVEs associated with this bulletin. + * + * Generated from protobuf field repeated string cve_ids = 3; + */ + private $cve_ids; + /** + * The severity of this bulletin as it relates to GKE. + * + * Generated from protobuf field string severity = 4; + */ + protected $severity = ''; + /** + * The URI link to the bulletin on the website for more information. + * + * Generated from protobuf field string bulletin_uri = 5; + */ + protected $bulletin_uri = ''; + /** + * A brief description of the bulletin. See the bulletin pointed to by the + * bulletin_uri field for an expanded description. + * + * Generated from protobuf field string brief_description = 6; + */ + protected $brief_description = ''; + /** + * The GKE minor versions affected by this vulnerability. + * + * Generated from protobuf field repeated string affected_supported_minors = 7; + */ + private $affected_supported_minors; + /** + * The GKE versions where this vulnerability is patched. + * + * Generated from protobuf field repeated string patched_versions = 8; + */ + private $patched_versions; + /** + * This represents a version selected from the patched_versions field that + * the cluster receiving this notification should most likely want to upgrade + * to based on its current version. Note that if this notification is being + * received by a given cluster, it means that this version is currently + * available as an upgrade target in that cluster's location. + * + * Generated from protobuf field string suggested_upgrade_target = 9; + */ + protected $suggested_upgrade_target = ''; + /** + * If this field is specified, it means there are manual steps that the user + * must take to make their clusters safe. + * + * Generated from protobuf field bool manual_steps_required = 10; + */ + protected $manual_steps_required = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $resource_type_affected + * The resource type (node/control plane) that has the vulnerability. Multiple + * notifications (1 notification per resource type) will be sent for a + * vulnerability that affects > 1 resource type. + * @type string $bulletin_id + * The ID of the bulletin corresponding to the vulnerability. + * @type array|\Google\Protobuf\Internal\RepeatedField $cve_ids + * The CVEs associated with this bulletin. + * @type string $severity + * The severity of this bulletin as it relates to GKE. + * @type string $bulletin_uri + * The URI link to the bulletin on the website for more information. + * @type string $brief_description + * A brief description of the bulletin. See the bulletin pointed to by the + * bulletin_uri field for an expanded description. + * @type array|\Google\Protobuf\Internal\RepeatedField $affected_supported_minors + * The GKE minor versions affected by this vulnerability. + * @type array|\Google\Protobuf\Internal\RepeatedField $patched_versions + * The GKE versions where this vulnerability is patched. + * @type string $suggested_upgrade_target + * This represents a version selected from the patched_versions field that + * the cluster receiving this notification should most likely want to upgrade + * to based on its current version. Note that if this notification is being + * received by a given cluster, it means that this version is currently + * available as an upgrade target in that cluster's location. + * @type bool $manual_steps_required + * If this field is specified, it means there are manual steps that the user + * must take to make their clusters safe. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The resource type (node/control plane) that has the vulnerability. Multiple + * notifications (1 notification per resource type) will be sent for a + * vulnerability that affects > 1 resource type. + * + * Generated from protobuf field string resource_type_affected = 1; + * @return string + */ + public function getResourceTypeAffected() + { + return $this->resource_type_affected; + } + + /** + * The resource type (node/control plane) that has the vulnerability. Multiple + * notifications (1 notification per resource type) will be sent for a + * vulnerability that affects > 1 resource type. + * + * Generated from protobuf field string resource_type_affected = 1; + * @param string $var + * @return $this + */ + public function setResourceTypeAffected($var) + { + GPBUtil::checkString($var, True); + $this->resource_type_affected = $var; + + return $this; + } + + /** + * The ID of the bulletin corresponding to the vulnerability. + * + * Generated from protobuf field string bulletin_id = 2; + * @return string + */ + public function getBulletinId() + { + return $this->bulletin_id; + } + + /** + * The ID of the bulletin corresponding to the vulnerability. + * + * Generated from protobuf field string bulletin_id = 2; + * @param string $var + * @return $this + */ + public function setBulletinId($var) + { + GPBUtil::checkString($var, True); + $this->bulletin_id = $var; + + return $this; + } + + /** + * The CVEs associated with this bulletin. + * + * Generated from protobuf field repeated string cve_ids = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCveIds() + { + return $this->cve_ids; + } + + /** + * The CVEs associated with this bulletin. + * + * Generated from protobuf field repeated string cve_ids = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCveIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->cve_ids = $arr; + + return $this; + } + + /** + * The severity of this bulletin as it relates to GKE. + * + * Generated from protobuf field string severity = 4; + * @return string + */ + public function getSeverity() + { + return $this->severity; + } + + /** + * The severity of this bulletin as it relates to GKE. + * + * Generated from protobuf field string severity = 4; + * @param string $var + * @return $this + */ + public function setSeverity($var) + { + GPBUtil::checkString($var, True); + $this->severity = $var; + + return $this; + } + + /** + * The URI link to the bulletin on the website for more information. + * + * Generated from protobuf field string bulletin_uri = 5; + * @return string + */ + public function getBulletinUri() + { + return $this->bulletin_uri; + } + + /** + * The URI link to the bulletin on the website for more information. + * + * Generated from protobuf field string bulletin_uri = 5; + * @param string $var + * @return $this + */ + public function setBulletinUri($var) + { + GPBUtil::checkString($var, True); + $this->bulletin_uri = $var; + + return $this; + } + + /** + * A brief description of the bulletin. See the bulletin pointed to by the + * bulletin_uri field for an expanded description. + * + * Generated from protobuf field string brief_description = 6; + * @return string + */ + public function getBriefDescription() + { + return $this->brief_description; + } + + /** + * A brief description of the bulletin. See the bulletin pointed to by the + * bulletin_uri field for an expanded description. + * + * Generated from protobuf field string brief_description = 6; + * @param string $var + * @return $this + */ + public function setBriefDescription($var) + { + GPBUtil::checkString($var, True); + $this->brief_description = $var; + + return $this; + } + + /** + * The GKE minor versions affected by this vulnerability. + * + * Generated from protobuf field repeated string affected_supported_minors = 7; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAffectedSupportedMinors() + { + return $this->affected_supported_minors; + } + + /** + * The GKE minor versions affected by this vulnerability. + * + * Generated from protobuf field repeated string affected_supported_minors = 7; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAffectedSupportedMinors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->affected_supported_minors = $arr; + + return $this; + } + + /** + * The GKE versions where this vulnerability is patched. + * + * Generated from protobuf field repeated string patched_versions = 8; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPatchedVersions() + { + return $this->patched_versions; + } + + /** + * The GKE versions where this vulnerability is patched. + * + * Generated from protobuf field repeated string patched_versions = 8; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPatchedVersions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->patched_versions = $arr; + + return $this; + } + + /** + * This represents a version selected from the patched_versions field that + * the cluster receiving this notification should most likely want to upgrade + * to based on its current version. Note that if this notification is being + * received by a given cluster, it means that this version is currently + * available as an upgrade target in that cluster's location. + * + * Generated from protobuf field string suggested_upgrade_target = 9; + * @return string + */ + public function getSuggestedUpgradeTarget() + { + return $this->suggested_upgrade_target; + } + + /** + * This represents a version selected from the patched_versions field that + * the cluster receiving this notification should most likely want to upgrade + * to based on its current version. Note that if this notification is being + * received by a given cluster, it means that this version is currently + * available as an upgrade target in that cluster's location. + * + * Generated from protobuf field string suggested_upgrade_target = 9; + * @param string $var + * @return $this + */ + public function setSuggestedUpgradeTarget($var) + { + GPBUtil::checkString($var, True); + $this->suggested_upgrade_target = $var; + + return $this; + } + + /** + * If this field is specified, it means there are manual steps that the user + * must take to make their clusters safe. + * + * Generated from protobuf field bool manual_steps_required = 10; + * @return bool + */ + public function getManualStepsRequired() + { + return $this->manual_steps_required; + } + + /** + * If this field is specified, it means there are manual steps that the user + * must take to make their clusters safe. + * + * Generated from protobuf field bool manual_steps_required = 10; + * @param bool $var + * @return $this + */ + public function setManualStepsRequired($var) + { + GPBUtil::checkBool($var); + $this->manual_steps_required = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityPostureConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityPostureConfig.php new file mode 100644 index 000000000000..794357bdce1b --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityPostureConfig.php @@ -0,0 +1,122 @@ +google.container.v1.SecurityPostureConfig + */ +class SecurityPostureConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Sets which mode to use for Security Posture features. + * + * Generated from protobuf field optional .google.container.v1.SecurityPostureConfig.Mode mode = 1; + */ + protected $mode = null; + /** + * Sets which mode to use for vulnerability scanning. + * + * Generated from protobuf field optional .google.container.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + */ + protected $vulnerability_mode = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $mode + * Sets which mode to use for Security Posture features. + * @type int $vulnerability_mode + * Sets which mode to use for vulnerability scanning. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Sets which mode to use for Security Posture features. + * + * Generated from protobuf field optional .google.container.v1.SecurityPostureConfig.Mode mode = 1; + * @return int + */ + public function getMode() + { + return isset($this->mode) ? $this->mode : 0; + } + + public function hasMode() + { + return isset($this->mode); + } + + public function clearMode() + { + unset($this->mode); + } + + /** + * Sets which mode to use for Security Posture features. + * + * Generated from protobuf field optional .google.container.v1.SecurityPostureConfig.Mode mode = 1; + * @param int $var + * @return $this + */ + public function setMode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\SecurityPostureConfig\Mode::class); + $this->mode = $var; + + return $this; + } + + /** + * Sets which mode to use for vulnerability scanning. + * + * Generated from protobuf field optional .google.container.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * @return int + */ + public function getVulnerabilityMode() + { + return isset($this->vulnerability_mode) ? $this->vulnerability_mode : 0; + } + + public function hasVulnerabilityMode() + { + return isset($this->vulnerability_mode); + } + + public function clearVulnerabilityMode() + { + unset($this->vulnerability_mode); + } + + /** + * Sets which mode to use for vulnerability scanning. + * + * Generated from protobuf field optional .google.container.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * @param int $var + * @return $this + */ + public function setVulnerabilityMode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\SecurityPostureConfig\VulnerabilityMode::class); + $this->vulnerability_mode = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityPostureConfig/Mode.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityPostureConfig/Mode.php new file mode 100644 index 000000000000..4175f3bae536 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityPostureConfig/Mode.php @@ -0,0 +1,64 @@ +google.container.v1.SecurityPostureConfig.Mode + */ +class Mode +{ + /** + * Default value not specified. + * + * Generated from protobuf enum MODE_UNSPECIFIED = 0; + */ + const MODE_UNSPECIFIED = 0; + /** + * Disables Security Posture features on the cluster. + * + * Generated from protobuf enum DISABLED = 1; + */ + const DISABLED = 1; + /** + * Applies Security Posture features on the cluster. + * + * Generated from protobuf enum BASIC = 2; + */ + const BASIC = 2; + + private static $valueToName = [ + self::MODE_UNSPECIFIED => 'MODE_UNSPECIFIED', + self::DISABLED => 'DISABLED', + self::BASIC => 'BASIC', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Mode::class, \Google\Cloud\Container\V1\SecurityPostureConfig_Mode::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityPostureConfig/VulnerabilityMode.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityPostureConfig/VulnerabilityMode.php new file mode 100644 index 000000000000..63b7ef9e06e2 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityPostureConfig/VulnerabilityMode.php @@ -0,0 +1,72 @@ +google.container.v1.SecurityPostureConfig.VulnerabilityMode + */ +class VulnerabilityMode +{ + /** + * Default value not specified. + * + * Generated from protobuf enum VULNERABILITY_MODE_UNSPECIFIED = 0; + */ + const VULNERABILITY_MODE_UNSPECIFIED = 0; + /** + * Disables vulnerability scanning on the cluster. + * + * Generated from protobuf enum VULNERABILITY_DISABLED = 1; + */ + const VULNERABILITY_DISABLED = 1; + /** + * Applies basic vulnerability scanning on the cluster. + * + * Generated from protobuf enum VULNERABILITY_BASIC = 2; + */ + const VULNERABILITY_BASIC = 2; + /** + * Applies the Security Posture's vulnerability on cluster Enterprise level + * features. + * + * Generated from protobuf enum VULNERABILITY_ENTERPRISE = 3; + */ + const VULNERABILITY_ENTERPRISE = 3; + + private static $valueToName = [ + self::VULNERABILITY_MODE_UNSPECIFIED => 'VULNERABILITY_MODE_UNSPECIFIED', + self::VULNERABILITY_DISABLED => 'VULNERABILITY_DISABLED', + self::VULNERABILITY_BASIC => 'VULNERABILITY_BASIC', + self::VULNERABILITY_ENTERPRISE => 'VULNERABILITY_ENTERPRISE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(VulnerabilityMode::class, \Google\Cloud\Container\V1\SecurityPostureConfig_VulnerabilityMode::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig.php new file mode 100644 index 000000000000..939a53c55648 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig.php @@ -0,0 +1,237 @@ +google.container.v1.ServerConfig + */ +class ServerConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Version of Kubernetes the service deploys by default. + * + * Generated from protobuf field string default_cluster_version = 1; + */ + protected $default_cluster_version = ''; + /** + * List of valid node upgrade target versions, in descending order. + * + * Generated from protobuf field repeated string valid_node_versions = 3; + */ + private $valid_node_versions; + /** + * Default image type. + * + * Generated from protobuf field string default_image_type = 4; + */ + protected $default_image_type = ''; + /** + * List of valid image types. + * + * Generated from protobuf field repeated string valid_image_types = 5; + */ + private $valid_image_types; + /** + * List of valid master versions, in descending order. + * + * Generated from protobuf field repeated string valid_master_versions = 6; + */ + private $valid_master_versions; + /** + * List of release channel configurations. + * + * Generated from protobuf field repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + private $channels; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $default_cluster_version + * Version of Kubernetes the service deploys by default. + * @type array|\Google\Protobuf\Internal\RepeatedField $valid_node_versions + * List of valid node upgrade target versions, in descending order. + * @type string $default_image_type + * Default image type. + * @type array|\Google\Protobuf\Internal\RepeatedField $valid_image_types + * List of valid image types. + * @type array|\Google\Protobuf\Internal\RepeatedField $valid_master_versions + * List of valid master versions, in descending order. + * @type array<\Google\Cloud\Container\V1\ServerConfig\ReleaseChannelConfig>|\Google\Protobuf\Internal\RepeatedField $channels + * List of release channel configurations. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Version of Kubernetes the service deploys by default. + * + * Generated from protobuf field string default_cluster_version = 1; + * @return string + */ + public function getDefaultClusterVersion() + { + return $this->default_cluster_version; + } + + /** + * Version of Kubernetes the service deploys by default. + * + * Generated from protobuf field string default_cluster_version = 1; + * @param string $var + * @return $this + */ + public function setDefaultClusterVersion($var) + { + GPBUtil::checkString($var, True); + $this->default_cluster_version = $var; + + return $this; + } + + /** + * List of valid node upgrade target versions, in descending order. + * + * Generated from protobuf field repeated string valid_node_versions = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getValidNodeVersions() + { + return $this->valid_node_versions; + } + + /** + * List of valid node upgrade target versions, in descending order. + * + * Generated from protobuf field repeated string valid_node_versions = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setValidNodeVersions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->valid_node_versions = $arr; + + return $this; + } + + /** + * Default image type. + * + * Generated from protobuf field string default_image_type = 4; + * @return string + */ + public function getDefaultImageType() + { + return $this->default_image_type; + } + + /** + * Default image type. + * + * Generated from protobuf field string default_image_type = 4; + * @param string $var + * @return $this + */ + public function setDefaultImageType($var) + { + GPBUtil::checkString($var, True); + $this->default_image_type = $var; + + return $this; + } + + /** + * List of valid image types. + * + * Generated from protobuf field repeated string valid_image_types = 5; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getValidImageTypes() + { + return $this->valid_image_types; + } + + /** + * List of valid image types. + * + * Generated from protobuf field repeated string valid_image_types = 5; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setValidImageTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->valid_image_types = $arr; + + return $this; + } + + /** + * List of valid master versions, in descending order. + * + * Generated from protobuf field repeated string valid_master_versions = 6; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getValidMasterVersions() + { + return $this->valid_master_versions; + } + + /** + * List of valid master versions, in descending order. + * + * Generated from protobuf field repeated string valid_master_versions = 6; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setValidMasterVersions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->valid_master_versions = $arr; + + return $this; + } + + /** + * List of release channel configurations. + * + * Generated from protobuf field repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getChannels() + { + return $this->channels; + } + + /** + * List of release channel configurations. + * + * Generated from protobuf field repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + * @param array<\Google\Cloud\Container\V1\ServerConfig\ReleaseChannelConfig>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setChannels($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\ServerConfig\ReleaseChannelConfig::class); + $this->channels = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig/ReleaseChannelConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig/ReleaseChannelConfig.php new file mode 100644 index 000000000000..e363702da1e6 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig/ReleaseChannelConfig.php @@ -0,0 +1,138 @@ +google.container.v1.ServerConfig.ReleaseChannelConfig + */ +class ReleaseChannelConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The release channel this configuration applies to. + * + * Generated from protobuf field .google.container.v1.ReleaseChannel.Channel channel = 1; + */ + protected $channel = 0; + /** + * The default version for newly created clusters on the channel. + * + * Generated from protobuf field string default_version = 2; + */ + protected $default_version = ''; + /** + * List of valid versions for the channel. + * + * Generated from protobuf field repeated string valid_versions = 4; + */ + private $valid_versions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $channel + * The release channel this configuration applies to. + * @type string $default_version + * The default version for newly created clusters on the channel. + * @type array|\Google\Protobuf\Internal\RepeatedField $valid_versions + * List of valid versions for the channel. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The release channel this configuration applies to. + * + * Generated from protobuf field .google.container.v1.ReleaseChannel.Channel channel = 1; + * @return int + */ + public function getChannel() + { + return $this->channel; + } + + /** + * The release channel this configuration applies to. + * + * Generated from protobuf field .google.container.v1.ReleaseChannel.Channel channel = 1; + * @param int $var + * @return $this + */ + public function setChannel($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\ReleaseChannel\Channel::class); + $this->channel = $var; + + return $this; + } + + /** + * The default version for newly created clusters on the channel. + * + * Generated from protobuf field string default_version = 2; + * @return string + */ + public function getDefaultVersion() + { + return $this->default_version; + } + + /** + * The default version for newly created clusters on the channel. + * + * Generated from protobuf field string default_version = 2; + * @param string $var + * @return $this + */ + public function setDefaultVersion($var) + { + GPBUtil::checkString($var, True); + $this->default_version = $var; + + return $this; + } + + /** + * List of valid versions for the channel. + * + * Generated from protobuf field repeated string valid_versions = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getValidVersions() + { + return $this->valid_versions; + } + + /** + * List of valid versions for the channel. + * + * Generated from protobuf field repeated string valid_versions = 4; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setValidVersions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->valid_versions = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ReleaseChannelConfig::class, \Google\Cloud\Container\V1\ServerConfig_ReleaseChannelConfig::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServiceExternalIPsConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServiceExternalIPsConfig.php new file mode 100644 index 000000000000..df111e30817a --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServiceExternalIPsConfig.php @@ -0,0 +1,67 @@ +google.container.v1.ServiceExternalIPsConfig + */ +class ServiceExternalIPsConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Whether Services with ExternalIPs field are allowed or not. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Whether Services with ExternalIPs field are allowed or not. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether Services with ExternalIPs field are allowed or not. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Whether Services with ExternalIPs field are allowed or not. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetAddonsConfigRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetAddonsConfigRequest.php new file mode 100644 index 000000000000..a2cc02f69958 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetAddonsConfigRequest.php @@ -0,0 +1,303 @@ +google.container.v1.SetAddonsConfigRequest + */ +class SetAddonsConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * Required. The desired configurations for the various addons available to + * run in the cluster. + * + * Generated from protobuf field .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $addons_config = null; + /** + * The name (project, location, cluster) of the cluster to set addons. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 6; + */ + protected $name = ''; + + /** + * @param string $projectId Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @param string $zone Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @param string $clusterId Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @param \Google\Cloud\Container\V1\AddonsConfig $addonsConfig Required. The desired configurations for the various addons available to + * run in the cluster. + * + * @return \Google\Cloud\Container\V1\SetAddonsConfigRequest + * + * @experimental + */ + public static function build(string $projectId, string $zone, string $clusterId, \Google\Cloud\Container\V1\AddonsConfig $addonsConfig): self + { + return (new self()) + ->setProjectId($projectId) + ->setZone($zone) + ->setClusterId($clusterId) + ->setAddonsConfig($addonsConfig); + } + + /** + * @param string $name The name (project, location, cluster) of the cluster to set addons. + * Specified in the format `projects/*/locations/*/clusters/*`. + * @param \Google\Cloud\Container\V1\AddonsConfig $addonsConfig Required. The desired configurations for the various addons available to + * run in the cluster. + * + * @return \Google\Cloud\Container\V1\SetAddonsConfigRequest + * + * @experimental + */ + public static function buildFromNameAddonsConfig(string $name, \Google\Cloud\Container\V1\AddonsConfig $addonsConfig): self + { + return (new self()) + ->setName($name) + ->setAddonsConfig($addonsConfig); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @type \Google\Cloud\Container\V1\AddonsConfig $addons_config + * Required. The desired configurations for the various addons available to + * run in the cluster. + * @type string $name + * The name (project, location, cluster) of the cluster to set addons. + * Specified in the format `projects/*/locations/*/clusters/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Required. The desired configurations for the various addons available to + * run in the cluster. + * + * Generated from protobuf field .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Container\V1\AddonsConfig|null + */ + public function getAddonsConfig() + { + return $this->addons_config; + } + + public function hasAddonsConfig() + { + return isset($this->addons_config); + } + + public function clearAddonsConfig() + { + unset($this->addons_config); + } + + /** + * Required. The desired configurations for the various addons available to + * run in the cluster. + * + * Generated from protobuf field .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Container\V1\AddonsConfig $var + * @return $this + */ + public function setAddonsConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AddonsConfig::class); + $this->addons_config = $var; + + return $this; + } + + /** + * The name (project, location, cluster) of the cluster to set addons. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 6; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster) of the cluster to set addons. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 6; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLabelsRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLabelsRequest.php new file mode 100644 index 000000000000..32b166e06b98 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLabelsRequest.php @@ -0,0 +1,302 @@ +google.container.v1.SetLabelsRequest + */ +class SetLabelsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * Required. The labels to set for that cluster. + * + * Generated from protobuf field map resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + private $resource_labels; + /** + * Required. The fingerprint of the previous set of labels for this resource, + * used to detect conflicts. The fingerprint is initially generated by + * Kubernetes Engine and changes after every request to modify or update + * labels. You must always provide an up-to-date fingerprint hash when + * updating or changing labels. Make a `get()` request to the + * resource to get the latest fingerprint. + * + * Generated from protobuf field string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $label_fingerprint = ''; + /** + * The name (project, location, cluster name) of the cluster to set labels. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 7; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * @type array|\Google\Protobuf\Internal\MapField $resource_labels + * Required. The labels to set for that cluster. + * @type string $label_fingerprint + * Required. The fingerprint of the previous set of labels for this resource, + * used to detect conflicts. The fingerprint is initially generated by + * Kubernetes Engine and changes after every request to modify or update + * labels. You must always provide an up-to-date fingerprint hash when + * updating or changing labels. Make a `get()` request to the + * resource to get the latest fingerprint. + * @type string $name + * The name (project, location, cluster name) of the cluster to set labels. + * Specified in the format `projects/*/locations/*/clusters/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Required. The labels to set for that cluster. + * + * Generated from protobuf field map resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getResourceLabels() + { + return $this->resource_labels; + } + + /** + * Required. The labels to set for that cluster. + * + * Generated from protobuf field map resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setResourceLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->resource_labels = $arr; + + return $this; + } + + /** + * Required. The fingerprint of the previous set of labels for this resource, + * used to detect conflicts. The fingerprint is initially generated by + * Kubernetes Engine and changes after every request to modify or update + * labels. You must always provide an up-to-date fingerprint hash when + * updating or changing labels. Make a `get()` request to the + * resource to get the latest fingerprint. + * + * Generated from protobuf field string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getLabelFingerprint() + { + return $this->label_fingerprint; + } + + /** + * Required. The fingerprint of the previous set of labels for this resource, + * used to detect conflicts. The fingerprint is initially generated by + * Kubernetes Engine and changes after every request to modify or update + * labels. You must always provide an up-to-date fingerprint hash when + * updating or changing labels. Make a `get()` request to the + * resource to get the latest fingerprint. + * + * Generated from protobuf field string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setLabelFingerprint($var) + { + GPBUtil::checkString($var, True); + $this->label_fingerprint = $var; + + return $this; + } + + /** + * The name (project, location, cluster name) of the cluster to set labels. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 7; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster name) of the cluster to set labels. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 7; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLegacyAbacRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLegacyAbacRequest.php new file mode 100644 index 000000000000..386080c473d9 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLegacyAbacRequest.php @@ -0,0 +1,288 @@ +google.container.v1.SetLegacyAbacRequest + */ +class SetLegacyAbacRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * Required. Whether ABAC authorization will be enabled in the cluster. + * + * Generated from protobuf field bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $enabled = false; + /** + * The name (project, location, cluster name) of the cluster to set legacy + * abac. Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 6; + */ + protected $name = ''; + + /** + * @param string $projectId Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @param string $zone Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @param string $clusterId Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. + * @param bool $enabled Required. Whether ABAC authorization will be enabled in the cluster. + * + * @return \Google\Cloud\Container\V1\SetLegacyAbacRequest + * + * @experimental + */ + public static function build(string $projectId, string $zone, string $clusterId, bool $enabled): self + { + return (new self()) + ->setProjectId($projectId) + ->setZone($zone) + ->setClusterId($clusterId) + ->setEnabled($enabled); + } + + /** + * @param string $name The name (project, location, cluster name) of the cluster to set legacy + * abac. Specified in the format `projects/*/locations/*/clusters/*`. + * @param bool $enabled Required. Whether ABAC authorization will be enabled in the cluster. + * + * @return \Google\Cloud\Container\V1\SetLegacyAbacRequest + * + * @experimental + */ + public static function buildFromNameEnabled(string $name, bool $enabled): self + { + return (new self()) + ->setName($name) + ->setEnabled($enabled); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. + * @type bool $enabled + * Required. Whether ABAC authorization will be enabled in the cluster. + * @type string $name + * The name (project, location, cluster name) of the cluster to set legacy + * abac. Specified in the format `projects/*/locations/*/clusters/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Required. Whether ABAC authorization will be enabled in the cluster. + * + * Generated from protobuf field bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Required. Whether ABAC authorization will be enabled in the cluster. + * + * Generated from protobuf field bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + + /** + * The name (project, location, cluster name) of the cluster to set legacy + * abac. Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 6; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster name) of the cluster to set legacy + * abac. Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 6; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLocationsRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLocationsRequest.php new file mode 100644 index 000000000000..822fdfb7e552 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLocationsRequest.php @@ -0,0 +1,319 @@ +google.container.v1.SetLocationsRequest + */ +class SetLocationsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * Required. The desired list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster's nodes should be located. Changing the locations a cluster is in + * will result in nodes being either created or removed from the cluster, + * depending on whether locations are being added or removed. + * This list must always include the cluster's primary zone. + * + * Generated from protobuf field repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + private $locations; + /** + * The name (project, location, cluster) of the cluster to set locations. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 6; + */ + protected $name = ''; + + /** + * @param string $projectId Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @param string $zone Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @param string $clusterId Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @param string[] $locations Required. The desired list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster's nodes should be located. Changing the locations a cluster is in + * will result in nodes being either created or removed from the cluster, + * depending on whether locations are being added or removed. + * + * This list must always include the cluster's primary zone. + * + * @return \Google\Cloud\Container\V1\SetLocationsRequest + * + * @experimental + */ + public static function build(string $projectId, string $zone, string $clusterId, array $locations): self + { + return (new self()) + ->setProjectId($projectId) + ->setZone($zone) + ->setClusterId($clusterId) + ->setLocations($locations); + } + + /** + * @param string $name The name (project, location, cluster) of the cluster to set locations. + * Specified in the format `projects/*/locations/*/clusters/*`. + * @param string[] $locations Required. The desired list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster's nodes should be located. Changing the locations a cluster is in + * will result in nodes being either created or removed from the cluster, + * depending on whether locations are being added or removed. + * + * This list must always include the cluster's primary zone. + * + * @return \Google\Cloud\Container\V1\SetLocationsRequest + * + * @experimental + */ + public static function buildFromNameLocations(string $name, array $locations): self + { + return (new self()) + ->setName($name) + ->setLocations($locations); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @type array|\Google\Protobuf\Internal\RepeatedField $locations + * Required. The desired list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster's nodes should be located. Changing the locations a cluster is in + * will result in nodes being either created or removed from the cluster, + * depending on whether locations are being added or removed. + * This list must always include the cluster's primary zone. + * @type string $name + * The name (project, location, cluster) of the cluster to set locations. + * Specified in the format `projects/*/locations/*/clusters/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Required. The desired list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster's nodes should be located. Changing the locations a cluster is in + * will result in nodes being either created or removed from the cluster, + * depending on whether locations are being added or removed. + * This list must always include the cluster's primary zone. + * + * Generated from protobuf field repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getLocations() + { + return $this->locations; + } + + /** + * Required. The desired list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster's nodes should be located. Changing the locations a cluster is in + * will result in nodes being either created or removed from the cluster, + * depending on whether locations are being added or removed. + * This list must always include the cluster's primary zone. + * + * Generated from protobuf field repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->locations = $arr; + + return $this; + } + + /** + * The name (project, location, cluster) of the cluster to set locations. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 6; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster) of the cluster to set locations. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 6; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLoggingServiceRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLoggingServiceRequest.php new file mode 100644 index 000000000000..66954003cb55 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLoggingServiceRequest.php @@ -0,0 +1,339 @@ +google.container.v1.SetLoggingServiceRequest + */ +class SetLoggingServiceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * Required. The logging service the cluster should use to write logs. + * Currently available options: + * * `logging.googleapis.com/kubernetes` - The Cloud Logging + * service with a Kubernetes-native resource model + * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + * available as of GKE 1.15). + * * `none` - no logs will be exported from the cluster. + * If left as an empty string,`logging.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. + * + * Generated from protobuf field string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $logging_service = ''; + /** + * The name (project, location, cluster) of the cluster to set logging. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 5; + */ + protected $name = ''; + + /** + * @param string $projectId Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @param string $zone Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @param string $clusterId Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @param string $loggingService Required. The logging service the cluster should use to write logs. + * Currently available options: + * + * * `logging.googleapis.com/kubernetes` - The Cloud Logging + * service with a Kubernetes-native resource model + * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + * available as of GKE 1.15). + * * `none` - no logs will be exported from the cluster. + * + * If left as an empty string,`logging.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. + * + * @return \Google\Cloud\Container\V1\SetLoggingServiceRequest + * + * @experimental + */ + public static function build(string $projectId, string $zone, string $clusterId, string $loggingService): self + { + return (new self()) + ->setProjectId($projectId) + ->setZone($zone) + ->setClusterId($clusterId) + ->setLoggingService($loggingService); + } + + /** + * @param string $name The name (project, location, cluster) of the cluster to set logging. + * Specified in the format `projects/*/locations/*/clusters/*`. + * @param string $loggingService Required. The logging service the cluster should use to write logs. + * Currently available options: + * + * * `logging.googleapis.com/kubernetes` - The Cloud Logging + * service with a Kubernetes-native resource model + * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + * available as of GKE 1.15). + * * `none` - no logs will be exported from the cluster. + * + * If left as an empty string,`logging.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. + * + * @return \Google\Cloud\Container\V1\SetLoggingServiceRequest + * + * @experimental + */ + public static function buildFromNameLoggingService(string $name, string $loggingService): self + { + return (new self()) + ->setName($name) + ->setLoggingService($loggingService); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @type string $logging_service + * Required. The logging service the cluster should use to write logs. + * Currently available options: + * * `logging.googleapis.com/kubernetes` - The Cloud Logging + * service with a Kubernetes-native resource model + * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + * available as of GKE 1.15). + * * `none` - no logs will be exported from the cluster. + * If left as an empty string,`logging.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. + * @type string $name + * The name (project, location, cluster) of the cluster to set logging. + * Specified in the format `projects/*/locations/*/clusters/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Required. The logging service the cluster should use to write logs. + * Currently available options: + * * `logging.googleapis.com/kubernetes` - The Cloud Logging + * service with a Kubernetes-native resource model + * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + * available as of GKE 1.15). + * * `none` - no logs will be exported from the cluster. + * If left as an empty string,`logging.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. + * + * Generated from protobuf field string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getLoggingService() + { + return $this->logging_service; + } + + /** + * Required. The logging service the cluster should use to write logs. + * Currently available options: + * * `logging.googleapis.com/kubernetes` - The Cloud Logging + * service with a Kubernetes-native resource model + * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + * available as of GKE 1.15). + * * `none` - no logs will be exported from the cluster. + * If left as an empty string,`logging.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. + * + * Generated from protobuf field string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setLoggingService($var) + { + GPBUtil::checkString($var, True); + $this->logging_service = $var; + + return $this; + } + + /** + * The name (project, location, cluster) of the cluster to set logging. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 5; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster) of the cluster to set logging. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 5; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMaintenancePolicyRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMaintenancePolicyRequest.php new file mode 100644 index 000000000000..b7820cb27913 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMaintenancePolicyRequest.php @@ -0,0 +1,278 @@ +google.container.v1.SetMaintenancePolicyRequest + */ +class SetMaintenancePolicyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * + * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $project_id = ''; + /** + * Required. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. + * + * Generated from protobuf field string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $zone = ''; + /** + * Required. The name of the cluster to update. + * + * Generated from protobuf field string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $cluster_id = ''; + /** + * Required. The maintenance policy to be set for the cluster. An empty field + * clears the existing maintenance policy. + * + * Generated from protobuf field .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $maintenance_policy = null; + /** + * The name (project, location, cluster name) of the cluster to set + * maintenance policy. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 5; + */ + protected $name = ''; + + /** + * @param string $projectId Required. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * @param string $zone Required. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. + * @param string $clusterId Required. The name of the cluster to update. + * @param \Google\Cloud\Container\V1\MaintenancePolicy $maintenancePolicy Required. The maintenance policy to be set for the cluster. An empty field + * clears the existing maintenance policy. + * + * @return \Google\Cloud\Container\V1\SetMaintenancePolicyRequest + * + * @experimental + */ + public static function build(string $projectId, string $zone, string $clusterId, \Google\Cloud\Container\V1\MaintenancePolicy $maintenancePolicy): self + { + return (new self()) + ->setProjectId($projectId) + ->setZone($zone) + ->setClusterId($clusterId) + ->setMaintenancePolicy($maintenancePolicy); + } + + /** + * @param string $name The name (project, location, cluster name) of the cluster to set + * maintenance policy. + * Specified in the format `projects/*/locations/*/clusters/*`. + * @param \Google\Cloud\Container\V1\MaintenancePolicy $maintenancePolicy Required. The maintenance policy to be set for the cluster. An empty field + * clears the existing maintenance policy. + * + * @return \Google\Cloud\Container\V1\SetMaintenancePolicyRequest + * + * @experimental + */ + public static function buildFromNameMaintenancePolicy(string $name, \Google\Cloud\Container\V1\MaintenancePolicy $maintenancePolicy): self + { + return (new self()) + ->setName($name) + ->setMaintenancePolicy($maintenancePolicy); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Required. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * @type string $zone + * Required. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. + * @type string $cluster_id + * Required. The name of the cluster to update. + * @type \Google\Cloud\Container\V1\MaintenancePolicy $maintenance_policy + * Required. The maintenance policy to be set for the cluster. An empty field + * clears the existing maintenance policy. + * @type string $name + * The name (project, location, cluster name) of the cluster to set + * maintenance policy. + * Specified in the format `projects/*/locations/*/clusters/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * + * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getProjectId() + { + return $this->project_id; + } + + /** + * Required. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * + * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setProjectId($var) + { + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Required. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. + * + * Generated from protobuf field string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getZone() + { + return $this->zone; + } + + /** + * Required. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. + * + * Generated from protobuf field string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setZone($var) + { + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Required. The name of the cluster to update. + * + * Generated from protobuf field string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getClusterId() + { + return $this->cluster_id; + } + + /** + * Required. The name of the cluster to update. + * + * Generated from protobuf field string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setClusterId($var) + { + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Required. The maintenance policy to be set for the cluster. An empty field + * clears the existing maintenance policy. + * + * Generated from protobuf field .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Container\V1\MaintenancePolicy|null + */ + public function getMaintenancePolicy() + { + return $this->maintenance_policy; + } + + public function hasMaintenancePolicy() + { + return isset($this->maintenance_policy); + } + + public function clearMaintenancePolicy() + { + unset($this->maintenance_policy); + } + + /** + * Required. The maintenance policy to be set for the cluster. An empty field + * clears the existing maintenance policy. + * + * Generated from protobuf field .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Container\V1\MaintenancePolicy $var + * @return $this + */ + public function setMaintenancePolicy($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MaintenancePolicy::class); + $this->maintenance_policy = $var; + + return $this; + } + + /** + * The name (project, location, cluster name) of the cluster to set + * maintenance policy. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 5; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster name) of the cluster to set + * maintenance policy. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 5; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest.php new file mode 100644 index 000000000000..9f9c4bb4de29 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest.php @@ -0,0 +1,290 @@ +google.container.v1.SetMasterAuthRequest + */ +class SetMasterAuthRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * Required. The exact form of action to be taken on the master auth. + * + * Generated from protobuf field .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $action = 0; + /** + * Required. A description of the update. + * + * Generated from protobuf field .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update = null; + /** + * The name (project, location, cluster) of the cluster to set auth. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 7; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @type int $action + * Required. The exact form of action to be taken on the master auth. + * @type \Google\Cloud\Container\V1\MasterAuth $update + * Required. A description of the update. + * @type string $name + * The name (project, location, cluster) of the cluster to set auth. + * Specified in the format `projects/*/locations/*/clusters/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Required. The exact form of action to be taken on the master auth. + * + * Generated from protobuf field .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getAction() + { + return $this->action; + } + + /** + * Required. The exact form of action to be taken on the master auth. + * + * Generated from protobuf field .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setAction($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\SetMasterAuthRequest\Action::class); + $this->action = $var; + + return $this; + } + + /** + * Required. A description of the update. + * + * Generated from protobuf field .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Container\V1\MasterAuth|null + */ + public function getUpdate() + { + return $this->update; + } + + public function hasUpdate() + { + return isset($this->update); + } + + public function clearUpdate() + { + unset($this->update); + } + + /** + * Required. A description of the update. + * + * Generated from protobuf field .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Container\V1\MasterAuth $var + * @return $this + */ + public function setUpdate($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MasterAuth::class); + $this->update = $var; + + return $this; + } + + /** + * The name (project, location, cluster) of the cluster to set auth. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 7; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster) of the cluster to set auth. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 7; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest/Action.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest/Action.php new file mode 100644 index 000000000000..f05c2c752248 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest/Action.php @@ -0,0 +1,74 @@ +google.container.v1.SetMasterAuthRequest.Action + */ +class Action +{ + /** + * Operation is unknown and will error out. + * + * Generated from protobuf enum UNKNOWN = 0; + */ + const UNKNOWN = 0; + /** + * Set the password to a user generated value. + * + * Generated from protobuf enum SET_PASSWORD = 1; + */ + const SET_PASSWORD = 1; + /** + * Generate a new password and set it to that. + * + * Generated from protobuf enum GENERATE_PASSWORD = 2; + */ + const GENERATE_PASSWORD = 2; + /** + * Set the username. If an empty username is provided, basic authentication + * is disabled for the cluster. If a non-empty username is provided, basic + * authentication is enabled, with either a provided password or a generated + * one. + * + * Generated from protobuf enum SET_USERNAME = 3; + */ + const SET_USERNAME = 3; + + private static $valueToName = [ + self::UNKNOWN => 'UNKNOWN', + self::SET_PASSWORD => 'SET_PASSWORD', + self::GENERATE_PASSWORD => 'GENERATE_PASSWORD', + self::SET_USERNAME => 'SET_USERNAME', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Action::class, \Google\Cloud\Container\V1\SetMasterAuthRequest_Action::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMonitoringServiceRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMonitoringServiceRequest.php new file mode 100644 index 000000000000..c1e9b2480dd4 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMonitoringServiceRequest.php @@ -0,0 +1,339 @@ +google.container.v1.SetMonitoringServiceRequest + */ +class SetMonitoringServiceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * Required. The monitoring service the cluster should use to write metrics. + * Currently available options: + * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + * service with a Kubernetes-native resource model + * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + * longer available as of GKE 1.15). + * * `none` - No metrics will be exported from the cluster. + * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. + * + * Generated from protobuf field string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $monitoring_service = ''; + /** + * The name (project, location, cluster) of the cluster to set monitoring. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 6; + */ + protected $name = ''; + + /** + * @param string $projectId Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @param string $zone Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @param string $clusterId Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @param string $monitoringService Required. The monitoring service the cluster should use to write metrics. + * Currently available options: + * + * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + * service with a Kubernetes-native resource model + * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + * longer available as of GKE 1.15). + * * `none` - No metrics will be exported from the cluster. + * + * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. + * + * @return \Google\Cloud\Container\V1\SetMonitoringServiceRequest + * + * @experimental + */ + public static function build(string $projectId, string $zone, string $clusterId, string $monitoringService): self + { + return (new self()) + ->setProjectId($projectId) + ->setZone($zone) + ->setClusterId($clusterId) + ->setMonitoringService($monitoringService); + } + + /** + * @param string $name The name (project, location, cluster) of the cluster to set monitoring. + * Specified in the format `projects/*/locations/*/clusters/*`. + * @param string $monitoringService Required. The monitoring service the cluster should use to write metrics. + * Currently available options: + * + * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + * service with a Kubernetes-native resource model + * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + * longer available as of GKE 1.15). + * * `none` - No metrics will be exported from the cluster. + * + * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. + * + * @return \Google\Cloud\Container\V1\SetMonitoringServiceRequest + * + * @experimental + */ + public static function buildFromNameMonitoringService(string $name, string $monitoringService): self + { + return (new self()) + ->setName($name) + ->setMonitoringService($monitoringService); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @type string $monitoring_service + * Required. The monitoring service the cluster should use to write metrics. + * Currently available options: + * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + * service with a Kubernetes-native resource model + * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + * longer available as of GKE 1.15). + * * `none` - No metrics will be exported from the cluster. + * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. + * @type string $name + * The name (project, location, cluster) of the cluster to set monitoring. + * Specified in the format `projects/*/locations/*/clusters/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Required. The monitoring service the cluster should use to write metrics. + * Currently available options: + * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + * service with a Kubernetes-native resource model + * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + * longer available as of GKE 1.15). + * * `none` - No metrics will be exported from the cluster. + * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. + * + * Generated from protobuf field string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getMonitoringService() + { + return $this->monitoring_service; + } + + /** + * Required. The monitoring service the cluster should use to write metrics. + * Currently available options: + * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + * service with a Kubernetes-native resource model + * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + * longer available as of GKE 1.15). + * * `none` - No metrics will be exported from the cluster. + * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. + * + * Generated from protobuf field string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setMonitoringService($var) + { + GPBUtil::checkString($var, True); + $this->monitoring_service = $var; + + return $this; + } + + /** + * The name (project, location, cluster) of the cluster to set monitoring. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 6; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster) of the cluster to set monitoring. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 6; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNetworkPolicyRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNetworkPolicyRequest.php new file mode 100644 index 000000000000..7c35706d9a9b --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNetworkPolicyRequest.php @@ -0,0 +1,297 @@ +google.container.v1.SetNetworkPolicyRequest + */ +class SetNetworkPolicyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * Required. Configuration options for the NetworkPolicy feature. + * + * Generated from protobuf field .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $network_policy = null; + /** + * The name (project, location, cluster name) of the cluster to set networking + * policy. Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 6; + */ + protected $name = ''; + + /** + * @param string $projectId Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @param string $zone Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @param string $clusterId Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * @param \Google\Cloud\Container\V1\NetworkPolicy $networkPolicy Required. Configuration options for the NetworkPolicy feature. + * + * @return \Google\Cloud\Container\V1\SetNetworkPolicyRequest + * + * @experimental + */ + public static function build(string $projectId, string $zone, string $clusterId, \Google\Cloud\Container\V1\NetworkPolicy $networkPolicy): self + { + return (new self()) + ->setProjectId($projectId) + ->setZone($zone) + ->setClusterId($clusterId) + ->setNetworkPolicy($networkPolicy); + } + + /** + * @param string $name The name (project, location, cluster name) of the cluster to set networking + * policy. Specified in the format `projects/*/locations/*/clusters/*`. + * @param \Google\Cloud\Container\V1\NetworkPolicy $networkPolicy Required. Configuration options for the NetworkPolicy feature. + * + * @return \Google\Cloud\Container\V1\SetNetworkPolicyRequest + * + * @experimental + */ + public static function buildFromNameNetworkPolicy(string $name, \Google\Cloud\Container\V1\NetworkPolicy $networkPolicy): self + { + return (new self()) + ->setName($name) + ->setNetworkPolicy($networkPolicy); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * @type \Google\Cloud\Container\V1\NetworkPolicy $network_policy + * Required. Configuration options for the NetworkPolicy feature. + * @type string $name + * The name (project, location, cluster name) of the cluster to set networking + * policy. Specified in the format `projects/*/locations/*/clusters/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Required. Configuration options for the NetworkPolicy feature. + * + * Generated from protobuf field .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Container\V1\NetworkPolicy|null + */ + public function getNetworkPolicy() + { + return $this->network_policy; + } + + public function hasNetworkPolicy() + { + return isset($this->network_policy); + } + + public function clearNetworkPolicy() + { + unset($this->network_policy); + } + + /** + * Required. Configuration options for the NetworkPolicy feature. + * + * Generated from protobuf field .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Container\V1\NetworkPolicy $var + * @return $this + */ + public function setNetworkPolicy($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkPolicy::class); + $this->network_policy = $var; + + return $this; + } + + /** + * The name (project, location, cluster name) of the cluster to set networking + * policy. Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 6; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster name) of the cluster to set networking + * policy. Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 6; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolAutoscalingRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolAutoscalingRequest.php new file mode 100644 index 000000000000..a9884dd31f6b --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolAutoscalingRequest.php @@ -0,0 +1,303 @@ +google.container.v1.SetNodePoolAutoscalingRequest + */ +class SetNodePoolAutoscalingRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * Deprecated. The name of the node pool to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @deprecated + */ + protected $node_pool_id = ''; + /** + * Required. Autoscaling configuration for the node pool. + * + * Generated from protobuf field .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $autoscaling = null; + /** + * The name (project, location, cluster, node pool) of the node pool to set + * autoscaler settings. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 6; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @type string $node_pool_id + * Deprecated. The name of the node pool to upgrade. + * This field has been deprecated and replaced by the name field. + * @type \Google\Cloud\Container\V1\NodePoolAutoscaling $autoscaling + * Required. Autoscaling configuration for the node pool. + * @type string $name + * The name (project, location, cluster, node pool) of the node pool to set + * autoscaler settings. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the node pool to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @return string + * @deprecated + */ + public function getNodePoolId() + { + @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); + return $this->node_pool_id; + } + + /** + * Deprecated. The name of the node pool to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setNodePoolId($var) + { + @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->node_pool_id = $var; + + return $this; + } + + /** + * Required. Autoscaling configuration for the node pool. + * + * Generated from protobuf field .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Container\V1\NodePoolAutoscaling|null + */ + public function getAutoscaling() + { + return $this->autoscaling; + } + + public function hasAutoscaling() + { + return isset($this->autoscaling); + } + + public function clearAutoscaling() + { + unset($this->autoscaling); + } + + /** + * Required. Autoscaling configuration for the node pool. + * + * Generated from protobuf field .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Container\V1\NodePoolAutoscaling $var + * @return $this + */ + public function setAutoscaling($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolAutoscaling::class); + $this->autoscaling = $var; + + return $this; + } + + /** + * The name (project, location, cluster, node pool) of the node pool to set + * autoscaler settings. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 6; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster, node pool) of the node pool to set + * autoscaler settings. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 6; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolManagementRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolManagementRequest.php new file mode 100644 index 000000000000..f1807940a3ff --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolManagementRequest.php @@ -0,0 +1,304 @@ +google.container.v1.SetNodePoolManagementRequest + */ +class SetNodePoolManagementRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * Deprecated. The name of the node pool to update. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @deprecated + */ + protected $node_pool_id = ''; + /** + * Required. NodeManagement configuration for the node pool. + * + * Generated from protobuf field .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $management = null; + /** + * The name (project, location, cluster, node pool id) of the node pool to set + * management properties. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 7; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. + * @type string $node_pool_id + * Deprecated. The name of the node pool to update. + * This field has been deprecated and replaced by the name field. + * @type \Google\Cloud\Container\V1\NodeManagement $management + * Required. NodeManagement configuration for the node pool. + * @type string $name + * The name (project, location, cluster, node pool id) of the node pool to set + * management properties. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the node pool to update. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @return string + * @deprecated + */ + public function getNodePoolId() + { + @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); + return $this->node_pool_id; + } + + /** + * Deprecated. The name of the node pool to update. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setNodePoolId($var) + { + @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->node_pool_id = $var; + + return $this; + } + + /** + * Required. NodeManagement configuration for the node pool. + * + * Generated from protobuf field .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Container\V1\NodeManagement|null + */ + public function getManagement() + { + return $this->management; + } + + public function hasManagement() + { + return isset($this->management); + } + + public function clearManagement() + { + unset($this->management); + } + + /** + * Required. NodeManagement configuration for the node pool. + * + * Generated from protobuf field .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Container\V1\NodeManagement $var + * @return $this + */ + public function setManagement($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeManagement::class); + $this->management = $var; + + return $this; + } + + /** + * The name (project, location, cluster, node pool id) of the node pool to set + * management properties. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 7; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster, node pool id) of the node pool to set + * management properties. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 7; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolSizeRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolSizeRequest.php new file mode 100644 index 000000000000..56d25d6e8e81 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolSizeRequest.php @@ -0,0 +1,293 @@ +google.container.v1.SetNodePoolSizeRequest + */ +class SetNodePoolSizeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * Deprecated. The name of the node pool to update. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @deprecated + */ + protected $node_pool_id = ''; + /** + * Required. The desired node count for the pool. + * + * Generated from protobuf field int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $node_count = 0; + /** + * The name (project, location, cluster, node pool id) of the node pool to set + * size. + * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 7; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. + * @type string $node_pool_id + * Deprecated. The name of the node pool to update. + * This field has been deprecated and replaced by the name field. + * @type int $node_count + * Required. The desired node count for the pool. + * @type string $name + * The name (project, location, cluster, node pool id) of the node pool to set + * size. + * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the node pool to update. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @return string + * @deprecated + */ + public function getNodePoolId() + { + @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); + return $this->node_pool_id; + } + + /** + * Deprecated. The name of the node pool to update. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setNodePoolId($var) + { + @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->node_pool_id = $var; + + return $this; + } + + /** + * Required. The desired node count for the pool. + * + * Generated from protobuf field int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getNodeCount() + { + return $this->node_count; + } + + /** + * Required. The desired node count for the pool. + * + * Generated from protobuf field int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setNodeCount($var) + { + GPBUtil::checkInt32($var); + $this->node_count = $var; + + return $this; + } + + /** + * The name (project, location, cluster, node pool id) of the node pool to set + * size. + * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 7; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster, node pool id) of the node pool to set + * size. + * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 7; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ShieldedInstanceConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ShieldedInstanceConfig.php new file mode 100644 index 000000000000..c711d0be5048 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ShieldedInstanceConfig.php @@ -0,0 +1,129 @@ +google.container.v1.ShieldedInstanceConfig + */ +class ShieldedInstanceConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Defines whether the instance has Secure Boot enabled. + * Secure Boot helps ensure that the system only runs authentic software by + * verifying the digital signature of all boot components, and halting the + * boot process if signature verification fails. + * + * Generated from protobuf field bool enable_secure_boot = 1; + */ + protected $enable_secure_boot = false; + /** + * Defines whether the instance has integrity monitoring enabled. + * Enables monitoring and attestation of the boot integrity of the instance. + * The attestation is performed against the integrity policy baseline. This + * baseline is initially derived from the implicitly trusted boot image when + * the instance is created. + * + * Generated from protobuf field bool enable_integrity_monitoring = 2; + */ + protected $enable_integrity_monitoring = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enable_secure_boot + * Defines whether the instance has Secure Boot enabled. + * Secure Boot helps ensure that the system only runs authentic software by + * verifying the digital signature of all boot components, and halting the + * boot process if signature verification fails. + * @type bool $enable_integrity_monitoring + * Defines whether the instance has integrity monitoring enabled. + * Enables monitoring and attestation of the boot integrity of the instance. + * The attestation is performed against the integrity policy baseline. This + * baseline is initially derived from the implicitly trusted boot image when + * the instance is created. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Defines whether the instance has Secure Boot enabled. + * Secure Boot helps ensure that the system only runs authentic software by + * verifying the digital signature of all boot components, and halting the + * boot process if signature verification fails. + * + * Generated from protobuf field bool enable_secure_boot = 1; + * @return bool + */ + public function getEnableSecureBoot() + { + return $this->enable_secure_boot; + } + + /** + * Defines whether the instance has Secure Boot enabled. + * Secure Boot helps ensure that the system only runs authentic software by + * verifying the digital signature of all boot components, and halting the + * boot process if signature verification fails. + * + * Generated from protobuf field bool enable_secure_boot = 1; + * @param bool $var + * @return $this + */ + public function setEnableSecureBoot($var) + { + GPBUtil::checkBool($var); + $this->enable_secure_boot = $var; + + return $this; + } + + /** + * Defines whether the instance has integrity monitoring enabled. + * Enables monitoring and attestation of the boot integrity of the instance. + * The attestation is performed against the integrity policy baseline. This + * baseline is initially derived from the implicitly trusted boot image when + * the instance is created. + * + * Generated from protobuf field bool enable_integrity_monitoring = 2; + * @return bool + */ + public function getEnableIntegrityMonitoring() + { + return $this->enable_integrity_monitoring; + } + + /** + * Defines whether the instance has integrity monitoring enabled. + * Enables monitoring and attestation of the boot integrity of the instance. + * The attestation is performed against the integrity policy baseline. This + * baseline is initially derived from the implicitly trusted boot image when + * the instance is created. + * + * Generated from protobuf field bool enable_integrity_monitoring = 2; + * @param bool $var + * @return $this + */ + public function setEnableIntegrityMonitoring($var) + { + GPBUtil::checkBool($var); + $this->enable_integrity_monitoring = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ShieldedNodes.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ShieldedNodes.php new file mode 100644 index 000000000000..09b61f99c881 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ShieldedNodes.php @@ -0,0 +1,67 @@ +google.container.v1.ShieldedNodes + */ +class ShieldedNodes extends \Google\Protobuf\Internal\Message +{ + /** + * Whether Shielded Nodes features are enabled on all nodes in this cluster. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Whether Shielded Nodes features are enabled on all nodes in this cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether Shielded Nodes features are enabled on all nodes in this cluster. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Whether Shielded Nodes features are enabled on all nodes in this cluster. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SoleTenantConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SoleTenantConfig.php new file mode 100644 index 000000000000..9cf3c4f481ab --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SoleTenantConfig.php @@ -0,0 +1,68 @@ +google.container.v1.SoleTenantConfig + */ +class SoleTenantConfig extends \Google\Protobuf\Internal\Message +{ + /** + * NodeAffinities used to match to a shared sole tenant node group. + * + * Generated from protobuf field repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + private $node_affinities; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\Container\V1\SoleTenantConfig\NodeAffinity>|\Google\Protobuf\Internal\RepeatedField $node_affinities + * NodeAffinities used to match to a shared sole tenant node group. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * NodeAffinities used to match to a shared sole tenant node group. + * + * Generated from protobuf field repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getNodeAffinities() + { + return $this->node_affinities; + } + + /** + * NodeAffinities used to match to a shared sole tenant node group. + * + * Generated from protobuf field repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; + * @param array<\Google\Cloud\Container\V1\SoleTenantConfig\NodeAffinity>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setNodeAffinities($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\SoleTenantConfig\NodeAffinity::class); + $this->node_affinities = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SoleTenantConfig/NodeAffinity.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SoleTenantConfig/NodeAffinity.php new file mode 100644 index 000000000000..4d1fff207a65 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SoleTenantConfig/NodeAffinity.php @@ -0,0 +1,140 @@ +google.container.v1.SoleTenantConfig.NodeAffinity + */ +class NodeAffinity extends \Google\Protobuf\Internal\Message +{ + /** + * Key for NodeAffinity. + * + * Generated from protobuf field string key = 1; + */ + protected $key = ''; + /** + * Operator for NodeAffinity. + * + * Generated from protobuf field .google.container.v1.SoleTenantConfig.NodeAffinity.Operator operator = 2; + */ + protected $operator = 0; + /** + * Values for NodeAffinity. + * + * Generated from protobuf field repeated string values = 3; + */ + private $values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $key + * Key for NodeAffinity. + * @type int $operator + * Operator for NodeAffinity. + * @type array|\Google\Protobuf\Internal\RepeatedField $values + * Values for NodeAffinity. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Key for NodeAffinity. + * + * Generated from protobuf field string key = 1; + * @return string + */ + public function getKey() + { + return $this->key; + } + + /** + * Key for NodeAffinity. + * + * Generated from protobuf field string key = 1; + * @param string $var + * @return $this + */ + public function setKey($var) + { + GPBUtil::checkString($var, True); + $this->key = $var; + + return $this; + } + + /** + * Operator for NodeAffinity. + * + * Generated from protobuf field .google.container.v1.SoleTenantConfig.NodeAffinity.Operator operator = 2; + * @return int + */ + public function getOperator() + { + return $this->operator; + } + + /** + * Operator for NodeAffinity. + * + * Generated from protobuf field .google.container.v1.SoleTenantConfig.NodeAffinity.Operator operator = 2; + * @param int $var + * @return $this + */ + public function setOperator($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\SoleTenantConfig\NodeAffinity\Operator::class); + $this->operator = $var; + + return $this; + } + + /** + * Values for NodeAffinity. + * + * Generated from protobuf field repeated string values = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getValues() + { + return $this->values; + } + + /** + * Values for NodeAffinity. + * + * Generated from protobuf field repeated string values = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->values = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(NodeAffinity::class, \Google\Cloud\Container\V1\SoleTenantConfig_NodeAffinity::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SoleTenantConfig/NodeAffinity/Operator.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SoleTenantConfig/NodeAffinity/Operator.php new file mode 100644 index 000000000000..b40318d1e381 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SoleTenantConfig/NodeAffinity/Operator.php @@ -0,0 +1,65 @@ +google.container.v1.SoleTenantConfig.NodeAffinity.Operator + */ +class Operator +{ + /** + * Invalid or unspecified affinity operator. + * + * Generated from protobuf enum OPERATOR_UNSPECIFIED = 0; + */ + const OPERATOR_UNSPECIFIED = 0; + /** + * Affinity operator. + * + * Generated from protobuf enum IN = 1; + */ + const IN = 1; + /** + * Anti-affinity operator. + * + * Generated from protobuf enum NOT_IN = 2; + */ + const NOT_IN = 2; + + private static $valueToName = [ + self::OPERATOR_UNSPECIFIED => 'OPERATOR_UNSPECIFIED', + self::IN => 'IN', + self::NOT_IN => 'NOT_IN', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Operator::class, \Google\Cloud\Container\V1\SoleTenantConfig_NodeAffinity_Operator::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StackType.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StackType.php new file mode 100644 index 000000000000..ce1f1c6c392b --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StackType.php @@ -0,0 +1,61 @@ +google.container.v1.StackType + */ +class StackType +{ + /** + * Default value, will be defaulted as IPV4 only + * + * Generated from protobuf enum STACK_TYPE_UNSPECIFIED = 0; + */ + const STACK_TYPE_UNSPECIFIED = 0; + /** + * Cluster is IPV4 only + * + * Generated from protobuf enum IPV4 = 1; + */ + const IPV4 = 1; + /** + * Cluster can use both IPv4 and IPv6 + * + * Generated from protobuf enum IPV4_IPV6 = 2; + */ + const IPV4_IPV6 = 2; + + private static $valueToName = [ + self::STACK_TYPE_UNSPECIFIED => 'STACK_TYPE_UNSPECIFIED', + self::IPV4 => 'IPV4', + self::IPV4_IPV6 => 'IPV4_IPV6', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StartIPRotationRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StartIPRotationRequest.php new file mode 100644 index 000000000000..d83526a15815 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StartIPRotationRequest.php @@ -0,0 +1,284 @@ +google.container.v1.StartIPRotationRequest + */ +class StartIPRotationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * The name (project, location, cluster name) of the cluster to start IP + * rotation. Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 6; + */ + protected $name = ''; + /** + * Whether to rotate credentials during IP rotation. + * + * Generated from protobuf field bool rotate_credentials = 7; + */ + protected $rotate_credentials = false; + + /** + * @param string $projectId Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @param string $zone Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @param string $clusterId Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * @return \Google\Cloud\Container\V1\StartIPRotationRequest + * + * @experimental + */ + public static function build(string $projectId, string $zone, string $clusterId): self + { + return (new self()) + ->setProjectId($projectId) + ->setZone($zone) + ->setClusterId($clusterId); + } + + /** + * @param string $name The name (project, location, cluster name) of the cluster to start IP + * rotation. Specified in the format `projects/*/locations/*/clusters/*`. + * + * @return \Google\Cloud\Container\V1\StartIPRotationRequest + * + * @experimental + */ + public static function buildFromName(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster name) of the cluster to start IP + * rotation. Specified in the format `projects/*/locations/*/clusters/*`. + * @type bool $rotate_credentials + * Whether to rotate credentials during IP rotation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * The name (project, location, cluster name) of the cluster to start IP + * rotation. Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 6; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster name) of the cluster to start IP + * rotation. Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 6; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Whether to rotate credentials during IP rotation. + * + * Generated from protobuf field bool rotate_credentials = 7; + * @return bool + */ + public function getRotateCredentials() + { + return $this->rotate_credentials; + } + + /** + * Whether to rotate credentials during IP rotation. + * + * Generated from protobuf field bool rotate_credentials = 7; + * @param bool $var + * @return $this + */ + public function setRotateCredentials($var) + { + GPBUtil::checkBool($var); + $this->rotate_credentials = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatefulHAConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatefulHAConfig.php new file mode 100644 index 000000000000..6badc67f40b1 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatefulHAConfig.php @@ -0,0 +1,67 @@ +google.container.v1.StatefulHAConfig + */ +class StatefulHAConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Whether the Stateful HA add-on is enabled for this cluster. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Whether the Stateful HA add-on is enabled for this cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether the Stateful HA add-on is enabled for this cluster. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Whether the Stateful HA add-on is enabled for this cluster. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatusCondition.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatusCondition.php new file mode 100644 index 000000000000..3214778aea36 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatusCondition.php @@ -0,0 +1,145 @@ +google.container.v1.StatusCondition + */ +class StatusCondition extends \Google\Protobuf\Internal\Message +{ + /** + * Machine-friendly representation of the condition + * Deprecated. Use canonical_code instead. + * + * Generated from protobuf field .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; + * @deprecated + */ + protected $code = 0; + /** + * Human-friendly representation of the condition + * + * Generated from protobuf field string message = 2; + */ + protected $message = ''; + /** + * Canonical code of the condition. + * + * Generated from protobuf field .google.rpc.Code canonical_code = 3; + */ + protected $canonical_code = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $code + * Machine-friendly representation of the condition + * Deprecated. Use canonical_code instead. + * @type string $message + * Human-friendly representation of the condition + * @type int $canonical_code + * Canonical code of the condition. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Machine-friendly representation of the condition + * Deprecated. Use canonical_code instead. + * + * Generated from protobuf field .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; + * @return int + * @deprecated + */ + public function getCode() + { + @trigger_error('code is deprecated.', E_USER_DEPRECATED); + return $this->code; + } + + /** + * Machine-friendly representation of the condition + * Deprecated. Use canonical_code instead. + * + * Generated from protobuf field .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; + * @param int $var + * @return $this + * @deprecated + */ + public function setCode($var) + { + @trigger_error('code is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\StatusCondition\Code::class); + $this->code = $var; + + return $this; + } + + /** + * Human-friendly representation of the condition + * + * Generated from protobuf field string message = 2; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Human-friendly representation of the condition + * + * Generated from protobuf field string message = 2; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + + /** + * Canonical code of the condition. + * + * Generated from protobuf field .google.rpc.Code canonical_code = 3; + * @return int + */ + public function getCanonicalCode() + { + return $this->canonical_code; + } + + /** + * Canonical code of the condition. + * + * Generated from protobuf field .google.rpc.Code canonical_code = 3; + * @param int $var + * @return $this + */ + public function setCanonicalCode($var) + { + GPBUtil::checkEnum($var, \Google\Rpc\Code::class); + $this->canonical_code = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatusCondition/Code.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatusCondition/Code.php new file mode 100644 index 000000000000..189901c0228e --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatusCondition/Code.php @@ -0,0 +1,95 @@ +google.container.v1.StatusCondition.Code + */ +class Code +{ + /** + * UNKNOWN indicates a generic condition. + * + * Generated from protobuf enum UNKNOWN = 0; + */ + const UNKNOWN = 0; + /** + * GCE_STOCKOUT indicates that Google Compute Engine resources are + * temporarily unavailable. + * + * Generated from protobuf enum GCE_STOCKOUT = 1; + */ + const GCE_STOCKOUT = 1; + /** + * GKE_SERVICE_ACCOUNT_DELETED indicates that the user deleted their robot + * service account. + * + * Generated from protobuf enum GKE_SERVICE_ACCOUNT_DELETED = 2; + */ + const GKE_SERVICE_ACCOUNT_DELETED = 2; + /** + * Google Compute Engine quota was exceeded. + * + * Generated from protobuf enum GCE_QUOTA_EXCEEDED = 3; + */ + const GCE_QUOTA_EXCEEDED = 3; + /** + * Cluster state was manually changed by an SRE due to a system logic error. + * + * Generated from protobuf enum SET_BY_OPERATOR = 4; + */ + const SET_BY_OPERATOR = 4; + /** + * Unable to perform an encrypt operation against the CloudKMS key used for + * etcd level encryption. + * + * Generated from protobuf enum CLOUD_KMS_KEY_ERROR = 7; + */ + const CLOUD_KMS_KEY_ERROR = 7; + /** + * Cluster CA is expiring soon. + * + * Generated from protobuf enum CA_EXPIRING = 9; + */ + const CA_EXPIRING = 9; + + private static $valueToName = [ + self::UNKNOWN => 'UNKNOWN', + self::GCE_STOCKOUT => 'GCE_STOCKOUT', + self::GKE_SERVICE_ACCOUNT_DELETED => 'GKE_SERVICE_ACCOUNT_DELETED', + self::GCE_QUOTA_EXCEEDED => 'GCE_QUOTA_EXCEEDED', + self::SET_BY_OPERATOR => 'SET_BY_OPERATOR', + self::CLOUD_KMS_KEY_ERROR => 'CLOUD_KMS_KEY_ERROR', + self::CA_EXPIRING => 'CA_EXPIRING', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Code::class, \Google\Cloud\Container\V1\StatusCondition_Code::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/TimeWindow.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/TimeWindow.php new file mode 100644 index 000000000000..ac645e5dd8ea --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/TimeWindow.php @@ -0,0 +1,170 @@ +google.container.v1.TimeWindow + */ +class TimeWindow extends \Google\Protobuf\Internal\Message +{ + /** + * The time that the window first starts. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; + */ + protected $start_time = null; + /** + * The time that the window ends. The end time should take place after the + * start time. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; + */ + protected $end_time = null; + protected $options; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Container\V1\MaintenanceExclusionOptions $maintenance_exclusion_options + * MaintenanceExclusionOptions provides maintenance exclusion related + * options. + * @type \Google\Protobuf\Timestamp $start_time + * The time that the window first starts. + * @type \Google\Protobuf\Timestamp $end_time + * The time that the window ends. The end time should take place after the + * start time. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * MaintenanceExclusionOptions provides maintenance exclusion related + * options. + * + * Generated from protobuf field .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * @return \Google\Cloud\Container\V1\MaintenanceExclusionOptions|null + */ + public function getMaintenanceExclusionOptions() + { + return $this->readOneof(3); + } + + public function hasMaintenanceExclusionOptions() + { + return $this->hasOneof(3); + } + + /** + * MaintenanceExclusionOptions provides maintenance exclusion related + * options. + * + * Generated from protobuf field .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * @param \Google\Cloud\Container\V1\MaintenanceExclusionOptions $var + * @return $this + */ + public function setMaintenanceExclusionOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MaintenanceExclusionOptions::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * The time that the window first starts. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; + * @return \Google\Protobuf\Timestamp|null + */ + public function getStartTime() + { + return $this->start_time; + } + + public function hasStartTime() + { + return isset($this->start_time); + } + + public function clearStartTime() + { + unset($this->start_time); + } + + /** + * The time that the window first starts. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + + /** + * The time that the window ends. The end time should take place after the + * start time. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEndTime() + { + return $this->end_time; + } + + public function hasEndTime() + { + return isset($this->end_time); + } + + public function clearEndTime() + { + unset($this->end_time); + } + + /** + * The time that the window ends. The end time should take place after the + * start time. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + + /** + * @return string + */ + public function getOptions() + { + return $this->whichOneof("options"); + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateClusterRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateClusterRequest.php new file mode 100644 index 000000000000..616a4818bea8 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateClusterRequest.php @@ -0,0 +1,297 @@ +google.container.v1.UpdateClusterRequest + */ +class UpdateClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * Required. A description of the update. + * + * Generated from protobuf field .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update = null; + /** + * The name (project, location, cluster) of the cluster to update. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 5; + */ + protected $name = ''; + + /** + * @param string $projectId Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @param string $zone Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @param string $clusterId Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @param \Google\Cloud\Container\V1\ClusterUpdate $update Required. A description of the update. + * + * @return \Google\Cloud\Container\V1\UpdateClusterRequest + * + * @experimental + */ + public static function build(string $projectId, string $zone, string $clusterId, \Google\Cloud\Container\V1\ClusterUpdate $update): self + { + return (new self()) + ->setProjectId($projectId) + ->setZone($zone) + ->setClusterId($clusterId) + ->setUpdate($update); + } + + /** + * @param string $name The name (project, location, cluster) of the cluster to update. + * Specified in the format `projects/*/locations/*/clusters/*`. + * @param \Google\Cloud\Container\V1\ClusterUpdate $update Required. A description of the update. + * + * @return \Google\Cloud\Container\V1\UpdateClusterRequest + * + * @experimental + */ + public static function buildFromNameUpdate(string $name, \Google\Cloud\Container\V1\ClusterUpdate $update): self + { + return (new self()) + ->setName($name) + ->setUpdate($update); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @type \Google\Cloud\Container\V1\ClusterUpdate $update + * Required. A description of the update. + * @type string $name + * The name (project, location, cluster) of the cluster to update. + * Specified in the format `projects/*/locations/*/clusters/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Required. A description of the update. + * + * Generated from protobuf field .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Container\V1\ClusterUpdate|null + */ + public function getUpdate() + { + return $this->update; + } + + public function hasUpdate() + { + return isset($this->update); + } + + public function clearUpdate() + { + unset($this->update); + } + + /** + * Required. A description of the update. + * + * Generated from protobuf field .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Container\V1\ClusterUpdate $var + * @return $this + */ + public function setUpdate($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ClusterUpdate::class); + $this->update = $var; + + return $this; + } + + /** + * The name (project, location, cluster) of the cluster to update. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 5; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster) of the cluster to update. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 5; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateMasterRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateMasterRequest.php new file mode 100644 index 000000000000..e8512985f1a5 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateMasterRequest.php @@ -0,0 +1,333 @@ +google.container.v1.UpdateMasterRequest + */ +class UpdateMasterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * Required. The Kubernetes version to change the master to. + * Users may specify either explicit versions offered by Kubernetes Engine or + * version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the default Kubernetes version + * + * Generated from protobuf field string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $master_version = ''; + /** + * The name (project, location, cluster) of the cluster to update. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 7; + */ + protected $name = ''; + + /** + * @param string $projectId Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @param string $zone Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @param string $clusterId Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @param string $masterVersion Required. The Kubernetes version to change the master to. + * + * Users may specify either explicit versions offered by Kubernetes Engine or + * version aliases, which have the following behavior: + * + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the default Kubernetes version + * + * @return \Google\Cloud\Container\V1\UpdateMasterRequest + * + * @experimental + */ + public static function build(string $projectId, string $zone, string $clusterId, string $masterVersion): self + { + return (new self()) + ->setProjectId($projectId) + ->setZone($zone) + ->setClusterId($clusterId) + ->setMasterVersion($masterVersion); + } + + /** + * @param string $name The name (project, location, cluster) of the cluster to update. + * Specified in the format `projects/*/locations/*/clusters/*`. + * @param string $masterVersion Required. The Kubernetes version to change the master to. + * + * Users may specify either explicit versions offered by Kubernetes Engine or + * version aliases, which have the following behavior: + * + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the default Kubernetes version + * + * @return \Google\Cloud\Container\V1\UpdateMasterRequest + * + * @experimental + */ + public static function buildFromNameMasterVersion(string $name, string $masterVersion): self + { + return (new self()) + ->setName($name) + ->setMasterVersion($masterVersion); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @type string $master_version + * Required. The Kubernetes version to change the master to. + * Users may specify either explicit versions offered by Kubernetes Engine or + * version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the default Kubernetes version + * @type string $name + * The name (project, location, cluster) of the cluster to update. + * Specified in the format `projects/*/locations/*/clusters/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Required. The Kubernetes version to change the master to. + * Users may specify either explicit versions offered by Kubernetes Engine or + * version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the default Kubernetes version + * + * Generated from protobuf field string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getMasterVersion() + { + return $this->master_version; + } + + /** + * Required. The Kubernetes version to change the master to. + * Users may specify either explicit versions offered by Kubernetes Engine or + * version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the default Kubernetes version + * + * Generated from protobuf field string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setMasterVersion($var) + { + GPBUtil::checkString($var, True); + $this->master_version = $var; + + return $this; + } + + /** + * The name (project, location, cluster) of the cluster to update. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 7; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster) of the cluster to update. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 7; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateNodePoolRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateNodePoolRequest.php new file mode 100644 index 000000000000..e9185caf17a8 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateNodePoolRequest.php @@ -0,0 +1,1385 @@ +google.container.v1.UpdateNodePoolRequest + */ +class UpdateNodePoolRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * Deprecated. The name of the node pool to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @deprecated + */ + protected $node_pool_id = ''; + /** + * Required. The Kubernetes version to change the nodes to (typically an + * upgrade). + * Users may specify either explicit versions offered by Kubernetes Engine or + * version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the Kubernetes master version + * + * Generated from protobuf field string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $node_version = ''; + /** + * Required. The desired image type for the node pool. Please see + * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for + * available image types. + * + * Generated from protobuf field string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $image_type = ''; + /** + * The name (project, location, cluster, node pool) of the node pool to + * update. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 8; + */ + protected $name = ''; + /** + * The desired list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * node pool's nodes should be located. Changing the locations for a node pool + * will result in nodes being either created or removed from the node pool, + * depending on whether locations are being added or removed. + * + * Generated from protobuf field repeated string locations = 13; + */ + private $locations; + /** + * The desired workload metadata config for the node pool. + * + * Generated from protobuf field .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + protected $workload_metadata_config = null; + /** + * Upgrade settings control disruption and speed of the upgrade. + * + * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + protected $upgrade_settings = null; + /** + * The desired network tags to be applied to all nodes in the node pool. + * If this field is not present, the tags will not be changed. Otherwise, + * the existing network tags will be *replaced* with the provided tags. + * + * Generated from protobuf field .google.container.v1.NetworkTags tags = 16; + */ + protected $tags = null; + /** + * The desired node taints to be applied to all nodes in the node pool. + * If this field is not present, the taints will not be changed. Otherwise, + * the existing node taints will be *replaced* with the provided taints. + * + * Generated from protobuf field .google.container.v1.NodeTaints taints = 17; + */ + protected $taints = null; + /** + * The desired node labels to be applied to all nodes in the node pool. + * If this field is not present, the labels will not be changed. Otherwise, + * the existing node labels will be *replaced* with the provided labels. + * + * Generated from protobuf field .google.container.v1.NodeLabels labels = 18; + */ + protected $labels = null; + /** + * Parameters that can be configured on Linux nodes. + * + * Generated from protobuf field .google.container.v1.LinuxNodeConfig linux_node_config = 19; + */ + protected $linux_node_config = null; + /** + * Node kubelet configs. + * + * Generated from protobuf field .google.container.v1.NodeKubeletConfig kubelet_config = 20; + */ + protected $kubelet_config = null; + /** + * Node network config. + * + * Generated from protobuf field .google.container.v1.NodeNetworkConfig node_network_config = 21; + */ + protected $node_network_config = null; + /** + * GCFS config. + * + * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 22; + */ + protected $gcfs_config = null; + /** + * Confidential nodes config. + * All the nodes in the node pool will be Confidential VM once enabled. + * + * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 23; + */ + protected $confidential_nodes = null; + /** + * Enable or disable gvnic on the node pool. + * + * Generated from protobuf field .google.container.v1.VirtualNIC gvnic = 29; + */ + protected $gvnic = null; + /** + * The current etag of the node pool. + * If an etag is provided and does not match the current etag of the node + * pool, update will be blocked and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 30; + */ + protected $etag = ''; + /** + * Enable or disable NCCL fast socket for the node pool. + * + * Generated from protobuf field .google.container.v1.FastSocket fast_socket = 31; + */ + protected $fast_socket = null; + /** + * Logging configuration. + * + * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 32; + */ + protected $logging_config = null; + /** + * The resource labels for the node pool to use to annotate any related + * Google Compute Engine resources. + * + * Generated from protobuf field .google.container.v1.ResourceLabels resource_labels = 33; + */ + protected $resource_labels = null; + /** + * Parameters that can be configured on Windows nodes. + * + * Generated from protobuf field .google.container.v1.WindowsNodeConfig windows_node_config = 34; + */ + protected $windows_node_config = null; + /** + * Optional. The desired [Google Compute Engine machine + * type](https://cloud.google.com/compute/docs/machine-types) for nodes in the + * node pool. Initiates an upgrade operation that migrates the nodes in the + * node pool to the specified machine type. + * + * Generated from protobuf field string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $machine_type = ''; + /** + * Optional. The desired disk type (e.g. 'pd-standard', 'pd-ssd' or + * 'pd-balanced') for nodes in the node pool. + * Initiates an upgrade operation that migrates the nodes in the + * node pool to the specified disk type. + * + * Generated from protobuf field string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $disk_type = ''; + /** + * Optional. The desired disk size for nodes in the node pool specified in GB. + * The smallest allowed disk size is 10GB. + * Initiates an upgrade operation that migrates the nodes in the + * node pool to the specified disk size. + * + * Generated from protobuf field int64 disk_size_gb = 38 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $disk_size_gb = 0; + /** + * Desired resource manager tag keys and values to be attached to the nodes + * for managing Compute Engine firewalls using Network Firewall Policies. + * Existing tags will be replaced with new values. + * + * Generated from protobuf field .google.container.v1.ResourceManagerTags resource_manager_tags = 39; + */ + protected $resource_manager_tags = null; + /** + * Specifies the configuration of queued provisioning. + * + * Generated from protobuf field .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 42; + */ + protected $queued_provisioning = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @type string $node_pool_id + * Deprecated. The name of the node pool to upgrade. + * This field has been deprecated and replaced by the name field. + * @type string $node_version + * Required. The Kubernetes version to change the nodes to (typically an + * upgrade). + * Users may specify either explicit versions offered by Kubernetes Engine or + * version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the Kubernetes master version + * @type string $image_type + * Required. The desired image type for the node pool. Please see + * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for + * available image types. + * @type string $name + * The name (project, location, cluster, node pool) of the node pool to + * update. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * @type array|\Google\Protobuf\Internal\RepeatedField $locations + * The desired list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * node pool's nodes should be located. Changing the locations for a node pool + * will result in nodes being either created or removed from the node pool, + * depending on whether locations are being added or removed. + * @type \Google\Cloud\Container\V1\WorkloadMetadataConfig $workload_metadata_config + * The desired workload metadata config for the node pool. + * @type \Google\Cloud\Container\V1\NodePool\UpgradeSettings $upgrade_settings + * Upgrade settings control disruption and speed of the upgrade. + * @type \Google\Cloud\Container\V1\NetworkTags $tags + * The desired network tags to be applied to all nodes in the node pool. + * If this field is not present, the tags will not be changed. Otherwise, + * the existing network tags will be *replaced* with the provided tags. + * @type \Google\Cloud\Container\V1\NodeTaints $taints + * The desired node taints to be applied to all nodes in the node pool. + * If this field is not present, the taints will not be changed. Otherwise, + * the existing node taints will be *replaced* with the provided taints. + * @type \Google\Cloud\Container\V1\NodeLabels $labels + * The desired node labels to be applied to all nodes in the node pool. + * If this field is not present, the labels will not be changed. Otherwise, + * the existing node labels will be *replaced* with the provided labels. + * @type \Google\Cloud\Container\V1\LinuxNodeConfig $linux_node_config + * Parameters that can be configured on Linux nodes. + * @type \Google\Cloud\Container\V1\NodeKubeletConfig $kubelet_config + * Node kubelet configs. + * @type \Google\Cloud\Container\V1\NodeNetworkConfig $node_network_config + * Node network config. + * @type \Google\Cloud\Container\V1\GcfsConfig $gcfs_config + * GCFS config. + * @type \Google\Cloud\Container\V1\ConfidentialNodes $confidential_nodes + * Confidential nodes config. + * All the nodes in the node pool will be Confidential VM once enabled. + * @type \Google\Cloud\Container\V1\VirtualNIC $gvnic + * Enable or disable gvnic on the node pool. + * @type string $etag + * The current etag of the node pool. + * If an etag is provided and does not match the current etag of the node + * pool, update will be blocked and an ABORTED error will be returned. + * @type \Google\Cloud\Container\V1\FastSocket $fast_socket + * Enable or disable NCCL fast socket for the node pool. + * @type \Google\Cloud\Container\V1\NodePoolLoggingConfig $logging_config + * Logging configuration. + * @type \Google\Cloud\Container\V1\ResourceLabels $resource_labels + * The resource labels for the node pool to use to annotate any related + * Google Compute Engine resources. + * @type \Google\Cloud\Container\V1\WindowsNodeConfig $windows_node_config + * Parameters that can be configured on Windows nodes. + * @type string $machine_type + * Optional. The desired [Google Compute Engine machine + * type](https://cloud.google.com/compute/docs/machine-types) for nodes in the + * node pool. Initiates an upgrade operation that migrates the nodes in the + * node pool to the specified machine type. + * @type string $disk_type + * Optional. The desired disk type (e.g. 'pd-standard', 'pd-ssd' or + * 'pd-balanced') for nodes in the node pool. + * Initiates an upgrade operation that migrates the nodes in the + * node pool to the specified disk type. + * @type int|string $disk_size_gb + * Optional. The desired disk size for nodes in the node pool specified in GB. + * The smallest allowed disk size is 10GB. + * Initiates an upgrade operation that migrates the nodes in the + * node pool to the specified disk size. + * @type \Google\Cloud\Container\V1\ResourceManagerTags $resource_manager_tags + * Desired resource manager tag keys and values to be attached to the nodes + * for managing Compute Engine firewalls using Network Firewall Policies. + * Existing tags will be replaced with new values. + * @type \Google\Cloud\Container\V1\NodePool\QueuedProvisioning $queued_provisioning + * Specifies the configuration of queued provisioning. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the node pool to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @return string + * @deprecated + */ + public function getNodePoolId() + { + @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); + return $this->node_pool_id; + } + + /** + * Deprecated. The name of the node pool to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setNodePoolId($var) + { + @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->node_pool_id = $var; + + return $this; + } + + /** + * Required. The Kubernetes version to change the nodes to (typically an + * upgrade). + * Users may specify either explicit versions offered by Kubernetes Engine or + * version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the Kubernetes master version + * + * Generated from protobuf field string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getNodeVersion() + { + return $this->node_version; + } + + /** + * Required. The Kubernetes version to change the nodes to (typically an + * upgrade). + * Users may specify either explicit versions offered by Kubernetes Engine or + * version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the Kubernetes master version + * + * Generated from protobuf field string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setNodeVersion($var) + { + GPBUtil::checkString($var, True); + $this->node_version = $var; + + return $this; + } + + /** + * Required. The desired image type for the node pool. Please see + * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for + * available image types. + * + * Generated from protobuf field string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getImageType() + { + return $this->image_type; + } + + /** + * Required. The desired image type for the node pool. Please see + * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for + * available image types. + * + * Generated from protobuf field string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setImageType($var) + { + GPBUtil::checkString($var, True); + $this->image_type = $var; + + return $this; + } + + /** + * The name (project, location, cluster, node pool) of the node pool to + * update. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 8; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster, node pool) of the node pool to + * update. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 8; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The desired list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * node pool's nodes should be located. Changing the locations for a node pool + * will result in nodes being either created or removed from the node pool, + * depending on whether locations are being added or removed. + * + * Generated from protobuf field repeated string locations = 13; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getLocations() + { + return $this->locations; + } + + /** + * The desired list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * node pool's nodes should be located. Changing the locations for a node pool + * will result in nodes being either created or removed from the node pool, + * depending on whether locations are being added or removed. + * + * Generated from protobuf field repeated string locations = 13; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->locations = $arr; + + return $this; + } + + /** + * The desired workload metadata config for the node pool. + * + * Generated from protobuf field .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + * @return \Google\Cloud\Container\V1\WorkloadMetadataConfig|null + */ + public function getWorkloadMetadataConfig() + { + return $this->workload_metadata_config; + } + + public function hasWorkloadMetadataConfig() + { + return isset($this->workload_metadata_config); + } + + public function clearWorkloadMetadataConfig() + { + unset($this->workload_metadata_config); + } + + /** + * The desired workload metadata config for the node pool. + * + * Generated from protobuf field .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + * @param \Google\Cloud\Container\V1\WorkloadMetadataConfig $var + * @return $this + */ + public function setWorkloadMetadataConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\WorkloadMetadataConfig::class); + $this->workload_metadata_config = $var; + + return $this; + } + + /** + * Upgrade settings control disruption and speed of the upgrade. + * + * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + * @return \Google\Cloud\Container\V1\NodePool\UpgradeSettings|null + */ + public function getUpgradeSettings() + { + return $this->upgrade_settings; + } + + public function hasUpgradeSettings() + { + return isset($this->upgrade_settings); + } + + public function clearUpgradeSettings() + { + unset($this->upgrade_settings); + } + + /** + * Upgrade settings control disruption and speed of the upgrade. + * + * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + * @param \Google\Cloud\Container\V1\NodePool\UpgradeSettings $var + * @return $this + */ + public function setUpgradeSettings($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool\UpgradeSettings::class); + $this->upgrade_settings = $var; + + return $this; + } + + /** + * The desired network tags to be applied to all nodes in the node pool. + * If this field is not present, the tags will not be changed. Otherwise, + * the existing network tags will be *replaced* with the provided tags. + * + * Generated from protobuf field .google.container.v1.NetworkTags tags = 16; + * @return \Google\Cloud\Container\V1\NetworkTags|null + */ + public function getTags() + { + return $this->tags; + } + + public function hasTags() + { + return isset($this->tags); + } + + public function clearTags() + { + unset($this->tags); + } + + /** + * The desired network tags to be applied to all nodes in the node pool. + * If this field is not present, the tags will not be changed. Otherwise, + * the existing network tags will be *replaced* with the provided tags. + * + * Generated from protobuf field .google.container.v1.NetworkTags tags = 16; + * @param \Google\Cloud\Container\V1\NetworkTags $var + * @return $this + */ + public function setTags($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkTags::class); + $this->tags = $var; + + return $this; + } + + /** + * The desired node taints to be applied to all nodes in the node pool. + * If this field is not present, the taints will not be changed. Otherwise, + * the existing node taints will be *replaced* with the provided taints. + * + * Generated from protobuf field .google.container.v1.NodeTaints taints = 17; + * @return \Google\Cloud\Container\V1\NodeTaints|null + */ + public function getTaints() + { + return $this->taints; + } + + public function hasTaints() + { + return isset($this->taints); + } + + public function clearTaints() + { + unset($this->taints); + } + + /** + * The desired node taints to be applied to all nodes in the node pool. + * If this field is not present, the taints will not be changed. Otherwise, + * the existing node taints will be *replaced* with the provided taints. + * + * Generated from protobuf field .google.container.v1.NodeTaints taints = 17; + * @param \Google\Cloud\Container\V1\NodeTaints $var + * @return $this + */ + public function setTaints($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeTaints::class); + $this->taints = $var; + + return $this; + } + + /** + * The desired node labels to be applied to all nodes in the node pool. + * If this field is not present, the labels will not be changed. Otherwise, + * the existing node labels will be *replaced* with the provided labels. + * + * Generated from protobuf field .google.container.v1.NodeLabels labels = 18; + * @return \Google\Cloud\Container\V1\NodeLabels|null + */ + public function getLabels() + { + return $this->labels; + } + + public function hasLabels() + { + return isset($this->labels); + } + + public function clearLabels() + { + unset($this->labels); + } + + /** + * The desired node labels to be applied to all nodes in the node pool. + * If this field is not present, the labels will not be changed. Otherwise, + * the existing node labels will be *replaced* with the provided labels. + * + * Generated from protobuf field .google.container.v1.NodeLabels labels = 18; + * @param \Google\Cloud\Container\V1\NodeLabels $var + * @return $this + */ + public function setLabels($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeLabels::class); + $this->labels = $var; + + return $this; + } + + /** + * Parameters that can be configured on Linux nodes. + * + * Generated from protobuf field .google.container.v1.LinuxNodeConfig linux_node_config = 19; + * @return \Google\Cloud\Container\V1\LinuxNodeConfig|null + */ + public function getLinuxNodeConfig() + { + return $this->linux_node_config; + } + + public function hasLinuxNodeConfig() + { + return isset($this->linux_node_config); + } + + public function clearLinuxNodeConfig() + { + unset($this->linux_node_config); + } + + /** + * Parameters that can be configured on Linux nodes. + * + * Generated from protobuf field .google.container.v1.LinuxNodeConfig linux_node_config = 19; + * @param \Google\Cloud\Container\V1\LinuxNodeConfig $var + * @return $this + */ + public function setLinuxNodeConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LinuxNodeConfig::class); + $this->linux_node_config = $var; + + return $this; + } + + /** + * Node kubelet configs. + * + * Generated from protobuf field .google.container.v1.NodeKubeletConfig kubelet_config = 20; + * @return \Google\Cloud\Container\V1\NodeKubeletConfig|null + */ + public function getKubeletConfig() + { + return $this->kubelet_config; + } + + public function hasKubeletConfig() + { + return isset($this->kubelet_config); + } + + public function clearKubeletConfig() + { + unset($this->kubelet_config); + } + + /** + * Node kubelet configs. + * + * Generated from protobuf field .google.container.v1.NodeKubeletConfig kubelet_config = 20; + * @param \Google\Cloud\Container\V1\NodeKubeletConfig $var + * @return $this + */ + public function setKubeletConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeKubeletConfig::class); + $this->kubelet_config = $var; + + return $this; + } + + /** + * Node network config. + * + * Generated from protobuf field .google.container.v1.NodeNetworkConfig node_network_config = 21; + * @return \Google\Cloud\Container\V1\NodeNetworkConfig|null + */ + public function getNodeNetworkConfig() + { + return $this->node_network_config; + } + + public function hasNodeNetworkConfig() + { + return isset($this->node_network_config); + } + + public function clearNodeNetworkConfig() + { + unset($this->node_network_config); + } + + /** + * Node network config. + * + * Generated from protobuf field .google.container.v1.NodeNetworkConfig node_network_config = 21; + * @param \Google\Cloud\Container\V1\NodeNetworkConfig $var + * @return $this + */ + public function setNodeNetworkConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeNetworkConfig::class); + $this->node_network_config = $var; + + return $this; + } + + /** + * GCFS config. + * + * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 22; + * @return \Google\Cloud\Container\V1\GcfsConfig|null + */ + public function getGcfsConfig() + { + return $this->gcfs_config; + } + + public function hasGcfsConfig() + { + return isset($this->gcfs_config); + } + + public function clearGcfsConfig() + { + unset($this->gcfs_config); + } + + /** + * GCFS config. + * + * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 22; + * @param \Google\Cloud\Container\V1\GcfsConfig $var + * @return $this + */ + public function setGcfsConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GcfsConfig::class); + $this->gcfs_config = $var; + + return $this; + } + + /** + * Confidential nodes config. + * All the nodes in the node pool will be Confidential VM once enabled. + * + * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 23; + * @return \Google\Cloud\Container\V1\ConfidentialNodes|null + */ + public function getConfidentialNodes() + { + return $this->confidential_nodes; + } + + public function hasConfidentialNodes() + { + return isset($this->confidential_nodes); + } + + public function clearConfidentialNodes() + { + unset($this->confidential_nodes); + } + + /** + * Confidential nodes config. + * All the nodes in the node pool will be Confidential VM once enabled. + * + * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 23; + * @param \Google\Cloud\Container\V1\ConfidentialNodes $var + * @return $this + */ + public function setConfidentialNodes($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ConfidentialNodes::class); + $this->confidential_nodes = $var; + + return $this; + } + + /** + * Enable or disable gvnic on the node pool. + * + * Generated from protobuf field .google.container.v1.VirtualNIC gvnic = 29; + * @return \Google\Cloud\Container\V1\VirtualNIC|null + */ + public function getGvnic() + { + return $this->gvnic; + } + + public function hasGvnic() + { + return isset($this->gvnic); + } + + public function clearGvnic() + { + unset($this->gvnic); + } + + /** + * Enable or disable gvnic on the node pool. + * + * Generated from protobuf field .google.container.v1.VirtualNIC gvnic = 29; + * @param \Google\Cloud\Container\V1\VirtualNIC $var + * @return $this + */ + public function setGvnic($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\VirtualNIC::class); + $this->gvnic = $var; + + return $this; + } + + /** + * The current etag of the node pool. + * If an etag is provided and does not match the current etag of the node + * pool, update will be blocked and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 30; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * The current etag of the node pool. + * If an etag is provided and does not match the current etag of the node + * pool, update will be blocked and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 30; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Enable or disable NCCL fast socket for the node pool. + * + * Generated from protobuf field .google.container.v1.FastSocket fast_socket = 31; + * @return \Google\Cloud\Container\V1\FastSocket|null + */ + public function getFastSocket() + { + return $this->fast_socket; + } + + public function hasFastSocket() + { + return isset($this->fast_socket); + } + + public function clearFastSocket() + { + unset($this->fast_socket); + } + + /** + * Enable or disable NCCL fast socket for the node pool. + * + * Generated from protobuf field .google.container.v1.FastSocket fast_socket = 31; + * @param \Google\Cloud\Container\V1\FastSocket $var + * @return $this + */ + public function setFastSocket($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\FastSocket::class); + $this->fast_socket = $var; + + return $this; + } + + /** + * Logging configuration. + * + * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 32; + * @return \Google\Cloud\Container\V1\NodePoolLoggingConfig|null + */ + public function getLoggingConfig() + { + return $this->logging_config; + } + + public function hasLoggingConfig() + { + return isset($this->logging_config); + } + + public function clearLoggingConfig() + { + unset($this->logging_config); + } + + /** + * Logging configuration. + * + * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 32; + * @param \Google\Cloud\Container\V1\NodePoolLoggingConfig $var + * @return $this + */ + public function setLoggingConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolLoggingConfig::class); + $this->logging_config = $var; + + return $this; + } + + /** + * The resource labels for the node pool to use to annotate any related + * Google Compute Engine resources. + * + * Generated from protobuf field .google.container.v1.ResourceLabels resource_labels = 33; + * @return \Google\Cloud\Container\V1\ResourceLabels|null + */ + public function getResourceLabels() + { + return $this->resource_labels; + } + + public function hasResourceLabels() + { + return isset($this->resource_labels); + } + + public function clearResourceLabels() + { + unset($this->resource_labels); + } + + /** + * The resource labels for the node pool to use to annotate any related + * Google Compute Engine resources. + * + * Generated from protobuf field .google.container.v1.ResourceLabels resource_labels = 33; + * @param \Google\Cloud\Container\V1\ResourceLabels $var + * @return $this + */ + public function setResourceLabels($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ResourceLabels::class); + $this->resource_labels = $var; + + return $this; + } + + /** + * Parameters that can be configured on Windows nodes. + * + * Generated from protobuf field .google.container.v1.WindowsNodeConfig windows_node_config = 34; + * @return \Google\Cloud\Container\V1\WindowsNodeConfig|null + */ + public function getWindowsNodeConfig() + { + return $this->windows_node_config; + } + + public function hasWindowsNodeConfig() + { + return isset($this->windows_node_config); + } + + public function clearWindowsNodeConfig() + { + unset($this->windows_node_config); + } + + /** + * Parameters that can be configured on Windows nodes. + * + * Generated from protobuf field .google.container.v1.WindowsNodeConfig windows_node_config = 34; + * @param \Google\Cloud\Container\V1\WindowsNodeConfig $var + * @return $this + */ + public function setWindowsNodeConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\WindowsNodeConfig::class); + $this->windows_node_config = $var; + + return $this; + } + + /** + * Optional. The desired [Google Compute Engine machine + * type](https://cloud.google.com/compute/docs/machine-types) for nodes in the + * node pool. Initiates an upgrade operation that migrates the nodes in the + * node pool to the specified machine type. + * + * Generated from protobuf field string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getMachineType() + { + return $this->machine_type; + } + + /** + * Optional. The desired [Google Compute Engine machine + * type](https://cloud.google.com/compute/docs/machine-types) for nodes in the + * node pool. Initiates an upgrade operation that migrates the nodes in the + * node pool to the specified machine type. + * + * Generated from protobuf field string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setMachineType($var) + { + GPBUtil::checkString($var, True); + $this->machine_type = $var; + + return $this; + } + + /** + * Optional. The desired disk type (e.g. 'pd-standard', 'pd-ssd' or + * 'pd-balanced') for nodes in the node pool. + * Initiates an upgrade operation that migrates the nodes in the + * node pool to the specified disk type. + * + * Generated from protobuf field string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDiskType() + { + return $this->disk_type; + } + + /** + * Optional. The desired disk type (e.g. 'pd-standard', 'pd-ssd' or + * 'pd-balanced') for nodes in the node pool. + * Initiates an upgrade operation that migrates the nodes in the + * node pool to the specified disk type. + * + * Generated from protobuf field string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDiskType($var) + { + GPBUtil::checkString($var, True); + $this->disk_type = $var; + + return $this; + } + + /** + * Optional. The desired disk size for nodes in the node pool specified in GB. + * The smallest allowed disk size is 10GB. + * Initiates an upgrade operation that migrates the nodes in the + * node pool to the specified disk size. + * + * Generated from protobuf field int64 disk_size_gb = 38 [(.google.api.field_behavior) = OPTIONAL]; + * @return int|string + */ + public function getDiskSizeGb() + { + return $this->disk_size_gb; + } + + /** + * Optional. The desired disk size for nodes in the node pool specified in GB. + * The smallest allowed disk size is 10GB. + * Initiates an upgrade operation that migrates the nodes in the + * node pool to the specified disk size. + * + * Generated from protobuf field int64 disk_size_gb = 38 [(.google.api.field_behavior) = OPTIONAL]; + * @param int|string $var + * @return $this + */ + public function setDiskSizeGb($var) + { + GPBUtil::checkInt64($var); + $this->disk_size_gb = $var; + + return $this; + } + + /** + * Desired resource manager tag keys and values to be attached to the nodes + * for managing Compute Engine firewalls using Network Firewall Policies. + * Existing tags will be replaced with new values. + * + * Generated from protobuf field .google.container.v1.ResourceManagerTags resource_manager_tags = 39; + * @return \Google\Cloud\Container\V1\ResourceManagerTags|null + */ + public function getResourceManagerTags() + { + return $this->resource_manager_tags; + } + + public function hasResourceManagerTags() + { + return isset($this->resource_manager_tags); + } + + public function clearResourceManagerTags() + { + unset($this->resource_manager_tags); + } + + /** + * Desired resource manager tag keys and values to be attached to the nodes + * for managing Compute Engine firewalls using Network Firewall Policies. + * Existing tags will be replaced with new values. + * + * Generated from protobuf field .google.container.v1.ResourceManagerTags resource_manager_tags = 39; + * @param \Google\Cloud\Container\V1\ResourceManagerTags $var + * @return $this + */ + public function setResourceManagerTags($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ResourceManagerTags::class); + $this->resource_manager_tags = $var; + + return $this; + } + + /** + * Specifies the configuration of queued provisioning. + * + * Generated from protobuf field .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 42; + * @return \Google\Cloud\Container\V1\NodePool\QueuedProvisioning|null + */ + public function getQueuedProvisioning() + { + return $this->queued_provisioning; + } + + public function hasQueuedProvisioning() + { + return isset($this->queued_provisioning); + } + + public function clearQueuedProvisioning() + { + unset($this->queued_provisioning); + } + + /** + * Specifies the configuration of queued provisioning. + * + * Generated from protobuf field .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 42; + * @param \Google\Cloud\Container\V1\NodePool\QueuedProvisioning $var + * @return $this + */ + public function setQueuedProvisioning($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool\QueuedProvisioning::class); + $this->queued_provisioning = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeAvailableEvent.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeAvailableEvent.php new file mode 100644 index 000000000000..fa7673b4da19 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeAvailableEvent.php @@ -0,0 +1,188 @@ +google.container.v1.UpgradeAvailableEvent + */ +class UpgradeAvailableEvent extends \Google\Protobuf\Internal\Message +{ + /** + * The release version available for upgrade. + * + * Generated from protobuf field string version = 1; + */ + protected $version = ''; + /** + * The resource type of the release version. + * + * Generated from protobuf field .google.container.v1.UpgradeResourceType resource_type = 2; + */ + protected $resource_type = 0; + /** + * The release channel of the version. If empty, it means a non-channel + * release. + * + * Generated from protobuf field .google.container.v1.ReleaseChannel release_channel = 3; + */ + protected $release_channel = null; + /** + * Optional relative path to the resource. For example, the relative path of + * the node pool. + * + * Generated from protobuf field string resource = 4; + */ + protected $resource = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $version + * The release version available for upgrade. + * @type int $resource_type + * The resource type of the release version. + * @type \Google\Cloud\Container\V1\ReleaseChannel $release_channel + * The release channel of the version. If empty, it means a non-channel + * release. + * @type string $resource + * Optional relative path to the resource. For example, the relative path of + * the node pool. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The release version available for upgrade. + * + * Generated from protobuf field string version = 1; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * The release version available for upgrade. + * + * Generated from protobuf field string version = 1; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + + /** + * The resource type of the release version. + * + * Generated from protobuf field .google.container.v1.UpgradeResourceType resource_type = 2; + * @return int + */ + public function getResourceType() + { + return $this->resource_type; + } + + /** + * The resource type of the release version. + * + * Generated from protobuf field .google.container.v1.UpgradeResourceType resource_type = 2; + * @param int $var + * @return $this + */ + public function setResourceType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\UpgradeResourceType::class); + $this->resource_type = $var; + + return $this; + } + + /** + * The release channel of the version. If empty, it means a non-channel + * release. + * + * Generated from protobuf field .google.container.v1.ReleaseChannel release_channel = 3; + * @return \Google\Cloud\Container\V1\ReleaseChannel|null + */ + public function getReleaseChannel() + { + return $this->release_channel; + } + + public function hasReleaseChannel() + { + return isset($this->release_channel); + } + + public function clearReleaseChannel() + { + unset($this->release_channel); + } + + /** + * The release channel of the version. If empty, it means a non-channel + * release. + * + * Generated from protobuf field .google.container.v1.ReleaseChannel release_channel = 3; + * @param \Google\Cloud\Container\V1\ReleaseChannel $var + * @return $this + */ + public function setReleaseChannel($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ReleaseChannel::class); + $this->release_channel = $var; + + return $this; + } + + /** + * Optional relative path to the resource. For example, the relative path of + * the node pool. + * + * Generated from protobuf field string resource = 4; + * @return string + */ + public function getResource() + { + return $this->resource; + } + + /** + * Optional relative path to the resource. For example, the relative path of + * the node pool. + * + * Generated from protobuf field string resource = 4; + * @param string $var + * @return $this + */ + public function setResource($var) + { + GPBUtil::checkString($var, True); + $this->resource = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeEvent.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeEvent.php new file mode 100644 index 000000000000..373792fc7920 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeEvent.php @@ -0,0 +1,252 @@ +google.container.v1.UpgradeEvent + */ +class UpgradeEvent extends \Google\Protobuf\Internal\Message +{ + /** + * The resource type that is upgrading. + * + * Generated from protobuf field .google.container.v1.UpgradeResourceType resource_type = 1; + */ + protected $resource_type = 0; + /** + * The operation associated with this upgrade. + * + * Generated from protobuf field string operation = 2; + */ + protected $operation = ''; + /** + * The time when the operation was started. + * + * Generated from protobuf field .google.protobuf.Timestamp operation_start_time = 3; + */ + protected $operation_start_time = null; + /** + * The current version before the upgrade. + * + * Generated from protobuf field string current_version = 4; + */ + protected $current_version = ''; + /** + * The target version for the upgrade. + * + * Generated from protobuf field string target_version = 5; + */ + protected $target_version = ''; + /** + * Optional relative path to the resource. For example in node pool upgrades, + * the relative path of the node pool. + * + * Generated from protobuf field string resource = 6; + */ + protected $resource = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $resource_type + * The resource type that is upgrading. + * @type string $operation + * The operation associated with this upgrade. + * @type \Google\Protobuf\Timestamp $operation_start_time + * The time when the operation was started. + * @type string $current_version + * The current version before the upgrade. + * @type string $target_version + * The target version for the upgrade. + * @type string $resource + * Optional relative path to the resource. For example in node pool upgrades, + * the relative path of the node pool. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The resource type that is upgrading. + * + * Generated from protobuf field .google.container.v1.UpgradeResourceType resource_type = 1; + * @return int + */ + public function getResourceType() + { + return $this->resource_type; + } + + /** + * The resource type that is upgrading. + * + * Generated from protobuf field .google.container.v1.UpgradeResourceType resource_type = 1; + * @param int $var + * @return $this + */ + public function setResourceType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\UpgradeResourceType::class); + $this->resource_type = $var; + + return $this; + } + + /** + * The operation associated with this upgrade. + * + * Generated from protobuf field string operation = 2; + * @return string + */ + public function getOperation() + { + return $this->operation; + } + + /** + * The operation associated with this upgrade. + * + * Generated from protobuf field string operation = 2; + * @param string $var + * @return $this + */ + public function setOperation($var) + { + GPBUtil::checkString($var, True); + $this->operation = $var; + + return $this; + } + + /** + * The time when the operation was started. + * + * Generated from protobuf field .google.protobuf.Timestamp operation_start_time = 3; + * @return \Google\Protobuf\Timestamp|null + */ + public function getOperationStartTime() + { + return $this->operation_start_time; + } + + public function hasOperationStartTime() + { + return isset($this->operation_start_time); + } + + public function clearOperationStartTime() + { + unset($this->operation_start_time); + } + + /** + * The time when the operation was started. + * + * Generated from protobuf field .google.protobuf.Timestamp operation_start_time = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setOperationStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->operation_start_time = $var; + + return $this; + } + + /** + * The current version before the upgrade. + * + * Generated from protobuf field string current_version = 4; + * @return string + */ + public function getCurrentVersion() + { + return $this->current_version; + } + + /** + * The current version before the upgrade. + * + * Generated from protobuf field string current_version = 4; + * @param string $var + * @return $this + */ + public function setCurrentVersion($var) + { + GPBUtil::checkString($var, True); + $this->current_version = $var; + + return $this; + } + + /** + * The target version for the upgrade. + * + * Generated from protobuf field string target_version = 5; + * @return string + */ + public function getTargetVersion() + { + return $this->target_version; + } + + /** + * The target version for the upgrade. + * + * Generated from protobuf field string target_version = 5; + * @param string $var + * @return $this + */ + public function setTargetVersion($var) + { + GPBUtil::checkString($var, True); + $this->target_version = $var; + + return $this; + } + + /** + * Optional relative path to the resource. For example in node pool upgrades, + * the relative path of the node pool. + * + * Generated from protobuf field string resource = 6; + * @return string + */ + public function getResource() + { + return $this->resource; + } + + /** + * Optional relative path to the resource. For example in node pool upgrades, + * the relative path of the node pool. + * + * Generated from protobuf field string resource = 6; + * @param string $var + * @return $this + */ + public function setResource($var) + { + GPBUtil::checkString($var, True); + $this->resource = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeResourceType.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeResourceType.php new file mode 100644 index 000000000000..53f1f2370b97 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeResourceType.php @@ -0,0 +1,62 @@ +google.container.v1.UpgradeResourceType + */ +class UpgradeResourceType +{ + /** + * Default value. This shouldn't be used. + * + * Generated from protobuf enum UPGRADE_RESOURCE_TYPE_UNSPECIFIED = 0; + */ + const UPGRADE_RESOURCE_TYPE_UNSPECIFIED = 0; + /** + * Master / control plane + * + * Generated from protobuf enum MASTER = 1; + */ + const MASTER = 1; + /** + * Node pool + * + * Generated from protobuf enum NODE_POOL = 2; + */ + const NODE_POOL = 2; + + private static $valueToName = [ + self::UPGRADE_RESOURCE_TYPE_UNSPECIFIED => 'UPGRADE_RESOURCE_TYPE_UNSPECIFIED', + self::MASTER => 'MASTER', + self::NODE_POOL => 'NODE_POOL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetwork.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetwork.php new file mode 100644 index 000000000000..64579e77c1be --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetwork.php @@ -0,0 +1,224 @@ +google.container.v1.UsableSubnetwork + */ +class UsableSubnetwork extends \Google\Protobuf\Internal\Message +{ + /** + * Subnetwork Name. + * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet + * + * Generated from protobuf field string subnetwork = 1; + */ + protected $subnetwork = ''; + /** + * Network Name. + * Example: projects/my-project/global/networks/my-network + * + * Generated from protobuf field string network = 2; + */ + protected $network = ''; + /** + * The range of internal addresses that are owned by this subnetwork. + * + * Generated from protobuf field string ip_cidr_range = 3; + */ + protected $ip_cidr_range = ''; + /** + * Secondary IP ranges. + * + * Generated from protobuf field repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + private $secondary_ip_ranges; + /** + * A human readable status message representing the reasons for cases where + * the caller cannot use the secondary ranges under the subnet. For example if + * the secondary_ip_ranges is empty due to a permission issue, an insufficient + * permission message will be given by status_message. + * + * Generated from protobuf field string status_message = 5; + */ + protected $status_message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $subnetwork + * Subnetwork Name. + * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet + * @type string $network + * Network Name. + * Example: projects/my-project/global/networks/my-network + * @type string $ip_cidr_range + * The range of internal addresses that are owned by this subnetwork. + * @type array<\Google\Cloud\Container\V1\UsableSubnetworkSecondaryRange>|\Google\Protobuf\Internal\RepeatedField $secondary_ip_ranges + * Secondary IP ranges. + * @type string $status_message + * A human readable status message representing the reasons for cases where + * the caller cannot use the secondary ranges under the subnet. For example if + * the secondary_ip_ranges is empty due to a permission issue, an insufficient + * permission message will be given by status_message. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Subnetwork Name. + * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet + * + * Generated from protobuf field string subnetwork = 1; + * @return string + */ + public function getSubnetwork() + { + return $this->subnetwork; + } + + /** + * Subnetwork Name. + * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet + * + * Generated from protobuf field string subnetwork = 1; + * @param string $var + * @return $this + */ + public function setSubnetwork($var) + { + GPBUtil::checkString($var, True); + $this->subnetwork = $var; + + return $this; + } + + /** + * Network Name. + * Example: projects/my-project/global/networks/my-network + * + * Generated from protobuf field string network = 2; + * @return string + */ + public function getNetwork() + { + return $this->network; + } + + /** + * Network Name. + * Example: projects/my-project/global/networks/my-network + * + * Generated from protobuf field string network = 2; + * @param string $var + * @return $this + */ + public function setNetwork($var) + { + GPBUtil::checkString($var, True); + $this->network = $var; + + return $this; + } + + /** + * The range of internal addresses that are owned by this subnetwork. + * + * Generated from protobuf field string ip_cidr_range = 3; + * @return string + */ + public function getIpCidrRange() + { + return $this->ip_cidr_range; + } + + /** + * The range of internal addresses that are owned by this subnetwork. + * + * Generated from protobuf field string ip_cidr_range = 3; + * @param string $var + * @return $this + */ + public function setIpCidrRange($var) + { + GPBUtil::checkString($var, True); + $this->ip_cidr_range = $var; + + return $this; + } + + /** + * Secondary IP ranges. + * + * Generated from protobuf field repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSecondaryIpRanges() + { + return $this->secondary_ip_ranges; + } + + /** + * Secondary IP ranges. + * + * Generated from protobuf field repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * @param array<\Google\Cloud\Container\V1\UsableSubnetworkSecondaryRange>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSecondaryIpRanges($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\UsableSubnetworkSecondaryRange::class); + $this->secondary_ip_ranges = $arr; + + return $this; + } + + /** + * A human readable status message representing the reasons for cases where + * the caller cannot use the secondary ranges under the subnet. For example if + * the secondary_ip_ranges is empty due to a permission issue, an insufficient + * permission message will be given by status_message. + * + * Generated from protobuf field string status_message = 5; + * @return string + */ + public function getStatusMessage() + { + return $this->status_message; + } + + /** + * A human readable status message representing the reasons for cases where + * the caller cannot use the secondary ranges under the subnet. For example if + * the secondary_ip_ranges is empty due to a permission issue, an insufficient + * permission message will be given by status_message. + * + * Generated from protobuf field string status_message = 5; + * @param string $var + * @return $this + */ + public function setStatusMessage($var) + { + GPBUtil::checkString($var, True); + $this->status_message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange.php new file mode 100644 index 000000000000..d66bb1a9839e --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange.php @@ -0,0 +1,139 @@ +google.container.v1.UsableSubnetworkSecondaryRange + */ +class UsableSubnetworkSecondaryRange extends \Google\Protobuf\Internal\Message +{ + /** + * The name associated with this subnetwork secondary range, used when adding + * an alias IP range to a VM instance. + * + * Generated from protobuf field string range_name = 1; + */ + protected $range_name = ''; + /** + * The range of IP addresses belonging to this subnetwork secondary range. + * + * Generated from protobuf field string ip_cidr_range = 2; + */ + protected $ip_cidr_range = ''; + /** + * This field is to determine the status of the secondary range programmably. + * + * Generated from protobuf field .google.container.v1.UsableSubnetworkSecondaryRange.Status status = 3; + */ + protected $status = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $range_name + * The name associated with this subnetwork secondary range, used when adding + * an alias IP range to a VM instance. + * @type string $ip_cidr_range + * The range of IP addresses belonging to this subnetwork secondary range. + * @type int $status + * This field is to determine the status of the secondary range programmably. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The name associated with this subnetwork secondary range, used when adding + * an alias IP range to a VM instance. + * + * Generated from protobuf field string range_name = 1; + * @return string + */ + public function getRangeName() + { + return $this->range_name; + } + + /** + * The name associated with this subnetwork secondary range, used when adding + * an alias IP range to a VM instance. + * + * Generated from protobuf field string range_name = 1; + * @param string $var + * @return $this + */ + public function setRangeName($var) + { + GPBUtil::checkString($var, True); + $this->range_name = $var; + + return $this; + } + + /** + * The range of IP addresses belonging to this subnetwork secondary range. + * + * Generated from protobuf field string ip_cidr_range = 2; + * @return string + */ + public function getIpCidrRange() + { + return $this->ip_cidr_range; + } + + /** + * The range of IP addresses belonging to this subnetwork secondary range. + * + * Generated from protobuf field string ip_cidr_range = 2; + * @param string $var + * @return $this + */ + public function setIpCidrRange($var) + { + GPBUtil::checkString($var, True); + $this->ip_cidr_range = $var; + + return $this; + } + + /** + * This field is to determine the status of the secondary range programmably. + * + * Generated from protobuf field .google.container.v1.UsableSubnetworkSecondaryRange.Status status = 3; + * @return int + */ + public function getStatus() + { + return $this->status; + } + + /** + * This field is to determine the status of the secondary range programmably. + * + * Generated from protobuf field .google.container.v1.UsableSubnetworkSecondaryRange.Status status = 3; + * @param int $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\UsableSubnetworkSecondaryRange\Status::class); + $this->status = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange/Status.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange/Status.php new file mode 100644 index 000000000000..6c4d490a1015 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange/Status.php @@ -0,0 +1,83 @@ +google.container.v1.UsableSubnetworkSecondaryRange.Status + */ +class Status +{ + /** + * UNKNOWN is the zero value of the Status enum. It's not a valid status. + * + * Generated from protobuf enum UNKNOWN = 0; + */ + const UNKNOWN = 0; + /** + * UNUSED denotes that this range is unclaimed by any cluster. + * + * Generated from protobuf enum UNUSED = 1; + */ + const UNUSED = 1; + /** + * IN_USE_SERVICE denotes that this range is claimed by cluster(s) for + * services. User-managed services range can be shared between clusters + * within the same subnetwork. + * + * Generated from protobuf enum IN_USE_SERVICE = 2; + */ + const IN_USE_SERVICE = 2; + /** + * IN_USE_SHAREABLE_POD denotes this range was created by the network admin + * and is currently claimed by a cluster for pods. It can only be used by + * other clusters as a pod range. + * + * Generated from protobuf enum IN_USE_SHAREABLE_POD = 3; + */ + const IN_USE_SHAREABLE_POD = 3; + /** + * IN_USE_MANAGED_POD denotes this range was created by GKE and is claimed + * for pods. It cannot be used for other clusters. + * + * Generated from protobuf enum IN_USE_MANAGED_POD = 4; + */ + const IN_USE_MANAGED_POD = 4; + + private static $valueToName = [ + self::UNKNOWN => 'UNKNOWN', + self::UNUSED => 'UNUSED', + self::IN_USE_SERVICE => 'IN_USE_SERVICE', + self::IN_USE_SHAREABLE_POD => 'IN_USE_SHAREABLE_POD', + self::IN_USE_MANAGED_POD => 'IN_USE_MANAGED_POD', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Status::class, \Google\Cloud\Container\V1\UsableSubnetworkSecondaryRange_Status::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/VerticalPodAutoscaling.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/VerticalPodAutoscaling.php new file mode 100644 index 000000000000..2c29d49c252a --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/VerticalPodAutoscaling.php @@ -0,0 +1,69 @@ +google.container.v1.VerticalPodAutoscaling + */ +class VerticalPodAutoscaling extends \Google\Protobuf\Internal\Message +{ + /** + * Enables vertical pod autoscaling. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Enables vertical pod autoscaling. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Enables vertical pod autoscaling. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Enables vertical pod autoscaling. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/VirtualNIC.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/VirtualNIC.php new file mode 100644 index 000000000000..bc2237dfd651 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/VirtualNIC.php @@ -0,0 +1,67 @@ +google.container.v1.VirtualNIC + */ +class VirtualNIC extends \Google\Protobuf\Internal\Message +{ + /** + * Whether gVNIC features are enabled in the node pool. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Whether gVNIC features are enabled in the node pool. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether gVNIC features are enabled in the node pool. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Whether gVNIC features are enabled in the node pool. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig.php new file mode 100644 index 000000000000..33744a598dae --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig.php @@ -0,0 +1,69 @@ +google.container.v1.WindowsNodeConfig + */ +class WindowsNodeConfig extends \Google\Protobuf\Internal\Message +{ + /** + * OSVersion specifies the Windows node config to be used on the node + * + * Generated from protobuf field .google.container.v1.WindowsNodeConfig.OSVersion os_version = 1; + */ + protected $os_version = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $os_version + * OSVersion specifies the Windows node config to be used on the node + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * OSVersion specifies the Windows node config to be used on the node + * + * Generated from protobuf field .google.container.v1.WindowsNodeConfig.OSVersion os_version = 1; + * @return int + */ + public function getOsVersion() + { + return $this->os_version; + } + + /** + * OSVersion specifies the Windows node config to be used on the node + * + * Generated from protobuf field .google.container.v1.WindowsNodeConfig.OSVersion os_version = 1; + * @param int $var + * @return $this + */ + public function setOsVersion($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\WindowsNodeConfig\OSVersion::class); + $this->os_version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig/OSVersion.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig/OSVersion.php new file mode 100644 index 000000000000..3e27aee4f517 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig/OSVersion.php @@ -0,0 +1,64 @@ +google.container.v1.WindowsNodeConfig.OSVersion + */ +class OSVersion +{ + /** + * When OSVersion is not specified + * + * Generated from protobuf enum OS_VERSION_UNSPECIFIED = 0; + */ + const OS_VERSION_UNSPECIFIED = 0; + /** + * LTSC2019 specifies to use LTSC2019 as the Windows Servercore Base Image + * + * Generated from protobuf enum OS_VERSION_LTSC2019 = 1; + */ + const OS_VERSION_LTSC2019 = 1; + /** + * LTSC2022 specifies to use LTSC2022 as the Windows Servercore Base Image + * + * Generated from protobuf enum OS_VERSION_LTSC2022 = 2; + */ + const OS_VERSION_LTSC2022 = 2; + + private static $valueToName = [ + self::OS_VERSION_UNSPECIFIED => 'OS_VERSION_UNSPECIFIED', + self::OS_VERSION_LTSC2019 => 'OS_VERSION_LTSC2019', + self::OS_VERSION_LTSC2022 => 'OS_VERSION_LTSC2022', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(OSVersion::class, \Google\Cloud\Container\V1\WindowsNodeConfig_OSVersion::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadIdentityConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadIdentityConfig.php new file mode 100644 index 000000000000..be6d013232be --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadIdentityConfig.php @@ -0,0 +1,68 @@ +google.container.v1.WorkloadIdentityConfig + */ +class WorkloadIdentityConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The workload pool to attach all Kubernetes service accounts to. + * + * Generated from protobuf field string workload_pool = 2; + */ + protected $workload_pool = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $workload_pool + * The workload pool to attach all Kubernetes service accounts to. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The workload pool to attach all Kubernetes service accounts to. + * + * Generated from protobuf field string workload_pool = 2; + * @return string + */ + public function getWorkloadPool() + { + return $this->workload_pool; + } + + /** + * The workload pool to attach all Kubernetes service accounts to. + * + * Generated from protobuf field string workload_pool = 2; + * @param string $var + * @return $this + */ + public function setWorkloadPool($var) + { + GPBUtil::checkString($var, True); + $this->workload_pool = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadMetadataConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadMetadataConfig.php new file mode 100644 index 000000000000..1f0ba80a934b --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadMetadataConfig.php @@ -0,0 +1,72 @@ +google.container.v1.WorkloadMetadataConfig + */ +class WorkloadMetadataConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Mode is the configuration for how to expose metadata to workloads running + * on the node pool. + * + * Generated from protobuf field .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; + */ + protected $mode = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $mode + * Mode is the configuration for how to expose metadata to workloads running + * on the node pool. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Mode is the configuration for how to expose metadata to workloads running + * on the node pool. + * + * Generated from protobuf field .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; + * @return int + */ + public function getMode() + { + return $this->mode; + } + + /** + * Mode is the configuration for how to expose metadata to workloads running + * on the node pool. + * + * Generated from protobuf field .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; + * @param int $var + * @return $this + */ + public function setMode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\WorkloadMetadataConfig\Mode::class); + $this->mode = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadMetadataConfig/Mode.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadMetadataConfig/Mode.php new file mode 100644 index 000000000000..60affd9637f5 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadMetadataConfig/Mode.php @@ -0,0 +1,69 @@ +google.container.v1.WorkloadMetadataConfig.Mode + */ +class Mode +{ + /** + * Not set. + * + * Generated from protobuf enum MODE_UNSPECIFIED = 0; + */ + const MODE_UNSPECIFIED = 0; + /** + * Expose all Compute Engine metadata to pods. + * + * Generated from protobuf enum GCE_METADATA = 1; + */ + const GCE_METADATA = 1; + /** + * Run the GKE Metadata Server on this node. The GKE Metadata Server exposes + * a metadata API to workloads that is compatible with the V1 Compute + * Metadata APIs exposed by the Compute Engine and App Engine Metadata + * Servers. This feature can only be enabled if Workload Identity is enabled + * at the cluster level. + * + * Generated from protobuf enum GKE_METADATA = 2; + */ + const GKE_METADATA = 2; + + private static $valueToName = [ + self::MODE_UNSPECIFIED => 'MODE_UNSPECIFIED', + self::GCE_METADATA => 'GCE_METADATA', + self::GKE_METADATA => 'GKE_METADATA', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Mode::class, \Google\Cloud\Container\V1\WorkloadMetadataConfig_Mode::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadPolicyConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadPolicyConfig.php new file mode 100644 index 000000000000..d00c35e58b5c --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadPolicyConfig.php @@ -0,0 +1,78 @@ +google.container.v1.WorkloadPolicyConfig + */ +class WorkloadPolicyConfig extends \Google\Protobuf\Internal\Message +{ + /** + * If true, workloads can use NET_ADMIN capability. + * + * Generated from protobuf field optional bool allow_net_admin = 1; + */ + protected $allow_net_admin = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $allow_net_admin + * If true, workloads can use NET_ADMIN capability. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * If true, workloads can use NET_ADMIN capability. + * + * Generated from protobuf field optional bool allow_net_admin = 1; + * @return bool + */ + public function getAllowNetAdmin() + { + return isset($this->allow_net_admin) ? $this->allow_net_admin : false; + } + + public function hasAllowNetAdmin() + { + return isset($this->allow_net_admin); + } + + public function clearAllowNetAdmin() + { + unset($this->allow_net_admin); + } + + /** + * If true, workloads can use NET_ADMIN capability. + * + * Generated from protobuf field optional bool allow_net_admin = 1; + * @param bool $var + * @return $this + */ + public function setAllowNetAdmin($var) + { + GPBUtil::checkBool($var); + $this->allow_net_admin = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/cancel_operation.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/cancel_operation.php new file mode 100644 index 000000000000..3a7332bcc124 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/cancel_operation.php @@ -0,0 +1,55 @@ +cancelOperation($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_CancelOperation_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/check_autopilot_compatibility.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/check_autopilot_compatibility.php new file mode 100644 index 000000000000..929cf42dfc00 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/check_autopilot_compatibility.php @@ -0,0 +1,58 @@ +checkAutopilotCompatibility($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_CheckAutopilotCompatibility_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_ip_rotation.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_ip_rotation.php new file mode 100644 index 000000000000..daba7a5d92c0 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_ip_rotation.php @@ -0,0 +1,57 @@ +completeIPRotation($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_CompleteIPRotation_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_node_pool_upgrade.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_node_pool_upgrade.php new file mode 100644 index 000000000000..86a24849c686 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_node_pool_upgrade.php @@ -0,0 +1,56 @@ +completeNodePoolUpgrade($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_CompleteNodePoolUpgrade_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_cluster.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_cluster.php new file mode 100644 index 000000000000..792f9fd5de79 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_cluster.php @@ -0,0 +1,73 @@ +setCluster($cluster); + + // Call the API and handle any network failures. + try { + /** @var Operation $response */ + $response = $clusterManagerClient->createCluster($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_CreateCluster_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_node_pool.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_node_pool.php new file mode 100644 index 000000000000..f957fb2a1e84 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_node_pool.php @@ -0,0 +1,60 @@ +setNodePool($nodePool); + + // Call the API and handle any network failures. + try { + /** @var Operation $response */ + $response = $clusterManagerClient->createNodePool($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_CreateNodePool_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_cluster.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_cluster.php new file mode 100644 index 000000000000..dcee905c5fe1 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_cluster.php @@ -0,0 +1,65 @@ +deleteCluster($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_DeleteCluster_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_node_pool.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_node_pool.php new file mode 100644 index 000000000000..07c57bd330d9 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_node_pool.php @@ -0,0 +1,57 @@ +deleteNodePool($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_DeleteNodePool_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_cluster.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_cluster.php new file mode 100644 index 000000000000..c25939d2a545 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_cluster.php @@ -0,0 +1,57 @@ +getCluster($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_GetCluster_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_json_web_keys.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_json_web_keys.php new file mode 100644 index 000000000000..cc6f61b0264a --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_json_web_keys.php @@ -0,0 +1,58 @@ +getJSONWebKeys($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_GetJSONWebKeys_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_node_pool.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_node_pool.php new file mode 100644 index 000000000000..8e8e0c6b20db --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_node_pool.php @@ -0,0 +1,57 @@ +getNodePool($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_GetNodePool_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_operation.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_operation.php new file mode 100644 index 000000000000..97228030f3af --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_operation.php @@ -0,0 +1,57 @@ +getOperation($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_GetOperation_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_server_config.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_server_config.php new file mode 100644 index 000000000000..8aee5ac8a1e9 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_server_config.php @@ -0,0 +1,57 @@ +getServerConfig($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_GetServerConfig_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_clusters.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_clusters.php new file mode 100644 index 000000000000..744c312fbc0c --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_clusters.php @@ -0,0 +1,58 @@ +listClusters($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_ListClusters_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_node_pools.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_node_pools.php new file mode 100644 index 000000000000..ef5ce762fec4 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_node_pools.php @@ -0,0 +1,57 @@ +listNodePools($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_ListNodePools_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_operations.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_operations.php new file mode 100644 index 000000000000..ec8f892990de --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_operations.php @@ -0,0 +1,57 @@ +listOperations($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_ListOperations_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_usable_subnetworks.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_usable_subnetworks.php new file mode 100644 index 000000000000..123676616299 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_usable_subnetworks.php @@ -0,0 +1,62 @@ +listUsableSubnetworks($request); + + /** @var UsableSubnetwork $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_ListUsableSubnetworks_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/rollback_node_pool_upgrade.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/rollback_node_pool_upgrade.php new file mode 100644 index 000000000000..60fd5dfb1524 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/rollback_node_pool_upgrade.php @@ -0,0 +1,58 @@ +rollbackNodePoolUpgrade($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_RollbackNodePoolUpgrade_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_addons_config.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_addons_config.php new file mode 100644 index 000000000000..c2a610e4fdc2 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_addons_config.php @@ -0,0 +1,60 @@ +setAddonsConfig($addonsConfig); + + // Call the API and handle any network failures. + try { + /** @var Operation $response */ + $response = $clusterManagerClient->setAddonsConfig($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_SetAddonsConfig_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_labels.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_labels.php new file mode 100644 index 000000000000..64b779df0263 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_labels.php @@ -0,0 +1,77 @@ +setResourceLabels($resourceLabels) + ->setLabelFingerprint($labelFingerprint); + + // Call the API and handle any network failures. + try { + /** @var Operation $response */ + $response = $clusterManagerClient->setLabels($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $labelFingerprint = '[LABEL_FINGERPRINT]'; + + set_labels_sample($labelFingerprint); +} +// [END container_v1_generated_ClusterManager_SetLabels_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_legacy_abac.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_legacy_abac.php new file mode 100644 index 000000000000..63f3c3c5be5d --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_legacy_abac.php @@ -0,0 +1,70 @@ +setEnabled($enabled); + + // Call the API and handle any network failures. + try { + /** @var Operation $response */ + $response = $clusterManagerClient->setLegacyAbac($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $enabled = false; + + set_legacy_abac_sample($enabled); +} +// [END container_v1_generated_ClusterManager_SetLegacyAbac_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_locations.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_locations.php new file mode 100644 index 000000000000..61cc473733c8 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_locations.php @@ -0,0 +1,80 @@ +setLocations($locations); + + // Call the API and handle any network failures. + try { + /** @var Operation $response */ + $response = $clusterManagerClient->setLocations($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $locationsElement = '[LOCATIONS]'; + + set_locations_sample($locationsElement); +} +// [END container_v1_generated_ClusterManager_SetLocations_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_logging_service.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_logging_service.php new file mode 100644 index 000000000000..ef16b6e056c0 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_logging_service.php @@ -0,0 +1,80 @@ +setLoggingService($loggingService); + + // Call the API and handle any network failures. + try { + /** @var Operation $response */ + $response = $clusterManagerClient->setLoggingService($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $loggingService = '[LOGGING_SERVICE]'; + + set_logging_service_sample($loggingService); +} +// [END container_v1_generated_ClusterManager_SetLoggingService_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_maintenance_policy.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_maintenance_policy.php new file mode 100644 index 000000000000..4900bcc9ceda --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_maintenance_policy.php @@ -0,0 +1,82 @@ +setProjectId($projectId) + ->setZone($zone) + ->setClusterId($clusterId) + ->setMaintenancePolicy($maintenancePolicy); + + // Call the API and handle any network failures. + try { + /** @var Operation $response */ + $response = $clusterManagerClient->setMaintenancePolicy($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $projectId = '[PROJECT_ID]'; + $zone = '[ZONE]'; + $clusterId = '[CLUSTER_ID]'; + + set_maintenance_policy_sample($projectId, $zone, $clusterId); +} +// [END container_v1_generated_ClusterManager_SetMaintenancePolicy_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_master_auth.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_master_auth.php new file mode 100644 index 000000000000..942ffe4b3591 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_master_auth.php @@ -0,0 +1,76 @@ +setAction($action) + ->setUpdate($update); + + // Call the API and handle any network failures. + try { + /** @var Operation $response */ + $response = $clusterManagerClient->setMasterAuth($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $action = Action::UNKNOWN; + + set_master_auth_sample($action); +} +// [END container_v1_generated_ClusterManager_SetMasterAuth_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_monitoring_service.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_monitoring_service.php new file mode 100644 index 000000000000..53c5072bc77a --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_monitoring_service.php @@ -0,0 +1,80 @@ +setMonitoringService($monitoringService); + + // Call the API and handle any network failures. + try { + /** @var Operation $response */ + $response = $clusterManagerClient->setMonitoringService($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $monitoringService = '[MONITORING_SERVICE]'; + + set_monitoring_service_sample($monitoringService); +} +// [END container_v1_generated_ClusterManager_SetMonitoringService_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_network_policy.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_network_policy.php new file mode 100644 index 000000000000..201e0a8b78e7 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_network_policy.php @@ -0,0 +1,60 @@ +setNetworkPolicy($networkPolicy); + + // Call the API and handle any network failures. + try { + /** @var Operation $response */ + $response = $clusterManagerClient->setNetworkPolicy($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_SetNetworkPolicy_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_autoscaling.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_autoscaling.php new file mode 100644 index 000000000000..5ddc38f258af --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_autoscaling.php @@ -0,0 +1,60 @@ +setAutoscaling($autoscaling); + + // Call the API and handle any network failures. + try { + /** @var Operation $response */ + $response = $clusterManagerClient->setNodePoolAutoscaling($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_SetNodePoolAutoscaling_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_management.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_management.php new file mode 100644 index 000000000000..6697ec611f96 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_management.php @@ -0,0 +1,60 @@ +setManagement($management); + + // Call the API and handle any network failures. + try { + /** @var Operation $response */ + $response = $clusterManagerClient->setNodePoolManagement($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_SetNodePoolManagement_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_size.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_size.php new file mode 100644 index 000000000000..a6f3f5e9913a --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_size.php @@ -0,0 +1,72 @@ +setNodeCount($nodeCount); + + // Call the API and handle any network failures. + try { + /** @var Operation $response */ + $response = $clusterManagerClient->setNodePoolSize($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $nodeCount = 0; + + set_node_pool_size_sample($nodeCount); +} +// [END container_v1_generated_ClusterManager_SetNodePoolSize_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/start_ip_rotation.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/start_ip_rotation.php new file mode 100644 index 000000000000..fa35440e6b4a --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/start_ip_rotation.php @@ -0,0 +1,57 @@ +startIPRotation($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_StartIPRotation_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_cluster.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_cluster.php new file mode 100644 index 000000000000..ba1c330760e7 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_cluster.php @@ -0,0 +1,60 @@ +setUpdate($update); + + // Call the API and handle any network failures. + try { + /** @var Operation $response */ + $response = $clusterManagerClient->updateCluster($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_UpdateCluster_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_master.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_master.php new file mode 100644 index 000000000000..7c8e440c0254 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_master.php @@ -0,0 +1,79 @@ +setMasterVersion($masterVersion); + + // Call the API and handle any network failures. + try { + /** @var Operation $response */ + $response = $clusterManagerClient->updateMaster($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $masterVersion = '[MASTER_VERSION]'; + + update_master_sample($masterVersion); +} +// [END container_v1_generated_ClusterManager_UpdateMaster_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_node_pool.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_node_pool.php new file mode 100644 index 000000000000..99e1618edc1c --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_node_pool.php @@ -0,0 +1,85 @@ +setNodeVersion($nodeVersion) + ->setImageType($imageType); + + // Call the API and handle any network failures. + try { + /** @var Operation $response */ + $response = $clusterManagerClient->updateNodePool($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $nodeVersion = '[NODE_VERSION]'; + $imageType = '[IMAGE_TYPE]'; + + update_node_pool_sample($nodeVersion, $imageType); +} +// [END container_v1_generated_ClusterManager_UpdateNodePool_sync] diff --git a/owl-bot-staging/Container/v1/src/V1/Client/ClusterManagerClient.php b/owl-bot-staging/Container/v1/src/V1/Client/ClusterManagerClient.php new file mode 100644 index 000000000000..7acc789e79f4 --- /dev/null +++ b/owl-bot-staging/Container/v1/src/V1/Client/ClusterManagerClient.php @@ -0,0 +1,1205 @@ + self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/cluster_manager_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/cluster_manager_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/cluster_manager_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/cluster_manager_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a topic + * resource. + * + * @param string $project + * @param string $topic + * + * @return string The formatted topic resource. + */ + public static function topicName(string $project, string $topic): string + { + return self::getPathTemplate('topic')->render([ + 'project' => $project, + 'topic' => $topic, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - topic: projects/{project}/topics/{topic} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'container.googleapis.com:443'. + * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials + * The credentials to be used by the client to authorize API calls. This option + * accepts either a path to a credentials file, or a decoded credentials file as a + * PHP array. + * *Advanced usage*: In addition, this option can also accept a pre-constructed + * {@see \Google\Auth\FetchAuthTokenInterface} object or + * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these + * objects are provided, any settings in $credentialsConfig will be ignored. + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * } + * + * @throws ValidationException + */ + public function __construct(array $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Cancels the specified operation. + * + * The async variant is {@see ClusterManagerClient::cancelOperationAsync()} . + * + * @example samples/V1/ClusterManagerClient/cancel_operation.php + * + * @param CancelOperationRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function cancelOperation(CancelOperationRequest $request, array $callOptions = []): void + { + $this->startApiCall('CancelOperation', $request, $callOptions)->wait(); + } + + /** + * Checks the cluster compatibility with Autopilot mode, and returns a list of + * compatibility issues. + * + * The async variant is + * {@see ClusterManagerClient::checkAutopilotCompatibilityAsync()} . + * + * @example samples/V1/ClusterManagerClient/check_autopilot_compatibility.php + * + * @param CheckAutopilotCompatibilityRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CheckAutopilotCompatibilityResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function checkAutopilotCompatibility(CheckAutopilotCompatibilityRequest $request, array $callOptions = []): CheckAutopilotCompatibilityResponse + { + return $this->startApiCall('CheckAutopilotCompatibility', $request, $callOptions)->wait(); + } + + /** + * Completes master IP rotation. + * + * The async variant is {@see ClusterManagerClient::completeIPRotationAsync()} . + * + * @example samples/V1/ClusterManagerClient/complete_ip_rotation.php + * + * @param CompleteIPRotationRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Operation + * + * @throws ApiException Thrown if the API call fails. + */ + public function completeIPRotation(CompleteIPRotationRequest $request, array $callOptions = []): Operation + { + return $this->startApiCall('CompleteIPRotation', $request, $callOptions)->wait(); + } + + /** + * CompleteNodePoolUpgrade will signal an on-going node pool upgrade to + * complete. + * + * The async variant is {@see ClusterManagerClient::completeNodePoolUpgradeAsync()} + * . + * + * @example samples/V1/ClusterManagerClient/complete_node_pool_upgrade.php + * + * @param CompleteNodePoolUpgradeRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function completeNodePoolUpgrade(CompleteNodePoolUpgradeRequest $request, array $callOptions = []): void + { + $this->startApiCall('CompleteNodePoolUpgrade', $request, $callOptions)->wait(); + } + + /** + * Creates a cluster, consisting of the specified number and type of Google + * Compute Engine instances. + * + * By default, the cluster is created in the project's + * [default + * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). + * + * One firewall is added for the cluster. After cluster creation, + * the Kubelet creates routes for each node to allow the containers + * on that node to communicate with all other instances in the + * cluster. + * + * Finally, an entry is added to the project's global metadata indicating + * which CIDR range the cluster is using. + * + * The async variant is {@see ClusterManagerClient::createClusterAsync()} . + * + * @example samples/V1/ClusterManagerClient/create_cluster.php + * + * @param CreateClusterRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Operation + * + * @throws ApiException Thrown if the API call fails. + */ + public function createCluster(CreateClusterRequest $request, array $callOptions = []): Operation + { + return $this->startApiCall('CreateCluster', $request, $callOptions)->wait(); + } + + /** + * Creates a node pool for a cluster. + * + * The async variant is {@see ClusterManagerClient::createNodePoolAsync()} . + * + * @example samples/V1/ClusterManagerClient/create_node_pool.php + * + * @param CreateNodePoolRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Operation + * + * @throws ApiException Thrown if the API call fails. + */ + public function createNodePool(CreateNodePoolRequest $request, array $callOptions = []): Operation + { + return $this->startApiCall('CreateNodePool', $request, $callOptions)->wait(); + } + + /** + * Deletes the cluster, including the Kubernetes endpoint and all worker + * nodes. + * + * Firewalls and routes that were configured during cluster creation + * are also deleted. + * + * Other Google Compute Engine resources that might be in use by the cluster, + * such as load balancer resources, are not deleted if they weren't present + * when the cluster was initially created. + * + * The async variant is {@see ClusterManagerClient::deleteClusterAsync()} . + * + * @example samples/V1/ClusterManagerClient/delete_cluster.php + * + * @param DeleteClusterRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Operation + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteCluster(DeleteClusterRequest $request, array $callOptions = []): Operation + { + return $this->startApiCall('DeleteCluster', $request, $callOptions)->wait(); + } + + /** + * Deletes a node pool from a cluster. + * + * The async variant is {@see ClusterManagerClient::deleteNodePoolAsync()} . + * + * @example samples/V1/ClusterManagerClient/delete_node_pool.php + * + * @param DeleteNodePoolRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Operation + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteNodePool(DeleteNodePoolRequest $request, array $callOptions = []): Operation + { + return $this->startApiCall('DeleteNodePool', $request, $callOptions)->wait(); + } + + /** + * Gets the details of a specific cluster. + * + * The async variant is {@see ClusterManagerClient::getClusterAsync()} . + * + * @example samples/V1/ClusterManagerClient/get_cluster.php + * + * @param GetClusterRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Cluster + * + * @throws ApiException Thrown if the API call fails. + */ + public function getCluster(GetClusterRequest $request, array $callOptions = []): Cluster + { + return $this->startApiCall('GetCluster', $request, $callOptions)->wait(); + } + + /** + * Gets the public component of the cluster signing keys in + * JSON Web Key format. + * + * The async variant is {@see ClusterManagerClient::getJSONWebKeysAsync()} . + * + * @example samples/V1/ClusterManagerClient/get_json_web_keys.php + * + * @param GetJSONWebKeysRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return GetJSONWebKeysResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function getJSONWebKeys(GetJSONWebKeysRequest $request, array $callOptions = []): GetJSONWebKeysResponse + { + return $this->startApiCall('GetJSONWebKeys', $request, $callOptions)->wait(); + } + + /** + * Retrieves the requested node pool. + * + * The async variant is {@see ClusterManagerClient::getNodePoolAsync()} . + * + * @example samples/V1/ClusterManagerClient/get_node_pool.php + * + * @param GetNodePoolRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return NodePool + * + * @throws ApiException Thrown if the API call fails. + */ + public function getNodePool(GetNodePoolRequest $request, array $callOptions = []): NodePool + { + return $this->startApiCall('GetNodePool', $request, $callOptions)->wait(); + } + + /** + * Gets the specified operation. + * + * The async variant is {@see ClusterManagerClient::getOperationAsync()} . + * + * @example samples/V1/ClusterManagerClient/get_operation.php + * + * @param GetOperationRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Operation + * + * @throws ApiException Thrown if the API call fails. + */ + public function getOperation(GetOperationRequest $request, array $callOptions = []): Operation + { + return $this->startApiCall('GetOperation', $request, $callOptions)->wait(); + } + + /** + * Returns configuration info about the Google Kubernetes Engine service. + * + * The async variant is {@see ClusterManagerClient::getServerConfigAsync()} . + * + * @example samples/V1/ClusterManagerClient/get_server_config.php + * + * @param GetServerConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ServerConfig + * + * @throws ApiException Thrown if the API call fails. + */ + public function getServerConfig(GetServerConfigRequest $request, array $callOptions = []): ServerConfig + { + return $this->startApiCall('GetServerConfig', $request, $callOptions)->wait(); + } + + /** + * Lists all clusters owned by a project in either the specified zone or all + * zones. + * + * The async variant is {@see ClusterManagerClient::listClustersAsync()} . + * + * @example samples/V1/ClusterManagerClient/list_clusters.php + * + * @param ListClustersRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ListClustersResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listClusters(ListClustersRequest $request, array $callOptions = []): ListClustersResponse + { + return $this->startApiCall('ListClusters', $request, $callOptions)->wait(); + } + + /** + * Lists the node pools for a cluster. + * + * The async variant is {@see ClusterManagerClient::listNodePoolsAsync()} . + * + * @example samples/V1/ClusterManagerClient/list_node_pools.php + * + * @param ListNodePoolsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ListNodePoolsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listNodePools(ListNodePoolsRequest $request, array $callOptions = []): ListNodePoolsResponse + { + return $this->startApiCall('ListNodePools', $request, $callOptions)->wait(); + } + + /** + * Lists all operations in a project in a specific zone or all zones. + * + * The async variant is {@see ClusterManagerClient::listOperationsAsync()} . + * + * @example samples/V1/ClusterManagerClient/list_operations.php + * + * @param ListOperationsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ListOperationsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listOperations(ListOperationsRequest $request, array $callOptions = []): ListOperationsResponse + { + return $this->startApiCall('ListOperations', $request, $callOptions)->wait(); + } + + /** + * Lists subnetworks that are usable for creating clusters in a project. + * + * The async variant is {@see ClusterManagerClient::listUsableSubnetworksAsync()} . + * + * @example samples/V1/ClusterManagerClient/list_usable_subnetworks.php + * + * @param ListUsableSubnetworksRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listUsableSubnetworks(ListUsableSubnetworksRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListUsableSubnetworks', $request, $callOptions); + } + + /** + * Rolls back a previously Aborted or Failed NodePool upgrade. + * This makes no changes if the last upgrade successfully completed. + * + * The async variant is {@see ClusterManagerClient::rollbackNodePoolUpgradeAsync()} + * . + * + * @example samples/V1/ClusterManagerClient/rollback_node_pool_upgrade.php + * + * @param RollbackNodePoolUpgradeRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Operation + * + * @throws ApiException Thrown if the API call fails. + */ + public function rollbackNodePoolUpgrade(RollbackNodePoolUpgradeRequest $request, array $callOptions = []): Operation + { + return $this->startApiCall('RollbackNodePoolUpgrade', $request, $callOptions)->wait(); + } + + /** + * Sets the addons for a specific cluster. + * + * The async variant is {@see ClusterManagerClient::setAddonsConfigAsync()} . + * + * @example samples/V1/ClusterManagerClient/set_addons_config.php + * + * @param SetAddonsConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Operation + * + * @throws ApiException Thrown if the API call fails. + */ + public function setAddonsConfig(SetAddonsConfigRequest $request, array $callOptions = []): Operation + { + return $this->startApiCall('SetAddonsConfig', $request, $callOptions)->wait(); + } + + /** + * Sets labels on a cluster. + * + * The async variant is {@see ClusterManagerClient::setLabelsAsync()} . + * + * @example samples/V1/ClusterManagerClient/set_labels.php + * + * @param SetLabelsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Operation + * + * @throws ApiException Thrown if the API call fails. + */ + public function setLabels(SetLabelsRequest $request, array $callOptions = []): Operation + { + return $this->startApiCall('SetLabels', $request, $callOptions)->wait(); + } + + /** + * Enables or disables the ABAC authorization mechanism on a cluster. + * + * The async variant is {@see ClusterManagerClient::setLegacyAbacAsync()} . + * + * @example samples/V1/ClusterManagerClient/set_legacy_abac.php + * + * @param SetLegacyAbacRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Operation + * + * @throws ApiException Thrown if the API call fails. + */ + public function setLegacyAbac(SetLegacyAbacRequest $request, array $callOptions = []): Operation + { + return $this->startApiCall('SetLegacyAbac', $request, $callOptions)->wait(); + } + + /** + * Sets the locations for a specific cluster. + * Deprecated. Use + * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update) + * instead. + * + * The async variant is {@see ClusterManagerClient::setLocationsAsync()} . + * + * @example samples/V1/ClusterManagerClient/set_locations.php + * + * @param SetLocationsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Operation + * + * @throws ApiException Thrown if the API call fails. + * + * @deprecated This method will be removed in the next major version update. + */ + public function setLocations(SetLocationsRequest $request, array $callOptions = []): Operation + { + return $this->startApiCall('SetLocations', $request, $callOptions)->wait(); + } + + /** + * Sets the logging service for a specific cluster. + * + * The async variant is {@see ClusterManagerClient::setLoggingServiceAsync()} . + * + * @example samples/V1/ClusterManagerClient/set_logging_service.php + * + * @param SetLoggingServiceRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Operation + * + * @throws ApiException Thrown if the API call fails. + */ + public function setLoggingService(SetLoggingServiceRequest $request, array $callOptions = []): Operation + { + return $this->startApiCall('SetLoggingService', $request, $callOptions)->wait(); + } + + /** + * Sets the maintenance policy for a cluster. + * + * The async variant is {@see ClusterManagerClient::setMaintenancePolicyAsync()} . + * + * @example samples/V1/ClusterManagerClient/set_maintenance_policy.php + * + * @param SetMaintenancePolicyRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Operation + * + * @throws ApiException Thrown if the API call fails. + */ + public function setMaintenancePolicy(SetMaintenancePolicyRequest $request, array $callOptions = []): Operation + { + return $this->startApiCall('SetMaintenancePolicy', $request, $callOptions)->wait(); + } + + /** + * Sets master auth materials. Currently supports changing the admin password + * or a specific cluster, either via password generation or explicitly setting + * the password. + * + * The async variant is {@see ClusterManagerClient::setMasterAuthAsync()} . + * + * @example samples/V1/ClusterManagerClient/set_master_auth.php + * + * @param SetMasterAuthRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Operation + * + * @throws ApiException Thrown if the API call fails. + */ + public function setMasterAuth(SetMasterAuthRequest $request, array $callOptions = []): Operation + { + return $this->startApiCall('SetMasterAuth', $request, $callOptions)->wait(); + } + + /** + * Sets the monitoring service for a specific cluster. + * + * The async variant is {@see ClusterManagerClient::setMonitoringServiceAsync()} . + * + * @example samples/V1/ClusterManagerClient/set_monitoring_service.php + * + * @param SetMonitoringServiceRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Operation + * + * @throws ApiException Thrown if the API call fails. + */ + public function setMonitoringService(SetMonitoringServiceRequest $request, array $callOptions = []): Operation + { + return $this->startApiCall('SetMonitoringService', $request, $callOptions)->wait(); + } + + /** + * Enables or disables Network Policy for a cluster. + * + * The async variant is {@see ClusterManagerClient::setNetworkPolicyAsync()} . + * + * @example samples/V1/ClusterManagerClient/set_network_policy.php + * + * @param SetNetworkPolicyRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Operation + * + * @throws ApiException Thrown if the API call fails. + */ + public function setNetworkPolicy(SetNetworkPolicyRequest $request, array $callOptions = []): Operation + { + return $this->startApiCall('SetNetworkPolicy', $request, $callOptions)->wait(); + } + + /** + * Sets the autoscaling settings for the specified node pool. + * + * The async variant is {@see ClusterManagerClient::setNodePoolAutoscalingAsync()} + * . + * + * @example samples/V1/ClusterManagerClient/set_node_pool_autoscaling.php + * + * @param SetNodePoolAutoscalingRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Operation + * + * @throws ApiException Thrown if the API call fails. + */ + public function setNodePoolAutoscaling(SetNodePoolAutoscalingRequest $request, array $callOptions = []): Operation + { + return $this->startApiCall('SetNodePoolAutoscaling', $request, $callOptions)->wait(); + } + + /** + * Sets the NodeManagement options for a node pool. + * + * The async variant is {@see ClusterManagerClient::setNodePoolManagementAsync()} . + * + * @example samples/V1/ClusterManagerClient/set_node_pool_management.php + * + * @param SetNodePoolManagementRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Operation + * + * @throws ApiException Thrown if the API call fails. + */ + public function setNodePoolManagement(SetNodePoolManagementRequest $request, array $callOptions = []): Operation + { + return $this->startApiCall('SetNodePoolManagement', $request, $callOptions)->wait(); + } + + /** + * Sets the size for a specific node pool. The new size will be used for all + * replicas, including future replicas created by modifying + * [NodePool.locations][google.container.v1.NodePool.locations]. + * + * The async variant is {@see ClusterManagerClient::setNodePoolSizeAsync()} . + * + * @example samples/V1/ClusterManagerClient/set_node_pool_size.php + * + * @param SetNodePoolSizeRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Operation + * + * @throws ApiException Thrown if the API call fails. + */ + public function setNodePoolSize(SetNodePoolSizeRequest $request, array $callOptions = []): Operation + { + return $this->startApiCall('SetNodePoolSize', $request, $callOptions)->wait(); + } + + /** + * Starts master IP rotation. + * + * The async variant is {@see ClusterManagerClient::startIPRotationAsync()} . + * + * @example samples/V1/ClusterManagerClient/start_ip_rotation.php + * + * @param StartIPRotationRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Operation + * + * @throws ApiException Thrown if the API call fails. + */ + public function startIPRotation(StartIPRotationRequest $request, array $callOptions = []): Operation + { + return $this->startApiCall('StartIPRotation', $request, $callOptions)->wait(); + } + + /** + * Updates the settings of a specific cluster. + * + * The async variant is {@see ClusterManagerClient::updateClusterAsync()} . + * + * @example samples/V1/ClusterManagerClient/update_cluster.php + * + * @param UpdateClusterRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Operation + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateCluster(UpdateClusterRequest $request, array $callOptions = []): Operation + { + return $this->startApiCall('UpdateCluster', $request, $callOptions)->wait(); + } + + /** + * Updates the master for a specific cluster. + * + * The async variant is {@see ClusterManagerClient::updateMasterAsync()} . + * + * @example samples/V1/ClusterManagerClient/update_master.php + * + * @param UpdateMasterRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Operation + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateMaster(UpdateMasterRequest $request, array $callOptions = []): Operation + { + return $this->startApiCall('UpdateMaster', $request, $callOptions)->wait(); + } + + /** + * Updates the version and/or image type for the specified node pool. + * + * The async variant is {@see ClusterManagerClient::updateNodePoolAsync()} . + * + * @example samples/V1/ClusterManagerClient/update_node_pool.php + * + * @param UpdateNodePoolRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Operation + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateNodePool(UpdateNodePoolRequest $request, array $callOptions = []): Operation + { + return $this->startApiCall('UpdateNodePool', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/Container/v1/src/V1/ClusterManagerClient.php b/owl-bot-staging/Container/v1/src/V1/ClusterManagerClient.php new file mode 100644 index 000000000000..925605da2c0d --- /dev/null +++ b/owl-bot-staging/Container/v1/src/V1/ClusterManagerClient.php @@ -0,0 +1,34 @@ +cancelOperation(); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * Many parameters require resource names to be formatted in a particular way. To + * assist with these names, this class includes a format method for each type of + * name, and additionally a parseName method to extract the individual identifiers + * contained within formatted names that are returned by the API. + * + * @deprecated Please use the new service client {@see \Google\Cloud\Container\V1\Client\ClusterManagerClient}. + */ +class ClusterManagerGapicClient +{ + use GapicClientTrait; + + /** The name of the service. */ + const SERVICE_NAME = 'google.container.v1.ClusterManager'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + const SERVICE_ADDRESS = 'container.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'container.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private static $topicNameTemplate; + + private static $pathTemplateMap; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/cluster_manager_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/cluster_manager_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/cluster_manager_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/cluster_manager_rest_client_config.php', + ], + ], + ]; + } + + private static function getTopicNameTemplate() + { + if (self::$topicNameTemplate == null) { + self::$topicNameTemplate = new PathTemplate('projects/{project}/topics/{topic}'); + } + + return self::$topicNameTemplate; + } + + private static function getPathTemplateMap() + { + if (self::$pathTemplateMap == null) { + self::$pathTemplateMap = [ + 'topic' => self::getTopicNameTemplate(), + ]; + } + + return self::$pathTemplateMap; + } + + /** + * Formats a string containing the fully-qualified path to represent a topic + * resource. + * + * @param string $project + * @param string $topic + * + * @return string The formatted topic resource. + */ + public static function topicName($project, $topic) + { + return self::getTopicNameTemplate()->render([ + 'project' => $project, + 'topic' => $topic, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - topic: projects/{project}/topics/{topic} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName($formattedName, $template = null) + { + $templateMap = self::getPathTemplateMap(); + if ($template) { + if (!isset($templateMap[$template])) { + throw new ValidationException("Template name $template does not exist"); + } + + return $templateMap[$template]->match($formattedName); + } + + foreach ($templateMap as $templateName => $pathTemplate) { + try { + return $pathTemplate->match($formattedName); + } catch (ValidationException $ex) { + // Swallow the exception to continue trying other path templates + } + } + + throw new ValidationException("Input did not match any known format. Input: $formattedName"); + } + + /** + * Constructor. + * + * @param array $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'container.googleapis.com:443'. + * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials + * The credentials to be used by the client to authorize API calls. This option + * accepts either a path to a credentials file, or a decoded credentials file as a + * PHP array. + * *Advanced usage*: In addition, this option can also accept a pre-constructed + * {@see \Google\Auth\FetchAuthTokenInterface} object or + * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these + * objects are provided, any settings in $credentialsConfig will be ignored. + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * } + * + * @throws ValidationException + */ + public function __construct(array $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** + * Cancels the specified operation. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $clusterManagerClient->cancelOperation(); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * operation resides. This field has been deprecated and replaced by the name + * field. + * @type string $operationId + * Deprecated. The server-assigned `name` of the operation. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, operation id) of the operation to cancel. + * Specified in the format `projects/*/locations/*/operations/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException if the remote call fails + */ + public function cancelOperation(array $optionalArgs = []) + { + $request = new CancelOperationRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['operationId'])) { + $request->setOperationId($optionalArgs['operationId']); + $requestParamHeaders['operation_id'] = $optionalArgs['operationId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CancelOperation', GPBEmpty::class, $optionalArgs, $request)->wait(); + } + + /** + * Checks the cluster compatibility with Autopilot mode, and returns a list of + * compatibility issues. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $response = $clusterManagerClient->checkAutopilotCompatibility(); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $name + * The name (project, location, cluster) of the cluster to retrieve. + * Specified in the format `projects/*/locations/*/clusters/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\CheckAutopilotCompatibilityResponse + * + * @throws ApiException if the remote call fails + */ + public function checkAutopilotCompatibility(array $optionalArgs = []) + { + $request = new CheckAutopilotCompatibilityRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CheckAutopilotCompatibility', CheckAutopilotCompatibilityResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * Completes master IP rotation. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $response = $clusterManagerClient->completeIPRotation(); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster name) of the cluster to complete IP + * rotation. Specified in the format `projects/*/locations/*/clusters/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function completeIPRotation(array $optionalArgs = []) + { + $request = new CompleteIPRotationRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CompleteIPRotation', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * CompleteNodePoolUpgrade will signal an on-going node pool upgrade to + * complete. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $clusterManagerClient->completeNodePoolUpgrade(); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $name + * The name (project, location, cluster, node pool id) of the node pool to + * complete upgrade. + * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException if the remote call fails + */ + public function completeNodePoolUpgrade(array $optionalArgs = []) + { + $request = new CompleteNodePoolUpgradeRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CompleteNodePoolUpgrade', GPBEmpty::class, $optionalArgs, $request)->wait(); + } + + /** + * Creates a cluster, consisting of the specified number and type of Google + * Compute Engine instances. + * + * By default, the cluster is created in the project's + * [default + * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). + * + * One firewall is added for the cluster. After cluster creation, + * the Kubelet creates routes for each node to allow the containers + * on that node to communicate with all other instances in the + * cluster. + * + * Finally, an entry is added to the project's global metadata indicating + * which CIDR range the cluster is using. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $cluster = new Cluster(); + * $response = $clusterManagerClient->createCluster($cluster); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param Cluster $cluster Required. A [cluster + * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the parent + * field. + * @type string $parent + * The parent (project and location) where the cluster will be created. + * Specified in the format `projects/*/locations/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function createCluster($cluster, array $optionalArgs = []) + { + $request = new CreateClusterRequest(); + $requestParamHeaders = []; + $request->setCluster($cluster); + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['parent'])) { + $request->setParent($optionalArgs['parent']); + $requestParamHeaders['parent'] = $optionalArgs['parent']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CreateCluster', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Creates a node pool for a cluster. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $nodePool = new NodePool(); + * $response = $clusterManagerClient->createNodePool($nodePool); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param NodePool $nodePool Required. The node pool to create. + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the parent + * field. + * @type string $clusterId + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the parent field. + * @type string $parent + * The parent (project, location, cluster name) where the node pool will be + * created. Specified in the format + * `projects/*/locations/*/clusters/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function createNodePool($nodePool, array $optionalArgs = []) + { + $request = new CreateNodePoolRequest(); + $requestParamHeaders = []; + $request->setNodePool($nodePool); + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['parent'])) { + $request->setParent($optionalArgs['parent']); + $requestParamHeaders['parent'] = $optionalArgs['parent']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CreateNodePool', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Deletes the cluster, including the Kubernetes endpoint and all worker + * nodes. + * + * Firewalls and routes that were configured during cluster creation + * are also deleted. + * + * Other Google Compute Engine resources that might be in use by the cluster, + * such as load balancer resources, are not deleted if they weren't present + * when the cluster was initially created. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $response = $clusterManagerClient->deleteCluster(); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster to delete. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster) of the cluster to delete. + * Specified in the format `projects/*/locations/*/clusters/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function deleteCluster(array $optionalArgs = []) + { + $request = new DeleteClusterRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('DeleteCluster', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Deletes a node pool from a cluster. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $response = $clusterManagerClient->deleteNodePool(); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * @type string $nodePoolId + * Deprecated. The name of the node pool to delete. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster, node pool id) of the node pool to + * delete. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function deleteNodePool(array $optionalArgs = []) + { + $request = new DeleteNodePoolRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['nodePoolId'])) { + $request->setNodePoolId($optionalArgs['nodePoolId']); + $requestParamHeaders['node_pool_id'] = $optionalArgs['nodePoolId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('DeleteNodePool', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Gets the details of a specific cluster. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $response = $clusterManagerClient->getCluster(); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster to retrieve. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster) of the cluster to retrieve. + * Specified in the format `projects/*/locations/*/clusters/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Cluster + * + * @throws ApiException if the remote call fails + */ + public function getCluster(array $optionalArgs = []) + { + $request = new GetClusterRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetCluster', Cluster::class, $optionalArgs, $request)->wait(); + } + + /** + * Gets the public component of the cluster signing keys in + * JSON Web Key format. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $response = $clusterManagerClient->getJSONWebKeys(); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $parent + * The cluster (project, location, cluster name) to get keys for. Specified in + * the format `projects/*/locations/*/clusters/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\GetJSONWebKeysResponse + * + * @throws ApiException if the remote call fails + */ + public function getJSONWebKeys(array $optionalArgs = []) + { + $request = new GetJSONWebKeysRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['parent'])) { + $request->setParent($optionalArgs['parent']); + $requestParamHeaders['parent'] = $optionalArgs['parent']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetJSONWebKeys', GetJSONWebKeysResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * Retrieves the requested node pool. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $response = $clusterManagerClient->getNodePool(); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * @type string $nodePoolId + * Deprecated. The name of the node pool. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster, node pool id) of the node pool to + * get. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\NodePool + * + * @throws ApiException if the remote call fails + */ + public function getNodePool(array $optionalArgs = []) + { + $request = new GetNodePoolRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['nodePoolId'])) { + $request->setNodePoolId($optionalArgs['nodePoolId']); + $requestParamHeaders['node_pool_id'] = $optionalArgs['nodePoolId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetNodePool', NodePool::class, $optionalArgs, $request)->wait(); + } + + /** + * Gets the specified operation. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $response = $clusterManagerClient->getOperation(); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $operationId + * Deprecated. The server-assigned `name` of the operation. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, operation id) of the operation to get. + * Specified in the format `projects/*/locations/*/operations/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function getOperation(array $optionalArgs = []) + { + $request = new GetOperationRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['operationId'])) { + $request->setOperationId($optionalArgs['operationId']); + $requestParamHeaders['operation_id'] = $optionalArgs['operationId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetOperation', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Returns configuration info about the Google Kubernetes Engine service. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $response = $clusterManagerClient->getServerConfig(); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) to return + * operations for. This field has been deprecated and replaced by the name + * field. + * @type string $name + * The name (project and location) of the server config to get, + * specified in the format `projects/*/locations/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\ServerConfig + * + * @throws ApiException if the remote call fails + */ + public function getServerConfig(array $optionalArgs = []) + { + $request = new GetServerConfigRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetServerConfig', ServerConfig::class, $optionalArgs, $request)->wait(); + } + + /** + * Lists all clusters owned by a project in either the specified zone or all + * zones. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $response = $clusterManagerClient->listClusters(); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides, or "-" for all zones. This field has been deprecated and + * replaced by the parent field. + * @type string $parent + * The parent (project and location) where the clusters will be listed. + * Specified in the format `projects/*/locations/*`. + * Location "-" matches all zones and all regions. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\ListClustersResponse + * + * @throws ApiException if the remote call fails + */ + public function listClusters(array $optionalArgs = []) + { + $request = new ListClustersRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['parent'])) { + $request->setParent($optionalArgs['parent']); + $requestParamHeaders['parent'] = $optionalArgs['parent']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('ListClusters', ListClustersResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * Lists the node pools for a cluster. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $response = $clusterManagerClient->listNodePools(); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the parent + * field. + * @type string $clusterId + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the parent field. + * @type string $parent + * The parent (project, location, cluster name) where the node pools will be + * listed. Specified in the format `projects/*/locations/*/clusters/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\ListNodePoolsResponse + * + * @throws ApiException if the remote call fails + */ + public function listNodePools(array $optionalArgs = []) + { + $request = new ListNodePoolsRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['parent'])) { + $request->setParent($optionalArgs['parent']); + $requestParamHeaders['parent'] = $optionalArgs['parent']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('ListNodePools', ListNodePoolsResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * Lists all operations in a project in a specific zone or all zones. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $response = $clusterManagerClient->listOperations(); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) to return + * operations for, or `-` for all zones. This field has been deprecated and + * replaced by the parent field. + * @type string $parent + * The parent (project and location) where the operations will be listed. + * Specified in the format `projects/*/locations/*`. + * Location "-" matches all zones and all regions. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\ListOperationsResponse + * + * @throws ApiException if the remote call fails + */ + public function listOperations(array $optionalArgs = []) + { + $request = new ListOperationsRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['parent'])) { + $request->setParent($optionalArgs['parent']); + $requestParamHeaders['parent'] = $optionalArgs['parent']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('ListOperations', ListOperationsResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * Lists subnetworks that are usable for creating clusters in a project. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * // Iterate over pages of elements + * $pagedResponse = $clusterManagerClient->listUsableSubnetworks(); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $clusterManagerClient->listUsableSubnetworks(); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $parent + * The parent project where subnetworks are usable. + * Specified in the format `projects/*`. + * @type string $filter + * Filtering currently only supports equality on the networkProjectId and must + * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` + * is the project which owns the listed subnetworks. This defaults to the + * parent project ID. + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + */ + public function listUsableSubnetworks(array $optionalArgs = []) + { + $request = new ListUsableSubnetworksRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['parent'])) { + $request->setParent($optionalArgs['parent']); + $requestParamHeaders['parent'] = $optionalArgs['parent']; + } + + if (isset($optionalArgs['filter'])) { + $request->setFilter($optionalArgs['filter']); + } + + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListUsableSubnetworks', $optionalArgs, ListUsableSubnetworksResponse::class, $request); + } + + /** + * Rolls back a previously Aborted or Failed NodePool upgrade. + * This makes no changes if the last upgrade successfully completed. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $response = $clusterManagerClient->rollbackNodePoolUpgrade(); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster to rollback. + * This field has been deprecated and replaced by the name field. + * @type string $nodePoolId + * Deprecated. The name of the node pool to rollback. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster, node pool id) of the node poll to + * rollback upgrade. + * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. + * @type bool $respectPdb + * Option for rollback to ignore the PodDisruptionBudget. + * Default value is false. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function rollbackNodePoolUpgrade(array $optionalArgs = []) + { + $request = new RollbackNodePoolUpgradeRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['nodePoolId'])) { + $request->setNodePoolId($optionalArgs['nodePoolId']); + $requestParamHeaders['node_pool_id'] = $optionalArgs['nodePoolId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + if (isset($optionalArgs['respectPdb'])) { + $request->setRespectPdb($optionalArgs['respectPdb']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('RollbackNodePoolUpgrade', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Sets the addons for a specific cluster. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $addonsConfig = new AddonsConfig(); + * $response = $clusterManagerClient->setAddonsConfig($addonsConfig); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param AddonsConfig $addonsConfig Required. The desired configurations for the various addons available to + * run in the cluster. + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster) of the cluster to set addons. + * Specified in the format `projects/*/locations/*/clusters/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function setAddonsConfig($addonsConfig, array $optionalArgs = []) + { + $request = new SetAddonsConfigRequest(); + $requestParamHeaders = []; + $request->setAddonsConfig($addonsConfig); + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('SetAddonsConfig', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Sets labels on a cluster. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $resourceLabels = []; + * $labelFingerprint = 'label_fingerprint'; + * $response = $clusterManagerClient->setLabels($resourceLabels, $labelFingerprint); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param array $resourceLabels Required. The labels to set for that cluster. + * @param string $labelFingerprint Required. The fingerprint of the previous set of labels for this resource, + * used to detect conflicts. The fingerprint is initially generated by + * Kubernetes Engine and changes after every request to modify or update + * labels. You must always provide an up-to-date fingerprint hash when + * updating or changing labels. Make a `get()` request to the + * resource to get the latest fingerprint. + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster name) of the cluster to set labels. + * Specified in the format `projects/*/locations/*/clusters/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function setLabels($resourceLabels, $labelFingerprint, array $optionalArgs = []) + { + $request = new SetLabelsRequest(); + $requestParamHeaders = []; + $request->setResourceLabels($resourceLabels); + $request->setLabelFingerprint($labelFingerprint); + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('SetLabels', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Enables or disables the ABAC authorization mechanism on a cluster. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $enabled = false; + * $response = $clusterManagerClient->setLegacyAbac($enabled); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param bool $enabled Required. Whether ABAC authorization will be enabled in the cluster. + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster name) of the cluster to set legacy + * abac. Specified in the format `projects/*/locations/*/clusters/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function setLegacyAbac($enabled, array $optionalArgs = []) + { + $request = new SetLegacyAbacRequest(); + $requestParamHeaders = []; + $request->setEnabled($enabled); + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('SetLegacyAbac', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Sets the locations for a specific cluster. + * Deprecated. Use + * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update) + * instead. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $locations = []; + * $response = $clusterManagerClient->setLocations($locations); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param string[] $locations Required. The desired list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster's nodes should be located. Changing the locations a cluster is in + * will result in nodes being either created or removed from the cluster, + * depending on whether locations are being added or removed. + * + * This list must always include the cluster's primary zone. + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster) of the cluster to set locations. + * Specified in the format `projects/*/locations/*/clusters/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + * + * @deprecated This method will be removed in the next major version update. + */ + public function setLocations($locations, array $optionalArgs = []) + { + $request = new SetLocationsRequest(); + $requestParamHeaders = []; + $request->setLocations($locations); + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('SetLocations', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Sets the logging service for a specific cluster. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $loggingService = 'logging_service'; + * $response = $clusterManagerClient->setLoggingService($loggingService); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param string $loggingService Required. The logging service the cluster should use to write logs. + * Currently available options: + * + * * `logging.googleapis.com/kubernetes` - The Cloud Logging + * service with a Kubernetes-native resource model + * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + * available as of GKE 1.15). + * * `none` - no logs will be exported from the cluster. + * + * If left as an empty string,`logging.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster) of the cluster to set logging. + * Specified in the format `projects/*/locations/*/clusters/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function setLoggingService($loggingService, array $optionalArgs = []) + { + $request = new SetLoggingServiceRequest(); + $requestParamHeaders = []; + $request->setLoggingService($loggingService); + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('SetLoggingService', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Sets the maintenance policy for a cluster. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $projectId = 'project_id'; + * $zone = 'zone'; + * $clusterId = 'cluster_id'; + * $maintenancePolicy = new MaintenancePolicy(); + * $response = $clusterManagerClient->setMaintenancePolicy($projectId, $zone, $clusterId, $maintenancePolicy); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param string $projectId Required. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * @param string $zone Required. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. + * @param string $clusterId Required. The name of the cluster to update. + * @param MaintenancePolicy $maintenancePolicy Required. The maintenance policy to be set for the cluster. An empty field + * clears the existing maintenance policy. + * @param array $optionalArgs { + * Optional. + * + * @type string $name + * The name (project, location, cluster name) of the cluster to set + * maintenance policy. + * Specified in the format `projects/*/locations/*/clusters/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function setMaintenancePolicy($projectId, $zone, $clusterId, $maintenancePolicy, array $optionalArgs = []) + { + $request = new SetMaintenancePolicyRequest(); + $requestParamHeaders = []; + $request->setProjectId($projectId); + $request->setZone($zone); + $request->setClusterId($clusterId); + $request->setMaintenancePolicy($maintenancePolicy); + $requestParamHeaders['project_id'] = $projectId; + $requestParamHeaders['zone'] = $zone; + $requestParamHeaders['cluster_id'] = $clusterId; + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('SetMaintenancePolicy', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Sets master auth materials. Currently supports changing the admin password + * or a specific cluster, either via password generation or explicitly setting + * the password. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $action = Action::UNKNOWN; + * $update = new MasterAuth(); + * $response = $clusterManagerClient->setMasterAuth($action, $update); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param int $action Required. The exact form of action to be taken on the master auth. + * For allowed values, use constants defined on {@see \Google\Cloud\Container\V1\SetMasterAuthRequest\Action} + * @param MasterAuth $update Required. A description of the update. + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster) of the cluster to set auth. + * Specified in the format `projects/*/locations/*/clusters/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function setMasterAuth($action, $update, array $optionalArgs = []) + { + $request = new SetMasterAuthRequest(); + $requestParamHeaders = []; + $request->setAction($action); + $request->setUpdate($update); + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('SetMasterAuth', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Sets the monitoring service for a specific cluster. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $monitoringService = 'monitoring_service'; + * $response = $clusterManagerClient->setMonitoringService($monitoringService); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param string $monitoringService Required. The monitoring service the cluster should use to write metrics. + * Currently available options: + * + * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + * service with a Kubernetes-native resource model + * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + * longer available as of GKE 1.15). + * * `none` - No metrics will be exported from the cluster. + * + * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster) of the cluster to set monitoring. + * Specified in the format `projects/*/locations/*/clusters/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function setMonitoringService($monitoringService, array $optionalArgs = []) + { + $request = new SetMonitoringServiceRequest(); + $requestParamHeaders = []; + $request->setMonitoringService($monitoringService); + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('SetMonitoringService', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Enables or disables Network Policy for a cluster. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $networkPolicy = new NetworkPolicy(); + * $response = $clusterManagerClient->setNetworkPolicy($networkPolicy); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param NetworkPolicy $networkPolicy Required. Configuration options for the NetworkPolicy feature. + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster name) of the cluster to set networking + * policy. Specified in the format `projects/*/locations/*/clusters/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function setNetworkPolicy($networkPolicy, array $optionalArgs = []) + { + $request = new SetNetworkPolicyRequest(); + $requestParamHeaders = []; + $request->setNetworkPolicy($networkPolicy); + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('SetNetworkPolicy', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Sets the autoscaling settings for the specified node pool. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $autoscaling = new NodePoolAutoscaling(); + * $response = $clusterManagerClient->setNodePoolAutoscaling($autoscaling); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param NodePoolAutoscaling $autoscaling Required. Autoscaling configuration for the node pool. + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @type string $nodePoolId + * Deprecated. The name of the node pool to upgrade. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster, node pool) of the node pool to set + * autoscaler settings. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function setNodePoolAutoscaling($autoscaling, array $optionalArgs = []) + { + $request = new SetNodePoolAutoscalingRequest(); + $requestParamHeaders = []; + $request->setAutoscaling($autoscaling); + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['nodePoolId'])) { + $request->setNodePoolId($optionalArgs['nodePoolId']); + $requestParamHeaders['node_pool_id'] = $optionalArgs['nodePoolId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('SetNodePoolAutoscaling', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Sets the NodeManagement options for a node pool. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $management = new NodeManagement(); + * $response = $clusterManagerClient->setNodePoolManagement($management); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param NodeManagement $management Required. NodeManagement configuration for the node pool. + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. + * @type string $nodePoolId + * Deprecated. The name of the node pool to update. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster, node pool id) of the node pool to set + * management properties. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function setNodePoolManagement($management, array $optionalArgs = []) + { + $request = new SetNodePoolManagementRequest(); + $requestParamHeaders = []; + $request->setManagement($management); + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['nodePoolId'])) { + $request->setNodePoolId($optionalArgs['nodePoolId']); + $requestParamHeaders['node_pool_id'] = $optionalArgs['nodePoolId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('SetNodePoolManagement', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Sets the size for a specific node pool. The new size will be used for all + * replicas, including future replicas created by modifying + * [NodePool.locations][google.container.v1.NodePool.locations]. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $nodeCount = 0; + * $response = $clusterManagerClient->setNodePoolSize($nodeCount); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param int $nodeCount Required. The desired node count for the pool. + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. + * @type string $nodePoolId + * Deprecated. The name of the node pool to update. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster, node pool id) of the node pool to set + * size. + * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function setNodePoolSize($nodeCount, array $optionalArgs = []) + { + $request = new SetNodePoolSizeRequest(); + $requestParamHeaders = []; + $request->setNodeCount($nodeCount); + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['nodePoolId'])) { + $request->setNodePoolId($optionalArgs['nodePoolId']); + $requestParamHeaders['node_pool_id'] = $optionalArgs['nodePoolId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('SetNodePoolSize', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Starts master IP rotation. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $response = $clusterManagerClient->startIPRotation(); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster name) of the cluster to start IP + * rotation. Specified in the format `projects/*/locations/*/clusters/*`. + * @type bool $rotateCredentials + * Whether to rotate credentials during IP rotation. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function startIPRotation(array $optionalArgs = []) + { + $request = new StartIPRotationRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + if (isset($optionalArgs['rotateCredentials'])) { + $request->setRotateCredentials($optionalArgs['rotateCredentials']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('StartIPRotation', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Updates the settings of a specific cluster. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $update = new ClusterUpdate(); + * $response = $clusterManagerClient->updateCluster($update); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param ClusterUpdate $update Required. A description of the update. + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster) of the cluster to update. + * Specified in the format `projects/*/locations/*/clusters/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function updateCluster($update, array $optionalArgs = []) + { + $request = new UpdateClusterRequest(); + $requestParamHeaders = []; + $request->setUpdate($update); + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('UpdateCluster', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Updates the master for a specific cluster. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $masterVersion = 'master_version'; + * $response = $clusterManagerClient->updateMaster($masterVersion); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param string $masterVersion Required. The Kubernetes version to change the master to. + * + * Users may specify either explicit versions offered by Kubernetes Engine or + * version aliases, which have the following behavior: + * + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the default Kubernetes version + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster) of the cluster to update. + * Specified in the format `projects/*/locations/*/clusters/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function updateMaster($masterVersion, array $optionalArgs = []) + { + $request = new UpdateMasterRequest(); + $requestParamHeaders = []; + $request->setMasterVersion($masterVersion); + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('UpdateMaster', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Updates the version and/or image type for the specified node pool. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $nodeVersion = 'node_version'; + * $imageType = 'image_type'; + * $response = $clusterManagerClient->updateNodePool($nodeVersion, $imageType); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param string $nodeVersion Required. The Kubernetes version to change the nodes to (typically an + * upgrade). + * + * Users may specify either explicit versions offered by Kubernetes Engine or + * version aliases, which have the following behavior: + * + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the Kubernetes master version + * @param string $imageType Required. The desired image type for the node pool. Please see + * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for + * available image types. + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @type string $nodePoolId + * Deprecated. The name of the node pool to upgrade. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster, node pool) of the node pool to + * update. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * @type string[] $locations + * The desired list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * node pool's nodes should be located. Changing the locations for a node pool + * will result in nodes being either created or removed from the node pool, + * depending on whether locations are being added or removed. + * @type WorkloadMetadataConfig $workloadMetadataConfig + * The desired workload metadata config for the node pool. + * @type UpgradeSettings $upgradeSettings + * Upgrade settings control disruption and speed of the upgrade. + * @type NetworkTags $tags + * The desired network tags to be applied to all nodes in the node pool. + * If this field is not present, the tags will not be changed. Otherwise, + * the existing network tags will be *replaced* with the provided tags. + * @type NodeTaints $taints + * The desired node taints to be applied to all nodes in the node pool. + * If this field is not present, the taints will not be changed. Otherwise, + * the existing node taints will be *replaced* with the provided taints. + * @type NodeLabels $labels + * The desired node labels to be applied to all nodes in the node pool. + * If this field is not present, the labels will not be changed. Otherwise, + * the existing node labels will be *replaced* with the provided labels. + * @type LinuxNodeConfig $linuxNodeConfig + * Parameters that can be configured on Linux nodes. + * @type NodeKubeletConfig $kubeletConfig + * Node kubelet configs. + * @type NodeNetworkConfig $nodeNetworkConfig + * Node network config. + * @type GcfsConfig $gcfsConfig + * GCFS config. + * @type ConfidentialNodes $confidentialNodes + * Confidential nodes config. + * All the nodes in the node pool will be Confidential VM once enabled. + * @type VirtualNIC $gvnic + * Enable or disable gvnic on the node pool. + * @type string $etag + * The current etag of the node pool. + * If an etag is provided and does not match the current etag of the node + * pool, update will be blocked and an ABORTED error will be returned. + * @type FastSocket $fastSocket + * Enable or disable NCCL fast socket for the node pool. + * @type NodePoolLoggingConfig $loggingConfig + * Logging configuration. + * @type ResourceLabels $resourceLabels + * The resource labels for the node pool to use to annotate any related + * Google Compute Engine resources. + * @type WindowsNodeConfig $windowsNodeConfig + * Parameters that can be configured on Windows nodes. + * @type string $machineType + * Optional. The desired [Google Compute Engine machine + * type](https://cloud.google.com/compute/docs/machine-types) for nodes in the + * node pool. Initiates an upgrade operation that migrates the nodes in the + * node pool to the specified machine type. + * @type string $diskType + * Optional. The desired disk type (e.g. 'pd-standard', 'pd-ssd' or + * 'pd-balanced') for nodes in the node pool. + * Initiates an upgrade operation that migrates the nodes in the + * node pool to the specified disk type. + * @type int $diskSizeGb + * Optional. The desired disk size for nodes in the node pool specified in GB. + * The smallest allowed disk size is 10GB. + * Initiates an upgrade operation that migrates the nodes in the + * node pool to the specified disk size. + * @type ResourceManagerTags $resourceManagerTags + * Desired resource manager tag keys and values to be attached to the nodes + * for managing Compute Engine firewalls using Network Firewall Policies. + * Existing tags will be replaced with new values. + * @type QueuedProvisioning $queuedProvisioning + * Specifies the configuration of queued provisioning. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function updateNodePool($nodeVersion, $imageType, array $optionalArgs = []) + { + $request = new UpdateNodePoolRequest(); + $requestParamHeaders = []; + $request->setNodeVersion($nodeVersion); + $request->setImageType($imageType); + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['nodePoolId'])) { + $request->setNodePoolId($optionalArgs['nodePoolId']); + $requestParamHeaders['node_pool_id'] = $optionalArgs['nodePoolId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + if (isset($optionalArgs['locations'])) { + $request->setLocations($optionalArgs['locations']); + } + + if (isset($optionalArgs['workloadMetadataConfig'])) { + $request->setWorkloadMetadataConfig($optionalArgs['workloadMetadataConfig']); + } + + if (isset($optionalArgs['upgradeSettings'])) { + $request->setUpgradeSettings($optionalArgs['upgradeSettings']); + } + + if (isset($optionalArgs['tags'])) { + $request->setTags($optionalArgs['tags']); + } + + if (isset($optionalArgs['taints'])) { + $request->setTaints($optionalArgs['taints']); + } + + if (isset($optionalArgs['labels'])) { + $request->setLabels($optionalArgs['labels']); + } + + if (isset($optionalArgs['linuxNodeConfig'])) { + $request->setLinuxNodeConfig($optionalArgs['linuxNodeConfig']); + } + + if (isset($optionalArgs['kubeletConfig'])) { + $request->setKubeletConfig($optionalArgs['kubeletConfig']); + } + + if (isset($optionalArgs['nodeNetworkConfig'])) { + $request->setNodeNetworkConfig($optionalArgs['nodeNetworkConfig']); + } + + if (isset($optionalArgs['gcfsConfig'])) { + $request->setGcfsConfig($optionalArgs['gcfsConfig']); + } + + if (isset($optionalArgs['confidentialNodes'])) { + $request->setConfidentialNodes($optionalArgs['confidentialNodes']); + } + + if (isset($optionalArgs['gvnic'])) { + $request->setGvnic($optionalArgs['gvnic']); + } + + if (isset($optionalArgs['etag'])) { + $request->setEtag($optionalArgs['etag']); + } + + if (isset($optionalArgs['fastSocket'])) { + $request->setFastSocket($optionalArgs['fastSocket']); + } + + if (isset($optionalArgs['loggingConfig'])) { + $request->setLoggingConfig($optionalArgs['loggingConfig']); + } + + if (isset($optionalArgs['resourceLabels'])) { + $request->setResourceLabels($optionalArgs['resourceLabels']); + } + + if (isset($optionalArgs['windowsNodeConfig'])) { + $request->setWindowsNodeConfig($optionalArgs['windowsNodeConfig']); + } + + if (isset($optionalArgs['machineType'])) { + $request->setMachineType($optionalArgs['machineType']); + } + + if (isset($optionalArgs['diskType'])) { + $request->setDiskType($optionalArgs['diskType']); + } + + if (isset($optionalArgs['diskSizeGb'])) { + $request->setDiskSizeGb($optionalArgs['diskSizeGb']); + } + + if (isset($optionalArgs['resourceManagerTags'])) { + $request->setResourceManagerTags($optionalArgs['resourceManagerTags']); + } + + if (isset($optionalArgs['queuedProvisioning'])) { + $request->setQueuedProvisioning($optionalArgs['queuedProvisioning']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('UpdateNodePool', Operation::class, $optionalArgs, $request)->wait(); + } +} diff --git a/owl-bot-staging/Container/v1/src/V1/gapic_metadata.json b/owl-bot-staging/Container/v1/src/V1/gapic_metadata.json new file mode 100644 index 000000000000..b40efd84195c --- /dev/null +++ b/owl-bot-staging/Container/v1/src/V1/gapic_metadata.json @@ -0,0 +1,188 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", + "language": "php", + "protoPackage": "google.container.v1", + "libraryPackage": "Google\\Cloud\\Container\\V1", + "services": { + "ClusterManager": { + "clients": { + "grpc": { + "libraryClient": "ClusterManagerGapicClient", + "rpcs": { + "CancelOperation": { + "methods": [ + "cancelOperation" + ] + }, + "CheckAutopilotCompatibility": { + "methods": [ + "checkAutopilotCompatibility" + ] + }, + "CompleteIPRotation": { + "methods": [ + "completeIPRotation" + ] + }, + "CompleteNodePoolUpgrade": { + "methods": [ + "completeNodePoolUpgrade" + ] + }, + "CreateCluster": { + "methods": [ + "createCluster" + ] + }, + "CreateNodePool": { + "methods": [ + "createNodePool" + ] + }, + "DeleteCluster": { + "methods": [ + "deleteCluster" + ] + }, + "DeleteNodePool": { + "methods": [ + "deleteNodePool" + ] + }, + "GetCluster": { + "methods": [ + "getCluster" + ] + }, + "GetJSONWebKeys": { + "methods": [ + "getJSONWebKeys" + ] + }, + "GetNodePool": { + "methods": [ + "getNodePool" + ] + }, + "GetOperation": { + "methods": [ + "getOperation" + ] + }, + "GetServerConfig": { + "methods": [ + "getServerConfig" + ] + }, + "ListClusters": { + "methods": [ + "listClusters" + ] + }, + "ListNodePools": { + "methods": [ + "listNodePools" + ] + }, + "ListOperations": { + "methods": [ + "listOperations" + ] + }, + "ListUsableSubnetworks": { + "methods": [ + "listUsableSubnetworks" + ] + }, + "RollbackNodePoolUpgrade": { + "methods": [ + "rollbackNodePoolUpgrade" + ] + }, + "SetAddonsConfig": { + "methods": [ + "setAddonsConfig" + ] + }, + "SetLabels": { + "methods": [ + "setLabels" + ] + }, + "SetLegacyAbac": { + "methods": [ + "setLegacyAbac" + ] + }, + "SetLocations": { + "methods": [ + "setLocations" + ] + }, + "SetLoggingService": { + "methods": [ + "setLoggingService" + ] + }, + "SetMaintenancePolicy": { + "methods": [ + "setMaintenancePolicy" + ] + }, + "SetMasterAuth": { + "methods": [ + "setMasterAuth" + ] + }, + "SetMonitoringService": { + "methods": [ + "setMonitoringService" + ] + }, + "SetNetworkPolicy": { + "methods": [ + "setNetworkPolicy" + ] + }, + "SetNodePoolAutoscaling": { + "methods": [ + "setNodePoolAutoscaling" + ] + }, + "SetNodePoolManagement": { + "methods": [ + "setNodePoolManagement" + ] + }, + "SetNodePoolSize": { + "methods": [ + "setNodePoolSize" + ] + }, + "StartIPRotation": { + "methods": [ + "startIPRotation" + ] + }, + "UpdateCluster": { + "methods": [ + "updateCluster" + ] + }, + "UpdateMaster": { + "methods": [ + "updateMaster" + ] + }, + "UpdateNodePool": { + "methods": [ + "updateNodePool" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_client_config.json b/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_client_config.json new file mode 100644 index 000000000000..12436c70b15c --- /dev/null +++ b/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_client_config.json @@ -0,0 +1,215 @@ +{ + "interfaces": { + "google.container.v1.ClusterManager": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE", + "DEADLINE_EXCEEDED" + ], + "no_retry_1_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 20000 + }, + "no_retry_1_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 45000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 45000, + "total_timeout_millis": 45000 + } + }, + "methods": { + "CancelOperation": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CheckAutopilotCompatibility": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CompleteIPRotation": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CompleteNodePoolUpgrade": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreateCluster": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CreateNodePool": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteCluster": { + "timeout_millis": 20000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteNodePool": { + "timeout_millis": 20000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetCluster": { + "timeout_millis": 20000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetJSONWebKeys": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetNodePool": { + "timeout_millis": 20000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetOperation": { + "timeout_millis": 20000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetServerConfig": { + "timeout_millis": 20000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListClusters": { + "timeout_millis": 20000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListNodePools": { + "timeout_millis": 20000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListOperations": { + "timeout_millis": 20000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListUsableSubnetworks": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "RollbackNodePoolUpgrade": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "SetAddonsConfig": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "SetLabels": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "SetLegacyAbac": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "SetLocations": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "SetLoggingService": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "SetMaintenancePolicy": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "SetMasterAuth": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "SetMonitoringService": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "SetNetworkPolicy": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "SetNodePoolAutoscaling": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "SetNodePoolManagement": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "SetNodePoolSize": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "StartIPRotation": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "UpdateCluster": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "UpdateMaster": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "UpdateNodePool": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_descriptor_config.php b/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_descriptor_config.php new file mode 100644 index 000000000000..1b330b402c69 --- /dev/null +++ b/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_descriptor_config.php @@ -0,0 +1,1005 @@ + [ + 'google.container.v1.ClusterManager' => [ + 'CancelOperation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'project_id', + 'fieldAccessors' => [ + 'getProjectId', + ], + ], + [ + 'keyName' => 'zone', + 'fieldAccessors' => [ + 'getZone', + ], + ], + [ + 'keyName' => 'operation_id', + 'fieldAccessors' => [ + 'getOperationId', + ], + ], + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'CheckAutopilotCompatibility' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Container\V1\CheckAutopilotCompatibilityResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'CompleteIPRotation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Container\V1\Operation', + 'headerParams' => [ + [ + 'keyName' => 'project_id', + 'fieldAccessors' => [ + 'getProjectId', + ], + ], + [ + 'keyName' => 'zone', + 'fieldAccessors' => [ + 'getZone', + ], + ], + [ + 'keyName' => 'cluster_id', + 'fieldAccessors' => [ + 'getClusterId', + ], + ], + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'CompleteNodePoolUpgrade' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'CreateCluster' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Container\V1\Operation', + 'headerParams' => [ + [ + 'keyName' => 'project_id', + 'fieldAccessors' => [ + 'getProjectId', + ], + ], + [ + 'keyName' => 'zone', + 'fieldAccessors' => [ + 'getZone', + ], + ], + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateNodePool' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Container\V1\Operation', + 'headerParams' => [ + [ + 'keyName' => 'project_id', + 'fieldAccessors' => [ + 'getProjectId', + ], + ], + [ + 'keyName' => 'zone', + 'fieldAccessors' => [ + 'getZone', + ], + ], + [ + 'keyName' => 'cluster_id', + 'fieldAccessors' => [ + 'getClusterId', + ], + ], + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteCluster' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Container\V1\Operation', + 'headerParams' => [ + [ + 'keyName' => 'project_id', + 'fieldAccessors' => [ + 'getProjectId', + ], + ], + [ + 'keyName' => 'zone', + 'fieldAccessors' => [ + 'getZone', + ], + ], + [ + 'keyName' => 'cluster_id', + 'fieldAccessors' => [ + 'getClusterId', + ], + ], + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteNodePool' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Container\V1\Operation', + 'headerParams' => [ + [ + 'keyName' => 'project_id', + 'fieldAccessors' => [ + 'getProjectId', + ], + ], + [ + 'keyName' => 'zone', + 'fieldAccessors' => [ + 'getZone', + ], + ], + [ + 'keyName' => 'cluster_id', + 'fieldAccessors' => [ + 'getClusterId', + ], + ], + [ + 'keyName' => 'node_pool_id', + 'fieldAccessors' => [ + 'getNodePoolId', + ], + ], + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetCluster' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Container\V1\Cluster', + 'headerParams' => [ + [ + 'keyName' => 'project_id', + 'fieldAccessors' => [ + 'getProjectId', + ], + ], + [ + 'keyName' => 'zone', + 'fieldAccessors' => [ + 'getZone', + ], + ], + [ + 'keyName' => 'cluster_id', + 'fieldAccessors' => [ + 'getClusterId', + ], + ], + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetJSONWebKeys' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Container\V1\GetJSONWebKeysResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'GetNodePool' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Container\V1\NodePool', + 'headerParams' => [ + [ + 'keyName' => 'project_id', + 'fieldAccessors' => [ + 'getProjectId', + ], + ], + [ + 'keyName' => 'zone', + 'fieldAccessors' => [ + 'getZone', + ], + ], + [ + 'keyName' => 'cluster_id', + 'fieldAccessors' => [ + 'getClusterId', + ], + ], + [ + 'keyName' => 'node_pool_id', + 'fieldAccessors' => [ + 'getNodePoolId', + ], + ], + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Container\V1\Operation', + 'headerParams' => [ + [ + 'keyName' => 'project_id', + 'fieldAccessors' => [ + 'getProjectId', + ], + ], + [ + 'keyName' => 'zone', + 'fieldAccessors' => [ + 'getZone', + ], + ], + [ + 'keyName' => 'operation_id', + 'fieldAccessors' => [ + 'getOperationId', + ], + ], + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetServerConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Container\V1\ServerConfig', + 'headerParams' => [ + [ + 'keyName' => 'project_id', + 'fieldAccessors' => [ + 'getProjectId', + ], + ], + [ + 'keyName' => 'zone', + 'fieldAccessors' => [ + 'getZone', + ], + ], + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListClusters' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Container\V1\ListClustersResponse', + 'headerParams' => [ + [ + 'keyName' => 'project_id', + 'fieldAccessors' => [ + 'getProjectId', + ], + ], + [ + 'keyName' => 'zone', + 'fieldAccessors' => [ + 'getZone', + ], + ], + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListNodePools' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Container\V1\ListNodePoolsResponse', + 'headerParams' => [ + [ + 'keyName' => 'project_id', + 'fieldAccessors' => [ + 'getProjectId', + ], + ], + [ + 'keyName' => 'zone', + 'fieldAccessors' => [ + 'getZone', + ], + ], + [ + 'keyName' => 'cluster_id', + 'fieldAccessors' => [ + 'getClusterId', + ], + ], + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListOperations' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Container\V1\ListOperationsResponse', + 'headerParams' => [ + [ + 'keyName' => 'project_id', + 'fieldAccessors' => [ + 'getProjectId', + ], + ], + [ + 'keyName' => 'zone', + 'fieldAccessors' => [ + 'getZone', + ], + ], + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListUsableSubnetworks' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getSubnetworks', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Container\V1\ListUsableSubnetworksResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'RollbackNodePoolUpgrade' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Container\V1\Operation', + 'headerParams' => [ + [ + 'keyName' => 'project_id', + 'fieldAccessors' => [ + 'getProjectId', + ], + ], + [ + 'keyName' => 'zone', + 'fieldAccessors' => [ + 'getZone', + ], + ], + [ + 'keyName' => 'cluster_id', + 'fieldAccessors' => [ + 'getClusterId', + ], + ], + [ + 'keyName' => 'node_pool_id', + 'fieldAccessors' => [ + 'getNodePoolId', + ], + ], + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'SetAddonsConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Container\V1\Operation', + 'headerParams' => [ + [ + 'keyName' => 'project_id', + 'fieldAccessors' => [ + 'getProjectId', + ], + ], + [ + 'keyName' => 'zone', + 'fieldAccessors' => [ + 'getZone', + ], + ], + [ + 'keyName' => 'cluster_id', + 'fieldAccessors' => [ + 'getClusterId', + ], + ], + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'SetLabels' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Container\V1\Operation', + 'headerParams' => [ + [ + 'keyName' => 'project_id', + 'fieldAccessors' => [ + 'getProjectId', + ], + ], + [ + 'keyName' => 'zone', + 'fieldAccessors' => [ + 'getZone', + ], + ], + [ + 'keyName' => 'cluster_id', + 'fieldAccessors' => [ + 'getClusterId', + ], + ], + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'SetLegacyAbac' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Container\V1\Operation', + 'headerParams' => [ + [ + 'keyName' => 'project_id', + 'fieldAccessors' => [ + 'getProjectId', + ], + ], + [ + 'keyName' => 'zone', + 'fieldAccessors' => [ + 'getZone', + ], + ], + [ + 'keyName' => 'cluster_id', + 'fieldAccessors' => [ + 'getClusterId', + ], + ], + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'SetLocations' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Container\V1\Operation', + 'headerParams' => [ + [ + 'keyName' => 'project_id', + 'fieldAccessors' => [ + 'getProjectId', + ], + ], + [ + 'keyName' => 'zone', + 'fieldAccessors' => [ + 'getZone', + ], + ], + [ + 'keyName' => 'cluster_id', + 'fieldAccessors' => [ + 'getClusterId', + ], + ], + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'SetLoggingService' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Container\V1\Operation', + 'headerParams' => [ + [ + 'keyName' => 'project_id', + 'fieldAccessors' => [ + 'getProjectId', + ], + ], + [ + 'keyName' => 'zone', + 'fieldAccessors' => [ + 'getZone', + ], + ], + [ + 'keyName' => 'cluster_id', + 'fieldAccessors' => [ + 'getClusterId', + ], + ], + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'SetMaintenancePolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Container\V1\Operation', + 'headerParams' => [ + [ + 'keyName' => 'project_id', + 'fieldAccessors' => [ + 'getProjectId', + ], + ], + [ + 'keyName' => 'zone', + 'fieldAccessors' => [ + 'getZone', + ], + ], + [ + 'keyName' => 'cluster_id', + 'fieldAccessors' => [ + 'getClusterId', + ], + ], + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'SetMasterAuth' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Container\V1\Operation', + 'headerParams' => [ + [ + 'keyName' => 'project_id', + 'fieldAccessors' => [ + 'getProjectId', + ], + ], + [ + 'keyName' => 'zone', + 'fieldAccessors' => [ + 'getZone', + ], + ], + [ + 'keyName' => 'cluster_id', + 'fieldAccessors' => [ + 'getClusterId', + ], + ], + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'SetMonitoringService' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Container\V1\Operation', + 'headerParams' => [ + [ + 'keyName' => 'project_id', + 'fieldAccessors' => [ + 'getProjectId', + ], + ], + [ + 'keyName' => 'zone', + 'fieldAccessors' => [ + 'getZone', + ], + ], + [ + 'keyName' => 'cluster_id', + 'fieldAccessors' => [ + 'getClusterId', + ], + ], + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'SetNetworkPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Container\V1\Operation', + 'headerParams' => [ + [ + 'keyName' => 'project_id', + 'fieldAccessors' => [ + 'getProjectId', + ], + ], + [ + 'keyName' => 'zone', + 'fieldAccessors' => [ + 'getZone', + ], + ], + [ + 'keyName' => 'cluster_id', + 'fieldAccessors' => [ + 'getClusterId', + ], + ], + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'SetNodePoolAutoscaling' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Container\V1\Operation', + 'headerParams' => [ + [ + 'keyName' => 'project_id', + 'fieldAccessors' => [ + 'getProjectId', + ], + ], + [ + 'keyName' => 'zone', + 'fieldAccessors' => [ + 'getZone', + ], + ], + [ + 'keyName' => 'cluster_id', + 'fieldAccessors' => [ + 'getClusterId', + ], + ], + [ + 'keyName' => 'node_pool_id', + 'fieldAccessors' => [ + 'getNodePoolId', + ], + ], + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'SetNodePoolManagement' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Container\V1\Operation', + 'headerParams' => [ + [ + 'keyName' => 'project_id', + 'fieldAccessors' => [ + 'getProjectId', + ], + ], + [ + 'keyName' => 'zone', + 'fieldAccessors' => [ + 'getZone', + ], + ], + [ + 'keyName' => 'cluster_id', + 'fieldAccessors' => [ + 'getClusterId', + ], + ], + [ + 'keyName' => 'node_pool_id', + 'fieldAccessors' => [ + 'getNodePoolId', + ], + ], + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'SetNodePoolSize' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Container\V1\Operation', + 'headerParams' => [ + [ + 'keyName' => 'project_id', + 'fieldAccessors' => [ + 'getProjectId', + ], + ], + [ + 'keyName' => 'zone', + 'fieldAccessors' => [ + 'getZone', + ], + ], + [ + 'keyName' => 'cluster_id', + 'fieldAccessors' => [ + 'getClusterId', + ], + ], + [ + 'keyName' => 'node_pool_id', + 'fieldAccessors' => [ + 'getNodePoolId', + ], + ], + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'StartIPRotation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Container\V1\Operation', + 'headerParams' => [ + [ + 'keyName' => 'project_id', + 'fieldAccessors' => [ + 'getProjectId', + ], + ], + [ + 'keyName' => 'zone', + 'fieldAccessors' => [ + 'getZone', + ], + ], + [ + 'keyName' => 'cluster_id', + 'fieldAccessors' => [ + 'getClusterId', + ], + ], + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'UpdateCluster' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Container\V1\Operation', + 'headerParams' => [ + [ + 'keyName' => 'project_id', + 'fieldAccessors' => [ + 'getProjectId', + ], + ], + [ + 'keyName' => 'zone', + 'fieldAccessors' => [ + 'getZone', + ], + ], + [ + 'keyName' => 'cluster_id', + 'fieldAccessors' => [ + 'getClusterId', + ], + ], + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'UpdateMaster' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Container\V1\Operation', + 'headerParams' => [ + [ + 'keyName' => 'project_id', + 'fieldAccessors' => [ + 'getProjectId', + ], + ], + [ + 'keyName' => 'zone', + 'fieldAccessors' => [ + 'getZone', + ], + ], + [ + 'keyName' => 'cluster_id', + 'fieldAccessors' => [ + 'getClusterId', + ], + ], + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'UpdateNodePool' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Container\V1\Operation', + 'headerParams' => [ + [ + 'keyName' => 'project_id', + 'fieldAccessors' => [ + 'getProjectId', + ], + ], + [ + 'keyName' => 'zone', + 'fieldAccessors' => [ + 'getZone', + ], + ], + [ + 'keyName' => 'cluster_id', + 'fieldAccessors' => [ + 'getClusterId', + ], + ], + [ + 'keyName' => 'node_pool_id', + 'fieldAccessors' => [ + 'getNodePoolId', + ], + ], + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'topic' => 'projects/{project}/topics/{topic}', + ], + ], + ], +]; diff --git a/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_rest_client_config.php b/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_rest_client_config.php new file mode 100644 index 000000000000..378a10f34ef5 --- /dev/null +++ b/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_rest_client_config.php @@ -0,0 +1,1091 @@ + [ + 'google.container.v1.ClusterManager' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/operations/{operation_id}:cancel', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'operation_id' => [ + 'getters' => [ + 'getOperationId', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'CheckAutopilotCompatibility' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:checkAutopilotCompatibility', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'CompleteIPRotation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:completeIpRotation', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:completeIpRotation', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'CompleteNodePoolUpgrade' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:completeUpgrade', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'CreateCluster' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/clusters', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'CreateNodePool' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/clusters/*}/nodePools', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'DeleteCluster' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'DeleteNodePool' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'node_pool_id' => [ + 'getters' => [ + 'getNodePoolId', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'GetCluster' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'GetJSONWebKeys' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/clusters/*}/jwks', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'GetNodePool' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'node_pool_id' => [ + 'getters' => [ + 'getNodePoolId', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/operations/{operation_id}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'operation_id' => [ + 'getters' => [ + 'getOperationId', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'GetServerConfig' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}/serverConfig', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/serverconfig', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'ListClusters' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/clusters', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'ListNodePools' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/clusters/*}/nodePools', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/operations', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/operations', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'ListUsableSubnetworks' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*}/aggregated/usableSubnetworks', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'RollbackNodePoolUpgrade' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:rollback', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}:rollback', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'node_pool_id' => [ + 'getters' => [ + 'getNodePoolId', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'SetAddonsConfig' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setAddons', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/addons', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'SetLabels' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setResourceLabels', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/resourceLabels', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'SetLegacyAbac' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setLegacyAbac', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/legacyAbac', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'SetLocations' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setLocations', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/locations', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'SetLoggingService' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setLogging', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/logging', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'SetMaintenancePolicy' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setMaintenancePolicy', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMaintenancePolicy', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'SetMasterAuth' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setMasterAuth', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMasterAuth', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'SetMonitoringService' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setMonitoring', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/monitoring', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'SetNetworkPolicy' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setNetworkPolicy', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setNetworkPolicy', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'SetNodePoolAutoscaling' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setAutoscaling', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/autoscaling', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'node_pool_id' => [ + 'getters' => [ + 'getNodePoolId', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'SetNodePoolManagement' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setManagement', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/setManagement', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'node_pool_id' => [ + 'getters' => [ + 'getNodePoolId', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'SetNodePoolSize' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setSize', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/setSize', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'node_pool_id' => [ + 'getters' => [ + 'getNodePoolId', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'StartIPRotation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:startIpRotation', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:startIpRotation', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'UpdateCluster' => [ + 'method' => 'put', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'put', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'UpdateMaster' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:updateMaster', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/master', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'UpdateNodePool' => [ + 'method' => 'put', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/update', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'node_pool_id' => [ + 'getters' => [ + 'getNodePoolId', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Container/v1/tests/Unit/V1/Client/ClusterManagerClientTest.php b/owl-bot-staging/Container/v1/tests/Unit/V1/Client/ClusterManagerClientTest.php new file mode 100644 index 000000000000..8030f9685c5c --- /dev/null +++ b/owl-bot-staging/Container/v1/tests/Unit/V1/Client/ClusterManagerClientTest.php @@ -0,0 +1,2644 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return ClusterManagerClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new ClusterManagerClient($options); + } + + /** @test */ + public function cancelOperationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + $request = new CancelOperationRequest(); + $gapicClient->cancelOperation($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/CancelOperation', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function cancelOperationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new CancelOperationRequest(); + try { + $gapicClient->cancelOperation($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function checkAutopilotCompatibilityTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $summary = 'summary-1857640538'; + $expectedResponse = new CheckAutopilotCompatibilityResponse(); + $expectedResponse->setSummary($summary); + $transport->addResponse($expectedResponse); + $request = new CheckAutopilotCompatibilityRequest(); + $response = $gapicClient->checkAutopilotCompatibility($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/CheckAutopilotCompatibility', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function checkAutopilotCompatibilityExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new CheckAutopilotCompatibilityRequest(); + try { + $gapicClient->checkAutopilotCompatibility($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function completeIPRotationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + $request = new CompleteIPRotationRequest(); + $response = $gapicClient->completeIPRotation($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/CompleteIPRotation', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function completeIPRotationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new CompleteIPRotationRequest(); + try { + $gapicClient->completeIPRotation($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function completeNodePoolUpgradeTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + $request = new CompleteNodePoolUpgradeRequest(); + $gapicClient->completeNodePoolUpgrade($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/CompleteNodePoolUpgrade', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function completeNodePoolUpgradeExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new CompleteNodePoolUpgradeRequest(); + try { + $gapicClient->completeNodePoolUpgrade($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createClusterTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $cluster = new Cluster(); + $request = (new CreateClusterRequest()) + ->setCluster($cluster); + $response = $gapicClient->createCluster($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/CreateCluster', $actualFuncCall); + $actualValue = $actualRequestObject->getCluster(); + $this->assertProtobufEquals($cluster, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createClusterExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $cluster = new Cluster(); + $request = (new CreateClusterRequest()) + ->setCluster($cluster); + try { + $gapicClient->createCluster($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createNodePoolTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $nodePool = new NodePool(); + $request = (new CreateNodePoolRequest()) + ->setNodePool($nodePool); + $response = $gapicClient->createNodePool($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/CreateNodePool', $actualFuncCall); + $actualValue = $actualRequestObject->getNodePool(); + $this->assertProtobufEquals($nodePool, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createNodePoolExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $nodePool = new NodePool(); + $request = (new CreateNodePoolRequest()) + ->setNodePool($nodePool); + try { + $gapicClient->createNodePool($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteClusterTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + $request = new DeleteClusterRequest(); + $response = $gapicClient->deleteCluster($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/DeleteCluster', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteClusterExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new DeleteClusterRequest(); + try { + $gapicClient->deleteCluster($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteNodePoolTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + $request = new DeleteNodePoolRequest(); + $response = $gapicClient->deleteNodePool($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/DeleteNodePool', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteNodePoolExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new DeleteNodePoolRequest(); + try { + $gapicClient->deleteNodePool($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getClusterTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $description = 'description-1724546052'; + $initialNodeCount = 1682564205; + $loggingService = 'loggingService-1700501035'; + $monitoringService = 'monitoringService1469270462'; + $network = 'network1843485230'; + $clusterIpv4Cidr = 'clusterIpv4Cidr-141875831'; + $subnetwork = 'subnetwork-1302785042'; + $enableKubernetesAlpha = false; + $labelFingerprint = 'labelFingerprint714995737'; + $selfLink = 'selfLink-1691268851'; + $zone2 = 'zone2-696322977'; + $endpoint = 'endpoint1741102485'; + $initialClusterVersion = 'initialClusterVersion-276373352'; + $currentMasterVersion = 'currentMasterVersion-920953983'; + $currentNodeVersion = 'currentNodeVersion-407476063'; + $createTime = 'createTime-493574096'; + $statusMessage = 'statusMessage-239442758'; + $nodeIpv4CidrSize = 1181176815; + $servicesIpv4Cidr = 'servicesIpv4Cidr1966438125'; + $currentNodeCount = 178977560; + $expireTime = 'expireTime-96179731'; + $location = 'location1901043637'; + $enableTpu = false; + $tpuIpv4CidrBlock = 'tpuIpv4CidrBlock1137906646'; + $id = 'id3355'; + $etag = 'etag3123477'; + $expectedResponse = new Cluster(); + $expectedResponse->setName($name2); + $expectedResponse->setDescription($description); + $expectedResponse->setInitialNodeCount($initialNodeCount); + $expectedResponse->setLoggingService($loggingService); + $expectedResponse->setMonitoringService($monitoringService); + $expectedResponse->setNetwork($network); + $expectedResponse->setClusterIpv4Cidr($clusterIpv4Cidr); + $expectedResponse->setSubnetwork($subnetwork); + $expectedResponse->setEnableKubernetesAlpha($enableKubernetesAlpha); + $expectedResponse->setLabelFingerprint($labelFingerprint); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setZone($zone2); + $expectedResponse->setEndpoint($endpoint); + $expectedResponse->setInitialClusterVersion($initialClusterVersion); + $expectedResponse->setCurrentMasterVersion($currentMasterVersion); + $expectedResponse->setCurrentNodeVersion($currentNodeVersion); + $expectedResponse->setCreateTime($createTime); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setNodeIpv4CidrSize($nodeIpv4CidrSize); + $expectedResponse->setServicesIpv4Cidr($servicesIpv4Cidr); + $expectedResponse->setCurrentNodeCount($currentNodeCount); + $expectedResponse->setExpireTime($expireTime); + $expectedResponse->setLocation($location); + $expectedResponse->setEnableTpu($enableTpu); + $expectedResponse->setTpuIpv4CidrBlock($tpuIpv4CidrBlock); + $expectedResponse->setId($id); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + $request = new GetClusterRequest(); + $response = $gapicClient->getCluster($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/GetCluster', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getClusterExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new GetClusterRequest(); + try { + $gapicClient->getCluster($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getJSONWebKeysTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GetJSONWebKeysResponse(); + $transport->addResponse($expectedResponse); + $request = new GetJSONWebKeysRequest(); + $response = $gapicClient->getJSONWebKeys($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/GetJSONWebKeys', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getJSONWebKeysExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new GetJSONWebKeysRequest(); + try { + $gapicClient->getJSONWebKeys($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getNodePoolTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $initialNodeCount = 1682564205; + $selfLink = 'selfLink-1691268851'; + $version = 'version351608024'; + $statusMessage = 'statusMessage-239442758'; + $podIpv4CidrSize = 1098768716; + $etag = 'etag3123477'; + $expectedResponse = new NodePool(); + $expectedResponse->setName($name2); + $expectedResponse->setInitialNodeCount($initialNodeCount); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setVersion($version); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setPodIpv4CidrSize($podIpv4CidrSize); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + $request = new GetNodePoolRequest(); + $response = $gapicClient->getNodePool($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/GetNodePool', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getNodePoolExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new GetNodePoolRequest(); + try { + $gapicClient->getNodePool($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getOperationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + $request = new \Google\Cloud\Container\V1\GetOperationRequest(); + $response = $gapicClient->getOperation($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/GetOperation', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getOperationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new \Google\Cloud\Container\V1\GetOperationRequest(); + try { + $gapicClient->getOperation($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getServerConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $defaultClusterVersion = 'defaultClusterVersion111003029'; + $defaultImageType = 'defaultImageType-918225828'; + $expectedResponse = new ServerConfig(); + $expectedResponse->setDefaultClusterVersion($defaultClusterVersion); + $expectedResponse->setDefaultImageType($defaultImageType); + $transport->addResponse($expectedResponse); + $request = new GetServerConfigRequest(); + $response = $gapicClient->getServerConfig($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/GetServerConfig', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getServerConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new GetServerConfigRequest(); + try { + $gapicClient->getServerConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listClustersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ListClustersResponse(); + $transport->addResponse($expectedResponse); + $request = new ListClustersRequest(); + $response = $gapicClient->listClusters($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/ListClusters', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listClustersExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new ListClustersRequest(); + try { + $gapicClient->listClusters($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listNodePoolsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ListNodePoolsResponse(); + $transport->addResponse($expectedResponse); + $request = new ListNodePoolsRequest(); + $response = $gapicClient->listNodePools($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/ListNodePools', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listNodePoolsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new ListNodePoolsRequest(); + try { + $gapicClient->listNodePools($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listOperationsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ListOperationsResponse(); + $transport->addResponse($expectedResponse); + $request = new ListOperationsRequest(); + $response = $gapicClient->listOperations($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/ListOperations', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listOperationsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new ListOperationsRequest(); + try { + $gapicClient->listOperations($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listUsableSubnetworksTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $subnetworksElement = new UsableSubnetwork(); + $subnetworks = [ + $subnetworksElement, + ]; + $expectedResponse = new ListUsableSubnetworksResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setSubnetworks($subnetworks); + $transport->addResponse($expectedResponse); + $request = new ListUsableSubnetworksRequest(); + $response = $gapicClient->listUsableSubnetworks($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getSubnetworks()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/ListUsableSubnetworks', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listUsableSubnetworksExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new ListUsableSubnetworksRequest(); + try { + $gapicClient->listUsableSubnetworks($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function rollbackNodePoolUpgradeTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + $request = new RollbackNodePoolUpgradeRequest(); + $response = $gapicClient->rollbackNodePoolUpgrade($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/RollbackNodePoolUpgrade', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function rollbackNodePoolUpgradeExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new RollbackNodePoolUpgradeRequest(); + try { + $gapicClient->rollbackNodePoolUpgrade($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setAddonsConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $addonsConfig = new AddonsConfig(); + $request = (new SetAddonsConfigRequest()) + ->setAddonsConfig($addonsConfig); + $response = $gapicClient->setAddonsConfig($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/SetAddonsConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getAddonsConfig(); + $this->assertProtobufEquals($addonsConfig, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setAddonsConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $addonsConfig = new AddonsConfig(); + $request = (new SetAddonsConfigRequest()) + ->setAddonsConfig($addonsConfig); + try { + $gapicClient->setAddonsConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setLabelsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $resourceLabelsValue = 'resourceLabelsValue-1244473404'; + $resourceLabels = [ + 'resourceLabelsKey' => $resourceLabelsValue, + ]; + $labelFingerprint = 'labelFingerprint714995737'; + $request = (new SetLabelsRequest()) + ->setResourceLabels($resourceLabels) + ->setLabelFingerprint($labelFingerprint); + $response = $gapicClient->setLabels($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/SetLabels', $actualFuncCall); + $actualValue = $actualRequestObject->getResourceLabels(); + $this->assertProtobufEquals($resourceLabels, $actualValue); + $actualValue = $actualRequestObject->getLabelFingerprint(); + $this->assertProtobufEquals($labelFingerprint, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setLabelsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $resourceLabelsValue = 'resourceLabelsValue-1244473404'; + $resourceLabels = [ + 'resourceLabelsKey' => $resourceLabelsValue, + ]; + $labelFingerprint = 'labelFingerprint714995737'; + $request = (new SetLabelsRequest()) + ->setResourceLabels($resourceLabels) + ->setLabelFingerprint($labelFingerprint); + try { + $gapicClient->setLabels($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setLegacyAbacTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $enabled = false; + $request = (new SetLegacyAbacRequest()) + ->setEnabled($enabled); + $response = $gapicClient->setLegacyAbac($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/SetLegacyAbac', $actualFuncCall); + $actualValue = $actualRequestObject->getEnabled(); + $this->assertProtobufEquals($enabled, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setLegacyAbacExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $enabled = false; + $request = (new SetLegacyAbacRequest()) + ->setEnabled($enabled); + try { + $gapicClient->setLegacyAbac($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setLocationsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $locations = []; + $request = (new SetLocationsRequest()) + ->setLocations($locations); + $response = $gapicClient->setLocations($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/SetLocations', $actualFuncCall); + $actualValue = $actualRequestObject->getLocations(); + $this->assertProtobufEquals($locations, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setLocationsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $locations = []; + $request = (new SetLocationsRequest()) + ->setLocations($locations); + try { + $gapicClient->setLocations($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setLoggingServiceTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $loggingService = 'loggingService-1700501035'; + $request = (new SetLoggingServiceRequest()) + ->setLoggingService($loggingService); + $response = $gapicClient->setLoggingService($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/SetLoggingService', $actualFuncCall); + $actualValue = $actualRequestObject->getLoggingService(); + $this->assertProtobufEquals($loggingService, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setLoggingServiceExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $loggingService = 'loggingService-1700501035'; + $request = (new SetLoggingServiceRequest()) + ->setLoggingService($loggingService); + try { + $gapicClient->setLoggingService($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setMaintenancePolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $projectId = 'projectId-1969970175'; + $zone = 'zone3744684'; + $clusterId = 'clusterId240280960'; + $maintenancePolicy = new MaintenancePolicy(); + $request = (new SetMaintenancePolicyRequest()) + ->setProjectId($projectId) + ->setZone($zone) + ->setClusterId($clusterId) + ->setMaintenancePolicy($maintenancePolicy); + $response = $gapicClient->setMaintenancePolicy($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/SetMaintenancePolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getProjectId(); + $this->assertProtobufEquals($projectId, $actualValue); + $actualValue = $actualRequestObject->getZone(); + $this->assertProtobufEquals($zone, $actualValue); + $actualValue = $actualRequestObject->getClusterId(); + $this->assertProtobufEquals($clusterId, $actualValue); + $actualValue = $actualRequestObject->getMaintenancePolicy(); + $this->assertProtobufEquals($maintenancePolicy, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setMaintenancePolicyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $projectId = 'projectId-1969970175'; + $zone = 'zone3744684'; + $clusterId = 'clusterId240280960'; + $maintenancePolicy = new MaintenancePolicy(); + $request = (new SetMaintenancePolicyRequest()) + ->setProjectId($projectId) + ->setZone($zone) + ->setClusterId($clusterId) + ->setMaintenancePolicy($maintenancePolicy); + try { + $gapicClient->setMaintenancePolicy($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setMasterAuthTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $action = Action::UNKNOWN; + $update = new MasterAuth(); + $request = (new SetMasterAuthRequest()) + ->setAction($action) + ->setUpdate($update); + $response = $gapicClient->setMasterAuth($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/SetMasterAuth', $actualFuncCall); + $actualValue = $actualRequestObject->getAction(); + $this->assertProtobufEquals($action, $actualValue); + $actualValue = $actualRequestObject->getUpdate(); + $this->assertProtobufEquals($update, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setMasterAuthExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $action = Action::UNKNOWN; + $update = new MasterAuth(); + $request = (new SetMasterAuthRequest()) + ->setAction($action) + ->setUpdate($update); + try { + $gapicClient->setMasterAuth($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setMonitoringServiceTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $monitoringService = 'monitoringService1469270462'; + $request = (new SetMonitoringServiceRequest()) + ->setMonitoringService($monitoringService); + $response = $gapicClient->setMonitoringService($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/SetMonitoringService', $actualFuncCall); + $actualValue = $actualRequestObject->getMonitoringService(); + $this->assertProtobufEquals($monitoringService, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setMonitoringServiceExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $monitoringService = 'monitoringService1469270462'; + $request = (new SetMonitoringServiceRequest()) + ->setMonitoringService($monitoringService); + try { + $gapicClient->setMonitoringService($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setNetworkPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $networkPolicy = new NetworkPolicy(); + $request = (new SetNetworkPolicyRequest()) + ->setNetworkPolicy($networkPolicy); + $response = $gapicClient->setNetworkPolicy($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/SetNetworkPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getNetworkPolicy(); + $this->assertProtobufEquals($networkPolicy, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setNetworkPolicyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $networkPolicy = new NetworkPolicy(); + $request = (new SetNetworkPolicyRequest()) + ->setNetworkPolicy($networkPolicy); + try { + $gapicClient->setNetworkPolicy($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setNodePoolAutoscalingTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $autoscaling = new NodePoolAutoscaling(); + $request = (new SetNodePoolAutoscalingRequest()) + ->setAutoscaling($autoscaling); + $response = $gapicClient->setNodePoolAutoscaling($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/SetNodePoolAutoscaling', $actualFuncCall); + $actualValue = $actualRequestObject->getAutoscaling(); + $this->assertProtobufEquals($autoscaling, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setNodePoolAutoscalingExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $autoscaling = new NodePoolAutoscaling(); + $request = (new SetNodePoolAutoscalingRequest()) + ->setAutoscaling($autoscaling); + try { + $gapicClient->setNodePoolAutoscaling($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setNodePoolManagementTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $management = new NodeManagement(); + $request = (new SetNodePoolManagementRequest()) + ->setManagement($management); + $response = $gapicClient->setNodePoolManagement($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/SetNodePoolManagement', $actualFuncCall); + $actualValue = $actualRequestObject->getManagement(); + $this->assertProtobufEquals($management, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setNodePoolManagementExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $management = new NodeManagement(); + $request = (new SetNodePoolManagementRequest()) + ->setManagement($management); + try { + $gapicClient->setNodePoolManagement($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setNodePoolSizeTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $nodeCount = 1539922066; + $request = (new SetNodePoolSizeRequest()) + ->setNodeCount($nodeCount); + $response = $gapicClient->setNodePoolSize($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/SetNodePoolSize', $actualFuncCall); + $actualValue = $actualRequestObject->getNodeCount(); + $this->assertProtobufEquals($nodeCount, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setNodePoolSizeExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $nodeCount = 1539922066; + $request = (new SetNodePoolSizeRequest()) + ->setNodeCount($nodeCount); + try { + $gapicClient->setNodePoolSize($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function startIPRotationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + $request = new StartIPRotationRequest(); + $response = $gapicClient->startIPRotation($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/StartIPRotation', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function startIPRotationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new StartIPRotationRequest(); + try { + $gapicClient->startIPRotation($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateClusterTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $update = new ClusterUpdate(); + $request = (new UpdateClusterRequest()) + ->setUpdate($update); + $response = $gapicClient->updateCluster($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/UpdateCluster', $actualFuncCall); + $actualValue = $actualRequestObject->getUpdate(); + $this->assertProtobufEquals($update, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateClusterExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $update = new ClusterUpdate(); + $request = (new UpdateClusterRequest()) + ->setUpdate($update); + try { + $gapicClient->updateCluster($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateMasterTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $masterVersion = 'masterVersion-2139460613'; + $request = (new UpdateMasterRequest()) + ->setMasterVersion($masterVersion); + $response = $gapicClient->updateMaster($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/UpdateMaster', $actualFuncCall); + $actualValue = $actualRequestObject->getMasterVersion(); + $this->assertProtobufEquals($masterVersion, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateMasterExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $masterVersion = 'masterVersion-2139460613'; + $request = (new UpdateMasterRequest()) + ->setMasterVersion($masterVersion); + try { + $gapicClient->updateMaster($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateNodePoolTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $nodeVersion = 'nodeVersion1790136219'; + $imageType = 'imageType-1442758754'; + $request = (new UpdateNodePoolRequest()) + ->setNodeVersion($nodeVersion) + ->setImageType($imageType); + $response = $gapicClient->updateNodePool($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/UpdateNodePool', $actualFuncCall); + $actualValue = $actualRequestObject->getNodeVersion(); + $this->assertProtobufEquals($nodeVersion, $actualValue); + $actualValue = $actualRequestObject->getImageType(); + $this->assertProtobufEquals($imageType, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateNodePoolExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $nodeVersion = 'nodeVersion1790136219'; + $imageType = 'imageType-1442758754'; + $request = (new UpdateNodePoolRequest()) + ->setNodeVersion($nodeVersion) + ->setImageType($imageType); + try { + $gapicClient->updateNodePool($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function cancelOperationAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + $request = new CancelOperationRequest(); + $gapicClient->cancelOperationAsync($request)->wait(); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/CancelOperation', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/Container/v1/tests/Unit/V1/ClusterManagerClientTest.php b/owl-bot-staging/Container/v1/tests/Unit/V1/ClusterManagerClientTest.php new file mode 100644 index 000000000000..0689ca788340 --- /dev/null +++ b/owl-bot-staging/Container/v1/tests/Unit/V1/ClusterManagerClientTest.php @@ -0,0 +1,2476 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return ClusterManagerClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new ClusterManagerClient($options); + } + + /** @test */ + public function cancelOperationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + $gapicClient->cancelOperation(); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/CancelOperation', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function cancelOperationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->cancelOperation(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function checkAutopilotCompatibilityTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $summary = 'summary-1857640538'; + $expectedResponse = new CheckAutopilotCompatibilityResponse(); + $expectedResponse->setSummary($summary); + $transport->addResponse($expectedResponse); + $response = $gapicClient->checkAutopilotCompatibility(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/CheckAutopilotCompatibility', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function checkAutopilotCompatibilityExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->checkAutopilotCompatibility(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function completeIPRotationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + $response = $gapicClient->completeIPRotation(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/CompleteIPRotation', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function completeIPRotationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->completeIPRotation(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function completeNodePoolUpgradeTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + $gapicClient->completeNodePoolUpgrade(); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/CompleteNodePoolUpgrade', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function completeNodePoolUpgradeExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->completeNodePoolUpgrade(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createClusterTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $cluster = new Cluster(); + $response = $gapicClient->createCluster($cluster); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/CreateCluster', $actualFuncCall); + $actualValue = $actualRequestObject->getCluster(); + $this->assertProtobufEquals($cluster, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createClusterExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $cluster = new Cluster(); + try { + $gapicClient->createCluster($cluster); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createNodePoolTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $nodePool = new NodePool(); + $response = $gapicClient->createNodePool($nodePool); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/CreateNodePool', $actualFuncCall); + $actualValue = $actualRequestObject->getNodePool(); + $this->assertProtobufEquals($nodePool, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createNodePoolExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $nodePool = new NodePool(); + try { + $gapicClient->createNodePool($nodePool); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteClusterTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + $response = $gapicClient->deleteCluster(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/DeleteCluster', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteClusterExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->deleteCluster(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteNodePoolTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + $response = $gapicClient->deleteNodePool(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/DeleteNodePool', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteNodePoolExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->deleteNodePool(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getClusterTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $description = 'description-1724546052'; + $initialNodeCount = 1682564205; + $loggingService = 'loggingService-1700501035'; + $monitoringService = 'monitoringService1469270462'; + $network = 'network1843485230'; + $clusterIpv4Cidr = 'clusterIpv4Cidr-141875831'; + $subnetwork = 'subnetwork-1302785042'; + $enableKubernetesAlpha = false; + $labelFingerprint = 'labelFingerprint714995737'; + $selfLink = 'selfLink-1691268851'; + $zone2 = 'zone2-696322977'; + $endpoint = 'endpoint1741102485'; + $initialClusterVersion = 'initialClusterVersion-276373352'; + $currentMasterVersion = 'currentMasterVersion-920953983'; + $currentNodeVersion = 'currentNodeVersion-407476063'; + $createTime = 'createTime-493574096'; + $statusMessage = 'statusMessage-239442758'; + $nodeIpv4CidrSize = 1181176815; + $servicesIpv4Cidr = 'servicesIpv4Cidr1966438125'; + $currentNodeCount = 178977560; + $expireTime = 'expireTime-96179731'; + $location = 'location1901043637'; + $enableTpu = false; + $tpuIpv4CidrBlock = 'tpuIpv4CidrBlock1137906646'; + $id = 'id3355'; + $etag = 'etag3123477'; + $expectedResponse = new Cluster(); + $expectedResponse->setName($name2); + $expectedResponse->setDescription($description); + $expectedResponse->setInitialNodeCount($initialNodeCount); + $expectedResponse->setLoggingService($loggingService); + $expectedResponse->setMonitoringService($monitoringService); + $expectedResponse->setNetwork($network); + $expectedResponse->setClusterIpv4Cidr($clusterIpv4Cidr); + $expectedResponse->setSubnetwork($subnetwork); + $expectedResponse->setEnableKubernetesAlpha($enableKubernetesAlpha); + $expectedResponse->setLabelFingerprint($labelFingerprint); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setZone($zone2); + $expectedResponse->setEndpoint($endpoint); + $expectedResponse->setInitialClusterVersion($initialClusterVersion); + $expectedResponse->setCurrentMasterVersion($currentMasterVersion); + $expectedResponse->setCurrentNodeVersion($currentNodeVersion); + $expectedResponse->setCreateTime($createTime); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setNodeIpv4CidrSize($nodeIpv4CidrSize); + $expectedResponse->setServicesIpv4Cidr($servicesIpv4Cidr); + $expectedResponse->setCurrentNodeCount($currentNodeCount); + $expectedResponse->setExpireTime($expireTime); + $expectedResponse->setLocation($location); + $expectedResponse->setEnableTpu($enableTpu); + $expectedResponse->setTpuIpv4CidrBlock($tpuIpv4CidrBlock); + $expectedResponse->setId($id); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + $response = $gapicClient->getCluster(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/GetCluster', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getClusterExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->getCluster(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getJSONWebKeysTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GetJSONWebKeysResponse(); + $transport->addResponse($expectedResponse); + $response = $gapicClient->getJSONWebKeys(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/GetJSONWebKeys', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getJSONWebKeysExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->getJSONWebKeys(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getNodePoolTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $initialNodeCount = 1682564205; + $selfLink = 'selfLink-1691268851'; + $version = 'version351608024'; + $statusMessage = 'statusMessage-239442758'; + $podIpv4CidrSize = 1098768716; + $etag = 'etag3123477'; + $expectedResponse = new NodePool(); + $expectedResponse->setName($name2); + $expectedResponse->setInitialNodeCount($initialNodeCount); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setVersion($version); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setPodIpv4CidrSize($podIpv4CidrSize); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + $response = $gapicClient->getNodePool(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/GetNodePool', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getNodePoolExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->getNodePool(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getOperationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + $response = $gapicClient->getOperation(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/GetOperation', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getOperationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->getOperation(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getServerConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $defaultClusterVersion = 'defaultClusterVersion111003029'; + $defaultImageType = 'defaultImageType-918225828'; + $expectedResponse = new ServerConfig(); + $expectedResponse->setDefaultClusterVersion($defaultClusterVersion); + $expectedResponse->setDefaultImageType($defaultImageType); + $transport->addResponse($expectedResponse); + $response = $gapicClient->getServerConfig(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/GetServerConfig', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getServerConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->getServerConfig(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listClustersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ListClustersResponse(); + $transport->addResponse($expectedResponse); + $response = $gapicClient->listClusters(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/ListClusters', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listClustersExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->listClusters(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listNodePoolsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ListNodePoolsResponse(); + $transport->addResponse($expectedResponse); + $response = $gapicClient->listNodePools(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/ListNodePools', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listNodePoolsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->listNodePools(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listOperationsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ListOperationsResponse(); + $transport->addResponse($expectedResponse); + $response = $gapicClient->listOperations(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/ListOperations', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listOperationsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->listOperations(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listUsableSubnetworksTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $subnetworksElement = new UsableSubnetwork(); + $subnetworks = [ + $subnetworksElement, + ]; + $expectedResponse = new ListUsableSubnetworksResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setSubnetworks($subnetworks); + $transport->addResponse($expectedResponse); + $response = $gapicClient->listUsableSubnetworks(); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getSubnetworks()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/ListUsableSubnetworks', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listUsableSubnetworksExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->listUsableSubnetworks(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function rollbackNodePoolUpgradeTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + $response = $gapicClient->rollbackNodePoolUpgrade(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/RollbackNodePoolUpgrade', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function rollbackNodePoolUpgradeExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->rollbackNodePoolUpgrade(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setAddonsConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $addonsConfig = new AddonsConfig(); + $response = $gapicClient->setAddonsConfig($addonsConfig); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/SetAddonsConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getAddonsConfig(); + $this->assertProtobufEquals($addonsConfig, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setAddonsConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $addonsConfig = new AddonsConfig(); + try { + $gapicClient->setAddonsConfig($addonsConfig); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setLabelsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $resourceLabelsValue = 'resourceLabelsValue-1244473404'; + $resourceLabels = [ + 'resourceLabelsKey' => $resourceLabelsValue, + ]; + $labelFingerprint = 'labelFingerprint714995737'; + $response = $gapicClient->setLabels($resourceLabels, $labelFingerprint); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/SetLabels', $actualFuncCall); + $actualValue = $actualRequestObject->getResourceLabels(); + $this->assertProtobufEquals($resourceLabels, $actualValue); + $actualValue = $actualRequestObject->getLabelFingerprint(); + $this->assertProtobufEquals($labelFingerprint, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setLabelsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $resourceLabelsValue = 'resourceLabelsValue-1244473404'; + $resourceLabels = [ + 'resourceLabelsKey' => $resourceLabelsValue, + ]; + $labelFingerprint = 'labelFingerprint714995737'; + try { + $gapicClient->setLabels($resourceLabels, $labelFingerprint); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setLegacyAbacTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $enabled = false; + $response = $gapicClient->setLegacyAbac($enabled); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/SetLegacyAbac', $actualFuncCall); + $actualValue = $actualRequestObject->getEnabled(); + $this->assertProtobufEquals($enabled, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setLegacyAbacExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $enabled = false; + try { + $gapicClient->setLegacyAbac($enabled); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setLocationsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $locations = []; + $response = $gapicClient->setLocations($locations); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/SetLocations', $actualFuncCall); + $actualValue = $actualRequestObject->getLocations(); + $this->assertProtobufEquals($locations, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setLocationsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $locations = []; + try { + $gapicClient->setLocations($locations); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setLoggingServiceTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $loggingService = 'loggingService-1700501035'; + $response = $gapicClient->setLoggingService($loggingService); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/SetLoggingService', $actualFuncCall); + $actualValue = $actualRequestObject->getLoggingService(); + $this->assertProtobufEquals($loggingService, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setLoggingServiceExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $loggingService = 'loggingService-1700501035'; + try { + $gapicClient->setLoggingService($loggingService); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setMaintenancePolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $projectId = 'projectId-1969970175'; + $zone = 'zone3744684'; + $clusterId = 'clusterId240280960'; + $maintenancePolicy = new MaintenancePolicy(); + $response = $gapicClient->setMaintenancePolicy($projectId, $zone, $clusterId, $maintenancePolicy); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/SetMaintenancePolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getProjectId(); + $this->assertProtobufEquals($projectId, $actualValue); + $actualValue = $actualRequestObject->getZone(); + $this->assertProtobufEquals($zone, $actualValue); + $actualValue = $actualRequestObject->getClusterId(); + $this->assertProtobufEquals($clusterId, $actualValue); + $actualValue = $actualRequestObject->getMaintenancePolicy(); + $this->assertProtobufEquals($maintenancePolicy, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setMaintenancePolicyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $projectId = 'projectId-1969970175'; + $zone = 'zone3744684'; + $clusterId = 'clusterId240280960'; + $maintenancePolicy = new MaintenancePolicy(); + try { + $gapicClient->setMaintenancePolicy($projectId, $zone, $clusterId, $maintenancePolicy); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setMasterAuthTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $action = Action::UNKNOWN; + $update = new MasterAuth(); + $response = $gapicClient->setMasterAuth($action, $update); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/SetMasterAuth', $actualFuncCall); + $actualValue = $actualRequestObject->getAction(); + $this->assertProtobufEquals($action, $actualValue); + $actualValue = $actualRequestObject->getUpdate(); + $this->assertProtobufEquals($update, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setMasterAuthExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $action = Action::UNKNOWN; + $update = new MasterAuth(); + try { + $gapicClient->setMasterAuth($action, $update); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setMonitoringServiceTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $monitoringService = 'monitoringService1469270462'; + $response = $gapicClient->setMonitoringService($monitoringService); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/SetMonitoringService', $actualFuncCall); + $actualValue = $actualRequestObject->getMonitoringService(); + $this->assertProtobufEquals($monitoringService, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setMonitoringServiceExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $monitoringService = 'monitoringService1469270462'; + try { + $gapicClient->setMonitoringService($monitoringService); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setNetworkPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $networkPolicy = new NetworkPolicy(); + $response = $gapicClient->setNetworkPolicy($networkPolicy); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/SetNetworkPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getNetworkPolicy(); + $this->assertProtobufEquals($networkPolicy, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setNetworkPolicyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $networkPolicy = new NetworkPolicy(); + try { + $gapicClient->setNetworkPolicy($networkPolicy); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setNodePoolAutoscalingTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $autoscaling = new NodePoolAutoscaling(); + $response = $gapicClient->setNodePoolAutoscaling($autoscaling); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/SetNodePoolAutoscaling', $actualFuncCall); + $actualValue = $actualRequestObject->getAutoscaling(); + $this->assertProtobufEquals($autoscaling, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setNodePoolAutoscalingExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $autoscaling = new NodePoolAutoscaling(); + try { + $gapicClient->setNodePoolAutoscaling($autoscaling); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setNodePoolManagementTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $management = new NodeManagement(); + $response = $gapicClient->setNodePoolManagement($management); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/SetNodePoolManagement', $actualFuncCall); + $actualValue = $actualRequestObject->getManagement(); + $this->assertProtobufEquals($management, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setNodePoolManagementExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $management = new NodeManagement(); + try { + $gapicClient->setNodePoolManagement($management); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setNodePoolSizeTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $nodeCount = 1539922066; + $response = $gapicClient->setNodePoolSize($nodeCount); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/SetNodePoolSize', $actualFuncCall); + $actualValue = $actualRequestObject->getNodeCount(); + $this->assertProtobufEquals($nodeCount, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setNodePoolSizeExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $nodeCount = 1539922066; + try { + $gapicClient->setNodePoolSize($nodeCount); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function startIPRotationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + $response = $gapicClient->startIPRotation(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/StartIPRotation', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function startIPRotationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->startIPRotation(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateClusterTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $update = new ClusterUpdate(); + $response = $gapicClient->updateCluster($update); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/UpdateCluster', $actualFuncCall); + $actualValue = $actualRequestObject->getUpdate(); + $this->assertProtobufEquals($update, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateClusterExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $update = new ClusterUpdate(); + try { + $gapicClient->updateCluster($update); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateMasterTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $masterVersion = 'masterVersion-2139460613'; + $response = $gapicClient->updateMaster($masterVersion); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/UpdateMaster', $actualFuncCall); + $actualValue = $actualRequestObject->getMasterVersion(); + $this->assertProtobufEquals($masterVersion, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateMasterExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $masterVersion = 'masterVersion-2139460613'; + try { + $gapicClient->updateMaster($masterVersion); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateNodePoolTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $nodeVersion = 'nodeVersion1790136219'; + $imageType = 'imageType-1442758754'; + $response = $gapicClient->updateNodePool($nodeVersion, $imageType); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/UpdateNodePool', $actualFuncCall); + $actualValue = $actualRequestObject->getNodeVersion(); + $this->assertProtobufEquals($nodeVersion, $actualValue); + $actualValue = $actualRequestObject->getImageType(); + $this->assertProtobufEquals($imageType, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateNodePoolExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $nodeVersion = 'nodeVersion1790136219'; + $imageType = 'imageType-1442758754'; + try { + $gapicClient->updateNodePool($nodeVersion, $imageType); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } +} From 07acb5e6b015fcafb2379b5ffec83f6a495a4146 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 7 Jun 2024 18:58:51 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- Container/metadata/V1/ClusterService.php | Bin 52725 -> 52735 bytes Container/src/V1/ListOperationsRequest.php | 15 + .../Google/Container/V1/ClusterService.php | Bin 52735 -> 0 bytes .../Cloud/Container/V1/AcceleratorConfig.php | 235 -- .../V1/AdditionalNodeNetworkConfig.php | 102 - .../V1/AdditionalPodNetworkConfig.php | 150 - .../V1/AdditionalPodRangesConfig.php | 102 - .../Cloud/Container/V1/AddonsConfig.php | 613 ---- .../AdvancedDatapathObservabilityConfig.php | 146 - .../RelayMode.php | 71 - .../Container/V1/AdvancedMachineFeatures.php | 85 - .../V1/AuthenticatorGroupsConfig.php | 109 - .../Cloud/Container/V1/AutoUpgradeOptions.php | 114 - .../Google/Cloud/Container/V1/Autopilot.php | 111 - .../V1/AutopilotCompatibilityIssue.php | 248 -- .../AutopilotCompatibilityIssue/IssueType.php | 75 - .../V1/AutoprovisioningNodePoolDefaults.php | 537 --- .../Container/V1/BestEffortProvisioning.php | 117 - .../Container/V1/BinaryAuthorization.php | 118 - .../V1/BinaryAuthorization/EvaluationMode.php | 66 - .../Cloud/Container/V1/BlueGreenSettings.php | 123 - .../StandardRolloutPolicy.php | 158 - .../Container/V1/CancelOperationRequest.php | 249 -- .../V1/CheckAutopilotCompatibilityRequest.php | 72 - .../CheckAutopilotCompatibilityResponse.php | 101 - .../Container/V1/ClientCertificateConfig.php | 67 - .../Cloud/Container/V1/CloudRunConfig.php | 101 - .../V1/CloudRunConfig/LoadBalancerType.php | 64 - .../src/Google/Cloud/Container/V1/Cluster.php | 3164 ----------------- .../Cloud/Container/V1/Cluster/Status.php | 97 - .../Cloud/Container/V1/ClusterAutoscaling.php | 232 -- .../ClusterAutoscaling/AutoscalingProfile.php | 64 - .../Cloud/Container/V1/ClusterUpdate.php | 2473 ------------- .../V1/CompleteIPRotationRequest.php | 249 -- .../V1/CompleteNodePoolUpgradeRequest.php | 76 - .../Cloud/Container/V1/ConfidentialNodes.php | 68 - .../Container/V1/ConfigConnectorConfig.php | 67 - .../Container/V1/CostManagementConfig.php | 67 - .../Container/V1/CreateClusterRequest.php | 257 -- .../Container/V1/CreateNodePoolRequest.php | 302 -- .../Google/Cloud/Container/V1/DNSConfig.php | 135 - .../Cloud/Container/V1/DNSConfig/DNSScope.php | 64 - .../Cloud/Container/V1/DNSConfig/Provider.php | 71 - .../Container/V1/DailyMaintenanceWindow.php | 121 - .../Cloud/Container/V1/DatabaseEncryption.php | 229 -- .../V1/DatabaseEncryption/CurrentState.php | 95 - .../V1/DatabaseEncryption/OperationError.php | 149 - .../Container/V1/DatabaseEncryption/State.php | 65 - .../Cloud/Container/V1/DatapathProvider.php | 65 - .../Cloud/Container/V1/DefaultSnatStatus.php | 68 - .../Container/V1/DeleteClusterRequest.php | 249 -- .../Container/V1/DeleteNodePoolRequest.php | 300 -- .../Cloud/Container/V1/DnsCacheConfig.php | 67 - .../Cloud/Container/V1/EnterpriseConfig.php | 71 - .../V1/EnterpriseConfig/ClusterTier.php | 64 - .../V1/EphemeralStorageLocalSsdConfig.php | 132 - .../Google/Cloud/Container/V1/FastSocket.php | 67 - .../src/Google/Cloud/Container/V1/Fleet.php | 155 - .../V1/GPUDriverInstallationConfig.php | 78 - .../GPUDriverVersion.php | 75 - .../Cloud/Container/V1/GPUSharingConfig.php | 112 - .../GPUSharingConfig/GPUSharingStrategy.php | 57 - .../Cloud/Container/V1/GatewayAPIConfig.php | 67 - .../Container/V1/GatewayAPIConfig/Channel.php | 72 - .../V1/GcePersistentDiskCsiDriverConfig.php | 67 - .../Google/Cloud/Container/V1/GcfsConfig.php | 68 - .../V1/GcpFilestoreCsiDriverConfig.php | 67 - .../Container/V1/GcsFuseCsiDriverConfig.php | 67 - .../Cloud/Container/V1/GetClusterRequest.php | 249 -- .../Container/V1/GetJSONWebKeysRequest.php | 74 - .../Container/V1/GetJSONWebKeysResponse.php | 71 - .../Cloud/Container/V1/GetNodePoolRequest.php | 300 -- .../Container/V1/GetOpenIDConfigRequest.php | 72 - .../Container/V1/GetOpenIDConfigResponse.php | 272 -- .../Container/V1/GetOperationRequest.php | 249 -- .../Container/V1/GetServerConfigRequest.php | 203 -- .../Container/V1/GkeBackupAgentConfig.php | 67 - .../Container/V1/HorizontalPodAutoscaling.php | 77 - .../Cloud/Container/V1/HttpLoadBalancing.php | 76 - .../Container/V1/ILBSubsettingConfig.php | 68 - .../Cloud/Container/V1/IPAllocationPolicy.php | 1040 ------ .../Cloud/Container/V1/IPv6AccessType.php | 61 - .../Container/V1/IdentityServiceConfig.php | 68 - .../V1/InTransitEncryptionConfig.php | 62 - .../V1/IntraNodeVisibilityConfig.php | 68 - .../src/Google/Cloud/Container/V1/Jwk.php | 339 -- .../Cloud/Container/V1/K8sBetaAPIConfig.php | 67 - .../Container/V1/KubernetesDashboard.php | 67 - .../Google/Cloud/Container/V1/LegacyAbac.php | 80 - .../Cloud/Container/V1/LinuxNodeConfig.php | 153 - .../V1/LinuxNodeConfig/CgroupMode.php | 67 - .../Container/V1/ListClustersRequest.php | 208 -- .../Container/V1/ListClustersResponse.php | 109 - .../Container/V1/ListNodePoolsRequest.php | 249 -- .../Container/V1/ListNodePoolsResponse.php | 67 - .../Container/V1/ListOperationsRequest.php | 208 -- .../Container/V1/ListOperationsResponse.php | 105 - .../V1/ListUsableSubnetworksRequest.php | 202 -- .../V1/ListUsableSubnetworksResponse.php | 114 - .../Container/V1/LocalNvmeSsdBlockConfig.php | 124 - .../Container/V1/LoggingComponentConfig.php | 67 - .../V1/LoggingComponentConfig/Component.php | 85 - .../Cloud/Container/V1/LoggingConfig.php | 77 - .../Container/V1/LoggingVariantConfig.php | 67 - .../V1/LoggingVariantConfig/Variant.php | 68 - .../V1/MaintenanceExclusionOptions.php | 71 - .../V1/MaintenanceExclusionOptions/Scope.php | 69 - .../Cloud/Container/V1/MaintenancePolicy.php | 127 - .../Cloud/Container/V1/MaintenanceWindow.php | 152 - .../Container/V1/ManagedPrometheusConfig.php | 68 - .../Google/Cloud/Container/V1/MasterAuth.php | 331 -- .../V1/MasterAuthorizedNetworksConfig.php | 152 - .../CidrBlock.php | 104 - .../Cloud/Container/V1/MaxPodsConstraint.php | 67 - .../Cloud/Container/V1/MeshCertificates.php | 140 - .../V1/MonitoringComponentConfig.php | 71 - .../MonitoringComponentConfig/Component.php | 120 - .../Cloud/Container/V1/MonitoringConfig.php | 169 - .../Cloud/Container/V1/NetworkConfig.php | 683 ---- .../ClusterNetworkPerformanceConfig.php | 80 - .../ClusterNetworkPerformanceConfig/Tier.php | 57 - .../Cloud/Container/V1/NetworkPolicy.php | 102 - .../Container/V1/NetworkPolicy/Provider.php | 57 - .../Container/V1/NetworkPolicyConfig.php | 69 - .../Google/Cloud/Container/V1/NetworkTags.php | 68 - .../Google/Cloud/Container/V1/NodeConfig.php | 1869 ---------- .../Cloud/Container/V1/NodeConfigDefaults.php | 121 - .../Cloud/Container/V1/NodeKubeletConfig.php | 348 -- .../Google/Cloud/Container/V1/NodeLabels.php | 68 - .../Cloud/Container/V1/NodeManagement.php | 166 - .../Cloud/Container/V1/NodeNetworkConfig.php | 513 --- .../NetworkPerformanceConfig.php | 80 - .../NetworkPerformanceConfig/Tier.php | 57 - .../Google/Cloud/Container/V1/NodePool.php | 953 ----- .../Container/V1/NodePool/PlacementPolicy.php | 150 - .../V1/NodePool/PlacementPolicy/Type.php | 59 - .../V1/NodePool/QueuedProvisioning.php | 78 - .../Cloud/Container/V1/NodePool/Status.php | 99 - .../Container/V1/NodePool/UpdateInfo.php | 81 - .../V1/NodePool/UpdateInfo/BlueGreenInfo.php | 226 -- .../UpdateInfo/BlueGreenInfo/Phase.php | 99 - .../Container/V1/NodePool/UpgradeSettings.php | 241 -- .../Cloud/Container/V1/NodePoolAutoConfig.php | 138 - .../Container/V1/NodePoolAutoscaling.php | 304 -- .../V1/NodePoolAutoscaling/LocationPolicy.php | 66 - .../Cloud/Container/V1/NodePoolDefaults.php | 77 - .../Container/V1/NodePoolLoggingConfig.php | 77 - .../Container/V1/NodePoolUpdateStrategy.php | 63 - .../Google/Cloud/Container/V1/NodeTaint.php | 139 - .../Cloud/Container/V1/NodeTaint/Effect.php | 71 - .../Google/Cloud/Container/V1/NodeTaints.php | 68 - .../Cloud/Container/V1/NotificationConfig.php | 77 - .../V1/NotificationConfig/EventType.php | 72 - .../V1/NotificationConfig/Filter.php | 73 - .../V1/NotificationConfig/PubSub.php | 160 - .../Google/Cloud/Container/V1/Operation.php | 672 ---- .../Cloud/Container/V1/Operation/Status.php | 78 - .../Cloud/Container/V1/Operation/Type.php | 234 -- .../Cloud/Container/V1/OperationProgress.php | 197 - .../Container/V1/OperationProgress/Metric.php | 178 - .../V1/PodCIDROverprovisionConfig.php | 72 - .../Container/V1/PrivateClusterConfig.php | 339 -- ...PrivateClusterMasterGlobalAccessConfig.php | 67 - .../Container/V1/PrivateIPv6GoogleAccess.php | 69 - .../Google/Cloud/Container/V1/RangeInfo.php | 101 - .../Container/V1/RecurringTimeWindow.php | 211 -- .../Cloud/Container/V1/ReleaseChannel.php | 71 - .../Container/V1/ReleaseChannel/Channel.php | 78 - .../Container/V1/ReservationAffinity.php | 149 - .../Container/V1/ReservationAffinity/Type.php | 72 - .../Cloud/Container/V1/ResourceLabels.php | 68 - .../Cloud/Container/V1/ResourceLimit.php | 136 - .../Container/V1/ResourceManagerTags.php | 84 - .../V1/ResourceUsageExportConfig.php | 159 - .../BigQueryDestination.php | 70 - .../ConsumptionMeteringConfig.php | 78 - .../V1/RollbackNodePoolUpgradeRequest.php | 340 -- .../Cloud/Container/V1/SandboxConfig.php | 67 - .../Cloud/Container/V1/SandboxConfig/Type.php | 57 - .../Cloud/Container/V1/SecondaryBootDisk.php | 102 - .../Container/V1/SecondaryBootDisk/Mode.php | 59 - .../V1/SecondaryBootDiskUpdateStrategy.php | 34 - .../Container/V1/SecurityBulletinEvent.php | 406 --- .../Container/V1/SecurityPostureConfig.php | 122 - .../V1/SecurityPostureConfig/Mode.php | 64 - .../VulnerabilityMode.php | 72 - .../Cloud/Container/V1/ServerConfig.php | 237 -- .../V1/ServerConfig/ReleaseChannelConfig.php | 138 - .../Container/V1/ServiceExternalIPsConfig.php | 67 - .../Container/V1/SetAddonsConfigRequest.php | 303 -- .../Cloud/Container/V1/SetLabelsRequest.php | 302 -- .../Container/V1/SetLegacyAbacRequest.php | 288 -- .../Container/V1/SetLocationsRequest.php | 319 -- .../Container/V1/SetLoggingServiceRequest.php | 339 -- .../V1/SetMaintenancePolicyRequest.php | 278 -- .../Container/V1/SetMasterAuthRequest.php | 290 -- .../V1/SetMasterAuthRequest/Action.php | 74 - .../V1/SetMonitoringServiceRequest.php | 339 -- .../Container/V1/SetNetworkPolicyRequest.php | 297 -- .../V1/SetNodePoolAutoscalingRequest.php | 303 -- .../V1/SetNodePoolManagementRequest.php | 304 -- .../Container/V1/SetNodePoolSizeRequest.php | 293 -- .../Container/V1/ShieldedInstanceConfig.php | 129 - .../Cloud/Container/V1/ShieldedNodes.php | 67 - .../Cloud/Container/V1/SoleTenantConfig.php | 68 - .../V1/SoleTenantConfig/NodeAffinity.php | 140 - .../NodeAffinity/Operator.php | 65 - .../Google/Cloud/Container/V1/StackType.php | 61 - .../Container/V1/StartIPRotationRequest.php | 284 -- .../Cloud/Container/V1/StatefulHAConfig.php | 67 - .../Cloud/Container/V1/StatusCondition.php | 145 - .../Container/V1/StatusCondition/Code.php | 95 - .../Google/Cloud/Container/V1/TimeWindow.php | 170 - .../Container/V1/UpdateClusterRequest.php | 297 -- .../Container/V1/UpdateMasterRequest.php | 333 -- .../Container/V1/UpdateNodePoolRequest.php | 1385 -------- .../Container/V1/UpgradeAvailableEvent.php | 188 - .../Cloud/Container/V1/UpgradeEvent.php | 252 -- .../Container/V1/UpgradeResourceType.php | 62 - .../Cloud/Container/V1/UsableSubnetwork.php | 224 -- .../V1/UsableSubnetworkSecondaryRange.php | 139 - .../UsableSubnetworkSecondaryRange/Status.php | 83 - .../Container/V1/VerticalPodAutoscaling.php | 69 - .../Google/Cloud/Container/V1/VirtualNIC.php | 67 - .../Cloud/Container/V1/WindowsNodeConfig.php | 69 - .../V1/WindowsNodeConfig/OSVersion.php | 64 - .../Container/V1/WorkloadIdentityConfig.php | 68 - .../Container/V1/WorkloadMetadataConfig.php | 72 - .../V1/WorkloadMetadataConfig/Mode.php | 69 - .../Container/V1/WorkloadPolicyConfig.php | 78 - .../ClusterManagerClient/cancel_operation.php | 55 - .../check_autopilot_compatibility.php | 58 - .../complete_ip_rotation.php | 57 - .../complete_node_pool_upgrade.php | 56 - .../ClusterManagerClient/create_cluster.php | 73 - .../ClusterManagerClient/create_node_pool.php | 60 - .../ClusterManagerClient/delete_cluster.php | 65 - .../ClusterManagerClient/delete_node_pool.php | 57 - .../V1/ClusterManagerClient/get_cluster.php | 57 - .../get_json_web_keys.php | 58 - .../V1/ClusterManagerClient/get_node_pool.php | 57 - .../V1/ClusterManagerClient/get_operation.php | 57 - .../get_server_config.php | 57 - .../V1/ClusterManagerClient/list_clusters.php | 58 - .../ClusterManagerClient/list_node_pools.php | 57 - .../ClusterManagerClient/list_operations.php | 57 - .../list_usable_subnetworks.php | 62 - .../rollback_node_pool_upgrade.php | 58 - .../set_addons_config.php | 60 - .../V1/ClusterManagerClient/set_labels.php | 77 - .../ClusterManagerClient/set_legacy_abac.php | 70 - .../V1/ClusterManagerClient/set_locations.php | 80 - .../set_logging_service.php | 80 - .../set_maintenance_policy.php | 82 - .../ClusterManagerClient/set_master_auth.php | 76 - .../set_monitoring_service.php | 80 - .../set_network_policy.php | 60 - .../set_node_pool_autoscaling.php | 60 - .../set_node_pool_management.php | 60 - .../set_node_pool_size.php | 72 - .../start_ip_rotation.php | 57 - .../ClusterManagerClient/update_cluster.php | 60 - .../V1/ClusterManagerClient/update_master.php | 79 - .../ClusterManagerClient/update_node_pool.php | 85 - .../v1/src/V1/Client/ClusterManagerClient.php | 1205 ------- .../v1/src/V1/ClusterManagerClient.php | 34 - .../V1/Gapic/ClusterManagerGapicClient.php | 2968 ---------------- .../Container/v1/src/V1/gapic_metadata.json | 188 - .../cluster_manager_client_config.json | 215 -- .../cluster_manager_descriptor_config.php | 1005 ------ .../cluster_manager_rest_client_config.php | 1091 ------ .../V1/Client/ClusterManagerClientTest.php | 2644 -------------- .../Unit/V1/ClusterManagerClientTest.php | 2476 ------------- 273 files changed, 15 insertions(+), 56407 deletions(-) delete mode 100644 owl-bot-staging/Container/v1/proto/src/GPBMetadata/Google/Container/V1/ClusterService.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AcceleratorConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdditionalNodeNetworkConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdditionalPodNetworkConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdditionalPodRangesConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AddonsConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdvancedDatapathObservabilityConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdvancedDatapathObservabilityConfig/RelayMode.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdvancedMachineFeatures.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AuthenticatorGroupsConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutoUpgradeOptions.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Autopilot.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutopilotCompatibilityIssue.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutopilotCompatibilityIssue/IssueType.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutoprovisioningNodePoolDefaults.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BestEffortProvisioning.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization/EvaluationMode.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings/StandardRolloutPolicy.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CancelOperationRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CheckAutopilotCompatibilityRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CheckAutopilotCompatibilityResponse.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClientCertificateConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CloudRunConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CloudRunConfig/LoadBalancerType.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Cluster.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Cluster/Status.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling/AutoscalingProfile.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterUpdate.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompleteIPRotationRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompleteNodePoolUpgradeRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfidentialNodes.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfigConnectorConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CostManagementConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateClusterRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateNodePoolRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/DNSScope.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/Provider.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DailyMaintenanceWindow.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption/CurrentState.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption/OperationError.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption/State.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatapathProvider.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DefaultSnatStatus.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DeleteClusterRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DeleteNodePoolRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DnsCacheConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EnterpriseConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EnterpriseConfig/ClusterTier.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EphemeralStorageLocalSsdConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/FastSocket.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Fleet.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUDriverInstallationConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUDriverInstallationConfig/GPUDriverVersion.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig/GPUSharingStrategy.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig/Channel.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcePersistentDiskCsiDriverConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcfsConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcpFilestoreCsiDriverConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcsFuseCsiDriverConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetClusterRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysResponse.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetNodePoolRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigResponse.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOperationRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetServerConfigRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GkeBackupAgentConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HorizontalPodAutoscaling.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HttpLoadBalancing.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ILBSubsettingConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPAllocationPolicy.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPv6AccessType.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IdentityServiceConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/InTransitEncryptionConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IntraNodeVisibilityConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Jwk.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/K8sBetaAPIConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/KubernetesDashboard.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LegacyAbac.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig/CgroupMode.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListClustersRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListClustersResponse.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsResponse.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsResponse.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksResponse.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LocalNvmeSsdBlockConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig/Component.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig/Variant.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceExclusionOptions.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceExclusionOptions/Scope.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenancePolicy.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceWindow.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ManagedPrometheusConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuth.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig/CidrBlock.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaxPodsConstraint.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MeshCertificates.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringComponentConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringComponentConfig/Component.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig/ClusterNetworkPerformanceConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig/ClusterNetworkPerformanceConfig/Tier.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicy.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicy/Provider.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicyConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkTags.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfigDefaults.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeKubeletConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeLabels.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeManagement.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig/Tier.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy/Type.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/QueuedProvisioning.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/Status.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo/Phase.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpgradeSettings.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling/LocationPolicy.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolDefaults.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolLoggingConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolUpdateStrategy.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaint.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaint/Effect.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaints.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/EventType.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/Filter.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/PubSub.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation/Status.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation/Type.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/OperationProgress.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/OperationProgress/Metric.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PodCIDROverprovisionConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateClusterConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateClusterMasterGlobalAccessConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateIPv6GoogleAccess.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RangeInfo.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RecurringTimeWindow.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReleaseChannel.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReleaseChannel/Channel.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReservationAffinity.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReservationAffinity/Type.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceLabels.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceLimit.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceManagerTags.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig/BigQueryDestination.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig/ConsumptionMeteringConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RollbackNodePoolUpgradeRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig/Type.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecondaryBootDisk.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecondaryBootDisk/Mode.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecondaryBootDiskUpdateStrategy.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityBulletinEvent.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityPostureConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityPostureConfig/Mode.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityPostureConfig/VulnerabilityMode.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig/ReleaseChannelConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServiceExternalIPsConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetAddonsConfigRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLabelsRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLegacyAbacRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLocationsRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLoggingServiceRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMaintenancePolicyRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest/Action.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMonitoringServiceRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNetworkPolicyRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolAutoscalingRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolManagementRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolSizeRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ShieldedInstanceConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ShieldedNodes.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SoleTenantConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SoleTenantConfig/NodeAffinity.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SoleTenantConfig/NodeAffinity/Operator.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StackType.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StartIPRotationRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatefulHAConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatusCondition.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatusCondition/Code.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/TimeWindow.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateClusterRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateMasterRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateNodePoolRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeAvailableEvent.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeEvent.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeResourceType.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetwork.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange/Status.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/VerticalPodAutoscaling.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/VirtualNIC.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig/OSVersion.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadIdentityConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadMetadataConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadMetadataConfig/Mode.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadPolicyConfig.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/cancel_operation.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/check_autopilot_compatibility.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_ip_rotation.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_node_pool_upgrade.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_cluster.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_node_pool.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_cluster.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_node_pool.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_cluster.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_json_web_keys.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_node_pool.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_operation.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_server_config.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_clusters.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_node_pools.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_operations.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_usable_subnetworks.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/rollback_node_pool_upgrade.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_addons_config.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_labels.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_legacy_abac.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_locations.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_logging_service.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_maintenance_policy.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_master_auth.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_monitoring_service.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_network_policy.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_autoscaling.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_management.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_size.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/start_ip_rotation.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_cluster.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_master.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_node_pool.php delete mode 100644 owl-bot-staging/Container/v1/src/V1/Client/ClusterManagerClient.php delete mode 100644 owl-bot-staging/Container/v1/src/V1/ClusterManagerClient.php delete mode 100644 owl-bot-staging/Container/v1/src/V1/Gapic/ClusterManagerGapicClient.php delete mode 100644 owl-bot-staging/Container/v1/src/V1/gapic_metadata.json delete mode 100644 owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_client_config.json delete mode 100644 owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_descriptor_config.php delete mode 100644 owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_rest_client_config.php delete mode 100644 owl-bot-staging/Container/v1/tests/Unit/V1/Client/ClusterManagerClientTest.php delete mode 100644 owl-bot-staging/Container/v1/tests/Unit/V1/ClusterManagerClientTest.php diff --git a/Container/metadata/V1/ClusterService.php b/Container/metadata/V1/ClusterService.php index 5b45309427cd9a9d9c3ae3f031a2ceaec5902acd..d1ea00507ec28d7f49e0ddd4fafeab0f18de2a62 100644 GIT binary patch delta 51 zcmV-30L=gOn*;xw1F#PS0)UgV5d_<#0kX60rzZ{p@{<*|Ym;)h7L$9Z3rzZ{p=#v$;YZHCiK@V_pZ)#;@bYE#? NEP8KlWwV{OVi&8v7vBH? diff --git a/Container/src/V1/ListOperationsRequest.php b/Container/src/V1/ListOperationsRequest.php index 3ab9f1742290..fb70e15fab8e 100644 --- a/Container/src/V1/ListOperationsRequest.php +++ b/Container/src/V1/ListOperationsRequest.php @@ -63,6 +63,21 @@ public static function build(string $projectId, string $zone): self ->setZone($zone); } + /** + * @param string $parent The parent (project and location) where the operations will be listed. + * Specified in the format `projects/*/locations/*`. + * Location "-" matches all zones and all regions. + * + * @return \Google\Cloud\Container\V1\ListOperationsRequest + * + * @experimental + */ + public static function buildFromParent(string $parent): self + { + return (new self()) + ->setParent($parent); + } + /** * Constructor. * diff --git a/owl-bot-staging/Container/v1/proto/src/GPBMetadata/Google/Container/V1/ClusterService.php b/owl-bot-staging/Container/v1/proto/src/GPBMetadata/Google/Container/V1/ClusterService.php deleted file mode 100644 index d1ea00507ec28d7f49e0ddd4fafeab0f18de2a62..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 52735 zcmchAX>eP~cAi0s64{g}>QW0tEyKB*MWZ)EjySt!#U=_PE*OC1ypi<`g8)e4i3B*f zpfq}8xt{H3``J#MIF6S%$@8nq;x&sCyRz7+B(8E6JFZG>|H)L!PR03=a+TvG<)mCr ze&jpnbl(N&3zCwa=f{Y+x4Uom>F(3#d}rym-rd>UQJ1FX>dkt)(y7;`*6vSrHtSP6 z?N+B%ZEa1h?XIua+f&un_D*A~-kzSC$}UYUE-g>xviapFQPpehwyX7PQyZ<;##Vi% z+G=(x4YW3M_v%b_YuD@4+hwobzT2qQr@2+7nw9Okw^OOsr{)Ujg?gt_t8^;2=eU8} z8PmY+)vIqRRo$w1-c&{!DoH!)Q#FPEc6Qgc8r3PUQ|aKJry5?l(QI@Ym955?Fp#&W z)+<|H9ZmF>UEgh1JB?OziYhEMtM$vzO-Y+n_Nko~2LASx=~01b0Xp2yH!+xIW$Sjf z?p523oldJ=K+$X0HtHRpg7oC_bNaK?Tw{Ievh?xVwVqDCJ=JON*27<)nrhcOyY1$i z+;3{&f&bTS3%yc1joYbavqe;BHN9)sf-wb6#8u2}HR{dI!RlOZ)VFHs`ex;Bqt!lG z)nZ+*mVI~9r+s!8>k|Xq{|Ei5AX;vFr*r=ysxCLMQahFHorkFVVY{-kQ*R$&Mv6OC zEdN@4{~x0oCCvP8%vX3Rzwk~&FWgkE=C9N1*v^;zl|}39S@q=~9#qfmdm}p&Qgqti z^V4^)PM*>AD?1JBe_CF$?I)iIy;!F;R9@4INEbL8D$v#|MZdbJUoiv0R-CEn<)Gi6 z>waIS3Ge!_U%6vuHLmr0dg}E1Q@Zu`P8IyErumpZQhH1qeAkom?$-v?@%ct`_mf2w z20vSGY&dCk#JlfRJ6m2dF*SI3boT1Bv>Kt_bXT?MlGMpHJMH^UR*hCS+O6H4@-`Yy z4ooF3kIl~PtDOwjTR^qRX>~Nx>ZlsLQ@@X1B`%LR$JEf>%GRzlK5}i~^@RI@QbBF! zoH~=4D=w`R$_q=`TzO@&RLEuW*YmmT_%}I@8VkQ%y*i%gc{V#f;QnGlo%pcPthMfW zArfVkYI)_m*fQAX+@G=87pMxK)yg}KnpfUx zY&SZ|LwG*uyriCKG`)Itw_Pvak?xh-^-8VP+`5l0wL9f{v$D2TuO*M5{P2x$`f4JP zeoozf7H8&us=0sjgi@ioI;oCsSE`#h=*yk^J9WK!@U+(O?vy>8z~zlK9_^5Wr>)9v zXS3{8TRU|RBN@a>JEM+kv7lV3R$IHxPI82Y_^uk>)-nMGM_c6uL#{BRnGSk0ZDa`9 zCXP~#ZOn!AY=|3uQyt!_VAj0kVQ%tsdo?-FrKLf1b*ojaY?VE)R+g?36^ERo>QJY$ z;U$N8L=$Rsr(Gw`(*UKDiU{qzrH*2FSS~oeT5T^m%AbG6`uS8)P_L~MYJ>^OG(O5B zNviSfMzc(7WM`|=S#PzslgIeYf=b?NweM`TDz&nqAi7KJCpm@^qqFu=f2b=ND(Y`f ztHUJ8b-d(p?(;=!pJ^7BshD$3jd_)3ZLRf*`RED$sB5iPlA`)sn6f4sDl?Z#Iy{`~ z>LgA9NPK+mmn-Y*B-z|gPH?N2t*t`9Fcng|yaTd$n{?jPYqZ!q707$0hbQ}xrKBt6 zbsgQ+ch!k4;_YSbuqN**Zs#d$pSoDO^Nt!bJ5<*`&9&`og6JFNH)qv}wN|TB=7n)* z+ba|IK7%GkoR`(;2Jsr*?pbd432U$BP)?6%Nu90K?h;wBZuF*Juj4!e`ID2}#`D%T zQo7cHRJyL~IMZrq<8HH2O9(%x7pDc{{C6atg(VaZ)eG+wC|BZQ%oLq@b=(LaWz904=Jo%Q zl?L=Zq2n|bAL~M4){$0YTdj?aMsveV$}`-TE3u7{{xC09^!#Mh#63AIBWv#VvwcX? zb3!^FsB^-^ns>MB%*od9`;O_>Wp2zq&-29m7E!I_)zVZ+cdV@3`p#y38@vs?5$uha zu6#r|C9|IAxMe%_a;ADoYV()y75#yfa=g|S7FX2*2(3OD$)m4YP{U*^)fi8*!3 zpH6c`GtYj3TZv^OJd+D@rZ0oXJD1ftIYOlyW_9XeC#TWeaC-1RrxFm;PU1*yHEWgj z{j$GRz2u91Sbxb>fFRJx;tX}x)g??8F=rB(wz(*lAbjLeJ(vkDo-gOEbfo?YaJ>ZV|$ApCEY>l@%jUU?0&&%H(s5^<+dZ);5_`-rnQy^OYaCA*i^A^HKqdwe;cD|YEU zN*(5>P|ng9)%kLtuBFeYQ(AE-N0w&#f;#6DxpzUjX>~3jYwv^|S4Z>=X~hBZpSQba zo{?fZ;{IGhO$Lqh%uTe4Xs_610gs@GldZ|^IoH*R?aC*#V`cw0u`yVy8lAO^6$_P5 z@KutMh}%NM6+UrNIS`Y&8iLw+I!0iGeyDdh`bPR09SJ<{Vds*6s1QW6(T02r-5z3Y zs|}HX^`~L?jye{VmS2I|K}weZ0JopDuAE4f>1C96FJWEaU+1_Qjq2@K5_7Bh(o%6e z;a*TGBpYI;r1LfDvHN=o=I1?9_L53s8+*HuEwIMT>p(dii_zk6HkiUjV&~2}`hbwR z8&iiFme9(hdn;}vKp+;E%EeqMS6odkL+OV;KcSAN7C(wS9B`8Aq(&|>kvD_xj}EBu z9x>vkI!^1wXdw+q#scHa+KJyKhOn|~#y1K0<0x$k^T3Q%7V&}_hMLUkqMqS55B`nm zCEbM6O}f|Bu>TH3SSsX-spX|^CUIB|gCTlemX!>wY4&MeK0`EJ149wQ3rjRG1El zO9zym+%G58SX6v+-u0mj`Mmv9i&lD+E}R3+Mf6}f*kB&?@e%hwCX`x$232pTfbihN z8Q#TyCIgRf_Vhq9K~HyJ#eo1-;}t!^PoZ`SK3uNW+nvUGqe_yG$O4)#+tm>HT1`&hN0$^*hq0*ZBZ?6Hq4u*u9^cQptwr?V`I} zAo4NV#l!B;A5lkfdVwYC-a(7o>~waZ9|4|Ot877jBNk7k;|`!3C_j(lX;T_X+~g*X zhA)wgY>S0Y0BbD|>X|t%;?S}iel?tFm@8Asd0(9*IHHZix9*i|6>oE`Rl!6N-Z(mI z*N+I0kP2B-o~IPbmOjJLH-bUUbP`Az*O*>h1+Jip^)>|Tt=29M@LgZ-B*<-a_L7ws zW~gv+w;5EgH35SFm+)8AaG&Z~%o3H=)o-dZRbEom{U+F0i?jt+W(m|AowaN4QXBu5 zD)Q5*si!vpIDs8|4eS%Bu?*Z)y+*kPX`dAlZd!!+SFGcktJVvC1Ed~iyhfI5>#sn% z-l*=B*J0EljTEEqX7A^>qT z=F}l`85O^gl0LD{?mn$f^zOECHH^6u*j#q?^C}s;k$Ou*eVDLp6~|uEwhwwsKB>mK zR%?%l_J(??-p2urMan@@=z4Oq+?0JV*N;nyUd!Da%n^Ft5OO^QYhtHMqlrV$`(eB2Ow7;(N; zozoxM;Ng;OfmANNFoX%%<*DenV`&DFy}PUBknTbZV#Lj=vveL};nS(sYR{3?E{^ID zV#ZiCAn9KaaM6JNI}ZOY&epRaoPu&fM+(>ps|G~Yu~|DT6m4=kIAQ8-Rueu^0&195Blqe8d!?+JCzQYQEL(wH4kCUULe1y3k*PUJtgZ6|Bo=y zo`w37n%a{m_Eefy=lU_ap7PJB(=lwPrzp1i$vGRx>nV8&+C>)&f3n^oQoWzTIn+z9A4;fW5&r4C z4VjaWtC|n6*w2+nt?7cU68-}1#bNhFHSE8H+Egemt>&{fY$cPL&u5mPNdG=G<#eM7 z5ZKHiqef6iqm#{&Q$ZcClZGp{u8?{EHR}Xg+MUk%^~ucd*40?_32ndJYHEIk^_}DC0ms zENp#(YWU!v9ac`hklG?E0YQNx^$`aok)Q$jVyjW{Si1(*9oV`w&>CW~JRxj9_8}u# zVse&TKppLO=EJRw&WhSGsm7Y1PjC<=`8?rSxCm(iXaro<;7ewpS^;VK{Zs0^X*$4} z1Q!gQK~Jj-ek;~ubPA2op=lcPzolVeF@)pHjrLT(ZSKkwD7R#z#$L+K5E~(S9VrclUh9P${wvI4p>pUGLVWb!vRHfKQ>U_mV zp993-7b=oyaddXtx=|wlW|0g9ntw~vGs>;i*DJeQ9d4JWsuyP_JFei&?q4~lj%cZl z%%*{&4Yo20%O|@fVqXbsh1}(6pGadmBtHw~e+b<+z&eVo9AN^7?v}s7wAD zaQie0Dh2f-`dD6_HX5B_E4q_Ub9;7tBdRXy{$;#1tGZSf#z(GM#s!M_y_dYqBeSmxW5*(%=3zk|Z^M0! zMpWIbKrP!!ibsbXi7QIkj1;Aj_&#Zn#i0*F$JNyR9QVOK5aW}U*L5^~--8XW?rnzg zRxg?1cI-BW1(XiKw;p)y>1qp}LE;OtjUJiqh(m~dvNNb6&LC7Hm~6P+3vi8DHtk&H z?!-*?VyJ>{#_sPVejRqhBv*|1I{~rusjClG)16njJ9fmjIYZ`41q%2V@v7r(@2@8fF_|5wkDv2Kq3<`223WO(fUs+`Ql9_fznE z)$eJM`kufIddnY$jHA^7a^X&Xk*mF=4nt~%_jU3Pe#gn3=FlYFd)I?4U`#5(Q_>?g zlic#Z0=b#L9|+Fm&zjsufgv&?^orfdCimnCHPO({g2I@}yKTq~Es_Gb{}9I_BNSiK z9ctK&4_vYV_?E}_F}Dgzn*%i2<|hzUG~5RHKI!4vaGbE;;R>%q>xMrPJ5YGZyDZ1p zofU;VSO`)WD!~XHM~MA_&HBrv!;i+O1at~QIey|`i$|C z-zCl2H!d+B5~#8w9(&@P_hyef-B+X$J12|!(WSsVeA~L&9^c)s6AONEy*0?dK}(Yd zLWD8Rd{vr>-SsjUqLFUtm^uU}=Z)kKP{k4FiW*wqs>4DLC;Df^tH)ggv}h<WBh}d!->xxQ%R-ARz z$ig94RQO4Zn{FBQNV*ntCfRxclaM=(jcYBsgt9EriWLK!LV{^O6p13>#XMN)djZw!PY zghpo{3Iho(OC!CLd}BsL0CDWH)Y~&WqD6JyblVDx5F`~xAsZ|L<-)Yr4IolH(1>&U zwtC8x=nFgupnOo^A+*iFZtR-5AW-&gwrW?*Lkl|wf{+*<`@*(D5Me?9(`r{VlY|eq z76jyo(9n{d5P7OdD|OYcrq@1$M4EkRi7gwLEO@I7wNehNe+0Vgykp_5%V zlj3IV+DeZaR|-~4!+=s?T52dX0!VMdybp&962K8>5eNx&%j$}$ z9X=#jn;`kjY}dCDKxjtp2jbLzC=KeZ{zmtTh*%5 zA|S`-$wrfde`a@7)dOxf-A}KR(_&f+Kw8;@r>1F2pC)YPl`}wZ-}R4cO@E_kgVVR; zd&3fhg+u(ZSzjcEF|bzl1$?PsHiw4g>@tD@(#1@r`;!awpD5_l7n19ln-_Yx(l#vF z4KpsBzsc_y|f03ZX1vM-r21v`;OXBdYsw+T28S2hZ+*U*~%?6#=K&RQS|B2XTJ zOw(&n{sUuf2b1;XdD7mWqK{Mu>M~kjC8I7D?lP8TV{58=8q#o2d)jZSA5qdTsjGg${f^B2 z819a-Tn0A(9TSShemW95GlDn@&SfF~4vpq|OZ%+Z)i35;d6Z&E*?mWi_)p+gprn<+ zA3}iVq#6we>=DqS9Vvcs7BT22>Plg(9aLO^dvsM|a>&lZJ}v}g#Mv7Bb|sPt z(J)#%CWInRa11JG;TVBCHJoFOE$#Jip~qw)j!Q$y1R@a0@gT6;5RNfIE+L&t8_B7} zlq1+g*qk6f6Xf}Tavd=`hfgld;MoAdrmQzTF#X-^D8Cblt8NS zESrPtUGQvxo~;xZhAuCpxE#&?G4pH@d3j0zu2HO*E2Q#8zqui)nhk&AFd?}5vs4ov zeoOP?N9d{kaPV}P@YGUn8L?KnAUd#^n#(N!RvjO4PN@^Am1PRQptyAK>S?bq7EtYR9LN132c?_4ypWbRDy?QiPwgkb8W>{pA65qGyG7 zd13|oofycz_xn5Q2(q@c8&wH%j0@!H`8s94K`rN1W;1Xw(^+%&xjiQv>acF%MA)H> zw(S5|$Ou4$G6!F>PZ@&c;jMYJ)#NF2l(&Sm7pq#$y+1^cA+W+1}OH|eEVgno)hLK~dIxI=l)o(`U)3gQQXgmTZ| z)u2>~wWjvPdTsjRf||f7v#sb-8Vv+}Y48i`WVAt~8AQ5Mh-Jf7k^W5@m%dsAD0OTb`5s8KAvahFt{ibU z)CBYhUm-jAYJ!y9G8j}pUE%|EipJr8=`oPzi|TZSq8+yUM!yl=muaY~)7{$nUFG zg*ZGAL=Le-zjo3WYE6DO6js{{m&wm=`SWFt(Xx(WO0RS||4BM!DjH^=2rwmL# z7TjXQ{dxjX;0zKN0p;Km8KcXI7%hyY)1r6`Svp$ur&yXuU;R**=xa;I#P&NC1; zI(yb^G^h=HLBzDVq(CxjB45@iYvTYc$JZ*IDqKqHxH|)|72*$QYYpJD{yYA-L=5P`WSj3h(>8sd;GxDwfvyO0FId+bUnbux-1M9d~N ze1+pp4X3K}1F&^lT*o@|XNYWAhZKIYfx=@k#tcIpZC=1AyW>wd28I!`x1%Z?oe&35 z;hfi$3WA$-V6I)sr%nY?O{C=8;{J%;#Ni`7DH5G%s7ZrQq>fOYaOYxnt+o=7y7X`?-VbV@v zY>0ehMi44zg&`<9C@v|g-*PVuL6LWBfY!@M#7F7>Bhbdj+@>88O`{UB@S#o^)tLMr z33a?1-NfFZ1>^0)#>o6@hyuLn(QdPH7nVy(oy5#?2=p4JKvK?GOq)4QiZDYGT9tGa z32C?i_J?x-4rw?D0%TS;h<(HNuzP0B=}|S}r%)Ci*xT;pR}U!_Oc}g>kB7d_vra57 zPT(>F0VWI&!aB|RwBH;0HTlzn>R99nB5;Qg748W!$6`*fJsX}bP#csWg8OS@U6dS# z@(!OBQre0PauMXR;6@n7uaOc+7H}{;V=fl?6?<1&;&O(2iumv^6KY6$1ckG3BUS3o z8^rcZHcBFVr?||?M-b7$MoAb>%X7tCjxvwHE;)b&Hj#n)%8@+f^!$o8SPnv*bh5=% zo`QNp&kvE78<;CgOR1Y=iyh+PWLS+BXKQG2X?{MP%G@lQ?i`u?yIB3*9N;~jg;iu? zdmd1KuDU9VV*t=iO3(rKo)#R^?(ALBHAZ9#9YhG1 zVz(e|gOSuRhXG7UBE9+50n>S+#Q zYnD1dfv*Ih=!U2RaZ*ju6sGI9q*G|6LOJC8u_2uR>EPf-#@?MW;yC2Zz!2QipXtz( zoZkkb5!?4Czn~`L-$t|a!VU!ORbP}8C)Ni2r<;`0!>~j1rgr~5(xwJ4osZN7>(I(( zO$)W`wg_8~_1Xs2rX$Wha$xyhs=neveF0P7-a*DMit84~ADQevrPCwoi0&fY>2$77 zR}i2!#P|R3;vI`YDf%=pU838A+(k9Se-MK~hF|TOQ3AlpjJ~{(U!-Kl;;>Ny%6UPZ zMLBtlH+&ZOuLqDxdcv~Y9H=dNp$f_DKx}9V;m9Iu9DauS_AL0Qown}@a(fA#p+x5q z&I+k-H4~=-_g^K{dFZ?55D7TspM?&NjL8qBM%WXxcrLNla&)e=LH{ z>ofb!aAqUAuFT{mw7aYr>+C!g#kCF-)U5s@ow}6XmiNZk>@_R5@9pSxsM7^$0S>~K zy89b~HZ)pE#|j-$_Jq9DYIwYc)LEUb03pqjJ>LlIWDM=PDDHdQZ^1rC-u#fTp$#f#Fw%O zbFz8F$f0D9WHI#U@ra3{6GGyBp%dp-@4aWNU@&GP*(L)=0Rk-;FJkurb~j+_7^%g6 z7^<)KXoQN~i{gYE6OfwM2|hGh1>oMl;iqgapLsj!!}{ zvw>jAkcI`rtba|KpLdSdSY&75PC{A+!^mXI*X*%|DRL5{S7WpG9GI5QA(w3=tt6tf z<#v;<4$A5X-bTC0kdu2ujdiug>1#8RJyYkwT!~zN8Qz8o=ZG4_wG-Hne~B)XfCB~J zC}@t9M?WDx4D(jG+fc4ce8b8byL(_uA19~dMOzLz*=iA=4Bk)=o3`WI*c2ZmntOb7 zIT_?v<#iQ3^2K-pN7U0L0x|N1qP{u#@pZsR3;Zd9HDMkA0#ruoBJE1%>2vyyI%_14 zZ)8V!qFm(mK0%SA`YOtRfq~PThgwu39x+IIWB3(w4>=78?xFi9K|sza#I^(xT5-(| zzwgFkb38(y^_M`nwKdGK5_y4T>rwKKV<|AFEuGG(uAuj6jRq^TxGIUncxAX>Wco*5PzD(q zXttQgWxp{O{=%(4zX(ikeqMNZD1i*Hvuy5qYGr;I5F_rqL5W;x87X2Y$xmoK=mEJu z0sax=JN%B$-6OMVSJ~}VIeCu@Sg}uH9eDA~A%tNex10iEnu2~yPi}^u47fj=P-jSO zl<2bpBMy&`yS*D2-1H$WLY!Tqk95MuiD4vVm%aemiFOz|9OUe1WB{K+2v*>fbj*>Y zWt2638NOpamqq@uFuoG$x7}_K0wSb8(Z2I(=>81u`Nk;%+aEZKPMG$lIz(55Ym~zt zli5{gn(lmODVBsVosLcz?PWDqtu*0}N|_+JT@ud5X2%V)pok@^?*8?JIz)f;IDOG_ zK{~6<&7~Cp!@wiY(Q={tvGRD6%4C*S7MIHs>jUk9fN`qw!OGHd3KuA4ayd$OH3&tM zqjJ(8mCcn=h%q8Getu~sTfVtaD&Nc@F*v8nIzs47hN>6x#CXO>++P^+GqejECW%v9 zZkbq|k~)-uR|pWOnLz$}b6K!}I82sH<6{y|MnUIZ989VewNNq&AhlYf?am^huX0B6 z$=+NL6dV^9;?t80qJZlJ^$m}f91s*$H#U2)91w7z3Z<_hr6DdqUy#10sLmNB&z7J- zQoY#KI`SeycJ$r^1-Plz61Fd45B5m!p0NFZ{@vlL$rBjYFye>%-GS-w*dIrZBPCrt89zDcC)5R8@*N-ao&KD9&eY#CV%z-{67{;% zOCU}!>JDe$D&6&rL!7$_JDtvsOYHMTYH=|)-zAYzOs0Mjl2QNwnWx~axgun?MTj$C z&Y|)Ua2B&EIQSlNKSz%HF&nm9jYr->@}Gp8Wiy|Z`86^_;14GF=YN8H(Nk0dj3^67 z*Q<$Jo6>_X9p*0qJVlfjJVE$7P|9Ex zcd`9XVR-MCmKHy(uidQQ_g(9{3DH)A@87$_b|KtLFTe_}MMPKhSn&gwENI1uE=+`2 zLekO*?4OAyA71=tU1!0^(@$76E1MVa+$6^g`=8YTiV@} zbFa0kxVIE+jn3Ry8Xw=$n9ib4jihHGg+ z3c6^?nvJ`Mp*^q8=3~>C^^|@_P1y2)^_2UK0W}hcQpnbCG!BSiTIi2)J@9J7HNkT+c1 zEy=wtu_I~SSy9JKMsaCH^h5i_Z!rvm+*C$Mm{k>JvbjZ`4Dxs zJMj?lp~jBfIK}VuP~Z3c#AS=xrI`NTGs$T-e6PJoh#!EBa`UE!+3AK}*gv>Y_e5G-1khxX9uvQsk%LYfE`u3_IKE z9Owb5i`^0Zx5mgpWE-8mVU_0NJA@<7w20Ie{5d>Ao`uQh=u*Po-eMuwa9VlD6=f2z zOhSN)ZHFX98J?tT8HRJ}X`u9+85em5Nyv<|7}I6Dz3>~@yuK>Xv^b@X8LKqJtgk~^6nc6L|7)ao4=!*K3L&-IVcbLscA_;HdsfBXiqnPNHL$=* zq_{sUfA;hUZe>H1%&#guAwBh{Dc~9MH9f<0_rf$(pP6MUN1f3OQx?L$JA><-G4GR0 z>ahF;|2tK`OHmK3XOX+d*z8s7va$>R=-0xKTzf55hRI=4z^pCy|WPB-mlS5B>_ z^2qQ6Zo{R)okHoVj$=$X*p!|AL&x44f8 z;j%bCjKy4P?)!X+w*;$;IG^BjC`sZpAAen)^dE)2d1Zd~Qg`+JHpVa}U;tQ{&eLX| zGYcch2ONWaHv}MXDWpvIGi3rSWT+s9sVqQ5&)A7CA7t#7i=SkSc6XgFEiv489;N%W zf#AA}^zIgg5;Udn$kAoS$*Z$mSzm`k8vr303iR+bU4gih955Jg^)9aQteN;)e9^0e z2Ds}&gDh|g^6L=*B~&Gsopz(XPJG{YyB1qL0wT<(1FWbF=aE*MO!gEr0Wb+*3GRxo znb=ux{$e2;4^YE4s!&>PlPk?qqa@06b zw#aLDRUM1wXwCs^18##Ld2pJlr1qgnjB~5#fblllD`ptgZzEqYf)()9>%4QkZ^AS7>+JM9>&lSDDNEIeNBoo zegecG0~<2<4bsn2=0+~NGLN5!NYVlTv`jH3FjR}Qg}Y_kAA^%nkk>@WfZ*;pYTD0% za03y7B6#Vnc=K|S8;BsAbx2Hlf@A^N4Nu~9T!V9>uB5xRsh+9S?otMUTA3sV&XBI* zzi6I$VH$S#hLmoCltXG^N$^8yK(7VxjZ6C|NB(AdVW6j+MvoTWu(L{@*>nx{HiQUf z9%Hk10dF5)q0srteKyb|dPjecn`ezvwu<}BNKWdP!y#GB&8MuF+5l7u;rk38%4O(f z!bs-RSU*6?%oXbN;86OwI%X^w{9(ATpEAC1{#qwl&q+~)eY-&bx1MR)igv5CuDdEV zH1R2mo$UqU`HtwenMcIQ61KY2`V($O9npW1A$b)(Dyg157xK(trDh@Z`SS9O;?m08 zjRFkX1C-R|Z2Y<}#d8b$ii~Y4#4vvK(HX|UIRwEJu;UkzZWHM_;aqs5kQyJRKS+fe zAwH8$zDvLDN>*Tw#9cBhJk^O3R1=it8)$RN$z4MV*P;+dYC+Rt?G3V|b&z zG4#<4yOlHoh;I?Id4SnBeTa1_tau{CISoC1)E)=Wr4V_^>uOL0~mJAJW>;t^9xw-KR=9wMsBuzOedgd2VS5*V>a0Os>>@X&mefm--YA zaqY|MsXhgf4p%+{$>4c)xlhS-J_~zLMr=RhgI7MJj9Hw7(yT^SNuE|u8odgMYnN7v zaMrP?U%-NNa$puvIP6J6Xs=X|+E<^qIM(kXQ+XSqz!%7$tdK$oCtsGA?O8ZDo#u0M zsmw=ZQxdWdM50u7mD1{FgU16`zD1ojM^bctoafZjeqRu#rNe%$Zi!f%9N^3GzaSsX zL#34>*x%rl_aIdHSJ2~t#fnC}u7wOp#f+(bS)?@ji)Vg(;L0NKvFKIwQ|dgg3cVaG zjbZCh7Gb2tnn#29We#Svhl3L4re)w+NH*V{GoEH1_}X$YwOGn8mo*4X0IW6!M&(SP zy7tncRrjKL-d=`#C}D2=y#kOvWM>|j{ResEmligm*`f2_pfD4#svmofJ%K^Eh_(+; z#>fz%#;|JH$`ASav()jxiSK!G+xsk~Q}TZ2Z~xaH9;i6a&)mH_^QmO%eOs6HX0FW8 zsX$g){QY1?vrO;SRcD6E`{h0jT7NLZ8M@yZAV@AD43N9Y^nV4~ZmKu|3G=$*cZ@34V;cJO2w_bJ+I?1TzeBS^vp>xIs zGu8HSN6PGX+&_=`ellj;TS)Ad)tWPTK`Qd*S_3=9h&sznF069-15H@PsW&2IdWvp1RWz<{vC3zkEYgj;xrFi z0^Z5J4zYg+3SJJn*nN0Ej~lTdcWC6~vy{Wci#%kyeRslr^`LZr_l<)R$sY;P z>85-Ak?7?2k4W|NAe9_>l1Vp)RN*4~-Io6Wbb782ouWxRKTA!>mgJ1Y#-P9y`|3d{ zCWoC2=y9wp=_!%xk0DADtMbz($B2@VGW#XikI7N_7axZE_#LA0F1hbN$_k-FAs8VI znJ=#WtSzljV%YtA1a-y7zdWHOUYI))%! zr3^vrN&3U>x%RamAO;(IFNFs)UZ{t+UU6R9=TeYrRkqJMe;XSf!wAI`#BBIzAv09_ zhVL$`H~gD?xap4e$9uwX$P5LMI6nd1o*0SIX1y4W94TYEY1e$ait1ke0+wxGTqg`( zeI?53?e}x*0f&v5uj78In$E@~fAw#Ua zxIIy;pP=j$>$4ObN$66tfPTC;zCYnU^l~Cb_^6VyKMN!S5wW6)&SQubEp!lKJ>=55 z^3a&mtq-q!gO=7W!}dguB$iBKj@`F4rnI47+_75Xm9pU8*z>sbH%D}PU90MDY6}z1 z_3sR*Gcjq+VtOA_+Vp;}t@8U1%UFIc;ievXU`kN zKgvq7G)cggV~&&{p_F5H7VIs!Uqb!b{t5LH3HRLtZ8~!>bX{vAqQx+ie@_l5KPOu}UyeV?l(B)h^w=0Ocb$7sc@xnFn`DumjN%EZKn z^*5Yfm1K2`;p9P%-8B>pDN<~|%jfs7eEMOeCSFF;^cajZ`jk1;k0#u=545;2&Pb1m zs6}_-QHVBM`H%9Vlp6-*@p@O51^Y z-Y`+Wb}-?J7idqmBqHpp`@y3U*4D0rq#T^xwmUA&i;<^D#qTL=$ZNO$##GVhz*|hG zSDlx6?e%E=4`wPGi1ea#IJKGG?#M{zzaZgNpJ0B+p6s$u4KozGKWpELdO!sp(EH9o z)Cr(v@kt~m=YKtw1iGXX$85A(8@O;xM>hRdYI?KN+3~K;%-p+ouRH7sw&+b@C9U1s z3p+^nhkHo2)87lt1RUI8j6uV9ucjw5;?hLW8tlXc!XFEXTW@j`L5=O1jn<4`aRz;X z|B(NCXYI|<-#(qPw!@Z1iNnkvEFv9_3c)r2n7DgEE`Q=Rs1{kb=l{{+GY;_$9r ed#d3f8BU|qz@2nos@JC8=8|u6xd-ZjQvV-Eb?PGk diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AcceleratorConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AcceleratorConfig.php deleted file mode 100644 index 1426de744a26..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AcceleratorConfig.php +++ /dev/null @@ -1,235 +0,0 @@ -google.container.v1.AcceleratorConfig - */ -class AcceleratorConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The number of the accelerator cards exposed to an instance. - * - * Generated from protobuf field int64 accelerator_count = 1; - */ - protected $accelerator_count = 0; - /** - * The accelerator type resource name. List of supported accelerators - * [here](https://cloud.google.com/compute/docs/gpus) - * - * Generated from protobuf field string accelerator_type = 2; - */ - protected $accelerator_type = ''; - /** - * Size of partitions to create on the GPU. Valid values are described in the - * NVIDIA [mig user - * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning). - * - * Generated from protobuf field string gpu_partition_size = 3; - */ - protected $gpu_partition_size = ''; - /** - * The configuration for GPU sharing options. - * - * Generated from protobuf field optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; - */ - protected $gpu_sharing_config = null; - /** - * The configuration for auto installation of GPU driver. - * - * Generated from protobuf field optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; - */ - protected $gpu_driver_installation_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $accelerator_count - * The number of the accelerator cards exposed to an instance. - * @type string $accelerator_type - * The accelerator type resource name. List of supported accelerators - * [here](https://cloud.google.com/compute/docs/gpus) - * @type string $gpu_partition_size - * Size of partitions to create on the GPU. Valid values are described in the - * NVIDIA [mig user - * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning). - * @type \Google\Cloud\Container\V1\GPUSharingConfig $gpu_sharing_config - * The configuration for GPU sharing options. - * @type \Google\Cloud\Container\V1\GPUDriverInstallationConfig $gpu_driver_installation_config - * The configuration for auto installation of GPU driver. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The number of the accelerator cards exposed to an instance. - * - * Generated from protobuf field int64 accelerator_count = 1; - * @return int|string - */ - public function getAcceleratorCount() - { - return $this->accelerator_count; - } - - /** - * The number of the accelerator cards exposed to an instance. - * - * Generated from protobuf field int64 accelerator_count = 1; - * @param int|string $var - * @return $this - */ - public function setAcceleratorCount($var) - { - GPBUtil::checkInt64($var); - $this->accelerator_count = $var; - - return $this; - } - - /** - * The accelerator type resource name. List of supported accelerators - * [here](https://cloud.google.com/compute/docs/gpus) - * - * Generated from protobuf field string accelerator_type = 2; - * @return string - */ - public function getAcceleratorType() - { - return $this->accelerator_type; - } - - /** - * The accelerator type resource name. List of supported accelerators - * [here](https://cloud.google.com/compute/docs/gpus) - * - * Generated from protobuf field string accelerator_type = 2; - * @param string $var - * @return $this - */ - public function setAcceleratorType($var) - { - GPBUtil::checkString($var, True); - $this->accelerator_type = $var; - - return $this; - } - - /** - * Size of partitions to create on the GPU. Valid values are described in the - * NVIDIA [mig user - * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning). - * - * Generated from protobuf field string gpu_partition_size = 3; - * @return string - */ - public function getGpuPartitionSize() - { - return $this->gpu_partition_size; - } - - /** - * Size of partitions to create on the GPU. Valid values are described in the - * NVIDIA [mig user - * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning). - * - * Generated from protobuf field string gpu_partition_size = 3; - * @param string $var - * @return $this - */ - public function setGpuPartitionSize($var) - { - GPBUtil::checkString($var, True); - $this->gpu_partition_size = $var; - - return $this; - } - - /** - * The configuration for GPU sharing options. - * - * Generated from protobuf field optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; - * @return \Google\Cloud\Container\V1\GPUSharingConfig|null - */ - public function getGpuSharingConfig() - { - return $this->gpu_sharing_config; - } - - public function hasGpuSharingConfig() - { - return isset($this->gpu_sharing_config); - } - - public function clearGpuSharingConfig() - { - unset($this->gpu_sharing_config); - } - - /** - * The configuration for GPU sharing options. - * - * Generated from protobuf field optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; - * @param \Google\Cloud\Container\V1\GPUSharingConfig $var - * @return $this - */ - public function setGpuSharingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GPUSharingConfig::class); - $this->gpu_sharing_config = $var; - - return $this; - } - - /** - * The configuration for auto installation of GPU driver. - * - * Generated from protobuf field optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; - * @return \Google\Cloud\Container\V1\GPUDriverInstallationConfig|null - */ - public function getGpuDriverInstallationConfig() - { - return $this->gpu_driver_installation_config; - } - - public function hasGpuDriverInstallationConfig() - { - return isset($this->gpu_driver_installation_config); - } - - public function clearGpuDriverInstallationConfig() - { - unset($this->gpu_driver_installation_config); - } - - /** - * The configuration for auto installation of GPU driver. - * - * Generated from protobuf field optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; - * @param \Google\Cloud\Container\V1\GPUDriverInstallationConfig $var - * @return $this - */ - public function setGpuDriverInstallationConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GPUDriverInstallationConfig::class); - $this->gpu_driver_installation_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdditionalNodeNetworkConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdditionalNodeNetworkConfig.php deleted file mode 100644 index 25fbd076ebbf..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdditionalNodeNetworkConfig.php +++ /dev/null @@ -1,102 +0,0 @@ -google.container.v1.AdditionalNodeNetworkConfig - */ -class AdditionalNodeNetworkConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the VPC where the additional interface belongs - * - * Generated from protobuf field string network = 1; - */ - protected $network = ''; - /** - * Name of the subnetwork where the additional interface belongs - * - * Generated from protobuf field string subnetwork = 2; - */ - protected $subnetwork = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $network - * Name of the VPC where the additional interface belongs - * @type string $subnetwork - * Name of the subnetwork where the additional interface belongs - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Name of the VPC where the additional interface belongs - * - * Generated from protobuf field string network = 1; - * @return string - */ - public function getNetwork() - { - return $this->network; - } - - /** - * Name of the VPC where the additional interface belongs - * - * Generated from protobuf field string network = 1; - * @param string $var - * @return $this - */ - public function setNetwork($var) - { - GPBUtil::checkString($var, True); - $this->network = $var; - - return $this; - } - - /** - * Name of the subnetwork where the additional interface belongs - * - * Generated from protobuf field string subnetwork = 2; - * @return string - */ - public function getSubnetwork() - { - return $this->subnetwork; - } - - /** - * Name of the subnetwork where the additional interface belongs - * - * Generated from protobuf field string subnetwork = 2; - * @param string $var - * @return $this - */ - public function setSubnetwork($var) - { - GPBUtil::checkString($var, True); - $this->subnetwork = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdditionalPodNetworkConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdditionalPodNetworkConfig.php deleted file mode 100644 index c7b650c6a2cd..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdditionalPodNetworkConfig.php +++ /dev/null @@ -1,150 +0,0 @@ -google.container.v1.AdditionalPodNetworkConfig - */ -class AdditionalPodNetworkConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the subnetwork where the additional pod network belongs - * - * Generated from protobuf field string subnetwork = 1; - */ - protected $subnetwork = ''; - /** - * The name of the secondary range on the subnet which provides IP address for - * this pod range - * - * Generated from protobuf field string secondary_pod_range = 2; - */ - protected $secondary_pod_range = ''; - /** - * The maximum number of pods per node which use this pod network - * - * Generated from protobuf field optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; - */ - protected $max_pods_per_node = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $subnetwork - * Name of the subnetwork where the additional pod network belongs - * @type string $secondary_pod_range - * The name of the secondary range on the subnet which provides IP address for - * this pod range - * @type \Google\Cloud\Container\V1\MaxPodsConstraint $max_pods_per_node - * The maximum number of pods per node which use this pod network - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Name of the subnetwork where the additional pod network belongs - * - * Generated from protobuf field string subnetwork = 1; - * @return string - */ - public function getSubnetwork() - { - return $this->subnetwork; - } - - /** - * Name of the subnetwork where the additional pod network belongs - * - * Generated from protobuf field string subnetwork = 1; - * @param string $var - * @return $this - */ - public function setSubnetwork($var) - { - GPBUtil::checkString($var, True); - $this->subnetwork = $var; - - return $this; - } - - /** - * The name of the secondary range on the subnet which provides IP address for - * this pod range - * - * Generated from protobuf field string secondary_pod_range = 2; - * @return string - */ - public function getSecondaryPodRange() - { - return $this->secondary_pod_range; - } - - /** - * The name of the secondary range on the subnet which provides IP address for - * this pod range - * - * Generated from protobuf field string secondary_pod_range = 2; - * @param string $var - * @return $this - */ - public function setSecondaryPodRange($var) - { - GPBUtil::checkString($var, True); - $this->secondary_pod_range = $var; - - return $this; - } - - /** - * The maximum number of pods per node which use this pod network - * - * Generated from protobuf field optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; - * @return \Google\Cloud\Container\V1\MaxPodsConstraint|null - */ - public function getMaxPodsPerNode() - { - return $this->max_pods_per_node; - } - - public function hasMaxPodsPerNode() - { - return isset($this->max_pods_per_node); - } - - public function clearMaxPodsPerNode() - { - unset($this->max_pods_per_node); - } - - /** - * The maximum number of pods per node which use this pod network - * - * Generated from protobuf field optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; - * @param \Google\Cloud\Container\V1\MaxPodsConstraint $var - * @return $this - */ - public function setMaxPodsPerNode($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MaxPodsConstraint::class); - $this->max_pods_per_node = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdditionalPodRangesConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdditionalPodRangesConfig.php deleted file mode 100644 index b5b36bd68362..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdditionalPodRangesConfig.php +++ /dev/null @@ -1,102 +0,0 @@ -google.container.v1.AdditionalPodRangesConfig - */ -class AdditionalPodRangesConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Name for pod secondary ipv4 range which has the actual range defined ahead. - * - * Generated from protobuf field repeated string pod_range_names = 1; - */ - private $pod_range_names; - /** - * Output only. [Output only] Information for additional pod range. - * - * Generated from protobuf field repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $pod_range_info; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $pod_range_names - * Name for pod secondary ipv4 range which has the actual range defined ahead. - * @type array<\Google\Cloud\Container\V1\RangeInfo>|\Google\Protobuf\Internal\RepeatedField $pod_range_info - * Output only. [Output only] Information for additional pod range. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Name for pod secondary ipv4 range which has the actual range defined ahead. - * - * Generated from protobuf field repeated string pod_range_names = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPodRangeNames() - { - return $this->pod_range_names; - } - - /** - * Name for pod secondary ipv4 range which has the actual range defined ahead. - * - * Generated from protobuf field repeated string pod_range_names = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPodRangeNames($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->pod_range_names = $arr; - - return $this; - } - - /** - * Output only. [Output only] Information for additional pod range. - * - * Generated from protobuf field repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPodRangeInfo() - { - return $this->pod_range_info; - } - - /** - * Output only. [Output only] Information for additional pod range. - * - * Generated from protobuf field repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\Container\V1\RangeInfo>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPodRangeInfo($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\RangeInfo::class); - $this->pod_range_info = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AddonsConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AddonsConfig.php deleted file mode 100644 index da3f6766d641..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AddonsConfig.php +++ /dev/null @@ -1,613 +0,0 @@ -google.container.v1.AddonsConfig - */ -class AddonsConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Configuration for the HTTP (L7) load balancing controller addon, which - * makes it easy to set up HTTP load balancers for services in a cluster. - * - * Generated from protobuf field .google.container.v1.HttpLoadBalancing http_load_balancing = 1; - */ - protected $http_load_balancing = null; - /** - * Configuration for the horizontal pod autoscaling feature, which - * increases or decreases the number of replica pods a replication controller - * has based on the resource usage of the existing pods. - * - * Generated from protobuf field .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - */ - protected $horizontal_pod_autoscaling = null; - /** - * Configuration for the Kubernetes Dashboard. - * This addon is deprecated, and will be disabled in 1.15. It is recommended - * to use the Cloud Console to manage and monitor your Kubernetes clusters, - * workloads and applications. For more information, see: - * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards - * - * Generated from protobuf field .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * @deprecated - */ - protected $kubernetes_dashboard = null; - /** - * Configuration for NetworkPolicy. This only tracks whether the addon - * is enabled or not on the Master, it does not track whether network policy - * is enabled for the nodes. - * - * Generated from protobuf field .google.container.v1.NetworkPolicyConfig network_policy_config = 4; - */ - protected $network_policy_config = null; - /** - * Configuration for the Cloud Run addon, which allows the user to use a - * managed Knative service. - * - * Generated from protobuf field .google.container.v1.CloudRunConfig cloud_run_config = 7; - */ - protected $cloud_run_config = null; - /** - * Configuration for NodeLocalDNS, a dns cache running on cluster nodes - * - * Generated from protobuf field .google.container.v1.DnsCacheConfig dns_cache_config = 8; - */ - protected $dns_cache_config = null; - /** - * Configuration for the ConfigConnector add-on, a Kubernetes - * extension to manage hosted GCP services through the Kubernetes API - * - * Generated from protobuf field .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - */ - protected $config_connector_config = null; - /** - * Configuration for the Compute Engine Persistent Disk CSI driver. - * - * Generated from protobuf field .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - */ - protected $gce_persistent_disk_csi_driver_config = null; - /** - * Configuration for the GCP Filestore CSI driver. - * - * Generated from protobuf field .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - */ - protected $gcp_filestore_csi_driver_config = null; - /** - * Configuration for the Backup for GKE agent addon. - * - * Generated from protobuf field .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; - */ - protected $gke_backup_agent_config = null; - /** - * Configuration for the Cloud Storage Fuse CSI driver. - * - * Generated from protobuf field .google.container.v1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; - */ - protected $gcs_fuse_csi_driver_config = null; - /** - * Optional. Configuration for the StatefulHA add-on. - * - * Generated from protobuf field .google.container.v1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $stateful_ha_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\HttpLoadBalancing $http_load_balancing - * Configuration for the HTTP (L7) load balancing controller addon, which - * makes it easy to set up HTTP load balancers for services in a cluster. - * @type \Google\Cloud\Container\V1\HorizontalPodAutoscaling $horizontal_pod_autoscaling - * Configuration for the horizontal pod autoscaling feature, which - * increases or decreases the number of replica pods a replication controller - * has based on the resource usage of the existing pods. - * @type \Google\Cloud\Container\V1\KubernetesDashboard $kubernetes_dashboard - * Configuration for the Kubernetes Dashboard. - * This addon is deprecated, and will be disabled in 1.15. It is recommended - * to use the Cloud Console to manage and monitor your Kubernetes clusters, - * workloads and applications. For more information, see: - * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards - * @type \Google\Cloud\Container\V1\NetworkPolicyConfig $network_policy_config - * Configuration for NetworkPolicy. This only tracks whether the addon - * is enabled or not on the Master, it does not track whether network policy - * is enabled for the nodes. - * @type \Google\Cloud\Container\V1\CloudRunConfig $cloud_run_config - * Configuration for the Cloud Run addon, which allows the user to use a - * managed Knative service. - * @type \Google\Cloud\Container\V1\DnsCacheConfig $dns_cache_config - * Configuration for NodeLocalDNS, a dns cache running on cluster nodes - * @type \Google\Cloud\Container\V1\ConfigConnectorConfig $config_connector_config - * Configuration for the ConfigConnector add-on, a Kubernetes - * extension to manage hosted GCP services through the Kubernetes API - * @type \Google\Cloud\Container\V1\GcePersistentDiskCsiDriverConfig $gce_persistent_disk_csi_driver_config - * Configuration for the Compute Engine Persistent Disk CSI driver. - * @type \Google\Cloud\Container\V1\GcpFilestoreCsiDriverConfig $gcp_filestore_csi_driver_config - * Configuration for the GCP Filestore CSI driver. - * @type \Google\Cloud\Container\V1\GkeBackupAgentConfig $gke_backup_agent_config - * Configuration for the Backup for GKE agent addon. - * @type \Google\Cloud\Container\V1\GcsFuseCsiDriverConfig $gcs_fuse_csi_driver_config - * Configuration for the Cloud Storage Fuse CSI driver. - * @type \Google\Cloud\Container\V1\StatefulHAConfig $stateful_ha_config - * Optional. Configuration for the StatefulHA add-on. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Configuration for the HTTP (L7) load balancing controller addon, which - * makes it easy to set up HTTP load balancers for services in a cluster. - * - * Generated from protobuf field .google.container.v1.HttpLoadBalancing http_load_balancing = 1; - * @return \Google\Cloud\Container\V1\HttpLoadBalancing|null - */ - public function getHttpLoadBalancing() - { - return $this->http_load_balancing; - } - - public function hasHttpLoadBalancing() - { - return isset($this->http_load_balancing); - } - - public function clearHttpLoadBalancing() - { - unset($this->http_load_balancing); - } - - /** - * Configuration for the HTTP (L7) load balancing controller addon, which - * makes it easy to set up HTTP load balancers for services in a cluster. - * - * Generated from protobuf field .google.container.v1.HttpLoadBalancing http_load_balancing = 1; - * @param \Google\Cloud\Container\V1\HttpLoadBalancing $var - * @return $this - */ - public function setHttpLoadBalancing($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\HttpLoadBalancing::class); - $this->http_load_balancing = $var; - - return $this; - } - - /** - * Configuration for the horizontal pod autoscaling feature, which - * increases or decreases the number of replica pods a replication controller - * has based on the resource usage of the existing pods. - * - * Generated from protobuf field .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - * @return \Google\Cloud\Container\V1\HorizontalPodAutoscaling|null - */ - public function getHorizontalPodAutoscaling() - { - return $this->horizontal_pod_autoscaling; - } - - public function hasHorizontalPodAutoscaling() - { - return isset($this->horizontal_pod_autoscaling); - } - - public function clearHorizontalPodAutoscaling() - { - unset($this->horizontal_pod_autoscaling); - } - - /** - * Configuration for the horizontal pod autoscaling feature, which - * increases or decreases the number of replica pods a replication controller - * has based on the resource usage of the existing pods. - * - * Generated from protobuf field .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - * @param \Google\Cloud\Container\V1\HorizontalPodAutoscaling $var - * @return $this - */ - public function setHorizontalPodAutoscaling($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\HorizontalPodAutoscaling::class); - $this->horizontal_pod_autoscaling = $var; - - return $this; - } - - /** - * Configuration for the Kubernetes Dashboard. - * This addon is deprecated, and will be disabled in 1.15. It is recommended - * to use the Cloud Console to manage and monitor your Kubernetes clusters, - * workloads and applications. For more information, see: - * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards - * - * Generated from protobuf field .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * @return \Google\Cloud\Container\V1\KubernetesDashboard|null - * @deprecated - */ - public function getKubernetesDashboard() - { - @trigger_error('kubernetes_dashboard is deprecated.', E_USER_DEPRECATED); - return $this->kubernetes_dashboard; - } - - public function hasKubernetesDashboard() - { - @trigger_error('kubernetes_dashboard is deprecated.', E_USER_DEPRECATED); - return isset($this->kubernetes_dashboard); - } - - public function clearKubernetesDashboard() - { - @trigger_error('kubernetes_dashboard is deprecated.', E_USER_DEPRECATED); - unset($this->kubernetes_dashboard); - } - - /** - * Configuration for the Kubernetes Dashboard. - * This addon is deprecated, and will be disabled in 1.15. It is recommended - * to use the Cloud Console to manage and monitor your Kubernetes clusters, - * workloads and applications. For more information, see: - * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards - * - * Generated from protobuf field .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * @param \Google\Cloud\Container\V1\KubernetesDashboard $var - * @return $this - * @deprecated - */ - public function setKubernetesDashboard($var) - { - @trigger_error('kubernetes_dashboard is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\KubernetesDashboard::class); - $this->kubernetes_dashboard = $var; - - return $this; - } - - /** - * Configuration for NetworkPolicy. This only tracks whether the addon - * is enabled or not on the Master, it does not track whether network policy - * is enabled for the nodes. - * - * Generated from protobuf field .google.container.v1.NetworkPolicyConfig network_policy_config = 4; - * @return \Google\Cloud\Container\V1\NetworkPolicyConfig|null - */ - public function getNetworkPolicyConfig() - { - return $this->network_policy_config; - } - - public function hasNetworkPolicyConfig() - { - return isset($this->network_policy_config); - } - - public function clearNetworkPolicyConfig() - { - unset($this->network_policy_config); - } - - /** - * Configuration for NetworkPolicy. This only tracks whether the addon - * is enabled or not on the Master, it does not track whether network policy - * is enabled for the nodes. - * - * Generated from protobuf field .google.container.v1.NetworkPolicyConfig network_policy_config = 4; - * @param \Google\Cloud\Container\V1\NetworkPolicyConfig $var - * @return $this - */ - public function setNetworkPolicyConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkPolicyConfig::class); - $this->network_policy_config = $var; - - return $this; - } - - /** - * Configuration for the Cloud Run addon, which allows the user to use a - * managed Knative service. - * - * Generated from protobuf field .google.container.v1.CloudRunConfig cloud_run_config = 7; - * @return \Google\Cloud\Container\V1\CloudRunConfig|null - */ - public function getCloudRunConfig() - { - return $this->cloud_run_config; - } - - public function hasCloudRunConfig() - { - return isset($this->cloud_run_config); - } - - public function clearCloudRunConfig() - { - unset($this->cloud_run_config); - } - - /** - * Configuration for the Cloud Run addon, which allows the user to use a - * managed Knative service. - * - * Generated from protobuf field .google.container.v1.CloudRunConfig cloud_run_config = 7; - * @param \Google\Cloud\Container\V1\CloudRunConfig $var - * @return $this - */ - public function setCloudRunConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\CloudRunConfig::class); - $this->cloud_run_config = $var; - - return $this; - } - - /** - * Configuration for NodeLocalDNS, a dns cache running on cluster nodes - * - * Generated from protobuf field .google.container.v1.DnsCacheConfig dns_cache_config = 8; - * @return \Google\Cloud\Container\V1\DnsCacheConfig|null - */ - public function getDnsCacheConfig() - { - return $this->dns_cache_config; - } - - public function hasDnsCacheConfig() - { - return isset($this->dns_cache_config); - } - - public function clearDnsCacheConfig() - { - unset($this->dns_cache_config); - } - - /** - * Configuration for NodeLocalDNS, a dns cache running on cluster nodes - * - * Generated from protobuf field .google.container.v1.DnsCacheConfig dns_cache_config = 8; - * @param \Google\Cloud\Container\V1\DnsCacheConfig $var - * @return $this - */ - public function setDnsCacheConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\DnsCacheConfig::class); - $this->dns_cache_config = $var; - - return $this; - } - - /** - * Configuration for the ConfigConnector add-on, a Kubernetes - * extension to manage hosted GCP services through the Kubernetes API - * - * Generated from protobuf field .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - * @return \Google\Cloud\Container\V1\ConfigConnectorConfig|null - */ - public function getConfigConnectorConfig() - { - return $this->config_connector_config; - } - - public function hasConfigConnectorConfig() - { - return isset($this->config_connector_config); - } - - public function clearConfigConnectorConfig() - { - unset($this->config_connector_config); - } - - /** - * Configuration for the ConfigConnector add-on, a Kubernetes - * extension to manage hosted GCP services through the Kubernetes API - * - * Generated from protobuf field .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - * @param \Google\Cloud\Container\V1\ConfigConnectorConfig $var - * @return $this - */ - public function setConfigConnectorConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ConfigConnectorConfig::class); - $this->config_connector_config = $var; - - return $this; - } - - /** - * Configuration for the Compute Engine Persistent Disk CSI driver. - * - * Generated from protobuf field .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - * @return \Google\Cloud\Container\V1\GcePersistentDiskCsiDriverConfig|null - */ - public function getGcePersistentDiskCsiDriverConfig() - { - return $this->gce_persistent_disk_csi_driver_config; - } - - public function hasGcePersistentDiskCsiDriverConfig() - { - return isset($this->gce_persistent_disk_csi_driver_config); - } - - public function clearGcePersistentDiskCsiDriverConfig() - { - unset($this->gce_persistent_disk_csi_driver_config); - } - - /** - * Configuration for the Compute Engine Persistent Disk CSI driver. - * - * Generated from protobuf field .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - * @param \Google\Cloud\Container\V1\GcePersistentDiskCsiDriverConfig $var - * @return $this - */ - public function setGcePersistentDiskCsiDriverConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GcePersistentDiskCsiDriverConfig::class); - $this->gce_persistent_disk_csi_driver_config = $var; - - return $this; - } - - /** - * Configuration for the GCP Filestore CSI driver. - * - * Generated from protobuf field .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * @return \Google\Cloud\Container\V1\GcpFilestoreCsiDriverConfig|null - */ - public function getGcpFilestoreCsiDriverConfig() - { - return $this->gcp_filestore_csi_driver_config; - } - - public function hasGcpFilestoreCsiDriverConfig() - { - return isset($this->gcp_filestore_csi_driver_config); - } - - public function clearGcpFilestoreCsiDriverConfig() - { - unset($this->gcp_filestore_csi_driver_config); - } - - /** - * Configuration for the GCP Filestore CSI driver. - * - * Generated from protobuf field .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * @param \Google\Cloud\Container\V1\GcpFilestoreCsiDriverConfig $var - * @return $this - */ - public function setGcpFilestoreCsiDriverConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GcpFilestoreCsiDriverConfig::class); - $this->gcp_filestore_csi_driver_config = $var; - - return $this; - } - - /** - * Configuration for the Backup for GKE agent addon. - * - * Generated from protobuf field .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; - * @return \Google\Cloud\Container\V1\GkeBackupAgentConfig|null - */ - public function getGkeBackupAgentConfig() - { - return $this->gke_backup_agent_config; - } - - public function hasGkeBackupAgentConfig() - { - return isset($this->gke_backup_agent_config); - } - - public function clearGkeBackupAgentConfig() - { - unset($this->gke_backup_agent_config); - } - - /** - * Configuration for the Backup for GKE agent addon. - * - * Generated from protobuf field .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; - * @param \Google\Cloud\Container\V1\GkeBackupAgentConfig $var - * @return $this - */ - public function setGkeBackupAgentConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GkeBackupAgentConfig::class); - $this->gke_backup_agent_config = $var; - - return $this; - } - - /** - * Configuration for the Cloud Storage Fuse CSI driver. - * - * Generated from protobuf field .google.container.v1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; - * @return \Google\Cloud\Container\V1\GcsFuseCsiDriverConfig|null - */ - public function getGcsFuseCsiDriverConfig() - { - return $this->gcs_fuse_csi_driver_config; - } - - public function hasGcsFuseCsiDriverConfig() - { - return isset($this->gcs_fuse_csi_driver_config); - } - - public function clearGcsFuseCsiDriverConfig() - { - unset($this->gcs_fuse_csi_driver_config); - } - - /** - * Configuration for the Cloud Storage Fuse CSI driver. - * - * Generated from protobuf field .google.container.v1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; - * @param \Google\Cloud\Container\V1\GcsFuseCsiDriverConfig $var - * @return $this - */ - public function setGcsFuseCsiDriverConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GcsFuseCsiDriverConfig::class); - $this->gcs_fuse_csi_driver_config = $var; - - return $this; - } - - /** - * Optional. Configuration for the StatefulHA add-on. - * - * Generated from protobuf field .google.container.v1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Container\V1\StatefulHAConfig|null - */ - public function getStatefulHaConfig() - { - return $this->stateful_ha_config; - } - - public function hasStatefulHaConfig() - { - return isset($this->stateful_ha_config); - } - - public function clearStatefulHaConfig() - { - unset($this->stateful_ha_config); - } - - /** - * Optional. Configuration for the StatefulHA add-on. - * - * Generated from protobuf field .google.container.v1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Container\V1\StatefulHAConfig $var - * @return $this - */ - public function setStatefulHaConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\StatefulHAConfig::class); - $this->stateful_ha_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdvancedDatapathObservabilityConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdvancedDatapathObservabilityConfig.php deleted file mode 100644 index 4008b7155ec3..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdvancedDatapathObservabilityConfig.php +++ /dev/null @@ -1,146 +0,0 @@ -google.container.v1.AdvancedDatapathObservabilityConfig - */ -class AdvancedDatapathObservabilityConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Expose flow metrics on nodes - * - * Generated from protobuf field bool enable_metrics = 1; - */ - protected $enable_metrics = false; - /** - * Method used to make Relay available - * - * Generated from protobuf field .google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; - */ - protected $relay_mode = 0; - /** - * Enable Relay component - * - * Generated from protobuf field optional bool enable_relay = 3; - */ - protected $enable_relay = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enable_metrics - * Expose flow metrics on nodes - * @type int $relay_mode - * Method used to make Relay available - * @type bool $enable_relay - * Enable Relay component - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Expose flow metrics on nodes - * - * Generated from protobuf field bool enable_metrics = 1; - * @return bool - */ - public function getEnableMetrics() - { - return $this->enable_metrics; - } - - /** - * Expose flow metrics on nodes - * - * Generated from protobuf field bool enable_metrics = 1; - * @param bool $var - * @return $this - */ - public function setEnableMetrics($var) - { - GPBUtil::checkBool($var); - $this->enable_metrics = $var; - - return $this; - } - - /** - * Method used to make Relay available - * - * Generated from protobuf field .google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; - * @return int - */ - public function getRelayMode() - { - return $this->relay_mode; - } - - /** - * Method used to make Relay available - * - * Generated from protobuf field .google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; - * @param int $var - * @return $this - */ - public function setRelayMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\AdvancedDatapathObservabilityConfig\RelayMode::class); - $this->relay_mode = $var; - - return $this; - } - - /** - * Enable Relay component - * - * Generated from protobuf field optional bool enable_relay = 3; - * @return bool - */ - public function getEnableRelay() - { - return isset($this->enable_relay) ? $this->enable_relay : false; - } - - public function hasEnableRelay() - { - return isset($this->enable_relay); - } - - public function clearEnableRelay() - { - unset($this->enable_relay); - } - - /** - * Enable Relay component - * - * Generated from protobuf field optional bool enable_relay = 3; - * @param bool $var - * @return $this - */ - public function setEnableRelay($var) - { - GPBUtil::checkBool($var); - $this->enable_relay = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdvancedDatapathObservabilityConfig/RelayMode.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdvancedDatapathObservabilityConfig/RelayMode.php deleted file mode 100644 index 827f5dffa365..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdvancedDatapathObservabilityConfig/RelayMode.php +++ /dev/null @@ -1,71 +0,0 @@ -google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode - */ -class RelayMode -{ - /** - * Default value. This shouldn't be used. - * - * Generated from protobuf enum RELAY_MODE_UNSPECIFIED = 0; - */ - const RELAY_MODE_UNSPECIFIED = 0; - /** - * disabled - * - * Generated from protobuf enum DISABLED = 1; - */ - const DISABLED = 1; - /** - * exposed via internal load balancer - * - * Generated from protobuf enum INTERNAL_VPC_LB = 3; - */ - const INTERNAL_VPC_LB = 3; - /** - * exposed via external load balancer - * - * Generated from protobuf enum EXTERNAL_LB = 4; - */ - const EXTERNAL_LB = 4; - - private static $valueToName = [ - self::RELAY_MODE_UNSPECIFIED => 'RELAY_MODE_UNSPECIFIED', - self::DISABLED => 'DISABLED', - self::INTERNAL_VPC_LB => 'INTERNAL_VPC_LB', - self::EXTERNAL_LB => 'EXTERNAL_LB', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RelayMode::class, \Google\Cloud\Container\V1\AdvancedDatapathObservabilityConfig_RelayMode::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdvancedMachineFeatures.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdvancedMachineFeatures.php deleted file mode 100644 index 807402018014..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdvancedMachineFeatures.php +++ /dev/null @@ -1,85 +0,0 @@ -google.container.v1.AdvancedMachineFeatures - */ -class AdvancedMachineFeatures extends \Google\Protobuf\Internal\Message -{ - /** - * The number of threads per physical core. To disable simultaneous - * multithreading (SMT) set this to 1. If unset, the maximum number of threads - * supported per core by the underlying processor is assumed. - * - * Generated from protobuf field optional int64 threads_per_core = 1; - */ - protected $threads_per_core = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $threads_per_core - * The number of threads per physical core. To disable simultaneous - * multithreading (SMT) set this to 1. If unset, the maximum number of threads - * supported per core by the underlying processor is assumed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The number of threads per physical core. To disable simultaneous - * multithreading (SMT) set this to 1. If unset, the maximum number of threads - * supported per core by the underlying processor is assumed. - * - * Generated from protobuf field optional int64 threads_per_core = 1; - * @return int|string - */ - public function getThreadsPerCore() - { - return isset($this->threads_per_core) ? $this->threads_per_core : 0; - } - - public function hasThreadsPerCore() - { - return isset($this->threads_per_core); - } - - public function clearThreadsPerCore() - { - unset($this->threads_per_core); - } - - /** - * The number of threads per physical core. To disable simultaneous - * multithreading (SMT) set this to 1. If unset, the maximum number of threads - * supported per core by the underlying processor is assumed. - * - * Generated from protobuf field optional int64 threads_per_core = 1; - * @param int|string $var - * @return $this - */ - public function setThreadsPerCore($var) - { - GPBUtil::checkInt64($var); - $this->threads_per_core = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AuthenticatorGroupsConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AuthenticatorGroupsConfig.php deleted file mode 100644 index 2c82ec7e4c2a..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AuthenticatorGroupsConfig.php +++ /dev/null @@ -1,109 +0,0 @@ -google.container.v1.AuthenticatorGroupsConfig - */ -class AuthenticatorGroupsConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether this cluster should return group membership lookups - * during authentication using a group of security groups. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - /** - * The name of the security group-of-groups to be used. Only relevant - * if enabled = true. - * - * Generated from protobuf field string security_group = 2; - */ - protected $security_group = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether this cluster should return group membership lookups - * during authentication using a group of security groups. - * @type string $security_group - * The name of the security group-of-groups to be used. Only relevant - * if enabled = true. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether this cluster should return group membership lookups - * during authentication using a group of security groups. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether this cluster should return group membership lookups - * during authentication using a group of security groups. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - - /** - * The name of the security group-of-groups to be used. Only relevant - * if enabled = true. - * - * Generated from protobuf field string security_group = 2; - * @return string - */ - public function getSecurityGroup() - { - return $this->security_group; - } - - /** - * The name of the security group-of-groups to be used. Only relevant - * if enabled = true. - * - * Generated from protobuf field string security_group = 2; - * @param string $var - * @return $this - */ - public function setSecurityGroup($var) - { - GPBUtil::checkString($var, True); - $this->security_group = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutoUpgradeOptions.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutoUpgradeOptions.php deleted file mode 100644 index b5f35f9a7725..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutoUpgradeOptions.php +++ /dev/null @@ -1,114 +0,0 @@ -google.container.v1.AutoUpgradeOptions - */ -class AutoUpgradeOptions extends \Google\Protobuf\Internal\Message -{ - /** - * [Output only] This field is set when upgrades are about to commence - * with the approximate start time for the upgrades, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string auto_upgrade_start_time = 1; - */ - protected $auto_upgrade_start_time = ''; - /** - * [Output only] This field is set when upgrades are about to commence - * with the description of the upgrade. - * - * Generated from protobuf field string description = 2; - */ - protected $description = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $auto_upgrade_start_time - * [Output only] This field is set when upgrades are about to commence - * with the approximate start time for the upgrades, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * @type string $description - * [Output only] This field is set when upgrades are about to commence - * with the description of the upgrade. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * [Output only] This field is set when upgrades are about to commence - * with the approximate start time for the upgrades, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string auto_upgrade_start_time = 1; - * @return string - */ - public function getAutoUpgradeStartTime() - { - return $this->auto_upgrade_start_time; - } - - /** - * [Output only] This field is set when upgrades are about to commence - * with the approximate start time for the upgrades, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string auto_upgrade_start_time = 1; - * @param string $var - * @return $this - */ - public function setAutoUpgradeStartTime($var) - { - GPBUtil::checkString($var, True); - $this->auto_upgrade_start_time = $var; - - return $this; - } - - /** - * [Output only] This field is set when upgrades are about to commence - * with the description of the upgrade. - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * [Output only] This field is set when upgrades are about to commence - * with the description of the upgrade. - * - * Generated from protobuf field string description = 2; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Autopilot.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Autopilot.php deleted file mode 100644 index 238b7e88db99..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Autopilot.php +++ /dev/null @@ -1,111 +0,0 @@ -google.container.v1.Autopilot - */ -class Autopilot extends \Google\Protobuf\Internal\Message -{ - /** - * Enable Autopilot - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - /** - * Workload policy configuration for Autopilot. - * - * Generated from protobuf field .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; - */ - protected $workload_policy_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Enable Autopilot - * @type \Google\Cloud\Container\V1\WorkloadPolicyConfig $workload_policy_config - * Workload policy configuration for Autopilot. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Enable Autopilot - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Enable Autopilot - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - - /** - * Workload policy configuration for Autopilot. - * - * Generated from protobuf field .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; - * @return \Google\Cloud\Container\V1\WorkloadPolicyConfig|null - */ - public function getWorkloadPolicyConfig() - { - return $this->workload_policy_config; - } - - public function hasWorkloadPolicyConfig() - { - return isset($this->workload_policy_config); - } - - public function clearWorkloadPolicyConfig() - { - unset($this->workload_policy_config); - } - - /** - * Workload policy configuration for Autopilot. - * - * Generated from protobuf field .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; - * @param \Google\Cloud\Container\V1\WorkloadPolicyConfig $var - * @return $this - */ - public function setWorkloadPolicyConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\WorkloadPolicyConfig::class); - $this->workload_policy_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutopilotCompatibilityIssue.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutopilotCompatibilityIssue.php deleted file mode 100644 index 59fced6edbf7..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutopilotCompatibilityIssue.php +++ /dev/null @@ -1,248 +0,0 @@ -google.container.v1.AutopilotCompatibilityIssue - */ -class AutopilotCompatibilityIssue extends \Google\Protobuf\Internal\Message -{ - /** - * The last time when this issue was observed. - * - * Generated from protobuf field .google.protobuf.Timestamp last_observation = 1; - */ - protected $last_observation = null; - /** - * The constraint type of the issue. - * - * Generated from protobuf field string constraint_type = 2; - */ - protected $constraint_type = ''; - /** - * The incompatibility type of this issue. - * - * Generated from protobuf field .google.container.v1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; - */ - protected $incompatibility_type = 0; - /** - * The name of the resources which are subject to this issue. - * - * Generated from protobuf field repeated string subjects = 4; - */ - private $subjects; - /** - * A URL to a public documnetation, which addresses resolving this issue. - * - * Generated from protobuf field string documentation_url = 5; - */ - protected $documentation_url = ''; - /** - * The description of the issue. - * - * Generated from protobuf field string description = 6; - */ - protected $description = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $last_observation - * The last time when this issue was observed. - * @type string $constraint_type - * The constraint type of the issue. - * @type int $incompatibility_type - * The incompatibility type of this issue. - * @type array|\Google\Protobuf\Internal\RepeatedField $subjects - * The name of the resources which are subject to this issue. - * @type string $documentation_url - * A URL to a public documnetation, which addresses resolving this issue. - * @type string $description - * The description of the issue. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The last time when this issue was observed. - * - * Generated from protobuf field .google.protobuf.Timestamp last_observation = 1; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastObservation() - { - return $this->last_observation; - } - - public function hasLastObservation() - { - return isset($this->last_observation); - } - - public function clearLastObservation() - { - unset($this->last_observation); - } - - /** - * The last time when this issue was observed. - * - * Generated from protobuf field .google.protobuf.Timestamp last_observation = 1; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastObservation($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_observation = $var; - - return $this; - } - - /** - * The constraint type of the issue. - * - * Generated from protobuf field string constraint_type = 2; - * @return string - */ - public function getConstraintType() - { - return $this->constraint_type; - } - - /** - * The constraint type of the issue. - * - * Generated from protobuf field string constraint_type = 2; - * @param string $var - * @return $this - */ - public function setConstraintType($var) - { - GPBUtil::checkString($var, True); - $this->constraint_type = $var; - - return $this; - } - - /** - * The incompatibility type of this issue. - * - * Generated from protobuf field .google.container.v1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; - * @return int - */ - public function getIncompatibilityType() - { - return $this->incompatibility_type; - } - - /** - * The incompatibility type of this issue. - * - * Generated from protobuf field .google.container.v1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; - * @param int $var - * @return $this - */ - public function setIncompatibilityType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\AutopilotCompatibilityIssue\IssueType::class); - $this->incompatibility_type = $var; - - return $this; - } - - /** - * The name of the resources which are subject to this issue. - * - * Generated from protobuf field repeated string subjects = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSubjects() - { - return $this->subjects; - } - - /** - * The name of the resources which are subject to this issue. - * - * Generated from protobuf field repeated string subjects = 4; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSubjects($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->subjects = $arr; - - return $this; - } - - /** - * A URL to a public documnetation, which addresses resolving this issue. - * - * Generated from protobuf field string documentation_url = 5; - * @return string - */ - public function getDocumentationUrl() - { - return $this->documentation_url; - } - - /** - * A URL to a public documnetation, which addresses resolving this issue. - * - * Generated from protobuf field string documentation_url = 5; - * @param string $var - * @return $this - */ - public function setDocumentationUrl($var) - { - GPBUtil::checkString($var, True); - $this->documentation_url = $var; - - return $this; - } - - /** - * The description of the issue. - * - * Generated from protobuf field string description = 6; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * The description of the issue. - * - * Generated from protobuf field string description = 6; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutopilotCompatibilityIssue/IssueType.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutopilotCompatibilityIssue/IssueType.php deleted file mode 100644 index 7ab458adac79..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutopilotCompatibilityIssue/IssueType.php +++ /dev/null @@ -1,75 +0,0 @@ -google.container.v1.AutopilotCompatibilityIssue.IssueType - */ -class IssueType -{ - /** - * Default value, should not be used. - * - * Generated from protobuf enum UNSPECIFIED = 0; - */ - const UNSPECIFIED = 0; - /** - * Indicates that the issue is a known incompatibility between the - * cluster and Autopilot mode. - * - * Generated from protobuf enum INCOMPATIBILITY = 1; - */ - const INCOMPATIBILITY = 1; - /** - * Indicates the issue is an incompatibility if customers take no further - * action to resolve. - * - * Generated from protobuf enum ADDITIONAL_CONFIG_REQUIRED = 2; - */ - const ADDITIONAL_CONFIG_REQUIRED = 2; - /** - * Indicates the issue is not an incompatibility, but depending on the - * workloads business logic, there is a potential that they won't work on - * Autopilot. - * - * Generated from protobuf enum PASSED_WITH_OPTIONAL_CONFIG = 3; - */ - const PASSED_WITH_OPTIONAL_CONFIG = 3; - - private static $valueToName = [ - self::UNSPECIFIED => 'UNSPECIFIED', - self::INCOMPATIBILITY => 'INCOMPATIBILITY', - self::ADDITIONAL_CONFIG_REQUIRED => 'ADDITIONAL_CONFIG_REQUIRED', - self::PASSED_WITH_OPTIONAL_CONFIG => 'PASSED_WITH_OPTIONAL_CONFIG', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(IssueType::class, \Google\Cloud\Container\V1\AutopilotCompatibilityIssue_IssueType::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutoprovisioningNodePoolDefaults.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutoprovisioningNodePoolDefaults.php deleted file mode 100644 index 8028b6f87ae5..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutoprovisioningNodePoolDefaults.php +++ /dev/null @@ -1,537 +0,0 @@ -google.container.v1.AutoprovisioningNodePoolDefaults - */ -class AutoprovisioningNodePoolDefaults extends \Google\Protobuf\Internal\Message -{ - /** - * Scopes that are used by NAP when creating node pools. - * - * Generated from protobuf field repeated string oauth_scopes = 1; - */ - private $oauth_scopes; - /** - * The Google Cloud Platform Service Account to be used by the node VMs. - * - * Generated from protobuf field string service_account = 2; - */ - protected $service_account = ''; - /** - * Specifies the upgrade settings for NAP created node pools - * - * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - */ - protected $upgrade_settings = null; - /** - * Specifies the node management options for NAP created node-pools. - * - * Generated from protobuf field .google.container.v1.NodeManagement management = 4; - */ - protected $management = null; - /** - * Deprecated. Minimum CPU platform to be used for NAP created node pools. - * The instance may be scheduled on the specified or newer CPU platform. - * Applicable values are the friendly names of CPU platforms, such as - * minCpuPlatform: Intel Haswell or - * minCpuPlatform: Intel Sandy Bridge. For more - * information, read [how to specify min CPU - * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). - * This field is deprecated, min_cpu_platform should be specified using - * `cloud.google.com/requested-min-cpu-platform` label selector on the pod. - * To unset the min cpu platform field pass "automatic" - * as field value. - * - * Generated from protobuf field string min_cpu_platform = 5 [deprecated = true]; - * @deprecated - */ - protected $min_cpu_platform = ''; - /** - * Size of the disk attached to each node, specified in GB. - * The smallest allowed disk size is 10GB. - * If unspecified, the default disk size is 100GB. - * - * Generated from protobuf field int32 disk_size_gb = 6; - */ - protected $disk_size_gb = 0; - /** - * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or - * 'pd-balanced') - * If unspecified, the default disk type is 'pd-standard' - * - * Generated from protobuf field string disk_type = 7; - */ - protected $disk_type = ''; - /** - * Shielded Instance options. - * - * Generated from protobuf field .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - */ - protected $shielded_instance_config = null; - /** - * The Customer Managed Encryption Key used to encrypt the boot disk attached - * to each node in the node pool. This should be of the form - * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. - * For more information about protecting resources with Cloud KMS Keys please - * see: - * https://cloud.google.com/compute/docs/disks/customer-managed-encryption - * - * Generated from protobuf field string boot_disk_kms_key = 9; - */ - protected $boot_disk_kms_key = ''; - /** - * The image type to use for NAP created node. Please see - * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for - * available image types. - * - * Generated from protobuf field string image_type = 10; - */ - protected $image_type = ''; - /** - * Enable or disable Kubelet read only port. - * - * Generated from protobuf field optional bool insecure_kubelet_readonly_port_enabled = 13; - */ - protected $insecure_kubelet_readonly_port_enabled = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $oauth_scopes - * Scopes that are used by NAP when creating node pools. - * @type string $service_account - * The Google Cloud Platform Service Account to be used by the node VMs. - * @type \Google\Cloud\Container\V1\NodePool\UpgradeSettings $upgrade_settings - * Specifies the upgrade settings for NAP created node pools - * @type \Google\Cloud\Container\V1\NodeManagement $management - * Specifies the node management options for NAP created node-pools. - * @type string $min_cpu_platform - * Deprecated. Minimum CPU platform to be used for NAP created node pools. - * The instance may be scheduled on the specified or newer CPU platform. - * Applicable values are the friendly names of CPU platforms, such as - * minCpuPlatform: Intel Haswell or - * minCpuPlatform: Intel Sandy Bridge. For more - * information, read [how to specify min CPU - * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). - * This field is deprecated, min_cpu_platform should be specified using - * `cloud.google.com/requested-min-cpu-platform` label selector on the pod. - * To unset the min cpu platform field pass "automatic" - * as field value. - * @type int $disk_size_gb - * Size of the disk attached to each node, specified in GB. - * The smallest allowed disk size is 10GB. - * If unspecified, the default disk size is 100GB. - * @type string $disk_type - * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or - * 'pd-balanced') - * If unspecified, the default disk type is 'pd-standard' - * @type \Google\Cloud\Container\V1\ShieldedInstanceConfig $shielded_instance_config - * Shielded Instance options. - * @type string $boot_disk_kms_key - * The Customer Managed Encryption Key used to encrypt the boot disk attached - * to each node in the node pool. This should be of the form - * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. - * For more information about protecting resources with Cloud KMS Keys please - * see: - * https://cloud.google.com/compute/docs/disks/customer-managed-encryption - * @type string $image_type - * The image type to use for NAP created node. Please see - * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for - * available image types. - * @type bool $insecure_kubelet_readonly_port_enabled - * Enable or disable Kubelet read only port. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Scopes that are used by NAP when creating node pools. - * - * Generated from protobuf field repeated string oauth_scopes = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOauthScopes() - { - return $this->oauth_scopes; - } - - /** - * Scopes that are used by NAP when creating node pools. - * - * Generated from protobuf field repeated string oauth_scopes = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOauthScopes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->oauth_scopes = $arr; - - return $this; - } - - /** - * The Google Cloud Platform Service Account to be used by the node VMs. - * - * Generated from protobuf field string service_account = 2; - * @return string - */ - public function getServiceAccount() - { - return $this->service_account; - } - - /** - * The Google Cloud Platform Service Account to be used by the node VMs. - * - * Generated from protobuf field string service_account = 2; - * @param string $var - * @return $this - */ - public function setServiceAccount($var) - { - GPBUtil::checkString($var, True); - $this->service_account = $var; - - return $this; - } - - /** - * Specifies the upgrade settings for NAP created node pools - * - * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - * @return \Google\Cloud\Container\V1\NodePool\UpgradeSettings|null - */ - public function getUpgradeSettings() - { - return $this->upgrade_settings; - } - - public function hasUpgradeSettings() - { - return isset($this->upgrade_settings); - } - - public function clearUpgradeSettings() - { - unset($this->upgrade_settings); - } - - /** - * Specifies the upgrade settings for NAP created node pools - * - * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - * @param \Google\Cloud\Container\V1\NodePool\UpgradeSettings $var - * @return $this - */ - public function setUpgradeSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool\UpgradeSettings::class); - $this->upgrade_settings = $var; - - return $this; - } - - /** - * Specifies the node management options for NAP created node-pools. - * - * Generated from protobuf field .google.container.v1.NodeManagement management = 4; - * @return \Google\Cloud\Container\V1\NodeManagement|null - */ - public function getManagement() - { - return $this->management; - } - - public function hasManagement() - { - return isset($this->management); - } - - public function clearManagement() - { - unset($this->management); - } - - /** - * Specifies the node management options for NAP created node-pools. - * - * Generated from protobuf field .google.container.v1.NodeManagement management = 4; - * @param \Google\Cloud\Container\V1\NodeManagement $var - * @return $this - */ - public function setManagement($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeManagement::class); - $this->management = $var; - - return $this; - } - - /** - * Deprecated. Minimum CPU platform to be used for NAP created node pools. - * The instance may be scheduled on the specified or newer CPU platform. - * Applicable values are the friendly names of CPU platforms, such as - * minCpuPlatform: Intel Haswell or - * minCpuPlatform: Intel Sandy Bridge. For more - * information, read [how to specify min CPU - * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). - * This field is deprecated, min_cpu_platform should be specified using - * `cloud.google.com/requested-min-cpu-platform` label selector on the pod. - * To unset the min cpu platform field pass "automatic" - * as field value. - * - * Generated from protobuf field string min_cpu_platform = 5 [deprecated = true]; - * @return string - * @deprecated - */ - public function getMinCpuPlatform() - { - @trigger_error('min_cpu_platform is deprecated.', E_USER_DEPRECATED); - return $this->min_cpu_platform; - } - - /** - * Deprecated. Minimum CPU platform to be used for NAP created node pools. - * The instance may be scheduled on the specified or newer CPU platform. - * Applicable values are the friendly names of CPU platforms, such as - * minCpuPlatform: Intel Haswell or - * minCpuPlatform: Intel Sandy Bridge. For more - * information, read [how to specify min CPU - * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). - * This field is deprecated, min_cpu_platform should be specified using - * `cloud.google.com/requested-min-cpu-platform` label selector on the pod. - * To unset the min cpu platform field pass "automatic" - * as field value. - * - * Generated from protobuf field string min_cpu_platform = 5 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setMinCpuPlatform($var) - { - @trigger_error('min_cpu_platform is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->min_cpu_platform = $var; - - return $this; - } - - /** - * Size of the disk attached to each node, specified in GB. - * The smallest allowed disk size is 10GB. - * If unspecified, the default disk size is 100GB. - * - * Generated from protobuf field int32 disk_size_gb = 6; - * @return int - */ - public function getDiskSizeGb() - { - return $this->disk_size_gb; - } - - /** - * Size of the disk attached to each node, specified in GB. - * The smallest allowed disk size is 10GB. - * If unspecified, the default disk size is 100GB. - * - * Generated from protobuf field int32 disk_size_gb = 6; - * @param int $var - * @return $this - */ - public function setDiskSizeGb($var) - { - GPBUtil::checkInt32($var); - $this->disk_size_gb = $var; - - return $this; - } - - /** - * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or - * 'pd-balanced') - * If unspecified, the default disk type is 'pd-standard' - * - * Generated from protobuf field string disk_type = 7; - * @return string - */ - public function getDiskType() - { - return $this->disk_type; - } - - /** - * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or - * 'pd-balanced') - * If unspecified, the default disk type is 'pd-standard' - * - * Generated from protobuf field string disk_type = 7; - * @param string $var - * @return $this - */ - public function setDiskType($var) - { - GPBUtil::checkString($var, True); - $this->disk_type = $var; - - return $this; - } - - /** - * Shielded Instance options. - * - * Generated from protobuf field .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - * @return \Google\Cloud\Container\V1\ShieldedInstanceConfig|null - */ - public function getShieldedInstanceConfig() - { - return $this->shielded_instance_config; - } - - public function hasShieldedInstanceConfig() - { - return isset($this->shielded_instance_config); - } - - public function clearShieldedInstanceConfig() - { - unset($this->shielded_instance_config); - } - - /** - * Shielded Instance options. - * - * Generated from protobuf field .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - * @param \Google\Cloud\Container\V1\ShieldedInstanceConfig $var - * @return $this - */ - public function setShieldedInstanceConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ShieldedInstanceConfig::class); - $this->shielded_instance_config = $var; - - return $this; - } - - /** - * The Customer Managed Encryption Key used to encrypt the boot disk attached - * to each node in the node pool. This should be of the form - * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. - * For more information about protecting resources with Cloud KMS Keys please - * see: - * https://cloud.google.com/compute/docs/disks/customer-managed-encryption - * - * Generated from protobuf field string boot_disk_kms_key = 9; - * @return string - */ - public function getBootDiskKmsKey() - { - return $this->boot_disk_kms_key; - } - - /** - * The Customer Managed Encryption Key used to encrypt the boot disk attached - * to each node in the node pool. This should be of the form - * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. - * For more information about protecting resources with Cloud KMS Keys please - * see: - * https://cloud.google.com/compute/docs/disks/customer-managed-encryption - * - * Generated from protobuf field string boot_disk_kms_key = 9; - * @param string $var - * @return $this - */ - public function setBootDiskKmsKey($var) - { - GPBUtil::checkString($var, True); - $this->boot_disk_kms_key = $var; - - return $this; - } - - /** - * The image type to use for NAP created node. Please see - * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for - * available image types. - * - * Generated from protobuf field string image_type = 10; - * @return string - */ - public function getImageType() - { - return $this->image_type; - } - - /** - * The image type to use for NAP created node. Please see - * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for - * available image types. - * - * Generated from protobuf field string image_type = 10; - * @param string $var - * @return $this - */ - public function setImageType($var) - { - GPBUtil::checkString($var, True); - $this->image_type = $var; - - return $this; - } - - /** - * Enable or disable Kubelet read only port. - * - * Generated from protobuf field optional bool insecure_kubelet_readonly_port_enabled = 13; - * @return bool - */ - public function getInsecureKubeletReadonlyPortEnabled() - { - return isset($this->insecure_kubelet_readonly_port_enabled) ? $this->insecure_kubelet_readonly_port_enabled : false; - } - - public function hasInsecureKubeletReadonlyPortEnabled() - { - return isset($this->insecure_kubelet_readonly_port_enabled); - } - - public function clearInsecureKubeletReadonlyPortEnabled() - { - unset($this->insecure_kubelet_readonly_port_enabled); - } - - /** - * Enable or disable Kubelet read only port. - * - * Generated from protobuf field optional bool insecure_kubelet_readonly_port_enabled = 13; - * @param bool $var - * @return $this - */ - public function setInsecureKubeletReadonlyPortEnabled($var) - { - GPBUtil::checkBool($var); - $this->insecure_kubelet_readonly_port_enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BestEffortProvisioning.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BestEffortProvisioning.php deleted file mode 100644 index a9a398e1599e..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BestEffortProvisioning.php +++ /dev/null @@ -1,117 +0,0 @@ -google.container.v1.BestEffortProvisioning - */ -class BestEffortProvisioning extends \Google\Protobuf\Internal\Message -{ - /** - * When this is enabled, cluster/node pool creations will ignore non-fatal - * errors like stockout to best provision as many nodes as possible right now - * and eventually bring up all target number of nodes - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - /** - * Minimum number of nodes to be provisioned to be considered as succeeded, - * and the rest of nodes will be provisioned gradually and eventually when - * stockout issue has been resolved. - * - * Generated from protobuf field int32 min_provision_nodes = 2; - */ - protected $min_provision_nodes = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * When this is enabled, cluster/node pool creations will ignore non-fatal - * errors like stockout to best provision as many nodes as possible right now - * and eventually bring up all target number of nodes - * @type int $min_provision_nodes - * Minimum number of nodes to be provisioned to be considered as succeeded, - * and the rest of nodes will be provisioned gradually and eventually when - * stockout issue has been resolved. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * When this is enabled, cluster/node pool creations will ignore non-fatal - * errors like stockout to best provision as many nodes as possible right now - * and eventually bring up all target number of nodes - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * When this is enabled, cluster/node pool creations will ignore non-fatal - * errors like stockout to best provision as many nodes as possible right now - * and eventually bring up all target number of nodes - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - - /** - * Minimum number of nodes to be provisioned to be considered as succeeded, - * and the rest of nodes will be provisioned gradually and eventually when - * stockout issue has been resolved. - * - * Generated from protobuf field int32 min_provision_nodes = 2; - * @return int - */ - public function getMinProvisionNodes() - { - return $this->min_provision_nodes; - } - - /** - * Minimum number of nodes to be provisioned to be considered as succeeded, - * and the rest of nodes will be provisioned gradually and eventually when - * stockout issue has been resolved. - * - * Generated from protobuf field int32 min_provision_nodes = 2; - * @param int $var - * @return $this - */ - public function setMinProvisionNodes($var) - { - GPBUtil::checkInt32($var); - $this->min_provision_nodes = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization.php deleted file mode 100644 index d97177fdd9b4..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization.php +++ /dev/null @@ -1,118 +0,0 @@ -google.container.v1.BinaryAuthorization - */ -class BinaryAuthorization extends \Google\Protobuf\Internal\Message -{ - /** - * This field is deprecated. Leave this unset and instead configure - * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to - * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored. - * - * Generated from protobuf field bool enabled = 1 [deprecated = true]; - * @deprecated - */ - protected $enabled = false; - /** - * Mode of operation for binauthz policy evaluation. If unspecified, defaults - * to DISABLED. - * - * Generated from protobuf field .google.container.v1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; - */ - protected $evaluation_mode = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * This field is deprecated. Leave this unset and instead configure - * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to - * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored. - * @type int $evaluation_mode - * Mode of operation for binauthz policy evaluation. If unspecified, defaults - * to DISABLED. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * This field is deprecated. Leave this unset and instead configure - * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to - * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored. - * - * Generated from protobuf field bool enabled = 1 [deprecated = true]; - * @return bool - * @deprecated - */ - public function getEnabled() - { - @trigger_error('enabled is deprecated.', E_USER_DEPRECATED); - return $this->enabled; - } - - /** - * This field is deprecated. Leave this unset and instead configure - * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to - * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored. - * - * Generated from protobuf field bool enabled = 1 [deprecated = true]; - * @param bool $var - * @return $this - * @deprecated - */ - public function setEnabled($var) - { - @trigger_error('enabled is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - - /** - * Mode of operation for binauthz policy evaluation. If unspecified, defaults - * to DISABLED. - * - * Generated from protobuf field .google.container.v1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; - * @return int - */ - public function getEvaluationMode() - { - return $this->evaluation_mode; - } - - /** - * Mode of operation for binauthz policy evaluation. If unspecified, defaults - * to DISABLED. - * - * Generated from protobuf field .google.container.v1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; - * @param int $var - * @return $this - */ - public function setEvaluationMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\BinaryAuthorization\EvaluationMode::class); - $this->evaluation_mode = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization/EvaluationMode.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization/EvaluationMode.php deleted file mode 100644 index 425ec404c0bf..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization/EvaluationMode.php +++ /dev/null @@ -1,66 +0,0 @@ -google.container.v1.BinaryAuthorization.EvaluationMode - */ -class EvaluationMode -{ - /** - * Default value - * - * Generated from protobuf enum EVALUATION_MODE_UNSPECIFIED = 0; - */ - const EVALUATION_MODE_UNSPECIFIED = 0; - /** - * Disable BinaryAuthorization - * - * Generated from protobuf enum DISABLED = 1; - */ - const DISABLED = 1; - /** - * Enforce Kubernetes admission requests with BinaryAuthorization using the - * project's singleton policy. This is equivalent to setting the - * enabled boolean to true. - * - * Generated from protobuf enum PROJECT_SINGLETON_POLICY_ENFORCE = 2; - */ - const PROJECT_SINGLETON_POLICY_ENFORCE = 2; - - private static $valueToName = [ - self::EVALUATION_MODE_UNSPECIFIED => 'EVALUATION_MODE_UNSPECIFIED', - self::DISABLED => 'DISABLED', - self::PROJECT_SINGLETON_POLICY_ENFORCE => 'PROJECT_SINGLETON_POLICY_ENFORCE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(EvaluationMode::class, \Google\Cloud\Container\V1\BinaryAuthorization_EvaluationMode::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings.php deleted file mode 100644 index e139c636a105..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings.php +++ /dev/null @@ -1,123 +0,0 @@ -google.container.v1.BlueGreenSettings - */ -class BlueGreenSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Time needed after draining entire blue pool. After this period, blue pool - * will be cleaned up. - * - * Generated from protobuf field optional .google.protobuf.Duration node_pool_soak_duration = 2; - */ - protected $node_pool_soak_duration = null; - protected $rollout_policy; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\BlueGreenSettings\StandardRolloutPolicy $standard_rollout_policy - * Standard policy for the blue-green upgrade. - * @type \Google\Protobuf\Duration $node_pool_soak_duration - * Time needed after draining entire blue pool. After this period, blue pool - * will be cleaned up. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Standard policy for the blue-green upgrade. - * - * Generated from protobuf field .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; - * @return \Google\Cloud\Container\V1\BlueGreenSettings\StandardRolloutPolicy|null - */ - public function getStandardRolloutPolicy() - { - return $this->readOneof(1); - } - - public function hasStandardRolloutPolicy() - { - return $this->hasOneof(1); - } - - /** - * Standard policy for the blue-green upgrade. - * - * Generated from protobuf field .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; - * @param \Google\Cloud\Container\V1\BlueGreenSettings\StandardRolloutPolicy $var - * @return $this - */ - public function setStandardRolloutPolicy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\BlueGreenSettings\StandardRolloutPolicy::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Time needed after draining entire blue pool. After this period, blue pool - * will be cleaned up. - * - * Generated from protobuf field optional .google.protobuf.Duration node_pool_soak_duration = 2; - * @return \Google\Protobuf\Duration|null - */ - public function getNodePoolSoakDuration() - { - return $this->node_pool_soak_duration; - } - - public function hasNodePoolSoakDuration() - { - return isset($this->node_pool_soak_duration); - } - - public function clearNodePoolSoakDuration() - { - unset($this->node_pool_soak_duration); - } - - /** - * Time needed after draining entire blue pool. After this period, blue pool - * will be cleaned up. - * - * Generated from protobuf field optional .google.protobuf.Duration node_pool_soak_duration = 2; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setNodePoolSoakDuration($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->node_pool_soak_duration = $var; - - return $this; - } - - /** - * @return string - */ - public function getRolloutPolicy() - { - return $this->whichOneof("rollout_policy"); - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings/StandardRolloutPolicy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings/StandardRolloutPolicy.php deleted file mode 100644 index 8008e05364d2..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings/StandardRolloutPolicy.php +++ /dev/null @@ -1,158 +0,0 @@ -google.container.v1.BlueGreenSettings.StandardRolloutPolicy - */ -class StandardRolloutPolicy extends \Google\Protobuf\Internal\Message -{ - /** - * Soak time after each batch gets drained. Default to zero. - * - * Generated from protobuf field optional .google.protobuf.Duration batch_soak_duration = 3; - */ - protected $batch_soak_duration = null; - protected $update_batch_size; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $batch_percentage - * Percentage of the blue pool nodes to drain in a batch. - * The range of this field should be (0.0, 1.0]. - * @type int $batch_node_count - * Number of blue nodes to drain in a batch. - * @type \Google\Protobuf\Duration $batch_soak_duration - * Soak time after each batch gets drained. Default to zero. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Percentage of the blue pool nodes to drain in a batch. - * The range of this field should be (0.0, 1.0]. - * - * Generated from protobuf field float batch_percentage = 1; - * @return float - */ - public function getBatchPercentage() - { - return $this->readOneof(1); - } - - public function hasBatchPercentage() - { - return $this->hasOneof(1); - } - - /** - * Percentage of the blue pool nodes to drain in a batch. - * The range of this field should be (0.0, 1.0]. - * - * Generated from protobuf field float batch_percentage = 1; - * @param float $var - * @return $this - */ - public function setBatchPercentage($var) - { - GPBUtil::checkFloat($var); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Number of blue nodes to drain in a batch. - * - * Generated from protobuf field int32 batch_node_count = 2; - * @return int - */ - public function getBatchNodeCount() - { - return $this->readOneof(2); - } - - public function hasBatchNodeCount() - { - return $this->hasOneof(2); - } - - /** - * Number of blue nodes to drain in a batch. - * - * Generated from protobuf field int32 batch_node_count = 2; - * @param int $var - * @return $this - */ - public function setBatchNodeCount($var) - { - GPBUtil::checkInt32($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Soak time after each batch gets drained. Default to zero. - * - * Generated from protobuf field optional .google.protobuf.Duration batch_soak_duration = 3; - * @return \Google\Protobuf\Duration|null - */ - public function getBatchSoakDuration() - { - return $this->batch_soak_duration; - } - - public function hasBatchSoakDuration() - { - return isset($this->batch_soak_duration); - } - - public function clearBatchSoakDuration() - { - unset($this->batch_soak_duration); - } - - /** - * Soak time after each batch gets drained. Default to zero. - * - * Generated from protobuf field optional .google.protobuf.Duration batch_soak_duration = 3; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setBatchSoakDuration($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->batch_soak_duration = $var; - - return $this; - } - - /** - * @return string - */ - public function getUpdateBatchSize() - { - return $this->whichOneof("update_batch_size"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(StandardRolloutPolicy::class, \Google\Cloud\Container\V1\BlueGreenSettings_StandardRolloutPolicy::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CancelOperationRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CancelOperationRequest.php deleted file mode 100644 index b0240be146af..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CancelOperationRequest.php +++ /dev/null @@ -1,249 +0,0 @@ -google.container.v1.CancelOperationRequest - */ -class CancelOperationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * operation resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The server-assigned `name` of the operation. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string operation_id = 3 [deprecated = true]; - * @deprecated - */ - protected $operation_id = ''; - /** - * The name (project, location, operation id) of the operation to cancel. - * Specified in the format `projects/*/locations/*/operations/*`. - * - * Generated from protobuf field string name = 4; - */ - protected $name = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * operation resides. This field has been deprecated and replaced by the name - * field. - * @param string $operationId Deprecated. The server-assigned `name` of the operation. - * This field has been deprecated and replaced by the name field. - * - * @return \Google\Cloud\Container\V1\CancelOperationRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $operationId): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setOperationId($operationId); - } - - /** - * @param string $name The name (project, location, operation id) of the operation to cancel. - * Specified in the format `projects/*/locations/*/operations/*`. - * - * @return \Google\Cloud\Container\V1\CancelOperationRequest - * - * @experimental - */ - public static function buildFromName(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * operation resides. This field has been deprecated and replaced by the name - * field. - * @type string $operation_id - * Deprecated. The server-assigned `name` of the operation. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, operation id) of the operation to cancel. - * Specified in the format `projects/*/locations/*/operations/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * operation resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * operation resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The server-assigned `name` of the operation. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string operation_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getOperationId() - { - @trigger_error('operation_id is deprecated.', E_USER_DEPRECATED); - return $this->operation_id; - } - - /** - * Deprecated. The server-assigned `name` of the operation. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string operation_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setOperationId($var) - { - @trigger_error('operation_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->operation_id = $var; - - return $this; - } - - /** - * The name (project, location, operation id) of the operation to cancel. - * Specified in the format `projects/*/locations/*/operations/*`. - * - * Generated from protobuf field string name = 4; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, operation id) of the operation to cancel. - * Specified in the format `projects/*/locations/*/operations/*`. - * - * Generated from protobuf field string name = 4; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CheckAutopilotCompatibilityRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CheckAutopilotCompatibilityRequest.php deleted file mode 100644 index 700b298b2a29..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CheckAutopilotCompatibilityRequest.php +++ /dev/null @@ -1,72 +0,0 @@ -google.container.v1.CheckAutopilotCompatibilityRequest - */ -class CheckAutopilotCompatibilityRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The name (project, location, cluster) of the cluster to retrieve. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name (project, location, cluster) of the cluster to retrieve. - * Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The name (project, location, cluster) of the cluster to retrieve. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster) of the cluster to retrieve. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CheckAutopilotCompatibilityResponse.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CheckAutopilotCompatibilityResponse.php deleted file mode 100644 index 18b56a4a8a04..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CheckAutopilotCompatibilityResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.container.v1.CheckAutopilotCompatibilityResponse - */ -class CheckAutopilotCompatibilityResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of issues for the given operation. - * - * Generated from protobuf field repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; - */ - private $issues; - /** - * The summary of the autopilot compatibility response. - * - * Generated from protobuf field string summary = 2; - */ - protected $summary = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Container\V1\AutopilotCompatibilityIssue>|\Google\Protobuf\Internal\RepeatedField $issues - * The list of issues for the given operation. - * @type string $summary - * The summary of the autopilot compatibility response. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The list of issues for the given operation. - * - * Generated from protobuf field repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIssues() - { - return $this->issues; - } - - /** - * The list of issues for the given operation. - * - * Generated from protobuf field repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; - * @param array<\Google\Cloud\Container\V1\AutopilotCompatibilityIssue>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIssues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\AutopilotCompatibilityIssue::class); - $this->issues = $arr; - - return $this; - } - - /** - * The summary of the autopilot compatibility response. - * - * Generated from protobuf field string summary = 2; - * @return string - */ - public function getSummary() - { - return $this->summary; - } - - /** - * The summary of the autopilot compatibility response. - * - * Generated from protobuf field string summary = 2; - * @param string $var - * @return $this - */ - public function setSummary($var) - { - GPBUtil::checkString($var, True); - $this->summary = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClientCertificateConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClientCertificateConfig.php deleted file mode 100644 index 5ea0c28d3441..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClientCertificateConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.ClientCertificateConfig - */ -class ClientCertificateConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Issue a client certificate. - * - * Generated from protobuf field bool issue_client_certificate = 1; - */ - protected $issue_client_certificate = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $issue_client_certificate - * Issue a client certificate. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Issue a client certificate. - * - * Generated from protobuf field bool issue_client_certificate = 1; - * @return bool - */ - public function getIssueClientCertificate() - { - return $this->issue_client_certificate; - } - - /** - * Issue a client certificate. - * - * Generated from protobuf field bool issue_client_certificate = 1; - * @param bool $var - * @return $this - */ - public function setIssueClientCertificate($var) - { - GPBUtil::checkBool($var); - $this->issue_client_certificate = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CloudRunConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CloudRunConfig.php deleted file mode 100644 index 2ad11c8938e1..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CloudRunConfig.php +++ /dev/null @@ -1,101 +0,0 @@ -google.container.v1.CloudRunConfig - */ -class CloudRunConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether Cloud Run addon is enabled for this cluster. - * - * Generated from protobuf field bool disabled = 1; - */ - protected $disabled = false; - /** - * Which load balancer type is installed for Cloud Run. - * - * Generated from protobuf field .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - */ - protected $load_balancer_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $disabled - * Whether Cloud Run addon is enabled for this cluster. - * @type int $load_balancer_type - * Which load balancer type is installed for Cloud Run. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether Cloud Run addon is enabled for this cluster. - * - * Generated from protobuf field bool disabled = 1; - * @return bool - */ - public function getDisabled() - { - return $this->disabled; - } - - /** - * Whether Cloud Run addon is enabled for this cluster. - * - * Generated from protobuf field bool disabled = 1; - * @param bool $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkBool($var); - $this->disabled = $var; - - return $this; - } - - /** - * Which load balancer type is installed for Cloud Run. - * - * Generated from protobuf field .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - * @return int - */ - public function getLoadBalancerType() - { - return $this->load_balancer_type; - } - - /** - * Which load balancer type is installed for Cloud Run. - * - * Generated from protobuf field .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - * @param int $var - * @return $this - */ - public function setLoadBalancerType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\CloudRunConfig\LoadBalancerType::class); - $this->load_balancer_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CloudRunConfig/LoadBalancerType.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CloudRunConfig/LoadBalancerType.php deleted file mode 100644 index 03aa3ae7995e..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CloudRunConfig/LoadBalancerType.php +++ /dev/null @@ -1,64 +0,0 @@ -google.container.v1.CloudRunConfig.LoadBalancerType - */ -class LoadBalancerType -{ - /** - * Load balancer type for Cloud Run is unspecified. - * - * Generated from protobuf enum LOAD_BALANCER_TYPE_UNSPECIFIED = 0; - */ - const LOAD_BALANCER_TYPE_UNSPECIFIED = 0; - /** - * Install external load balancer for Cloud Run. - * - * Generated from protobuf enum LOAD_BALANCER_TYPE_EXTERNAL = 1; - */ - const LOAD_BALANCER_TYPE_EXTERNAL = 1; - /** - * Install internal load balancer for Cloud Run. - * - * Generated from protobuf enum LOAD_BALANCER_TYPE_INTERNAL = 2; - */ - const LOAD_BALANCER_TYPE_INTERNAL = 2; - - private static $valueToName = [ - self::LOAD_BALANCER_TYPE_UNSPECIFIED => 'LOAD_BALANCER_TYPE_UNSPECIFIED', - self::LOAD_BALANCER_TYPE_EXTERNAL => 'LOAD_BALANCER_TYPE_EXTERNAL', - self::LOAD_BALANCER_TYPE_INTERNAL => 'LOAD_BALANCER_TYPE_INTERNAL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(LoadBalancerType::class, \Google\Cloud\Container\V1\CloudRunConfig_LoadBalancerType::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Cluster.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Cluster.php deleted file mode 100644 index fc63afec75d5..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Cluster.php +++ /dev/null @@ -1,3164 +0,0 @@ -google.container.v1.Cluster - */ -class Cluster extends \Google\Protobuf\Internal\Message -{ - /** - * The name of this cluster. The name must be unique within this project - * and location (e.g. zone or region), and can be up to 40 characters with - * the following restrictions: - * * Lowercase letters, numbers, and hyphens only. - * * Must start with a letter. - * * Must end with a number or a letter. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * An optional description of this cluster. - * - * Generated from protobuf field string description = 2; - */ - protected $description = ''; - /** - * The number of nodes to create in this cluster. You must ensure that your - * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) - * is sufficient for this number of instances. You must also have available - * firewall and routes quota. - * For requests, this field should only be used in lieu of a - * "node_pool" object, since this configuration (along with the - * "node_config") will be used to create a "NodePool" object with an - * auto-generated name. Do not use this and a node_pool at the same time. - * This field is deprecated, use node_pool.initial_node_count instead. - * - * Generated from protobuf field int32 initial_node_count = 3 [deprecated = true]; - * @deprecated - */ - protected $initial_node_count = 0; - /** - * Parameters used in creating the cluster's nodes. - * For requests, this field should only be used in lieu of a - * "node_pool" object, since this configuration (along with the - * "initial_node_count") will be used to create a "NodePool" object with an - * auto-generated name. Do not use this and a node_pool at the same time. - * For responses, this field will be populated with the node configuration of - * the first node pool. (For configuration of each node pool, see - * `node_pool.config`) - * If unspecified, the defaults are used. - * This field is deprecated, use node_pool.config instead. - * - * Generated from protobuf field .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; - * @deprecated - */ - protected $node_config = null; - /** - * The authentication information for accessing the master endpoint. - * If unspecified, the defaults are used: - * For clusters before v1.12, if master_auth is unspecified, `username` will - * be set to "admin", a random password will be generated, and a client - * certificate will be issued. - * - * Generated from protobuf field .google.container.v1.MasterAuth master_auth = 5; - */ - protected $master_auth = null; - /** - * The logging service the cluster should use to write logs. - * Currently available options: - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * - * Generated from protobuf field string logging_service = 6; - */ - protected $logging_service = ''; - /** - * The monitoring service the cluster should use to write metrics. - * Currently available options: - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * - * Generated from protobuf field string monitoring_service = 7; - */ - protected $monitoring_service = ''; - /** - * The name of the Google Compute Engine - * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) - * to which the cluster is connected. If left unspecified, the `default` - * network will be used. - * - * Generated from protobuf field string network = 8; - */ - protected $network = ''; - /** - * The IP address range of the container pods in this cluster, in - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`). Leave blank to have - * one automatically chosen or specify a `/14` block in `10.0.0.0/8`. - * - * Generated from protobuf field string cluster_ipv4_cidr = 9; - */ - protected $cluster_ipv4_cidr = ''; - /** - * Configurations for the various addons available to run in the cluster. - * - * Generated from protobuf field .google.container.v1.AddonsConfig addons_config = 10; - */ - protected $addons_config = null; - /** - * The name of the Google Compute Engine - * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which - * the cluster is connected. - * - * Generated from protobuf field string subnetwork = 11; - */ - protected $subnetwork = ''; - /** - * The node pools associated with this cluster. - * This field should not be set if "node_config" or "initial_node_count" are - * specified. - * - * Generated from protobuf field repeated .google.container.v1.NodePool node_pools = 12; - */ - private $node_pools; - /** - * The list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. - * This field provides a default value if - * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) - * are not specified during node pool creation. - * Warning: changing cluster locations will update the - * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) - * of all node pools and will result in nodes being added and/or removed. - * - * Generated from protobuf field repeated string locations = 13; - */ - private $locations; - /** - * Kubernetes alpha features are enabled on this cluster. This includes alpha - * API groups (e.g. v1alpha1) and features that may not be production ready in - * the kubernetes version of the master and nodes. - * The cluster has no SLA for uptime and master/node upgrades are disabled. - * Alpha enabled clusters are automatically deleted thirty days after - * creation. - * - * Generated from protobuf field bool enable_kubernetes_alpha = 14; - */ - protected $enable_kubernetes_alpha = false; - /** - * The resource labels for the cluster to use to annotate any related - * Google Compute Engine resources. - * - * Generated from protobuf field map resource_labels = 15; - */ - private $resource_labels; - /** - * The fingerprint of the set of labels for this cluster. - * - * Generated from protobuf field string label_fingerprint = 16; - */ - protected $label_fingerprint = ''; - /** - * Configuration for the legacy ABAC authorization mode. - * - * Generated from protobuf field .google.container.v1.LegacyAbac legacy_abac = 18; - */ - protected $legacy_abac = null; - /** - * Configuration options for the NetworkPolicy feature. - * - * Generated from protobuf field .google.container.v1.NetworkPolicy network_policy = 19; - */ - protected $network_policy = null; - /** - * Configuration for cluster IP allocation. - * - * Generated from protobuf field .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - */ - protected $ip_allocation_policy = null; - /** - * The configuration options for master authorized networks feature. - * - * Generated from protobuf field .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - */ - protected $master_authorized_networks_config = null; - /** - * Configure the maintenance policy for this cluster. - * - * Generated from protobuf field .google.container.v1.MaintenancePolicy maintenance_policy = 23; - */ - protected $maintenance_policy = null; - /** - * Configuration for Binary Authorization. - * - * Generated from protobuf field .google.container.v1.BinaryAuthorization binary_authorization = 24; - */ - protected $binary_authorization = null; - /** - * Cluster-level autoscaling configuration. - * - * Generated from protobuf field .google.container.v1.ClusterAutoscaling autoscaling = 26; - */ - protected $autoscaling = null; - /** - * Configuration for cluster networking. - * - * Generated from protobuf field .google.container.v1.NetworkConfig network_config = 27; - */ - protected $network_config = null; - /** - * The default constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool of this cluster. Only honored - * if cluster created with IP Alias support. - * - * Generated from protobuf field .google.container.v1.MaxPodsConstraint default_max_pods_constraint = 30; - */ - protected $default_max_pods_constraint = null; - /** - * Configuration for exporting resource usages. Resource usage export is - * disabled when this config is unspecified. - * - * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; - */ - protected $resource_usage_export_config = null; - /** - * Configuration controlling RBAC group membership information. - * - * Generated from protobuf field .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - */ - protected $authenticator_groups_config = null; - /** - * Configuration for private cluster. - * - * Generated from protobuf field .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - */ - protected $private_cluster_config = null; - /** - * Configuration of etcd encryption. - * - * Generated from protobuf field .google.container.v1.DatabaseEncryption database_encryption = 38; - */ - protected $database_encryption = null; - /** - * Cluster-level Vertical Pod Autoscaling configuration. - * - * Generated from protobuf field .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - */ - protected $vertical_pod_autoscaling = null; - /** - * Shielded Nodes configuration. - * - * Generated from protobuf field .google.container.v1.ShieldedNodes shielded_nodes = 40; - */ - protected $shielded_nodes = null; - /** - * Release channel configuration. If left unspecified on cluster creation and - * a version is specified, the cluster is enrolled in the most mature release - * channel where the version is available (first checking STABLE, then - * REGULAR, and finally RAPID). Otherwise, if no release channel - * configuration and no version is specified, the cluster is enrolled in the - * REGULAR channel with its default version. - * - * Generated from protobuf field .google.container.v1.ReleaseChannel release_channel = 41; - */ - protected $release_channel = null; - /** - * Configuration for the use of Kubernetes Service Accounts in GCP IAM - * policies. - * - * Generated from protobuf field .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - */ - protected $workload_identity_config = null; - /** - * Configuration for issuance of mTLS keys and certificates to Kubernetes - * pods. - * - * Generated from protobuf field .google.container.v1.MeshCertificates mesh_certificates = 67; - */ - protected $mesh_certificates = null; - /** - * Configuration for the fine-grained cost management feature. - * - * Generated from protobuf field .google.container.v1.CostManagementConfig cost_management_config = 45; - */ - protected $cost_management_config = null; - /** - * Notification configuration of the cluster. - * - * Generated from protobuf field .google.container.v1.NotificationConfig notification_config = 49; - */ - protected $notification_config = null; - /** - * Configuration of Confidential Nodes. - * All the nodes in the cluster will be Confidential VM once enabled. - * - * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 50; - */ - protected $confidential_nodes = null; - /** - * Configuration for Identity Service component. - * - * Generated from protobuf field .google.container.v1.IdentityServiceConfig identity_service_config = 54; - */ - protected $identity_service_config = null; - /** - * [Output only] Server-defined URL for the resource. - * - * Generated from protobuf field string self_link = 100; - */ - protected $self_link = ''; - /** - * [Output only] The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field is deprecated, use location instead. - * - * Generated from protobuf field string zone = 101 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * [Output only] The IP address of this cluster's master endpoint. - * The endpoint can be accessed from the internet at - * `https://username:password@endpoint/`. - * See the `masterAuth` property of this resource for username and - * password information. - * - * Generated from protobuf field string endpoint = 102; - */ - protected $endpoint = ''; - /** - * The initial Kubernetes version for this cluster. Valid versions are those - * found in validMasterVersions returned by getServerConfig. The version can - * be upgraded over time; such upgrades are reflected in - * currentMasterVersion and currentNodeVersion. - * Users may specify either explicit versions offered by - * Kubernetes Engine or version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "","-": picks the default Kubernetes version - * - * Generated from protobuf field string initial_cluster_version = 103; - */ - protected $initial_cluster_version = ''; - /** - * [Output only] The current software version of the master endpoint. - * - * Generated from protobuf field string current_master_version = 104; - */ - protected $current_master_version = ''; - /** - * [Output only] Deprecated, use - * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools) - * instead. The current version of the node software components. If they are - * currently at multiple versions because they're in the process of being - * upgraded, this reflects the minimum version of all nodes. - * - * Generated from protobuf field string current_node_version = 105 [deprecated = true]; - * @deprecated - */ - protected $current_node_version = ''; - /** - * [Output only] The time the cluster was created, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string create_time = 106; - */ - protected $create_time = ''; - /** - * [Output only] The current status of this cluster. - * - * Generated from protobuf field .google.container.v1.Cluster.Status status = 107; - */ - protected $status = 0; - /** - * [Output only] Deprecated. Use conditions instead. - * Additional information about the current status of this - * cluster, if available. - * - * Generated from protobuf field string status_message = 108 [deprecated = true]; - * @deprecated - */ - protected $status_message = ''; - /** - * [Output only] The size of the address space on each node for hosting - * containers. This is provisioned from within the `container_ipv4_cidr` - * range. This field will only be set when cluster is in route-based network - * mode. - * - * Generated from protobuf field int32 node_ipv4_cidr_size = 109; - */ - protected $node_ipv4_cidr_size = 0; - /** - * [Output only] The IP address range of the Kubernetes services in - * this cluster, in - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `1.2.3.4/29`). Service addresses are - * typically put in the last `/16` from the container CIDR. - * - * Generated from protobuf field string services_ipv4_cidr = 110; - */ - protected $services_ipv4_cidr = ''; - /** - * Deprecated. Use node_pools.instance_group_urls. - * - * Generated from protobuf field repeated string instance_group_urls = 111 [deprecated = true]; - * @deprecated - */ - private $instance_group_urls; - /** - * [Output only] The number of nodes currently in the cluster. Deprecated. - * Call Kubernetes API directly to retrieve node information. - * - * Generated from protobuf field int32 current_node_count = 112 [deprecated = true]; - * @deprecated - */ - protected $current_node_count = 0; - /** - * [Output only] The time the cluster will be automatically - * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string expire_time = 113; - */ - protected $expire_time = ''; - /** - * [Output only] The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * or - * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * in which the cluster resides. - * - * Generated from protobuf field string location = 114; - */ - protected $location = ''; - /** - * Enable the ability to use Cloud TPUs in this cluster. - * - * Generated from protobuf field bool enable_tpu = 115; - */ - protected $enable_tpu = false; - /** - * [Output only] The IP address range of the Cloud TPUs in this cluster, in - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `1.2.3.4/29`). - * - * Generated from protobuf field string tpu_ipv4_cidr_block = 116; - */ - protected $tpu_ipv4_cidr_block = ''; - /** - * Which conditions caused the current cluster state. - * - * Generated from protobuf field repeated .google.container.v1.StatusCondition conditions = 118; - */ - private $conditions; - /** - * Autopilot configuration for the cluster. - * - * Generated from protobuf field .google.container.v1.Autopilot autopilot = 128; - */ - protected $autopilot = null; - /** - * Output only. Unique id for the cluster. - * - * Generated from protobuf field string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $id = ''; - /** - * Default NodePool settings for the entire cluster. These settings are - * overridden if specified on the specific NodePool object. - * - * Generated from protobuf field optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; - */ - protected $node_pool_defaults = null; - /** - * Logging configuration for the cluster. - * - * Generated from protobuf field .google.container.v1.LoggingConfig logging_config = 132; - */ - protected $logging_config = null; - /** - * Monitoring configuration for the cluster. - * - * Generated from protobuf field .google.container.v1.MonitoringConfig monitoring_config = 133; - */ - protected $monitoring_config = null; - /** - * Node pool configs that apply to all auto-provisioned node pools - * in autopilot clusters and node auto-provisioning enabled clusters. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; - */ - protected $node_pool_auto_config = null; - /** - * This checksum is computed by the server based on the value of cluster - * fields, and may be sent on update requests to ensure the client has an - * up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 139; - */ - protected $etag = ''; - /** - * Fleet information for the cluster. - * - * Generated from protobuf field .google.container.v1.Fleet fleet = 140; - */ - protected $fleet = null; - /** - * Enable/Disable Security Posture API features for the cluster. - * - * Generated from protobuf field .google.container.v1.SecurityPostureConfig security_posture_config = 145; - */ - protected $security_posture_config = null; - /** - * Beta APIs Config - * - * Generated from protobuf field .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; - */ - protected $enable_k8s_beta_apis = null; - /** - * GKE Enterprise Configuration. - * - * Generated from protobuf field .google.container.v1.EnterpriseConfig enterprise_config = 149; - */ - protected $enterprise_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of this cluster. The name must be unique within this project - * and location (e.g. zone or region), and can be up to 40 characters with - * the following restrictions: - * * Lowercase letters, numbers, and hyphens only. - * * Must start with a letter. - * * Must end with a number or a letter. - * @type string $description - * An optional description of this cluster. - * @type int $initial_node_count - * The number of nodes to create in this cluster. You must ensure that your - * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) - * is sufficient for this number of instances. You must also have available - * firewall and routes quota. - * For requests, this field should only be used in lieu of a - * "node_pool" object, since this configuration (along with the - * "node_config") will be used to create a "NodePool" object with an - * auto-generated name. Do not use this and a node_pool at the same time. - * This field is deprecated, use node_pool.initial_node_count instead. - * @type \Google\Cloud\Container\V1\NodeConfig $node_config - * Parameters used in creating the cluster's nodes. - * For requests, this field should only be used in lieu of a - * "node_pool" object, since this configuration (along with the - * "initial_node_count") will be used to create a "NodePool" object with an - * auto-generated name. Do not use this and a node_pool at the same time. - * For responses, this field will be populated with the node configuration of - * the first node pool. (For configuration of each node pool, see - * `node_pool.config`) - * If unspecified, the defaults are used. - * This field is deprecated, use node_pool.config instead. - * @type \Google\Cloud\Container\V1\MasterAuth $master_auth - * The authentication information for accessing the master endpoint. - * If unspecified, the defaults are used: - * For clusters before v1.12, if master_auth is unspecified, `username` will - * be set to "admin", a random password will be generated, and a client - * certificate will be issued. - * @type string $logging_service - * The logging service the cluster should use to write logs. - * Currently available options: - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * @type string $monitoring_service - * The monitoring service the cluster should use to write metrics. - * Currently available options: - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * @type string $network - * The name of the Google Compute Engine - * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) - * to which the cluster is connected. If left unspecified, the `default` - * network will be used. - * @type string $cluster_ipv4_cidr - * The IP address range of the container pods in this cluster, in - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`). Leave blank to have - * one automatically chosen or specify a `/14` block in `10.0.0.0/8`. - * @type \Google\Cloud\Container\V1\AddonsConfig $addons_config - * Configurations for the various addons available to run in the cluster. - * @type string $subnetwork - * The name of the Google Compute Engine - * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which - * the cluster is connected. - * @type array<\Google\Cloud\Container\V1\NodePool>|\Google\Protobuf\Internal\RepeatedField $node_pools - * The node pools associated with this cluster. - * This field should not be set if "node_config" or "initial_node_count" are - * specified. - * @type array|\Google\Protobuf\Internal\RepeatedField $locations - * The list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. - * This field provides a default value if - * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) - * are not specified during node pool creation. - * Warning: changing cluster locations will update the - * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) - * of all node pools and will result in nodes being added and/or removed. - * @type bool $enable_kubernetes_alpha - * Kubernetes alpha features are enabled on this cluster. This includes alpha - * API groups (e.g. v1alpha1) and features that may not be production ready in - * the kubernetes version of the master and nodes. - * The cluster has no SLA for uptime and master/node upgrades are disabled. - * Alpha enabled clusters are automatically deleted thirty days after - * creation. - * @type array|\Google\Protobuf\Internal\MapField $resource_labels - * The resource labels for the cluster to use to annotate any related - * Google Compute Engine resources. - * @type string $label_fingerprint - * The fingerprint of the set of labels for this cluster. - * @type \Google\Cloud\Container\V1\LegacyAbac $legacy_abac - * Configuration for the legacy ABAC authorization mode. - * @type \Google\Cloud\Container\V1\NetworkPolicy $network_policy - * Configuration options for the NetworkPolicy feature. - * @type \Google\Cloud\Container\V1\IPAllocationPolicy $ip_allocation_policy - * Configuration for cluster IP allocation. - * @type \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig $master_authorized_networks_config - * The configuration options for master authorized networks feature. - * @type \Google\Cloud\Container\V1\MaintenancePolicy $maintenance_policy - * Configure the maintenance policy for this cluster. - * @type \Google\Cloud\Container\V1\BinaryAuthorization $binary_authorization - * Configuration for Binary Authorization. - * @type \Google\Cloud\Container\V1\ClusterAutoscaling $autoscaling - * Cluster-level autoscaling configuration. - * @type \Google\Cloud\Container\V1\NetworkConfig $network_config - * Configuration for cluster networking. - * @type \Google\Cloud\Container\V1\MaxPodsConstraint $default_max_pods_constraint - * The default constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool of this cluster. Only honored - * if cluster created with IP Alias support. - * @type \Google\Cloud\Container\V1\ResourceUsageExportConfig $resource_usage_export_config - * Configuration for exporting resource usages. Resource usage export is - * disabled when this config is unspecified. - * @type \Google\Cloud\Container\V1\AuthenticatorGroupsConfig $authenticator_groups_config - * Configuration controlling RBAC group membership information. - * @type \Google\Cloud\Container\V1\PrivateClusterConfig $private_cluster_config - * Configuration for private cluster. - * @type \Google\Cloud\Container\V1\DatabaseEncryption $database_encryption - * Configuration of etcd encryption. - * @type \Google\Cloud\Container\V1\VerticalPodAutoscaling $vertical_pod_autoscaling - * Cluster-level Vertical Pod Autoscaling configuration. - * @type \Google\Cloud\Container\V1\ShieldedNodes $shielded_nodes - * Shielded Nodes configuration. - * @type \Google\Cloud\Container\V1\ReleaseChannel $release_channel - * Release channel configuration. If left unspecified on cluster creation and - * a version is specified, the cluster is enrolled in the most mature release - * channel where the version is available (first checking STABLE, then - * REGULAR, and finally RAPID). Otherwise, if no release channel - * configuration and no version is specified, the cluster is enrolled in the - * REGULAR channel with its default version. - * @type \Google\Cloud\Container\V1\WorkloadIdentityConfig $workload_identity_config - * Configuration for the use of Kubernetes Service Accounts in GCP IAM - * policies. - * @type \Google\Cloud\Container\V1\MeshCertificates $mesh_certificates - * Configuration for issuance of mTLS keys and certificates to Kubernetes - * pods. - * @type \Google\Cloud\Container\V1\CostManagementConfig $cost_management_config - * Configuration for the fine-grained cost management feature. - * @type \Google\Cloud\Container\V1\NotificationConfig $notification_config - * Notification configuration of the cluster. - * @type \Google\Cloud\Container\V1\ConfidentialNodes $confidential_nodes - * Configuration of Confidential Nodes. - * All the nodes in the cluster will be Confidential VM once enabled. - * @type \Google\Cloud\Container\V1\IdentityServiceConfig $identity_service_config - * Configuration for Identity Service component. - * @type string $self_link - * [Output only] Server-defined URL for the resource. - * @type string $zone - * [Output only] The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field is deprecated, use location instead. - * @type string $endpoint - * [Output only] The IP address of this cluster's master endpoint. - * The endpoint can be accessed from the internet at - * `https://username:password@endpoint/`. - * See the `masterAuth` property of this resource for username and - * password information. - * @type string $initial_cluster_version - * The initial Kubernetes version for this cluster. Valid versions are those - * found in validMasterVersions returned by getServerConfig. The version can - * be upgraded over time; such upgrades are reflected in - * currentMasterVersion and currentNodeVersion. - * Users may specify either explicit versions offered by - * Kubernetes Engine or version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "","-": picks the default Kubernetes version - * @type string $current_master_version - * [Output only] The current software version of the master endpoint. - * @type string $current_node_version - * [Output only] Deprecated, use - * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools) - * instead. The current version of the node software components. If they are - * currently at multiple versions because they're in the process of being - * upgraded, this reflects the minimum version of all nodes. - * @type string $create_time - * [Output only] The time the cluster was created, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * @type int $status - * [Output only] The current status of this cluster. - * @type string $status_message - * [Output only] Deprecated. Use conditions instead. - * Additional information about the current status of this - * cluster, if available. - * @type int $node_ipv4_cidr_size - * [Output only] The size of the address space on each node for hosting - * containers. This is provisioned from within the `container_ipv4_cidr` - * range. This field will only be set when cluster is in route-based network - * mode. - * @type string $services_ipv4_cidr - * [Output only] The IP address range of the Kubernetes services in - * this cluster, in - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `1.2.3.4/29`). Service addresses are - * typically put in the last `/16` from the container CIDR. - * @type array|\Google\Protobuf\Internal\RepeatedField $instance_group_urls - * Deprecated. Use node_pools.instance_group_urls. - * @type int $current_node_count - * [Output only] The number of nodes currently in the cluster. Deprecated. - * Call Kubernetes API directly to retrieve node information. - * @type string $expire_time - * [Output only] The time the cluster will be automatically - * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * @type string $location - * [Output only] The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * or - * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * in which the cluster resides. - * @type bool $enable_tpu - * Enable the ability to use Cloud TPUs in this cluster. - * @type string $tpu_ipv4_cidr_block - * [Output only] The IP address range of the Cloud TPUs in this cluster, in - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `1.2.3.4/29`). - * @type array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $conditions - * Which conditions caused the current cluster state. - * @type \Google\Cloud\Container\V1\Autopilot $autopilot - * Autopilot configuration for the cluster. - * @type string $id - * Output only. Unique id for the cluster. - * @type \Google\Cloud\Container\V1\NodePoolDefaults $node_pool_defaults - * Default NodePool settings for the entire cluster. These settings are - * overridden if specified on the specific NodePool object. - * @type \Google\Cloud\Container\V1\LoggingConfig $logging_config - * Logging configuration for the cluster. - * @type \Google\Cloud\Container\V1\MonitoringConfig $monitoring_config - * Monitoring configuration for the cluster. - * @type \Google\Cloud\Container\V1\NodePoolAutoConfig $node_pool_auto_config - * Node pool configs that apply to all auto-provisioned node pools - * in autopilot clusters and node auto-provisioning enabled clusters. - * @type string $etag - * This checksum is computed by the server based on the value of cluster - * fields, and may be sent on update requests to ensure the client has an - * up-to-date value before proceeding. - * @type \Google\Cloud\Container\V1\Fleet $fleet - * Fleet information for the cluster. - * @type \Google\Cloud\Container\V1\SecurityPostureConfig $security_posture_config - * Enable/Disable Security Posture API features for the cluster. - * @type \Google\Cloud\Container\V1\K8sBetaAPIConfig $enable_k8s_beta_apis - * Beta APIs Config - * @type \Google\Cloud\Container\V1\EnterpriseConfig $enterprise_config - * GKE Enterprise Configuration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The name of this cluster. The name must be unique within this project - * and location (e.g. zone or region), and can be up to 40 characters with - * the following restrictions: - * * Lowercase letters, numbers, and hyphens only. - * * Must start with a letter. - * * Must end with a number or a letter. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of this cluster. The name must be unique within this project - * and location (e.g. zone or region), and can be up to 40 characters with - * the following restrictions: - * * Lowercase letters, numbers, and hyphens only. - * * Must start with a letter. - * * Must end with a number or a letter. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * An optional description of this cluster. - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * An optional description of this cluster. - * - * Generated from protobuf field string description = 2; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * The number of nodes to create in this cluster. You must ensure that your - * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) - * is sufficient for this number of instances. You must also have available - * firewall and routes quota. - * For requests, this field should only be used in lieu of a - * "node_pool" object, since this configuration (along with the - * "node_config") will be used to create a "NodePool" object with an - * auto-generated name. Do not use this and a node_pool at the same time. - * This field is deprecated, use node_pool.initial_node_count instead. - * - * Generated from protobuf field int32 initial_node_count = 3 [deprecated = true]; - * @return int - * @deprecated - */ - public function getInitialNodeCount() - { - @trigger_error('initial_node_count is deprecated.', E_USER_DEPRECATED); - return $this->initial_node_count; - } - - /** - * The number of nodes to create in this cluster. You must ensure that your - * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) - * is sufficient for this number of instances. You must also have available - * firewall and routes quota. - * For requests, this field should only be used in lieu of a - * "node_pool" object, since this configuration (along with the - * "node_config") will be used to create a "NodePool" object with an - * auto-generated name. Do not use this and a node_pool at the same time. - * This field is deprecated, use node_pool.initial_node_count instead. - * - * Generated from protobuf field int32 initial_node_count = 3 [deprecated = true]; - * @param int $var - * @return $this - * @deprecated - */ - public function setInitialNodeCount($var) - { - @trigger_error('initial_node_count is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkInt32($var); - $this->initial_node_count = $var; - - return $this; - } - - /** - * Parameters used in creating the cluster's nodes. - * For requests, this field should only be used in lieu of a - * "node_pool" object, since this configuration (along with the - * "initial_node_count") will be used to create a "NodePool" object with an - * auto-generated name. Do not use this and a node_pool at the same time. - * For responses, this field will be populated with the node configuration of - * the first node pool. (For configuration of each node pool, see - * `node_pool.config`) - * If unspecified, the defaults are used. - * This field is deprecated, use node_pool.config instead. - * - * Generated from protobuf field .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; - * @return \Google\Cloud\Container\V1\NodeConfig|null - * @deprecated - */ - public function getNodeConfig() - { - @trigger_error('node_config is deprecated.', E_USER_DEPRECATED); - return $this->node_config; - } - - public function hasNodeConfig() - { - @trigger_error('node_config is deprecated.', E_USER_DEPRECATED); - return isset($this->node_config); - } - - public function clearNodeConfig() - { - @trigger_error('node_config is deprecated.', E_USER_DEPRECATED); - unset($this->node_config); - } - - /** - * Parameters used in creating the cluster's nodes. - * For requests, this field should only be used in lieu of a - * "node_pool" object, since this configuration (along with the - * "initial_node_count") will be used to create a "NodePool" object with an - * auto-generated name. Do not use this and a node_pool at the same time. - * For responses, this field will be populated with the node configuration of - * the first node pool. (For configuration of each node pool, see - * `node_pool.config`) - * If unspecified, the defaults are used. - * This field is deprecated, use node_pool.config instead. - * - * Generated from protobuf field .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; - * @param \Google\Cloud\Container\V1\NodeConfig $var - * @return $this - * @deprecated - */ - public function setNodeConfig($var) - { - @trigger_error('node_config is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeConfig::class); - $this->node_config = $var; - - return $this; - } - - /** - * The authentication information for accessing the master endpoint. - * If unspecified, the defaults are used: - * For clusters before v1.12, if master_auth is unspecified, `username` will - * be set to "admin", a random password will be generated, and a client - * certificate will be issued. - * - * Generated from protobuf field .google.container.v1.MasterAuth master_auth = 5; - * @return \Google\Cloud\Container\V1\MasterAuth|null - */ - public function getMasterAuth() - { - return $this->master_auth; - } - - public function hasMasterAuth() - { - return isset($this->master_auth); - } - - public function clearMasterAuth() - { - unset($this->master_auth); - } - - /** - * The authentication information for accessing the master endpoint. - * If unspecified, the defaults are used: - * For clusters before v1.12, if master_auth is unspecified, `username` will - * be set to "admin", a random password will be generated, and a client - * certificate will be issued. - * - * Generated from protobuf field .google.container.v1.MasterAuth master_auth = 5; - * @param \Google\Cloud\Container\V1\MasterAuth $var - * @return $this - */ - public function setMasterAuth($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MasterAuth::class); - $this->master_auth = $var; - - return $this; - } - - /** - * The logging service the cluster should use to write logs. - * Currently available options: - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * - * Generated from protobuf field string logging_service = 6; - * @return string - */ - public function getLoggingService() - { - return $this->logging_service; - } - - /** - * The logging service the cluster should use to write logs. - * Currently available options: - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * - * Generated from protobuf field string logging_service = 6; - * @param string $var - * @return $this - */ - public function setLoggingService($var) - { - GPBUtil::checkString($var, True); - $this->logging_service = $var; - - return $this; - } - - /** - * The monitoring service the cluster should use to write metrics. - * Currently available options: - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * - * Generated from protobuf field string monitoring_service = 7; - * @return string - */ - public function getMonitoringService() - { - return $this->monitoring_service; - } - - /** - * The monitoring service the cluster should use to write metrics. - * Currently available options: - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * - * Generated from protobuf field string monitoring_service = 7; - * @param string $var - * @return $this - */ - public function setMonitoringService($var) - { - GPBUtil::checkString($var, True); - $this->monitoring_service = $var; - - return $this; - } - - /** - * The name of the Google Compute Engine - * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) - * to which the cluster is connected. If left unspecified, the `default` - * network will be used. - * - * Generated from protobuf field string network = 8; - * @return string - */ - public function getNetwork() - { - return $this->network; - } - - /** - * The name of the Google Compute Engine - * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) - * to which the cluster is connected. If left unspecified, the `default` - * network will be used. - * - * Generated from protobuf field string network = 8; - * @param string $var - * @return $this - */ - public function setNetwork($var) - { - GPBUtil::checkString($var, True); - $this->network = $var; - - return $this; - } - - /** - * The IP address range of the container pods in this cluster, in - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`). Leave blank to have - * one automatically chosen or specify a `/14` block in `10.0.0.0/8`. - * - * Generated from protobuf field string cluster_ipv4_cidr = 9; - * @return string - */ - public function getClusterIpv4Cidr() - { - return $this->cluster_ipv4_cidr; - } - - /** - * The IP address range of the container pods in this cluster, in - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`). Leave blank to have - * one automatically chosen or specify a `/14` block in `10.0.0.0/8`. - * - * Generated from protobuf field string cluster_ipv4_cidr = 9; - * @param string $var - * @return $this - */ - public function setClusterIpv4Cidr($var) - { - GPBUtil::checkString($var, True); - $this->cluster_ipv4_cidr = $var; - - return $this; - } - - /** - * Configurations for the various addons available to run in the cluster. - * - * Generated from protobuf field .google.container.v1.AddonsConfig addons_config = 10; - * @return \Google\Cloud\Container\V1\AddonsConfig|null - */ - public function getAddonsConfig() - { - return $this->addons_config; - } - - public function hasAddonsConfig() - { - return isset($this->addons_config); - } - - public function clearAddonsConfig() - { - unset($this->addons_config); - } - - /** - * Configurations for the various addons available to run in the cluster. - * - * Generated from protobuf field .google.container.v1.AddonsConfig addons_config = 10; - * @param \Google\Cloud\Container\V1\AddonsConfig $var - * @return $this - */ - public function setAddonsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AddonsConfig::class); - $this->addons_config = $var; - - return $this; - } - - /** - * The name of the Google Compute Engine - * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which - * the cluster is connected. - * - * Generated from protobuf field string subnetwork = 11; - * @return string - */ - public function getSubnetwork() - { - return $this->subnetwork; - } - - /** - * The name of the Google Compute Engine - * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which - * the cluster is connected. - * - * Generated from protobuf field string subnetwork = 11; - * @param string $var - * @return $this - */ - public function setSubnetwork($var) - { - GPBUtil::checkString($var, True); - $this->subnetwork = $var; - - return $this; - } - - /** - * The node pools associated with this cluster. - * This field should not be set if "node_config" or "initial_node_count" are - * specified. - * - * Generated from protobuf field repeated .google.container.v1.NodePool node_pools = 12; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNodePools() - { - return $this->node_pools; - } - - /** - * The node pools associated with this cluster. - * This field should not be set if "node_config" or "initial_node_count" are - * specified. - * - * Generated from protobuf field repeated .google.container.v1.NodePool node_pools = 12; - * @param array<\Google\Cloud\Container\V1\NodePool>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNodePools($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\NodePool::class); - $this->node_pools = $arr; - - return $this; - } - - /** - * The list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. - * This field provides a default value if - * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) - * are not specified during node pool creation. - * Warning: changing cluster locations will update the - * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) - * of all node pools and will result in nodes being added and/or removed. - * - * Generated from protobuf field repeated string locations = 13; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getLocations() - { - return $this->locations; - } - - /** - * The list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. - * This field provides a default value if - * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) - * are not specified during node pool creation. - * Warning: changing cluster locations will update the - * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) - * of all node pools and will result in nodes being added and/or removed. - * - * Generated from protobuf field repeated string locations = 13; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->locations = $arr; - - return $this; - } - - /** - * Kubernetes alpha features are enabled on this cluster. This includes alpha - * API groups (e.g. v1alpha1) and features that may not be production ready in - * the kubernetes version of the master and nodes. - * The cluster has no SLA for uptime and master/node upgrades are disabled. - * Alpha enabled clusters are automatically deleted thirty days after - * creation. - * - * Generated from protobuf field bool enable_kubernetes_alpha = 14; - * @return bool - */ - public function getEnableKubernetesAlpha() - { - return $this->enable_kubernetes_alpha; - } - - /** - * Kubernetes alpha features are enabled on this cluster. This includes alpha - * API groups (e.g. v1alpha1) and features that may not be production ready in - * the kubernetes version of the master and nodes. - * The cluster has no SLA for uptime and master/node upgrades are disabled. - * Alpha enabled clusters are automatically deleted thirty days after - * creation. - * - * Generated from protobuf field bool enable_kubernetes_alpha = 14; - * @param bool $var - * @return $this - */ - public function setEnableKubernetesAlpha($var) - { - GPBUtil::checkBool($var); - $this->enable_kubernetes_alpha = $var; - - return $this; - } - - /** - * The resource labels for the cluster to use to annotate any related - * Google Compute Engine resources. - * - * Generated from protobuf field map resource_labels = 15; - * @return \Google\Protobuf\Internal\MapField - */ - public function getResourceLabels() - { - return $this->resource_labels; - } - - /** - * The resource labels for the cluster to use to annotate any related - * Google Compute Engine resources. - * - * Generated from protobuf field map resource_labels = 15; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setResourceLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->resource_labels = $arr; - - return $this; - } - - /** - * The fingerprint of the set of labels for this cluster. - * - * Generated from protobuf field string label_fingerprint = 16; - * @return string - */ - public function getLabelFingerprint() - { - return $this->label_fingerprint; - } - - /** - * The fingerprint of the set of labels for this cluster. - * - * Generated from protobuf field string label_fingerprint = 16; - * @param string $var - * @return $this - */ - public function setLabelFingerprint($var) - { - GPBUtil::checkString($var, True); - $this->label_fingerprint = $var; - - return $this; - } - - /** - * Configuration for the legacy ABAC authorization mode. - * - * Generated from protobuf field .google.container.v1.LegacyAbac legacy_abac = 18; - * @return \Google\Cloud\Container\V1\LegacyAbac|null - */ - public function getLegacyAbac() - { - return $this->legacy_abac; - } - - public function hasLegacyAbac() - { - return isset($this->legacy_abac); - } - - public function clearLegacyAbac() - { - unset($this->legacy_abac); - } - - /** - * Configuration for the legacy ABAC authorization mode. - * - * Generated from protobuf field .google.container.v1.LegacyAbac legacy_abac = 18; - * @param \Google\Cloud\Container\V1\LegacyAbac $var - * @return $this - */ - public function setLegacyAbac($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LegacyAbac::class); - $this->legacy_abac = $var; - - return $this; - } - - /** - * Configuration options for the NetworkPolicy feature. - * - * Generated from protobuf field .google.container.v1.NetworkPolicy network_policy = 19; - * @return \Google\Cloud\Container\V1\NetworkPolicy|null - */ - public function getNetworkPolicy() - { - return $this->network_policy; - } - - public function hasNetworkPolicy() - { - return isset($this->network_policy); - } - - public function clearNetworkPolicy() - { - unset($this->network_policy); - } - - /** - * Configuration options for the NetworkPolicy feature. - * - * Generated from protobuf field .google.container.v1.NetworkPolicy network_policy = 19; - * @param \Google\Cloud\Container\V1\NetworkPolicy $var - * @return $this - */ - public function setNetworkPolicy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkPolicy::class); - $this->network_policy = $var; - - return $this; - } - - /** - * Configuration for cluster IP allocation. - * - * Generated from protobuf field .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - * @return \Google\Cloud\Container\V1\IPAllocationPolicy|null - */ - public function getIpAllocationPolicy() - { - return $this->ip_allocation_policy; - } - - public function hasIpAllocationPolicy() - { - return isset($this->ip_allocation_policy); - } - - public function clearIpAllocationPolicy() - { - unset($this->ip_allocation_policy); - } - - /** - * Configuration for cluster IP allocation. - * - * Generated from protobuf field .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - * @param \Google\Cloud\Container\V1\IPAllocationPolicy $var - * @return $this - */ - public function setIpAllocationPolicy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\IPAllocationPolicy::class); - $this->ip_allocation_policy = $var; - - return $this; - } - - /** - * The configuration options for master authorized networks feature. - * - * Generated from protobuf field .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - * @return \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig|null - */ - public function getMasterAuthorizedNetworksConfig() - { - return $this->master_authorized_networks_config; - } - - public function hasMasterAuthorizedNetworksConfig() - { - return isset($this->master_authorized_networks_config); - } - - public function clearMasterAuthorizedNetworksConfig() - { - unset($this->master_authorized_networks_config); - } - - /** - * The configuration options for master authorized networks feature. - * - * Generated from protobuf field .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - * @param \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig $var - * @return $this - */ - public function setMasterAuthorizedNetworksConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig::class); - $this->master_authorized_networks_config = $var; - - return $this; - } - - /** - * Configure the maintenance policy for this cluster. - * - * Generated from protobuf field .google.container.v1.MaintenancePolicy maintenance_policy = 23; - * @return \Google\Cloud\Container\V1\MaintenancePolicy|null - */ - public function getMaintenancePolicy() - { - return $this->maintenance_policy; - } - - public function hasMaintenancePolicy() - { - return isset($this->maintenance_policy); - } - - public function clearMaintenancePolicy() - { - unset($this->maintenance_policy); - } - - /** - * Configure the maintenance policy for this cluster. - * - * Generated from protobuf field .google.container.v1.MaintenancePolicy maintenance_policy = 23; - * @param \Google\Cloud\Container\V1\MaintenancePolicy $var - * @return $this - */ - public function setMaintenancePolicy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MaintenancePolicy::class); - $this->maintenance_policy = $var; - - return $this; - } - - /** - * Configuration for Binary Authorization. - * - * Generated from protobuf field .google.container.v1.BinaryAuthorization binary_authorization = 24; - * @return \Google\Cloud\Container\V1\BinaryAuthorization|null - */ - public function getBinaryAuthorization() - { - return $this->binary_authorization; - } - - public function hasBinaryAuthorization() - { - return isset($this->binary_authorization); - } - - public function clearBinaryAuthorization() - { - unset($this->binary_authorization); - } - - /** - * Configuration for Binary Authorization. - * - * Generated from protobuf field .google.container.v1.BinaryAuthorization binary_authorization = 24; - * @param \Google\Cloud\Container\V1\BinaryAuthorization $var - * @return $this - */ - public function setBinaryAuthorization($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\BinaryAuthorization::class); - $this->binary_authorization = $var; - - return $this; - } - - /** - * Cluster-level autoscaling configuration. - * - * Generated from protobuf field .google.container.v1.ClusterAutoscaling autoscaling = 26; - * @return \Google\Cloud\Container\V1\ClusterAutoscaling|null - */ - public function getAutoscaling() - { - return $this->autoscaling; - } - - public function hasAutoscaling() - { - return isset($this->autoscaling); - } - - public function clearAutoscaling() - { - unset($this->autoscaling); - } - - /** - * Cluster-level autoscaling configuration. - * - * Generated from protobuf field .google.container.v1.ClusterAutoscaling autoscaling = 26; - * @param \Google\Cloud\Container\V1\ClusterAutoscaling $var - * @return $this - */ - public function setAutoscaling($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ClusterAutoscaling::class); - $this->autoscaling = $var; - - return $this; - } - - /** - * Configuration for cluster networking. - * - * Generated from protobuf field .google.container.v1.NetworkConfig network_config = 27; - * @return \Google\Cloud\Container\V1\NetworkConfig|null - */ - public function getNetworkConfig() - { - return $this->network_config; - } - - public function hasNetworkConfig() - { - return isset($this->network_config); - } - - public function clearNetworkConfig() - { - unset($this->network_config); - } - - /** - * Configuration for cluster networking. - * - * Generated from protobuf field .google.container.v1.NetworkConfig network_config = 27; - * @param \Google\Cloud\Container\V1\NetworkConfig $var - * @return $this - */ - public function setNetworkConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkConfig::class); - $this->network_config = $var; - - return $this; - } - - /** - * The default constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool of this cluster. Only honored - * if cluster created with IP Alias support. - * - * Generated from protobuf field .google.container.v1.MaxPodsConstraint default_max_pods_constraint = 30; - * @return \Google\Cloud\Container\V1\MaxPodsConstraint|null - */ - public function getDefaultMaxPodsConstraint() - { - return $this->default_max_pods_constraint; - } - - public function hasDefaultMaxPodsConstraint() - { - return isset($this->default_max_pods_constraint); - } - - public function clearDefaultMaxPodsConstraint() - { - unset($this->default_max_pods_constraint); - } - - /** - * The default constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool of this cluster. Only honored - * if cluster created with IP Alias support. - * - * Generated from protobuf field .google.container.v1.MaxPodsConstraint default_max_pods_constraint = 30; - * @param \Google\Cloud\Container\V1\MaxPodsConstraint $var - * @return $this - */ - public function setDefaultMaxPodsConstraint($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MaxPodsConstraint::class); - $this->default_max_pods_constraint = $var; - - return $this; - } - - /** - * Configuration for exporting resource usages. Resource usage export is - * disabled when this config is unspecified. - * - * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; - * @return \Google\Cloud\Container\V1\ResourceUsageExportConfig|null - */ - public function getResourceUsageExportConfig() - { - return $this->resource_usage_export_config; - } - - public function hasResourceUsageExportConfig() - { - return isset($this->resource_usage_export_config); - } - - public function clearResourceUsageExportConfig() - { - unset($this->resource_usage_export_config); - } - - /** - * Configuration for exporting resource usages. Resource usage export is - * disabled when this config is unspecified. - * - * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; - * @param \Google\Cloud\Container\V1\ResourceUsageExportConfig $var - * @return $this - */ - public function setResourceUsageExportConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ResourceUsageExportConfig::class); - $this->resource_usage_export_config = $var; - - return $this; - } - - /** - * Configuration controlling RBAC group membership information. - * - * Generated from protobuf field .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - * @return \Google\Cloud\Container\V1\AuthenticatorGroupsConfig|null - */ - public function getAuthenticatorGroupsConfig() - { - return $this->authenticator_groups_config; - } - - public function hasAuthenticatorGroupsConfig() - { - return isset($this->authenticator_groups_config); - } - - public function clearAuthenticatorGroupsConfig() - { - unset($this->authenticator_groups_config); - } - - /** - * Configuration controlling RBAC group membership information. - * - * Generated from protobuf field .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - * @param \Google\Cloud\Container\V1\AuthenticatorGroupsConfig $var - * @return $this - */ - public function setAuthenticatorGroupsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AuthenticatorGroupsConfig::class); - $this->authenticator_groups_config = $var; - - return $this; - } - - /** - * Configuration for private cluster. - * - * Generated from protobuf field .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - * @return \Google\Cloud\Container\V1\PrivateClusterConfig|null - */ - public function getPrivateClusterConfig() - { - return $this->private_cluster_config; - } - - public function hasPrivateClusterConfig() - { - return isset($this->private_cluster_config); - } - - public function clearPrivateClusterConfig() - { - unset($this->private_cluster_config); - } - - /** - * Configuration for private cluster. - * - * Generated from protobuf field .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - * @param \Google\Cloud\Container\V1\PrivateClusterConfig $var - * @return $this - */ - public function setPrivateClusterConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\PrivateClusterConfig::class); - $this->private_cluster_config = $var; - - return $this; - } - - /** - * Configuration of etcd encryption. - * - * Generated from protobuf field .google.container.v1.DatabaseEncryption database_encryption = 38; - * @return \Google\Cloud\Container\V1\DatabaseEncryption|null - */ - public function getDatabaseEncryption() - { - return $this->database_encryption; - } - - public function hasDatabaseEncryption() - { - return isset($this->database_encryption); - } - - public function clearDatabaseEncryption() - { - unset($this->database_encryption); - } - - /** - * Configuration of etcd encryption. - * - * Generated from protobuf field .google.container.v1.DatabaseEncryption database_encryption = 38; - * @param \Google\Cloud\Container\V1\DatabaseEncryption $var - * @return $this - */ - public function setDatabaseEncryption($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\DatabaseEncryption::class); - $this->database_encryption = $var; - - return $this; - } - - /** - * Cluster-level Vertical Pod Autoscaling configuration. - * - * Generated from protobuf field .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - * @return \Google\Cloud\Container\V1\VerticalPodAutoscaling|null - */ - public function getVerticalPodAutoscaling() - { - return $this->vertical_pod_autoscaling; - } - - public function hasVerticalPodAutoscaling() - { - return isset($this->vertical_pod_autoscaling); - } - - public function clearVerticalPodAutoscaling() - { - unset($this->vertical_pod_autoscaling); - } - - /** - * Cluster-level Vertical Pod Autoscaling configuration. - * - * Generated from protobuf field .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - * @param \Google\Cloud\Container\V1\VerticalPodAutoscaling $var - * @return $this - */ - public function setVerticalPodAutoscaling($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\VerticalPodAutoscaling::class); - $this->vertical_pod_autoscaling = $var; - - return $this; - } - - /** - * Shielded Nodes configuration. - * - * Generated from protobuf field .google.container.v1.ShieldedNodes shielded_nodes = 40; - * @return \Google\Cloud\Container\V1\ShieldedNodes|null - */ - public function getShieldedNodes() - { - return $this->shielded_nodes; - } - - public function hasShieldedNodes() - { - return isset($this->shielded_nodes); - } - - public function clearShieldedNodes() - { - unset($this->shielded_nodes); - } - - /** - * Shielded Nodes configuration. - * - * Generated from protobuf field .google.container.v1.ShieldedNodes shielded_nodes = 40; - * @param \Google\Cloud\Container\V1\ShieldedNodes $var - * @return $this - */ - public function setShieldedNodes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ShieldedNodes::class); - $this->shielded_nodes = $var; - - return $this; - } - - /** - * Release channel configuration. If left unspecified on cluster creation and - * a version is specified, the cluster is enrolled in the most mature release - * channel where the version is available (first checking STABLE, then - * REGULAR, and finally RAPID). Otherwise, if no release channel - * configuration and no version is specified, the cluster is enrolled in the - * REGULAR channel with its default version. - * - * Generated from protobuf field .google.container.v1.ReleaseChannel release_channel = 41; - * @return \Google\Cloud\Container\V1\ReleaseChannel|null - */ - public function getReleaseChannel() - { - return $this->release_channel; - } - - public function hasReleaseChannel() - { - return isset($this->release_channel); - } - - public function clearReleaseChannel() - { - unset($this->release_channel); - } - - /** - * Release channel configuration. If left unspecified on cluster creation and - * a version is specified, the cluster is enrolled in the most mature release - * channel where the version is available (first checking STABLE, then - * REGULAR, and finally RAPID). Otherwise, if no release channel - * configuration and no version is specified, the cluster is enrolled in the - * REGULAR channel with its default version. - * - * Generated from protobuf field .google.container.v1.ReleaseChannel release_channel = 41; - * @param \Google\Cloud\Container\V1\ReleaseChannel $var - * @return $this - */ - public function setReleaseChannel($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ReleaseChannel::class); - $this->release_channel = $var; - - return $this; - } - - /** - * Configuration for the use of Kubernetes Service Accounts in GCP IAM - * policies. - * - * Generated from protobuf field .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - * @return \Google\Cloud\Container\V1\WorkloadIdentityConfig|null - */ - public function getWorkloadIdentityConfig() - { - return $this->workload_identity_config; - } - - public function hasWorkloadIdentityConfig() - { - return isset($this->workload_identity_config); - } - - public function clearWorkloadIdentityConfig() - { - unset($this->workload_identity_config); - } - - /** - * Configuration for the use of Kubernetes Service Accounts in GCP IAM - * policies. - * - * Generated from protobuf field .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - * @param \Google\Cloud\Container\V1\WorkloadIdentityConfig $var - * @return $this - */ - public function setWorkloadIdentityConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\WorkloadIdentityConfig::class); - $this->workload_identity_config = $var; - - return $this; - } - - /** - * Configuration for issuance of mTLS keys and certificates to Kubernetes - * pods. - * - * Generated from protobuf field .google.container.v1.MeshCertificates mesh_certificates = 67; - * @return \Google\Cloud\Container\V1\MeshCertificates|null - */ - public function getMeshCertificates() - { - return $this->mesh_certificates; - } - - public function hasMeshCertificates() - { - return isset($this->mesh_certificates); - } - - public function clearMeshCertificates() - { - unset($this->mesh_certificates); - } - - /** - * Configuration for issuance of mTLS keys and certificates to Kubernetes - * pods. - * - * Generated from protobuf field .google.container.v1.MeshCertificates mesh_certificates = 67; - * @param \Google\Cloud\Container\V1\MeshCertificates $var - * @return $this - */ - public function setMeshCertificates($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MeshCertificates::class); - $this->mesh_certificates = $var; - - return $this; - } - - /** - * Configuration for the fine-grained cost management feature. - * - * Generated from protobuf field .google.container.v1.CostManagementConfig cost_management_config = 45; - * @return \Google\Cloud\Container\V1\CostManagementConfig|null - */ - public function getCostManagementConfig() - { - return $this->cost_management_config; - } - - public function hasCostManagementConfig() - { - return isset($this->cost_management_config); - } - - public function clearCostManagementConfig() - { - unset($this->cost_management_config); - } - - /** - * Configuration for the fine-grained cost management feature. - * - * Generated from protobuf field .google.container.v1.CostManagementConfig cost_management_config = 45; - * @param \Google\Cloud\Container\V1\CostManagementConfig $var - * @return $this - */ - public function setCostManagementConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\CostManagementConfig::class); - $this->cost_management_config = $var; - - return $this; - } - - /** - * Notification configuration of the cluster. - * - * Generated from protobuf field .google.container.v1.NotificationConfig notification_config = 49; - * @return \Google\Cloud\Container\V1\NotificationConfig|null - */ - public function getNotificationConfig() - { - return $this->notification_config; - } - - public function hasNotificationConfig() - { - return isset($this->notification_config); - } - - public function clearNotificationConfig() - { - unset($this->notification_config); - } - - /** - * Notification configuration of the cluster. - * - * Generated from protobuf field .google.container.v1.NotificationConfig notification_config = 49; - * @param \Google\Cloud\Container\V1\NotificationConfig $var - * @return $this - */ - public function setNotificationConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NotificationConfig::class); - $this->notification_config = $var; - - return $this; - } - - /** - * Configuration of Confidential Nodes. - * All the nodes in the cluster will be Confidential VM once enabled. - * - * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 50; - * @return \Google\Cloud\Container\V1\ConfidentialNodes|null - */ - public function getConfidentialNodes() - { - return $this->confidential_nodes; - } - - public function hasConfidentialNodes() - { - return isset($this->confidential_nodes); - } - - public function clearConfidentialNodes() - { - unset($this->confidential_nodes); - } - - /** - * Configuration of Confidential Nodes. - * All the nodes in the cluster will be Confidential VM once enabled. - * - * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 50; - * @param \Google\Cloud\Container\V1\ConfidentialNodes $var - * @return $this - */ - public function setConfidentialNodes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ConfidentialNodes::class); - $this->confidential_nodes = $var; - - return $this; - } - - /** - * Configuration for Identity Service component. - * - * Generated from protobuf field .google.container.v1.IdentityServiceConfig identity_service_config = 54; - * @return \Google\Cloud\Container\V1\IdentityServiceConfig|null - */ - public function getIdentityServiceConfig() - { - return $this->identity_service_config; - } - - public function hasIdentityServiceConfig() - { - return isset($this->identity_service_config); - } - - public function clearIdentityServiceConfig() - { - unset($this->identity_service_config); - } - - /** - * Configuration for Identity Service component. - * - * Generated from protobuf field .google.container.v1.IdentityServiceConfig identity_service_config = 54; - * @param \Google\Cloud\Container\V1\IdentityServiceConfig $var - * @return $this - */ - public function setIdentityServiceConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\IdentityServiceConfig::class); - $this->identity_service_config = $var; - - return $this; - } - - /** - * [Output only] Server-defined URL for the resource. - * - * Generated from protobuf field string self_link = 100; - * @return string - */ - public function getSelfLink() - { - return $this->self_link; - } - - /** - * [Output only] Server-defined URL for the resource. - * - * Generated from protobuf field string self_link = 100; - * @param string $var - * @return $this - */ - public function setSelfLink($var) - { - GPBUtil::checkString($var, True); - $this->self_link = $var; - - return $this; - } - - /** - * [Output only] The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field is deprecated, use location instead. - * - * Generated from protobuf field string zone = 101 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * [Output only] The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field is deprecated, use location instead. - * - * Generated from protobuf field string zone = 101 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * [Output only] The IP address of this cluster's master endpoint. - * The endpoint can be accessed from the internet at - * `https://username:password@endpoint/`. - * See the `masterAuth` property of this resource for username and - * password information. - * - * Generated from protobuf field string endpoint = 102; - * @return string - */ - public function getEndpoint() - { - return $this->endpoint; - } - - /** - * [Output only] The IP address of this cluster's master endpoint. - * The endpoint can be accessed from the internet at - * `https://username:password@endpoint/`. - * See the `masterAuth` property of this resource for username and - * password information. - * - * Generated from protobuf field string endpoint = 102; - * @param string $var - * @return $this - */ - public function setEndpoint($var) - { - GPBUtil::checkString($var, True); - $this->endpoint = $var; - - return $this; - } - - /** - * The initial Kubernetes version for this cluster. Valid versions are those - * found in validMasterVersions returned by getServerConfig. The version can - * be upgraded over time; such upgrades are reflected in - * currentMasterVersion and currentNodeVersion. - * Users may specify either explicit versions offered by - * Kubernetes Engine or version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "","-": picks the default Kubernetes version - * - * Generated from protobuf field string initial_cluster_version = 103; - * @return string - */ - public function getInitialClusterVersion() - { - return $this->initial_cluster_version; - } - - /** - * The initial Kubernetes version for this cluster. Valid versions are those - * found in validMasterVersions returned by getServerConfig. The version can - * be upgraded over time; such upgrades are reflected in - * currentMasterVersion and currentNodeVersion. - * Users may specify either explicit versions offered by - * Kubernetes Engine or version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "","-": picks the default Kubernetes version - * - * Generated from protobuf field string initial_cluster_version = 103; - * @param string $var - * @return $this - */ - public function setInitialClusterVersion($var) - { - GPBUtil::checkString($var, True); - $this->initial_cluster_version = $var; - - return $this; - } - - /** - * [Output only] The current software version of the master endpoint. - * - * Generated from protobuf field string current_master_version = 104; - * @return string - */ - public function getCurrentMasterVersion() - { - return $this->current_master_version; - } - - /** - * [Output only] The current software version of the master endpoint. - * - * Generated from protobuf field string current_master_version = 104; - * @param string $var - * @return $this - */ - public function setCurrentMasterVersion($var) - { - GPBUtil::checkString($var, True); - $this->current_master_version = $var; - - return $this; - } - - /** - * [Output only] Deprecated, use - * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools) - * instead. The current version of the node software components. If they are - * currently at multiple versions because they're in the process of being - * upgraded, this reflects the minimum version of all nodes. - * - * Generated from protobuf field string current_node_version = 105 [deprecated = true]; - * @return string - * @deprecated - */ - public function getCurrentNodeVersion() - { - @trigger_error('current_node_version is deprecated.', E_USER_DEPRECATED); - return $this->current_node_version; - } - - /** - * [Output only] Deprecated, use - * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools) - * instead. The current version of the node software components. If they are - * currently at multiple versions because they're in the process of being - * upgraded, this reflects the minimum version of all nodes. - * - * Generated from protobuf field string current_node_version = 105 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setCurrentNodeVersion($var) - { - @trigger_error('current_node_version is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->current_node_version = $var; - - return $this; - } - - /** - * [Output only] The time the cluster was created, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string create_time = 106; - * @return string - */ - public function getCreateTime() - { - return $this->create_time; - } - - /** - * [Output only] The time the cluster was created, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string create_time = 106; - * @param string $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkString($var, True); - $this->create_time = $var; - - return $this; - } - - /** - * [Output only] The current status of this cluster. - * - * Generated from protobuf field .google.container.v1.Cluster.Status status = 107; - * @return int - */ - public function getStatus() - { - return $this->status; - } - - /** - * [Output only] The current status of this cluster. - * - * Generated from protobuf field .google.container.v1.Cluster.Status status = 107; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\Cluster\Status::class); - $this->status = $var; - - return $this; - } - - /** - * [Output only] Deprecated. Use conditions instead. - * Additional information about the current status of this - * cluster, if available. - * - * Generated from protobuf field string status_message = 108 [deprecated = true]; - * @return string - * @deprecated - */ - public function getStatusMessage() - { - @trigger_error('status_message is deprecated.', E_USER_DEPRECATED); - return $this->status_message; - } - - /** - * [Output only] Deprecated. Use conditions instead. - * Additional information about the current status of this - * cluster, if available. - * - * Generated from protobuf field string status_message = 108 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setStatusMessage($var) - { - @trigger_error('status_message is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->status_message = $var; - - return $this; - } - - /** - * [Output only] The size of the address space on each node for hosting - * containers. This is provisioned from within the `container_ipv4_cidr` - * range. This field will only be set when cluster is in route-based network - * mode. - * - * Generated from protobuf field int32 node_ipv4_cidr_size = 109; - * @return int - */ - public function getNodeIpv4CidrSize() - { - return $this->node_ipv4_cidr_size; - } - - /** - * [Output only] The size of the address space on each node for hosting - * containers. This is provisioned from within the `container_ipv4_cidr` - * range. This field will only be set when cluster is in route-based network - * mode. - * - * Generated from protobuf field int32 node_ipv4_cidr_size = 109; - * @param int $var - * @return $this - */ - public function setNodeIpv4CidrSize($var) - { - GPBUtil::checkInt32($var); - $this->node_ipv4_cidr_size = $var; - - return $this; - } - - /** - * [Output only] The IP address range of the Kubernetes services in - * this cluster, in - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `1.2.3.4/29`). Service addresses are - * typically put in the last `/16` from the container CIDR. - * - * Generated from protobuf field string services_ipv4_cidr = 110; - * @return string - */ - public function getServicesIpv4Cidr() - { - return $this->services_ipv4_cidr; - } - - /** - * [Output only] The IP address range of the Kubernetes services in - * this cluster, in - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `1.2.3.4/29`). Service addresses are - * typically put in the last `/16` from the container CIDR. - * - * Generated from protobuf field string services_ipv4_cidr = 110; - * @param string $var - * @return $this - */ - public function setServicesIpv4Cidr($var) - { - GPBUtil::checkString($var, True); - $this->services_ipv4_cidr = $var; - - return $this; - } - - /** - * Deprecated. Use node_pools.instance_group_urls. - * - * Generated from protobuf field repeated string instance_group_urls = 111 [deprecated = true]; - * @return \Google\Protobuf\Internal\RepeatedField - * @deprecated - */ - public function getInstanceGroupUrls() - { - @trigger_error('instance_group_urls is deprecated.', E_USER_DEPRECATED); - return $this->instance_group_urls; - } - - /** - * Deprecated. Use node_pools.instance_group_urls. - * - * Generated from protobuf field repeated string instance_group_urls = 111 [deprecated = true]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - * @deprecated - */ - public function setInstanceGroupUrls($var) - { - @trigger_error('instance_group_urls is deprecated.', E_USER_DEPRECATED); - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->instance_group_urls = $arr; - - return $this; - } - - /** - * [Output only] The number of nodes currently in the cluster. Deprecated. - * Call Kubernetes API directly to retrieve node information. - * - * Generated from protobuf field int32 current_node_count = 112 [deprecated = true]; - * @return int - * @deprecated - */ - public function getCurrentNodeCount() - { - @trigger_error('current_node_count is deprecated.', E_USER_DEPRECATED); - return $this->current_node_count; - } - - /** - * [Output only] The number of nodes currently in the cluster. Deprecated. - * Call Kubernetes API directly to retrieve node information. - * - * Generated from protobuf field int32 current_node_count = 112 [deprecated = true]; - * @param int $var - * @return $this - * @deprecated - */ - public function setCurrentNodeCount($var) - { - @trigger_error('current_node_count is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkInt32($var); - $this->current_node_count = $var; - - return $this; - } - - /** - * [Output only] The time the cluster will be automatically - * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string expire_time = 113; - * @return string - */ - public function getExpireTime() - { - return $this->expire_time; - } - - /** - * [Output only] The time the cluster will be automatically - * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string expire_time = 113; - * @param string $var - * @return $this - */ - public function setExpireTime($var) - { - GPBUtil::checkString($var, True); - $this->expire_time = $var; - - return $this; - } - - /** - * [Output only] The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * or - * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * in which the cluster resides. - * - * Generated from protobuf field string location = 114; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * [Output only] The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * or - * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * in which the cluster resides. - * - * Generated from protobuf field string location = 114; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - - /** - * Enable the ability to use Cloud TPUs in this cluster. - * - * Generated from protobuf field bool enable_tpu = 115; - * @return bool - */ - public function getEnableTpu() - { - return $this->enable_tpu; - } - - /** - * Enable the ability to use Cloud TPUs in this cluster. - * - * Generated from protobuf field bool enable_tpu = 115; - * @param bool $var - * @return $this - */ - public function setEnableTpu($var) - { - GPBUtil::checkBool($var); - $this->enable_tpu = $var; - - return $this; - } - - /** - * [Output only] The IP address range of the Cloud TPUs in this cluster, in - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `1.2.3.4/29`). - * - * Generated from protobuf field string tpu_ipv4_cidr_block = 116; - * @return string - */ - public function getTpuIpv4CidrBlock() - { - return $this->tpu_ipv4_cidr_block; - } - - /** - * [Output only] The IP address range of the Cloud TPUs in this cluster, in - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `1.2.3.4/29`). - * - * Generated from protobuf field string tpu_ipv4_cidr_block = 116; - * @param string $var - * @return $this - */ - public function setTpuIpv4CidrBlock($var) - { - GPBUtil::checkString($var, True); - $this->tpu_ipv4_cidr_block = $var; - - return $this; - } - - /** - * Which conditions caused the current cluster state. - * - * Generated from protobuf field repeated .google.container.v1.StatusCondition conditions = 118; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getConditions() - { - return $this->conditions; - } - - /** - * Which conditions caused the current cluster state. - * - * Generated from protobuf field repeated .google.container.v1.StatusCondition conditions = 118; - * @param array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setConditions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\StatusCondition::class); - $this->conditions = $arr; - - return $this; - } - - /** - * Autopilot configuration for the cluster. - * - * Generated from protobuf field .google.container.v1.Autopilot autopilot = 128; - * @return \Google\Cloud\Container\V1\Autopilot|null - */ - public function getAutopilot() - { - return $this->autopilot; - } - - public function hasAutopilot() - { - return isset($this->autopilot); - } - - public function clearAutopilot() - { - unset($this->autopilot); - } - - /** - * Autopilot configuration for the cluster. - * - * Generated from protobuf field .google.container.v1.Autopilot autopilot = 128; - * @param \Google\Cloud\Container\V1\Autopilot $var - * @return $this - */ - public function setAutopilot($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\Autopilot::class); - $this->autopilot = $var; - - return $this; - } - - /** - * Output only. Unique id for the cluster. - * - * Generated from protobuf field string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Output only. Unique id for the cluster. - * - * Generated from protobuf field string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Default NodePool settings for the entire cluster. These settings are - * overridden if specified on the specific NodePool object. - * - * Generated from protobuf field optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; - * @return \Google\Cloud\Container\V1\NodePoolDefaults|null - */ - public function getNodePoolDefaults() - { - return $this->node_pool_defaults; - } - - public function hasNodePoolDefaults() - { - return isset($this->node_pool_defaults); - } - - public function clearNodePoolDefaults() - { - unset($this->node_pool_defaults); - } - - /** - * Default NodePool settings for the entire cluster. These settings are - * overridden if specified on the specific NodePool object. - * - * Generated from protobuf field optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; - * @param \Google\Cloud\Container\V1\NodePoolDefaults $var - * @return $this - */ - public function setNodePoolDefaults($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolDefaults::class); - $this->node_pool_defaults = $var; - - return $this; - } - - /** - * Logging configuration for the cluster. - * - * Generated from protobuf field .google.container.v1.LoggingConfig logging_config = 132; - * @return \Google\Cloud\Container\V1\LoggingConfig|null - */ - public function getLoggingConfig() - { - return $this->logging_config; - } - - public function hasLoggingConfig() - { - return isset($this->logging_config); - } - - public function clearLoggingConfig() - { - unset($this->logging_config); - } - - /** - * Logging configuration for the cluster. - * - * Generated from protobuf field .google.container.v1.LoggingConfig logging_config = 132; - * @param \Google\Cloud\Container\V1\LoggingConfig $var - * @return $this - */ - public function setLoggingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LoggingConfig::class); - $this->logging_config = $var; - - return $this; - } - - /** - * Monitoring configuration for the cluster. - * - * Generated from protobuf field .google.container.v1.MonitoringConfig monitoring_config = 133; - * @return \Google\Cloud\Container\V1\MonitoringConfig|null - */ - public function getMonitoringConfig() - { - return $this->monitoring_config; - } - - public function hasMonitoringConfig() - { - return isset($this->monitoring_config); - } - - public function clearMonitoringConfig() - { - unset($this->monitoring_config); - } - - /** - * Monitoring configuration for the cluster. - * - * Generated from protobuf field .google.container.v1.MonitoringConfig monitoring_config = 133; - * @param \Google\Cloud\Container\V1\MonitoringConfig $var - * @return $this - */ - public function setMonitoringConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MonitoringConfig::class); - $this->monitoring_config = $var; - - return $this; - } - - /** - * Node pool configs that apply to all auto-provisioned node pools - * in autopilot clusters and node auto-provisioning enabled clusters. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; - * @return \Google\Cloud\Container\V1\NodePoolAutoConfig|null - */ - public function getNodePoolAutoConfig() - { - return $this->node_pool_auto_config; - } - - public function hasNodePoolAutoConfig() - { - return isset($this->node_pool_auto_config); - } - - public function clearNodePoolAutoConfig() - { - unset($this->node_pool_auto_config); - } - - /** - * Node pool configs that apply to all auto-provisioned node pools - * in autopilot clusters and node auto-provisioning enabled clusters. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; - * @param \Google\Cloud\Container\V1\NodePoolAutoConfig $var - * @return $this - */ - public function setNodePoolAutoConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolAutoConfig::class); - $this->node_pool_auto_config = $var; - - return $this; - } - - /** - * This checksum is computed by the server based on the value of cluster - * fields, and may be sent on update requests to ensure the client has an - * up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 139; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * This checksum is computed by the server based on the value of cluster - * fields, and may be sent on update requests to ensure the client has an - * up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 139; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Fleet information for the cluster. - * - * Generated from protobuf field .google.container.v1.Fleet fleet = 140; - * @return \Google\Cloud\Container\V1\Fleet|null - */ - public function getFleet() - { - return $this->fleet; - } - - public function hasFleet() - { - return isset($this->fleet); - } - - public function clearFleet() - { - unset($this->fleet); - } - - /** - * Fleet information for the cluster. - * - * Generated from protobuf field .google.container.v1.Fleet fleet = 140; - * @param \Google\Cloud\Container\V1\Fleet $var - * @return $this - */ - public function setFleet($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\Fleet::class); - $this->fleet = $var; - - return $this; - } - - /** - * Enable/Disable Security Posture API features for the cluster. - * - * Generated from protobuf field .google.container.v1.SecurityPostureConfig security_posture_config = 145; - * @return \Google\Cloud\Container\V1\SecurityPostureConfig|null - */ - public function getSecurityPostureConfig() - { - return $this->security_posture_config; - } - - public function hasSecurityPostureConfig() - { - return isset($this->security_posture_config); - } - - public function clearSecurityPostureConfig() - { - unset($this->security_posture_config); - } - - /** - * Enable/Disable Security Posture API features for the cluster. - * - * Generated from protobuf field .google.container.v1.SecurityPostureConfig security_posture_config = 145; - * @param \Google\Cloud\Container\V1\SecurityPostureConfig $var - * @return $this - */ - public function setSecurityPostureConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\SecurityPostureConfig::class); - $this->security_posture_config = $var; - - return $this; - } - - /** - * Beta APIs Config - * - * Generated from protobuf field .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; - * @return \Google\Cloud\Container\V1\K8sBetaAPIConfig|null - */ - public function getEnableK8SBetaApis() - { - return $this->enable_k8s_beta_apis; - } - - public function hasEnableK8SBetaApis() - { - return isset($this->enable_k8s_beta_apis); - } - - public function clearEnableK8SBetaApis() - { - unset($this->enable_k8s_beta_apis); - } - - /** - * Beta APIs Config - * - * Generated from protobuf field .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; - * @param \Google\Cloud\Container\V1\K8sBetaAPIConfig $var - * @return $this - */ - public function setEnableK8SBetaApis($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\K8sBetaAPIConfig::class); - $this->enable_k8s_beta_apis = $var; - - return $this; - } - - /** - * GKE Enterprise Configuration. - * - * Generated from protobuf field .google.container.v1.EnterpriseConfig enterprise_config = 149; - * @return \Google\Cloud\Container\V1\EnterpriseConfig|null - */ - public function getEnterpriseConfig() - { - return $this->enterprise_config; - } - - public function hasEnterpriseConfig() - { - return isset($this->enterprise_config); - } - - public function clearEnterpriseConfig() - { - unset($this->enterprise_config); - } - - /** - * GKE Enterprise Configuration. - * - * Generated from protobuf field .google.container.v1.EnterpriseConfig enterprise_config = 149; - * @param \Google\Cloud\Container\V1\EnterpriseConfig $var - * @return $this - */ - public function setEnterpriseConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\EnterpriseConfig::class); - $this->enterprise_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Cluster/Status.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Cluster/Status.php deleted file mode 100644 index c9b3957604fb..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Cluster/Status.php +++ /dev/null @@ -1,97 +0,0 @@ -google.container.v1.Cluster.Status - */ -class Status -{ - /** - * Not set. - * - * Generated from protobuf enum STATUS_UNSPECIFIED = 0; - */ - const STATUS_UNSPECIFIED = 0; - /** - * The PROVISIONING state indicates the cluster is being created. - * - * Generated from protobuf enum PROVISIONING = 1; - */ - const PROVISIONING = 1; - /** - * The RUNNING state indicates the cluster has been created and is fully - * usable. - * - * Generated from protobuf enum RUNNING = 2; - */ - const RUNNING = 2; - /** - * The RECONCILING state indicates that some work is actively being done on - * the cluster, such as upgrading the master or node software. Details can - * be found in the `statusMessage` field. - * - * Generated from protobuf enum RECONCILING = 3; - */ - const RECONCILING = 3; - /** - * The STOPPING state indicates the cluster is being deleted. - * - * Generated from protobuf enum STOPPING = 4; - */ - const STOPPING = 4; - /** - * The ERROR state indicates the cluster is unusable. It will be - * automatically deleted. Details can be found in the `statusMessage` field. - * - * Generated from protobuf enum ERROR = 5; - */ - const ERROR = 5; - /** - * The DEGRADED state indicates the cluster requires user action to restore - * full functionality. Details can be found in the `statusMessage` field. - * - * Generated from protobuf enum DEGRADED = 6; - */ - const DEGRADED = 6; - - private static $valueToName = [ - self::STATUS_UNSPECIFIED => 'STATUS_UNSPECIFIED', - self::PROVISIONING => 'PROVISIONING', - self::RUNNING => 'RUNNING', - self::RECONCILING => 'RECONCILING', - self::STOPPING => 'STOPPING', - self::ERROR => 'ERROR', - self::DEGRADED => 'DEGRADED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Status::class, \Google\Cloud\Container\V1\Cluster_Status::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling.php deleted file mode 100644 index 5ca6c015c80b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling.php +++ /dev/null @@ -1,232 +0,0 @@ -google.container.v1.ClusterAutoscaling - */ -class ClusterAutoscaling extends \Google\Protobuf\Internal\Message -{ - /** - * Enables automatic node pool creation and deletion. - * - * Generated from protobuf field bool enable_node_autoprovisioning = 1; - */ - protected $enable_node_autoprovisioning = false; - /** - * Contains global constraints regarding minimum and maximum - * amount of resources in the cluster. - * - * Generated from protobuf field repeated .google.container.v1.ResourceLimit resource_limits = 2; - */ - private $resource_limits; - /** - * Defines autoscaling behaviour. - * - * Generated from protobuf field .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; - */ - protected $autoscaling_profile = 0; - /** - * AutoprovisioningNodePoolDefaults contains defaults for a node pool - * created by NAP. - * - * Generated from protobuf field .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - */ - protected $autoprovisioning_node_pool_defaults = null; - /** - * The list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * NodePool's nodes can be created by NAP. - * - * Generated from protobuf field repeated string autoprovisioning_locations = 5; - */ - private $autoprovisioning_locations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enable_node_autoprovisioning - * Enables automatic node pool creation and deletion. - * @type array<\Google\Cloud\Container\V1\ResourceLimit>|\Google\Protobuf\Internal\RepeatedField $resource_limits - * Contains global constraints regarding minimum and maximum - * amount of resources in the cluster. - * @type int $autoscaling_profile - * Defines autoscaling behaviour. - * @type \Google\Cloud\Container\V1\AutoprovisioningNodePoolDefaults $autoprovisioning_node_pool_defaults - * AutoprovisioningNodePoolDefaults contains defaults for a node pool - * created by NAP. - * @type array|\Google\Protobuf\Internal\RepeatedField $autoprovisioning_locations - * The list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * NodePool's nodes can be created by NAP. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Enables automatic node pool creation and deletion. - * - * Generated from protobuf field bool enable_node_autoprovisioning = 1; - * @return bool - */ - public function getEnableNodeAutoprovisioning() - { - return $this->enable_node_autoprovisioning; - } - - /** - * Enables automatic node pool creation and deletion. - * - * Generated from protobuf field bool enable_node_autoprovisioning = 1; - * @param bool $var - * @return $this - */ - public function setEnableNodeAutoprovisioning($var) - { - GPBUtil::checkBool($var); - $this->enable_node_autoprovisioning = $var; - - return $this; - } - - /** - * Contains global constraints regarding minimum and maximum - * amount of resources in the cluster. - * - * Generated from protobuf field repeated .google.container.v1.ResourceLimit resource_limits = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResourceLimits() - { - return $this->resource_limits; - } - - /** - * Contains global constraints regarding minimum and maximum - * amount of resources in the cluster. - * - * Generated from protobuf field repeated .google.container.v1.ResourceLimit resource_limits = 2; - * @param array<\Google\Cloud\Container\V1\ResourceLimit>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResourceLimits($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\ResourceLimit::class); - $this->resource_limits = $arr; - - return $this; - } - - /** - * Defines autoscaling behaviour. - * - * Generated from protobuf field .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; - * @return int - */ - public function getAutoscalingProfile() - { - return $this->autoscaling_profile; - } - - /** - * Defines autoscaling behaviour. - * - * Generated from protobuf field .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; - * @param int $var - * @return $this - */ - public function setAutoscalingProfile($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\ClusterAutoscaling\AutoscalingProfile::class); - $this->autoscaling_profile = $var; - - return $this; - } - - /** - * AutoprovisioningNodePoolDefaults contains defaults for a node pool - * created by NAP. - * - * Generated from protobuf field .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * @return \Google\Cloud\Container\V1\AutoprovisioningNodePoolDefaults|null - */ - public function getAutoprovisioningNodePoolDefaults() - { - return $this->autoprovisioning_node_pool_defaults; - } - - public function hasAutoprovisioningNodePoolDefaults() - { - return isset($this->autoprovisioning_node_pool_defaults); - } - - public function clearAutoprovisioningNodePoolDefaults() - { - unset($this->autoprovisioning_node_pool_defaults); - } - - /** - * AutoprovisioningNodePoolDefaults contains defaults for a node pool - * created by NAP. - * - * Generated from protobuf field .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * @param \Google\Cloud\Container\V1\AutoprovisioningNodePoolDefaults $var - * @return $this - */ - public function setAutoprovisioningNodePoolDefaults($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AutoprovisioningNodePoolDefaults::class); - $this->autoprovisioning_node_pool_defaults = $var; - - return $this; - } - - /** - * The list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * NodePool's nodes can be created by NAP. - * - * Generated from protobuf field repeated string autoprovisioning_locations = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAutoprovisioningLocations() - { - return $this->autoprovisioning_locations; - } - - /** - * The list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * NodePool's nodes can be created by NAP. - * - * Generated from protobuf field repeated string autoprovisioning_locations = 5; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAutoprovisioningLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->autoprovisioning_locations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling/AutoscalingProfile.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling/AutoscalingProfile.php deleted file mode 100644 index c749df9997d7..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling/AutoscalingProfile.php +++ /dev/null @@ -1,64 +0,0 @@ -google.container.v1.ClusterAutoscaling.AutoscalingProfile - */ -class AutoscalingProfile -{ - /** - * No change to autoscaling configuration. - * - * Generated from protobuf enum PROFILE_UNSPECIFIED = 0; - */ - const PROFILE_UNSPECIFIED = 0; - /** - * Prioritize optimizing utilization of resources. - * - * Generated from protobuf enum OPTIMIZE_UTILIZATION = 1; - */ - const OPTIMIZE_UTILIZATION = 1; - /** - * Use default (balanced) autoscaling configuration. - * - * Generated from protobuf enum BALANCED = 2; - */ - const BALANCED = 2; - - private static $valueToName = [ - self::PROFILE_UNSPECIFIED => 'PROFILE_UNSPECIFIED', - self::OPTIMIZE_UTILIZATION => 'OPTIMIZE_UTILIZATION', - self::BALANCED => 'BALANCED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AutoscalingProfile::class, \Google\Cloud\Container\V1\ClusterAutoscaling_AutoscalingProfile::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterUpdate.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterUpdate.php deleted file mode 100644 index a692e468e02d..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterUpdate.php +++ /dev/null @@ -1,2473 +0,0 @@ -google.container.v1.ClusterUpdate - */ -class ClusterUpdate extends \Google\Protobuf\Internal\Message -{ - /** - * The Kubernetes version to change the nodes to (typically an - * upgrade). - * Users may specify either explicit versions offered by - * Kubernetes Engine or version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the Kubernetes master version - * - * Generated from protobuf field string desired_node_version = 4; - */ - protected $desired_node_version = ''; - /** - * The monitoring service the cluster should use to write metrics. - * Currently available options: - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * - * Generated from protobuf field string desired_monitoring_service = 5; - */ - protected $desired_monitoring_service = ''; - /** - * Configurations for the various addons available to run in the cluster. - * - * Generated from protobuf field .google.container.v1.AddonsConfig desired_addons_config = 6; - */ - protected $desired_addons_config = null; - /** - * The node pool to be upgraded. This field is mandatory if - * "desired_node_version", "desired_image_family" or - * "desired_node_pool_autoscaling" is specified and there is more than one - * node pool on the cluster. - * - * Generated from protobuf field string desired_node_pool_id = 7; - */ - protected $desired_node_pool_id = ''; - /** - * The desired image type for the node pool. - * NOTE: Set the "desired_node_pool" field as well. - * - * Generated from protobuf field string desired_image_type = 8; - */ - protected $desired_image_type = ''; - /** - * Configuration of etcd encryption. - * - * Generated from protobuf field .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - */ - protected $desired_database_encryption = null; - /** - * Configuration for Workload Identity. - * - * Generated from protobuf field .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - */ - protected $desired_workload_identity_config = null; - /** - * Configuration for issuance of mTLS keys and certificates to Kubernetes - * pods. - * - * Generated from protobuf field .google.container.v1.MeshCertificates desired_mesh_certificates = 67; - */ - protected $desired_mesh_certificates = null; - /** - * Configuration for Shielded Nodes. - * - * Generated from protobuf field .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - */ - protected $desired_shielded_nodes = null; - /** - * The desired configuration for the fine-grained cost management feature. - * - * Generated from protobuf field .google.container.v1.CostManagementConfig desired_cost_management_config = 49; - */ - protected $desired_cost_management_config = null; - /** - * DNSConfig contains clusterDNS config for this cluster. - * - * Generated from protobuf field .google.container.v1.DNSConfig desired_dns_config = 53; - */ - protected $desired_dns_config = null; - /** - * Autoscaler configuration for the node pool specified in - * desired_node_pool_id. If there is only one pool in the - * cluster and desired_node_pool_id is not provided then - * the change applies to that single node pool. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - */ - protected $desired_node_pool_autoscaling = null; - /** - * The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. - * This list must always include the cluster's primary zone. - * Warning: changing cluster locations will update the locations of all node - * pools and will result in nodes being added and/or removed. - * - * Generated from protobuf field repeated string desired_locations = 10; - */ - private $desired_locations; - /** - * The desired configuration options for master authorized networks feature. - * - * Generated from protobuf field .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - */ - protected $desired_master_authorized_networks_config = null; - /** - * Cluster-level autoscaling configuration. - * - * Generated from protobuf field .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - */ - protected $desired_cluster_autoscaling = null; - /** - * The desired configuration options for the Binary Authorization feature. - * - * Generated from protobuf field .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; - */ - protected $desired_binary_authorization = null; - /** - * The logging service the cluster should use to write logs. - * Currently available options: - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * - * Generated from protobuf field string desired_logging_service = 19; - */ - protected $desired_logging_service = ''; - /** - * The desired configuration for exporting resource usage. - * - * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - */ - protected $desired_resource_usage_export_config = null; - /** - * Cluster-level Vertical Pod Autoscaling configuration. - * - * Generated from protobuf field .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - */ - protected $desired_vertical_pod_autoscaling = null; - /** - * The desired private cluster configuration. - * - * Generated from protobuf field .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - */ - protected $desired_private_cluster_config = null; - /** - * The desired config of Intra-node visibility. - * - * Generated from protobuf field .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - */ - protected $desired_intra_node_visibility_config = null; - /** - * The desired status of whether to disable default sNAT for this cluster. - * - * Generated from protobuf field .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - */ - protected $desired_default_snat_status = null; - /** - * The desired release channel configuration. - * - * Generated from protobuf field .google.container.v1.ReleaseChannel desired_release_channel = 31; - */ - protected $desired_release_channel = null; - /** - * The desired L4 Internal Load Balancer Subsetting configuration. - * - * Generated from protobuf field .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - */ - protected $desired_l4ilb_subsetting_config = null; - /** - * The desired datapath provider for the cluster. - * - * Generated from protobuf field .google.container.v1.DatapathProvider desired_datapath_provider = 50; - */ - protected $desired_datapath_provider = 0; - /** - * The desired state of IPv6 connectivity to Google Services. - * - * Generated from protobuf field .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; - */ - protected $desired_private_ipv6_google_access = 0; - /** - * The desired notification configuration. - * - * Generated from protobuf field .google.container.v1.NotificationConfig desired_notification_config = 55; - */ - protected $desired_notification_config = null; - /** - * The desired authenticator groups config for the cluster. - * - * Generated from protobuf field .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - */ - protected $desired_authenticator_groups_config = null; - /** - * The desired logging configuration. - * - * Generated from protobuf field .google.container.v1.LoggingConfig desired_logging_config = 64; - */ - protected $desired_logging_config = null; - /** - * The desired monitoring configuration. - * - * Generated from protobuf field .google.container.v1.MonitoringConfig desired_monitoring_config = 65; - */ - protected $desired_monitoring_config = null; - /** - * The desired Identity Service component configuration. - * - * Generated from protobuf field .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; - */ - protected $desired_identity_service_config = null; - /** - * ServiceExternalIPsConfig specifies the config for the use of Services with - * ExternalIPs field. - * - * Generated from protobuf field .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - */ - protected $desired_service_external_ips_config = null; - /** - * Enable/Disable private endpoint for the cluster's master. - * - * Generated from protobuf field optional bool desired_enable_private_endpoint = 71; - */ - protected $desired_enable_private_endpoint = null; - /** - * The Kubernetes version to change the master to. - * Users may specify either explicit versions offered by - * Kubernetes Engine or version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the default Kubernetes version - * - * Generated from protobuf field string desired_master_version = 100; - */ - protected $desired_master_version = ''; - /** - * The desired GCFS config for the cluster - * - * Generated from protobuf field .google.container.v1.GcfsConfig desired_gcfs_config = 109; - */ - protected $desired_gcfs_config = null; - /** - * The desired network tags that apply to all auto-provisioned node pools - * in autopilot clusters and node auto-provisioning enabled clusters. - * - * Generated from protobuf field .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; - */ - protected $desired_node_pool_auto_config_network_tags = null; - /** - * The desired config of Gateway API on this cluster. - * - * Generated from protobuf field .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; - */ - protected $desired_gateway_api_config = null; - /** - * The current etag of the cluster. - * If an etag is provided and does not match the current etag of the cluster, - * update will be blocked and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 115; - */ - protected $etag = ''; - /** - * The desired node pool logging configuration defaults for the cluster. - * - * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; - */ - protected $desired_node_pool_logging_config = null; - /** - * The desired fleet configuration for the cluster. - * - * Generated from protobuf field .google.container.v1.Fleet desired_fleet = 117; - */ - protected $desired_fleet = null; - /** - * The desired stack type of the cluster. - * If a stack type is provided and does not match the current stack type of - * the cluster, update will attempt to change the stack type to the new type. - * - * Generated from protobuf field .google.container.v1.StackType desired_stack_type = 119; - */ - protected $desired_stack_type = 0; - /** - * The additional pod ranges to be added to the cluster. These pod ranges - * can be used by node pools to allocate pod IPs. - * - * Generated from protobuf field .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; - */ - protected $additional_pod_ranges_config = null; - /** - * The additional pod ranges that are to be removed from the cluster. - * The pod ranges specified here must have been specified earlier in the - * 'additional_pod_ranges_config' argument. - * - * Generated from protobuf field .google.container.v1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; - */ - protected $removed_additional_pod_ranges_config = null; - /** - * Kubernetes open source beta apis enabled on the cluster. Only beta apis - * - * Generated from protobuf field .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; - */ - protected $enable_k8s_beta_apis = null; - /** - * Enable/Disable Security Posture API features for the cluster. - * - * Generated from protobuf field .google.container.v1.SecurityPostureConfig desired_security_posture_config = 124; - */ - protected $desired_security_posture_config = null; - /** - * The desired network performance config. - * - * Generated from protobuf field .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; - */ - protected $desired_network_performance_config = null; - /** - * Enable/Disable FQDN Network Policy for the cluster. - * - * Generated from protobuf field optional bool desired_enable_fqdn_network_policy = 126; - */ - protected $desired_enable_fqdn_network_policy = null; - /** - * The desired workload policy configuration for the autopilot cluster. - * - * Generated from protobuf field .google.container.v1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; - */ - protected $desired_autopilot_workload_policy_config = null; - /** - * Desired Beta APIs to be enabled for cluster. - * - * Generated from protobuf field .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; - */ - protected $desired_k8s_beta_apis = null; - /** - * Enable/Disable Multi-Networking for the cluster - * - * Generated from protobuf field optional bool desired_enable_multi_networking = 135; - */ - protected $desired_enable_multi_networking = null; - /** - * The desired resource manager tags that apply to all auto-provisioned node - * pools in autopilot clusters and node auto-provisioning enabled clusters. - * - * Generated from protobuf field .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; - */ - protected $desired_node_pool_auto_config_resource_manager_tags = null; - /** - * Specify the details of in-transit encryption. - * - * Generated from protobuf field optional .google.container.v1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; - */ - protected $desired_in_transit_encryption_config = null; - /** - * Enable/Disable Cilium Clusterwide Network Policy for the cluster. - * - * Generated from protobuf field optional bool desired_enable_cilium_clusterwide_network_policy = 138; - */ - protected $desired_enable_cilium_clusterwide_network_policy = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $desired_node_version - * The Kubernetes version to change the nodes to (typically an - * upgrade). - * Users may specify either explicit versions offered by - * Kubernetes Engine or version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the Kubernetes master version - * @type string $desired_monitoring_service - * The monitoring service the cluster should use to write metrics. - * Currently available options: - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * @type \Google\Cloud\Container\V1\AddonsConfig $desired_addons_config - * Configurations for the various addons available to run in the cluster. - * @type string $desired_node_pool_id - * The node pool to be upgraded. This field is mandatory if - * "desired_node_version", "desired_image_family" or - * "desired_node_pool_autoscaling" is specified and there is more than one - * node pool on the cluster. - * @type string $desired_image_type - * The desired image type for the node pool. - * NOTE: Set the "desired_node_pool" field as well. - * @type \Google\Cloud\Container\V1\DatabaseEncryption $desired_database_encryption - * Configuration of etcd encryption. - * @type \Google\Cloud\Container\V1\WorkloadIdentityConfig $desired_workload_identity_config - * Configuration for Workload Identity. - * @type \Google\Cloud\Container\V1\MeshCertificates $desired_mesh_certificates - * Configuration for issuance of mTLS keys and certificates to Kubernetes - * pods. - * @type \Google\Cloud\Container\V1\ShieldedNodes $desired_shielded_nodes - * Configuration for Shielded Nodes. - * @type \Google\Cloud\Container\V1\CostManagementConfig $desired_cost_management_config - * The desired configuration for the fine-grained cost management feature. - * @type \Google\Cloud\Container\V1\DNSConfig $desired_dns_config - * DNSConfig contains clusterDNS config for this cluster. - * @type \Google\Cloud\Container\V1\NodePoolAutoscaling $desired_node_pool_autoscaling - * Autoscaler configuration for the node pool specified in - * desired_node_pool_id. If there is only one pool in the - * cluster and desired_node_pool_id is not provided then - * the change applies to that single node pool. - * @type array|\Google\Protobuf\Internal\RepeatedField $desired_locations - * The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. - * This list must always include the cluster's primary zone. - * Warning: changing cluster locations will update the locations of all node - * pools and will result in nodes being added and/or removed. - * @type \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig $desired_master_authorized_networks_config - * The desired configuration options for master authorized networks feature. - * @type \Google\Cloud\Container\V1\ClusterAutoscaling $desired_cluster_autoscaling - * Cluster-level autoscaling configuration. - * @type \Google\Cloud\Container\V1\BinaryAuthorization $desired_binary_authorization - * The desired configuration options for the Binary Authorization feature. - * @type string $desired_logging_service - * The logging service the cluster should use to write logs. - * Currently available options: - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * @type \Google\Cloud\Container\V1\ResourceUsageExportConfig $desired_resource_usage_export_config - * The desired configuration for exporting resource usage. - * @type \Google\Cloud\Container\V1\VerticalPodAutoscaling $desired_vertical_pod_autoscaling - * Cluster-level Vertical Pod Autoscaling configuration. - * @type \Google\Cloud\Container\V1\PrivateClusterConfig $desired_private_cluster_config - * The desired private cluster configuration. - * @type \Google\Cloud\Container\V1\IntraNodeVisibilityConfig $desired_intra_node_visibility_config - * The desired config of Intra-node visibility. - * @type \Google\Cloud\Container\V1\DefaultSnatStatus $desired_default_snat_status - * The desired status of whether to disable default sNAT for this cluster. - * @type \Google\Cloud\Container\V1\ReleaseChannel $desired_release_channel - * The desired release channel configuration. - * @type \Google\Cloud\Container\V1\ILBSubsettingConfig $desired_l4ilb_subsetting_config - * The desired L4 Internal Load Balancer Subsetting configuration. - * @type int $desired_datapath_provider - * The desired datapath provider for the cluster. - * @type int $desired_private_ipv6_google_access - * The desired state of IPv6 connectivity to Google Services. - * @type \Google\Cloud\Container\V1\NotificationConfig $desired_notification_config - * The desired notification configuration. - * @type \Google\Cloud\Container\V1\AuthenticatorGroupsConfig $desired_authenticator_groups_config - * The desired authenticator groups config for the cluster. - * @type \Google\Cloud\Container\V1\LoggingConfig $desired_logging_config - * The desired logging configuration. - * @type \Google\Cloud\Container\V1\MonitoringConfig $desired_monitoring_config - * The desired monitoring configuration. - * @type \Google\Cloud\Container\V1\IdentityServiceConfig $desired_identity_service_config - * The desired Identity Service component configuration. - * @type \Google\Cloud\Container\V1\ServiceExternalIPsConfig $desired_service_external_ips_config - * ServiceExternalIPsConfig specifies the config for the use of Services with - * ExternalIPs field. - * @type bool $desired_enable_private_endpoint - * Enable/Disable private endpoint for the cluster's master. - * @type string $desired_master_version - * The Kubernetes version to change the master to. - * Users may specify either explicit versions offered by - * Kubernetes Engine or version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the default Kubernetes version - * @type \Google\Cloud\Container\V1\GcfsConfig $desired_gcfs_config - * The desired GCFS config for the cluster - * @type \Google\Cloud\Container\V1\NetworkTags $desired_node_pool_auto_config_network_tags - * The desired network tags that apply to all auto-provisioned node pools - * in autopilot clusters and node auto-provisioning enabled clusters. - * @type \Google\Cloud\Container\V1\GatewayAPIConfig $desired_gateway_api_config - * The desired config of Gateway API on this cluster. - * @type string $etag - * The current etag of the cluster. - * If an etag is provided and does not match the current etag of the cluster, - * update will be blocked and an ABORTED error will be returned. - * @type \Google\Cloud\Container\V1\NodePoolLoggingConfig $desired_node_pool_logging_config - * The desired node pool logging configuration defaults for the cluster. - * @type \Google\Cloud\Container\V1\Fleet $desired_fleet - * The desired fleet configuration for the cluster. - * @type int $desired_stack_type - * The desired stack type of the cluster. - * If a stack type is provided and does not match the current stack type of - * the cluster, update will attempt to change the stack type to the new type. - * @type \Google\Cloud\Container\V1\AdditionalPodRangesConfig $additional_pod_ranges_config - * The additional pod ranges to be added to the cluster. These pod ranges - * can be used by node pools to allocate pod IPs. - * @type \Google\Cloud\Container\V1\AdditionalPodRangesConfig $removed_additional_pod_ranges_config - * The additional pod ranges that are to be removed from the cluster. - * The pod ranges specified here must have been specified earlier in the - * 'additional_pod_ranges_config' argument. - * @type \Google\Cloud\Container\V1\K8sBetaAPIConfig $enable_k8s_beta_apis - * Kubernetes open source beta apis enabled on the cluster. Only beta apis - * @type \Google\Cloud\Container\V1\SecurityPostureConfig $desired_security_posture_config - * Enable/Disable Security Posture API features for the cluster. - * @type \Google\Cloud\Container\V1\NetworkConfig\ClusterNetworkPerformanceConfig $desired_network_performance_config - * The desired network performance config. - * @type bool $desired_enable_fqdn_network_policy - * Enable/Disable FQDN Network Policy for the cluster. - * @type \Google\Cloud\Container\V1\WorkloadPolicyConfig $desired_autopilot_workload_policy_config - * The desired workload policy configuration for the autopilot cluster. - * @type \Google\Cloud\Container\V1\K8sBetaAPIConfig $desired_k8s_beta_apis - * Desired Beta APIs to be enabled for cluster. - * @type bool $desired_enable_multi_networking - * Enable/Disable Multi-Networking for the cluster - * @type \Google\Cloud\Container\V1\ResourceManagerTags $desired_node_pool_auto_config_resource_manager_tags - * The desired resource manager tags that apply to all auto-provisioned node - * pools in autopilot clusters and node auto-provisioning enabled clusters. - * @type int $desired_in_transit_encryption_config - * Specify the details of in-transit encryption. - * @type bool $desired_enable_cilium_clusterwide_network_policy - * Enable/Disable Cilium Clusterwide Network Policy for the cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The Kubernetes version to change the nodes to (typically an - * upgrade). - * Users may specify either explicit versions offered by - * Kubernetes Engine or version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the Kubernetes master version - * - * Generated from protobuf field string desired_node_version = 4; - * @return string - */ - public function getDesiredNodeVersion() - { - return $this->desired_node_version; - } - - /** - * The Kubernetes version to change the nodes to (typically an - * upgrade). - * Users may specify either explicit versions offered by - * Kubernetes Engine or version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the Kubernetes master version - * - * Generated from protobuf field string desired_node_version = 4; - * @param string $var - * @return $this - */ - public function setDesiredNodeVersion($var) - { - GPBUtil::checkString($var, True); - $this->desired_node_version = $var; - - return $this; - } - - /** - * The monitoring service the cluster should use to write metrics. - * Currently available options: - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * - * Generated from protobuf field string desired_monitoring_service = 5; - * @return string - */ - public function getDesiredMonitoringService() - { - return $this->desired_monitoring_service; - } - - /** - * The monitoring service the cluster should use to write metrics. - * Currently available options: - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * - * Generated from protobuf field string desired_monitoring_service = 5; - * @param string $var - * @return $this - */ - public function setDesiredMonitoringService($var) - { - GPBUtil::checkString($var, True); - $this->desired_monitoring_service = $var; - - return $this; - } - - /** - * Configurations for the various addons available to run in the cluster. - * - * Generated from protobuf field .google.container.v1.AddonsConfig desired_addons_config = 6; - * @return \Google\Cloud\Container\V1\AddonsConfig|null - */ - public function getDesiredAddonsConfig() - { - return $this->desired_addons_config; - } - - public function hasDesiredAddonsConfig() - { - return isset($this->desired_addons_config); - } - - public function clearDesiredAddonsConfig() - { - unset($this->desired_addons_config); - } - - /** - * Configurations for the various addons available to run in the cluster. - * - * Generated from protobuf field .google.container.v1.AddonsConfig desired_addons_config = 6; - * @param \Google\Cloud\Container\V1\AddonsConfig $var - * @return $this - */ - public function setDesiredAddonsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AddonsConfig::class); - $this->desired_addons_config = $var; - - return $this; - } - - /** - * The node pool to be upgraded. This field is mandatory if - * "desired_node_version", "desired_image_family" or - * "desired_node_pool_autoscaling" is specified and there is more than one - * node pool on the cluster. - * - * Generated from protobuf field string desired_node_pool_id = 7; - * @return string - */ - public function getDesiredNodePoolId() - { - return $this->desired_node_pool_id; - } - - /** - * The node pool to be upgraded. This field is mandatory if - * "desired_node_version", "desired_image_family" or - * "desired_node_pool_autoscaling" is specified and there is more than one - * node pool on the cluster. - * - * Generated from protobuf field string desired_node_pool_id = 7; - * @param string $var - * @return $this - */ - public function setDesiredNodePoolId($var) - { - GPBUtil::checkString($var, True); - $this->desired_node_pool_id = $var; - - return $this; - } - - /** - * The desired image type for the node pool. - * NOTE: Set the "desired_node_pool" field as well. - * - * Generated from protobuf field string desired_image_type = 8; - * @return string - */ - public function getDesiredImageType() - { - return $this->desired_image_type; - } - - /** - * The desired image type for the node pool. - * NOTE: Set the "desired_node_pool" field as well. - * - * Generated from protobuf field string desired_image_type = 8; - * @param string $var - * @return $this - */ - public function setDesiredImageType($var) - { - GPBUtil::checkString($var, True); - $this->desired_image_type = $var; - - return $this; - } - - /** - * Configuration of etcd encryption. - * - * Generated from protobuf field .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - * @return \Google\Cloud\Container\V1\DatabaseEncryption|null - */ - public function getDesiredDatabaseEncryption() - { - return $this->desired_database_encryption; - } - - public function hasDesiredDatabaseEncryption() - { - return isset($this->desired_database_encryption); - } - - public function clearDesiredDatabaseEncryption() - { - unset($this->desired_database_encryption); - } - - /** - * Configuration of etcd encryption. - * - * Generated from protobuf field .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - * @param \Google\Cloud\Container\V1\DatabaseEncryption $var - * @return $this - */ - public function setDesiredDatabaseEncryption($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\DatabaseEncryption::class); - $this->desired_database_encryption = $var; - - return $this; - } - - /** - * Configuration for Workload Identity. - * - * Generated from protobuf field .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * @return \Google\Cloud\Container\V1\WorkloadIdentityConfig|null - */ - public function getDesiredWorkloadIdentityConfig() - { - return $this->desired_workload_identity_config; - } - - public function hasDesiredWorkloadIdentityConfig() - { - return isset($this->desired_workload_identity_config); - } - - public function clearDesiredWorkloadIdentityConfig() - { - unset($this->desired_workload_identity_config); - } - - /** - * Configuration for Workload Identity. - * - * Generated from protobuf field .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * @param \Google\Cloud\Container\V1\WorkloadIdentityConfig $var - * @return $this - */ - public function setDesiredWorkloadIdentityConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\WorkloadIdentityConfig::class); - $this->desired_workload_identity_config = $var; - - return $this; - } - - /** - * Configuration for issuance of mTLS keys and certificates to Kubernetes - * pods. - * - * Generated from protobuf field .google.container.v1.MeshCertificates desired_mesh_certificates = 67; - * @return \Google\Cloud\Container\V1\MeshCertificates|null - */ - public function getDesiredMeshCertificates() - { - return $this->desired_mesh_certificates; - } - - public function hasDesiredMeshCertificates() - { - return isset($this->desired_mesh_certificates); - } - - public function clearDesiredMeshCertificates() - { - unset($this->desired_mesh_certificates); - } - - /** - * Configuration for issuance of mTLS keys and certificates to Kubernetes - * pods. - * - * Generated from protobuf field .google.container.v1.MeshCertificates desired_mesh_certificates = 67; - * @param \Google\Cloud\Container\V1\MeshCertificates $var - * @return $this - */ - public function setDesiredMeshCertificates($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MeshCertificates::class); - $this->desired_mesh_certificates = $var; - - return $this; - } - - /** - * Configuration for Shielded Nodes. - * - * Generated from protobuf field .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - * @return \Google\Cloud\Container\V1\ShieldedNodes|null - */ - public function getDesiredShieldedNodes() - { - return $this->desired_shielded_nodes; - } - - public function hasDesiredShieldedNodes() - { - return isset($this->desired_shielded_nodes); - } - - public function clearDesiredShieldedNodes() - { - unset($this->desired_shielded_nodes); - } - - /** - * Configuration for Shielded Nodes. - * - * Generated from protobuf field .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - * @param \Google\Cloud\Container\V1\ShieldedNodes $var - * @return $this - */ - public function setDesiredShieldedNodes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ShieldedNodes::class); - $this->desired_shielded_nodes = $var; - - return $this; - } - - /** - * The desired configuration for the fine-grained cost management feature. - * - * Generated from protobuf field .google.container.v1.CostManagementConfig desired_cost_management_config = 49; - * @return \Google\Cloud\Container\V1\CostManagementConfig|null - */ - public function getDesiredCostManagementConfig() - { - return $this->desired_cost_management_config; - } - - public function hasDesiredCostManagementConfig() - { - return isset($this->desired_cost_management_config); - } - - public function clearDesiredCostManagementConfig() - { - unset($this->desired_cost_management_config); - } - - /** - * The desired configuration for the fine-grained cost management feature. - * - * Generated from protobuf field .google.container.v1.CostManagementConfig desired_cost_management_config = 49; - * @param \Google\Cloud\Container\V1\CostManagementConfig $var - * @return $this - */ - public function setDesiredCostManagementConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\CostManagementConfig::class); - $this->desired_cost_management_config = $var; - - return $this; - } - - /** - * DNSConfig contains clusterDNS config for this cluster. - * - * Generated from protobuf field .google.container.v1.DNSConfig desired_dns_config = 53; - * @return \Google\Cloud\Container\V1\DNSConfig|null - */ - public function getDesiredDnsConfig() - { - return $this->desired_dns_config; - } - - public function hasDesiredDnsConfig() - { - return isset($this->desired_dns_config); - } - - public function clearDesiredDnsConfig() - { - unset($this->desired_dns_config); - } - - /** - * DNSConfig contains clusterDNS config for this cluster. - * - * Generated from protobuf field .google.container.v1.DNSConfig desired_dns_config = 53; - * @param \Google\Cloud\Container\V1\DNSConfig $var - * @return $this - */ - public function setDesiredDnsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\DNSConfig::class); - $this->desired_dns_config = $var; - - return $this; - } - - /** - * Autoscaler configuration for the node pool specified in - * desired_node_pool_id. If there is only one pool in the - * cluster and desired_node_pool_id is not provided then - * the change applies to that single node pool. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - * @return \Google\Cloud\Container\V1\NodePoolAutoscaling|null - */ - public function getDesiredNodePoolAutoscaling() - { - return $this->desired_node_pool_autoscaling; - } - - public function hasDesiredNodePoolAutoscaling() - { - return isset($this->desired_node_pool_autoscaling); - } - - public function clearDesiredNodePoolAutoscaling() - { - unset($this->desired_node_pool_autoscaling); - } - - /** - * Autoscaler configuration for the node pool specified in - * desired_node_pool_id. If there is only one pool in the - * cluster and desired_node_pool_id is not provided then - * the change applies to that single node pool. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - * @param \Google\Cloud\Container\V1\NodePoolAutoscaling $var - * @return $this - */ - public function setDesiredNodePoolAutoscaling($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolAutoscaling::class); - $this->desired_node_pool_autoscaling = $var; - - return $this; - } - - /** - * The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. - * This list must always include the cluster's primary zone. - * Warning: changing cluster locations will update the locations of all node - * pools and will result in nodes being added and/or removed. - * - * Generated from protobuf field repeated string desired_locations = 10; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDesiredLocations() - { - return $this->desired_locations; - } - - /** - * The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. - * This list must always include the cluster's primary zone. - * Warning: changing cluster locations will update the locations of all node - * pools and will result in nodes being added and/or removed. - * - * Generated from protobuf field repeated string desired_locations = 10; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDesiredLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->desired_locations = $arr; - - return $this; - } - - /** - * The desired configuration options for master authorized networks feature. - * - * Generated from protobuf field .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * @return \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig|null - */ - public function getDesiredMasterAuthorizedNetworksConfig() - { - return $this->desired_master_authorized_networks_config; - } - - public function hasDesiredMasterAuthorizedNetworksConfig() - { - return isset($this->desired_master_authorized_networks_config); - } - - public function clearDesiredMasterAuthorizedNetworksConfig() - { - unset($this->desired_master_authorized_networks_config); - } - - /** - * The desired configuration options for master authorized networks feature. - * - * Generated from protobuf field .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * @param \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig $var - * @return $this - */ - public function setDesiredMasterAuthorizedNetworksConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig::class); - $this->desired_master_authorized_networks_config = $var; - - return $this; - } - - /** - * Cluster-level autoscaling configuration. - * - * Generated from protobuf field .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - * @return \Google\Cloud\Container\V1\ClusterAutoscaling|null - */ - public function getDesiredClusterAutoscaling() - { - return $this->desired_cluster_autoscaling; - } - - public function hasDesiredClusterAutoscaling() - { - return isset($this->desired_cluster_autoscaling); - } - - public function clearDesiredClusterAutoscaling() - { - unset($this->desired_cluster_autoscaling); - } - - /** - * Cluster-level autoscaling configuration. - * - * Generated from protobuf field .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - * @param \Google\Cloud\Container\V1\ClusterAutoscaling $var - * @return $this - */ - public function setDesiredClusterAutoscaling($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ClusterAutoscaling::class); - $this->desired_cluster_autoscaling = $var; - - return $this; - } - - /** - * The desired configuration options for the Binary Authorization feature. - * - * Generated from protobuf field .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; - * @return \Google\Cloud\Container\V1\BinaryAuthorization|null - */ - public function getDesiredBinaryAuthorization() - { - return $this->desired_binary_authorization; - } - - public function hasDesiredBinaryAuthorization() - { - return isset($this->desired_binary_authorization); - } - - public function clearDesiredBinaryAuthorization() - { - unset($this->desired_binary_authorization); - } - - /** - * The desired configuration options for the Binary Authorization feature. - * - * Generated from protobuf field .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; - * @param \Google\Cloud\Container\V1\BinaryAuthorization $var - * @return $this - */ - public function setDesiredBinaryAuthorization($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\BinaryAuthorization::class); - $this->desired_binary_authorization = $var; - - return $this; - } - - /** - * The logging service the cluster should use to write logs. - * Currently available options: - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * - * Generated from protobuf field string desired_logging_service = 19; - * @return string - */ - public function getDesiredLoggingService() - { - return $this->desired_logging_service; - } - - /** - * The logging service the cluster should use to write logs. - * Currently available options: - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * - * Generated from protobuf field string desired_logging_service = 19; - * @param string $var - * @return $this - */ - public function setDesiredLoggingService($var) - { - GPBUtil::checkString($var, True); - $this->desired_logging_service = $var; - - return $this; - } - - /** - * The desired configuration for exporting resource usage. - * - * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * @return \Google\Cloud\Container\V1\ResourceUsageExportConfig|null - */ - public function getDesiredResourceUsageExportConfig() - { - return $this->desired_resource_usage_export_config; - } - - public function hasDesiredResourceUsageExportConfig() - { - return isset($this->desired_resource_usage_export_config); - } - - public function clearDesiredResourceUsageExportConfig() - { - unset($this->desired_resource_usage_export_config); - } - - /** - * The desired configuration for exporting resource usage. - * - * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * @param \Google\Cloud\Container\V1\ResourceUsageExportConfig $var - * @return $this - */ - public function setDesiredResourceUsageExportConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ResourceUsageExportConfig::class); - $this->desired_resource_usage_export_config = $var; - - return $this; - } - - /** - * Cluster-level Vertical Pod Autoscaling configuration. - * - * Generated from protobuf field .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - * @return \Google\Cloud\Container\V1\VerticalPodAutoscaling|null - */ - public function getDesiredVerticalPodAutoscaling() - { - return $this->desired_vertical_pod_autoscaling; - } - - public function hasDesiredVerticalPodAutoscaling() - { - return isset($this->desired_vertical_pod_autoscaling); - } - - public function clearDesiredVerticalPodAutoscaling() - { - unset($this->desired_vertical_pod_autoscaling); - } - - /** - * Cluster-level Vertical Pod Autoscaling configuration. - * - * Generated from protobuf field .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - * @param \Google\Cloud\Container\V1\VerticalPodAutoscaling $var - * @return $this - */ - public function setDesiredVerticalPodAutoscaling($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\VerticalPodAutoscaling::class); - $this->desired_vertical_pod_autoscaling = $var; - - return $this; - } - - /** - * The desired private cluster configuration. - * - * Generated from protobuf field .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - * @return \Google\Cloud\Container\V1\PrivateClusterConfig|null - */ - public function getDesiredPrivateClusterConfig() - { - return $this->desired_private_cluster_config; - } - - public function hasDesiredPrivateClusterConfig() - { - return isset($this->desired_private_cluster_config); - } - - public function clearDesiredPrivateClusterConfig() - { - unset($this->desired_private_cluster_config); - } - - /** - * The desired private cluster configuration. - * - * Generated from protobuf field .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - * @param \Google\Cloud\Container\V1\PrivateClusterConfig $var - * @return $this - */ - public function setDesiredPrivateClusterConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\PrivateClusterConfig::class); - $this->desired_private_cluster_config = $var; - - return $this; - } - - /** - * The desired config of Intra-node visibility. - * - * Generated from protobuf field .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * @return \Google\Cloud\Container\V1\IntraNodeVisibilityConfig|null - */ - public function getDesiredIntraNodeVisibilityConfig() - { - return $this->desired_intra_node_visibility_config; - } - - public function hasDesiredIntraNodeVisibilityConfig() - { - return isset($this->desired_intra_node_visibility_config); - } - - public function clearDesiredIntraNodeVisibilityConfig() - { - unset($this->desired_intra_node_visibility_config); - } - - /** - * The desired config of Intra-node visibility. - * - * Generated from protobuf field .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * @param \Google\Cloud\Container\V1\IntraNodeVisibilityConfig $var - * @return $this - */ - public function setDesiredIntraNodeVisibilityConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\IntraNodeVisibilityConfig::class); - $this->desired_intra_node_visibility_config = $var; - - return $this; - } - - /** - * The desired status of whether to disable default sNAT for this cluster. - * - * Generated from protobuf field .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - * @return \Google\Cloud\Container\V1\DefaultSnatStatus|null - */ - public function getDesiredDefaultSnatStatus() - { - return $this->desired_default_snat_status; - } - - public function hasDesiredDefaultSnatStatus() - { - return isset($this->desired_default_snat_status); - } - - public function clearDesiredDefaultSnatStatus() - { - unset($this->desired_default_snat_status); - } - - /** - * The desired status of whether to disable default sNAT for this cluster. - * - * Generated from protobuf field .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - * @param \Google\Cloud\Container\V1\DefaultSnatStatus $var - * @return $this - */ - public function setDesiredDefaultSnatStatus($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\DefaultSnatStatus::class); - $this->desired_default_snat_status = $var; - - return $this; - } - - /** - * The desired release channel configuration. - * - * Generated from protobuf field .google.container.v1.ReleaseChannel desired_release_channel = 31; - * @return \Google\Cloud\Container\V1\ReleaseChannel|null - */ - public function getDesiredReleaseChannel() - { - return $this->desired_release_channel; - } - - public function hasDesiredReleaseChannel() - { - return isset($this->desired_release_channel); - } - - public function clearDesiredReleaseChannel() - { - unset($this->desired_release_channel); - } - - /** - * The desired release channel configuration. - * - * Generated from protobuf field .google.container.v1.ReleaseChannel desired_release_channel = 31; - * @param \Google\Cloud\Container\V1\ReleaseChannel $var - * @return $this - */ - public function setDesiredReleaseChannel($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ReleaseChannel::class); - $this->desired_release_channel = $var; - - return $this; - } - - /** - * The desired L4 Internal Load Balancer Subsetting configuration. - * - * Generated from protobuf field .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - * @return \Google\Cloud\Container\V1\ILBSubsettingConfig|null - */ - public function getDesiredL4IlbSubsettingConfig() - { - return $this->desired_l4ilb_subsetting_config; - } - - public function hasDesiredL4IlbSubsettingConfig() - { - return isset($this->desired_l4ilb_subsetting_config); - } - - public function clearDesiredL4IlbSubsettingConfig() - { - unset($this->desired_l4ilb_subsetting_config); - } - - /** - * The desired L4 Internal Load Balancer Subsetting configuration. - * - * Generated from protobuf field .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - * @param \Google\Cloud\Container\V1\ILBSubsettingConfig $var - * @return $this - */ - public function setDesiredL4IlbSubsettingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ILBSubsettingConfig::class); - $this->desired_l4ilb_subsetting_config = $var; - - return $this; - } - - /** - * The desired datapath provider for the cluster. - * - * Generated from protobuf field .google.container.v1.DatapathProvider desired_datapath_provider = 50; - * @return int - */ - public function getDesiredDatapathProvider() - { - return $this->desired_datapath_provider; - } - - /** - * The desired datapath provider for the cluster. - * - * Generated from protobuf field .google.container.v1.DatapathProvider desired_datapath_provider = 50; - * @param int $var - * @return $this - */ - public function setDesiredDatapathProvider($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\DatapathProvider::class); - $this->desired_datapath_provider = $var; - - return $this; - } - - /** - * The desired state of IPv6 connectivity to Google Services. - * - * Generated from protobuf field .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; - * @return int - */ - public function getDesiredPrivateIpv6GoogleAccess() - { - return $this->desired_private_ipv6_google_access; - } - - /** - * The desired state of IPv6 connectivity to Google Services. - * - * Generated from protobuf field .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; - * @param int $var - * @return $this - */ - public function setDesiredPrivateIpv6GoogleAccess($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\PrivateIPv6GoogleAccess::class); - $this->desired_private_ipv6_google_access = $var; - - return $this; - } - - /** - * The desired notification configuration. - * - * Generated from protobuf field .google.container.v1.NotificationConfig desired_notification_config = 55; - * @return \Google\Cloud\Container\V1\NotificationConfig|null - */ - public function getDesiredNotificationConfig() - { - return $this->desired_notification_config; - } - - public function hasDesiredNotificationConfig() - { - return isset($this->desired_notification_config); - } - - public function clearDesiredNotificationConfig() - { - unset($this->desired_notification_config); - } - - /** - * The desired notification configuration. - * - * Generated from protobuf field .google.container.v1.NotificationConfig desired_notification_config = 55; - * @param \Google\Cloud\Container\V1\NotificationConfig $var - * @return $this - */ - public function setDesiredNotificationConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NotificationConfig::class); - $this->desired_notification_config = $var; - - return $this; - } - - /** - * The desired authenticator groups config for the cluster. - * - * Generated from protobuf field .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * @return \Google\Cloud\Container\V1\AuthenticatorGroupsConfig|null - */ - public function getDesiredAuthenticatorGroupsConfig() - { - return $this->desired_authenticator_groups_config; - } - - public function hasDesiredAuthenticatorGroupsConfig() - { - return isset($this->desired_authenticator_groups_config); - } - - public function clearDesiredAuthenticatorGroupsConfig() - { - unset($this->desired_authenticator_groups_config); - } - - /** - * The desired authenticator groups config for the cluster. - * - * Generated from protobuf field .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * @param \Google\Cloud\Container\V1\AuthenticatorGroupsConfig $var - * @return $this - */ - public function setDesiredAuthenticatorGroupsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AuthenticatorGroupsConfig::class); - $this->desired_authenticator_groups_config = $var; - - return $this; - } - - /** - * The desired logging configuration. - * - * Generated from protobuf field .google.container.v1.LoggingConfig desired_logging_config = 64; - * @return \Google\Cloud\Container\V1\LoggingConfig|null - */ - public function getDesiredLoggingConfig() - { - return $this->desired_logging_config; - } - - public function hasDesiredLoggingConfig() - { - return isset($this->desired_logging_config); - } - - public function clearDesiredLoggingConfig() - { - unset($this->desired_logging_config); - } - - /** - * The desired logging configuration. - * - * Generated from protobuf field .google.container.v1.LoggingConfig desired_logging_config = 64; - * @param \Google\Cloud\Container\V1\LoggingConfig $var - * @return $this - */ - public function setDesiredLoggingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LoggingConfig::class); - $this->desired_logging_config = $var; - - return $this; - } - - /** - * The desired monitoring configuration. - * - * Generated from protobuf field .google.container.v1.MonitoringConfig desired_monitoring_config = 65; - * @return \Google\Cloud\Container\V1\MonitoringConfig|null - */ - public function getDesiredMonitoringConfig() - { - return $this->desired_monitoring_config; - } - - public function hasDesiredMonitoringConfig() - { - return isset($this->desired_monitoring_config); - } - - public function clearDesiredMonitoringConfig() - { - unset($this->desired_monitoring_config); - } - - /** - * The desired monitoring configuration. - * - * Generated from protobuf field .google.container.v1.MonitoringConfig desired_monitoring_config = 65; - * @param \Google\Cloud\Container\V1\MonitoringConfig $var - * @return $this - */ - public function setDesiredMonitoringConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MonitoringConfig::class); - $this->desired_monitoring_config = $var; - - return $this; - } - - /** - * The desired Identity Service component configuration. - * - * Generated from protobuf field .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; - * @return \Google\Cloud\Container\V1\IdentityServiceConfig|null - */ - public function getDesiredIdentityServiceConfig() - { - return $this->desired_identity_service_config; - } - - public function hasDesiredIdentityServiceConfig() - { - return isset($this->desired_identity_service_config); - } - - public function clearDesiredIdentityServiceConfig() - { - unset($this->desired_identity_service_config); - } - - /** - * The desired Identity Service component configuration. - * - * Generated from protobuf field .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; - * @param \Google\Cloud\Container\V1\IdentityServiceConfig $var - * @return $this - */ - public function setDesiredIdentityServiceConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\IdentityServiceConfig::class); - $this->desired_identity_service_config = $var; - - return $this; - } - - /** - * ServiceExternalIPsConfig specifies the config for the use of Services with - * ExternalIPs field. - * - * Generated from protobuf field .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - * @return \Google\Cloud\Container\V1\ServiceExternalIPsConfig|null - */ - public function getDesiredServiceExternalIpsConfig() - { - return $this->desired_service_external_ips_config; - } - - public function hasDesiredServiceExternalIpsConfig() - { - return isset($this->desired_service_external_ips_config); - } - - public function clearDesiredServiceExternalIpsConfig() - { - unset($this->desired_service_external_ips_config); - } - - /** - * ServiceExternalIPsConfig specifies the config for the use of Services with - * ExternalIPs field. - * - * Generated from protobuf field .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - * @param \Google\Cloud\Container\V1\ServiceExternalIPsConfig $var - * @return $this - */ - public function setDesiredServiceExternalIpsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ServiceExternalIPsConfig::class); - $this->desired_service_external_ips_config = $var; - - return $this; - } - - /** - * Enable/Disable private endpoint for the cluster's master. - * - * Generated from protobuf field optional bool desired_enable_private_endpoint = 71; - * @return bool - */ - public function getDesiredEnablePrivateEndpoint() - { - return isset($this->desired_enable_private_endpoint) ? $this->desired_enable_private_endpoint : false; - } - - public function hasDesiredEnablePrivateEndpoint() - { - return isset($this->desired_enable_private_endpoint); - } - - public function clearDesiredEnablePrivateEndpoint() - { - unset($this->desired_enable_private_endpoint); - } - - /** - * Enable/Disable private endpoint for the cluster's master. - * - * Generated from protobuf field optional bool desired_enable_private_endpoint = 71; - * @param bool $var - * @return $this - */ - public function setDesiredEnablePrivateEndpoint($var) - { - GPBUtil::checkBool($var); - $this->desired_enable_private_endpoint = $var; - - return $this; - } - - /** - * The Kubernetes version to change the master to. - * Users may specify either explicit versions offered by - * Kubernetes Engine or version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the default Kubernetes version - * - * Generated from protobuf field string desired_master_version = 100; - * @return string - */ - public function getDesiredMasterVersion() - { - return $this->desired_master_version; - } - - /** - * The Kubernetes version to change the master to. - * Users may specify either explicit versions offered by - * Kubernetes Engine or version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the default Kubernetes version - * - * Generated from protobuf field string desired_master_version = 100; - * @param string $var - * @return $this - */ - public function setDesiredMasterVersion($var) - { - GPBUtil::checkString($var, True); - $this->desired_master_version = $var; - - return $this; - } - - /** - * The desired GCFS config for the cluster - * - * Generated from protobuf field .google.container.v1.GcfsConfig desired_gcfs_config = 109; - * @return \Google\Cloud\Container\V1\GcfsConfig|null - */ - public function getDesiredGcfsConfig() - { - return $this->desired_gcfs_config; - } - - public function hasDesiredGcfsConfig() - { - return isset($this->desired_gcfs_config); - } - - public function clearDesiredGcfsConfig() - { - unset($this->desired_gcfs_config); - } - - /** - * The desired GCFS config for the cluster - * - * Generated from protobuf field .google.container.v1.GcfsConfig desired_gcfs_config = 109; - * @param \Google\Cloud\Container\V1\GcfsConfig $var - * @return $this - */ - public function setDesiredGcfsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GcfsConfig::class); - $this->desired_gcfs_config = $var; - - return $this; - } - - /** - * The desired network tags that apply to all auto-provisioned node pools - * in autopilot clusters and node auto-provisioning enabled clusters. - * - * Generated from protobuf field .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; - * @return \Google\Cloud\Container\V1\NetworkTags|null - */ - public function getDesiredNodePoolAutoConfigNetworkTags() - { - return $this->desired_node_pool_auto_config_network_tags; - } - - public function hasDesiredNodePoolAutoConfigNetworkTags() - { - return isset($this->desired_node_pool_auto_config_network_tags); - } - - public function clearDesiredNodePoolAutoConfigNetworkTags() - { - unset($this->desired_node_pool_auto_config_network_tags); - } - - /** - * The desired network tags that apply to all auto-provisioned node pools - * in autopilot clusters and node auto-provisioning enabled clusters. - * - * Generated from protobuf field .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; - * @param \Google\Cloud\Container\V1\NetworkTags $var - * @return $this - */ - public function setDesiredNodePoolAutoConfigNetworkTags($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkTags::class); - $this->desired_node_pool_auto_config_network_tags = $var; - - return $this; - } - - /** - * The desired config of Gateway API on this cluster. - * - * Generated from protobuf field .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; - * @return \Google\Cloud\Container\V1\GatewayAPIConfig|null - */ - public function getDesiredGatewayApiConfig() - { - return $this->desired_gateway_api_config; - } - - public function hasDesiredGatewayApiConfig() - { - return isset($this->desired_gateway_api_config); - } - - public function clearDesiredGatewayApiConfig() - { - unset($this->desired_gateway_api_config); - } - - /** - * The desired config of Gateway API on this cluster. - * - * Generated from protobuf field .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; - * @param \Google\Cloud\Container\V1\GatewayAPIConfig $var - * @return $this - */ - public function setDesiredGatewayApiConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GatewayAPIConfig::class); - $this->desired_gateway_api_config = $var; - - return $this; - } - - /** - * The current etag of the cluster. - * If an etag is provided and does not match the current etag of the cluster, - * update will be blocked and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 115; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * The current etag of the cluster. - * If an etag is provided and does not match the current etag of the cluster, - * update will be blocked and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 115; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * The desired node pool logging configuration defaults for the cluster. - * - * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; - * @return \Google\Cloud\Container\V1\NodePoolLoggingConfig|null - */ - public function getDesiredNodePoolLoggingConfig() - { - return $this->desired_node_pool_logging_config; - } - - public function hasDesiredNodePoolLoggingConfig() - { - return isset($this->desired_node_pool_logging_config); - } - - public function clearDesiredNodePoolLoggingConfig() - { - unset($this->desired_node_pool_logging_config); - } - - /** - * The desired node pool logging configuration defaults for the cluster. - * - * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; - * @param \Google\Cloud\Container\V1\NodePoolLoggingConfig $var - * @return $this - */ - public function setDesiredNodePoolLoggingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolLoggingConfig::class); - $this->desired_node_pool_logging_config = $var; - - return $this; - } - - /** - * The desired fleet configuration for the cluster. - * - * Generated from protobuf field .google.container.v1.Fleet desired_fleet = 117; - * @return \Google\Cloud\Container\V1\Fleet|null - */ - public function getDesiredFleet() - { - return $this->desired_fleet; - } - - public function hasDesiredFleet() - { - return isset($this->desired_fleet); - } - - public function clearDesiredFleet() - { - unset($this->desired_fleet); - } - - /** - * The desired fleet configuration for the cluster. - * - * Generated from protobuf field .google.container.v1.Fleet desired_fleet = 117; - * @param \Google\Cloud\Container\V1\Fleet $var - * @return $this - */ - public function setDesiredFleet($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\Fleet::class); - $this->desired_fleet = $var; - - return $this; - } - - /** - * The desired stack type of the cluster. - * If a stack type is provided and does not match the current stack type of - * the cluster, update will attempt to change the stack type to the new type. - * - * Generated from protobuf field .google.container.v1.StackType desired_stack_type = 119; - * @return int - */ - public function getDesiredStackType() - { - return $this->desired_stack_type; - } - - /** - * The desired stack type of the cluster. - * If a stack type is provided and does not match the current stack type of - * the cluster, update will attempt to change the stack type to the new type. - * - * Generated from protobuf field .google.container.v1.StackType desired_stack_type = 119; - * @param int $var - * @return $this - */ - public function setDesiredStackType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\StackType::class); - $this->desired_stack_type = $var; - - return $this; - } - - /** - * The additional pod ranges to be added to the cluster. These pod ranges - * can be used by node pools to allocate pod IPs. - * - * Generated from protobuf field .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; - * @return \Google\Cloud\Container\V1\AdditionalPodRangesConfig|null - */ - public function getAdditionalPodRangesConfig() - { - return $this->additional_pod_ranges_config; - } - - public function hasAdditionalPodRangesConfig() - { - return isset($this->additional_pod_ranges_config); - } - - public function clearAdditionalPodRangesConfig() - { - unset($this->additional_pod_ranges_config); - } - - /** - * The additional pod ranges to be added to the cluster. These pod ranges - * can be used by node pools to allocate pod IPs. - * - * Generated from protobuf field .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; - * @param \Google\Cloud\Container\V1\AdditionalPodRangesConfig $var - * @return $this - */ - public function setAdditionalPodRangesConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AdditionalPodRangesConfig::class); - $this->additional_pod_ranges_config = $var; - - return $this; - } - - /** - * The additional pod ranges that are to be removed from the cluster. - * The pod ranges specified here must have been specified earlier in the - * 'additional_pod_ranges_config' argument. - * - * Generated from protobuf field .google.container.v1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; - * @return \Google\Cloud\Container\V1\AdditionalPodRangesConfig|null - */ - public function getRemovedAdditionalPodRangesConfig() - { - return $this->removed_additional_pod_ranges_config; - } - - public function hasRemovedAdditionalPodRangesConfig() - { - return isset($this->removed_additional_pod_ranges_config); - } - - public function clearRemovedAdditionalPodRangesConfig() - { - unset($this->removed_additional_pod_ranges_config); - } - - /** - * The additional pod ranges that are to be removed from the cluster. - * The pod ranges specified here must have been specified earlier in the - * 'additional_pod_ranges_config' argument. - * - * Generated from protobuf field .google.container.v1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; - * @param \Google\Cloud\Container\V1\AdditionalPodRangesConfig $var - * @return $this - */ - public function setRemovedAdditionalPodRangesConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AdditionalPodRangesConfig::class); - $this->removed_additional_pod_ranges_config = $var; - - return $this; - } - - /** - * Kubernetes open source beta apis enabled on the cluster. Only beta apis - * - * Generated from protobuf field .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; - * @return \Google\Cloud\Container\V1\K8sBetaAPIConfig|null - */ - public function getEnableK8SBetaApis() - { - return $this->enable_k8s_beta_apis; - } - - public function hasEnableK8SBetaApis() - { - return isset($this->enable_k8s_beta_apis); - } - - public function clearEnableK8SBetaApis() - { - unset($this->enable_k8s_beta_apis); - } - - /** - * Kubernetes open source beta apis enabled on the cluster. Only beta apis - * - * Generated from protobuf field .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; - * @param \Google\Cloud\Container\V1\K8sBetaAPIConfig $var - * @return $this - */ - public function setEnableK8SBetaApis($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\K8sBetaAPIConfig::class); - $this->enable_k8s_beta_apis = $var; - - return $this; - } - - /** - * Enable/Disable Security Posture API features for the cluster. - * - * Generated from protobuf field .google.container.v1.SecurityPostureConfig desired_security_posture_config = 124; - * @return \Google\Cloud\Container\V1\SecurityPostureConfig|null - */ - public function getDesiredSecurityPostureConfig() - { - return $this->desired_security_posture_config; - } - - public function hasDesiredSecurityPostureConfig() - { - return isset($this->desired_security_posture_config); - } - - public function clearDesiredSecurityPostureConfig() - { - unset($this->desired_security_posture_config); - } - - /** - * Enable/Disable Security Posture API features for the cluster. - * - * Generated from protobuf field .google.container.v1.SecurityPostureConfig desired_security_posture_config = 124; - * @param \Google\Cloud\Container\V1\SecurityPostureConfig $var - * @return $this - */ - public function setDesiredSecurityPostureConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\SecurityPostureConfig::class); - $this->desired_security_posture_config = $var; - - return $this; - } - - /** - * The desired network performance config. - * - * Generated from protobuf field .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; - * @return \Google\Cloud\Container\V1\NetworkConfig\ClusterNetworkPerformanceConfig|null - */ - public function getDesiredNetworkPerformanceConfig() - { - return $this->desired_network_performance_config; - } - - public function hasDesiredNetworkPerformanceConfig() - { - return isset($this->desired_network_performance_config); - } - - public function clearDesiredNetworkPerformanceConfig() - { - unset($this->desired_network_performance_config); - } - - /** - * The desired network performance config. - * - * Generated from protobuf field .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; - * @param \Google\Cloud\Container\V1\NetworkConfig\ClusterNetworkPerformanceConfig $var - * @return $this - */ - public function setDesiredNetworkPerformanceConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkConfig\ClusterNetworkPerformanceConfig::class); - $this->desired_network_performance_config = $var; - - return $this; - } - - /** - * Enable/Disable FQDN Network Policy for the cluster. - * - * Generated from protobuf field optional bool desired_enable_fqdn_network_policy = 126; - * @return bool - */ - public function getDesiredEnableFqdnNetworkPolicy() - { - return isset($this->desired_enable_fqdn_network_policy) ? $this->desired_enable_fqdn_network_policy : false; - } - - public function hasDesiredEnableFqdnNetworkPolicy() - { - return isset($this->desired_enable_fqdn_network_policy); - } - - public function clearDesiredEnableFqdnNetworkPolicy() - { - unset($this->desired_enable_fqdn_network_policy); - } - - /** - * Enable/Disable FQDN Network Policy for the cluster. - * - * Generated from protobuf field optional bool desired_enable_fqdn_network_policy = 126; - * @param bool $var - * @return $this - */ - public function setDesiredEnableFqdnNetworkPolicy($var) - { - GPBUtil::checkBool($var); - $this->desired_enable_fqdn_network_policy = $var; - - return $this; - } - - /** - * The desired workload policy configuration for the autopilot cluster. - * - * Generated from protobuf field .google.container.v1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; - * @return \Google\Cloud\Container\V1\WorkloadPolicyConfig|null - */ - public function getDesiredAutopilotWorkloadPolicyConfig() - { - return $this->desired_autopilot_workload_policy_config; - } - - public function hasDesiredAutopilotWorkloadPolicyConfig() - { - return isset($this->desired_autopilot_workload_policy_config); - } - - public function clearDesiredAutopilotWorkloadPolicyConfig() - { - unset($this->desired_autopilot_workload_policy_config); - } - - /** - * The desired workload policy configuration for the autopilot cluster. - * - * Generated from protobuf field .google.container.v1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; - * @param \Google\Cloud\Container\V1\WorkloadPolicyConfig $var - * @return $this - */ - public function setDesiredAutopilotWorkloadPolicyConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\WorkloadPolicyConfig::class); - $this->desired_autopilot_workload_policy_config = $var; - - return $this; - } - - /** - * Desired Beta APIs to be enabled for cluster. - * - * Generated from protobuf field .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; - * @return \Google\Cloud\Container\V1\K8sBetaAPIConfig|null - */ - public function getDesiredK8SBetaApis() - { - return $this->desired_k8s_beta_apis; - } - - public function hasDesiredK8SBetaApis() - { - return isset($this->desired_k8s_beta_apis); - } - - public function clearDesiredK8SBetaApis() - { - unset($this->desired_k8s_beta_apis); - } - - /** - * Desired Beta APIs to be enabled for cluster. - * - * Generated from protobuf field .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; - * @param \Google\Cloud\Container\V1\K8sBetaAPIConfig $var - * @return $this - */ - public function setDesiredK8SBetaApis($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\K8sBetaAPIConfig::class); - $this->desired_k8s_beta_apis = $var; - - return $this; - } - - /** - * Enable/Disable Multi-Networking for the cluster - * - * Generated from protobuf field optional bool desired_enable_multi_networking = 135; - * @return bool - */ - public function getDesiredEnableMultiNetworking() - { - return isset($this->desired_enable_multi_networking) ? $this->desired_enable_multi_networking : false; - } - - public function hasDesiredEnableMultiNetworking() - { - return isset($this->desired_enable_multi_networking); - } - - public function clearDesiredEnableMultiNetworking() - { - unset($this->desired_enable_multi_networking); - } - - /** - * Enable/Disable Multi-Networking for the cluster - * - * Generated from protobuf field optional bool desired_enable_multi_networking = 135; - * @param bool $var - * @return $this - */ - public function setDesiredEnableMultiNetworking($var) - { - GPBUtil::checkBool($var); - $this->desired_enable_multi_networking = $var; - - return $this; - } - - /** - * The desired resource manager tags that apply to all auto-provisioned node - * pools in autopilot clusters and node auto-provisioning enabled clusters. - * - * Generated from protobuf field .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; - * @return \Google\Cloud\Container\V1\ResourceManagerTags|null - */ - public function getDesiredNodePoolAutoConfigResourceManagerTags() - { - return $this->desired_node_pool_auto_config_resource_manager_tags; - } - - public function hasDesiredNodePoolAutoConfigResourceManagerTags() - { - return isset($this->desired_node_pool_auto_config_resource_manager_tags); - } - - public function clearDesiredNodePoolAutoConfigResourceManagerTags() - { - unset($this->desired_node_pool_auto_config_resource_manager_tags); - } - - /** - * The desired resource manager tags that apply to all auto-provisioned node - * pools in autopilot clusters and node auto-provisioning enabled clusters. - * - * Generated from protobuf field .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; - * @param \Google\Cloud\Container\V1\ResourceManagerTags $var - * @return $this - */ - public function setDesiredNodePoolAutoConfigResourceManagerTags($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ResourceManagerTags::class); - $this->desired_node_pool_auto_config_resource_manager_tags = $var; - - return $this; - } - - /** - * Specify the details of in-transit encryption. - * - * Generated from protobuf field optional .google.container.v1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; - * @return int - */ - public function getDesiredInTransitEncryptionConfig() - { - return isset($this->desired_in_transit_encryption_config) ? $this->desired_in_transit_encryption_config : 0; - } - - public function hasDesiredInTransitEncryptionConfig() - { - return isset($this->desired_in_transit_encryption_config); - } - - public function clearDesiredInTransitEncryptionConfig() - { - unset($this->desired_in_transit_encryption_config); - } - - /** - * Specify the details of in-transit encryption. - * - * Generated from protobuf field optional .google.container.v1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; - * @param int $var - * @return $this - */ - public function setDesiredInTransitEncryptionConfig($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\InTransitEncryptionConfig::class); - $this->desired_in_transit_encryption_config = $var; - - return $this; - } - - /** - * Enable/Disable Cilium Clusterwide Network Policy for the cluster. - * - * Generated from protobuf field optional bool desired_enable_cilium_clusterwide_network_policy = 138; - * @return bool - */ - public function getDesiredEnableCiliumClusterwideNetworkPolicy() - { - return isset($this->desired_enable_cilium_clusterwide_network_policy) ? $this->desired_enable_cilium_clusterwide_network_policy : false; - } - - public function hasDesiredEnableCiliumClusterwideNetworkPolicy() - { - return isset($this->desired_enable_cilium_clusterwide_network_policy); - } - - public function clearDesiredEnableCiliumClusterwideNetworkPolicy() - { - unset($this->desired_enable_cilium_clusterwide_network_policy); - } - - /** - * Enable/Disable Cilium Clusterwide Network Policy for the cluster. - * - * Generated from protobuf field optional bool desired_enable_cilium_clusterwide_network_policy = 138; - * @param bool $var - * @return $this - */ - public function setDesiredEnableCiliumClusterwideNetworkPolicy($var) - { - GPBUtil::checkBool($var); - $this->desired_enable_cilium_clusterwide_network_policy = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompleteIPRotationRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompleteIPRotationRequest.php deleted file mode 100644 index 92481f5c6a36..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompleteIPRotationRequest.php +++ /dev/null @@ -1,249 +0,0 @@ -google.container.v1.CompleteIPRotationRequest - */ -class CompleteIPRotationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * The name (project, location, cluster name) of the cluster to complete IP - * rotation. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 7; - */ - protected $name = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @param string $clusterId Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * @return \Google\Cloud\Container\V1\CompleteIPRotationRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $clusterId): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId); - } - - /** - * @param string $name The name (project, location, cluster name) of the cluster to complete IP - * rotation. Specified in the format `projects/*/locations/*/clusters/*`. - * - * @return \Google\Cloud\Container\V1\CompleteIPRotationRequest - * - * @experimental - */ - public static function buildFromName(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster name) of the cluster to complete IP - * rotation. Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * The name (project, location, cluster name) of the cluster to complete IP - * rotation. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 7; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster name) of the cluster to complete IP - * rotation. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 7; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompleteNodePoolUpgradeRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompleteNodePoolUpgradeRequest.php deleted file mode 100644 index b14c8d08063e..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompleteNodePoolUpgradeRequest.php +++ /dev/null @@ -1,76 +0,0 @@ -google.container.v1.CompleteNodePoolUpgradeRequest - */ -class CompleteNodePoolUpgradeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The name (project, location, cluster, node pool id) of the node pool to - * complete upgrade. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name (project, location, cluster, node pool id) of the node pool to - * complete upgrade. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The name (project, location, cluster, node pool id) of the node pool to - * complete upgrade. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster, node pool id) of the node pool to - * complete upgrade. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfidentialNodes.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfidentialNodes.php deleted file mode 100644 index a7d3cd2c9116..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfidentialNodes.php +++ /dev/null @@ -1,68 +0,0 @@ -google.container.v1.ConfidentialNodes - */ -class ConfidentialNodes extends \Google\Protobuf\Internal\Message -{ - /** - * Whether Confidential Nodes feature is enabled. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether Confidential Nodes feature is enabled. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether Confidential Nodes feature is enabled. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether Confidential Nodes feature is enabled. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfigConnectorConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfigConnectorConfig.php deleted file mode 100644 index 936f2cdd1d89..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfigConnectorConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.ConfigConnectorConfig - */ -class ConfigConnectorConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether Cloud Connector is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether Cloud Connector is enabled for this cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether Cloud Connector is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether Cloud Connector is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CostManagementConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CostManagementConfig.php deleted file mode 100644 index 5b896434bf8e..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CostManagementConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.CostManagementConfig - */ -class CostManagementConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether the feature is enabled or not. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether the feature is enabled or not. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether the feature is enabled or not. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether the feature is enabled or not. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateClusterRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateClusterRequest.php deleted file mode 100644 index 727d5bd02ea5..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateClusterRequest.php +++ /dev/null @@ -1,257 +0,0 @@ -google.container.v1.CreateClusterRequest - */ -class CreateClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Required. A [cluster - * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) - * - * Generated from protobuf field .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $cluster = null; - /** - * The parent (project and location) where the cluster will be created. - * Specified in the format `projects/*/locations/*`. - * - * Generated from protobuf field string parent = 5; - */ - protected $parent = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * @param \Google\Cloud\Container\V1\Cluster $cluster Required. A [cluster - * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) - * - * @return \Google\Cloud\Container\V1\CreateClusterRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, \Google\Cloud\Container\V1\Cluster $cluster): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setCluster($cluster); - } - - /** - * @param string $parent The parent (project and location) where the cluster will be created. - * Specified in the format `projects/*/locations/*`. - * @param \Google\Cloud\Container\V1\Cluster $cluster Required. A [cluster - * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) - * - * @return \Google\Cloud\Container\V1\CreateClusterRequest - * - * @experimental - */ - public static function buildFromParentCluster(string $parent, \Google\Cloud\Container\V1\Cluster $cluster): self - { - return (new self()) - ->setParent($parent) - ->setCluster($cluster); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * @type \Google\Cloud\Container\V1\Cluster $cluster - * Required. A [cluster - * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) - * @type string $parent - * The parent (project and location) where the cluster will be created. - * Specified in the format `projects/*/locations/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Required. A [cluster - * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) - * - * Generated from protobuf field .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Container\V1\Cluster|null - */ - public function getCluster() - { - return $this->cluster; - } - - public function hasCluster() - { - return isset($this->cluster); - } - - public function clearCluster() - { - unset($this->cluster); - } - - /** - * Required. A [cluster - * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) - * - * Generated from protobuf field .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Container\V1\Cluster $var - * @return $this - */ - public function setCluster($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\Cluster::class); - $this->cluster = $var; - - return $this; - } - - /** - * The parent (project and location) where the cluster will be created. - * Specified in the format `projects/*/locations/*`. - * - * Generated from protobuf field string parent = 5; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The parent (project and location) where the cluster will be created. - * Specified in the format `projects/*/locations/*`. - * - * Generated from protobuf field string parent = 5; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateNodePoolRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateNodePoolRequest.php deleted file mode 100644 index 2c4595bd0f7b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateNodePoolRequest.php +++ /dev/null @@ -1,302 +0,0 @@ -google.container.v1.CreateNodePoolRequest - */ -class CreateNodePoolRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Required. The node pool to create. - * - * Generated from protobuf field .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $node_pool = null; - /** - * The parent (project, location, cluster name) where the node pool will be - * created. Specified in the format - * `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string parent = 6; - */ - protected $parent = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * @param string $clusterId Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the parent field. - * @param \Google\Cloud\Container\V1\NodePool $nodePool Required. The node pool to create. - * - * @return \Google\Cloud\Container\V1\CreateNodePoolRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $clusterId, \Google\Cloud\Container\V1\NodePool $nodePool): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId) - ->setNodePool($nodePool); - } - - /** - * @param string $parent The parent (project, location, cluster name) where the node pool will be - * created. Specified in the format - * `projects/*/locations/*/clusters/*`. - * @param \Google\Cloud\Container\V1\NodePool $nodePool Required. The node pool to create. - * - * @return \Google\Cloud\Container\V1\CreateNodePoolRequest - * - * @experimental - */ - public static function buildFromParentNodePool(string $parent, \Google\Cloud\Container\V1\NodePool $nodePool): self - { - return (new self()) - ->setParent($parent) - ->setNodePool($nodePool); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the parent field. - * @type \Google\Cloud\Container\V1\NodePool $node_pool - * Required. The node pool to create. - * @type string $parent - * The parent (project, location, cluster name) where the node pool will be - * created. Specified in the format - * `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. The node pool to create. - * - * Generated from protobuf field .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Container\V1\NodePool|null - */ - public function getNodePool() - { - return $this->node_pool; - } - - public function hasNodePool() - { - return isset($this->node_pool); - } - - public function clearNodePool() - { - unset($this->node_pool); - } - - /** - * Required. The node pool to create. - * - * Generated from protobuf field .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Container\V1\NodePool $var - * @return $this - */ - public function setNodePool($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool::class); - $this->node_pool = $var; - - return $this; - } - - /** - * The parent (project, location, cluster name) where the node pool will be - * created. Specified in the format - * `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string parent = 6; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The parent (project, location, cluster name) where the node pool will be - * created. Specified in the format - * `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string parent = 6; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig.php deleted file mode 100644 index a1c6338f5310..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig.php +++ /dev/null @@ -1,135 +0,0 @@ -google.container.v1.DNSConfig - */ -class DNSConfig extends \Google\Protobuf\Internal\Message -{ - /** - * cluster_dns indicates which in-cluster DNS provider should be used. - * - * Generated from protobuf field .google.container.v1.DNSConfig.Provider cluster_dns = 1; - */ - protected $cluster_dns = 0; - /** - * cluster_dns_scope indicates the scope of access to cluster DNS records. - * - * Generated from protobuf field .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; - */ - protected $cluster_dns_scope = 0; - /** - * cluster_dns_domain is the suffix used for all cluster service records. - * - * Generated from protobuf field string cluster_dns_domain = 3; - */ - protected $cluster_dns_domain = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $cluster_dns - * cluster_dns indicates which in-cluster DNS provider should be used. - * @type int $cluster_dns_scope - * cluster_dns_scope indicates the scope of access to cluster DNS records. - * @type string $cluster_dns_domain - * cluster_dns_domain is the suffix used for all cluster service records. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * cluster_dns indicates which in-cluster DNS provider should be used. - * - * Generated from protobuf field .google.container.v1.DNSConfig.Provider cluster_dns = 1; - * @return int - */ - public function getClusterDns() - { - return $this->cluster_dns; - } - - /** - * cluster_dns indicates which in-cluster DNS provider should be used. - * - * Generated from protobuf field .google.container.v1.DNSConfig.Provider cluster_dns = 1; - * @param int $var - * @return $this - */ - public function setClusterDns($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\DNSConfig\Provider::class); - $this->cluster_dns = $var; - - return $this; - } - - /** - * cluster_dns_scope indicates the scope of access to cluster DNS records. - * - * Generated from protobuf field .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; - * @return int - */ - public function getClusterDnsScope() - { - return $this->cluster_dns_scope; - } - - /** - * cluster_dns_scope indicates the scope of access to cluster DNS records. - * - * Generated from protobuf field .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; - * @param int $var - * @return $this - */ - public function setClusterDnsScope($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\DNSConfig\DNSScope::class); - $this->cluster_dns_scope = $var; - - return $this; - } - - /** - * cluster_dns_domain is the suffix used for all cluster service records. - * - * Generated from protobuf field string cluster_dns_domain = 3; - * @return string - */ - public function getClusterDnsDomain() - { - return $this->cluster_dns_domain; - } - - /** - * cluster_dns_domain is the suffix used for all cluster service records. - * - * Generated from protobuf field string cluster_dns_domain = 3; - * @param string $var - * @return $this - */ - public function setClusterDnsDomain($var) - { - GPBUtil::checkString($var, True); - $this->cluster_dns_domain = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/DNSScope.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/DNSScope.php deleted file mode 100644 index deaedc169384..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/DNSScope.php +++ /dev/null @@ -1,64 +0,0 @@ -google.container.v1.DNSConfig.DNSScope - */ -class DNSScope -{ - /** - * Default value, will be inferred as cluster scope. - * - * Generated from protobuf enum DNS_SCOPE_UNSPECIFIED = 0; - */ - const DNS_SCOPE_UNSPECIFIED = 0; - /** - * DNS records are accessible from within the cluster. - * - * Generated from protobuf enum CLUSTER_SCOPE = 1; - */ - const CLUSTER_SCOPE = 1; - /** - * DNS records are accessible from within the VPC. - * - * Generated from protobuf enum VPC_SCOPE = 2; - */ - const VPC_SCOPE = 2; - - private static $valueToName = [ - self::DNS_SCOPE_UNSPECIFIED => 'DNS_SCOPE_UNSPECIFIED', - self::CLUSTER_SCOPE => 'CLUSTER_SCOPE', - self::VPC_SCOPE => 'VPC_SCOPE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DNSScope::class, \Google\Cloud\Container\V1\DNSConfig_DNSScope::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/Provider.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/Provider.php deleted file mode 100644 index b6da4189a40e..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/Provider.php +++ /dev/null @@ -1,71 +0,0 @@ -google.container.v1.DNSConfig.Provider - */ -class Provider -{ - /** - * Default value - * - * Generated from protobuf enum PROVIDER_UNSPECIFIED = 0; - */ - const PROVIDER_UNSPECIFIED = 0; - /** - * Use GKE default DNS provider(kube-dns) for DNS resolution. - * - * Generated from protobuf enum PLATFORM_DEFAULT = 1; - */ - const PLATFORM_DEFAULT = 1; - /** - * Use CloudDNS for DNS resolution. - * - * Generated from protobuf enum CLOUD_DNS = 2; - */ - const CLOUD_DNS = 2; - /** - * Use KubeDNS for DNS resolution. - * - * Generated from protobuf enum KUBE_DNS = 3; - */ - const KUBE_DNS = 3; - - private static $valueToName = [ - self::PROVIDER_UNSPECIFIED => 'PROVIDER_UNSPECIFIED', - self::PLATFORM_DEFAULT => 'PLATFORM_DEFAULT', - self::CLOUD_DNS => 'CLOUD_DNS', - self::KUBE_DNS => 'KUBE_DNS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Provider::class, \Google\Cloud\Container\V1\DNSConfig_Provider::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DailyMaintenanceWindow.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DailyMaintenanceWindow.php deleted file mode 100644 index 06b1941635a3..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DailyMaintenanceWindow.php +++ /dev/null @@ -1,121 +0,0 @@ -google.container.v1.DailyMaintenanceWindow - */ -class DailyMaintenanceWindow extends \Google\Protobuf\Internal\Message -{ - /** - * Time within the maintenance window to start the maintenance operations. - * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) - * format "HH:MM", where HH : [00-23] and MM : [00-59] GMT. - * - * Generated from protobuf field string start_time = 2; - */ - protected $start_time = ''; - /** - * [Output only] Duration of the time window, automatically chosen to be - * smallest possible in the given scenario. - * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) - * format "PTnHnMnS". - * - * Generated from protobuf field string duration = 3; - */ - protected $duration = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $start_time - * Time within the maintenance window to start the maintenance operations. - * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) - * format "HH:MM", where HH : [00-23] and MM : [00-59] GMT. - * @type string $duration - * [Output only] Duration of the time window, automatically chosen to be - * smallest possible in the given scenario. - * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) - * format "PTnHnMnS". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Time within the maintenance window to start the maintenance operations. - * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) - * format "HH:MM", where HH : [00-23] and MM : [00-59] GMT. - * - * Generated from protobuf field string start_time = 2; - * @return string - */ - public function getStartTime() - { - return $this->start_time; - } - - /** - * Time within the maintenance window to start the maintenance operations. - * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) - * format "HH:MM", where HH : [00-23] and MM : [00-59] GMT. - * - * Generated from protobuf field string start_time = 2; - * @param string $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkString($var, True); - $this->start_time = $var; - - return $this; - } - - /** - * [Output only] Duration of the time window, automatically chosen to be - * smallest possible in the given scenario. - * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) - * format "PTnHnMnS". - * - * Generated from protobuf field string duration = 3; - * @return string - */ - public function getDuration() - { - return $this->duration; - } - - /** - * [Output only] Duration of the time window, automatically chosen to be - * smallest possible in the given scenario. - * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) - * format "PTnHnMnS". - * - * Generated from protobuf field string duration = 3; - * @param string $var - * @return $this - */ - public function setDuration($var) - { - GPBUtil::checkString($var, True); - $this->duration = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption.php deleted file mode 100644 index 28de62926feb..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption.php +++ /dev/null @@ -1,229 +0,0 @@ -google.container.v1.DatabaseEncryption - */ -class DatabaseEncryption extends \Google\Protobuf\Internal\Message -{ - /** - * Name of CloudKMS key to use for the encryption of secrets in etcd. - * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key - * - * Generated from protobuf field string key_name = 1; - */ - protected $key_name = ''; - /** - * The desired state of etcd encryption. - * - * Generated from protobuf field .google.container.v1.DatabaseEncryption.State state = 2; - */ - protected $state = 0; - /** - * Output only. The current state of etcd encryption. - * - * Generated from protobuf field optional .google.container.v1.DatabaseEncryption.CurrentState current_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $current_state = null; - /** - * Output only. Keys in use by the cluster for decrypting - * existing objects, in addition to the key in `key_name`. - * Each item is a CloudKMS key resource. - * - * Generated from protobuf field repeated string decryption_keys = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $decryption_keys; - /** - * Output only. Records errors seen during DatabaseEncryption update - * operations. - * - * Generated from protobuf field repeated .google.container.v1.DatabaseEncryption.OperationError last_operation_errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $last_operation_errors; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key_name - * Name of CloudKMS key to use for the encryption of secrets in etcd. - * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key - * @type int $state - * The desired state of etcd encryption. - * @type int $current_state - * Output only. The current state of etcd encryption. - * @type array|\Google\Protobuf\Internal\RepeatedField $decryption_keys - * Output only. Keys in use by the cluster for decrypting - * existing objects, in addition to the key in `key_name`. - * Each item is a CloudKMS key resource. - * @type array<\Google\Cloud\Container\V1\DatabaseEncryption\OperationError>|\Google\Protobuf\Internal\RepeatedField $last_operation_errors - * Output only. Records errors seen during DatabaseEncryption update - * operations. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Name of CloudKMS key to use for the encryption of secrets in etcd. - * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key - * - * Generated from protobuf field string key_name = 1; - * @return string - */ - public function getKeyName() - { - return $this->key_name; - } - - /** - * Name of CloudKMS key to use for the encryption of secrets in etcd. - * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key - * - * Generated from protobuf field string key_name = 1; - * @param string $var - * @return $this - */ - public function setKeyName($var) - { - GPBUtil::checkString($var, True); - $this->key_name = $var; - - return $this; - } - - /** - * The desired state of etcd encryption. - * - * Generated from protobuf field .google.container.v1.DatabaseEncryption.State state = 2; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * The desired state of etcd encryption. - * - * Generated from protobuf field .google.container.v1.DatabaseEncryption.State state = 2; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\DatabaseEncryption\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. The current state of etcd encryption. - * - * Generated from protobuf field optional .google.container.v1.DatabaseEncryption.CurrentState current_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getCurrentState() - { - return isset($this->current_state) ? $this->current_state : 0; - } - - public function hasCurrentState() - { - return isset($this->current_state); - } - - public function clearCurrentState() - { - unset($this->current_state); - } - - /** - * Output only. The current state of etcd encryption. - * - * Generated from protobuf field optional .google.container.v1.DatabaseEncryption.CurrentState current_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setCurrentState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\DatabaseEncryption\CurrentState::class); - $this->current_state = $var; - - return $this; - } - - /** - * Output only. Keys in use by the cluster for decrypting - * existing objects, in addition to the key in `key_name`. - * Each item is a CloudKMS key resource. - * - * Generated from protobuf field repeated string decryption_keys = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDecryptionKeys() - { - return $this->decryption_keys; - } - - /** - * Output only. Keys in use by the cluster for decrypting - * existing objects, in addition to the key in `key_name`. - * Each item is a CloudKMS key resource. - * - * Generated from protobuf field repeated string decryption_keys = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDecryptionKeys($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->decryption_keys = $arr; - - return $this; - } - - /** - * Output only. Records errors seen during DatabaseEncryption update - * operations. - * - * Generated from protobuf field repeated .google.container.v1.DatabaseEncryption.OperationError last_operation_errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getLastOperationErrors() - { - return $this->last_operation_errors; - } - - /** - * Output only. Records errors seen during DatabaseEncryption update - * operations. - * - * Generated from protobuf field repeated .google.container.v1.DatabaseEncryption.OperationError last_operation_errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\Container\V1\DatabaseEncryption\OperationError>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setLastOperationErrors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\DatabaseEncryption\OperationError::class); - $this->last_operation_errors = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption/CurrentState.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption/CurrentState.php deleted file mode 100644 index 56936b10a1c3..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption/CurrentState.php +++ /dev/null @@ -1,95 +0,0 @@ -google.container.v1.DatabaseEncryption.CurrentState - */ -class CurrentState -{ - /** - * Should never be set - * - * Generated from protobuf enum CURRENT_STATE_UNSPECIFIED = 0; - */ - const CURRENT_STATE_UNSPECIFIED = 0; - /** - * Secrets in etcd are encrypted. - * - * Generated from protobuf enum CURRENT_STATE_ENCRYPTED = 7; - */ - const CURRENT_STATE_ENCRYPTED = 7; - /** - * Secrets in etcd are stored in plain text (at etcd level) - this is - * unrelated to Compute Engine level full disk encryption. - * - * Generated from protobuf enum CURRENT_STATE_DECRYPTED = 2; - */ - const CURRENT_STATE_DECRYPTED = 2; - /** - * Encryption (or re-encryption with a different CloudKMS key) - * of Secrets is in progress. - * - * Generated from protobuf enum CURRENT_STATE_ENCRYPTION_PENDING = 3; - */ - const CURRENT_STATE_ENCRYPTION_PENDING = 3; - /** - * Encryption (or re-encryption with a different CloudKMS key) of Secrets in - * etcd encountered an error. - * - * Generated from protobuf enum CURRENT_STATE_ENCRYPTION_ERROR = 4; - */ - const CURRENT_STATE_ENCRYPTION_ERROR = 4; - /** - * De-crypting Secrets to plain text in etcd is in progress. - * - * Generated from protobuf enum CURRENT_STATE_DECRYPTION_PENDING = 5; - */ - const CURRENT_STATE_DECRYPTION_PENDING = 5; - /** - * De-crypting Secrets to plain text in etcd encountered an error. - * - * Generated from protobuf enum CURRENT_STATE_DECRYPTION_ERROR = 6; - */ - const CURRENT_STATE_DECRYPTION_ERROR = 6; - - private static $valueToName = [ - self::CURRENT_STATE_UNSPECIFIED => 'CURRENT_STATE_UNSPECIFIED', - self::CURRENT_STATE_ENCRYPTED => 'CURRENT_STATE_ENCRYPTED', - self::CURRENT_STATE_DECRYPTED => 'CURRENT_STATE_DECRYPTED', - self::CURRENT_STATE_ENCRYPTION_PENDING => 'CURRENT_STATE_ENCRYPTION_PENDING', - self::CURRENT_STATE_ENCRYPTION_ERROR => 'CURRENT_STATE_ENCRYPTION_ERROR', - self::CURRENT_STATE_DECRYPTION_PENDING => 'CURRENT_STATE_DECRYPTION_PENDING', - self::CURRENT_STATE_DECRYPTION_ERROR => 'CURRENT_STATE_DECRYPTION_ERROR', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CurrentState::class, \Google\Cloud\Container\V1\DatabaseEncryption_CurrentState::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption/OperationError.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption/OperationError.php deleted file mode 100644 index 1b513765d51b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption/OperationError.php +++ /dev/null @@ -1,149 +0,0 @@ -google.container.v1.DatabaseEncryption.OperationError - */ -class OperationError extends \Google\Protobuf\Internal\Message -{ - /** - * CloudKMS key resource that had the error. - * - * Generated from protobuf field string key_name = 1; - */ - protected $key_name = ''; - /** - * Description of the error seen during the operation. - * - * Generated from protobuf field string error_message = 2; - */ - protected $error_message = ''; - /** - * Time when the CloudKMS error was seen. - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp = 3; - */ - protected $timestamp = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key_name - * CloudKMS key resource that had the error. - * @type string $error_message - * Description of the error seen during the operation. - * @type \Google\Protobuf\Timestamp $timestamp - * Time when the CloudKMS error was seen. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * CloudKMS key resource that had the error. - * - * Generated from protobuf field string key_name = 1; - * @return string - */ - public function getKeyName() - { - return $this->key_name; - } - - /** - * CloudKMS key resource that had the error. - * - * Generated from protobuf field string key_name = 1; - * @param string $var - * @return $this - */ - public function setKeyName($var) - { - GPBUtil::checkString($var, True); - $this->key_name = $var; - - return $this; - } - - /** - * Description of the error seen during the operation. - * - * Generated from protobuf field string error_message = 2; - * @return string - */ - public function getErrorMessage() - { - return $this->error_message; - } - - /** - * Description of the error seen during the operation. - * - * Generated from protobuf field string error_message = 2; - * @param string $var - * @return $this - */ - public function setErrorMessage($var) - { - GPBUtil::checkString($var, True); - $this->error_message = $var; - - return $this; - } - - /** - * Time when the CloudKMS error was seen. - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTimestamp() - { - return $this->timestamp; - } - - public function hasTimestamp() - { - return isset($this->timestamp); - } - - public function clearTimestamp() - { - unset($this->timestamp); - } - - /** - * Time when the CloudKMS error was seen. - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTimestamp($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->timestamp = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(OperationError::class, \Google\Cloud\Container\V1\DatabaseEncryption_OperationError::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption/State.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption/State.php deleted file mode 100644 index 98e8b9929762..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption/State.php +++ /dev/null @@ -1,65 +0,0 @@ -google.container.v1.DatabaseEncryption.State - */ -class State -{ - /** - * Should never be set - * - * Generated from protobuf enum UNKNOWN = 0; - */ - const UNKNOWN = 0; - /** - * Secrets in etcd are encrypted. - * - * Generated from protobuf enum ENCRYPTED = 1; - */ - const ENCRYPTED = 1; - /** - * Secrets in etcd are stored in plain text (at etcd level) - this is - * unrelated to Compute Engine level full disk encryption. - * - * Generated from protobuf enum DECRYPTED = 2; - */ - const DECRYPTED = 2; - - private static $valueToName = [ - self::UNKNOWN => 'UNKNOWN', - self::ENCRYPTED => 'ENCRYPTED', - self::DECRYPTED => 'DECRYPTED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Google\Cloud\Container\V1\DatabaseEncryption_State::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatapathProvider.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatapathProvider.php deleted file mode 100644 index b346731a33e4..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatapathProvider.php +++ /dev/null @@ -1,65 +0,0 @@ -google.container.v1.DatapathProvider - */ -class DatapathProvider -{ - /** - * Default value. - * - * Generated from protobuf enum DATAPATH_PROVIDER_UNSPECIFIED = 0; - */ - const DATAPATH_PROVIDER_UNSPECIFIED = 0; - /** - * Use the IPTables implementation based on kube-proxy. - * - * Generated from protobuf enum LEGACY_DATAPATH = 1; - */ - const LEGACY_DATAPATH = 1; - /** - * Use the eBPF based GKE Dataplane V2 with additional features. See the [GKE - * Dataplane V2 - * documentation](https://cloud.google.com/kubernetes-engine/docs/how-to/dataplane-v2) - * for more. - * - * Generated from protobuf enum ADVANCED_DATAPATH = 2; - */ - const ADVANCED_DATAPATH = 2; - - private static $valueToName = [ - self::DATAPATH_PROVIDER_UNSPECIFIED => 'DATAPATH_PROVIDER_UNSPECIFIED', - self::LEGACY_DATAPATH => 'LEGACY_DATAPATH', - self::ADVANCED_DATAPATH => 'ADVANCED_DATAPATH', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DefaultSnatStatus.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DefaultSnatStatus.php deleted file mode 100644 index b7bfa31d2eae..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DefaultSnatStatus.php +++ /dev/null @@ -1,68 +0,0 @@ -google.container.v1.DefaultSnatStatus - */ -class DefaultSnatStatus extends \Google\Protobuf\Internal\Message -{ - /** - * Disables cluster default sNAT rules. - * - * Generated from protobuf field bool disabled = 1; - */ - protected $disabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $disabled - * Disables cluster default sNAT rules. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Disables cluster default sNAT rules. - * - * Generated from protobuf field bool disabled = 1; - * @return bool - */ - public function getDisabled() - { - return $this->disabled; - } - - /** - * Disables cluster default sNAT rules. - * - * Generated from protobuf field bool disabled = 1; - * @param bool $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkBool($var); - $this->disabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DeleteClusterRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DeleteClusterRequest.php deleted file mode 100644 index 5fbd5929f476..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DeleteClusterRequest.php +++ /dev/null @@ -1,249 +0,0 @@ -google.container.v1.DeleteClusterRequest - */ -class DeleteClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to delete. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * The name (project, location, cluster) of the cluster to delete. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 4; - */ - protected $name = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @param string $clusterId Deprecated. The name of the cluster to delete. - * This field has been deprecated and replaced by the name field. - * - * @return \Google\Cloud\Container\V1\DeleteClusterRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $clusterId): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId); - } - - /** - * @param string $name The name (project, location, cluster) of the cluster to delete. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * @return \Google\Cloud\Container\V1\DeleteClusterRequest - * - * @experimental - */ - public static function buildFromName(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to delete. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster) of the cluster to delete. - * Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to delete. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to delete. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * The name (project, location, cluster) of the cluster to delete. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 4; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster) of the cluster to delete. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 4; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DeleteNodePoolRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DeleteNodePoolRequest.php deleted file mode 100644 index 8da8944d2389..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DeleteNodePoolRequest.php +++ /dev/null @@ -1,300 +0,0 @@ -google.container.v1.DeleteNodePoolRequest - */ -class DeleteNodePoolRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Deprecated. The name of the node pool to delete. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @deprecated - */ - protected $node_pool_id = ''; - /** - * The name (project, location, cluster, node pool id) of the node pool to - * delete. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 6; - */ - protected $name = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @param string $clusterId Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @param string $nodePoolId Deprecated. The name of the node pool to delete. - * This field has been deprecated and replaced by the name field. - * - * @return \Google\Cloud\Container\V1\DeleteNodePoolRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $clusterId, string $nodePoolId): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId) - ->setNodePoolId($nodePoolId); - } - - /** - * @param string $name The name (project, location, cluster, node pool id) of the node pool to - * delete. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * @return \Google\Cloud\Container\V1\DeleteNodePoolRequest - * - * @experimental - */ - public static function buildFromName(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @type string $node_pool_id - * Deprecated. The name of the node pool to delete. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster, node pool id) of the node pool to - * delete. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the node pool to delete. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @return string - * @deprecated - */ - public function getNodePoolId() - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - return $this->node_pool_id; - } - - /** - * Deprecated. The name of the node pool to delete. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setNodePoolId($var) - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->node_pool_id = $var; - - return $this; - } - - /** - * The name (project, location, cluster, node pool id) of the node pool to - * delete. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 6; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster, node pool id) of the node pool to - * delete. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 6; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DnsCacheConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DnsCacheConfig.php deleted file mode 100644 index d97751e491df..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DnsCacheConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.DnsCacheConfig - */ -class DnsCacheConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether NodeLocal DNSCache is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether NodeLocal DNSCache is enabled for this cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether NodeLocal DNSCache is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether NodeLocal DNSCache is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EnterpriseConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EnterpriseConfig.php deleted file mode 100644 index 9d2e2de369b9..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EnterpriseConfig.php +++ /dev/null @@ -1,71 +0,0 @@ -google.container.v1.EnterpriseConfig - */ -class EnterpriseConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. [Output only] cluster_tier specifies the premium tier of the - * cluster. - * - * Generated from protobuf field .google.container.v1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $cluster_tier = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $cluster_tier - * Output only. [Output only] cluster_tier specifies the premium tier of the - * cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Output only. [Output only] cluster_tier specifies the premium tier of the - * cluster. - * - * Generated from protobuf field .google.container.v1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getClusterTier() - { - return $this->cluster_tier; - } - - /** - * Output only. [Output only] cluster_tier specifies the premium tier of the - * cluster. - * - * Generated from protobuf field .google.container.v1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setClusterTier($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\EnterpriseConfig\ClusterTier::class); - $this->cluster_tier = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EnterpriseConfig/ClusterTier.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EnterpriseConfig/ClusterTier.php deleted file mode 100644 index b5705813e917..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EnterpriseConfig/ClusterTier.php +++ /dev/null @@ -1,64 +0,0 @@ -google.container.v1.EnterpriseConfig.ClusterTier - */ -class ClusterTier -{ - /** - * CLUSTER_TIER_UNSPECIFIED is when cluster_tier is not set. - * - * Generated from protobuf enum CLUSTER_TIER_UNSPECIFIED = 0; - */ - const CLUSTER_TIER_UNSPECIFIED = 0; - /** - * STANDARD indicates a standard GKE cluster. - * - * Generated from protobuf enum STANDARD = 1; - */ - const STANDARD = 1; - /** - * ENTERPRISE indicates a GKE Enterprise cluster. - * - * Generated from protobuf enum ENTERPRISE = 2; - */ - const ENTERPRISE = 2; - - private static $valueToName = [ - self::CLUSTER_TIER_UNSPECIFIED => 'CLUSTER_TIER_UNSPECIFIED', - self::STANDARD => 'STANDARD', - self::ENTERPRISE => 'ENTERPRISE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ClusterTier::class, \Google\Cloud\Container\V1\EnterpriseConfig_ClusterTier::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EphemeralStorageLocalSsdConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EphemeralStorageLocalSsdConfig.php deleted file mode 100644 index 9e7a7edbb66f..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EphemeralStorageLocalSsdConfig.php +++ /dev/null @@ -1,132 +0,0 @@ -google.container.v1.EphemeralStorageLocalSsdConfig - */ -class EphemeralStorageLocalSsdConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Number of local SSDs to use to back ephemeral storage. Uses NVMe - * interfaces. - * A zero (or unset) value has different meanings depending on machine type - * being used: - * 1. For pre-Gen3 machines, which support flexible numbers of local ssds, - * zero (or unset) means to disable using local SSDs as ephemeral storage. The - * limit for this value is dependent upon the maximum number of disk - * available on a machine per zone. See: - * https://cloud.google.com/compute/docs/disks/local-ssd - * for more information. - * 2. For Gen3 machines which dictate a specific number of local ssds, zero - * (or unset) means to use the default number of local ssds that goes with - * that machine type. For example, for a c3-standard-8-lssd machine, 2 local - * ssds would be provisioned. For c3-standard-8 (which doesn't support local - * ssds), 0 will be provisioned. See - * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds - * for more info. - * - * Generated from protobuf field int32 local_ssd_count = 1; - */ - protected $local_ssd_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $local_ssd_count - * Number of local SSDs to use to back ephemeral storage. Uses NVMe - * interfaces. - * A zero (or unset) value has different meanings depending on machine type - * being used: - * 1. For pre-Gen3 machines, which support flexible numbers of local ssds, - * zero (or unset) means to disable using local SSDs as ephemeral storage. The - * limit for this value is dependent upon the maximum number of disk - * available on a machine per zone. See: - * https://cloud.google.com/compute/docs/disks/local-ssd - * for more information. - * 2. For Gen3 machines which dictate a specific number of local ssds, zero - * (or unset) means to use the default number of local ssds that goes with - * that machine type. For example, for a c3-standard-8-lssd machine, 2 local - * ssds would be provisioned. For c3-standard-8 (which doesn't support local - * ssds), 0 will be provisioned. See - * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds - * for more info. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Number of local SSDs to use to back ephemeral storage. Uses NVMe - * interfaces. - * A zero (or unset) value has different meanings depending on machine type - * being used: - * 1. For pre-Gen3 machines, which support flexible numbers of local ssds, - * zero (or unset) means to disable using local SSDs as ephemeral storage. The - * limit for this value is dependent upon the maximum number of disk - * available on a machine per zone. See: - * https://cloud.google.com/compute/docs/disks/local-ssd - * for more information. - * 2. For Gen3 machines which dictate a specific number of local ssds, zero - * (or unset) means to use the default number of local ssds that goes with - * that machine type. For example, for a c3-standard-8-lssd machine, 2 local - * ssds would be provisioned. For c3-standard-8 (which doesn't support local - * ssds), 0 will be provisioned. See - * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds - * for more info. - * - * Generated from protobuf field int32 local_ssd_count = 1; - * @return int - */ - public function getLocalSsdCount() - { - return $this->local_ssd_count; - } - - /** - * Number of local SSDs to use to back ephemeral storage. Uses NVMe - * interfaces. - * A zero (or unset) value has different meanings depending on machine type - * being used: - * 1. For pre-Gen3 machines, which support flexible numbers of local ssds, - * zero (or unset) means to disable using local SSDs as ephemeral storage. The - * limit for this value is dependent upon the maximum number of disk - * available on a machine per zone. See: - * https://cloud.google.com/compute/docs/disks/local-ssd - * for more information. - * 2. For Gen3 machines which dictate a specific number of local ssds, zero - * (or unset) means to use the default number of local ssds that goes with - * that machine type. For example, for a c3-standard-8-lssd machine, 2 local - * ssds would be provisioned. For c3-standard-8 (which doesn't support local - * ssds), 0 will be provisioned. See - * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds - * for more info. - * - * Generated from protobuf field int32 local_ssd_count = 1; - * @param int $var - * @return $this - */ - public function setLocalSsdCount($var) - { - GPBUtil::checkInt32($var); - $this->local_ssd_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/FastSocket.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/FastSocket.php deleted file mode 100644 index 18d90d015cd3..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/FastSocket.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.FastSocket - */ -class FastSocket extends \Google\Protobuf\Internal\Message -{ - /** - * Whether Fast Socket features are enabled in the node pool. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether Fast Socket features are enabled in the node pool. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether Fast Socket features are enabled in the node pool. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether Fast Socket features are enabled in the node pool. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Fleet.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Fleet.php deleted file mode 100644 index 713677be1e14..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Fleet.php +++ /dev/null @@ -1,155 +0,0 @@ -google.container.v1.Fleet - */ -class Fleet extends \Google\Protobuf\Internal\Message -{ - /** - * The Fleet host project(project ID or project number) where this cluster - * will be registered to. This field cannot be changed after the cluster has - * been registered. - * - * Generated from protobuf field string project = 1; - */ - protected $project = ''; - /** - * [Output only] The full resource name of the registered fleet membership of - * the cluster, in the format - * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`. - * - * Generated from protobuf field string membership = 2; - */ - protected $membership = ''; - /** - * [Output only] Whether the cluster has been registered through the fleet - * API. - * - * Generated from protobuf field bool pre_registered = 3; - */ - protected $pre_registered = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project - * The Fleet host project(project ID or project number) where this cluster - * will be registered to. This field cannot be changed after the cluster has - * been registered. - * @type string $membership - * [Output only] The full resource name of the registered fleet membership of - * the cluster, in the format - * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`. - * @type bool $pre_registered - * [Output only] Whether the cluster has been registered through the fleet - * API. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The Fleet host project(project ID or project number) where this cluster - * will be registered to. This field cannot be changed after the cluster has - * been registered. - * - * Generated from protobuf field string project = 1; - * @return string - */ - public function getProject() - { - return $this->project; - } - - /** - * The Fleet host project(project ID or project number) where this cluster - * will be registered to. This field cannot be changed after the cluster has - * been registered. - * - * Generated from protobuf field string project = 1; - * @param string $var - * @return $this - */ - public function setProject($var) - { - GPBUtil::checkString($var, True); - $this->project = $var; - - return $this; - } - - /** - * [Output only] The full resource name of the registered fleet membership of - * the cluster, in the format - * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`. - * - * Generated from protobuf field string membership = 2; - * @return string - */ - public function getMembership() - { - return $this->membership; - } - - /** - * [Output only] The full resource name of the registered fleet membership of - * the cluster, in the format - * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`. - * - * Generated from protobuf field string membership = 2; - * @param string $var - * @return $this - */ - public function setMembership($var) - { - GPBUtil::checkString($var, True); - $this->membership = $var; - - return $this; - } - - /** - * [Output only] Whether the cluster has been registered through the fleet - * API. - * - * Generated from protobuf field bool pre_registered = 3; - * @return bool - */ - public function getPreRegistered() - { - return $this->pre_registered; - } - - /** - * [Output only] Whether the cluster has been registered through the fleet - * API. - * - * Generated from protobuf field bool pre_registered = 3; - * @param bool $var - * @return $this - */ - public function setPreRegistered($var) - { - GPBUtil::checkBool($var); - $this->pre_registered = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUDriverInstallationConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUDriverInstallationConfig.php deleted file mode 100644 index 5893eba5ed8e..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUDriverInstallationConfig.php +++ /dev/null @@ -1,78 +0,0 @@ -google.container.v1.GPUDriverInstallationConfig - */ -class GPUDriverInstallationConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Mode for how the GPU driver is installed. - * - * Generated from protobuf field optional .google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; - */ - protected $gpu_driver_version = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $gpu_driver_version - * Mode for how the GPU driver is installed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Mode for how the GPU driver is installed. - * - * Generated from protobuf field optional .google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; - * @return int - */ - public function getGpuDriverVersion() - { - return isset($this->gpu_driver_version) ? $this->gpu_driver_version : 0; - } - - public function hasGpuDriverVersion() - { - return isset($this->gpu_driver_version); - } - - public function clearGpuDriverVersion() - { - unset($this->gpu_driver_version); - } - - /** - * Mode for how the GPU driver is installed. - * - * Generated from protobuf field optional .google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; - * @param int $var - * @return $this - */ - public function setGpuDriverVersion($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\GPUDriverInstallationConfig\GPUDriverVersion::class); - $this->gpu_driver_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUDriverInstallationConfig/GPUDriverVersion.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUDriverInstallationConfig/GPUDriverVersion.php deleted file mode 100644 index 2f3d3e8af1cb..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUDriverInstallationConfig/GPUDriverVersion.php +++ /dev/null @@ -1,75 +0,0 @@ -google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion - */ -class GPUDriverVersion -{ - /** - * Default value is to not install any GPU driver. - * - * Generated from protobuf enum GPU_DRIVER_VERSION_UNSPECIFIED = 0; - */ - const GPU_DRIVER_VERSION_UNSPECIFIED = 0; - /** - * Disable GPU driver auto installation and needs manual installation - * - * Generated from protobuf enum INSTALLATION_DISABLED = 1; - */ - const INSTALLATION_DISABLED = 1; - /** - * "Default" GPU driver in COS and Ubuntu. - * - * Generated from protobuf enum DEFAULT = 2; - */ - const PBDEFAULT = 2; - /** - * "Latest" GPU driver in COS. - * - * Generated from protobuf enum LATEST = 3; - */ - const LATEST = 3; - - private static $valueToName = [ - self::GPU_DRIVER_VERSION_UNSPECIFIED => 'GPU_DRIVER_VERSION_UNSPECIFIED', - self::INSTALLATION_DISABLED => 'INSTALLATION_DISABLED', - self::PBDEFAULT => 'DEFAULT', - self::LATEST => 'LATEST', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - $pbconst = __CLASS__. '::PB' . strtoupper($name); - if (!defined($pbconst)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($pbconst); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(GPUDriverVersion::class, \Google\Cloud\Container\V1\GPUDriverInstallationConfig_GPUDriverVersion::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig.php deleted file mode 100644 index 2badc2e49622..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig.php +++ /dev/null @@ -1,112 +0,0 @@ -google.container.v1.GPUSharingConfig - */ -class GPUSharingConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The max number of containers that can share a physical GPU. - * - * Generated from protobuf field int64 max_shared_clients_per_gpu = 1; - */ - protected $max_shared_clients_per_gpu = 0; - /** - * The type of GPU sharing strategy to enable on the GPU node. - * - * Generated from protobuf field optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; - */ - protected $gpu_sharing_strategy = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $max_shared_clients_per_gpu - * The max number of containers that can share a physical GPU. - * @type int $gpu_sharing_strategy - * The type of GPU sharing strategy to enable on the GPU node. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The max number of containers that can share a physical GPU. - * - * Generated from protobuf field int64 max_shared_clients_per_gpu = 1; - * @return int|string - */ - public function getMaxSharedClientsPerGpu() - { - return $this->max_shared_clients_per_gpu; - } - - /** - * The max number of containers that can share a physical GPU. - * - * Generated from protobuf field int64 max_shared_clients_per_gpu = 1; - * @param int|string $var - * @return $this - */ - public function setMaxSharedClientsPerGpu($var) - { - GPBUtil::checkInt64($var); - $this->max_shared_clients_per_gpu = $var; - - return $this; - } - - /** - * The type of GPU sharing strategy to enable on the GPU node. - * - * Generated from protobuf field optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; - * @return int - */ - public function getGpuSharingStrategy() - { - return isset($this->gpu_sharing_strategy) ? $this->gpu_sharing_strategy : 0; - } - - public function hasGpuSharingStrategy() - { - return isset($this->gpu_sharing_strategy); - } - - public function clearGpuSharingStrategy() - { - unset($this->gpu_sharing_strategy); - } - - /** - * The type of GPU sharing strategy to enable on the GPU node. - * - * Generated from protobuf field optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; - * @param int $var - * @return $this - */ - public function setGpuSharingStrategy($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\GPUSharingConfig\GPUSharingStrategy::class); - $this->gpu_sharing_strategy = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig/GPUSharingStrategy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig/GPUSharingStrategy.php deleted file mode 100644 index b7c519c60962..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig/GPUSharingStrategy.php +++ /dev/null @@ -1,57 +0,0 @@ -google.container.v1.GPUSharingConfig.GPUSharingStrategy - */ -class GPUSharingStrategy -{ - /** - * Default value. - * - * Generated from protobuf enum GPU_SHARING_STRATEGY_UNSPECIFIED = 0; - */ - const GPU_SHARING_STRATEGY_UNSPECIFIED = 0; - /** - * GPUs are time-shared between containers. - * - * Generated from protobuf enum TIME_SHARING = 1; - */ - const TIME_SHARING = 1; - - private static $valueToName = [ - self::GPU_SHARING_STRATEGY_UNSPECIFIED => 'GPU_SHARING_STRATEGY_UNSPECIFIED', - self::TIME_SHARING => 'TIME_SHARING', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(GPUSharingStrategy::class, \Google\Cloud\Container\V1\GPUSharingConfig_GPUSharingStrategy::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig.php deleted file mode 100644 index 4dce79867c91..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.GatewayAPIConfig - */ -class GatewayAPIConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The Gateway API release channel to use for Gateway API. - * - * Generated from protobuf field .google.container.v1.GatewayAPIConfig.Channel channel = 1; - */ - protected $channel = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $channel - * The Gateway API release channel to use for Gateway API. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The Gateway API release channel to use for Gateway API. - * - * Generated from protobuf field .google.container.v1.GatewayAPIConfig.Channel channel = 1; - * @return int - */ - public function getChannel() - { - return $this->channel; - } - - /** - * The Gateway API release channel to use for Gateway API. - * - * Generated from protobuf field .google.container.v1.GatewayAPIConfig.Channel channel = 1; - * @param int $var - * @return $this - */ - public function setChannel($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\GatewayAPIConfig\Channel::class); - $this->channel = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig/Channel.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig/Channel.php deleted file mode 100644 index e947315711f5..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig/Channel.php +++ /dev/null @@ -1,72 +0,0 @@ -google.container.v1.GatewayAPIConfig.Channel - */ -class Channel -{ - /** - * Default value. - * - * Generated from protobuf enum CHANNEL_UNSPECIFIED = 0; - */ - const CHANNEL_UNSPECIFIED = 0; - /** - * Gateway API support is disabled - * - * Generated from protobuf enum CHANNEL_DISABLED = 1; - */ - const CHANNEL_DISABLED = 1; - /** - * Gateway API support is enabled, experimental CRDs are installed - * - * Generated from protobuf enum CHANNEL_EXPERIMENTAL = 3; - */ - const CHANNEL_EXPERIMENTAL = 3; - /** - * Gateway API support is enabled, standard CRDs are installed - * - * Generated from protobuf enum CHANNEL_STANDARD = 4; - */ - const CHANNEL_STANDARD = 4; - - private static $valueToName = [ - self::CHANNEL_UNSPECIFIED => 'CHANNEL_UNSPECIFIED', - self::CHANNEL_DISABLED => 'CHANNEL_DISABLED', - self::CHANNEL_EXPERIMENTAL => 'CHANNEL_EXPERIMENTAL', - self::CHANNEL_STANDARD => 'CHANNEL_STANDARD', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Channel::class, \Google\Cloud\Container\V1\GatewayAPIConfig_Channel::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcePersistentDiskCsiDriverConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcePersistentDiskCsiDriverConfig.php deleted file mode 100644 index 79388de90a25..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcePersistentDiskCsiDriverConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.GcePersistentDiskCsiDriverConfig - */ -class GcePersistentDiskCsiDriverConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether the Compute Engine PD CSI driver is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether the Compute Engine PD CSI driver is enabled for this cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether the Compute Engine PD CSI driver is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether the Compute Engine PD CSI driver is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcfsConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcfsConfig.php deleted file mode 100644 index 3f110ac4b85a..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcfsConfig.php +++ /dev/null @@ -1,68 +0,0 @@ -google.container.v1.GcfsConfig - */ -class GcfsConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether to use GCFS. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether to use GCFS. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether to use GCFS. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether to use GCFS. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcpFilestoreCsiDriverConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcpFilestoreCsiDriverConfig.php deleted file mode 100644 index c100bb46cc57..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcpFilestoreCsiDriverConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.GcpFilestoreCsiDriverConfig - */ -class GcpFilestoreCsiDriverConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether the GCP Filestore CSI driver is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether the GCP Filestore CSI driver is enabled for this cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether the GCP Filestore CSI driver is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether the GCP Filestore CSI driver is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcsFuseCsiDriverConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcsFuseCsiDriverConfig.php deleted file mode 100644 index 18c4664f0894..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcsFuseCsiDriverConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.GcsFuseCsiDriverConfig - */ -class GcsFuseCsiDriverConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether the Cloud Storage Fuse CSI driver is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether the Cloud Storage Fuse CSI driver is enabled for this cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether the Cloud Storage Fuse CSI driver is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether the Cloud Storage Fuse CSI driver is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetClusterRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetClusterRequest.php deleted file mode 100644 index 35eef236164e..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetClusterRequest.php +++ /dev/null @@ -1,249 +0,0 @@ -google.container.v1.GetClusterRequest - */ -class GetClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to retrieve. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * The name (project, location, cluster) of the cluster to retrieve. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 5; - */ - protected $name = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @param string $clusterId Deprecated. The name of the cluster to retrieve. - * This field has been deprecated and replaced by the name field. - * - * @return \Google\Cloud\Container\V1\GetClusterRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $clusterId): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId); - } - - /** - * @param string $name The name (project, location, cluster) of the cluster to retrieve. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * @return \Google\Cloud\Container\V1\GetClusterRequest - * - * @experimental - */ - public static function buildFromName(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to retrieve. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster) of the cluster to retrieve. - * Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to retrieve. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to retrieve. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * The name (project, location, cluster) of the cluster to retrieve. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 5; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster) of the cluster to retrieve. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 5; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysRequest.php deleted file mode 100644 index 51b7332269ce..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysRequest.php +++ /dev/null @@ -1,74 +0,0 @@ -google.container.v1.GetJSONWebKeysRequest - */ -class GetJSONWebKeysRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The cluster (project, location, cluster name) to get keys for. Specified in - * the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string parent = 1; - */ - protected $parent = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * The cluster (project, location, cluster name) to get keys for. Specified in - * the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The cluster (project, location, cluster name) to get keys for. Specified in - * the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string parent = 1; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The cluster (project, location, cluster name) to get keys for. Specified in - * the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string parent = 1; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysResponse.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysResponse.php deleted file mode 100644 index e87ea71c60c3..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysResponse.php +++ /dev/null @@ -1,71 +0,0 @@ -google.container.v1.GetJSONWebKeysResponse - */ -class GetJSONWebKeysResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The public component of the keys used by the cluster to sign token - * requests. - * - * Generated from protobuf field repeated .google.container.v1.Jwk keys = 1; - */ - private $keys; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Container\V1\Jwk>|\Google\Protobuf\Internal\RepeatedField $keys - * The public component of the keys used by the cluster to sign token - * requests. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The public component of the keys used by the cluster to sign token - * requests. - * - * Generated from protobuf field repeated .google.container.v1.Jwk keys = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getKeys() - { - return $this->keys; - } - - /** - * The public component of the keys used by the cluster to sign token - * requests. - * - * Generated from protobuf field repeated .google.container.v1.Jwk keys = 1; - * @param array<\Google\Cloud\Container\V1\Jwk>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setKeys($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\Jwk::class); - $this->keys = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetNodePoolRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetNodePoolRequest.php deleted file mode 100644 index 3a6cd8bd5255..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetNodePoolRequest.php +++ /dev/null @@ -1,300 +0,0 @@ -google.container.v1.GetNodePoolRequest - */ -class GetNodePoolRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Deprecated. The name of the node pool. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @deprecated - */ - protected $node_pool_id = ''; - /** - * The name (project, location, cluster, node pool id) of the node pool to - * get. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 6; - */ - protected $name = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @param string $clusterId Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @param string $nodePoolId Deprecated. The name of the node pool. - * This field has been deprecated and replaced by the name field. - * - * @return \Google\Cloud\Container\V1\GetNodePoolRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $clusterId, string $nodePoolId): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId) - ->setNodePoolId($nodePoolId); - } - - /** - * @param string $name The name (project, location, cluster, node pool id) of the node pool to - * get. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * @return \Google\Cloud\Container\V1\GetNodePoolRequest - * - * @experimental - */ - public static function buildFromName(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @type string $node_pool_id - * Deprecated. The name of the node pool. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster, node pool id) of the node pool to - * get. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the node pool. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @return string - * @deprecated - */ - public function getNodePoolId() - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - return $this->node_pool_id; - } - - /** - * Deprecated. The name of the node pool. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setNodePoolId($var) - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->node_pool_id = $var; - - return $this; - } - - /** - * The name (project, location, cluster, node pool id) of the node pool to - * get. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 6; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster, node pool id) of the node pool to - * get. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 6; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigRequest.php deleted file mode 100644 index 91eed5acb736..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigRequest.php +++ /dev/null @@ -1,72 +0,0 @@ -google.container.v1.GetOpenIDConfigRequest - */ -class GetOpenIDConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The cluster (project, location, cluster name) to get the discovery document - * for. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string parent = 1; - */ - protected $parent = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * The cluster (project, location, cluster name) to get the discovery document - * for. Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The cluster (project, location, cluster name) to get the discovery document - * for. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string parent = 1; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The cluster (project, location, cluster name) to get the discovery document - * for. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string parent = 1; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigResponse.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigResponse.php deleted file mode 100644 index 99ed8727e6b6..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigResponse.php +++ /dev/null @@ -1,272 +0,0 @@ -google.container.v1.GetOpenIDConfigResponse - */ -class GetOpenIDConfigResponse extends \Google\Protobuf\Internal\Message -{ - /** - * OIDC Issuer. - * - * Generated from protobuf field string issuer = 1; - */ - protected $issuer = ''; - /** - * JSON Web Key uri. - * - * Generated from protobuf field string jwks_uri = 2; - */ - protected $jwks_uri = ''; - /** - * Supported response types. - * - * Generated from protobuf field repeated string response_types_supported = 3; - */ - private $response_types_supported; - /** - * Supported subject types. - * - * Generated from protobuf field repeated string subject_types_supported = 4; - */ - private $subject_types_supported; - /** - * supported ID Token signing Algorithms. - * - * Generated from protobuf field repeated string id_token_signing_alg_values_supported = 5; - */ - private $id_token_signing_alg_values_supported; - /** - * Supported claims. - * - * Generated from protobuf field repeated string claims_supported = 6; - */ - private $claims_supported; - /** - * Supported grant types. - * - * Generated from protobuf field repeated string grant_types = 7; - */ - private $grant_types; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $issuer - * OIDC Issuer. - * @type string $jwks_uri - * JSON Web Key uri. - * @type array|\Google\Protobuf\Internal\RepeatedField $response_types_supported - * Supported response types. - * @type array|\Google\Protobuf\Internal\RepeatedField $subject_types_supported - * Supported subject types. - * @type array|\Google\Protobuf\Internal\RepeatedField $id_token_signing_alg_values_supported - * supported ID Token signing Algorithms. - * @type array|\Google\Protobuf\Internal\RepeatedField $claims_supported - * Supported claims. - * @type array|\Google\Protobuf\Internal\RepeatedField $grant_types - * Supported grant types. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * OIDC Issuer. - * - * Generated from protobuf field string issuer = 1; - * @return string - */ - public function getIssuer() - { - return $this->issuer; - } - - /** - * OIDC Issuer. - * - * Generated from protobuf field string issuer = 1; - * @param string $var - * @return $this - */ - public function setIssuer($var) - { - GPBUtil::checkString($var, True); - $this->issuer = $var; - - return $this; - } - - /** - * JSON Web Key uri. - * - * Generated from protobuf field string jwks_uri = 2; - * @return string - */ - public function getJwksUri() - { - return $this->jwks_uri; - } - - /** - * JSON Web Key uri. - * - * Generated from protobuf field string jwks_uri = 2; - * @param string $var - * @return $this - */ - public function setJwksUri($var) - { - GPBUtil::checkString($var, True); - $this->jwks_uri = $var; - - return $this; - } - - /** - * Supported response types. - * - * Generated from protobuf field repeated string response_types_supported = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResponseTypesSupported() - { - return $this->response_types_supported; - } - - /** - * Supported response types. - * - * Generated from protobuf field repeated string response_types_supported = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResponseTypesSupported($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->response_types_supported = $arr; - - return $this; - } - - /** - * Supported subject types. - * - * Generated from protobuf field repeated string subject_types_supported = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSubjectTypesSupported() - { - return $this->subject_types_supported; - } - - /** - * Supported subject types. - * - * Generated from protobuf field repeated string subject_types_supported = 4; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSubjectTypesSupported($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->subject_types_supported = $arr; - - return $this; - } - - /** - * supported ID Token signing Algorithms. - * - * Generated from protobuf field repeated string id_token_signing_alg_values_supported = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIdTokenSigningAlgValuesSupported() - { - return $this->id_token_signing_alg_values_supported; - } - - /** - * supported ID Token signing Algorithms. - * - * Generated from protobuf field repeated string id_token_signing_alg_values_supported = 5; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIdTokenSigningAlgValuesSupported($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->id_token_signing_alg_values_supported = $arr; - - return $this; - } - - /** - * Supported claims. - * - * Generated from protobuf field repeated string claims_supported = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getClaimsSupported() - { - return $this->claims_supported; - } - - /** - * Supported claims. - * - * Generated from protobuf field repeated string claims_supported = 6; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setClaimsSupported($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->claims_supported = $arr; - - return $this; - } - - /** - * Supported grant types. - * - * Generated from protobuf field repeated string grant_types = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getGrantTypes() - { - return $this->grant_types; - } - - /** - * Supported grant types. - * - * Generated from protobuf field repeated string grant_types = 7; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setGrantTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->grant_types = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOperationRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOperationRequest.php deleted file mode 100644 index c07ae9a9dd77..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOperationRequest.php +++ /dev/null @@ -1,249 +0,0 @@ -google.container.v1.GetOperationRequest - */ -class GetOperationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The server-assigned `name` of the operation. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string operation_id = 3 [deprecated = true]; - * @deprecated - */ - protected $operation_id = ''; - /** - * The name (project, location, operation id) of the operation to get. - * Specified in the format `projects/*/locations/*/operations/*`. - * - * Generated from protobuf field string name = 5; - */ - protected $name = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @param string $operationId Deprecated. The server-assigned `name` of the operation. - * This field has been deprecated and replaced by the name field. - * - * @return \Google\Cloud\Container\V1\GetOperationRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $operationId): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setOperationId($operationId); - } - - /** - * @param string $name The name (project, location, operation id) of the operation to get. - * Specified in the format `projects/*/locations/*/operations/*`. - * - * @return \Google\Cloud\Container\V1\GetOperationRequest - * - * @experimental - */ - public static function buildFromName(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $operation_id - * Deprecated. The server-assigned `name` of the operation. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, operation id) of the operation to get. - * Specified in the format `projects/*/locations/*/operations/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The server-assigned `name` of the operation. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string operation_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getOperationId() - { - @trigger_error('operation_id is deprecated.', E_USER_DEPRECATED); - return $this->operation_id; - } - - /** - * Deprecated. The server-assigned `name` of the operation. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string operation_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setOperationId($var) - { - @trigger_error('operation_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->operation_id = $var; - - return $this; - } - - /** - * The name (project, location, operation id) of the operation to get. - * Specified in the format `projects/*/locations/*/operations/*`. - * - * Generated from protobuf field string name = 5; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, operation id) of the operation to get. - * Specified in the format `projects/*/locations/*/operations/*`. - * - * Generated from protobuf field string name = 5; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetServerConfigRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetServerConfigRequest.php deleted file mode 100644 index f8c09b1b122c..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetServerConfigRequest.php +++ /dev/null @@ -1,203 +0,0 @@ -google.container.v1.GetServerConfigRequest - */ -class GetServerConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) to return - * operations for. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * The name (project and location) of the server config to get, - * specified in the format `projects/*/locations/*`. - * - * Generated from protobuf field string name = 4; - */ - protected $name = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) to return - * operations for. This field has been deprecated and replaced by the name - * field. - * - * @return \Google\Cloud\Container\V1\GetServerConfigRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone); - } - - /** - * @param string $name The name (project and location) of the server config to get, - * specified in the format `projects/*/locations/*`. - * - * @return \Google\Cloud\Container\V1\GetServerConfigRequest - * - * @experimental - */ - public static function buildFromName(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) to return - * operations for. This field has been deprecated and replaced by the name - * field. - * @type string $name - * The name (project and location) of the server config to get, - * specified in the format `projects/*/locations/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) to return - * operations for. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) to return - * operations for. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * The name (project and location) of the server config to get, - * specified in the format `projects/*/locations/*`. - * - * Generated from protobuf field string name = 4; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project and location) of the server config to get, - * specified in the format `projects/*/locations/*`. - * - * Generated from protobuf field string name = 4; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GkeBackupAgentConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GkeBackupAgentConfig.php deleted file mode 100644 index de7ae1b5392b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GkeBackupAgentConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.GkeBackupAgentConfig - */ -class GkeBackupAgentConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether the Backup for GKE agent is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether the Backup for GKE agent is enabled for this cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether the Backup for GKE agent is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether the Backup for GKE agent is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HorizontalPodAutoscaling.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HorizontalPodAutoscaling.php deleted file mode 100644 index 0e904a7e225a..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HorizontalPodAutoscaling.php +++ /dev/null @@ -1,77 +0,0 @@ -google.container.v1.HorizontalPodAutoscaling - */ -class HorizontalPodAutoscaling extends \Google\Protobuf\Internal\Message -{ - /** - * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. - * When enabled, it ensures that metrics are collected into Stackdriver - * Monitoring. - * - * Generated from protobuf field bool disabled = 1; - */ - protected $disabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $disabled - * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. - * When enabled, it ensures that metrics are collected into Stackdriver - * Monitoring. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. - * When enabled, it ensures that metrics are collected into Stackdriver - * Monitoring. - * - * Generated from protobuf field bool disabled = 1; - * @return bool - */ - public function getDisabled() - { - return $this->disabled; - } - - /** - * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. - * When enabled, it ensures that metrics are collected into Stackdriver - * Monitoring. - * - * Generated from protobuf field bool disabled = 1; - * @param bool $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkBool($var); - $this->disabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HttpLoadBalancing.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HttpLoadBalancing.php deleted file mode 100644 index abe2b7c900b2..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HttpLoadBalancing.php +++ /dev/null @@ -1,76 +0,0 @@ -google.container.v1.HttpLoadBalancing - */ -class HttpLoadBalancing extends \Google\Protobuf\Internal\Message -{ - /** - * Whether the HTTP Load Balancing controller is enabled in the cluster. - * When enabled, it runs a small pod in the cluster that manages the load - * balancers. - * - * Generated from protobuf field bool disabled = 1; - */ - protected $disabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $disabled - * Whether the HTTP Load Balancing controller is enabled in the cluster. - * When enabled, it runs a small pod in the cluster that manages the load - * balancers. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether the HTTP Load Balancing controller is enabled in the cluster. - * When enabled, it runs a small pod in the cluster that manages the load - * balancers. - * - * Generated from protobuf field bool disabled = 1; - * @return bool - */ - public function getDisabled() - { - return $this->disabled; - } - - /** - * Whether the HTTP Load Balancing controller is enabled in the cluster. - * When enabled, it runs a small pod in the cluster that manages the load - * balancers. - * - * Generated from protobuf field bool disabled = 1; - * @param bool $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkBool($var); - $this->disabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ILBSubsettingConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ILBSubsettingConfig.php deleted file mode 100644 index 64b0d8c63670..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ILBSubsettingConfig.php +++ /dev/null @@ -1,68 +0,0 @@ -google.container.v1.ILBSubsettingConfig - */ -class ILBSubsettingConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Enables l4 ILB subsetting for this cluster. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Enables l4 ILB subsetting for this cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Enables l4 ILB subsetting for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Enables l4 ILB subsetting for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPAllocationPolicy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPAllocationPolicy.php deleted file mode 100644 index 3b4ada5acd73..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPAllocationPolicy.php +++ /dev/null @@ -1,1040 +0,0 @@ -google.container.v1.IPAllocationPolicy - */ -class IPAllocationPolicy extends \Google\Protobuf\Internal\Message -{ - /** - * Whether alias IPs will be used for pod IPs in the cluster. - * This is used in conjunction with use_routes. It cannot - * be true if use_routes is true. If both use_ip_aliases and use_routes are - * false, then the server picks the default IP allocation mode - * - * Generated from protobuf field bool use_ip_aliases = 1; - */ - protected $use_ip_aliases = false; - /** - * Whether a new subnetwork will be created automatically for the cluster. - * This field is only applicable when `use_ip_aliases` is true. - * - * Generated from protobuf field bool create_subnetwork = 2; - */ - protected $create_subnetwork = false; - /** - * A custom subnetwork name to be used if `create_subnetwork` is true. If - * this field is empty, then an automatic name will be chosen for the new - * subnetwork. - * - * Generated from protobuf field string subnetwork_name = 3; - */ - protected $subnetwork_name = ''; - /** - * This field is deprecated, use cluster_ipv4_cidr_block. - * - * Generated from protobuf field string cluster_ipv4_cidr = 4 [deprecated = true]; - * @deprecated - */ - protected $cluster_ipv4_cidr = ''; - /** - * This field is deprecated, use node_ipv4_cidr_block. - * - * Generated from protobuf field string node_ipv4_cidr = 5 [deprecated = true]; - * @deprecated - */ - protected $node_ipv4_cidr = ''; - /** - * This field is deprecated, use services_ipv4_cidr_block. - * - * Generated from protobuf field string services_ipv4_cidr = 6 [deprecated = true]; - * @deprecated - */ - protected $services_ipv4_cidr = ''; - /** - * The name of the secondary range to be used for the cluster CIDR - * block. The secondary range will be used for pod IP - * addresses. This must be an existing secondary range associated - * with the cluster subnetwork. - * This field is only applicable with use_ip_aliases is true and - * create_subnetwork is false. - * - * Generated from protobuf field string cluster_secondary_range_name = 7; - */ - protected $cluster_secondary_range_name = ''; - /** - * The name of the secondary range to be used as for the services - * CIDR block. The secondary range will be used for service - * ClusterIPs. This must be an existing secondary range associated - * with the cluster subnetwork. - * This field is only applicable with use_ip_aliases is true and - * create_subnetwork is false. - * - * Generated from protobuf field string services_secondary_range_name = 8; - */ - protected $services_secondary_range_name = ''; - /** - * The IP address range for the cluster pod IPs. If this field is set, then - * `cluster.cluster_ipv4_cidr` must be left blank. - * This field is only applicable when `use_ip_aliases` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * Generated from protobuf field string cluster_ipv4_cidr_block = 9; - */ - protected $cluster_ipv4_cidr_block = ''; - /** - * The IP address range of the instance IPs in this cluster. - * This is applicable only if `create_subnetwork` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * Generated from protobuf field string node_ipv4_cidr_block = 10; - */ - protected $node_ipv4_cidr_block = ''; - /** - * The IP address range of the services IPs in this cluster. If blank, a range - * will be automatically chosen with the default size. - * This field is only applicable when `use_ip_aliases` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * Generated from protobuf field string services_ipv4_cidr_block = 11; - */ - protected $services_ipv4_cidr_block = ''; - /** - * The IP address range of the Cloud TPUs in this cluster. If unspecified, a - * range will be automatically chosen with the default size. - * This field is only applicable when `use_ip_aliases` is true. - * If unspecified, the range will use the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * Generated from protobuf field string tpu_ipv4_cidr_block = 13; - */ - protected $tpu_ipv4_cidr_block = ''; - /** - * Whether routes will be used for pod IPs in the cluster. - * This is used in conjunction with use_ip_aliases. It cannot be true if - * use_ip_aliases is true. If both use_ip_aliases and use_routes are false, - * then the server picks the default IP allocation mode - * - * Generated from protobuf field bool use_routes = 15; - */ - protected $use_routes = false; - /** - * The IP stack type of the cluster - * - * Generated from protobuf field .google.container.v1.StackType stack_type = 16; - */ - protected $stack_type = 0; - /** - * The ipv6 access type (internal or external) when create_subnetwork is true - * - * Generated from protobuf field .google.container.v1.IPv6AccessType ipv6_access_type = 17; - */ - protected $ipv6_access_type = 0; - /** - * [PRIVATE FIELD] - * Pod CIDR size overprovisioning config for the cluster. - * Pod CIDR size per node depends on max_pods_per_node. By default, the value - * of max_pods_per_node is doubled and then rounded off to next power of 2 to - * get the size of pod CIDR block per node. - * Example: max_pods_per_node of 30 would result in 64 IPs (/26). - * This config can disable the doubling of IPs (we still round off to next - * power of 2) - * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when - * overprovisioning is disabled. - * - * Generated from protobuf field .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; - */ - protected $pod_cidr_overprovision_config = null; - /** - * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and - * pods. - * - * Generated from protobuf field string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $subnet_ipv6_cidr_block = ''; - /** - * Output only. [Output only] The services IPv6 CIDR block for the cluster. - * - * Generated from protobuf field string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $services_ipv6_cidr_block = ''; - /** - * Output only. [Output only] The additional pod ranges that are added to the - * cluster. These pod ranges can be used by new node pools to allocate pod IPs - * automatically. Once the range is removed it will not show up in - * IPAllocationPolicy. - * - * Generated from protobuf field .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $additional_pod_ranges_config = null; - /** - * Output only. [Output only] The utilization of the cluster default IPv4 - * range for the pod. The ratio is Usage/[Total number of IPs in the secondary - * range], Usage=numNodes*numZones*podIPsPerNode. - * - * Generated from protobuf field double default_pod_ipv4_range_utilization = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $default_pod_ipv4_range_utilization = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $use_ip_aliases - * Whether alias IPs will be used for pod IPs in the cluster. - * This is used in conjunction with use_routes. It cannot - * be true if use_routes is true. If both use_ip_aliases and use_routes are - * false, then the server picks the default IP allocation mode - * @type bool $create_subnetwork - * Whether a new subnetwork will be created automatically for the cluster. - * This field is only applicable when `use_ip_aliases` is true. - * @type string $subnetwork_name - * A custom subnetwork name to be used if `create_subnetwork` is true. If - * this field is empty, then an automatic name will be chosen for the new - * subnetwork. - * @type string $cluster_ipv4_cidr - * This field is deprecated, use cluster_ipv4_cidr_block. - * @type string $node_ipv4_cidr - * This field is deprecated, use node_ipv4_cidr_block. - * @type string $services_ipv4_cidr - * This field is deprecated, use services_ipv4_cidr_block. - * @type string $cluster_secondary_range_name - * The name of the secondary range to be used for the cluster CIDR - * block. The secondary range will be used for pod IP - * addresses. This must be an existing secondary range associated - * with the cluster subnetwork. - * This field is only applicable with use_ip_aliases is true and - * create_subnetwork is false. - * @type string $services_secondary_range_name - * The name of the secondary range to be used as for the services - * CIDR block. The secondary range will be used for service - * ClusterIPs. This must be an existing secondary range associated - * with the cluster subnetwork. - * This field is only applicable with use_ip_aliases is true and - * create_subnetwork is false. - * @type string $cluster_ipv4_cidr_block - * The IP address range for the cluster pod IPs. If this field is set, then - * `cluster.cluster_ipv4_cidr` must be left blank. - * This field is only applicable when `use_ip_aliases` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * @type string $node_ipv4_cidr_block - * The IP address range of the instance IPs in this cluster. - * This is applicable only if `create_subnetwork` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * @type string $services_ipv4_cidr_block - * The IP address range of the services IPs in this cluster. If blank, a range - * will be automatically chosen with the default size. - * This field is only applicable when `use_ip_aliases` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * @type string $tpu_ipv4_cidr_block - * The IP address range of the Cloud TPUs in this cluster. If unspecified, a - * range will be automatically chosen with the default size. - * This field is only applicable when `use_ip_aliases` is true. - * If unspecified, the range will use the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * @type bool $use_routes - * Whether routes will be used for pod IPs in the cluster. - * This is used in conjunction with use_ip_aliases. It cannot be true if - * use_ip_aliases is true. If both use_ip_aliases and use_routes are false, - * then the server picks the default IP allocation mode - * @type int $stack_type - * The IP stack type of the cluster - * @type int $ipv6_access_type - * The ipv6 access type (internal or external) when create_subnetwork is true - * @type \Google\Cloud\Container\V1\PodCIDROverprovisionConfig $pod_cidr_overprovision_config - * [PRIVATE FIELD] - * Pod CIDR size overprovisioning config for the cluster. - * Pod CIDR size per node depends on max_pods_per_node. By default, the value - * of max_pods_per_node is doubled and then rounded off to next power of 2 to - * get the size of pod CIDR block per node. - * Example: max_pods_per_node of 30 would result in 64 IPs (/26). - * This config can disable the doubling of IPs (we still round off to next - * power of 2) - * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when - * overprovisioning is disabled. - * @type string $subnet_ipv6_cidr_block - * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and - * pods. - * @type string $services_ipv6_cidr_block - * Output only. [Output only] The services IPv6 CIDR block for the cluster. - * @type \Google\Cloud\Container\V1\AdditionalPodRangesConfig $additional_pod_ranges_config - * Output only. [Output only] The additional pod ranges that are added to the - * cluster. These pod ranges can be used by new node pools to allocate pod IPs - * automatically. Once the range is removed it will not show up in - * IPAllocationPolicy. - * @type float $default_pod_ipv4_range_utilization - * Output only. [Output only] The utilization of the cluster default IPv4 - * range for the pod. The ratio is Usage/[Total number of IPs in the secondary - * range], Usage=numNodes*numZones*podIPsPerNode. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether alias IPs will be used for pod IPs in the cluster. - * This is used in conjunction with use_routes. It cannot - * be true if use_routes is true. If both use_ip_aliases and use_routes are - * false, then the server picks the default IP allocation mode - * - * Generated from protobuf field bool use_ip_aliases = 1; - * @return bool - */ - public function getUseIpAliases() - { - return $this->use_ip_aliases; - } - - /** - * Whether alias IPs will be used for pod IPs in the cluster. - * This is used in conjunction with use_routes. It cannot - * be true if use_routes is true. If both use_ip_aliases and use_routes are - * false, then the server picks the default IP allocation mode - * - * Generated from protobuf field bool use_ip_aliases = 1; - * @param bool $var - * @return $this - */ - public function setUseIpAliases($var) - { - GPBUtil::checkBool($var); - $this->use_ip_aliases = $var; - - return $this; - } - - /** - * Whether a new subnetwork will be created automatically for the cluster. - * This field is only applicable when `use_ip_aliases` is true. - * - * Generated from protobuf field bool create_subnetwork = 2; - * @return bool - */ - public function getCreateSubnetwork() - { - return $this->create_subnetwork; - } - - /** - * Whether a new subnetwork will be created automatically for the cluster. - * This field is only applicable when `use_ip_aliases` is true. - * - * Generated from protobuf field bool create_subnetwork = 2; - * @param bool $var - * @return $this - */ - public function setCreateSubnetwork($var) - { - GPBUtil::checkBool($var); - $this->create_subnetwork = $var; - - return $this; - } - - /** - * A custom subnetwork name to be used if `create_subnetwork` is true. If - * this field is empty, then an automatic name will be chosen for the new - * subnetwork. - * - * Generated from protobuf field string subnetwork_name = 3; - * @return string - */ - public function getSubnetworkName() - { - return $this->subnetwork_name; - } - - /** - * A custom subnetwork name to be used if `create_subnetwork` is true. If - * this field is empty, then an automatic name will be chosen for the new - * subnetwork. - * - * Generated from protobuf field string subnetwork_name = 3; - * @param string $var - * @return $this - */ - public function setSubnetworkName($var) - { - GPBUtil::checkString($var, True); - $this->subnetwork_name = $var; - - return $this; - } - - /** - * This field is deprecated, use cluster_ipv4_cidr_block. - * - * Generated from protobuf field string cluster_ipv4_cidr = 4 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterIpv4Cidr() - { - @trigger_error('cluster_ipv4_cidr is deprecated.', E_USER_DEPRECATED); - return $this->cluster_ipv4_cidr; - } - - /** - * This field is deprecated, use cluster_ipv4_cidr_block. - * - * Generated from protobuf field string cluster_ipv4_cidr = 4 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterIpv4Cidr($var) - { - @trigger_error('cluster_ipv4_cidr is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_ipv4_cidr = $var; - - return $this; - } - - /** - * This field is deprecated, use node_ipv4_cidr_block. - * - * Generated from protobuf field string node_ipv4_cidr = 5 [deprecated = true]; - * @return string - * @deprecated - */ - public function getNodeIpv4Cidr() - { - @trigger_error('node_ipv4_cidr is deprecated.', E_USER_DEPRECATED); - return $this->node_ipv4_cidr; - } - - /** - * This field is deprecated, use node_ipv4_cidr_block. - * - * Generated from protobuf field string node_ipv4_cidr = 5 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setNodeIpv4Cidr($var) - { - @trigger_error('node_ipv4_cidr is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->node_ipv4_cidr = $var; - - return $this; - } - - /** - * This field is deprecated, use services_ipv4_cidr_block. - * - * Generated from protobuf field string services_ipv4_cidr = 6 [deprecated = true]; - * @return string - * @deprecated - */ - public function getServicesIpv4Cidr() - { - @trigger_error('services_ipv4_cidr is deprecated.', E_USER_DEPRECATED); - return $this->services_ipv4_cidr; - } - - /** - * This field is deprecated, use services_ipv4_cidr_block. - * - * Generated from protobuf field string services_ipv4_cidr = 6 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setServicesIpv4Cidr($var) - { - @trigger_error('services_ipv4_cidr is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->services_ipv4_cidr = $var; - - return $this; - } - - /** - * The name of the secondary range to be used for the cluster CIDR - * block. The secondary range will be used for pod IP - * addresses. This must be an existing secondary range associated - * with the cluster subnetwork. - * This field is only applicable with use_ip_aliases is true and - * create_subnetwork is false. - * - * Generated from protobuf field string cluster_secondary_range_name = 7; - * @return string - */ - public function getClusterSecondaryRangeName() - { - return $this->cluster_secondary_range_name; - } - - /** - * The name of the secondary range to be used for the cluster CIDR - * block. The secondary range will be used for pod IP - * addresses. This must be an existing secondary range associated - * with the cluster subnetwork. - * This field is only applicable with use_ip_aliases is true and - * create_subnetwork is false. - * - * Generated from protobuf field string cluster_secondary_range_name = 7; - * @param string $var - * @return $this - */ - public function setClusterSecondaryRangeName($var) - { - GPBUtil::checkString($var, True); - $this->cluster_secondary_range_name = $var; - - return $this; - } - - /** - * The name of the secondary range to be used as for the services - * CIDR block. The secondary range will be used for service - * ClusterIPs. This must be an existing secondary range associated - * with the cluster subnetwork. - * This field is only applicable with use_ip_aliases is true and - * create_subnetwork is false. - * - * Generated from protobuf field string services_secondary_range_name = 8; - * @return string - */ - public function getServicesSecondaryRangeName() - { - return $this->services_secondary_range_name; - } - - /** - * The name of the secondary range to be used as for the services - * CIDR block. The secondary range will be used for service - * ClusterIPs. This must be an existing secondary range associated - * with the cluster subnetwork. - * This field is only applicable with use_ip_aliases is true and - * create_subnetwork is false. - * - * Generated from protobuf field string services_secondary_range_name = 8; - * @param string $var - * @return $this - */ - public function setServicesSecondaryRangeName($var) - { - GPBUtil::checkString($var, True); - $this->services_secondary_range_name = $var; - - return $this; - } - - /** - * The IP address range for the cluster pod IPs. If this field is set, then - * `cluster.cluster_ipv4_cidr` must be left blank. - * This field is only applicable when `use_ip_aliases` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * Generated from protobuf field string cluster_ipv4_cidr_block = 9; - * @return string - */ - public function getClusterIpv4CidrBlock() - { - return $this->cluster_ipv4_cidr_block; - } - - /** - * The IP address range for the cluster pod IPs. If this field is set, then - * `cluster.cluster_ipv4_cidr` must be left blank. - * This field is only applicable when `use_ip_aliases` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * Generated from protobuf field string cluster_ipv4_cidr_block = 9; - * @param string $var - * @return $this - */ - public function setClusterIpv4CidrBlock($var) - { - GPBUtil::checkString($var, True); - $this->cluster_ipv4_cidr_block = $var; - - return $this; - } - - /** - * The IP address range of the instance IPs in this cluster. - * This is applicable only if `create_subnetwork` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * Generated from protobuf field string node_ipv4_cidr_block = 10; - * @return string - */ - public function getNodeIpv4CidrBlock() - { - return $this->node_ipv4_cidr_block; - } - - /** - * The IP address range of the instance IPs in this cluster. - * This is applicable only if `create_subnetwork` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * Generated from protobuf field string node_ipv4_cidr_block = 10; - * @param string $var - * @return $this - */ - public function setNodeIpv4CidrBlock($var) - { - GPBUtil::checkString($var, True); - $this->node_ipv4_cidr_block = $var; - - return $this; - } - - /** - * The IP address range of the services IPs in this cluster. If blank, a range - * will be automatically chosen with the default size. - * This field is only applicable when `use_ip_aliases` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * Generated from protobuf field string services_ipv4_cidr_block = 11; - * @return string - */ - public function getServicesIpv4CidrBlock() - { - return $this->services_ipv4_cidr_block; - } - - /** - * The IP address range of the services IPs in this cluster. If blank, a range - * will be automatically chosen with the default size. - * This field is only applicable when `use_ip_aliases` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * Generated from protobuf field string services_ipv4_cidr_block = 11; - * @param string $var - * @return $this - */ - public function setServicesIpv4CidrBlock($var) - { - GPBUtil::checkString($var, True); - $this->services_ipv4_cidr_block = $var; - - return $this; - } - - /** - * The IP address range of the Cloud TPUs in this cluster. If unspecified, a - * range will be automatically chosen with the default size. - * This field is only applicable when `use_ip_aliases` is true. - * If unspecified, the range will use the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * Generated from protobuf field string tpu_ipv4_cidr_block = 13; - * @return string - */ - public function getTpuIpv4CidrBlock() - { - return $this->tpu_ipv4_cidr_block; - } - - /** - * The IP address range of the Cloud TPUs in this cluster. If unspecified, a - * range will be automatically chosen with the default size. - * This field is only applicable when `use_ip_aliases` is true. - * If unspecified, the range will use the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * Generated from protobuf field string tpu_ipv4_cidr_block = 13; - * @param string $var - * @return $this - */ - public function setTpuIpv4CidrBlock($var) - { - GPBUtil::checkString($var, True); - $this->tpu_ipv4_cidr_block = $var; - - return $this; - } - - /** - * Whether routes will be used for pod IPs in the cluster. - * This is used in conjunction with use_ip_aliases. It cannot be true if - * use_ip_aliases is true. If both use_ip_aliases and use_routes are false, - * then the server picks the default IP allocation mode - * - * Generated from protobuf field bool use_routes = 15; - * @return bool - */ - public function getUseRoutes() - { - return $this->use_routes; - } - - /** - * Whether routes will be used for pod IPs in the cluster. - * This is used in conjunction with use_ip_aliases. It cannot be true if - * use_ip_aliases is true. If both use_ip_aliases and use_routes are false, - * then the server picks the default IP allocation mode - * - * Generated from protobuf field bool use_routes = 15; - * @param bool $var - * @return $this - */ - public function setUseRoutes($var) - { - GPBUtil::checkBool($var); - $this->use_routes = $var; - - return $this; - } - - /** - * The IP stack type of the cluster - * - * Generated from protobuf field .google.container.v1.StackType stack_type = 16; - * @return int - */ - public function getStackType() - { - return $this->stack_type; - } - - /** - * The IP stack type of the cluster - * - * Generated from protobuf field .google.container.v1.StackType stack_type = 16; - * @param int $var - * @return $this - */ - public function setStackType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\StackType::class); - $this->stack_type = $var; - - return $this; - } - - /** - * The ipv6 access type (internal or external) when create_subnetwork is true - * - * Generated from protobuf field .google.container.v1.IPv6AccessType ipv6_access_type = 17; - * @return int - */ - public function getIpv6AccessType() - { - return $this->ipv6_access_type; - } - - /** - * The ipv6 access type (internal or external) when create_subnetwork is true - * - * Generated from protobuf field .google.container.v1.IPv6AccessType ipv6_access_type = 17; - * @param int $var - * @return $this - */ - public function setIpv6AccessType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\IPv6AccessType::class); - $this->ipv6_access_type = $var; - - return $this; - } - - /** - * [PRIVATE FIELD] - * Pod CIDR size overprovisioning config for the cluster. - * Pod CIDR size per node depends on max_pods_per_node. By default, the value - * of max_pods_per_node is doubled and then rounded off to next power of 2 to - * get the size of pod CIDR block per node. - * Example: max_pods_per_node of 30 would result in 64 IPs (/26). - * This config can disable the doubling of IPs (we still round off to next - * power of 2) - * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when - * overprovisioning is disabled. - * - * Generated from protobuf field .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; - * @return \Google\Cloud\Container\V1\PodCIDROverprovisionConfig|null - */ - public function getPodCidrOverprovisionConfig() - { - return $this->pod_cidr_overprovision_config; - } - - public function hasPodCidrOverprovisionConfig() - { - return isset($this->pod_cidr_overprovision_config); - } - - public function clearPodCidrOverprovisionConfig() - { - unset($this->pod_cidr_overprovision_config); - } - - /** - * [PRIVATE FIELD] - * Pod CIDR size overprovisioning config for the cluster. - * Pod CIDR size per node depends on max_pods_per_node. By default, the value - * of max_pods_per_node is doubled and then rounded off to next power of 2 to - * get the size of pod CIDR block per node. - * Example: max_pods_per_node of 30 would result in 64 IPs (/26). - * This config can disable the doubling of IPs (we still round off to next - * power of 2) - * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when - * overprovisioning is disabled. - * - * Generated from protobuf field .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; - * @param \Google\Cloud\Container\V1\PodCIDROverprovisionConfig $var - * @return $this - */ - public function setPodCidrOverprovisionConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\PodCIDROverprovisionConfig::class); - $this->pod_cidr_overprovision_config = $var; - - return $this; - } - - /** - * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and - * pods. - * - * Generated from protobuf field string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getSubnetIpv6CidrBlock() - { - return $this->subnet_ipv6_cidr_block; - } - - /** - * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and - * pods. - * - * Generated from protobuf field string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setSubnetIpv6CidrBlock($var) - { - GPBUtil::checkString($var, True); - $this->subnet_ipv6_cidr_block = $var; - - return $this; - } - - /** - * Output only. [Output only] The services IPv6 CIDR block for the cluster. - * - * Generated from protobuf field string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getServicesIpv6CidrBlock() - { - return $this->services_ipv6_cidr_block; - } - - /** - * Output only. [Output only] The services IPv6 CIDR block for the cluster. - * - * Generated from protobuf field string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setServicesIpv6CidrBlock($var) - { - GPBUtil::checkString($var, True); - $this->services_ipv6_cidr_block = $var; - - return $this; - } - - /** - * Output only. [Output only] The additional pod ranges that are added to the - * cluster. These pod ranges can be used by new node pools to allocate pod IPs - * automatically. Once the range is removed it will not show up in - * IPAllocationPolicy. - * - * Generated from protobuf field .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Container\V1\AdditionalPodRangesConfig|null - */ - public function getAdditionalPodRangesConfig() - { - return $this->additional_pod_ranges_config; - } - - public function hasAdditionalPodRangesConfig() - { - return isset($this->additional_pod_ranges_config); - } - - public function clearAdditionalPodRangesConfig() - { - unset($this->additional_pod_ranges_config); - } - - /** - * Output only. [Output only] The additional pod ranges that are added to the - * cluster. These pod ranges can be used by new node pools to allocate pod IPs - * automatically. Once the range is removed it will not show up in - * IPAllocationPolicy. - * - * Generated from protobuf field .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Container\V1\AdditionalPodRangesConfig $var - * @return $this - */ - public function setAdditionalPodRangesConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AdditionalPodRangesConfig::class); - $this->additional_pod_ranges_config = $var; - - return $this; - } - - /** - * Output only. [Output only] The utilization of the cluster default IPv4 - * range for the pod. The ratio is Usage/[Total number of IPs in the secondary - * range], Usage=numNodes*numZones*podIPsPerNode. - * - * Generated from protobuf field double default_pod_ipv4_range_utilization = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getDefaultPodIpv4RangeUtilization() - { - return $this->default_pod_ipv4_range_utilization; - } - - /** - * Output only. [Output only] The utilization of the cluster default IPv4 - * range for the pod. The ratio is Usage/[Total number of IPs in the secondary - * range], Usage=numNodes*numZones*podIPsPerNode. - * - * Generated from protobuf field double default_pod_ipv4_range_utilization = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setDefaultPodIpv4RangeUtilization($var) - { - GPBUtil::checkDouble($var); - $this->default_pod_ipv4_range_utilization = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPv6AccessType.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPv6AccessType.php deleted file mode 100644 index 1b4be8e42d32..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPv6AccessType.php +++ /dev/null @@ -1,61 +0,0 @@ -google.container.v1.IPv6AccessType - */ -class IPv6AccessType -{ - /** - * Default value, will be defaulted as type external. - * - * Generated from protobuf enum IPV6_ACCESS_TYPE_UNSPECIFIED = 0; - */ - const IPV6_ACCESS_TYPE_UNSPECIFIED = 0; - /** - * Access type internal (all v6 addresses are internal IPs) - * - * Generated from protobuf enum INTERNAL = 1; - */ - const INTERNAL = 1; - /** - * Access type external (all v6 addresses are external IPs) - * - * Generated from protobuf enum EXTERNAL = 2; - */ - const EXTERNAL = 2; - - private static $valueToName = [ - self::IPV6_ACCESS_TYPE_UNSPECIFIED => 'IPV6_ACCESS_TYPE_UNSPECIFIED', - self::INTERNAL => 'INTERNAL', - self::EXTERNAL => 'EXTERNAL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IdentityServiceConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IdentityServiceConfig.php deleted file mode 100644 index 61767b760f86..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IdentityServiceConfig.php +++ /dev/null @@ -1,68 +0,0 @@ -google.container.v1.IdentityServiceConfig - */ -class IdentityServiceConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether to enable the Identity Service component - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether to enable the Identity Service component - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether to enable the Identity Service component - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether to enable the Identity Service component - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/InTransitEncryptionConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/InTransitEncryptionConfig.php deleted file mode 100644 index 67f6b5c4264a..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/InTransitEncryptionConfig.php +++ /dev/null @@ -1,62 +0,0 @@ -google.container.v1.InTransitEncryptionConfig - */ -class InTransitEncryptionConfig -{ - /** - * Unspecified, will be inferred as default - - * IN_TRANSIT_ENCRYPTION_UNSPECIFIED. - * - * Generated from protobuf enum IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED = 0; - */ - const IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED = 0; - /** - * In-transit encryption is disabled. - * - * Generated from protobuf enum IN_TRANSIT_ENCRYPTION_DISABLED = 1; - */ - const IN_TRANSIT_ENCRYPTION_DISABLED = 1; - /** - * Data in-transit is encrypted using inter-node transparent encryption. - * - * Generated from protobuf enum IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT = 2; - */ - const IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT = 2; - - private static $valueToName = [ - self::IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED => 'IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED', - self::IN_TRANSIT_ENCRYPTION_DISABLED => 'IN_TRANSIT_ENCRYPTION_DISABLED', - self::IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT => 'IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IntraNodeVisibilityConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IntraNodeVisibilityConfig.php deleted file mode 100644 index 944edc0cbbde..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IntraNodeVisibilityConfig.php +++ /dev/null @@ -1,68 +0,0 @@ -google.container.v1.IntraNodeVisibilityConfig - */ -class IntraNodeVisibilityConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Enables intra node visibility for this cluster. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Enables intra node visibility for this cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Enables intra node visibility for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Enables intra node visibility for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Jwk.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Jwk.php deleted file mode 100644 index b35d6423015b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Jwk.php +++ /dev/null @@ -1,339 +0,0 @@ -google.container.v1.Jwk - */ -class Jwk extends \Google\Protobuf\Internal\Message -{ - /** - * Key Type. - * - * Generated from protobuf field string kty = 1; - */ - protected $kty = ''; - /** - * Algorithm. - * - * Generated from protobuf field string alg = 2; - */ - protected $alg = ''; - /** - * Permitted uses for the public keys. - * - * Generated from protobuf field string use = 3; - */ - protected $use = ''; - /** - * Key ID. - * - * Generated from protobuf field string kid = 4; - */ - protected $kid = ''; - /** - * Used for RSA keys. - * - * Generated from protobuf field string n = 5; - */ - protected $n = ''; - /** - * Used for RSA keys. - * - * Generated from protobuf field string e = 6; - */ - protected $e = ''; - /** - * Used for ECDSA keys. - * - * Generated from protobuf field string x = 7; - */ - protected $x = ''; - /** - * Used for ECDSA keys. - * - * Generated from protobuf field string y = 8; - */ - protected $y = ''; - /** - * Used for ECDSA keys. - * - * Generated from protobuf field string crv = 9; - */ - protected $crv = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $kty - * Key Type. - * @type string $alg - * Algorithm. - * @type string $use - * Permitted uses for the public keys. - * @type string $kid - * Key ID. - * @type string $n - * Used for RSA keys. - * @type string $e - * Used for RSA keys. - * @type string $x - * Used for ECDSA keys. - * @type string $y - * Used for ECDSA keys. - * @type string $crv - * Used for ECDSA keys. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Key Type. - * - * Generated from protobuf field string kty = 1; - * @return string - */ - public function getKty() - { - return $this->kty; - } - - /** - * Key Type. - * - * Generated from protobuf field string kty = 1; - * @param string $var - * @return $this - */ - public function setKty($var) - { - GPBUtil::checkString($var, True); - $this->kty = $var; - - return $this; - } - - /** - * Algorithm. - * - * Generated from protobuf field string alg = 2; - * @return string - */ - public function getAlg() - { - return $this->alg; - } - - /** - * Algorithm. - * - * Generated from protobuf field string alg = 2; - * @param string $var - * @return $this - */ - public function setAlg($var) - { - GPBUtil::checkString($var, True); - $this->alg = $var; - - return $this; - } - - /** - * Permitted uses for the public keys. - * - * Generated from protobuf field string use = 3; - * @return string - */ - public function getUse() - { - return $this->use; - } - - /** - * Permitted uses for the public keys. - * - * Generated from protobuf field string use = 3; - * @param string $var - * @return $this - */ - public function setUse($var) - { - GPBUtil::checkString($var, True); - $this->use = $var; - - return $this; - } - - /** - * Key ID. - * - * Generated from protobuf field string kid = 4; - * @return string - */ - public function getKid() - { - return $this->kid; - } - - /** - * Key ID. - * - * Generated from protobuf field string kid = 4; - * @param string $var - * @return $this - */ - public function setKid($var) - { - GPBUtil::checkString($var, True); - $this->kid = $var; - - return $this; - } - - /** - * Used for RSA keys. - * - * Generated from protobuf field string n = 5; - * @return string - */ - public function getN() - { - return $this->n; - } - - /** - * Used for RSA keys. - * - * Generated from protobuf field string n = 5; - * @param string $var - * @return $this - */ - public function setN($var) - { - GPBUtil::checkString($var, True); - $this->n = $var; - - return $this; - } - - /** - * Used for RSA keys. - * - * Generated from protobuf field string e = 6; - * @return string - */ - public function getE() - { - return $this->e; - } - - /** - * Used for RSA keys. - * - * Generated from protobuf field string e = 6; - * @param string $var - * @return $this - */ - public function setE($var) - { - GPBUtil::checkString($var, True); - $this->e = $var; - - return $this; - } - - /** - * Used for ECDSA keys. - * - * Generated from protobuf field string x = 7; - * @return string - */ - public function getX() - { - return $this->x; - } - - /** - * Used for ECDSA keys. - * - * Generated from protobuf field string x = 7; - * @param string $var - * @return $this - */ - public function setX($var) - { - GPBUtil::checkString($var, True); - $this->x = $var; - - return $this; - } - - /** - * Used for ECDSA keys. - * - * Generated from protobuf field string y = 8; - * @return string - */ - public function getY() - { - return $this->y; - } - - /** - * Used for ECDSA keys. - * - * Generated from protobuf field string y = 8; - * @param string $var - * @return $this - */ - public function setY($var) - { - GPBUtil::checkString($var, True); - $this->y = $var; - - return $this; - } - - /** - * Used for ECDSA keys. - * - * Generated from protobuf field string crv = 9; - * @return string - */ - public function getCrv() - { - return $this->crv; - } - - /** - * Used for ECDSA keys. - * - * Generated from protobuf field string crv = 9; - * @param string $var - * @return $this - */ - public function setCrv($var) - { - GPBUtil::checkString($var, True); - $this->crv = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/K8sBetaAPIConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/K8sBetaAPIConfig.php deleted file mode 100644 index f3873962eab7..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/K8sBetaAPIConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.K8sBetaAPIConfig - */ -class K8sBetaAPIConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Enabled k8s beta APIs. - * - * Generated from protobuf field repeated string enabled_apis = 1; - */ - private $enabled_apis; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $enabled_apis - * Enabled k8s beta APIs. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Enabled k8s beta APIs. - * - * Generated from protobuf field repeated string enabled_apis = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEnabledApis() - { - return $this->enabled_apis; - } - - /** - * Enabled k8s beta APIs. - * - * Generated from protobuf field repeated string enabled_apis = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEnabledApis($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->enabled_apis = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/KubernetesDashboard.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/KubernetesDashboard.php deleted file mode 100644 index 62ffe2fdca29..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/KubernetesDashboard.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.KubernetesDashboard - */ -class KubernetesDashboard extends \Google\Protobuf\Internal\Message -{ - /** - * Whether the Kubernetes Dashboard is enabled for this cluster. - * - * Generated from protobuf field bool disabled = 1; - */ - protected $disabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $disabled - * Whether the Kubernetes Dashboard is enabled for this cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether the Kubernetes Dashboard is enabled for this cluster. - * - * Generated from protobuf field bool disabled = 1; - * @return bool - */ - public function getDisabled() - { - return $this->disabled; - } - - /** - * Whether the Kubernetes Dashboard is enabled for this cluster. - * - * Generated from protobuf field bool disabled = 1; - * @param bool $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkBool($var); - $this->disabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LegacyAbac.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LegacyAbac.php deleted file mode 100644 index 703bd19cfb95..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LegacyAbac.php +++ /dev/null @@ -1,80 +0,0 @@ -google.container.v1.LegacyAbac - */ -class LegacyAbac extends \Google\Protobuf\Internal\Message -{ - /** - * Whether the ABAC authorizer is enabled for this cluster. When enabled, - * identities in the system, including service accounts, nodes, and - * controllers, will have statically granted permissions beyond those - * provided by the RBAC configuration or IAM. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether the ABAC authorizer is enabled for this cluster. When enabled, - * identities in the system, including service accounts, nodes, and - * controllers, will have statically granted permissions beyond those - * provided by the RBAC configuration or IAM. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether the ABAC authorizer is enabled for this cluster. When enabled, - * identities in the system, including service accounts, nodes, and - * controllers, will have statically granted permissions beyond those - * provided by the RBAC configuration or IAM. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether the ABAC authorizer is enabled for this cluster. When enabled, - * identities in the system, including service accounts, nodes, and - * controllers, will have statically granted permissions beyond those - * provided by the RBAC configuration or IAM. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig.php deleted file mode 100644 index 523e5541d78d..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig.php +++ /dev/null @@ -1,153 +0,0 @@ -google.container.v1.LinuxNodeConfig - */ -class LinuxNodeConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The Linux kernel parameters to be applied to the nodes and all pods running - * on the nodes. - * The following parameters are supported. - * net.core.busy_poll - * net.core.busy_read - * net.core.netdev_max_backlog - * net.core.rmem_max - * net.core.wmem_default - * net.core.wmem_max - * net.core.optmem_max - * net.core.somaxconn - * net.ipv4.tcp_rmem - * net.ipv4.tcp_wmem - * net.ipv4.tcp_tw_reuse - * - * Generated from protobuf field map sysctls = 1; - */ - private $sysctls; - /** - * cgroup_mode specifies the cgroup mode to be used on the node. - * - * Generated from protobuf field .google.container.v1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; - */ - protected $cgroup_mode = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\MapField $sysctls - * The Linux kernel parameters to be applied to the nodes and all pods running - * on the nodes. - * The following parameters are supported. - * net.core.busy_poll - * net.core.busy_read - * net.core.netdev_max_backlog - * net.core.rmem_max - * net.core.wmem_default - * net.core.wmem_max - * net.core.optmem_max - * net.core.somaxconn - * net.ipv4.tcp_rmem - * net.ipv4.tcp_wmem - * net.ipv4.tcp_tw_reuse - * @type int $cgroup_mode - * cgroup_mode specifies the cgroup mode to be used on the node. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The Linux kernel parameters to be applied to the nodes and all pods running - * on the nodes. - * The following parameters are supported. - * net.core.busy_poll - * net.core.busy_read - * net.core.netdev_max_backlog - * net.core.rmem_max - * net.core.wmem_default - * net.core.wmem_max - * net.core.optmem_max - * net.core.somaxconn - * net.ipv4.tcp_rmem - * net.ipv4.tcp_wmem - * net.ipv4.tcp_tw_reuse - * - * Generated from protobuf field map sysctls = 1; - * @return \Google\Protobuf\Internal\MapField - */ - public function getSysctls() - { - return $this->sysctls; - } - - /** - * The Linux kernel parameters to be applied to the nodes and all pods running - * on the nodes. - * The following parameters are supported. - * net.core.busy_poll - * net.core.busy_read - * net.core.netdev_max_backlog - * net.core.rmem_max - * net.core.wmem_default - * net.core.wmem_max - * net.core.optmem_max - * net.core.somaxconn - * net.ipv4.tcp_rmem - * net.ipv4.tcp_wmem - * net.ipv4.tcp_tw_reuse - * - * Generated from protobuf field map sysctls = 1; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setSysctls($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->sysctls = $arr; - - return $this; - } - - /** - * cgroup_mode specifies the cgroup mode to be used on the node. - * - * Generated from protobuf field .google.container.v1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; - * @return int - */ - public function getCgroupMode() - { - return $this->cgroup_mode; - } - - /** - * cgroup_mode specifies the cgroup mode to be used on the node. - * - * Generated from protobuf field .google.container.v1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; - * @param int $var - * @return $this - */ - public function setCgroupMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\LinuxNodeConfig\CgroupMode::class); - $this->cgroup_mode = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig/CgroupMode.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig/CgroupMode.php deleted file mode 100644 index 677f044abfac..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig/CgroupMode.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.LinuxNodeConfig.CgroupMode - */ -class CgroupMode -{ - /** - * CGROUP_MODE_UNSPECIFIED is when unspecified cgroup configuration is used. - * The default for the GKE node OS image will be used. - * - * Generated from protobuf enum CGROUP_MODE_UNSPECIFIED = 0; - */ - const CGROUP_MODE_UNSPECIFIED = 0; - /** - * CGROUP_MODE_V1 specifies to use cgroupv1 for the cgroup configuration on - * the node image. - * - * Generated from protobuf enum CGROUP_MODE_V1 = 1; - */ - const CGROUP_MODE_V1 = 1; - /** - * CGROUP_MODE_V2 specifies to use cgroupv2 for the cgroup configuration on - * the node image. - * - * Generated from protobuf enum CGROUP_MODE_V2 = 2; - */ - const CGROUP_MODE_V2 = 2; - - private static $valueToName = [ - self::CGROUP_MODE_UNSPECIFIED => 'CGROUP_MODE_UNSPECIFIED', - self::CGROUP_MODE_V1 => 'CGROUP_MODE_V1', - self::CGROUP_MODE_V2 => 'CGROUP_MODE_V2', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CgroupMode::class, \Google\Cloud\Container\V1\LinuxNodeConfig_CgroupMode::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListClustersRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListClustersRequest.php deleted file mode 100644 index c106b440f234..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListClustersRequest.php +++ /dev/null @@ -1,208 +0,0 @@ -google.container.v1.ListClustersRequest - */ -class ListClustersRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides, or "-" for all zones. This field has been deprecated and - * replaced by the parent field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * The parent (project and location) where the clusters will be listed. - * Specified in the format `projects/*/locations/*`. - * Location "-" matches all zones and all regions. - * - * Generated from protobuf field string parent = 4; - */ - protected $parent = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides, or "-" for all zones. This field has been deprecated and - * replaced by the parent field. - * - * @return \Google\Cloud\Container\V1\ListClustersRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone); - } - - /** - * @param string $parent The parent (project and location) where the clusters will be listed. - * Specified in the format `projects/*/locations/*`. - * Location "-" matches all zones and all regions. - * - * @return \Google\Cloud\Container\V1\ListClustersRequest - * - * @experimental - */ - public static function buildFromParent(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides, or "-" for all zones. This field has been deprecated and - * replaced by the parent field. - * @type string $parent - * The parent (project and location) where the clusters will be listed. - * Specified in the format `projects/*/locations/*`. - * Location "-" matches all zones and all regions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides, or "-" for all zones. This field has been deprecated and - * replaced by the parent field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides, or "-" for all zones. This field has been deprecated and - * replaced by the parent field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * The parent (project and location) where the clusters will be listed. - * Specified in the format `projects/*/locations/*`. - * Location "-" matches all zones and all regions. - * - * Generated from protobuf field string parent = 4; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The parent (project and location) where the clusters will be listed. - * Specified in the format `projects/*/locations/*`. - * Location "-" matches all zones and all regions. - * - * Generated from protobuf field string parent = 4; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListClustersResponse.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListClustersResponse.php deleted file mode 100644 index 4d8a2365a5c0..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListClustersResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -google.container.v1.ListClustersResponse - */ -class ListClustersResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of clusters in the project in the specified zone, or - * across all ones. - * - * Generated from protobuf field repeated .google.container.v1.Cluster clusters = 1; - */ - private $clusters; - /** - * If any zones are listed here, the list of clusters returned - * may be missing those zones. - * - * Generated from protobuf field repeated string missing_zones = 2; - */ - private $missing_zones; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Container\V1\Cluster>|\Google\Protobuf\Internal\RepeatedField $clusters - * A list of clusters in the project in the specified zone, or - * across all ones. - * @type array|\Google\Protobuf\Internal\RepeatedField $missing_zones - * If any zones are listed here, the list of clusters returned - * may be missing those zones. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * A list of clusters in the project in the specified zone, or - * across all ones. - * - * Generated from protobuf field repeated .google.container.v1.Cluster clusters = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getClusters() - { - return $this->clusters; - } - - /** - * A list of clusters in the project in the specified zone, or - * across all ones. - * - * Generated from protobuf field repeated .google.container.v1.Cluster clusters = 1; - * @param array<\Google\Cloud\Container\V1\Cluster>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setClusters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\Cluster::class); - $this->clusters = $arr; - - return $this; - } - - /** - * If any zones are listed here, the list of clusters returned - * may be missing those zones. - * - * Generated from protobuf field repeated string missing_zones = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMissingZones() - { - return $this->missing_zones; - } - - /** - * If any zones are listed here, the list of clusters returned - * may be missing those zones. - * - * Generated from protobuf field repeated string missing_zones = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMissingZones($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->missing_zones = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsRequest.php deleted file mode 100644 index 28cf9ef5990a..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsRequest.php +++ /dev/null @@ -1,249 +0,0 @@ -google.container.v1.ListNodePoolsRequest - */ -class ListNodePoolsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * The parent (project, location, cluster name) where the node pools will be - * listed. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string parent = 5; - */ - protected $parent = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * @param string $clusterId Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the parent field. - * - * @return \Google\Cloud\Container\V1\ListNodePoolsRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $clusterId): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId); - } - - /** - * @param string $parent The parent (project, location, cluster name) where the node pools will be - * listed. Specified in the format `projects/*/locations/*/clusters/*`. - * - * @return \Google\Cloud\Container\V1\ListNodePoolsRequest - * - * @experimental - */ - public static function buildFromParent(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the parent field. - * @type string $parent - * The parent (project, location, cluster name) where the node pools will be - * listed. Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * The parent (project, location, cluster name) where the node pools will be - * listed. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string parent = 5; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The parent (project, location, cluster name) where the node pools will be - * listed. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string parent = 5; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsResponse.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsResponse.php deleted file mode 100644 index abf30ec49198..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.ListNodePoolsResponse - */ -class ListNodePoolsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of node pools for a cluster. - * - * Generated from protobuf field repeated .google.container.v1.NodePool node_pools = 1; - */ - private $node_pools; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Container\V1\NodePool>|\Google\Protobuf\Internal\RepeatedField $node_pools - * A list of node pools for a cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * A list of node pools for a cluster. - * - * Generated from protobuf field repeated .google.container.v1.NodePool node_pools = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNodePools() - { - return $this->node_pools; - } - - /** - * A list of node pools for a cluster. - * - * Generated from protobuf field repeated .google.container.v1.NodePool node_pools = 1; - * @param array<\Google\Cloud\Container\V1\NodePool>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNodePools($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\NodePool::class); - $this->node_pools = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsRequest.php deleted file mode 100644 index 461d0d27a66c..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsRequest.php +++ /dev/null @@ -1,208 +0,0 @@ -google.container.v1.ListOperationsRequest - */ -class ListOperationsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) to return - * operations for, or `-` for all zones. This field has been deprecated and - * replaced by the parent field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * The parent (project and location) where the operations will be listed. - * Specified in the format `projects/*/locations/*`. - * Location "-" matches all zones and all regions. - * - * Generated from protobuf field string parent = 4; - */ - protected $parent = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) to return - * operations for, or `-` for all zones. This field has been deprecated and - * replaced by the parent field. - * - * @return \Google\Cloud\Container\V1\ListOperationsRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone); - } - - /** - * @param string $parent The parent (project and location) where the operations will be listed. - * Specified in the format `projects/*/locations/*`. - * Location "-" matches all zones and all regions. - * - * @return \Google\Cloud\Container\V1\ListOperationsRequest - * - * @experimental - */ - public static function buildFromParent(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) to return - * operations for, or `-` for all zones. This field has been deprecated and - * replaced by the parent field. - * @type string $parent - * The parent (project and location) where the operations will be listed. - * Specified in the format `projects/*/locations/*`. - * Location "-" matches all zones and all regions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) to return - * operations for, or `-` for all zones. This field has been deprecated and - * replaced by the parent field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) to return - * operations for, or `-` for all zones. This field has been deprecated and - * replaced by the parent field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * The parent (project and location) where the operations will be listed. - * Specified in the format `projects/*/locations/*`. - * Location "-" matches all zones and all regions. - * - * Generated from protobuf field string parent = 4; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The parent (project and location) where the operations will be listed. - * Specified in the format `projects/*/locations/*`. - * Location "-" matches all zones and all regions. - * - * Generated from protobuf field string parent = 4; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsResponse.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsResponse.php deleted file mode 100644 index 82eb8e28098f..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.container.v1.ListOperationsResponse - */ -class ListOperationsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of operations in the project in the specified zone. - * - * Generated from protobuf field repeated .google.container.v1.Operation operations = 1; - */ - private $operations; - /** - * If any zones are listed here, the list of operations returned - * may be missing the operations from those zones. - * - * Generated from protobuf field repeated string missing_zones = 2; - */ - private $missing_zones; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Container\V1\Operation>|\Google\Protobuf\Internal\RepeatedField $operations - * A list of operations in the project in the specified zone. - * @type array|\Google\Protobuf\Internal\RepeatedField $missing_zones - * If any zones are listed here, the list of operations returned - * may be missing the operations from those zones. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * A list of operations in the project in the specified zone. - * - * Generated from protobuf field repeated .google.container.v1.Operation operations = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOperations() - { - return $this->operations; - } - - /** - * A list of operations in the project in the specified zone. - * - * Generated from protobuf field repeated .google.container.v1.Operation operations = 1; - * @param array<\Google\Cloud\Container\V1\Operation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOperations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\Operation::class); - $this->operations = $arr; - - return $this; - } - - /** - * If any zones are listed here, the list of operations returned - * may be missing the operations from those zones. - * - * Generated from protobuf field repeated string missing_zones = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMissingZones() - { - return $this->missing_zones; - } - - /** - * If any zones are listed here, the list of operations returned - * may be missing the operations from those zones. - * - * Generated from protobuf field repeated string missing_zones = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMissingZones($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->missing_zones = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksRequest.php deleted file mode 100644 index bae700cc3b00..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksRequest.php +++ /dev/null @@ -1,202 +0,0 @@ -google.container.v1.ListUsableSubnetworksRequest - */ -class ListUsableSubnetworksRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The parent project where subnetworks are usable. - * Specified in the format `projects/*`. - * - * Generated from protobuf field string parent = 1; - */ - protected $parent = ''; - /** - * Filtering currently only supports equality on the networkProjectId and must - * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` - * is the project which owns the listed subnetworks. This defaults to the - * parent project ID. - * - * Generated from protobuf field string filter = 2; - */ - protected $filter = ''; - /** - * The max number of results per page that should be returned. If the number - * of available results is larger than `page_size`, a `next_page_token` is - * returned which can be used to get the next page of results in subsequent - * requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - * - * Generated from protobuf field int32 page_size = 3; - */ - protected $page_size = 0; - /** - * Specifies a page token to use. Set this to the nextPageToken returned by - * previous list requests to get the next page of results. - * - * Generated from protobuf field string page_token = 4; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * The parent project where subnetworks are usable. - * Specified in the format `projects/*`. - * @type string $filter - * Filtering currently only supports equality on the networkProjectId and must - * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` - * is the project which owns the listed subnetworks. This defaults to the - * parent project ID. - * @type int $page_size - * The max number of results per page that should be returned. If the number - * of available results is larger than `page_size`, a `next_page_token` is - * returned which can be used to get the next page of results in subsequent - * requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - * @type string $page_token - * Specifies a page token to use. Set this to the nextPageToken returned by - * previous list requests to get the next page of results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The parent project where subnetworks are usable. - * Specified in the format `projects/*`. - * - * Generated from protobuf field string parent = 1; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The parent project where subnetworks are usable. - * Specified in the format `projects/*`. - * - * Generated from protobuf field string parent = 1; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Filtering currently only supports equality on the networkProjectId and must - * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` - * is the project which owns the listed subnetworks. This defaults to the - * parent project ID. - * - * Generated from protobuf field string filter = 2; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Filtering currently only supports equality on the networkProjectId and must - * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` - * is the project which owns the listed subnetworks. This defaults to the - * parent project ID. - * - * Generated from protobuf field string filter = 2; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * The max number of results per page that should be returned. If the number - * of available results is larger than `page_size`, a `next_page_token` is - * returned which can be used to get the next page of results in subsequent - * requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - * - * Generated from protobuf field int32 page_size = 3; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The max number of results per page that should be returned. If the number - * of available results is larger than `page_size`, a `next_page_token` is - * returned which can be used to get the next page of results in subsequent - * requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - * - * Generated from protobuf field int32 page_size = 3; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Specifies a page token to use. Set this to the nextPageToken returned by - * previous list requests to get the next page of results. - * - * Generated from protobuf field string page_token = 4; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Specifies a page token to use. Set this to the nextPageToken returned by - * previous list requests to get the next page of results. - * - * Generated from protobuf field string page_token = 4; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksResponse.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksResponse.php deleted file mode 100644 index 73913d380a2a..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -google.container.v1.ListUsableSubnetworksResponse - */ -class ListUsableSubnetworksResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of usable subnetworks in the specified network project. - * - * Generated from protobuf field repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - private $subnetworks; - /** - * This token allows you to get the next page of results for list requests. - * If the number of results is larger than `page_size`, use the - * `next_page_token` as a value for the query parameter `page_token` in the - * next request. The value will become empty when there are no more pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Container\V1\UsableSubnetwork>|\Google\Protobuf\Internal\RepeatedField $subnetworks - * A list of usable subnetworks in the specified network project. - * @type string $next_page_token - * This token allows you to get the next page of results for list requests. - * If the number of results is larger than `page_size`, use the - * `next_page_token` as a value for the query parameter `page_token` in the - * next request. The value will become empty when there are no more pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * A list of usable subnetworks in the specified network project. - * - * Generated from protobuf field repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSubnetworks() - { - return $this->subnetworks; - } - - /** - * A list of usable subnetworks in the specified network project. - * - * Generated from protobuf field repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - * @param array<\Google\Cloud\Container\V1\UsableSubnetwork>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSubnetworks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\UsableSubnetwork::class); - $this->subnetworks = $arr; - - return $this; - } - - /** - * This token allows you to get the next page of results for list requests. - * If the number of results is larger than `page_size`, use the - * `next_page_token` as a value for the query parameter `page_token` in the - * next request. The value will become empty when there are no more pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * This token allows you to get the next page of results for list requests. - * If the number of results is larger than `page_size`, use the - * `next_page_token` as a value for the query parameter `page_token` in the - * next request. The value will become empty when there are no more pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LocalNvmeSsdBlockConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LocalNvmeSsdBlockConfig.php deleted file mode 100644 index 66503b19b89a..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LocalNvmeSsdBlockConfig.php +++ /dev/null @@ -1,124 +0,0 @@ -google.container.v1.LocalNvmeSsdBlockConfig - */ -class LocalNvmeSsdBlockConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Number of local NVMe SSDs to use. The limit for this value is dependent - * upon the maximum number of disk available on a machine per zone. See: - * https://cloud.google.com/compute/docs/disks/local-ssd - * for more information. - * A zero (or unset) value has different meanings depending on machine type - * being used: - * 1. For pre-Gen3 machines, which support flexible numbers of local ssds, - * zero (or unset) means to disable using local SSDs as ephemeral storage. - * 2. For Gen3 machines which dictate a specific number of local ssds, zero - * (or unset) means to use the default number of local ssds that goes with - * that machine type. For example, for a c3-standard-8-lssd machine, 2 local - * ssds would be provisioned. For c3-standard-8 (which doesn't support local - * ssds), 0 will be provisioned. See - * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds - * for more info. - * - * Generated from protobuf field int32 local_ssd_count = 1; - */ - protected $local_ssd_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $local_ssd_count - * Number of local NVMe SSDs to use. The limit for this value is dependent - * upon the maximum number of disk available on a machine per zone. See: - * https://cloud.google.com/compute/docs/disks/local-ssd - * for more information. - * A zero (or unset) value has different meanings depending on machine type - * being used: - * 1. For pre-Gen3 machines, which support flexible numbers of local ssds, - * zero (or unset) means to disable using local SSDs as ephemeral storage. - * 2. For Gen3 machines which dictate a specific number of local ssds, zero - * (or unset) means to use the default number of local ssds that goes with - * that machine type. For example, for a c3-standard-8-lssd machine, 2 local - * ssds would be provisioned. For c3-standard-8 (which doesn't support local - * ssds), 0 will be provisioned. See - * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds - * for more info. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Number of local NVMe SSDs to use. The limit for this value is dependent - * upon the maximum number of disk available on a machine per zone. See: - * https://cloud.google.com/compute/docs/disks/local-ssd - * for more information. - * A zero (or unset) value has different meanings depending on machine type - * being used: - * 1. For pre-Gen3 machines, which support flexible numbers of local ssds, - * zero (or unset) means to disable using local SSDs as ephemeral storage. - * 2. For Gen3 machines which dictate a specific number of local ssds, zero - * (or unset) means to use the default number of local ssds that goes with - * that machine type. For example, for a c3-standard-8-lssd machine, 2 local - * ssds would be provisioned. For c3-standard-8 (which doesn't support local - * ssds), 0 will be provisioned. See - * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds - * for more info. - * - * Generated from protobuf field int32 local_ssd_count = 1; - * @return int - */ - public function getLocalSsdCount() - { - return $this->local_ssd_count; - } - - /** - * Number of local NVMe SSDs to use. The limit for this value is dependent - * upon the maximum number of disk available on a machine per zone. See: - * https://cloud.google.com/compute/docs/disks/local-ssd - * for more information. - * A zero (or unset) value has different meanings depending on machine type - * being used: - * 1. For pre-Gen3 machines, which support flexible numbers of local ssds, - * zero (or unset) means to disable using local SSDs as ephemeral storage. - * 2. For Gen3 machines which dictate a specific number of local ssds, zero - * (or unset) means to use the default number of local ssds that goes with - * that machine type. For example, for a c3-standard-8-lssd machine, 2 local - * ssds would be provisioned. For c3-standard-8 (which doesn't support local - * ssds), 0 will be provisioned. See - * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds - * for more info. - * - * Generated from protobuf field int32 local_ssd_count = 1; - * @param int $var - * @return $this - */ - public function setLocalSsdCount($var) - { - GPBUtil::checkInt32($var); - $this->local_ssd_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig.php deleted file mode 100644 index 30537335ecb7..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.LoggingComponentConfig - */ -class LoggingComponentConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Select components to collect logs. An empty set would disable all logging. - * - * Generated from protobuf field repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - */ - private $enable_components; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $enable_components - * Select components to collect logs. An empty set would disable all logging. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Select components to collect logs. An empty set would disable all logging. - * - * Generated from protobuf field repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEnableComponents() - { - return $this->enable_components; - } - - /** - * Select components to collect logs. An empty set would disable all logging. - * - * Generated from protobuf field repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEnableComponents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Container\V1\LoggingComponentConfig\Component::class); - $this->enable_components = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig/Component.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig/Component.php deleted file mode 100644 index b8e91d33ba74..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig/Component.php +++ /dev/null @@ -1,85 +0,0 @@ -google.container.v1.LoggingComponentConfig.Component - */ -class Component -{ - /** - * Default value. This shouldn't be used. - * - * Generated from protobuf enum COMPONENT_UNSPECIFIED = 0; - */ - const COMPONENT_UNSPECIFIED = 0; - /** - * system components - * - * Generated from protobuf enum SYSTEM_COMPONENTS = 1; - */ - const SYSTEM_COMPONENTS = 1; - /** - * workloads - * - * Generated from protobuf enum WORKLOADS = 2; - */ - const WORKLOADS = 2; - /** - * kube-apiserver - * - * Generated from protobuf enum APISERVER = 3; - */ - const APISERVER = 3; - /** - * kube-scheduler - * - * Generated from protobuf enum SCHEDULER = 4; - */ - const SCHEDULER = 4; - /** - * kube-controller-manager - * - * Generated from protobuf enum CONTROLLER_MANAGER = 5; - */ - const CONTROLLER_MANAGER = 5; - - private static $valueToName = [ - self::COMPONENT_UNSPECIFIED => 'COMPONENT_UNSPECIFIED', - self::SYSTEM_COMPONENTS => 'SYSTEM_COMPONENTS', - self::WORKLOADS => 'WORKLOADS', - self::APISERVER => 'APISERVER', - self::SCHEDULER => 'SCHEDULER', - self::CONTROLLER_MANAGER => 'CONTROLLER_MANAGER', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Component::class, \Google\Cloud\Container\V1\LoggingComponentConfig_Component::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingConfig.php deleted file mode 100644 index 19c906a114cc..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingConfig.php +++ /dev/null @@ -1,77 +0,0 @@ -google.container.v1.LoggingConfig - */ -class LoggingConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Logging components configuration - * - * Generated from protobuf field .google.container.v1.LoggingComponentConfig component_config = 1; - */ - protected $component_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\LoggingComponentConfig $component_config - * Logging components configuration - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Logging components configuration - * - * Generated from protobuf field .google.container.v1.LoggingComponentConfig component_config = 1; - * @return \Google\Cloud\Container\V1\LoggingComponentConfig|null - */ - public function getComponentConfig() - { - return $this->component_config; - } - - public function hasComponentConfig() - { - return isset($this->component_config); - } - - public function clearComponentConfig() - { - unset($this->component_config); - } - - /** - * Logging components configuration - * - * Generated from protobuf field .google.container.v1.LoggingComponentConfig component_config = 1; - * @param \Google\Cloud\Container\V1\LoggingComponentConfig $var - * @return $this - */ - public function setComponentConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LoggingComponentConfig::class); - $this->component_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig.php deleted file mode 100644 index 1121954e01e5..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.LoggingVariantConfig - */ -class LoggingVariantConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Logging variant deployed on nodes. - * - * Generated from protobuf field .google.container.v1.LoggingVariantConfig.Variant variant = 1; - */ - protected $variant = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $variant - * Logging variant deployed on nodes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Logging variant deployed on nodes. - * - * Generated from protobuf field .google.container.v1.LoggingVariantConfig.Variant variant = 1; - * @return int - */ - public function getVariant() - { - return $this->variant; - } - - /** - * Logging variant deployed on nodes. - * - * Generated from protobuf field .google.container.v1.LoggingVariantConfig.Variant variant = 1; - * @param int $var - * @return $this - */ - public function setVariant($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\LoggingVariantConfig\Variant::class); - $this->variant = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig/Variant.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig/Variant.php deleted file mode 100644 index dbff8651edd2..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig/Variant.php +++ /dev/null @@ -1,68 +0,0 @@ -google.container.v1.LoggingVariantConfig.Variant - */ -class Variant -{ - /** - * Default value. This shouldn't be used. - * - * Generated from protobuf enum VARIANT_UNSPECIFIED = 0; - */ - const VARIANT_UNSPECIFIED = 0; - /** - * default logging variant. - * - * Generated from protobuf enum DEFAULT = 1; - */ - const PBDEFAULT = 1; - /** - * maximum logging throughput variant. - * - * Generated from protobuf enum MAX_THROUGHPUT = 2; - */ - const MAX_THROUGHPUT = 2; - - private static $valueToName = [ - self::VARIANT_UNSPECIFIED => 'VARIANT_UNSPECIFIED', - self::PBDEFAULT => 'DEFAULT', - self::MAX_THROUGHPUT => 'MAX_THROUGHPUT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - $pbconst = __CLASS__. '::PB' . strtoupper($name); - if (!defined($pbconst)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($pbconst); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Variant::class, \Google\Cloud\Container\V1\LoggingVariantConfig_Variant::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceExclusionOptions.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceExclusionOptions.php deleted file mode 100644 index 8c5ebd1447bd..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceExclusionOptions.php +++ /dev/null @@ -1,71 +0,0 @@ -google.container.v1.MaintenanceExclusionOptions - */ -class MaintenanceExclusionOptions extends \Google\Protobuf\Internal\Message -{ - /** - * Scope specifies the upgrade scope which upgrades are blocked by the - * exclusion. - * - * Generated from protobuf field .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; - */ - protected $scope = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $scope - * Scope specifies the upgrade scope which upgrades are blocked by the - * exclusion. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Scope specifies the upgrade scope which upgrades are blocked by the - * exclusion. - * - * Generated from protobuf field .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; - * @return int - */ - public function getScope() - { - return $this->scope; - } - - /** - * Scope specifies the upgrade scope which upgrades are blocked by the - * exclusion. - * - * Generated from protobuf field .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; - * @param int $var - * @return $this - */ - public function setScope($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\MaintenanceExclusionOptions\Scope::class); - $this->scope = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceExclusionOptions/Scope.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceExclusionOptions/Scope.php deleted file mode 100644 index c7d1639c5828..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceExclusionOptions/Scope.php +++ /dev/null @@ -1,69 +0,0 @@ -google.container.v1.MaintenanceExclusionOptions.Scope - */ -class Scope -{ - /** - * NO_UPGRADES excludes all upgrades, including patch upgrades and minor - * upgrades across control planes and nodes. This is the default exclusion - * behavior. - * - * Generated from protobuf enum NO_UPGRADES = 0; - */ - const NO_UPGRADES = 0; - /** - * NO_MINOR_UPGRADES excludes all minor upgrades for the cluster, only - * patches are allowed. - * - * Generated from protobuf enum NO_MINOR_UPGRADES = 1; - */ - const NO_MINOR_UPGRADES = 1; - /** - * NO_MINOR_OR_NODE_UPGRADES excludes all minor upgrades for the cluster, - * and also exclude all node pool upgrades. Only control - * plane patches are allowed. - * - * Generated from protobuf enum NO_MINOR_OR_NODE_UPGRADES = 2; - */ - const NO_MINOR_OR_NODE_UPGRADES = 2; - - private static $valueToName = [ - self::NO_UPGRADES => 'NO_UPGRADES', - self::NO_MINOR_UPGRADES => 'NO_MINOR_UPGRADES', - self::NO_MINOR_OR_NODE_UPGRADES => 'NO_MINOR_OR_NODE_UPGRADES', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Scope::class, \Google\Cloud\Container\V1\MaintenanceExclusionOptions_Scope::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenancePolicy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenancePolicy.php deleted file mode 100644 index b804aa0d803b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenancePolicy.php +++ /dev/null @@ -1,127 +0,0 @@ -google.container.v1.MaintenancePolicy - */ -class MaintenancePolicy extends \Google\Protobuf\Internal\Message -{ - /** - * Specifies the maintenance window in which maintenance may be performed. - * - * Generated from protobuf field .google.container.v1.MaintenanceWindow window = 1; - */ - protected $window = null; - /** - * A hash identifying the version of this policy, so that updates to fields of - * the policy won't accidentally undo intermediate changes (and so that users - * of the API unaware of some fields won't accidentally remove other fields). - * Make a `get()` request to the cluster to get the current - * resource version and include it with requests to set the policy. - * - * Generated from protobuf field string resource_version = 3; - */ - protected $resource_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\MaintenanceWindow $window - * Specifies the maintenance window in which maintenance may be performed. - * @type string $resource_version - * A hash identifying the version of this policy, so that updates to fields of - * the policy won't accidentally undo intermediate changes (and so that users - * of the API unaware of some fields won't accidentally remove other fields). - * Make a `get()` request to the cluster to get the current - * resource version and include it with requests to set the policy. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Specifies the maintenance window in which maintenance may be performed. - * - * Generated from protobuf field .google.container.v1.MaintenanceWindow window = 1; - * @return \Google\Cloud\Container\V1\MaintenanceWindow|null - */ - public function getWindow() - { - return $this->window; - } - - public function hasWindow() - { - return isset($this->window); - } - - public function clearWindow() - { - unset($this->window); - } - - /** - * Specifies the maintenance window in which maintenance may be performed. - * - * Generated from protobuf field .google.container.v1.MaintenanceWindow window = 1; - * @param \Google\Cloud\Container\V1\MaintenanceWindow $var - * @return $this - */ - public function setWindow($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MaintenanceWindow::class); - $this->window = $var; - - return $this; - } - - /** - * A hash identifying the version of this policy, so that updates to fields of - * the policy won't accidentally undo intermediate changes (and so that users - * of the API unaware of some fields won't accidentally remove other fields). - * Make a `get()` request to the cluster to get the current - * resource version and include it with requests to set the policy. - * - * Generated from protobuf field string resource_version = 3; - * @return string - */ - public function getResourceVersion() - { - return $this->resource_version; - } - - /** - * A hash identifying the version of this policy, so that updates to fields of - * the policy won't accidentally undo intermediate changes (and so that users - * of the API unaware of some fields won't accidentally remove other fields). - * Make a `get()` request to the cluster to get the current - * resource version and include it with requests to set the policy. - * - * Generated from protobuf field string resource_version = 3; - * @param string $var - * @return $this - */ - public function setResourceVersion($var) - { - GPBUtil::checkString($var, True); - $this->resource_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceWindow.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceWindow.php deleted file mode 100644 index 6d7de92a2b52..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceWindow.php +++ /dev/null @@ -1,152 +0,0 @@ -google.container.v1.MaintenanceWindow - */ -class MaintenanceWindow extends \Google\Protobuf\Internal\Message -{ - /** - * Exceptions to maintenance window. Non-emergency maintenance should not - * occur in these windows. - * - * Generated from protobuf field map maintenance_exclusions = 4; - */ - private $maintenance_exclusions; - protected $policy; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\DailyMaintenanceWindow $daily_maintenance_window - * DailyMaintenanceWindow specifies a daily maintenance operation window. - * @type \Google\Cloud\Container\V1\RecurringTimeWindow $recurring_window - * RecurringWindow specifies some number of recurring time periods for - * maintenance to occur. The time windows may be overlapping. If no - * maintenance windows are set, maintenance can occur at any time. - * @type array|\Google\Protobuf\Internal\MapField $maintenance_exclusions - * Exceptions to maintenance window. Non-emergency maintenance should not - * occur in these windows. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * DailyMaintenanceWindow specifies a daily maintenance operation window. - * - * Generated from protobuf field .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; - * @return \Google\Cloud\Container\V1\DailyMaintenanceWindow|null - */ - public function getDailyMaintenanceWindow() - { - return $this->readOneof(2); - } - - public function hasDailyMaintenanceWindow() - { - return $this->hasOneof(2); - } - - /** - * DailyMaintenanceWindow specifies a daily maintenance operation window. - * - * Generated from protobuf field .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; - * @param \Google\Cloud\Container\V1\DailyMaintenanceWindow $var - * @return $this - */ - public function setDailyMaintenanceWindow($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\DailyMaintenanceWindow::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * RecurringWindow specifies some number of recurring time periods for - * maintenance to occur. The time windows may be overlapping. If no - * maintenance windows are set, maintenance can occur at any time. - * - * Generated from protobuf field .google.container.v1.RecurringTimeWindow recurring_window = 3; - * @return \Google\Cloud\Container\V1\RecurringTimeWindow|null - */ - public function getRecurringWindow() - { - return $this->readOneof(3); - } - - public function hasRecurringWindow() - { - return $this->hasOneof(3); - } - - /** - * RecurringWindow specifies some number of recurring time periods for - * maintenance to occur. The time windows may be overlapping. If no - * maintenance windows are set, maintenance can occur at any time. - * - * Generated from protobuf field .google.container.v1.RecurringTimeWindow recurring_window = 3; - * @param \Google\Cloud\Container\V1\RecurringTimeWindow $var - * @return $this - */ - public function setRecurringWindow($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\RecurringTimeWindow::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Exceptions to maintenance window. Non-emergency maintenance should not - * occur in these windows. - * - * Generated from protobuf field map maintenance_exclusions = 4; - * @return \Google\Protobuf\Internal\MapField - */ - public function getMaintenanceExclusions() - { - return $this->maintenance_exclusions; - } - - /** - * Exceptions to maintenance window. Non-emergency maintenance should not - * occur in these windows. - * - * Generated from protobuf field map maintenance_exclusions = 4; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setMaintenanceExclusions($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\TimeWindow::class); - $this->maintenance_exclusions = $arr; - - return $this; - } - - /** - * @return string - */ - public function getPolicy() - { - return $this->whichOneof("policy"); - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ManagedPrometheusConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ManagedPrometheusConfig.php deleted file mode 100644 index f4876f921559..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ManagedPrometheusConfig.php +++ /dev/null @@ -1,68 +0,0 @@ -google.container.v1.ManagedPrometheusConfig - */ -class ManagedPrometheusConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Enable Managed Collection. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Enable Managed Collection. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Enable Managed Collection. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Enable Managed Collection. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuth.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuth.php deleted file mode 100644 index c00aa522ff6a..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuth.php +++ /dev/null @@ -1,331 +0,0 @@ -google.container.v1.MasterAuth - */ -class MasterAuth extends \Google\Protobuf\Internal\Message -{ - /** - * The username to use for HTTP basic authentication to the master endpoint. - * For clusters v1.6.0 and later, basic authentication can be disabled by - * leaving username unspecified (or setting it to the empty string). - * Warning: basic authentication is deprecated, and will be removed in GKE - * control plane versions 1.19 and newer. For a list of recommended - * authentication methods, see: - * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication - * - * Generated from protobuf field string username = 1 [deprecated = true]; - * @deprecated - */ - protected $username = ''; - /** - * The password to use for HTTP basic authentication to the master endpoint. - * Because the master endpoint is open to the Internet, you should create a - * strong password. If a password is provided for cluster creation, username - * must be non-empty. - * Warning: basic authentication is deprecated, and will be removed in GKE - * control plane versions 1.19 and newer. For a list of recommended - * authentication methods, see: - * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication - * - * Generated from protobuf field string password = 2 [deprecated = true]; - * @deprecated - */ - protected $password = ''; - /** - * Configuration for client certificate authentication on the cluster. For - * clusters before v1.12, if no configuration is specified, a client - * certificate is issued. - * - * Generated from protobuf field .google.container.v1.ClientCertificateConfig client_certificate_config = 3; - */ - protected $client_certificate_config = null; - /** - * [Output only] Base64-encoded public certificate that is the root of - * trust for the cluster. - * - * Generated from protobuf field string cluster_ca_certificate = 100; - */ - protected $cluster_ca_certificate = ''; - /** - * [Output only] Base64-encoded public certificate used by clients to - * authenticate to the cluster endpoint. - * - * Generated from protobuf field string client_certificate = 101; - */ - protected $client_certificate = ''; - /** - * [Output only] Base64-encoded private key used by clients to authenticate - * to the cluster endpoint. - * - * Generated from protobuf field string client_key = 102; - */ - protected $client_key = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $username - * The username to use for HTTP basic authentication to the master endpoint. - * For clusters v1.6.0 and later, basic authentication can be disabled by - * leaving username unspecified (or setting it to the empty string). - * Warning: basic authentication is deprecated, and will be removed in GKE - * control plane versions 1.19 and newer. For a list of recommended - * authentication methods, see: - * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication - * @type string $password - * The password to use for HTTP basic authentication to the master endpoint. - * Because the master endpoint is open to the Internet, you should create a - * strong password. If a password is provided for cluster creation, username - * must be non-empty. - * Warning: basic authentication is deprecated, and will be removed in GKE - * control plane versions 1.19 and newer. For a list of recommended - * authentication methods, see: - * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication - * @type \Google\Cloud\Container\V1\ClientCertificateConfig $client_certificate_config - * Configuration for client certificate authentication on the cluster. For - * clusters before v1.12, if no configuration is specified, a client - * certificate is issued. - * @type string $cluster_ca_certificate - * [Output only] Base64-encoded public certificate that is the root of - * trust for the cluster. - * @type string $client_certificate - * [Output only] Base64-encoded public certificate used by clients to - * authenticate to the cluster endpoint. - * @type string $client_key - * [Output only] Base64-encoded private key used by clients to authenticate - * to the cluster endpoint. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The username to use for HTTP basic authentication to the master endpoint. - * For clusters v1.6.0 and later, basic authentication can be disabled by - * leaving username unspecified (or setting it to the empty string). - * Warning: basic authentication is deprecated, and will be removed in GKE - * control plane versions 1.19 and newer. For a list of recommended - * authentication methods, see: - * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication - * - * Generated from protobuf field string username = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getUsername() - { - @trigger_error('username is deprecated.', E_USER_DEPRECATED); - return $this->username; - } - - /** - * The username to use for HTTP basic authentication to the master endpoint. - * For clusters v1.6.0 and later, basic authentication can be disabled by - * leaving username unspecified (or setting it to the empty string). - * Warning: basic authentication is deprecated, and will be removed in GKE - * control plane versions 1.19 and newer. For a list of recommended - * authentication methods, see: - * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication - * - * Generated from protobuf field string username = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setUsername($var) - { - @trigger_error('username is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->username = $var; - - return $this; - } - - /** - * The password to use for HTTP basic authentication to the master endpoint. - * Because the master endpoint is open to the Internet, you should create a - * strong password. If a password is provided for cluster creation, username - * must be non-empty. - * Warning: basic authentication is deprecated, and will be removed in GKE - * control plane versions 1.19 and newer. For a list of recommended - * authentication methods, see: - * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication - * - * Generated from protobuf field string password = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getPassword() - { - @trigger_error('password is deprecated.', E_USER_DEPRECATED); - return $this->password; - } - - /** - * The password to use for HTTP basic authentication to the master endpoint. - * Because the master endpoint is open to the Internet, you should create a - * strong password. If a password is provided for cluster creation, username - * must be non-empty. - * Warning: basic authentication is deprecated, and will be removed in GKE - * control plane versions 1.19 and newer. For a list of recommended - * authentication methods, see: - * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication - * - * Generated from protobuf field string password = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setPassword($var) - { - @trigger_error('password is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->password = $var; - - return $this; - } - - /** - * Configuration for client certificate authentication on the cluster. For - * clusters before v1.12, if no configuration is specified, a client - * certificate is issued. - * - * Generated from protobuf field .google.container.v1.ClientCertificateConfig client_certificate_config = 3; - * @return \Google\Cloud\Container\V1\ClientCertificateConfig|null - */ - public function getClientCertificateConfig() - { - return $this->client_certificate_config; - } - - public function hasClientCertificateConfig() - { - return isset($this->client_certificate_config); - } - - public function clearClientCertificateConfig() - { - unset($this->client_certificate_config); - } - - /** - * Configuration for client certificate authentication on the cluster. For - * clusters before v1.12, if no configuration is specified, a client - * certificate is issued. - * - * Generated from protobuf field .google.container.v1.ClientCertificateConfig client_certificate_config = 3; - * @param \Google\Cloud\Container\V1\ClientCertificateConfig $var - * @return $this - */ - public function setClientCertificateConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ClientCertificateConfig::class); - $this->client_certificate_config = $var; - - return $this; - } - - /** - * [Output only] Base64-encoded public certificate that is the root of - * trust for the cluster. - * - * Generated from protobuf field string cluster_ca_certificate = 100; - * @return string - */ - public function getClusterCaCertificate() - { - return $this->cluster_ca_certificate; - } - - /** - * [Output only] Base64-encoded public certificate that is the root of - * trust for the cluster. - * - * Generated from protobuf field string cluster_ca_certificate = 100; - * @param string $var - * @return $this - */ - public function setClusterCaCertificate($var) - { - GPBUtil::checkString($var, True); - $this->cluster_ca_certificate = $var; - - return $this; - } - - /** - * [Output only] Base64-encoded public certificate used by clients to - * authenticate to the cluster endpoint. - * - * Generated from protobuf field string client_certificate = 101; - * @return string - */ - public function getClientCertificate() - { - return $this->client_certificate; - } - - /** - * [Output only] Base64-encoded public certificate used by clients to - * authenticate to the cluster endpoint. - * - * Generated from protobuf field string client_certificate = 101; - * @param string $var - * @return $this - */ - public function setClientCertificate($var) - { - GPBUtil::checkString($var, True); - $this->client_certificate = $var; - - return $this; - } - - /** - * [Output only] Base64-encoded private key used by clients to authenticate - * to the cluster endpoint. - * - * Generated from protobuf field string client_key = 102; - * @return string - */ - public function getClientKey() - { - return $this->client_key; - } - - /** - * [Output only] Base64-encoded private key used by clients to authenticate - * to the cluster endpoint. - * - * Generated from protobuf field string client_key = 102; - * @param string $var - * @return $this - */ - public function setClientKey($var) - { - GPBUtil::checkString($var, True); - $this->client_key = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig.php deleted file mode 100644 index f2d4ee45311c..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig.php +++ /dev/null @@ -1,152 +0,0 @@ -google.container.v1.MasterAuthorizedNetworksConfig - */ -class MasterAuthorizedNetworksConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether or not master authorized networks is enabled. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - /** - * cidr_blocks define up to 50 external networks that could access - * Kubernetes master through HTTPS. - * - * Generated from protobuf field repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - */ - private $cidr_blocks; - /** - * Whether master is accessbile via Google Compute Engine Public IP addresses. - * - * Generated from protobuf field optional bool gcp_public_cidrs_access_enabled = 3; - */ - protected $gcp_public_cidrs_access_enabled = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether or not master authorized networks is enabled. - * @type array<\Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig\CidrBlock>|\Google\Protobuf\Internal\RepeatedField $cidr_blocks - * cidr_blocks define up to 50 external networks that could access - * Kubernetes master through HTTPS. - * @type bool $gcp_public_cidrs_access_enabled - * Whether master is accessbile via Google Compute Engine Public IP addresses. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether or not master authorized networks is enabled. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether or not master authorized networks is enabled. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - - /** - * cidr_blocks define up to 50 external networks that could access - * Kubernetes master through HTTPS. - * - * Generated from protobuf field repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCidrBlocks() - { - return $this->cidr_blocks; - } - - /** - * cidr_blocks define up to 50 external networks that could access - * Kubernetes master through HTTPS. - * - * Generated from protobuf field repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * @param array<\Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig\CidrBlock>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCidrBlocks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig\CidrBlock::class); - $this->cidr_blocks = $arr; - - return $this; - } - - /** - * Whether master is accessbile via Google Compute Engine Public IP addresses. - * - * Generated from protobuf field optional bool gcp_public_cidrs_access_enabled = 3; - * @return bool - */ - public function getGcpPublicCidrsAccessEnabled() - { - return isset($this->gcp_public_cidrs_access_enabled) ? $this->gcp_public_cidrs_access_enabled : false; - } - - public function hasGcpPublicCidrsAccessEnabled() - { - return isset($this->gcp_public_cidrs_access_enabled); - } - - public function clearGcpPublicCidrsAccessEnabled() - { - unset($this->gcp_public_cidrs_access_enabled); - } - - /** - * Whether master is accessbile via Google Compute Engine Public IP addresses. - * - * Generated from protobuf field optional bool gcp_public_cidrs_access_enabled = 3; - * @param bool $var - * @return $this - */ - public function setGcpPublicCidrsAccessEnabled($var) - { - GPBUtil::checkBool($var); - $this->gcp_public_cidrs_access_enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig/CidrBlock.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig/CidrBlock.php deleted file mode 100644 index 8ab57c26dfce..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig/CidrBlock.php +++ /dev/null @@ -1,104 +0,0 @@ -google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock - */ -class CidrBlock extends \Google\Protobuf\Internal\Message -{ - /** - * display_name is an optional field for users to identify CIDR blocks. - * - * Generated from protobuf field string display_name = 1; - */ - protected $display_name = ''; - /** - * cidr_block must be specified in CIDR notation. - * - * Generated from protobuf field string cidr_block = 2; - */ - protected $cidr_block = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * display_name is an optional field for users to identify CIDR blocks. - * @type string $cidr_block - * cidr_block must be specified in CIDR notation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * display_name is an optional field for users to identify CIDR blocks. - * - * Generated from protobuf field string display_name = 1; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * display_name is an optional field for users to identify CIDR blocks. - * - * Generated from protobuf field string display_name = 1; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * cidr_block must be specified in CIDR notation. - * - * Generated from protobuf field string cidr_block = 2; - * @return string - */ - public function getCidrBlock() - { - return $this->cidr_block; - } - - /** - * cidr_block must be specified in CIDR notation. - * - * Generated from protobuf field string cidr_block = 2; - * @param string $var - * @return $this - */ - public function setCidrBlock($var) - { - GPBUtil::checkString($var, True); - $this->cidr_block = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CidrBlock::class, \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig_CidrBlock::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaxPodsConstraint.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaxPodsConstraint.php deleted file mode 100644 index b085ff78a2c2..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaxPodsConstraint.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.MaxPodsConstraint - */ -class MaxPodsConstraint extends \Google\Protobuf\Internal\Message -{ - /** - * Constraint enforced on the max num of pods per node. - * - * Generated from protobuf field int64 max_pods_per_node = 1; - */ - protected $max_pods_per_node = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $max_pods_per_node - * Constraint enforced on the max num of pods per node. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Constraint enforced on the max num of pods per node. - * - * Generated from protobuf field int64 max_pods_per_node = 1; - * @return int|string - */ - public function getMaxPodsPerNode() - { - return $this->max_pods_per_node; - } - - /** - * Constraint enforced on the max num of pods per node. - * - * Generated from protobuf field int64 max_pods_per_node = 1; - * @param int|string $var - * @return $this - */ - public function setMaxPodsPerNode($var) - { - GPBUtil::checkInt64($var); - $this->max_pods_per_node = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MeshCertificates.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MeshCertificates.php deleted file mode 100644 index ba761de84ac4..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MeshCertificates.php +++ /dev/null @@ -1,140 +0,0 @@ -google.container.v1.MeshCertificates - */ -class MeshCertificates extends \Google\Protobuf\Internal\Message -{ - /** - * enable_certificates controls issuance of workload mTLS certificates. - * If set, the GKE Workload Identity Certificates controller and node agent - * will be deployed in the cluster, which can then be configured by creating a - * WorkloadCertificateConfig Custom Resource. - * Requires Workload Identity - * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool] - * must be non-empty). - * - * Generated from protobuf field .google.protobuf.BoolValue enable_certificates = 1; - */ - protected $enable_certificates = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\BoolValue $enable_certificates - * enable_certificates controls issuance of workload mTLS certificates. - * If set, the GKE Workload Identity Certificates controller and node agent - * will be deployed in the cluster, which can then be configured by creating a - * WorkloadCertificateConfig Custom Resource. - * Requires Workload Identity - * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool] - * must be non-empty). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * enable_certificates controls issuance of workload mTLS certificates. - * If set, the GKE Workload Identity Certificates controller and node agent - * will be deployed in the cluster, which can then be configured by creating a - * WorkloadCertificateConfig Custom Resource. - * Requires Workload Identity - * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool] - * must be non-empty). - * - * Generated from protobuf field .google.protobuf.BoolValue enable_certificates = 1; - * @return \Google\Protobuf\BoolValue|null - */ - public function getEnableCertificates() - { - return $this->enable_certificates; - } - - public function hasEnableCertificates() - { - return isset($this->enable_certificates); - } - - public function clearEnableCertificates() - { - unset($this->enable_certificates); - } - - /** - * Returns the unboxed value from getEnableCertificates() - - * enable_certificates controls issuance of workload mTLS certificates. - * If set, the GKE Workload Identity Certificates controller and node agent - * will be deployed in the cluster, which can then be configured by creating a - * WorkloadCertificateConfig Custom Resource. - * Requires Workload Identity - * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool] - * must be non-empty). - * - * Generated from protobuf field .google.protobuf.BoolValue enable_certificates = 1; - * @return bool|null - */ - public function getEnableCertificatesUnwrapped() - { - return $this->readWrapperValue("enable_certificates"); - } - - /** - * enable_certificates controls issuance of workload mTLS certificates. - * If set, the GKE Workload Identity Certificates controller and node agent - * will be deployed in the cluster, which can then be configured by creating a - * WorkloadCertificateConfig Custom Resource. - * Requires Workload Identity - * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool] - * must be non-empty). - * - * Generated from protobuf field .google.protobuf.BoolValue enable_certificates = 1; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setEnableCertificates($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->enable_certificates = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * enable_certificates controls issuance of workload mTLS certificates. - * If set, the GKE Workload Identity Certificates controller and node agent - * will be deployed in the cluster, which can then be configured by creating a - * WorkloadCertificateConfig Custom Resource. - * Requires Workload Identity - * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool] - * must be non-empty). - * - * Generated from protobuf field .google.protobuf.BoolValue enable_certificates = 1; - * @param bool|null $var - * @return $this - */ - public function setEnableCertificatesUnwrapped($var) - { - $this->writeWrapperValue("enable_certificates", $var); - return $this;} - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringComponentConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringComponentConfig.php deleted file mode 100644 index 38e5ca512685..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringComponentConfig.php +++ /dev/null @@ -1,71 +0,0 @@ -google.container.v1.MonitoringComponentConfig - */ -class MonitoringComponentConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Select components to collect metrics. An empty set would disable all - * monitoring. - * - * Generated from protobuf field repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - */ - private $enable_components; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $enable_components - * Select components to collect metrics. An empty set would disable all - * monitoring. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Select components to collect metrics. An empty set would disable all - * monitoring. - * - * Generated from protobuf field repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEnableComponents() - { - return $this->enable_components; - } - - /** - * Select components to collect metrics. An empty set would disable all - * monitoring. - * - * Generated from protobuf field repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEnableComponents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Container\V1\MonitoringComponentConfig\Component::class); - $this->enable_components = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringComponentConfig/Component.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringComponentConfig/Component.php deleted file mode 100644 index afcbfb191c68..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringComponentConfig/Component.php +++ /dev/null @@ -1,120 +0,0 @@ -google.container.v1.MonitoringComponentConfig.Component - */ -class Component -{ - /** - * Default value. This shouldn't be used. - * - * Generated from protobuf enum COMPONENT_UNSPECIFIED = 0; - */ - const COMPONENT_UNSPECIFIED = 0; - /** - * system components - * - * Generated from protobuf enum SYSTEM_COMPONENTS = 1; - */ - const SYSTEM_COMPONENTS = 1; - /** - * kube-apiserver - * - * Generated from protobuf enum APISERVER = 3; - */ - const APISERVER = 3; - /** - * kube-scheduler - * - * Generated from protobuf enum SCHEDULER = 4; - */ - const SCHEDULER = 4; - /** - * kube-controller-manager - * - * Generated from protobuf enum CONTROLLER_MANAGER = 5; - */ - const CONTROLLER_MANAGER = 5; - /** - * Storage - * - * Generated from protobuf enum STORAGE = 7; - */ - const STORAGE = 7; - /** - * Horizontal Pod Autoscaling - * - * Generated from protobuf enum HPA = 8; - */ - const HPA = 8; - /** - * Pod - * - * Generated from protobuf enum POD = 9; - */ - const POD = 9; - /** - * DaemonSet - * - * Generated from protobuf enum DAEMONSET = 10; - */ - const DAEMONSET = 10; - /** - * Deployment - * - * Generated from protobuf enum DEPLOYMENT = 11; - */ - const DEPLOYMENT = 11; - /** - * Statefulset - * - * Generated from protobuf enum STATEFULSET = 12; - */ - const STATEFULSET = 12; - - private static $valueToName = [ - self::COMPONENT_UNSPECIFIED => 'COMPONENT_UNSPECIFIED', - self::SYSTEM_COMPONENTS => 'SYSTEM_COMPONENTS', - self::APISERVER => 'APISERVER', - self::SCHEDULER => 'SCHEDULER', - self::CONTROLLER_MANAGER => 'CONTROLLER_MANAGER', - self::STORAGE => 'STORAGE', - self::HPA => 'HPA', - self::POD => 'POD', - self::DAEMONSET => 'DAEMONSET', - self::DEPLOYMENT => 'DEPLOYMENT', - self::STATEFULSET => 'STATEFULSET', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Component::class, \Google\Cloud\Container\V1\MonitoringComponentConfig_Component::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringConfig.php deleted file mode 100644 index 114215b5d699..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringConfig.php +++ /dev/null @@ -1,169 +0,0 @@ -google.container.v1.MonitoringConfig - */ -class MonitoringConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Monitoring components configuration - * - * Generated from protobuf field .google.container.v1.MonitoringComponentConfig component_config = 1; - */ - protected $component_config = null; - /** - * Enable Google Cloud Managed Service for Prometheus - * in the cluster. - * - * Generated from protobuf field .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; - */ - protected $managed_prometheus_config = null; - /** - * Configuration of Advanced Datapath Observability features. - * - * Generated from protobuf field .google.container.v1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; - */ - protected $advanced_datapath_observability_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\MonitoringComponentConfig $component_config - * Monitoring components configuration - * @type \Google\Cloud\Container\V1\ManagedPrometheusConfig $managed_prometheus_config - * Enable Google Cloud Managed Service for Prometheus - * in the cluster. - * @type \Google\Cloud\Container\V1\AdvancedDatapathObservabilityConfig $advanced_datapath_observability_config - * Configuration of Advanced Datapath Observability features. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Monitoring components configuration - * - * Generated from protobuf field .google.container.v1.MonitoringComponentConfig component_config = 1; - * @return \Google\Cloud\Container\V1\MonitoringComponentConfig|null - */ - public function getComponentConfig() - { - return $this->component_config; - } - - public function hasComponentConfig() - { - return isset($this->component_config); - } - - public function clearComponentConfig() - { - unset($this->component_config); - } - - /** - * Monitoring components configuration - * - * Generated from protobuf field .google.container.v1.MonitoringComponentConfig component_config = 1; - * @param \Google\Cloud\Container\V1\MonitoringComponentConfig $var - * @return $this - */ - public function setComponentConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MonitoringComponentConfig::class); - $this->component_config = $var; - - return $this; - } - - /** - * Enable Google Cloud Managed Service for Prometheus - * in the cluster. - * - * Generated from protobuf field .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; - * @return \Google\Cloud\Container\V1\ManagedPrometheusConfig|null - */ - public function getManagedPrometheusConfig() - { - return $this->managed_prometheus_config; - } - - public function hasManagedPrometheusConfig() - { - return isset($this->managed_prometheus_config); - } - - public function clearManagedPrometheusConfig() - { - unset($this->managed_prometheus_config); - } - - /** - * Enable Google Cloud Managed Service for Prometheus - * in the cluster. - * - * Generated from protobuf field .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; - * @param \Google\Cloud\Container\V1\ManagedPrometheusConfig $var - * @return $this - */ - public function setManagedPrometheusConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ManagedPrometheusConfig::class); - $this->managed_prometheus_config = $var; - - return $this; - } - - /** - * Configuration of Advanced Datapath Observability features. - * - * Generated from protobuf field .google.container.v1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; - * @return \Google\Cloud\Container\V1\AdvancedDatapathObservabilityConfig|null - */ - public function getAdvancedDatapathObservabilityConfig() - { - return $this->advanced_datapath_observability_config; - } - - public function hasAdvancedDatapathObservabilityConfig() - { - return isset($this->advanced_datapath_observability_config); - } - - public function clearAdvancedDatapathObservabilityConfig() - { - unset($this->advanced_datapath_observability_config); - } - - /** - * Configuration of Advanced Datapath Observability features. - * - * Generated from protobuf field .google.container.v1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; - * @param \Google\Cloud\Container\V1\AdvancedDatapathObservabilityConfig $var - * @return $this - */ - public function setAdvancedDatapathObservabilityConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AdvancedDatapathObservabilityConfig::class); - $this->advanced_datapath_observability_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig.php deleted file mode 100644 index 5409d5d1e960..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig.php +++ /dev/null @@ -1,683 +0,0 @@ -google.container.v1.NetworkConfig - */ -class NetworkConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The relative name of the Google Compute Engine - * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) - * to which the cluster is connected. Example: - * projects/my-project/global/networks/my-network - * - * Generated from protobuf field string network = 1; - */ - protected $network = ''; - /** - * Output only. The relative name of the Google Compute Engine - * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the - * cluster is connected. Example: - * projects/my-project/regions/us-central1/subnetworks/my-subnet - * - * Generated from protobuf field string subnetwork = 2; - */ - protected $subnetwork = ''; - /** - * Whether Intra-node visibility is enabled for this cluster. - * This makes same node pod to pod traffic visible for VPC network. - * - * Generated from protobuf field bool enable_intra_node_visibility = 5; - */ - protected $enable_intra_node_visibility = false; - /** - * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules - * will be disabled when default_snat_status is disabled. When disabled is set - * to false, default IP masquerade rules will be applied to the nodes to - * prevent sNAT on cluster internal traffic. - * - * Generated from protobuf field .google.container.v1.DefaultSnatStatus default_snat_status = 7; - */ - protected $default_snat_status = null; - /** - * Whether L4ILB Subsetting is enabled for this cluster. - * - * Generated from protobuf field bool enable_l4ilb_subsetting = 10; - */ - protected $enable_l4ilb_subsetting = false; - /** - * The desired datapath provider for this cluster. By default, uses the - * IPTables-based kube-proxy implementation. - * - * Generated from protobuf field .google.container.v1.DatapathProvider datapath_provider = 11; - */ - protected $datapath_provider = 0; - /** - * The desired state of IPv6 connectivity to Google Services. - * By default, no private IPv6 access to or from Google Services (all access - * will be via IPv4) - * - * Generated from protobuf field .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; - */ - protected $private_ipv6_google_access = 0; - /** - * DNSConfig contains clusterDNS config for this cluster. - * - * Generated from protobuf field .google.container.v1.DNSConfig dns_config = 13; - */ - protected $dns_config = null; - /** - * ServiceExternalIPsConfig specifies if services with externalIPs field are - * blocked or not. - * - * Generated from protobuf field .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; - */ - protected $service_external_ips_config = null; - /** - * GatewayAPIConfig contains the desired config of Gateway API on this - * cluster. - * - * Generated from protobuf field .google.container.v1.GatewayAPIConfig gateway_api_config = 16; - */ - protected $gateway_api_config = null; - /** - * Whether multi-networking is enabled for this cluster. - * - * Generated from protobuf field bool enable_multi_networking = 17; - */ - protected $enable_multi_networking = false; - /** - * Network bandwidth tier configuration. - * - * Generated from protobuf field .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; - */ - protected $network_performance_config = null; - /** - * Whether FQDN Network Policy is enabled on this cluster. - * - * Generated from protobuf field optional bool enable_fqdn_network_policy = 19; - */ - protected $enable_fqdn_network_policy = null; - /** - * Specify the details of in-transit encryption. - * - * Generated from protobuf field optional .google.container.v1.InTransitEncryptionConfig in_transit_encryption_config = 20; - */ - protected $in_transit_encryption_config = null; - /** - * Whether CiliumClusterwideNetworkPolicy is enabled on this cluster. - * - * Generated from protobuf field optional bool enable_cilium_clusterwide_network_policy = 21; - */ - protected $enable_cilium_clusterwide_network_policy = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $network - * Output only. The relative name of the Google Compute Engine - * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) - * to which the cluster is connected. Example: - * projects/my-project/global/networks/my-network - * @type string $subnetwork - * Output only. The relative name of the Google Compute Engine - * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the - * cluster is connected. Example: - * projects/my-project/regions/us-central1/subnetworks/my-subnet - * @type bool $enable_intra_node_visibility - * Whether Intra-node visibility is enabled for this cluster. - * This makes same node pod to pod traffic visible for VPC network. - * @type \Google\Cloud\Container\V1\DefaultSnatStatus $default_snat_status - * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules - * will be disabled when default_snat_status is disabled. When disabled is set - * to false, default IP masquerade rules will be applied to the nodes to - * prevent sNAT on cluster internal traffic. - * @type bool $enable_l4ilb_subsetting - * Whether L4ILB Subsetting is enabled for this cluster. - * @type int $datapath_provider - * The desired datapath provider for this cluster. By default, uses the - * IPTables-based kube-proxy implementation. - * @type int $private_ipv6_google_access - * The desired state of IPv6 connectivity to Google Services. - * By default, no private IPv6 access to or from Google Services (all access - * will be via IPv4) - * @type \Google\Cloud\Container\V1\DNSConfig $dns_config - * DNSConfig contains clusterDNS config for this cluster. - * @type \Google\Cloud\Container\V1\ServiceExternalIPsConfig $service_external_ips_config - * ServiceExternalIPsConfig specifies if services with externalIPs field are - * blocked or not. - * @type \Google\Cloud\Container\V1\GatewayAPIConfig $gateway_api_config - * GatewayAPIConfig contains the desired config of Gateway API on this - * cluster. - * @type bool $enable_multi_networking - * Whether multi-networking is enabled for this cluster. - * @type \Google\Cloud\Container\V1\NetworkConfig\ClusterNetworkPerformanceConfig $network_performance_config - * Network bandwidth tier configuration. - * @type bool $enable_fqdn_network_policy - * Whether FQDN Network Policy is enabled on this cluster. - * @type int $in_transit_encryption_config - * Specify the details of in-transit encryption. - * @type bool $enable_cilium_clusterwide_network_policy - * Whether CiliumClusterwideNetworkPolicy is enabled on this cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The relative name of the Google Compute Engine - * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) - * to which the cluster is connected. Example: - * projects/my-project/global/networks/my-network - * - * Generated from protobuf field string network = 1; - * @return string - */ - public function getNetwork() - { - return $this->network; - } - - /** - * Output only. The relative name of the Google Compute Engine - * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) - * to which the cluster is connected. Example: - * projects/my-project/global/networks/my-network - * - * Generated from protobuf field string network = 1; - * @param string $var - * @return $this - */ - public function setNetwork($var) - { - GPBUtil::checkString($var, True); - $this->network = $var; - - return $this; - } - - /** - * Output only. The relative name of the Google Compute Engine - * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the - * cluster is connected. Example: - * projects/my-project/regions/us-central1/subnetworks/my-subnet - * - * Generated from protobuf field string subnetwork = 2; - * @return string - */ - public function getSubnetwork() - { - return $this->subnetwork; - } - - /** - * Output only. The relative name of the Google Compute Engine - * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the - * cluster is connected. Example: - * projects/my-project/regions/us-central1/subnetworks/my-subnet - * - * Generated from protobuf field string subnetwork = 2; - * @param string $var - * @return $this - */ - public function setSubnetwork($var) - { - GPBUtil::checkString($var, True); - $this->subnetwork = $var; - - return $this; - } - - /** - * Whether Intra-node visibility is enabled for this cluster. - * This makes same node pod to pod traffic visible for VPC network. - * - * Generated from protobuf field bool enable_intra_node_visibility = 5; - * @return bool - */ - public function getEnableIntraNodeVisibility() - { - return $this->enable_intra_node_visibility; - } - - /** - * Whether Intra-node visibility is enabled for this cluster. - * This makes same node pod to pod traffic visible for VPC network. - * - * Generated from protobuf field bool enable_intra_node_visibility = 5; - * @param bool $var - * @return $this - */ - public function setEnableIntraNodeVisibility($var) - { - GPBUtil::checkBool($var); - $this->enable_intra_node_visibility = $var; - - return $this; - } - - /** - * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules - * will be disabled when default_snat_status is disabled. When disabled is set - * to false, default IP masquerade rules will be applied to the nodes to - * prevent sNAT on cluster internal traffic. - * - * Generated from protobuf field .google.container.v1.DefaultSnatStatus default_snat_status = 7; - * @return \Google\Cloud\Container\V1\DefaultSnatStatus|null - */ - public function getDefaultSnatStatus() - { - return $this->default_snat_status; - } - - public function hasDefaultSnatStatus() - { - return isset($this->default_snat_status); - } - - public function clearDefaultSnatStatus() - { - unset($this->default_snat_status); - } - - /** - * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules - * will be disabled when default_snat_status is disabled. When disabled is set - * to false, default IP masquerade rules will be applied to the nodes to - * prevent sNAT on cluster internal traffic. - * - * Generated from protobuf field .google.container.v1.DefaultSnatStatus default_snat_status = 7; - * @param \Google\Cloud\Container\V1\DefaultSnatStatus $var - * @return $this - */ - public function setDefaultSnatStatus($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\DefaultSnatStatus::class); - $this->default_snat_status = $var; - - return $this; - } - - /** - * Whether L4ILB Subsetting is enabled for this cluster. - * - * Generated from protobuf field bool enable_l4ilb_subsetting = 10; - * @return bool - */ - public function getEnableL4IlbSubsetting() - { - return $this->enable_l4ilb_subsetting; - } - - /** - * Whether L4ILB Subsetting is enabled for this cluster. - * - * Generated from protobuf field bool enable_l4ilb_subsetting = 10; - * @param bool $var - * @return $this - */ - public function setEnableL4IlbSubsetting($var) - { - GPBUtil::checkBool($var); - $this->enable_l4ilb_subsetting = $var; - - return $this; - } - - /** - * The desired datapath provider for this cluster. By default, uses the - * IPTables-based kube-proxy implementation. - * - * Generated from protobuf field .google.container.v1.DatapathProvider datapath_provider = 11; - * @return int - */ - public function getDatapathProvider() - { - return $this->datapath_provider; - } - - /** - * The desired datapath provider for this cluster. By default, uses the - * IPTables-based kube-proxy implementation. - * - * Generated from protobuf field .google.container.v1.DatapathProvider datapath_provider = 11; - * @param int $var - * @return $this - */ - public function setDatapathProvider($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\DatapathProvider::class); - $this->datapath_provider = $var; - - return $this; - } - - /** - * The desired state of IPv6 connectivity to Google Services. - * By default, no private IPv6 access to or from Google Services (all access - * will be via IPv4) - * - * Generated from protobuf field .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; - * @return int - */ - public function getPrivateIpv6GoogleAccess() - { - return $this->private_ipv6_google_access; - } - - /** - * The desired state of IPv6 connectivity to Google Services. - * By default, no private IPv6 access to or from Google Services (all access - * will be via IPv4) - * - * Generated from protobuf field .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; - * @param int $var - * @return $this - */ - public function setPrivateIpv6GoogleAccess($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\PrivateIPv6GoogleAccess::class); - $this->private_ipv6_google_access = $var; - - return $this; - } - - /** - * DNSConfig contains clusterDNS config for this cluster. - * - * Generated from protobuf field .google.container.v1.DNSConfig dns_config = 13; - * @return \Google\Cloud\Container\V1\DNSConfig|null - */ - public function getDnsConfig() - { - return $this->dns_config; - } - - public function hasDnsConfig() - { - return isset($this->dns_config); - } - - public function clearDnsConfig() - { - unset($this->dns_config); - } - - /** - * DNSConfig contains clusterDNS config for this cluster. - * - * Generated from protobuf field .google.container.v1.DNSConfig dns_config = 13; - * @param \Google\Cloud\Container\V1\DNSConfig $var - * @return $this - */ - public function setDnsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\DNSConfig::class); - $this->dns_config = $var; - - return $this; - } - - /** - * ServiceExternalIPsConfig specifies if services with externalIPs field are - * blocked or not. - * - * Generated from protobuf field .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; - * @return \Google\Cloud\Container\V1\ServiceExternalIPsConfig|null - */ - public function getServiceExternalIpsConfig() - { - return $this->service_external_ips_config; - } - - public function hasServiceExternalIpsConfig() - { - return isset($this->service_external_ips_config); - } - - public function clearServiceExternalIpsConfig() - { - unset($this->service_external_ips_config); - } - - /** - * ServiceExternalIPsConfig specifies if services with externalIPs field are - * blocked or not. - * - * Generated from protobuf field .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; - * @param \Google\Cloud\Container\V1\ServiceExternalIPsConfig $var - * @return $this - */ - public function setServiceExternalIpsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ServiceExternalIPsConfig::class); - $this->service_external_ips_config = $var; - - return $this; - } - - /** - * GatewayAPIConfig contains the desired config of Gateway API on this - * cluster. - * - * Generated from protobuf field .google.container.v1.GatewayAPIConfig gateway_api_config = 16; - * @return \Google\Cloud\Container\V1\GatewayAPIConfig|null - */ - public function getGatewayApiConfig() - { - return $this->gateway_api_config; - } - - public function hasGatewayApiConfig() - { - return isset($this->gateway_api_config); - } - - public function clearGatewayApiConfig() - { - unset($this->gateway_api_config); - } - - /** - * GatewayAPIConfig contains the desired config of Gateway API on this - * cluster. - * - * Generated from protobuf field .google.container.v1.GatewayAPIConfig gateway_api_config = 16; - * @param \Google\Cloud\Container\V1\GatewayAPIConfig $var - * @return $this - */ - public function setGatewayApiConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GatewayAPIConfig::class); - $this->gateway_api_config = $var; - - return $this; - } - - /** - * Whether multi-networking is enabled for this cluster. - * - * Generated from protobuf field bool enable_multi_networking = 17; - * @return bool - */ - public function getEnableMultiNetworking() - { - return $this->enable_multi_networking; - } - - /** - * Whether multi-networking is enabled for this cluster. - * - * Generated from protobuf field bool enable_multi_networking = 17; - * @param bool $var - * @return $this - */ - public function setEnableMultiNetworking($var) - { - GPBUtil::checkBool($var); - $this->enable_multi_networking = $var; - - return $this; - } - - /** - * Network bandwidth tier configuration. - * - * Generated from protobuf field .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; - * @return \Google\Cloud\Container\V1\NetworkConfig\ClusterNetworkPerformanceConfig|null - */ - public function getNetworkPerformanceConfig() - { - return $this->network_performance_config; - } - - public function hasNetworkPerformanceConfig() - { - return isset($this->network_performance_config); - } - - public function clearNetworkPerformanceConfig() - { - unset($this->network_performance_config); - } - - /** - * Network bandwidth tier configuration. - * - * Generated from protobuf field .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; - * @param \Google\Cloud\Container\V1\NetworkConfig\ClusterNetworkPerformanceConfig $var - * @return $this - */ - public function setNetworkPerformanceConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkConfig\ClusterNetworkPerformanceConfig::class); - $this->network_performance_config = $var; - - return $this; - } - - /** - * Whether FQDN Network Policy is enabled on this cluster. - * - * Generated from protobuf field optional bool enable_fqdn_network_policy = 19; - * @return bool - */ - public function getEnableFqdnNetworkPolicy() - { - return isset($this->enable_fqdn_network_policy) ? $this->enable_fqdn_network_policy : false; - } - - public function hasEnableFqdnNetworkPolicy() - { - return isset($this->enable_fqdn_network_policy); - } - - public function clearEnableFqdnNetworkPolicy() - { - unset($this->enable_fqdn_network_policy); - } - - /** - * Whether FQDN Network Policy is enabled on this cluster. - * - * Generated from protobuf field optional bool enable_fqdn_network_policy = 19; - * @param bool $var - * @return $this - */ - public function setEnableFqdnNetworkPolicy($var) - { - GPBUtil::checkBool($var); - $this->enable_fqdn_network_policy = $var; - - return $this; - } - - /** - * Specify the details of in-transit encryption. - * - * Generated from protobuf field optional .google.container.v1.InTransitEncryptionConfig in_transit_encryption_config = 20; - * @return int - */ - public function getInTransitEncryptionConfig() - { - return isset($this->in_transit_encryption_config) ? $this->in_transit_encryption_config : 0; - } - - public function hasInTransitEncryptionConfig() - { - return isset($this->in_transit_encryption_config); - } - - public function clearInTransitEncryptionConfig() - { - unset($this->in_transit_encryption_config); - } - - /** - * Specify the details of in-transit encryption. - * - * Generated from protobuf field optional .google.container.v1.InTransitEncryptionConfig in_transit_encryption_config = 20; - * @param int $var - * @return $this - */ - public function setInTransitEncryptionConfig($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\InTransitEncryptionConfig::class); - $this->in_transit_encryption_config = $var; - - return $this; - } - - /** - * Whether CiliumClusterwideNetworkPolicy is enabled on this cluster. - * - * Generated from protobuf field optional bool enable_cilium_clusterwide_network_policy = 21; - * @return bool - */ - public function getEnableCiliumClusterwideNetworkPolicy() - { - return isset($this->enable_cilium_clusterwide_network_policy) ? $this->enable_cilium_clusterwide_network_policy : false; - } - - public function hasEnableCiliumClusterwideNetworkPolicy() - { - return isset($this->enable_cilium_clusterwide_network_policy); - } - - public function clearEnableCiliumClusterwideNetworkPolicy() - { - unset($this->enable_cilium_clusterwide_network_policy); - } - - /** - * Whether CiliumClusterwideNetworkPolicy is enabled on this cluster. - * - * Generated from protobuf field optional bool enable_cilium_clusterwide_network_policy = 21; - * @param bool $var - * @return $this - */ - public function setEnableCiliumClusterwideNetworkPolicy($var) - { - GPBUtil::checkBool($var); - $this->enable_cilium_clusterwide_network_policy = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig/ClusterNetworkPerformanceConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig/ClusterNetworkPerformanceConfig.php deleted file mode 100644 index c43c6d2f0e3b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig/ClusterNetworkPerformanceConfig.php +++ /dev/null @@ -1,80 +0,0 @@ -google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig - */ -class ClusterNetworkPerformanceConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Specifies the total network bandwidth tier for NodePools in the cluster. - * - * Generated from protobuf field optional .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - */ - protected $total_egress_bandwidth_tier = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $total_egress_bandwidth_tier - * Specifies the total network bandwidth tier for NodePools in the cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Specifies the total network bandwidth tier for NodePools in the cluster. - * - * Generated from protobuf field optional .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * @return int - */ - public function getTotalEgressBandwidthTier() - { - return isset($this->total_egress_bandwidth_tier) ? $this->total_egress_bandwidth_tier : 0; - } - - public function hasTotalEgressBandwidthTier() - { - return isset($this->total_egress_bandwidth_tier); - } - - public function clearTotalEgressBandwidthTier() - { - unset($this->total_egress_bandwidth_tier); - } - - /** - * Specifies the total network bandwidth tier for NodePools in the cluster. - * - * Generated from protobuf field optional .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * @param int $var - * @return $this - */ - public function setTotalEgressBandwidthTier($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NetworkConfig\ClusterNetworkPerformanceConfig\Tier::class); - $this->total_egress_bandwidth_tier = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ClusterNetworkPerformanceConfig::class, \Google\Cloud\Container\V1\NetworkConfig_ClusterNetworkPerformanceConfig::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig/ClusterNetworkPerformanceConfig/Tier.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig/ClusterNetworkPerformanceConfig/Tier.php deleted file mode 100644 index 9f221983b15b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig/ClusterNetworkPerformanceConfig/Tier.php +++ /dev/null @@ -1,57 +0,0 @@ -google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier - */ -class Tier -{ - /** - * Default value - * - * Generated from protobuf enum TIER_UNSPECIFIED = 0; - */ - const TIER_UNSPECIFIED = 0; - /** - * Higher bandwidth, actual values based on VM size. - * - * Generated from protobuf enum TIER_1 = 1; - */ - const TIER_1 = 1; - - private static $valueToName = [ - self::TIER_UNSPECIFIED => 'TIER_UNSPECIFIED', - self::TIER_1 => 'TIER_1', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Tier::class, \Google\Cloud\Container\V1\NetworkConfig_ClusterNetworkPerformanceConfig_Tier::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicy.php deleted file mode 100644 index b883a5302a12..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicy.php +++ /dev/null @@ -1,102 +0,0 @@ -google.container.v1.NetworkPolicy - */ -class NetworkPolicy extends \Google\Protobuf\Internal\Message -{ - /** - * The selected network policy provider. - * - * Generated from protobuf field .google.container.v1.NetworkPolicy.Provider provider = 1; - */ - protected $provider = 0; - /** - * Whether network policy is enabled on the cluster. - * - * Generated from protobuf field bool enabled = 2; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $provider - * The selected network policy provider. - * @type bool $enabled - * Whether network policy is enabled on the cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The selected network policy provider. - * - * Generated from protobuf field .google.container.v1.NetworkPolicy.Provider provider = 1; - * @return int - */ - public function getProvider() - { - return $this->provider; - } - - /** - * The selected network policy provider. - * - * Generated from protobuf field .google.container.v1.NetworkPolicy.Provider provider = 1; - * @param int $var - * @return $this - */ - public function setProvider($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NetworkPolicy\Provider::class); - $this->provider = $var; - - return $this; - } - - /** - * Whether network policy is enabled on the cluster. - * - * Generated from protobuf field bool enabled = 2; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether network policy is enabled on the cluster. - * - * Generated from protobuf field bool enabled = 2; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicy/Provider.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicy/Provider.php deleted file mode 100644 index ec0b75a7993d..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicy/Provider.php +++ /dev/null @@ -1,57 +0,0 @@ -google.container.v1.NetworkPolicy.Provider - */ -class Provider -{ - /** - * Not set - * - * Generated from protobuf enum PROVIDER_UNSPECIFIED = 0; - */ - const PROVIDER_UNSPECIFIED = 0; - /** - * Tigera (Calico Felix). - * - * Generated from protobuf enum CALICO = 1; - */ - const CALICO = 1; - - private static $valueToName = [ - self::PROVIDER_UNSPECIFIED => 'PROVIDER_UNSPECIFIED', - self::CALICO => 'CALICO', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Provider::class, \Google\Cloud\Container\V1\NetworkPolicy_Provider::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicyConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicyConfig.php deleted file mode 100644 index 23e9c2000fc8..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicyConfig.php +++ /dev/null @@ -1,69 +0,0 @@ -google.container.v1.NetworkPolicyConfig - */ -class NetworkPolicyConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether NetworkPolicy is enabled for this cluster. - * - * Generated from protobuf field bool disabled = 1; - */ - protected $disabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $disabled - * Whether NetworkPolicy is enabled for this cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether NetworkPolicy is enabled for this cluster. - * - * Generated from protobuf field bool disabled = 1; - * @return bool - */ - public function getDisabled() - { - return $this->disabled; - } - - /** - * Whether NetworkPolicy is enabled for this cluster. - * - * Generated from protobuf field bool disabled = 1; - * @param bool $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkBool($var); - $this->disabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkTags.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkTags.php deleted file mode 100644 index 7e34a1b2eda3..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkTags.php +++ /dev/null @@ -1,68 +0,0 @@ -google.container.v1.NetworkTags - */ -class NetworkTags extends \Google\Protobuf\Internal\Message -{ - /** - * List of network tags. - * - * Generated from protobuf field repeated string tags = 1; - */ - private $tags; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $tags - * List of network tags. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * List of network tags. - * - * Generated from protobuf field repeated string tags = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTags() - { - return $this->tags; - } - - /** - * List of network tags. - * - * Generated from protobuf field repeated string tags = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfig.php deleted file mode 100644 index a33283a96c17..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfig.php +++ /dev/null @@ -1,1869 +0,0 @@ -google.container.v1.NodeConfig - */ -class NodeConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The name of a Google Compute Engine [machine - * type](https://cloud.google.com/compute/docs/machine-types) - * If unspecified, the default machine type is `e2-medium`. - * - * Generated from protobuf field string machine_type = 1; - */ - protected $machine_type = ''; - /** - * Size of the disk attached to each node, specified in GB. - * The smallest allowed disk size is 10GB. - * If unspecified, the default disk size is 100GB. - * - * Generated from protobuf field int32 disk_size_gb = 2; - */ - protected $disk_size_gb = 0; - /** - * The set of Google API scopes to be made available on all of the - * node VMs under the "default" service account. - * The following scopes are recommended, but not required, and by default are - * not included: - * * `https://www.googleapis.com/auth/compute` is required for mounting - * persistent storage on your nodes. - * * `https://www.googleapis.com/auth/devstorage.read_only` is required for - * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). - * If unspecified, no scopes are added, unless Cloud Logging or Cloud - * Monitoring are enabled, in which case their required scopes will be added. - * - * Generated from protobuf field repeated string oauth_scopes = 3; - */ - private $oauth_scopes; - /** - * The Google Cloud Platform Service Account to be used by the node VMs. - * Specify the email address of the Service Account; otherwise, if no Service - * Account is specified, the "default" service account is used. - * - * Generated from protobuf field string service_account = 9; - */ - protected $service_account = ''; - /** - * The metadata key/value pairs assigned to instances in the cluster. - * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes - * in length. These are reflected as part of a URL in the metadata server. - * Additionally, to avoid ambiguity, keys must not conflict with any other - * metadata keys for the project or be one of the reserved keys: - * - "cluster-location" - * - "cluster-name" - * - "cluster-uid" - * - "configure-sh" - * - "containerd-configure-sh" - * - "enable-os-login" - * - "gci-ensure-gke-docker" - * - "gci-metrics-enabled" - * - "gci-update-strategy" - * - "instance-template" - * - "kube-env" - * - "startup-script" - * - "user-data" - * - "disable-address-manager" - * - "windows-startup-script-ps1" - * - "common-psm1" - * - "k8s-node-setup-psm1" - * - "install-ssh-psm1" - * - "user-profile-psm1" - * Values are free-form strings, and only have meaning as interpreted by - * the image running in the instance. The only restriction placed on them is - * that each value's size must be less than or equal to 32 KB. - * The total size of all keys and values must be less than 512 KB. - * - * Generated from protobuf field map metadata = 4; - */ - private $metadata; - /** - * The image type to use for this node. Note that for a given image type, - * the latest version of it will be used. Please see - * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for - * available image types. - * - * Generated from protobuf field string image_type = 5; - */ - protected $image_type = ''; - /** - * The map of Kubernetes labels (key/value pairs) to be applied to each node. - * These will added in addition to any default label(s) that - * Kubernetes may apply to the node. - * In case of conflict in label keys, the applied set may differ depending on - * the Kubernetes version -- it's best to assume the behavior is undefined - * and conflicts should be avoided. - * For more information, including usage and the valid values, see: - * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - * - * Generated from protobuf field map labels = 6; - */ - private $labels; - /** - * The number of local SSD disks to be attached to the node. - * The limit for this value is dependent upon the maximum number of - * disks available on a machine per zone. See: - * https://cloud.google.com/compute/docs/disks/local-ssd - * for more information. - * - * Generated from protobuf field int32 local_ssd_count = 7; - */ - protected $local_ssd_count = 0; - /** - * The list of instance tags applied to all nodes. Tags are used to identify - * valid sources or targets for network firewalls and are specified by - * the client during cluster or node pool creation. Each tag within the list - * must comply with RFC1035. - * - * Generated from protobuf field repeated string tags = 8; - */ - private $tags; - /** - * Whether the nodes are created as preemptible VM instances. See: - * https://cloud.google.com/compute/docs/instances/preemptible for more - * information about preemptible VM instances. - * - * Generated from protobuf field bool preemptible = 10; - */ - protected $preemptible = false; - /** - * A list of hardware accelerators to be attached to each node. - * See https://cloud.google.com/compute/docs/gpus for more information about - * support for GPUs. - * - * Generated from protobuf field repeated .google.container.v1.AcceleratorConfig accelerators = 11; - */ - private $accelerators; - /** - * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or - * 'pd-balanced') - * If unspecified, the default disk type is 'pd-standard' - * - * Generated from protobuf field string disk_type = 12; - */ - protected $disk_type = ''; - /** - * Minimum CPU platform to be used by this instance. The instance may be - * scheduled on the specified or newer CPU platform. Applicable values are the - * friendly names of CPU platforms, such as - * `minCpuPlatform: "Intel Haswell"` or - * `minCpuPlatform: "Intel Sandy Bridge"`. For more - * information, read [how to specify min CPU - * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) - * - * Generated from protobuf field string min_cpu_platform = 13; - */ - protected $min_cpu_platform = ''; - /** - * The workload metadata configuration for this node. - * - * Generated from protobuf field .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - protected $workload_metadata_config = null; - /** - * List of kubernetes taints to be applied to each node. - * For more information, including usage and the valid values, see: - * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ - * - * Generated from protobuf field repeated .google.container.v1.NodeTaint taints = 15; - */ - private $taints; - /** - * Sandbox configuration for this node. - * - * Generated from protobuf field .google.container.v1.SandboxConfig sandbox_config = 17; - */ - protected $sandbox_config = null; - /** - * Setting this field will assign instances of this - * pool to run on the specified node group. This is useful for running - * workloads on [sole tenant - * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes). - * - * Generated from protobuf field string node_group = 18; - */ - protected $node_group = ''; - /** - * The optional reservation affinity. Setting this field will apply - * the specified [Zonal Compute - * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) - * to this node pool. - * - * Generated from protobuf field .google.container.v1.ReservationAffinity reservation_affinity = 19; - */ - protected $reservation_affinity = null; - /** - * Shielded Instance options. - * - * Generated from protobuf field .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - */ - protected $shielded_instance_config = null; - /** - * Parameters that can be configured on Linux nodes. - * - * Generated from protobuf field .google.container.v1.LinuxNodeConfig linux_node_config = 21; - */ - protected $linux_node_config = null; - /** - * Node kubelet configs. - * - * Generated from protobuf field .google.container.v1.NodeKubeletConfig kubelet_config = 22; - */ - protected $kubelet_config = null; - /** - * The Customer Managed Encryption Key used to encrypt the boot disk attached - * to each node in the node pool. This should be of the form - * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. - * For more information about protecting resources with Cloud KMS Keys please - * see: - * https://cloud.google.com/compute/docs/disks/customer-managed-encryption - * - * Generated from protobuf field string boot_disk_kms_key = 23; - */ - protected $boot_disk_kms_key = ''; - /** - * Google Container File System (image streaming) configs. - * - * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 25; - */ - protected $gcfs_config = null; - /** - * Advanced features for the Compute Engine VM. - * - * Generated from protobuf field .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; - */ - protected $advanced_machine_features = null; - /** - * Enable or disable gvnic in the node pool. - * - * Generated from protobuf field .google.container.v1.VirtualNIC gvnic = 29; - */ - protected $gvnic = null; - /** - * Spot flag for enabling Spot VM, which is a rebrand of - * the existing preemptible flag. - * - * Generated from protobuf field bool spot = 32; - */ - protected $spot = false; - /** - * Confidential nodes config. - * All the nodes in the node pool will be Confidential VM once enabled. - * - * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 35; - */ - protected $confidential_nodes = null; - /** - * Enable or disable NCCL fast socket for the node pool. - * - * Generated from protobuf field optional .google.container.v1.FastSocket fast_socket = 36; - */ - protected $fast_socket = null; - /** - * The resource labels for the node pool to use to annotate any related - * Google Compute Engine resources. - * - * Generated from protobuf field map resource_labels = 37; - */ - private $resource_labels; - /** - * Logging configuration. - * - * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 38; - */ - protected $logging_config = null; - /** - * Parameters that can be configured on Windows nodes. - * - * Generated from protobuf field .google.container.v1.WindowsNodeConfig windows_node_config = 39; - */ - protected $windows_node_config = null; - /** - * Parameters for using raw-block Local NVMe SSDs. - * - * Generated from protobuf field .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; - */ - protected $local_nvme_ssd_block_config = null; - /** - * Parameters for the node ephemeral storage using Local SSDs. - * If unspecified, ephemeral storage is backed by the boot disk. - * - * Generated from protobuf field .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; - */ - protected $ephemeral_storage_local_ssd_config = null; - /** - * Parameters for node pools to be backed by shared sole tenant node groups. - * - * Generated from protobuf field .google.container.v1.SoleTenantConfig sole_tenant_config = 42; - */ - protected $sole_tenant_config = null; - /** - * A map of resource manager tag keys and values to be attached to the nodes. - * - * Generated from protobuf field .google.container.v1.ResourceManagerTags resource_manager_tags = 45; - */ - protected $resource_manager_tags = null; - /** - * Optional. Reserved for future use. - * - * Generated from protobuf field bool enable_confidential_storage = 46 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $enable_confidential_storage = false; - /** - * List of secondary boot disks attached to the nodes. - * - * Generated from protobuf field repeated .google.container.v1.SecondaryBootDisk secondary_boot_disks = 48; - */ - private $secondary_boot_disks; - /** - * Secondary boot disk update strategy. - * - * Generated from protobuf field optional .google.container.v1.SecondaryBootDiskUpdateStrategy secondary_boot_disk_update_strategy = 50; - */ - protected $secondary_boot_disk_update_strategy = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $machine_type - * The name of a Google Compute Engine [machine - * type](https://cloud.google.com/compute/docs/machine-types) - * If unspecified, the default machine type is `e2-medium`. - * @type int $disk_size_gb - * Size of the disk attached to each node, specified in GB. - * The smallest allowed disk size is 10GB. - * If unspecified, the default disk size is 100GB. - * @type array|\Google\Protobuf\Internal\RepeatedField $oauth_scopes - * The set of Google API scopes to be made available on all of the - * node VMs under the "default" service account. - * The following scopes are recommended, but not required, and by default are - * not included: - * * `https://www.googleapis.com/auth/compute` is required for mounting - * persistent storage on your nodes. - * * `https://www.googleapis.com/auth/devstorage.read_only` is required for - * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). - * If unspecified, no scopes are added, unless Cloud Logging or Cloud - * Monitoring are enabled, in which case their required scopes will be added. - * @type string $service_account - * The Google Cloud Platform Service Account to be used by the node VMs. - * Specify the email address of the Service Account; otherwise, if no Service - * Account is specified, the "default" service account is used. - * @type array|\Google\Protobuf\Internal\MapField $metadata - * The metadata key/value pairs assigned to instances in the cluster. - * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes - * in length. These are reflected as part of a URL in the metadata server. - * Additionally, to avoid ambiguity, keys must not conflict with any other - * metadata keys for the project or be one of the reserved keys: - * - "cluster-location" - * - "cluster-name" - * - "cluster-uid" - * - "configure-sh" - * - "containerd-configure-sh" - * - "enable-os-login" - * - "gci-ensure-gke-docker" - * - "gci-metrics-enabled" - * - "gci-update-strategy" - * - "instance-template" - * - "kube-env" - * - "startup-script" - * - "user-data" - * - "disable-address-manager" - * - "windows-startup-script-ps1" - * - "common-psm1" - * - "k8s-node-setup-psm1" - * - "install-ssh-psm1" - * - "user-profile-psm1" - * Values are free-form strings, and only have meaning as interpreted by - * the image running in the instance. The only restriction placed on them is - * that each value's size must be less than or equal to 32 KB. - * The total size of all keys and values must be less than 512 KB. - * @type string $image_type - * The image type to use for this node. Note that for a given image type, - * the latest version of it will be used. Please see - * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for - * available image types. - * @type array|\Google\Protobuf\Internal\MapField $labels - * The map of Kubernetes labels (key/value pairs) to be applied to each node. - * These will added in addition to any default label(s) that - * Kubernetes may apply to the node. - * In case of conflict in label keys, the applied set may differ depending on - * the Kubernetes version -- it's best to assume the behavior is undefined - * and conflicts should be avoided. - * For more information, including usage and the valid values, see: - * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - * @type int $local_ssd_count - * The number of local SSD disks to be attached to the node. - * The limit for this value is dependent upon the maximum number of - * disks available on a machine per zone. See: - * https://cloud.google.com/compute/docs/disks/local-ssd - * for more information. - * @type array|\Google\Protobuf\Internal\RepeatedField $tags - * The list of instance tags applied to all nodes. Tags are used to identify - * valid sources or targets for network firewalls and are specified by - * the client during cluster or node pool creation. Each tag within the list - * must comply with RFC1035. - * @type bool $preemptible - * Whether the nodes are created as preemptible VM instances. See: - * https://cloud.google.com/compute/docs/instances/preemptible for more - * information about preemptible VM instances. - * @type array<\Google\Cloud\Container\V1\AcceleratorConfig>|\Google\Protobuf\Internal\RepeatedField $accelerators - * A list of hardware accelerators to be attached to each node. - * See https://cloud.google.com/compute/docs/gpus for more information about - * support for GPUs. - * @type string $disk_type - * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or - * 'pd-balanced') - * If unspecified, the default disk type is 'pd-standard' - * @type string $min_cpu_platform - * Minimum CPU platform to be used by this instance. The instance may be - * scheduled on the specified or newer CPU platform. Applicable values are the - * friendly names of CPU platforms, such as - * `minCpuPlatform: "Intel Haswell"` or - * `minCpuPlatform: "Intel Sandy Bridge"`. For more - * information, read [how to specify min CPU - * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) - * @type \Google\Cloud\Container\V1\WorkloadMetadataConfig $workload_metadata_config - * The workload metadata configuration for this node. - * @type array<\Google\Cloud\Container\V1\NodeTaint>|\Google\Protobuf\Internal\RepeatedField $taints - * List of kubernetes taints to be applied to each node. - * For more information, including usage and the valid values, see: - * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ - * @type \Google\Cloud\Container\V1\SandboxConfig $sandbox_config - * Sandbox configuration for this node. - * @type string $node_group - * Setting this field will assign instances of this - * pool to run on the specified node group. This is useful for running - * workloads on [sole tenant - * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes). - * @type \Google\Cloud\Container\V1\ReservationAffinity $reservation_affinity - * The optional reservation affinity. Setting this field will apply - * the specified [Zonal Compute - * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) - * to this node pool. - * @type \Google\Cloud\Container\V1\ShieldedInstanceConfig $shielded_instance_config - * Shielded Instance options. - * @type \Google\Cloud\Container\V1\LinuxNodeConfig $linux_node_config - * Parameters that can be configured on Linux nodes. - * @type \Google\Cloud\Container\V1\NodeKubeletConfig $kubelet_config - * Node kubelet configs. - * @type string $boot_disk_kms_key - * The Customer Managed Encryption Key used to encrypt the boot disk attached - * to each node in the node pool. This should be of the form - * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. - * For more information about protecting resources with Cloud KMS Keys please - * see: - * https://cloud.google.com/compute/docs/disks/customer-managed-encryption - * @type \Google\Cloud\Container\V1\GcfsConfig $gcfs_config - * Google Container File System (image streaming) configs. - * @type \Google\Cloud\Container\V1\AdvancedMachineFeatures $advanced_machine_features - * Advanced features for the Compute Engine VM. - * @type \Google\Cloud\Container\V1\VirtualNIC $gvnic - * Enable or disable gvnic in the node pool. - * @type bool $spot - * Spot flag for enabling Spot VM, which is a rebrand of - * the existing preemptible flag. - * @type \Google\Cloud\Container\V1\ConfidentialNodes $confidential_nodes - * Confidential nodes config. - * All the nodes in the node pool will be Confidential VM once enabled. - * @type \Google\Cloud\Container\V1\FastSocket $fast_socket - * Enable or disable NCCL fast socket for the node pool. - * @type array|\Google\Protobuf\Internal\MapField $resource_labels - * The resource labels for the node pool to use to annotate any related - * Google Compute Engine resources. - * @type \Google\Cloud\Container\V1\NodePoolLoggingConfig $logging_config - * Logging configuration. - * @type \Google\Cloud\Container\V1\WindowsNodeConfig $windows_node_config - * Parameters that can be configured on Windows nodes. - * @type \Google\Cloud\Container\V1\LocalNvmeSsdBlockConfig $local_nvme_ssd_block_config - * Parameters for using raw-block Local NVMe SSDs. - * @type \Google\Cloud\Container\V1\EphemeralStorageLocalSsdConfig $ephemeral_storage_local_ssd_config - * Parameters for the node ephemeral storage using Local SSDs. - * If unspecified, ephemeral storage is backed by the boot disk. - * @type \Google\Cloud\Container\V1\SoleTenantConfig $sole_tenant_config - * Parameters for node pools to be backed by shared sole tenant node groups. - * @type \Google\Cloud\Container\V1\ResourceManagerTags $resource_manager_tags - * A map of resource manager tag keys and values to be attached to the nodes. - * @type bool $enable_confidential_storage - * Optional. Reserved for future use. - * @type array<\Google\Cloud\Container\V1\SecondaryBootDisk>|\Google\Protobuf\Internal\RepeatedField $secondary_boot_disks - * List of secondary boot disks attached to the nodes. - * @type \Google\Cloud\Container\V1\SecondaryBootDiskUpdateStrategy $secondary_boot_disk_update_strategy - * Secondary boot disk update strategy. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The name of a Google Compute Engine [machine - * type](https://cloud.google.com/compute/docs/machine-types) - * If unspecified, the default machine type is `e2-medium`. - * - * Generated from protobuf field string machine_type = 1; - * @return string - */ - public function getMachineType() - { - return $this->machine_type; - } - - /** - * The name of a Google Compute Engine [machine - * type](https://cloud.google.com/compute/docs/machine-types) - * If unspecified, the default machine type is `e2-medium`. - * - * Generated from protobuf field string machine_type = 1; - * @param string $var - * @return $this - */ - public function setMachineType($var) - { - GPBUtil::checkString($var, True); - $this->machine_type = $var; - - return $this; - } - - /** - * Size of the disk attached to each node, specified in GB. - * The smallest allowed disk size is 10GB. - * If unspecified, the default disk size is 100GB. - * - * Generated from protobuf field int32 disk_size_gb = 2; - * @return int - */ - public function getDiskSizeGb() - { - return $this->disk_size_gb; - } - - /** - * Size of the disk attached to each node, specified in GB. - * The smallest allowed disk size is 10GB. - * If unspecified, the default disk size is 100GB. - * - * Generated from protobuf field int32 disk_size_gb = 2; - * @param int $var - * @return $this - */ - public function setDiskSizeGb($var) - { - GPBUtil::checkInt32($var); - $this->disk_size_gb = $var; - - return $this; - } - - /** - * The set of Google API scopes to be made available on all of the - * node VMs under the "default" service account. - * The following scopes are recommended, but not required, and by default are - * not included: - * * `https://www.googleapis.com/auth/compute` is required for mounting - * persistent storage on your nodes. - * * `https://www.googleapis.com/auth/devstorage.read_only` is required for - * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). - * If unspecified, no scopes are added, unless Cloud Logging or Cloud - * Monitoring are enabled, in which case their required scopes will be added. - * - * Generated from protobuf field repeated string oauth_scopes = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOauthScopes() - { - return $this->oauth_scopes; - } - - /** - * The set of Google API scopes to be made available on all of the - * node VMs under the "default" service account. - * The following scopes are recommended, but not required, and by default are - * not included: - * * `https://www.googleapis.com/auth/compute` is required for mounting - * persistent storage on your nodes. - * * `https://www.googleapis.com/auth/devstorage.read_only` is required for - * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). - * If unspecified, no scopes are added, unless Cloud Logging or Cloud - * Monitoring are enabled, in which case their required scopes will be added. - * - * Generated from protobuf field repeated string oauth_scopes = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOauthScopes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->oauth_scopes = $arr; - - return $this; - } - - /** - * The Google Cloud Platform Service Account to be used by the node VMs. - * Specify the email address of the Service Account; otherwise, if no Service - * Account is specified, the "default" service account is used. - * - * Generated from protobuf field string service_account = 9; - * @return string - */ - public function getServiceAccount() - { - return $this->service_account; - } - - /** - * The Google Cloud Platform Service Account to be used by the node VMs. - * Specify the email address of the Service Account; otherwise, if no Service - * Account is specified, the "default" service account is used. - * - * Generated from protobuf field string service_account = 9; - * @param string $var - * @return $this - */ - public function setServiceAccount($var) - { - GPBUtil::checkString($var, True); - $this->service_account = $var; - - return $this; - } - - /** - * The metadata key/value pairs assigned to instances in the cluster. - * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes - * in length. These are reflected as part of a URL in the metadata server. - * Additionally, to avoid ambiguity, keys must not conflict with any other - * metadata keys for the project or be one of the reserved keys: - * - "cluster-location" - * - "cluster-name" - * - "cluster-uid" - * - "configure-sh" - * - "containerd-configure-sh" - * - "enable-os-login" - * - "gci-ensure-gke-docker" - * - "gci-metrics-enabled" - * - "gci-update-strategy" - * - "instance-template" - * - "kube-env" - * - "startup-script" - * - "user-data" - * - "disable-address-manager" - * - "windows-startup-script-ps1" - * - "common-psm1" - * - "k8s-node-setup-psm1" - * - "install-ssh-psm1" - * - "user-profile-psm1" - * Values are free-form strings, and only have meaning as interpreted by - * the image running in the instance. The only restriction placed on them is - * that each value's size must be less than or equal to 32 KB. - * The total size of all keys and values must be less than 512 KB. - * - * Generated from protobuf field map metadata = 4; - * @return \Google\Protobuf\Internal\MapField - */ - public function getMetadata() - { - return $this->metadata; - } - - /** - * The metadata key/value pairs assigned to instances in the cluster. - * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes - * in length. These are reflected as part of a URL in the metadata server. - * Additionally, to avoid ambiguity, keys must not conflict with any other - * metadata keys for the project or be one of the reserved keys: - * - "cluster-location" - * - "cluster-name" - * - "cluster-uid" - * - "configure-sh" - * - "containerd-configure-sh" - * - "enable-os-login" - * - "gci-ensure-gke-docker" - * - "gci-metrics-enabled" - * - "gci-update-strategy" - * - "instance-template" - * - "kube-env" - * - "startup-script" - * - "user-data" - * - "disable-address-manager" - * - "windows-startup-script-ps1" - * - "common-psm1" - * - "k8s-node-setup-psm1" - * - "install-ssh-psm1" - * - "user-profile-psm1" - * Values are free-form strings, and only have meaning as interpreted by - * the image running in the instance. The only restriction placed on them is - * that each value's size must be less than or equal to 32 KB. - * The total size of all keys and values must be less than 512 KB. - * - * Generated from protobuf field map metadata = 4; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setMetadata($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->metadata = $arr; - - return $this; - } - - /** - * The image type to use for this node. Note that for a given image type, - * the latest version of it will be used. Please see - * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for - * available image types. - * - * Generated from protobuf field string image_type = 5; - * @return string - */ - public function getImageType() - { - return $this->image_type; - } - - /** - * The image type to use for this node. Note that for a given image type, - * the latest version of it will be used. Please see - * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for - * available image types. - * - * Generated from protobuf field string image_type = 5; - * @param string $var - * @return $this - */ - public function setImageType($var) - { - GPBUtil::checkString($var, True); - $this->image_type = $var; - - return $this; - } - - /** - * The map of Kubernetes labels (key/value pairs) to be applied to each node. - * These will added in addition to any default label(s) that - * Kubernetes may apply to the node. - * In case of conflict in label keys, the applied set may differ depending on - * the Kubernetes version -- it's best to assume the behavior is undefined - * and conflicts should be avoided. - * For more information, including usage and the valid values, see: - * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - * - * Generated from protobuf field map labels = 6; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * The map of Kubernetes labels (key/value pairs) to be applied to each node. - * These will added in addition to any default label(s) that - * Kubernetes may apply to the node. - * In case of conflict in label keys, the applied set may differ depending on - * the Kubernetes version -- it's best to assume the behavior is undefined - * and conflicts should be avoided. - * For more information, including usage and the valid values, see: - * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - * - * Generated from protobuf field map labels = 6; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * The number of local SSD disks to be attached to the node. - * The limit for this value is dependent upon the maximum number of - * disks available on a machine per zone. See: - * https://cloud.google.com/compute/docs/disks/local-ssd - * for more information. - * - * Generated from protobuf field int32 local_ssd_count = 7; - * @return int - */ - public function getLocalSsdCount() - { - return $this->local_ssd_count; - } - - /** - * The number of local SSD disks to be attached to the node. - * The limit for this value is dependent upon the maximum number of - * disks available on a machine per zone. See: - * https://cloud.google.com/compute/docs/disks/local-ssd - * for more information. - * - * Generated from protobuf field int32 local_ssd_count = 7; - * @param int $var - * @return $this - */ - public function setLocalSsdCount($var) - { - GPBUtil::checkInt32($var); - $this->local_ssd_count = $var; - - return $this; - } - - /** - * The list of instance tags applied to all nodes. Tags are used to identify - * valid sources or targets for network firewalls and are specified by - * the client during cluster or node pool creation. Each tag within the list - * must comply with RFC1035. - * - * Generated from protobuf field repeated string tags = 8; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTags() - { - return $this->tags; - } - - /** - * The list of instance tags applied to all nodes. Tags are used to identify - * valid sources or targets for network firewalls and are specified by - * the client during cluster or node pool creation. Each tag within the list - * must comply with RFC1035. - * - * Generated from protobuf field repeated string tags = 8; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - - /** - * Whether the nodes are created as preemptible VM instances. See: - * https://cloud.google.com/compute/docs/instances/preemptible for more - * information about preemptible VM instances. - * - * Generated from protobuf field bool preemptible = 10; - * @return bool - */ - public function getPreemptible() - { - return $this->preemptible; - } - - /** - * Whether the nodes are created as preemptible VM instances. See: - * https://cloud.google.com/compute/docs/instances/preemptible for more - * information about preemptible VM instances. - * - * Generated from protobuf field bool preemptible = 10; - * @param bool $var - * @return $this - */ - public function setPreemptible($var) - { - GPBUtil::checkBool($var); - $this->preemptible = $var; - - return $this; - } - - /** - * A list of hardware accelerators to be attached to each node. - * See https://cloud.google.com/compute/docs/gpus for more information about - * support for GPUs. - * - * Generated from protobuf field repeated .google.container.v1.AcceleratorConfig accelerators = 11; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAccelerators() - { - return $this->accelerators; - } - - /** - * A list of hardware accelerators to be attached to each node. - * See https://cloud.google.com/compute/docs/gpus for more information about - * support for GPUs. - * - * Generated from protobuf field repeated .google.container.v1.AcceleratorConfig accelerators = 11; - * @param array<\Google\Cloud\Container\V1\AcceleratorConfig>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAccelerators($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\AcceleratorConfig::class); - $this->accelerators = $arr; - - return $this; - } - - /** - * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or - * 'pd-balanced') - * If unspecified, the default disk type is 'pd-standard' - * - * Generated from protobuf field string disk_type = 12; - * @return string - */ - public function getDiskType() - { - return $this->disk_type; - } - - /** - * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or - * 'pd-balanced') - * If unspecified, the default disk type is 'pd-standard' - * - * Generated from protobuf field string disk_type = 12; - * @param string $var - * @return $this - */ - public function setDiskType($var) - { - GPBUtil::checkString($var, True); - $this->disk_type = $var; - - return $this; - } - - /** - * Minimum CPU platform to be used by this instance. The instance may be - * scheduled on the specified or newer CPU platform. Applicable values are the - * friendly names of CPU platforms, such as - * `minCpuPlatform: "Intel Haswell"` or - * `minCpuPlatform: "Intel Sandy Bridge"`. For more - * information, read [how to specify min CPU - * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) - * - * Generated from protobuf field string min_cpu_platform = 13; - * @return string - */ - public function getMinCpuPlatform() - { - return $this->min_cpu_platform; - } - - /** - * Minimum CPU platform to be used by this instance. The instance may be - * scheduled on the specified or newer CPU platform. Applicable values are the - * friendly names of CPU platforms, such as - * `minCpuPlatform: "Intel Haswell"` or - * `minCpuPlatform: "Intel Sandy Bridge"`. For more - * information, read [how to specify min CPU - * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) - * - * Generated from protobuf field string min_cpu_platform = 13; - * @param string $var - * @return $this - */ - public function setMinCpuPlatform($var) - { - GPBUtil::checkString($var, True); - $this->min_cpu_platform = $var; - - return $this; - } - - /** - * The workload metadata configuration for this node. - * - * Generated from protobuf field .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * @return \Google\Cloud\Container\V1\WorkloadMetadataConfig|null - */ - public function getWorkloadMetadataConfig() - { - return $this->workload_metadata_config; - } - - public function hasWorkloadMetadataConfig() - { - return isset($this->workload_metadata_config); - } - - public function clearWorkloadMetadataConfig() - { - unset($this->workload_metadata_config); - } - - /** - * The workload metadata configuration for this node. - * - * Generated from protobuf field .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * @param \Google\Cloud\Container\V1\WorkloadMetadataConfig $var - * @return $this - */ - public function setWorkloadMetadataConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\WorkloadMetadataConfig::class); - $this->workload_metadata_config = $var; - - return $this; - } - - /** - * List of kubernetes taints to be applied to each node. - * For more information, including usage and the valid values, see: - * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ - * - * Generated from protobuf field repeated .google.container.v1.NodeTaint taints = 15; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTaints() - { - return $this->taints; - } - - /** - * List of kubernetes taints to be applied to each node. - * For more information, including usage and the valid values, see: - * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ - * - * Generated from protobuf field repeated .google.container.v1.NodeTaint taints = 15; - * @param array<\Google\Cloud\Container\V1\NodeTaint>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTaints($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\NodeTaint::class); - $this->taints = $arr; - - return $this; - } - - /** - * Sandbox configuration for this node. - * - * Generated from protobuf field .google.container.v1.SandboxConfig sandbox_config = 17; - * @return \Google\Cloud\Container\V1\SandboxConfig|null - */ - public function getSandboxConfig() - { - return $this->sandbox_config; - } - - public function hasSandboxConfig() - { - return isset($this->sandbox_config); - } - - public function clearSandboxConfig() - { - unset($this->sandbox_config); - } - - /** - * Sandbox configuration for this node. - * - * Generated from protobuf field .google.container.v1.SandboxConfig sandbox_config = 17; - * @param \Google\Cloud\Container\V1\SandboxConfig $var - * @return $this - */ - public function setSandboxConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\SandboxConfig::class); - $this->sandbox_config = $var; - - return $this; - } - - /** - * Setting this field will assign instances of this - * pool to run on the specified node group. This is useful for running - * workloads on [sole tenant - * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes). - * - * Generated from protobuf field string node_group = 18; - * @return string - */ - public function getNodeGroup() - { - return $this->node_group; - } - - /** - * Setting this field will assign instances of this - * pool to run on the specified node group. This is useful for running - * workloads on [sole tenant - * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes). - * - * Generated from protobuf field string node_group = 18; - * @param string $var - * @return $this - */ - public function setNodeGroup($var) - { - GPBUtil::checkString($var, True); - $this->node_group = $var; - - return $this; - } - - /** - * The optional reservation affinity. Setting this field will apply - * the specified [Zonal Compute - * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) - * to this node pool. - * - * Generated from protobuf field .google.container.v1.ReservationAffinity reservation_affinity = 19; - * @return \Google\Cloud\Container\V1\ReservationAffinity|null - */ - public function getReservationAffinity() - { - return $this->reservation_affinity; - } - - public function hasReservationAffinity() - { - return isset($this->reservation_affinity); - } - - public function clearReservationAffinity() - { - unset($this->reservation_affinity); - } - - /** - * The optional reservation affinity. Setting this field will apply - * the specified [Zonal Compute - * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) - * to this node pool. - * - * Generated from protobuf field .google.container.v1.ReservationAffinity reservation_affinity = 19; - * @param \Google\Cloud\Container\V1\ReservationAffinity $var - * @return $this - */ - public function setReservationAffinity($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ReservationAffinity::class); - $this->reservation_affinity = $var; - - return $this; - } - - /** - * Shielded Instance options. - * - * Generated from protobuf field .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - * @return \Google\Cloud\Container\V1\ShieldedInstanceConfig|null - */ - public function getShieldedInstanceConfig() - { - return $this->shielded_instance_config; - } - - public function hasShieldedInstanceConfig() - { - return isset($this->shielded_instance_config); - } - - public function clearShieldedInstanceConfig() - { - unset($this->shielded_instance_config); - } - - /** - * Shielded Instance options. - * - * Generated from protobuf field .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - * @param \Google\Cloud\Container\V1\ShieldedInstanceConfig $var - * @return $this - */ - public function setShieldedInstanceConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ShieldedInstanceConfig::class); - $this->shielded_instance_config = $var; - - return $this; - } - - /** - * Parameters that can be configured on Linux nodes. - * - * Generated from protobuf field .google.container.v1.LinuxNodeConfig linux_node_config = 21; - * @return \Google\Cloud\Container\V1\LinuxNodeConfig|null - */ - public function getLinuxNodeConfig() - { - return $this->linux_node_config; - } - - public function hasLinuxNodeConfig() - { - return isset($this->linux_node_config); - } - - public function clearLinuxNodeConfig() - { - unset($this->linux_node_config); - } - - /** - * Parameters that can be configured on Linux nodes. - * - * Generated from protobuf field .google.container.v1.LinuxNodeConfig linux_node_config = 21; - * @param \Google\Cloud\Container\V1\LinuxNodeConfig $var - * @return $this - */ - public function setLinuxNodeConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LinuxNodeConfig::class); - $this->linux_node_config = $var; - - return $this; - } - - /** - * Node kubelet configs. - * - * Generated from protobuf field .google.container.v1.NodeKubeletConfig kubelet_config = 22; - * @return \Google\Cloud\Container\V1\NodeKubeletConfig|null - */ - public function getKubeletConfig() - { - return $this->kubelet_config; - } - - public function hasKubeletConfig() - { - return isset($this->kubelet_config); - } - - public function clearKubeletConfig() - { - unset($this->kubelet_config); - } - - /** - * Node kubelet configs. - * - * Generated from protobuf field .google.container.v1.NodeKubeletConfig kubelet_config = 22; - * @param \Google\Cloud\Container\V1\NodeKubeletConfig $var - * @return $this - */ - public function setKubeletConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeKubeletConfig::class); - $this->kubelet_config = $var; - - return $this; - } - - /** - * The Customer Managed Encryption Key used to encrypt the boot disk attached - * to each node in the node pool. This should be of the form - * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. - * For more information about protecting resources with Cloud KMS Keys please - * see: - * https://cloud.google.com/compute/docs/disks/customer-managed-encryption - * - * Generated from protobuf field string boot_disk_kms_key = 23; - * @return string - */ - public function getBootDiskKmsKey() - { - return $this->boot_disk_kms_key; - } - - /** - * The Customer Managed Encryption Key used to encrypt the boot disk attached - * to each node in the node pool. This should be of the form - * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. - * For more information about protecting resources with Cloud KMS Keys please - * see: - * https://cloud.google.com/compute/docs/disks/customer-managed-encryption - * - * Generated from protobuf field string boot_disk_kms_key = 23; - * @param string $var - * @return $this - */ - public function setBootDiskKmsKey($var) - { - GPBUtil::checkString($var, True); - $this->boot_disk_kms_key = $var; - - return $this; - } - - /** - * Google Container File System (image streaming) configs. - * - * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 25; - * @return \Google\Cloud\Container\V1\GcfsConfig|null - */ - public function getGcfsConfig() - { - return $this->gcfs_config; - } - - public function hasGcfsConfig() - { - return isset($this->gcfs_config); - } - - public function clearGcfsConfig() - { - unset($this->gcfs_config); - } - - /** - * Google Container File System (image streaming) configs. - * - * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 25; - * @param \Google\Cloud\Container\V1\GcfsConfig $var - * @return $this - */ - public function setGcfsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GcfsConfig::class); - $this->gcfs_config = $var; - - return $this; - } - - /** - * Advanced features for the Compute Engine VM. - * - * Generated from protobuf field .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; - * @return \Google\Cloud\Container\V1\AdvancedMachineFeatures|null - */ - public function getAdvancedMachineFeatures() - { - return $this->advanced_machine_features; - } - - public function hasAdvancedMachineFeatures() - { - return isset($this->advanced_machine_features); - } - - public function clearAdvancedMachineFeatures() - { - unset($this->advanced_machine_features); - } - - /** - * Advanced features for the Compute Engine VM. - * - * Generated from protobuf field .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; - * @param \Google\Cloud\Container\V1\AdvancedMachineFeatures $var - * @return $this - */ - public function setAdvancedMachineFeatures($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AdvancedMachineFeatures::class); - $this->advanced_machine_features = $var; - - return $this; - } - - /** - * Enable or disable gvnic in the node pool. - * - * Generated from protobuf field .google.container.v1.VirtualNIC gvnic = 29; - * @return \Google\Cloud\Container\V1\VirtualNIC|null - */ - public function getGvnic() - { - return $this->gvnic; - } - - public function hasGvnic() - { - return isset($this->gvnic); - } - - public function clearGvnic() - { - unset($this->gvnic); - } - - /** - * Enable or disable gvnic in the node pool. - * - * Generated from protobuf field .google.container.v1.VirtualNIC gvnic = 29; - * @param \Google\Cloud\Container\V1\VirtualNIC $var - * @return $this - */ - public function setGvnic($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\VirtualNIC::class); - $this->gvnic = $var; - - return $this; - } - - /** - * Spot flag for enabling Spot VM, which is a rebrand of - * the existing preemptible flag. - * - * Generated from protobuf field bool spot = 32; - * @return bool - */ - public function getSpot() - { - return $this->spot; - } - - /** - * Spot flag for enabling Spot VM, which is a rebrand of - * the existing preemptible flag. - * - * Generated from protobuf field bool spot = 32; - * @param bool $var - * @return $this - */ - public function setSpot($var) - { - GPBUtil::checkBool($var); - $this->spot = $var; - - return $this; - } - - /** - * Confidential nodes config. - * All the nodes in the node pool will be Confidential VM once enabled. - * - * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 35; - * @return \Google\Cloud\Container\V1\ConfidentialNodes|null - */ - public function getConfidentialNodes() - { - return $this->confidential_nodes; - } - - public function hasConfidentialNodes() - { - return isset($this->confidential_nodes); - } - - public function clearConfidentialNodes() - { - unset($this->confidential_nodes); - } - - /** - * Confidential nodes config. - * All the nodes in the node pool will be Confidential VM once enabled. - * - * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 35; - * @param \Google\Cloud\Container\V1\ConfidentialNodes $var - * @return $this - */ - public function setConfidentialNodes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ConfidentialNodes::class); - $this->confidential_nodes = $var; - - return $this; - } - - /** - * Enable or disable NCCL fast socket for the node pool. - * - * Generated from protobuf field optional .google.container.v1.FastSocket fast_socket = 36; - * @return \Google\Cloud\Container\V1\FastSocket|null - */ - public function getFastSocket() - { - return $this->fast_socket; - } - - public function hasFastSocket() - { - return isset($this->fast_socket); - } - - public function clearFastSocket() - { - unset($this->fast_socket); - } - - /** - * Enable or disable NCCL fast socket for the node pool. - * - * Generated from protobuf field optional .google.container.v1.FastSocket fast_socket = 36; - * @param \Google\Cloud\Container\V1\FastSocket $var - * @return $this - */ - public function setFastSocket($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\FastSocket::class); - $this->fast_socket = $var; - - return $this; - } - - /** - * The resource labels for the node pool to use to annotate any related - * Google Compute Engine resources. - * - * Generated from protobuf field map resource_labels = 37; - * @return \Google\Protobuf\Internal\MapField - */ - public function getResourceLabels() - { - return $this->resource_labels; - } - - /** - * The resource labels for the node pool to use to annotate any related - * Google Compute Engine resources. - * - * Generated from protobuf field map resource_labels = 37; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setResourceLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->resource_labels = $arr; - - return $this; - } - - /** - * Logging configuration. - * - * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 38; - * @return \Google\Cloud\Container\V1\NodePoolLoggingConfig|null - */ - public function getLoggingConfig() - { - return $this->logging_config; - } - - public function hasLoggingConfig() - { - return isset($this->logging_config); - } - - public function clearLoggingConfig() - { - unset($this->logging_config); - } - - /** - * Logging configuration. - * - * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 38; - * @param \Google\Cloud\Container\V1\NodePoolLoggingConfig $var - * @return $this - */ - public function setLoggingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolLoggingConfig::class); - $this->logging_config = $var; - - return $this; - } - - /** - * Parameters that can be configured on Windows nodes. - * - * Generated from protobuf field .google.container.v1.WindowsNodeConfig windows_node_config = 39; - * @return \Google\Cloud\Container\V1\WindowsNodeConfig|null - */ - public function getWindowsNodeConfig() - { - return $this->windows_node_config; - } - - public function hasWindowsNodeConfig() - { - return isset($this->windows_node_config); - } - - public function clearWindowsNodeConfig() - { - unset($this->windows_node_config); - } - - /** - * Parameters that can be configured on Windows nodes. - * - * Generated from protobuf field .google.container.v1.WindowsNodeConfig windows_node_config = 39; - * @param \Google\Cloud\Container\V1\WindowsNodeConfig $var - * @return $this - */ - public function setWindowsNodeConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\WindowsNodeConfig::class); - $this->windows_node_config = $var; - - return $this; - } - - /** - * Parameters for using raw-block Local NVMe SSDs. - * - * Generated from protobuf field .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; - * @return \Google\Cloud\Container\V1\LocalNvmeSsdBlockConfig|null - */ - public function getLocalNvmeSsdBlockConfig() - { - return $this->local_nvme_ssd_block_config; - } - - public function hasLocalNvmeSsdBlockConfig() - { - return isset($this->local_nvme_ssd_block_config); - } - - public function clearLocalNvmeSsdBlockConfig() - { - unset($this->local_nvme_ssd_block_config); - } - - /** - * Parameters for using raw-block Local NVMe SSDs. - * - * Generated from protobuf field .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; - * @param \Google\Cloud\Container\V1\LocalNvmeSsdBlockConfig $var - * @return $this - */ - public function setLocalNvmeSsdBlockConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LocalNvmeSsdBlockConfig::class); - $this->local_nvme_ssd_block_config = $var; - - return $this; - } - - /** - * Parameters for the node ephemeral storage using Local SSDs. - * If unspecified, ephemeral storage is backed by the boot disk. - * - * Generated from protobuf field .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; - * @return \Google\Cloud\Container\V1\EphemeralStorageLocalSsdConfig|null - */ - public function getEphemeralStorageLocalSsdConfig() - { - return $this->ephemeral_storage_local_ssd_config; - } - - public function hasEphemeralStorageLocalSsdConfig() - { - return isset($this->ephemeral_storage_local_ssd_config); - } - - public function clearEphemeralStorageLocalSsdConfig() - { - unset($this->ephemeral_storage_local_ssd_config); - } - - /** - * Parameters for the node ephemeral storage using Local SSDs. - * If unspecified, ephemeral storage is backed by the boot disk. - * - * Generated from protobuf field .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; - * @param \Google\Cloud\Container\V1\EphemeralStorageLocalSsdConfig $var - * @return $this - */ - public function setEphemeralStorageLocalSsdConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\EphemeralStorageLocalSsdConfig::class); - $this->ephemeral_storage_local_ssd_config = $var; - - return $this; - } - - /** - * Parameters for node pools to be backed by shared sole tenant node groups. - * - * Generated from protobuf field .google.container.v1.SoleTenantConfig sole_tenant_config = 42; - * @return \Google\Cloud\Container\V1\SoleTenantConfig|null - */ - public function getSoleTenantConfig() - { - return $this->sole_tenant_config; - } - - public function hasSoleTenantConfig() - { - return isset($this->sole_tenant_config); - } - - public function clearSoleTenantConfig() - { - unset($this->sole_tenant_config); - } - - /** - * Parameters for node pools to be backed by shared sole tenant node groups. - * - * Generated from protobuf field .google.container.v1.SoleTenantConfig sole_tenant_config = 42; - * @param \Google\Cloud\Container\V1\SoleTenantConfig $var - * @return $this - */ - public function setSoleTenantConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\SoleTenantConfig::class); - $this->sole_tenant_config = $var; - - return $this; - } - - /** - * A map of resource manager tag keys and values to be attached to the nodes. - * - * Generated from protobuf field .google.container.v1.ResourceManagerTags resource_manager_tags = 45; - * @return \Google\Cloud\Container\V1\ResourceManagerTags|null - */ - public function getResourceManagerTags() - { - return $this->resource_manager_tags; - } - - public function hasResourceManagerTags() - { - return isset($this->resource_manager_tags); - } - - public function clearResourceManagerTags() - { - unset($this->resource_manager_tags); - } - - /** - * A map of resource manager tag keys and values to be attached to the nodes. - * - * Generated from protobuf field .google.container.v1.ResourceManagerTags resource_manager_tags = 45; - * @param \Google\Cloud\Container\V1\ResourceManagerTags $var - * @return $this - */ - public function setResourceManagerTags($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ResourceManagerTags::class); - $this->resource_manager_tags = $var; - - return $this; - } - - /** - * Optional. Reserved for future use. - * - * Generated from protobuf field bool enable_confidential_storage = 46 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getEnableConfidentialStorage() - { - return $this->enable_confidential_storage; - } - - /** - * Optional. Reserved for future use. - * - * Generated from protobuf field bool enable_confidential_storage = 46 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setEnableConfidentialStorage($var) - { - GPBUtil::checkBool($var); - $this->enable_confidential_storage = $var; - - return $this; - } - - /** - * List of secondary boot disks attached to the nodes. - * - * Generated from protobuf field repeated .google.container.v1.SecondaryBootDisk secondary_boot_disks = 48; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSecondaryBootDisks() - { - return $this->secondary_boot_disks; - } - - /** - * List of secondary boot disks attached to the nodes. - * - * Generated from protobuf field repeated .google.container.v1.SecondaryBootDisk secondary_boot_disks = 48; - * @param array<\Google\Cloud\Container\V1\SecondaryBootDisk>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSecondaryBootDisks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\SecondaryBootDisk::class); - $this->secondary_boot_disks = $arr; - - return $this; - } - - /** - * Secondary boot disk update strategy. - * - * Generated from protobuf field optional .google.container.v1.SecondaryBootDiskUpdateStrategy secondary_boot_disk_update_strategy = 50; - * @return \Google\Cloud\Container\V1\SecondaryBootDiskUpdateStrategy|null - */ - public function getSecondaryBootDiskUpdateStrategy() - { - return $this->secondary_boot_disk_update_strategy; - } - - public function hasSecondaryBootDiskUpdateStrategy() - { - return isset($this->secondary_boot_disk_update_strategy); - } - - public function clearSecondaryBootDiskUpdateStrategy() - { - unset($this->secondary_boot_disk_update_strategy); - } - - /** - * Secondary boot disk update strategy. - * - * Generated from protobuf field optional .google.container.v1.SecondaryBootDiskUpdateStrategy secondary_boot_disk_update_strategy = 50; - * @param \Google\Cloud\Container\V1\SecondaryBootDiskUpdateStrategy $var - * @return $this - */ - public function setSecondaryBootDiskUpdateStrategy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\SecondaryBootDiskUpdateStrategy::class); - $this->secondary_boot_disk_update_strategy = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfigDefaults.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfigDefaults.php deleted file mode 100644 index c217054480c1..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfigDefaults.php +++ /dev/null @@ -1,121 +0,0 @@ -google.container.v1.NodeConfigDefaults - */ -class NodeConfigDefaults extends \Google\Protobuf\Internal\Message -{ - /** - * GCFS (Google Container File System, also known as Riptide) options. - * - * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 1; - */ - protected $gcfs_config = null; - /** - * Logging configuration for node pools. - * - * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 3; - */ - protected $logging_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\GcfsConfig $gcfs_config - * GCFS (Google Container File System, also known as Riptide) options. - * @type \Google\Cloud\Container\V1\NodePoolLoggingConfig $logging_config - * Logging configuration for node pools. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * GCFS (Google Container File System, also known as Riptide) options. - * - * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 1; - * @return \Google\Cloud\Container\V1\GcfsConfig|null - */ - public function getGcfsConfig() - { - return $this->gcfs_config; - } - - public function hasGcfsConfig() - { - return isset($this->gcfs_config); - } - - public function clearGcfsConfig() - { - unset($this->gcfs_config); - } - - /** - * GCFS (Google Container File System, also known as Riptide) options. - * - * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 1; - * @param \Google\Cloud\Container\V1\GcfsConfig $var - * @return $this - */ - public function setGcfsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GcfsConfig::class); - $this->gcfs_config = $var; - - return $this; - } - - /** - * Logging configuration for node pools. - * - * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 3; - * @return \Google\Cloud\Container\V1\NodePoolLoggingConfig|null - */ - public function getLoggingConfig() - { - return $this->logging_config; - } - - public function hasLoggingConfig() - { - return isset($this->logging_config); - } - - public function clearLoggingConfig() - { - unset($this->logging_config); - } - - /** - * Logging configuration for node pools. - * - * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 3; - * @param \Google\Cloud\Container\V1\NodePoolLoggingConfig $var - * @return $this - */ - public function setLoggingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolLoggingConfig::class); - $this->logging_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeKubeletConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeKubeletConfig.php deleted file mode 100644 index a6d7d3efb3a3..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeKubeletConfig.php +++ /dev/null @@ -1,348 +0,0 @@ -google.container.v1.NodeKubeletConfig - */ -class NodeKubeletConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Control the CPU management policy on the node. - * See - * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ - * The following values are allowed. - * * "none": the default, which represents the existing scheduling behavior. - * * "static": allows pods with certain resource characteristics to be granted - * increased CPU affinity and exclusivity on the node. - * The default value is 'none' if unspecified. - * - * Generated from protobuf field string cpu_manager_policy = 1; - */ - protected $cpu_manager_policy = ''; - /** - * Enable CPU CFS quota enforcement for containers that specify CPU limits. - * This option is enabled by default which makes kubelet use CFS quota - * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to - * enforce container CPU limits. Otherwise, CPU limits will not be enforced at - * all. - * Disable this option to mitigate CPU throttling problems while still having - * your pods to be in Guaranteed QoS class by specifying the CPU limits. - * The default value is 'true' if unspecified. - * - * Generated from protobuf field .google.protobuf.BoolValue cpu_cfs_quota = 2; - */ - protected $cpu_cfs_quota = null; - /** - * Set the CPU CFS quota period value 'cpu.cfs_period_us'. - * The string must be a sequence of decimal numbers, each with optional - * fraction and a unit suffix, such as "300ms". - * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". - * The value must be a positive duration. - * - * Generated from protobuf field string cpu_cfs_quota_period = 3; - */ - protected $cpu_cfs_quota_period = ''; - /** - * Set the Pod PID limits. See - * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits - * Controls the maximum number of processes allowed to run in a pod. The value - * must be greater than or equal to 1024 and less than 4194304. - * - * Generated from protobuf field int64 pod_pids_limit = 4; - */ - protected $pod_pids_limit = 0; - /** - * Enable or disable Kubelet read only port. - * - * Generated from protobuf field optional bool insecure_kubelet_readonly_port_enabled = 7; - */ - protected $insecure_kubelet_readonly_port_enabled = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $cpu_manager_policy - * Control the CPU management policy on the node. - * See - * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ - * The following values are allowed. - * * "none": the default, which represents the existing scheduling behavior. - * * "static": allows pods with certain resource characteristics to be granted - * increased CPU affinity and exclusivity on the node. - * The default value is 'none' if unspecified. - * @type \Google\Protobuf\BoolValue $cpu_cfs_quota - * Enable CPU CFS quota enforcement for containers that specify CPU limits. - * This option is enabled by default which makes kubelet use CFS quota - * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to - * enforce container CPU limits. Otherwise, CPU limits will not be enforced at - * all. - * Disable this option to mitigate CPU throttling problems while still having - * your pods to be in Guaranteed QoS class by specifying the CPU limits. - * The default value is 'true' if unspecified. - * @type string $cpu_cfs_quota_period - * Set the CPU CFS quota period value 'cpu.cfs_period_us'. - * The string must be a sequence of decimal numbers, each with optional - * fraction and a unit suffix, such as "300ms". - * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". - * The value must be a positive duration. - * @type int|string $pod_pids_limit - * Set the Pod PID limits. See - * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits - * Controls the maximum number of processes allowed to run in a pod. The value - * must be greater than or equal to 1024 and less than 4194304. - * @type bool $insecure_kubelet_readonly_port_enabled - * Enable or disable Kubelet read only port. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Control the CPU management policy on the node. - * See - * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ - * The following values are allowed. - * * "none": the default, which represents the existing scheduling behavior. - * * "static": allows pods with certain resource characteristics to be granted - * increased CPU affinity and exclusivity on the node. - * The default value is 'none' if unspecified. - * - * Generated from protobuf field string cpu_manager_policy = 1; - * @return string - */ - public function getCpuManagerPolicy() - { - return $this->cpu_manager_policy; - } - - /** - * Control the CPU management policy on the node. - * See - * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ - * The following values are allowed. - * * "none": the default, which represents the existing scheduling behavior. - * * "static": allows pods with certain resource characteristics to be granted - * increased CPU affinity and exclusivity on the node. - * The default value is 'none' if unspecified. - * - * Generated from protobuf field string cpu_manager_policy = 1; - * @param string $var - * @return $this - */ - public function setCpuManagerPolicy($var) - { - GPBUtil::checkString($var, True); - $this->cpu_manager_policy = $var; - - return $this; - } - - /** - * Enable CPU CFS quota enforcement for containers that specify CPU limits. - * This option is enabled by default which makes kubelet use CFS quota - * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to - * enforce container CPU limits. Otherwise, CPU limits will not be enforced at - * all. - * Disable this option to mitigate CPU throttling problems while still having - * your pods to be in Guaranteed QoS class by specifying the CPU limits. - * The default value is 'true' if unspecified. - * - * Generated from protobuf field .google.protobuf.BoolValue cpu_cfs_quota = 2; - * @return \Google\Protobuf\BoolValue|null - */ - public function getCpuCfsQuota() - { - return $this->cpu_cfs_quota; - } - - public function hasCpuCfsQuota() - { - return isset($this->cpu_cfs_quota); - } - - public function clearCpuCfsQuota() - { - unset($this->cpu_cfs_quota); - } - - /** - * Returns the unboxed value from getCpuCfsQuota() - - * Enable CPU CFS quota enforcement for containers that specify CPU limits. - * This option is enabled by default which makes kubelet use CFS quota - * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to - * enforce container CPU limits. Otherwise, CPU limits will not be enforced at - * all. - * Disable this option to mitigate CPU throttling problems while still having - * your pods to be in Guaranteed QoS class by specifying the CPU limits. - * The default value is 'true' if unspecified. - * - * Generated from protobuf field .google.protobuf.BoolValue cpu_cfs_quota = 2; - * @return bool|null - */ - public function getCpuCfsQuotaUnwrapped() - { - return $this->readWrapperValue("cpu_cfs_quota"); - } - - /** - * Enable CPU CFS quota enforcement for containers that specify CPU limits. - * This option is enabled by default which makes kubelet use CFS quota - * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to - * enforce container CPU limits. Otherwise, CPU limits will not be enforced at - * all. - * Disable this option to mitigate CPU throttling problems while still having - * your pods to be in Guaranteed QoS class by specifying the CPU limits. - * The default value is 'true' if unspecified. - * - * Generated from protobuf field .google.protobuf.BoolValue cpu_cfs_quota = 2; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setCpuCfsQuota($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->cpu_cfs_quota = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * Enable CPU CFS quota enforcement for containers that specify CPU limits. - * This option is enabled by default which makes kubelet use CFS quota - * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to - * enforce container CPU limits. Otherwise, CPU limits will not be enforced at - * all. - * Disable this option to mitigate CPU throttling problems while still having - * your pods to be in Guaranteed QoS class by specifying the CPU limits. - * The default value is 'true' if unspecified. - * - * Generated from protobuf field .google.protobuf.BoolValue cpu_cfs_quota = 2; - * @param bool|null $var - * @return $this - */ - public function setCpuCfsQuotaUnwrapped($var) - { - $this->writeWrapperValue("cpu_cfs_quota", $var); - return $this;} - - /** - * Set the CPU CFS quota period value 'cpu.cfs_period_us'. - * The string must be a sequence of decimal numbers, each with optional - * fraction and a unit suffix, such as "300ms". - * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". - * The value must be a positive duration. - * - * Generated from protobuf field string cpu_cfs_quota_period = 3; - * @return string - */ - public function getCpuCfsQuotaPeriod() - { - return $this->cpu_cfs_quota_period; - } - - /** - * Set the CPU CFS quota period value 'cpu.cfs_period_us'. - * The string must be a sequence of decimal numbers, each with optional - * fraction and a unit suffix, such as "300ms". - * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". - * The value must be a positive duration. - * - * Generated from protobuf field string cpu_cfs_quota_period = 3; - * @param string $var - * @return $this - */ - public function setCpuCfsQuotaPeriod($var) - { - GPBUtil::checkString($var, True); - $this->cpu_cfs_quota_period = $var; - - return $this; - } - - /** - * Set the Pod PID limits. See - * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits - * Controls the maximum number of processes allowed to run in a pod. The value - * must be greater than or equal to 1024 and less than 4194304. - * - * Generated from protobuf field int64 pod_pids_limit = 4; - * @return int|string - */ - public function getPodPidsLimit() - { - return $this->pod_pids_limit; - } - - /** - * Set the Pod PID limits. See - * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits - * Controls the maximum number of processes allowed to run in a pod. The value - * must be greater than or equal to 1024 and less than 4194304. - * - * Generated from protobuf field int64 pod_pids_limit = 4; - * @param int|string $var - * @return $this - */ - public function setPodPidsLimit($var) - { - GPBUtil::checkInt64($var); - $this->pod_pids_limit = $var; - - return $this; - } - - /** - * Enable or disable Kubelet read only port. - * - * Generated from protobuf field optional bool insecure_kubelet_readonly_port_enabled = 7; - * @return bool - */ - public function getInsecureKubeletReadonlyPortEnabled() - { - return isset($this->insecure_kubelet_readonly_port_enabled) ? $this->insecure_kubelet_readonly_port_enabled : false; - } - - public function hasInsecureKubeletReadonlyPortEnabled() - { - return isset($this->insecure_kubelet_readonly_port_enabled); - } - - public function clearInsecureKubeletReadonlyPortEnabled() - { - unset($this->insecure_kubelet_readonly_port_enabled); - } - - /** - * Enable or disable Kubelet read only port. - * - * Generated from protobuf field optional bool insecure_kubelet_readonly_port_enabled = 7; - * @param bool $var - * @return $this - */ - public function setInsecureKubeletReadonlyPortEnabled($var) - { - GPBUtil::checkBool($var); - $this->insecure_kubelet_readonly_port_enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeLabels.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeLabels.php deleted file mode 100644 index c358a5fd2b22..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeLabels.php +++ /dev/null @@ -1,68 +0,0 @@ -google.container.v1.NodeLabels - */ -class NodeLabels extends \Google\Protobuf\Internal\Message -{ - /** - * Map of node label keys and node label values. - * - * Generated from protobuf field map labels = 1; - */ - private $labels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\MapField $labels - * Map of node label keys and node label values. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Map of node label keys and node label values. - * - * Generated from protobuf field map labels = 1; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Map of node label keys and node label values. - * - * Generated from protobuf field map labels = 1; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeManagement.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeManagement.php deleted file mode 100644 index a915f86917fc..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeManagement.php +++ /dev/null @@ -1,166 +0,0 @@ -google.container.v1.NodeManagement - */ -class NodeManagement extends \Google\Protobuf\Internal\Message -{ - /** - * A flag that specifies whether node auto-upgrade is enabled for the node - * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool - * up to date with the latest release version of Kubernetes. - * - * Generated from protobuf field bool auto_upgrade = 1; - */ - protected $auto_upgrade = false; - /** - * A flag that specifies whether the node auto-repair is enabled for the node - * pool. If enabled, the nodes in this node pool will be monitored and, if - * they fail health checks too many times, an automatic repair action will be - * triggered. - * - * Generated from protobuf field bool auto_repair = 2; - */ - protected $auto_repair = false; - /** - * Specifies the Auto Upgrade knobs for the node pool. - * - * Generated from protobuf field .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - */ - protected $upgrade_options = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $auto_upgrade - * A flag that specifies whether node auto-upgrade is enabled for the node - * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool - * up to date with the latest release version of Kubernetes. - * @type bool $auto_repair - * A flag that specifies whether the node auto-repair is enabled for the node - * pool. If enabled, the nodes in this node pool will be monitored and, if - * they fail health checks too many times, an automatic repair action will be - * triggered. - * @type \Google\Cloud\Container\V1\AutoUpgradeOptions $upgrade_options - * Specifies the Auto Upgrade knobs for the node pool. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * A flag that specifies whether node auto-upgrade is enabled for the node - * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool - * up to date with the latest release version of Kubernetes. - * - * Generated from protobuf field bool auto_upgrade = 1; - * @return bool - */ - public function getAutoUpgrade() - { - return $this->auto_upgrade; - } - - /** - * A flag that specifies whether node auto-upgrade is enabled for the node - * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool - * up to date with the latest release version of Kubernetes. - * - * Generated from protobuf field bool auto_upgrade = 1; - * @param bool $var - * @return $this - */ - public function setAutoUpgrade($var) - { - GPBUtil::checkBool($var); - $this->auto_upgrade = $var; - - return $this; - } - - /** - * A flag that specifies whether the node auto-repair is enabled for the node - * pool. If enabled, the nodes in this node pool will be monitored and, if - * they fail health checks too many times, an automatic repair action will be - * triggered. - * - * Generated from protobuf field bool auto_repair = 2; - * @return bool - */ - public function getAutoRepair() - { - return $this->auto_repair; - } - - /** - * A flag that specifies whether the node auto-repair is enabled for the node - * pool. If enabled, the nodes in this node pool will be monitored and, if - * they fail health checks too many times, an automatic repair action will be - * triggered. - * - * Generated from protobuf field bool auto_repair = 2; - * @param bool $var - * @return $this - */ - public function setAutoRepair($var) - { - GPBUtil::checkBool($var); - $this->auto_repair = $var; - - return $this; - } - - /** - * Specifies the Auto Upgrade knobs for the node pool. - * - * Generated from protobuf field .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - * @return \Google\Cloud\Container\V1\AutoUpgradeOptions|null - */ - public function getUpgradeOptions() - { - return $this->upgrade_options; - } - - public function hasUpgradeOptions() - { - return isset($this->upgrade_options); - } - - public function clearUpgradeOptions() - { - unset($this->upgrade_options); - } - - /** - * Specifies the Auto Upgrade knobs for the node pool. - * - * Generated from protobuf field .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - * @param \Google\Cloud\Container\V1\AutoUpgradeOptions $var - * @return $this - */ - public function setUpgradeOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AutoUpgradeOptions::class); - $this->upgrade_options = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig.php deleted file mode 100644 index 29e7d391f6f6..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig.php +++ /dev/null @@ -1,513 +0,0 @@ -google.container.v1.NodeNetworkConfig - */ -class NodeNetworkConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Input only. Whether to create a new range for pod IPs in this node pool. - * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they - * are not specified. - * If neither `create_pod_range` or `pod_range` are specified, the - * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is - * used. - * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. - * This field cannot be changed after the node pool has been created. - * - * Generated from protobuf field bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $create_pod_range = false; - /** - * The ID of the secondary range for pod IPs. - * If `create_pod_range` is true, this ID is used for the new range. - * If `create_pod_range` is false, uses an existing secondary range with this - * ID. - * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. - * This field cannot be changed after the node pool has been created. - * - * Generated from protobuf field string pod_range = 5; - */ - protected $pod_range = ''; - /** - * The IP address range for pod IPs in this node pool. - * Only applicable if `create_pod_range` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) to pick a specific range to use. - * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. - * This field cannot be changed after the node pool has been created. - * - * Generated from protobuf field string pod_ipv4_cidr_block = 6; - */ - protected $pod_ipv4_cidr_block = ''; - /** - * Whether nodes have internal IP addresses only. - * If enable_private_nodes is not specified, then the value is derived from - * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes] - * - * Generated from protobuf field optional bool enable_private_nodes = 9; - */ - protected $enable_private_nodes = null; - /** - * Network bandwidth tier configuration. - * - * Generated from protobuf field optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - */ - protected $network_performance_config = null; - /** - * [PRIVATE FIELD] - * Pod CIDR size overprovisioning config for the nodepool. - * Pod CIDR size per node depends on max_pods_per_node. By default, the value - * of max_pods_per_node is rounded off to next power of 2 and we then double - * that to get the size of pod CIDR block per node. - * Example: max_pods_per_node of 30 would result in 64 IPs (/26). - * This config can disable the doubling of IPs (we still round off to next - * power of 2) - * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when - * overprovisioning is disabled. - * - * Generated from protobuf field .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; - */ - protected $pod_cidr_overprovision_config = null; - /** - * We specify the additional node networks for this node pool using this list. - * Each node network corresponds to an additional interface - * - * Generated from protobuf field repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - */ - private $additional_node_network_configs; - /** - * We specify the additional pod networks for this node pool using this list. - * Each pod network corresponds to an additional alias IP range for the node - * - * Generated from protobuf field repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - */ - private $additional_pod_network_configs; - /** - * Output only. [Output only] The utilization of the IPv4 range for the pod. - * The ratio is Usage/[Total number of IPs in the secondary range], - * Usage=numNodes*numZones*podIPsPerNode. - * - * Generated from protobuf field double pod_ipv4_range_utilization = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $pod_ipv4_range_utilization = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $create_pod_range - * Input only. Whether to create a new range for pod IPs in this node pool. - * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they - * are not specified. - * If neither `create_pod_range` or `pod_range` are specified, the - * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is - * used. - * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. - * This field cannot be changed after the node pool has been created. - * @type string $pod_range - * The ID of the secondary range for pod IPs. - * If `create_pod_range` is true, this ID is used for the new range. - * If `create_pod_range` is false, uses an existing secondary range with this - * ID. - * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. - * This field cannot be changed after the node pool has been created. - * @type string $pod_ipv4_cidr_block - * The IP address range for pod IPs in this node pool. - * Only applicable if `create_pod_range` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) to pick a specific range to use. - * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. - * This field cannot be changed after the node pool has been created. - * @type bool $enable_private_nodes - * Whether nodes have internal IP addresses only. - * If enable_private_nodes is not specified, then the value is derived from - * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes] - * @type \Google\Cloud\Container\V1\NodeNetworkConfig\NetworkPerformanceConfig $network_performance_config - * Network bandwidth tier configuration. - * @type \Google\Cloud\Container\V1\PodCIDROverprovisionConfig $pod_cidr_overprovision_config - * [PRIVATE FIELD] - * Pod CIDR size overprovisioning config for the nodepool. - * Pod CIDR size per node depends on max_pods_per_node. By default, the value - * of max_pods_per_node is rounded off to next power of 2 and we then double - * that to get the size of pod CIDR block per node. - * Example: max_pods_per_node of 30 would result in 64 IPs (/26). - * This config can disable the doubling of IPs (we still round off to next - * power of 2) - * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when - * overprovisioning is disabled. - * @type array<\Google\Cloud\Container\V1\AdditionalNodeNetworkConfig>|\Google\Protobuf\Internal\RepeatedField $additional_node_network_configs - * We specify the additional node networks for this node pool using this list. - * Each node network corresponds to an additional interface - * @type array<\Google\Cloud\Container\V1\AdditionalPodNetworkConfig>|\Google\Protobuf\Internal\RepeatedField $additional_pod_network_configs - * We specify the additional pod networks for this node pool using this list. - * Each pod network corresponds to an additional alias IP range for the node - * @type float $pod_ipv4_range_utilization - * Output only. [Output only] The utilization of the IPv4 range for the pod. - * The ratio is Usage/[Total number of IPs in the secondary range], - * Usage=numNodes*numZones*podIPsPerNode. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Input only. Whether to create a new range for pod IPs in this node pool. - * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they - * are not specified. - * If neither `create_pod_range` or `pod_range` are specified, the - * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is - * used. - * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. - * This field cannot be changed after the node pool has been created. - * - * Generated from protobuf field bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return bool - */ - public function getCreatePodRange() - { - return $this->create_pod_range; - } - - /** - * Input only. Whether to create a new range for pod IPs in this node pool. - * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they - * are not specified. - * If neither `create_pod_range` or `pod_range` are specified, the - * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is - * used. - * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. - * This field cannot be changed after the node pool has been created. - * - * Generated from protobuf field bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setCreatePodRange($var) - { - GPBUtil::checkBool($var); - $this->create_pod_range = $var; - - return $this; - } - - /** - * The ID of the secondary range for pod IPs. - * If `create_pod_range` is true, this ID is used for the new range. - * If `create_pod_range` is false, uses an existing secondary range with this - * ID. - * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. - * This field cannot be changed after the node pool has been created. - * - * Generated from protobuf field string pod_range = 5; - * @return string - */ - public function getPodRange() - { - return $this->pod_range; - } - - /** - * The ID of the secondary range for pod IPs. - * If `create_pod_range` is true, this ID is used for the new range. - * If `create_pod_range` is false, uses an existing secondary range with this - * ID. - * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. - * This field cannot be changed after the node pool has been created. - * - * Generated from protobuf field string pod_range = 5; - * @param string $var - * @return $this - */ - public function setPodRange($var) - { - GPBUtil::checkString($var, True); - $this->pod_range = $var; - - return $this; - } - - /** - * The IP address range for pod IPs in this node pool. - * Only applicable if `create_pod_range` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) to pick a specific range to use. - * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. - * This field cannot be changed after the node pool has been created. - * - * Generated from protobuf field string pod_ipv4_cidr_block = 6; - * @return string - */ - public function getPodIpv4CidrBlock() - { - return $this->pod_ipv4_cidr_block; - } - - /** - * The IP address range for pod IPs in this node pool. - * Only applicable if `create_pod_range` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) to pick a specific range to use. - * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. - * This field cannot be changed after the node pool has been created. - * - * Generated from protobuf field string pod_ipv4_cidr_block = 6; - * @param string $var - * @return $this - */ - public function setPodIpv4CidrBlock($var) - { - GPBUtil::checkString($var, True); - $this->pod_ipv4_cidr_block = $var; - - return $this; - } - - /** - * Whether nodes have internal IP addresses only. - * If enable_private_nodes is not specified, then the value is derived from - * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes] - * - * Generated from protobuf field optional bool enable_private_nodes = 9; - * @return bool - */ - public function getEnablePrivateNodes() - { - return isset($this->enable_private_nodes) ? $this->enable_private_nodes : false; - } - - public function hasEnablePrivateNodes() - { - return isset($this->enable_private_nodes); - } - - public function clearEnablePrivateNodes() - { - unset($this->enable_private_nodes); - } - - /** - * Whether nodes have internal IP addresses only. - * If enable_private_nodes is not specified, then the value is derived from - * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes] - * - * Generated from protobuf field optional bool enable_private_nodes = 9; - * @param bool $var - * @return $this - */ - public function setEnablePrivateNodes($var) - { - GPBUtil::checkBool($var); - $this->enable_private_nodes = $var; - - return $this; - } - - /** - * Network bandwidth tier configuration. - * - * Generated from protobuf field optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - * @return \Google\Cloud\Container\V1\NodeNetworkConfig\NetworkPerformanceConfig|null - */ - public function getNetworkPerformanceConfig() - { - return $this->network_performance_config; - } - - public function hasNetworkPerformanceConfig() - { - return isset($this->network_performance_config); - } - - public function clearNetworkPerformanceConfig() - { - unset($this->network_performance_config); - } - - /** - * Network bandwidth tier configuration. - * - * Generated from protobuf field optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - * @param \Google\Cloud\Container\V1\NodeNetworkConfig\NetworkPerformanceConfig $var - * @return $this - */ - public function setNetworkPerformanceConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeNetworkConfig\NetworkPerformanceConfig::class); - $this->network_performance_config = $var; - - return $this; - } - - /** - * [PRIVATE FIELD] - * Pod CIDR size overprovisioning config for the nodepool. - * Pod CIDR size per node depends on max_pods_per_node. By default, the value - * of max_pods_per_node is rounded off to next power of 2 and we then double - * that to get the size of pod CIDR block per node. - * Example: max_pods_per_node of 30 would result in 64 IPs (/26). - * This config can disable the doubling of IPs (we still round off to next - * power of 2) - * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when - * overprovisioning is disabled. - * - * Generated from protobuf field .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; - * @return \Google\Cloud\Container\V1\PodCIDROverprovisionConfig|null - */ - public function getPodCidrOverprovisionConfig() - { - return $this->pod_cidr_overprovision_config; - } - - public function hasPodCidrOverprovisionConfig() - { - return isset($this->pod_cidr_overprovision_config); - } - - public function clearPodCidrOverprovisionConfig() - { - unset($this->pod_cidr_overprovision_config); - } - - /** - * [PRIVATE FIELD] - * Pod CIDR size overprovisioning config for the nodepool. - * Pod CIDR size per node depends on max_pods_per_node. By default, the value - * of max_pods_per_node is rounded off to next power of 2 and we then double - * that to get the size of pod CIDR block per node. - * Example: max_pods_per_node of 30 would result in 64 IPs (/26). - * This config can disable the doubling of IPs (we still round off to next - * power of 2) - * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when - * overprovisioning is disabled. - * - * Generated from protobuf field .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; - * @param \Google\Cloud\Container\V1\PodCIDROverprovisionConfig $var - * @return $this - */ - public function setPodCidrOverprovisionConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\PodCIDROverprovisionConfig::class); - $this->pod_cidr_overprovision_config = $var; - - return $this; - } - - /** - * We specify the additional node networks for this node pool using this list. - * Each node network corresponds to an additional interface - * - * Generated from protobuf field repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAdditionalNodeNetworkConfigs() - { - return $this->additional_node_network_configs; - } - - /** - * We specify the additional node networks for this node pool using this list. - * Each node network corresponds to an additional interface - * - * Generated from protobuf field repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * @param array<\Google\Cloud\Container\V1\AdditionalNodeNetworkConfig>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAdditionalNodeNetworkConfigs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\AdditionalNodeNetworkConfig::class); - $this->additional_node_network_configs = $arr; - - return $this; - } - - /** - * We specify the additional pod networks for this node pool using this list. - * Each pod network corresponds to an additional alias IP range for the node - * - * Generated from protobuf field repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAdditionalPodNetworkConfigs() - { - return $this->additional_pod_network_configs; - } - - /** - * We specify the additional pod networks for this node pool using this list. - * Each pod network corresponds to an additional alias IP range for the node - * - * Generated from protobuf field repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * @param array<\Google\Cloud\Container\V1\AdditionalPodNetworkConfig>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAdditionalPodNetworkConfigs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\AdditionalPodNetworkConfig::class); - $this->additional_pod_network_configs = $arr; - - return $this; - } - - /** - * Output only. [Output only] The utilization of the IPv4 range for the pod. - * The ratio is Usage/[Total number of IPs in the secondary range], - * Usage=numNodes*numZones*podIPsPerNode. - * - * Generated from protobuf field double pod_ipv4_range_utilization = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getPodIpv4RangeUtilization() - { - return $this->pod_ipv4_range_utilization; - } - - /** - * Output only. [Output only] The utilization of the IPv4 range for the pod. - * The ratio is Usage/[Total number of IPs in the secondary range], - * Usage=numNodes*numZones*podIPsPerNode. - * - * Generated from protobuf field double pod_ipv4_range_utilization = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setPodIpv4RangeUtilization($var) - { - GPBUtil::checkDouble($var); - $this->pod_ipv4_range_utilization = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig.php deleted file mode 100644 index 171177950b7c..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig.php +++ /dev/null @@ -1,80 +0,0 @@ -google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig - */ -class NetworkPerformanceConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Specifies the total network bandwidth tier for the NodePool. - * - * Generated from protobuf field optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - */ - protected $total_egress_bandwidth_tier = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $total_egress_bandwidth_tier - * Specifies the total network bandwidth tier for the NodePool. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Specifies the total network bandwidth tier for the NodePool. - * - * Generated from protobuf field optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * @return int - */ - public function getTotalEgressBandwidthTier() - { - return isset($this->total_egress_bandwidth_tier) ? $this->total_egress_bandwidth_tier : 0; - } - - public function hasTotalEgressBandwidthTier() - { - return isset($this->total_egress_bandwidth_tier); - } - - public function clearTotalEgressBandwidthTier() - { - unset($this->total_egress_bandwidth_tier); - } - - /** - * Specifies the total network bandwidth tier for the NodePool. - * - * Generated from protobuf field optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * @param int $var - * @return $this - */ - public function setTotalEgressBandwidthTier($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NodeNetworkConfig\NetworkPerformanceConfig\Tier::class); - $this->total_egress_bandwidth_tier = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(NetworkPerformanceConfig::class, \Google\Cloud\Container\V1\NodeNetworkConfig_NetworkPerformanceConfig::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig/Tier.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig/Tier.php deleted file mode 100644 index 7101c3334fff..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig/Tier.php +++ /dev/null @@ -1,57 +0,0 @@ -google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier - */ -class Tier -{ - /** - * Default value - * - * Generated from protobuf enum TIER_UNSPECIFIED = 0; - */ - const TIER_UNSPECIFIED = 0; - /** - * Higher bandwidth, actual values based on VM size. - * - * Generated from protobuf enum TIER_1 = 1; - */ - const TIER_1 = 1; - - private static $valueToName = [ - self::TIER_UNSPECIFIED => 'TIER_UNSPECIFIED', - self::TIER_1 => 'TIER_1', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Tier::class, \Google\Cloud\Container\V1\NodeNetworkConfig_NetworkPerformanceConfig_Tier::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool.php deleted file mode 100644 index 3654254ce77d..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool.php +++ /dev/null @@ -1,953 +0,0 @@ -google.container.v1.NodePool - */ -class NodePool extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the node pool. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The node configuration of the pool. - * - * Generated from protobuf field .google.container.v1.NodeConfig config = 2; - */ - protected $config = null; - /** - * The initial node count for the pool. You must ensure that your - * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) - * is sufficient for this number of instances. You must also have available - * firewall and routes quota. - * - * Generated from protobuf field int32 initial_node_count = 3; - */ - protected $initial_node_count = 0; - /** - * The list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * NodePool's nodes should be located. - * If this value is unspecified during node pool creation, the - * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) - * value will be used, instead. - * Warning: changing node pool locations will result in nodes being added - * and/or removed. - * - * Generated from protobuf field repeated string locations = 13; - */ - private $locations; - /** - * Networking configuration for this NodePool. If specified, it overrides the - * cluster-level defaults. - * - * Generated from protobuf field .google.container.v1.NodeNetworkConfig network_config = 14; - */ - protected $network_config = null; - /** - * [Output only] Server-defined URL for the resource. - * - * Generated from protobuf field string self_link = 100; - */ - protected $self_link = ''; - /** - * The version of Kubernetes running on this NodePool's nodes. If unspecified, - * it defaults as described - * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version). - * - * Generated from protobuf field string version = 101; - */ - protected $version = ''; - /** - * [Output only] The resource URLs of the [managed instance - * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) - * associated with this node pool. - * During the node pool blue-green upgrade operation, the URLs contain both - * blue and green resources. - * - * Generated from protobuf field repeated string instance_group_urls = 102; - */ - private $instance_group_urls; - /** - * [Output only] The status of the nodes in this pool instance. - * - * Generated from protobuf field .google.container.v1.NodePool.Status status = 103; - */ - protected $status = 0; - /** - * [Output only] Deprecated. Use conditions instead. - * Additional information about the current status of this - * node pool instance, if available. - * - * Generated from protobuf field string status_message = 104 [deprecated = true]; - * @deprecated - */ - protected $status_message = ''; - /** - * Autoscaler configuration for this NodePool. Autoscaler is enabled - * only if a valid configuration is present. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoscaling autoscaling = 4; - */ - protected $autoscaling = null; - /** - * NodeManagement configuration for this NodePool. - * - * Generated from protobuf field .google.container.v1.NodeManagement management = 5; - */ - protected $management = null; - /** - * The constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool. - * - * Generated from protobuf field .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; - */ - protected $max_pods_constraint = null; - /** - * Which conditions caused the current node pool state. - * - * Generated from protobuf field repeated .google.container.v1.StatusCondition conditions = 105; - */ - private $conditions; - /** - * [Output only] The pod CIDR block size per node in this node pool. - * - * Generated from protobuf field int32 pod_ipv4_cidr_size = 7; - */ - protected $pod_ipv4_cidr_size = 0; - /** - * Upgrade settings control disruption and speed of the upgrade. - * - * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - */ - protected $upgrade_settings = null; - /** - * Specifies the node placement policy. - * - * Generated from protobuf field .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; - */ - protected $placement_policy = null; - /** - * Output only. [Output only] Update info contains relevant information during - * a node pool update. - * - * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_info = null; - /** - * This checksum is computed by the server based on the value of node pool - * fields, and may be sent on update requests to ensure the client has an - * up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 110; - */ - protected $etag = ''; - /** - * Specifies the configuration of queued provisioning. - * - * Generated from protobuf field .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; - */ - protected $queued_provisioning = null; - /** - * Enable best effort provisioning for nodes - * - * Generated from protobuf field .google.container.v1.BestEffortProvisioning best_effort_provisioning = 113; - */ - protected $best_effort_provisioning = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the node pool. - * @type \Google\Cloud\Container\V1\NodeConfig $config - * The node configuration of the pool. - * @type int $initial_node_count - * The initial node count for the pool. You must ensure that your - * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) - * is sufficient for this number of instances. You must also have available - * firewall and routes quota. - * @type array|\Google\Protobuf\Internal\RepeatedField $locations - * The list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * NodePool's nodes should be located. - * If this value is unspecified during node pool creation, the - * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) - * value will be used, instead. - * Warning: changing node pool locations will result in nodes being added - * and/or removed. - * @type \Google\Cloud\Container\V1\NodeNetworkConfig $network_config - * Networking configuration for this NodePool. If specified, it overrides the - * cluster-level defaults. - * @type string $self_link - * [Output only] Server-defined URL for the resource. - * @type string $version - * The version of Kubernetes running on this NodePool's nodes. If unspecified, - * it defaults as described - * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version). - * @type array|\Google\Protobuf\Internal\RepeatedField $instance_group_urls - * [Output only] The resource URLs of the [managed instance - * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) - * associated with this node pool. - * During the node pool blue-green upgrade operation, the URLs contain both - * blue and green resources. - * @type int $status - * [Output only] The status of the nodes in this pool instance. - * @type string $status_message - * [Output only] Deprecated. Use conditions instead. - * Additional information about the current status of this - * node pool instance, if available. - * @type \Google\Cloud\Container\V1\NodePoolAutoscaling $autoscaling - * Autoscaler configuration for this NodePool. Autoscaler is enabled - * only if a valid configuration is present. - * @type \Google\Cloud\Container\V1\NodeManagement $management - * NodeManagement configuration for this NodePool. - * @type \Google\Cloud\Container\V1\MaxPodsConstraint $max_pods_constraint - * The constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool. - * @type array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $conditions - * Which conditions caused the current node pool state. - * @type int $pod_ipv4_cidr_size - * [Output only] The pod CIDR block size per node in this node pool. - * @type \Google\Cloud\Container\V1\NodePool\UpgradeSettings $upgrade_settings - * Upgrade settings control disruption and speed of the upgrade. - * @type \Google\Cloud\Container\V1\NodePool\PlacementPolicy $placement_policy - * Specifies the node placement policy. - * @type \Google\Cloud\Container\V1\NodePool\UpdateInfo $update_info - * Output only. [Output only] Update info contains relevant information during - * a node pool update. - * @type string $etag - * This checksum is computed by the server based on the value of node pool - * fields, and may be sent on update requests to ensure the client has an - * up-to-date value before proceeding. - * @type \Google\Cloud\Container\V1\NodePool\QueuedProvisioning $queued_provisioning - * Specifies the configuration of queued provisioning. - * @type \Google\Cloud\Container\V1\BestEffortProvisioning $best_effort_provisioning - * Enable best effort provisioning for nodes - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The name of the node pool. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the node pool. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The node configuration of the pool. - * - * Generated from protobuf field .google.container.v1.NodeConfig config = 2; - * @return \Google\Cloud\Container\V1\NodeConfig|null - */ - public function getConfig() - { - return $this->config; - } - - public function hasConfig() - { - return isset($this->config); - } - - public function clearConfig() - { - unset($this->config); - } - - /** - * The node configuration of the pool. - * - * Generated from protobuf field .google.container.v1.NodeConfig config = 2; - * @param \Google\Cloud\Container\V1\NodeConfig $var - * @return $this - */ - public function setConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeConfig::class); - $this->config = $var; - - return $this; - } - - /** - * The initial node count for the pool. You must ensure that your - * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) - * is sufficient for this number of instances. You must also have available - * firewall and routes quota. - * - * Generated from protobuf field int32 initial_node_count = 3; - * @return int - */ - public function getInitialNodeCount() - { - return $this->initial_node_count; - } - - /** - * The initial node count for the pool. You must ensure that your - * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) - * is sufficient for this number of instances. You must also have available - * firewall and routes quota. - * - * Generated from protobuf field int32 initial_node_count = 3; - * @param int $var - * @return $this - */ - public function setInitialNodeCount($var) - { - GPBUtil::checkInt32($var); - $this->initial_node_count = $var; - - return $this; - } - - /** - * The list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * NodePool's nodes should be located. - * If this value is unspecified during node pool creation, the - * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) - * value will be used, instead. - * Warning: changing node pool locations will result in nodes being added - * and/or removed. - * - * Generated from protobuf field repeated string locations = 13; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getLocations() - { - return $this->locations; - } - - /** - * The list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * NodePool's nodes should be located. - * If this value is unspecified during node pool creation, the - * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) - * value will be used, instead. - * Warning: changing node pool locations will result in nodes being added - * and/or removed. - * - * Generated from protobuf field repeated string locations = 13; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->locations = $arr; - - return $this; - } - - /** - * Networking configuration for this NodePool. If specified, it overrides the - * cluster-level defaults. - * - * Generated from protobuf field .google.container.v1.NodeNetworkConfig network_config = 14; - * @return \Google\Cloud\Container\V1\NodeNetworkConfig|null - */ - public function getNetworkConfig() - { - return $this->network_config; - } - - public function hasNetworkConfig() - { - return isset($this->network_config); - } - - public function clearNetworkConfig() - { - unset($this->network_config); - } - - /** - * Networking configuration for this NodePool. If specified, it overrides the - * cluster-level defaults. - * - * Generated from protobuf field .google.container.v1.NodeNetworkConfig network_config = 14; - * @param \Google\Cloud\Container\V1\NodeNetworkConfig $var - * @return $this - */ - public function setNetworkConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeNetworkConfig::class); - $this->network_config = $var; - - return $this; - } - - /** - * [Output only] Server-defined URL for the resource. - * - * Generated from protobuf field string self_link = 100; - * @return string - */ - public function getSelfLink() - { - return $this->self_link; - } - - /** - * [Output only] Server-defined URL for the resource. - * - * Generated from protobuf field string self_link = 100; - * @param string $var - * @return $this - */ - public function setSelfLink($var) - { - GPBUtil::checkString($var, True); - $this->self_link = $var; - - return $this; - } - - /** - * The version of Kubernetes running on this NodePool's nodes. If unspecified, - * it defaults as described - * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version). - * - * Generated from protobuf field string version = 101; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * The version of Kubernetes running on this NodePool's nodes. If unspecified, - * it defaults as described - * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version). - * - * Generated from protobuf field string version = 101; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * [Output only] The resource URLs of the [managed instance - * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) - * associated with this node pool. - * During the node pool blue-green upgrade operation, the URLs contain both - * blue and green resources. - * - * Generated from protobuf field repeated string instance_group_urls = 102; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getInstanceGroupUrls() - { - return $this->instance_group_urls; - } - - /** - * [Output only] The resource URLs of the [managed instance - * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) - * associated with this node pool. - * During the node pool blue-green upgrade operation, the URLs contain both - * blue and green resources. - * - * Generated from protobuf field repeated string instance_group_urls = 102; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setInstanceGroupUrls($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->instance_group_urls = $arr; - - return $this; - } - - /** - * [Output only] The status of the nodes in this pool instance. - * - * Generated from protobuf field .google.container.v1.NodePool.Status status = 103; - * @return int - */ - public function getStatus() - { - return $this->status; - } - - /** - * [Output only] The status of the nodes in this pool instance. - * - * Generated from protobuf field .google.container.v1.NodePool.Status status = 103; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NodePool\Status::class); - $this->status = $var; - - return $this; - } - - /** - * [Output only] Deprecated. Use conditions instead. - * Additional information about the current status of this - * node pool instance, if available. - * - * Generated from protobuf field string status_message = 104 [deprecated = true]; - * @return string - * @deprecated - */ - public function getStatusMessage() - { - @trigger_error('status_message is deprecated.', E_USER_DEPRECATED); - return $this->status_message; - } - - /** - * [Output only] Deprecated. Use conditions instead. - * Additional information about the current status of this - * node pool instance, if available. - * - * Generated from protobuf field string status_message = 104 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setStatusMessage($var) - { - @trigger_error('status_message is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->status_message = $var; - - return $this; - } - - /** - * Autoscaler configuration for this NodePool. Autoscaler is enabled - * only if a valid configuration is present. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoscaling autoscaling = 4; - * @return \Google\Cloud\Container\V1\NodePoolAutoscaling|null - */ - public function getAutoscaling() - { - return $this->autoscaling; - } - - public function hasAutoscaling() - { - return isset($this->autoscaling); - } - - public function clearAutoscaling() - { - unset($this->autoscaling); - } - - /** - * Autoscaler configuration for this NodePool. Autoscaler is enabled - * only if a valid configuration is present. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoscaling autoscaling = 4; - * @param \Google\Cloud\Container\V1\NodePoolAutoscaling $var - * @return $this - */ - public function setAutoscaling($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolAutoscaling::class); - $this->autoscaling = $var; - - return $this; - } - - /** - * NodeManagement configuration for this NodePool. - * - * Generated from protobuf field .google.container.v1.NodeManagement management = 5; - * @return \Google\Cloud\Container\V1\NodeManagement|null - */ - public function getManagement() - { - return $this->management; - } - - public function hasManagement() - { - return isset($this->management); - } - - public function clearManagement() - { - unset($this->management); - } - - /** - * NodeManagement configuration for this NodePool. - * - * Generated from protobuf field .google.container.v1.NodeManagement management = 5; - * @param \Google\Cloud\Container\V1\NodeManagement $var - * @return $this - */ - public function setManagement($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeManagement::class); - $this->management = $var; - - return $this; - } - - /** - * The constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool. - * - * Generated from protobuf field .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; - * @return \Google\Cloud\Container\V1\MaxPodsConstraint|null - */ - public function getMaxPodsConstraint() - { - return $this->max_pods_constraint; - } - - public function hasMaxPodsConstraint() - { - return isset($this->max_pods_constraint); - } - - public function clearMaxPodsConstraint() - { - unset($this->max_pods_constraint); - } - - /** - * The constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool. - * - * Generated from protobuf field .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; - * @param \Google\Cloud\Container\V1\MaxPodsConstraint $var - * @return $this - */ - public function setMaxPodsConstraint($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MaxPodsConstraint::class); - $this->max_pods_constraint = $var; - - return $this; - } - - /** - * Which conditions caused the current node pool state. - * - * Generated from protobuf field repeated .google.container.v1.StatusCondition conditions = 105; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getConditions() - { - return $this->conditions; - } - - /** - * Which conditions caused the current node pool state. - * - * Generated from protobuf field repeated .google.container.v1.StatusCondition conditions = 105; - * @param array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setConditions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\StatusCondition::class); - $this->conditions = $arr; - - return $this; - } - - /** - * [Output only] The pod CIDR block size per node in this node pool. - * - * Generated from protobuf field int32 pod_ipv4_cidr_size = 7; - * @return int - */ - public function getPodIpv4CidrSize() - { - return $this->pod_ipv4_cidr_size; - } - - /** - * [Output only] The pod CIDR block size per node in this node pool. - * - * Generated from protobuf field int32 pod_ipv4_cidr_size = 7; - * @param int $var - * @return $this - */ - public function setPodIpv4CidrSize($var) - { - GPBUtil::checkInt32($var); - $this->pod_ipv4_cidr_size = $var; - - return $this; - } - - /** - * Upgrade settings control disruption and speed of the upgrade. - * - * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - * @return \Google\Cloud\Container\V1\NodePool\UpgradeSettings|null - */ - public function getUpgradeSettings() - { - return $this->upgrade_settings; - } - - public function hasUpgradeSettings() - { - return isset($this->upgrade_settings); - } - - public function clearUpgradeSettings() - { - unset($this->upgrade_settings); - } - - /** - * Upgrade settings control disruption and speed of the upgrade. - * - * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - * @param \Google\Cloud\Container\V1\NodePool\UpgradeSettings $var - * @return $this - */ - public function setUpgradeSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool\UpgradeSettings::class); - $this->upgrade_settings = $var; - - return $this; - } - - /** - * Specifies the node placement policy. - * - * Generated from protobuf field .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; - * @return \Google\Cloud\Container\V1\NodePool\PlacementPolicy|null - */ - public function getPlacementPolicy() - { - return $this->placement_policy; - } - - public function hasPlacementPolicy() - { - return isset($this->placement_policy); - } - - public function clearPlacementPolicy() - { - unset($this->placement_policy); - } - - /** - * Specifies the node placement policy. - * - * Generated from protobuf field .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; - * @param \Google\Cloud\Container\V1\NodePool\PlacementPolicy $var - * @return $this - */ - public function setPlacementPolicy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool\PlacementPolicy::class); - $this->placement_policy = $var; - - return $this; - } - - /** - * Output only. [Output only] Update info contains relevant information during - * a node pool update. - * - * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Container\V1\NodePool\UpdateInfo|null - */ - public function getUpdateInfo() - { - return $this->update_info; - } - - public function hasUpdateInfo() - { - return isset($this->update_info); - } - - public function clearUpdateInfo() - { - unset($this->update_info); - } - - /** - * Output only. [Output only] Update info contains relevant information during - * a node pool update. - * - * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Container\V1\NodePool\UpdateInfo $var - * @return $this - */ - public function setUpdateInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool\UpdateInfo::class); - $this->update_info = $var; - - return $this; - } - - /** - * This checksum is computed by the server based on the value of node pool - * fields, and may be sent on update requests to ensure the client has an - * up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 110; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * This checksum is computed by the server based on the value of node pool - * fields, and may be sent on update requests to ensure the client has an - * up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 110; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Specifies the configuration of queued provisioning. - * - * Generated from protobuf field .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; - * @return \Google\Cloud\Container\V1\NodePool\QueuedProvisioning|null - */ - public function getQueuedProvisioning() - { - return $this->queued_provisioning; - } - - public function hasQueuedProvisioning() - { - return isset($this->queued_provisioning); - } - - public function clearQueuedProvisioning() - { - unset($this->queued_provisioning); - } - - /** - * Specifies the configuration of queued provisioning. - * - * Generated from protobuf field .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; - * @param \Google\Cloud\Container\V1\NodePool\QueuedProvisioning $var - * @return $this - */ - public function setQueuedProvisioning($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool\QueuedProvisioning::class); - $this->queued_provisioning = $var; - - return $this; - } - - /** - * Enable best effort provisioning for nodes - * - * Generated from protobuf field .google.container.v1.BestEffortProvisioning best_effort_provisioning = 113; - * @return \Google\Cloud\Container\V1\BestEffortProvisioning|null - */ - public function getBestEffortProvisioning() - { - return $this->best_effort_provisioning; - } - - public function hasBestEffortProvisioning() - { - return isset($this->best_effort_provisioning); - } - - public function clearBestEffortProvisioning() - { - unset($this->best_effort_provisioning); - } - - /** - * Enable best effort provisioning for nodes - * - * Generated from protobuf field .google.container.v1.BestEffortProvisioning best_effort_provisioning = 113; - * @param \Google\Cloud\Container\V1\BestEffortProvisioning $var - * @return $this - */ - public function setBestEffortProvisioning($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\BestEffortProvisioning::class); - $this->best_effort_provisioning = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy.php deleted file mode 100644 index 66b18a002b4d..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy.php +++ /dev/null @@ -1,150 +0,0 @@ -google.container.v1.NodePool.PlacementPolicy - */ -class PlacementPolicy extends \Google\Protobuf\Internal\Message -{ - /** - * The type of placement. - * - * Generated from protobuf field .google.container.v1.NodePool.PlacementPolicy.Type type = 1; - */ - protected $type = 0; - /** - * Optional. TPU placement topology for pod slice node pool. - * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies - * - * Generated from protobuf field string tpu_topology = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $tpu_topology = ''; - /** - * If set, refers to the name of a custom resource policy supplied by the - * user. The resource policy must be in the same project and region as the - * node pool. If not found, InvalidArgument error is returned. - * - * Generated from protobuf field string policy_name = 3; - */ - protected $policy_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * The type of placement. - * @type string $tpu_topology - * Optional. TPU placement topology for pod slice node pool. - * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies - * @type string $policy_name - * If set, refers to the name of a custom resource policy supplied by the - * user. The resource policy must be in the same project and region as the - * node pool. If not found, InvalidArgument error is returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The type of placement. - * - * Generated from protobuf field .google.container.v1.NodePool.PlacementPolicy.Type type = 1; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The type of placement. - * - * Generated from protobuf field .google.container.v1.NodePool.PlacementPolicy.Type type = 1; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NodePool\PlacementPolicy\Type::class); - $this->type = $var; - - return $this; - } - - /** - * Optional. TPU placement topology for pod slice node pool. - * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies - * - * Generated from protobuf field string tpu_topology = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getTpuTopology() - { - return $this->tpu_topology; - } - - /** - * Optional. TPU placement topology for pod slice node pool. - * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies - * - * Generated from protobuf field string tpu_topology = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setTpuTopology($var) - { - GPBUtil::checkString($var, True); - $this->tpu_topology = $var; - - return $this; - } - - /** - * If set, refers to the name of a custom resource policy supplied by the - * user. The resource policy must be in the same project and region as the - * node pool. If not found, InvalidArgument error is returned. - * - * Generated from protobuf field string policy_name = 3; - * @return string - */ - public function getPolicyName() - { - return $this->policy_name; - } - - /** - * If set, refers to the name of a custom resource policy supplied by the - * user. The resource policy must be in the same project and region as the - * node pool. If not found, InvalidArgument error is returned. - * - * Generated from protobuf field string policy_name = 3; - * @param string $var - * @return $this - */ - public function setPolicyName($var) - { - GPBUtil::checkString($var, True); - $this->policy_name = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PlacementPolicy::class, \Google\Cloud\Container\V1\NodePool_PlacementPolicy::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy/Type.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy/Type.php deleted file mode 100644 index feb385c477d5..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy/Type.php +++ /dev/null @@ -1,59 +0,0 @@ -google.container.v1.NodePool.PlacementPolicy.Type - */ -class Type -{ - /** - * TYPE_UNSPECIFIED specifies no requirements on nodes - * placement. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * COMPACT specifies node placement in the same availability domain to - * ensure low communication latency. - * - * Generated from protobuf enum COMPACT = 1; - */ - const COMPACT = 1; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::COMPACT => 'COMPACT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Type::class, \Google\Cloud\Container\V1\NodePool_PlacementPolicy_Type::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/QueuedProvisioning.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/QueuedProvisioning.php deleted file mode 100644 index f2d189abac0b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/QueuedProvisioning.php +++ /dev/null @@ -1,78 +0,0 @@ -google.container.v1.NodePool.QueuedProvisioning - */ -class QueuedProvisioning extends \Google\Protobuf\Internal\Message -{ - /** - * Denotes that this nodepool is QRM specific, meaning nodes can be only - * obtained through queuing via the Cluster Autoscaler ProvisioningRequest - * API. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Denotes that this nodepool is QRM specific, meaning nodes can be only - * obtained through queuing via the Cluster Autoscaler ProvisioningRequest - * API. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Denotes that this nodepool is QRM specific, meaning nodes can be only - * obtained through queuing via the Cluster Autoscaler ProvisioningRequest - * API. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Denotes that this nodepool is QRM specific, meaning nodes can be only - * obtained through queuing via the Cluster Autoscaler ProvisioningRequest - * API. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(QueuedProvisioning::class, \Google\Cloud\Container\V1\NodePool_QueuedProvisioning::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/Status.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/Status.php deleted file mode 100644 index 76d3391edf7d..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/Status.php +++ /dev/null @@ -1,99 +0,0 @@ -google.container.v1.NodePool.Status - */ -class Status -{ - /** - * Not set. - * - * Generated from protobuf enum STATUS_UNSPECIFIED = 0; - */ - const STATUS_UNSPECIFIED = 0; - /** - * The PROVISIONING state indicates the node pool is being created. - * - * Generated from protobuf enum PROVISIONING = 1; - */ - const PROVISIONING = 1; - /** - * The RUNNING state indicates the node pool has been created - * and is fully usable. - * - * Generated from protobuf enum RUNNING = 2; - */ - const RUNNING = 2; - /** - * The RUNNING_WITH_ERROR state indicates the node pool has been created - * and is partially usable. Some error state has occurred and some - * functionality may be impaired. Customer may need to reissue a request - * or trigger a new update. - * - * Generated from protobuf enum RUNNING_WITH_ERROR = 3; - */ - const RUNNING_WITH_ERROR = 3; - /** - * The RECONCILING state indicates that some work is actively being done on - * the node pool, such as upgrading node software. Details can - * be found in the `statusMessage` field. - * - * Generated from protobuf enum RECONCILING = 4; - */ - const RECONCILING = 4; - /** - * The STOPPING state indicates the node pool is being deleted. - * - * Generated from protobuf enum STOPPING = 5; - */ - const STOPPING = 5; - /** - * The ERROR state indicates the node pool may be unusable. Details - * can be found in the `statusMessage` field. - * - * Generated from protobuf enum ERROR = 6; - */ - const ERROR = 6; - - private static $valueToName = [ - self::STATUS_UNSPECIFIED => 'STATUS_UNSPECIFIED', - self::PROVISIONING => 'PROVISIONING', - self::RUNNING => 'RUNNING', - self::RUNNING_WITH_ERROR => 'RUNNING_WITH_ERROR', - self::RECONCILING => 'RECONCILING', - self::STOPPING => 'STOPPING', - self::ERROR => 'ERROR', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Status::class, \Google\Cloud\Container\V1\NodePool_Status::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo.php deleted file mode 100644 index 051fb577f24d..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo.php +++ /dev/null @@ -1,81 +0,0 @@ -google.container.v1.NodePool.UpdateInfo - */ -class UpdateInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Information of a blue-green upgrade. - * - * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - */ - protected $blue_green_info = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\NodePool\UpdateInfo\BlueGreenInfo $blue_green_info - * Information of a blue-green upgrade. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Information of a blue-green upgrade. - * - * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - * @return \Google\Cloud\Container\V1\NodePool\UpdateInfo\BlueGreenInfo|null - */ - public function getBlueGreenInfo() - { - return $this->blue_green_info; - } - - public function hasBlueGreenInfo() - { - return isset($this->blue_green_info); - } - - public function clearBlueGreenInfo() - { - unset($this->blue_green_info); - } - - /** - * Information of a blue-green upgrade. - * - * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - * @param \Google\Cloud\Container\V1\NodePool\UpdateInfo\BlueGreenInfo $var - * @return $this - */ - public function setBlueGreenInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool\UpdateInfo\BlueGreenInfo::class); - $this->blue_green_info = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(UpdateInfo::class, \Google\Cloud\Container\V1\NodePool_UpdateInfo::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo.php deleted file mode 100644 index 5a4d73eb77af..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo.php +++ /dev/null @@ -1,226 +0,0 @@ -google.container.v1.NodePool.UpdateInfo.BlueGreenInfo - */ -class BlueGreenInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Current blue-green upgrade phase. - * - * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; - */ - protected $phase = 0; - /** - * The resource URLs of the [managed instance groups] - * (/compute/docs/instance-groups/creating-groups-of-managed-instances) - * associated with blue pool. - * - * Generated from protobuf field repeated string blue_instance_group_urls = 2; - */ - private $blue_instance_group_urls; - /** - * The resource URLs of the [managed instance groups] - * (/compute/docs/instance-groups/creating-groups-of-managed-instances) - * associated with green pool. - * - * Generated from protobuf field repeated string green_instance_group_urls = 3; - */ - private $green_instance_group_urls; - /** - * Time to start deleting blue pool to complete blue-green upgrade, - * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string blue_pool_deletion_start_time = 4; - */ - protected $blue_pool_deletion_start_time = ''; - /** - * Version of green pool. - * - * Generated from protobuf field string green_pool_version = 5; - */ - protected $green_pool_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $phase - * Current blue-green upgrade phase. - * @type array|\Google\Protobuf\Internal\RepeatedField $blue_instance_group_urls - * The resource URLs of the [managed instance groups] - * (/compute/docs/instance-groups/creating-groups-of-managed-instances) - * associated with blue pool. - * @type array|\Google\Protobuf\Internal\RepeatedField $green_instance_group_urls - * The resource URLs of the [managed instance groups] - * (/compute/docs/instance-groups/creating-groups-of-managed-instances) - * associated with green pool. - * @type string $blue_pool_deletion_start_time - * Time to start deleting blue pool to complete blue-green upgrade, - * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * @type string $green_pool_version - * Version of green pool. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Current blue-green upgrade phase. - * - * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; - * @return int - */ - public function getPhase() - { - return $this->phase; - } - - /** - * Current blue-green upgrade phase. - * - * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; - * @param int $var - * @return $this - */ - public function setPhase($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NodePool\UpdateInfo\BlueGreenInfo\Phase::class); - $this->phase = $var; - - return $this; - } - - /** - * The resource URLs of the [managed instance groups] - * (/compute/docs/instance-groups/creating-groups-of-managed-instances) - * associated with blue pool. - * - * Generated from protobuf field repeated string blue_instance_group_urls = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBlueInstanceGroupUrls() - { - return $this->blue_instance_group_urls; - } - - /** - * The resource URLs of the [managed instance groups] - * (/compute/docs/instance-groups/creating-groups-of-managed-instances) - * associated with blue pool. - * - * Generated from protobuf field repeated string blue_instance_group_urls = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBlueInstanceGroupUrls($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->blue_instance_group_urls = $arr; - - return $this; - } - - /** - * The resource URLs of the [managed instance groups] - * (/compute/docs/instance-groups/creating-groups-of-managed-instances) - * associated with green pool. - * - * Generated from protobuf field repeated string green_instance_group_urls = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getGreenInstanceGroupUrls() - { - return $this->green_instance_group_urls; - } - - /** - * The resource URLs of the [managed instance groups] - * (/compute/docs/instance-groups/creating-groups-of-managed-instances) - * associated with green pool. - * - * Generated from protobuf field repeated string green_instance_group_urls = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setGreenInstanceGroupUrls($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->green_instance_group_urls = $arr; - - return $this; - } - - /** - * Time to start deleting blue pool to complete blue-green upgrade, - * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string blue_pool_deletion_start_time = 4; - * @return string - */ - public function getBluePoolDeletionStartTime() - { - return $this->blue_pool_deletion_start_time; - } - - /** - * Time to start deleting blue pool to complete blue-green upgrade, - * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string blue_pool_deletion_start_time = 4; - * @param string $var - * @return $this - */ - public function setBluePoolDeletionStartTime($var) - { - GPBUtil::checkString($var, True); - $this->blue_pool_deletion_start_time = $var; - - return $this; - } - - /** - * Version of green pool. - * - * Generated from protobuf field string green_pool_version = 5; - * @return string - */ - public function getGreenPoolVersion() - { - return $this->green_pool_version; - } - - /** - * Version of green pool. - * - * Generated from protobuf field string green_pool_version = 5; - * @param string $var - * @return $this - */ - public function setGreenPoolVersion($var) - { - GPBUtil::checkString($var, True); - $this->green_pool_version = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(BlueGreenInfo::class, \Google\Cloud\Container\V1\NodePool_UpdateInfo_BlueGreenInfo::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo/Phase.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo/Phase.php deleted file mode 100644 index f47b3342f3ef..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo/Phase.php +++ /dev/null @@ -1,99 +0,0 @@ -google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase - */ -class Phase -{ - /** - * Unspecified phase. - * - * Generated from protobuf enum PHASE_UNSPECIFIED = 0; - */ - const PHASE_UNSPECIFIED = 0; - /** - * blue-green upgrade has been initiated. - * - * Generated from protobuf enum UPDATE_STARTED = 1; - */ - const UPDATE_STARTED = 1; - /** - * Start creating green pool nodes. - * - * Generated from protobuf enum CREATING_GREEN_POOL = 2; - */ - const CREATING_GREEN_POOL = 2; - /** - * Start cordoning blue pool nodes. - * - * Generated from protobuf enum CORDONING_BLUE_POOL = 3; - */ - const CORDONING_BLUE_POOL = 3; - /** - * Start draining blue pool nodes. - * - * Generated from protobuf enum DRAINING_BLUE_POOL = 4; - */ - const DRAINING_BLUE_POOL = 4; - /** - * Start soaking time after draining entire blue pool. - * - * Generated from protobuf enum NODE_POOL_SOAKING = 5; - */ - const NODE_POOL_SOAKING = 5; - /** - * Start deleting blue nodes. - * - * Generated from protobuf enum DELETING_BLUE_POOL = 6; - */ - const DELETING_BLUE_POOL = 6; - /** - * Rollback has been initiated. - * - * Generated from protobuf enum ROLLBACK_STARTED = 7; - */ - const ROLLBACK_STARTED = 7; - - private static $valueToName = [ - self::PHASE_UNSPECIFIED => 'PHASE_UNSPECIFIED', - self::UPDATE_STARTED => 'UPDATE_STARTED', - self::CREATING_GREEN_POOL => 'CREATING_GREEN_POOL', - self::CORDONING_BLUE_POOL => 'CORDONING_BLUE_POOL', - self::DRAINING_BLUE_POOL => 'DRAINING_BLUE_POOL', - self::NODE_POOL_SOAKING => 'NODE_POOL_SOAKING', - self::DELETING_BLUE_POOL => 'DELETING_BLUE_POOL', - self::ROLLBACK_STARTED => 'ROLLBACK_STARTED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Phase::class, \Google\Cloud\Container\V1\NodePool_UpdateInfo_BlueGreenInfo_Phase::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpgradeSettings.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpgradeSettings.php deleted file mode 100644 index 7fea002183a1..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpgradeSettings.php +++ /dev/null @@ -1,241 +0,0 @@ -google.container.v1.NodePool.UpgradeSettings - */ -class UpgradeSettings extends \Google\Protobuf\Internal\Message -{ - /** - * The maximum number of nodes that can be created beyond the current size - * of the node pool during the upgrade process. - * - * Generated from protobuf field int32 max_surge = 1; - */ - protected $max_surge = 0; - /** - * The maximum number of nodes that can be simultaneously unavailable during - * the upgrade process. A node is considered available if its status is - * Ready. - * - * Generated from protobuf field int32 max_unavailable = 2; - */ - protected $max_unavailable = 0; - /** - * Update strategy of the node pool. - * - * Generated from protobuf field optional .google.container.v1.NodePoolUpdateStrategy strategy = 3; - */ - protected $strategy = null; - /** - * Settings for blue-green upgrade strategy. - * - * Generated from protobuf field optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; - */ - protected $blue_green_settings = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $max_surge - * The maximum number of nodes that can be created beyond the current size - * of the node pool during the upgrade process. - * @type int $max_unavailable - * The maximum number of nodes that can be simultaneously unavailable during - * the upgrade process. A node is considered available if its status is - * Ready. - * @type int $strategy - * Update strategy of the node pool. - * @type \Google\Cloud\Container\V1\BlueGreenSettings $blue_green_settings - * Settings for blue-green upgrade strategy. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The maximum number of nodes that can be created beyond the current size - * of the node pool during the upgrade process. - * - * Generated from protobuf field int32 max_surge = 1; - * @return int - */ - public function getMaxSurge() - { - return $this->max_surge; - } - - /** - * The maximum number of nodes that can be created beyond the current size - * of the node pool during the upgrade process. - * - * Generated from protobuf field int32 max_surge = 1; - * @param int $var - * @return $this - */ - public function setMaxSurge($var) - { - GPBUtil::checkInt32($var); - $this->max_surge = $var; - - return $this; - } - - /** - * The maximum number of nodes that can be simultaneously unavailable during - * the upgrade process. A node is considered available if its status is - * Ready. - * - * Generated from protobuf field int32 max_unavailable = 2; - * @return int - */ - public function getMaxUnavailable() - { - return $this->max_unavailable; - } - - /** - * The maximum number of nodes that can be simultaneously unavailable during - * the upgrade process. A node is considered available if its status is - * Ready. - * - * Generated from protobuf field int32 max_unavailable = 2; - * @param int $var - * @return $this - */ - public function setMaxUnavailable($var) - { - GPBUtil::checkInt32($var); - $this->max_unavailable = $var; - - return $this; - } - - /** - * Update strategy of the node pool. - * - * Generated from protobuf field optional .google.container.v1.NodePoolUpdateStrategy strategy = 3; - * @return int - */ - public function getStrategy() - { - return isset($this->strategy) ? $this->strategy : 0; - } - - public function hasStrategy() - { - return isset($this->strategy); - } - - public function clearStrategy() - { - unset($this->strategy); - } - - /** - * Update strategy of the node pool. - * - * Generated from protobuf field optional .google.container.v1.NodePoolUpdateStrategy strategy = 3; - * @param int $var - * @return $this - */ - public function setStrategy($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NodePoolUpdateStrategy::class); - $this->strategy = $var; - - return $this; - } - - /** - * Settings for blue-green upgrade strategy. - * - * Generated from protobuf field optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; - * @return \Google\Cloud\Container\V1\BlueGreenSettings|null - */ - public function getBlueGreenSettings() - { - return $this->blue_green_settings; - } - - public function hasBlueGreenSettings() - { - return isset($this->blue_green_settings); - } - - public function clearBlueGreenSettings() - { - unset($this->blue_green_settings); - } - - /** - * Settings for blue-green upgrade strategy. - * - * Generated from protobuf field optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; - * @param \Google\Cloud\Container\V1\BlueGreenSettings $var - * @return $this - */ - public function setBlueGreenSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\BlueGreenSettings::class); - $this->blue_green_settings = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(UpgradeSettings::class, \Google\Cloud\Container\V1\NodePool_UpgradeSettings::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoConfig.php deleted file mode 100644 index 96815e4fe279..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoConfig.php +++ /dev/null @@ -1,138 +0,0 @@ -google.container.v1.NodePoolAutoConfig - */ -class NodePoolAutoConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The list of instance tags applied to all nodes. Tags are used to identify - * valid sources or targets for network firewalls and are specified by - * the client during cluster creation. Each tag within the list - * must comply with RFC1035. - * - * Generated from protobuf field .google.container.v1.NetworkTags network_tags = 1; - */ - protected $network_tags = null; - /** - * Resource manager tag keys and values to be attached to the nodes - * for managing Compute Engine firewalls using Network Firewall Policies. - * - * Generated from protobuf field .google.container.v1.ResourceManagerTags resource_manager_tags = 2; - */ - protected $resource_manager_tags = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\NetworkTags $network_tags - * The list of instance tags applied to all nodes. Tags are used to identify - * valid sources or targets for network firewalls and are specified by - * the client during cluster creation. Each tag within the list - * must comply with RFC1035. - * @type \Google\Cloud\Container\V1\ResourceManagerTags $resource_manager_tags - * Resource manager tag keys and values to be attached to the nodes - * for managing Compute Engine firewalls using Network Firewall Policies. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The list of instance tags applied to all nodes. Tags are used to identify - * valid sources or targets for network firewalls and are specified by - * the client during cluster creation. Each tag within the list - * must comply with RFC1035. - * - * Generated from protobuf field .google.container.v1.NetworkTags network_tags = 1; - * @return \Google\Cloud\Container\V1\NetworkTags|null - */ - public function getNetworkTags() - { - return $this->network_tags; - } - - public function hasNetworkTags() - { - return isset($this->network_tags); - } - - public function clearNetworkTags() - { - unset($this->network_tags); - } - - /** - * The list of instance tags applied to all nodes. Tags are used to identify - * valid sources or targets for network firewalls and are specified by - * the client during cluster creation. Each tag within the list - * must comply with RFC1035. - * - * Generated from protobuf field .google.container.v1.NetworkTags network_tags = 1; - * @param \Google\Cloud\Container\V1\NetworkTags $var - * @return $this - */ - public function setNetworkTags($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkTags::class); - $this->network_tags = $var; - - return $this; - } - - /** - * Resource manager tag keys and values to be attached to the nodes - * for managing Compute Engine firewalls using Network Firewall Policies. - * - * Generated from protobuf field .google.container.v1.ResourceManagerTags resource_manager_tags = 2; - * @return \Google\Cloud\Container\V1\ResourceManagerTags|null - */ - public function getResourceManagerTags() - { - return $this->resource_manager_tags; - } - - public function hasResourceManagerTags() - { - return isset($this->resource_manager_tags); - } - - public function clearResourceManagerTags() - { - unset($this->resource_manager_tags); - } - - /** - * Resource manager tag keys and values to be attached to the nodes - * for managing Compute Engine firewalls using Network Firewall Policies. - * - * Generated from protobuf field .google.container.v1.ResourceManagerTags resource_manager_tags = 2; - * @param \Google\Cloud\Container\V1\ResourceManagerTags $var - * @return $this - */ - public function setResourceManagerTags($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ResourceManagerTags::class); - $this->resource_manager_tags = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling.php deleted file mode 100644 index 6f5f3887bcfe..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling.php +++ /dev/null @@ -1,304 +0,0 @@ -google.container.v1.NodePoolAutoscaling - */ -class NodePoolAutoscaling extends \Google\Protobuf\Internal\Message -{ - /** - * Is autoscaling enabled for this node pool. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - /** - * Minimum number of nodes for one location in the NodePool. Must be >= 1 and - * <= max_node_count. - * - * Generated from protobuf field int32 min_node_count = 2; - */ - protected $min_node_count = 0; - /** - * Maximum number of nodes for one location in the NodePool. Must be >= - * min_node_count. There has to be enough quota to scale up the cluster. - * - * Generated from protobuf field int32 max_node_count = 3; - */ - protected $max_node_count = 0; - /** - * Can this node pool be deleted automatically. - * - * Generated from protobuf field bool autoprovisioned = 4; - */ - protected $autoprovisioned = false; - /** - * Location policy used when scaling up a nodepool. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5; - */ - protected $location_policy = 0; - /** - * Minimum number of nodes in the node pool. Must be greater than 1 less than - * total_max_node_count. - * The total_*_node_count fields are mutually exclusive with the *_node_count - * fields. - * - * Generated from protobuf field int32 total_min_node_count = 6; - */ - protected $total_min_node_count = 0; - /** - * Maximum number of nodes in the node pool. Must be greater than - * total_min_node_count. There has to be enough quota to scale up the cluster. - * The total_*_node_count fields are mutually exclusive with the *_node_count - * fields. - * - * Generated from protobuf field int32 total_max_node_count = 7; - */ - protected $total_max_node_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Is autoscaling enabled for this node pool. - * @type int $min_node_count - * Minimum number of nodes for one location in the NodePool. Must be >= 1 and - * <= max_node_count. - * @type int $max_node_count - * Maximum number of nodes for one location in the NodePool. Must be >= - * min_node_count. There has to be enough quota to scale up the cluster. - * @type bool $autoprovisioned - * Can this node pool be deleted automatically. - * @type int $location_policy - * Location policy used when scaling up a nodepool. - * @type int $total_min_node_count - * Minimum number of nodes in the node pool. Must be greater than 1 less than - * total_max_node_count. - * The total_*_node_count fields are mutually exclusive with the *_node_count - * fields. - * @type int $total_max_node_count - * Maximum number of nodes in the node pool. Must be greater than - * total_min_node_count. There has to be enough quota to scale up the cluster. - * The total_*_node_count fields are mutually exclusive with the *_node_count - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Is autoscaling enabled for this node pool. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Is autoscaling enabled for this node pool. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - - /** - * Minimum number of nodes for one location in the NodePool. Must be >= 1 and - * <= max_node_count. - * - * Generated from protobuf field int32 min_node_count = 2; - * @return int - */ - public function getMinNodeCount() - { - return $this->min_node_count; - } - - /** - * Minimum number of nodes for one location in the NodePool. Must be >= 1 and - * <= max_node_count. - * - * Generated from protobuf field int32 min_node_count = 2; - * @param int $var - * @return $this - */ - public function setMinNodeCount($var) - { - GPBUtil::checkInt32($var); - $this->min_node_count = $var; - - return $this; - } - - /** - * Maximum number of nodes for one location in the NodePool. Must be >= - * min_node_count. There has to be enough quota to scale up the cluster. - * - * Generated from protobuf field int32 max_node_count = 3; - * @return int - */ - public function getMaxNodeCount() - { - return $this->max_node_count; - } - - /** - * Maximum number of nodes for one location in the NodePool. Must be >= - * min_node_count. There has to be enough quota to scale up the cluster. - * - * Generated from protobuf field int32 max_node_count = 3; - * @param int $var - * @return $this - */ - public function setMaxNodeCount($var) - { - GPBUtil::checkInt32($var); - $this->max_node_count = $var; - - return $this; - } - - /** - * Can this node pool be deleted automatically. - * - * Generated from protobuf field bool autoprovisioned = 4; - * @return bool - */ - public function getAutoprovisioned() - { - return $this->autoprovisioned; - } - - /** - * Can this node pool be deleted automatically. - * - * Generated from protobuf field bool autoprovisioned = 4; - * @param bool $var - * @return $this - */ - public function setAutoprovisioned($var) - { - GPBUtil::checkBool($var); - $this->autoprovisioned = $var; - - return $this; - } - - /** - * Location policy used when scaling up a nodepool. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5; - * @return int - */ - public function getLocationPolicy() - { - return $this->location_policy; - } - - /** - * Location policy used when scaling up a nodepool. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5; - * @param int $var - * @return $this - */ - public function setLocationPolicy($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NodePoolAutoscaling\LocationPolicy::class); - $this->location_policy = $var; - - return $this; - } - - /** - * Minimum number of nodes in the node pool. Must be greater than 1 less than - * total_max_node_count. - * The total_*_node_count fields are mutually exclusive with the *_node_count - * fields. - * - * Generated from protobuf field int32 total_min_node_count = 6; - * @return int - */ - public function getTotalMinNodeCount() - { - return $this->total_min_node_count; - } - - /** - * Minimum number of nodes in the node pool. Must be greater than 1 less than - * total_max_node_count. - * The total_*_node_count fields are mutually exclusive with the *_node_count - * fields. - * - * Generated from protobuf field int32 total_min_node_count = 6; - * @param int $var - * @return $this - */ - public function setTotalMinNodeCount($var) - { - GPBUtil::checkInt32($var); - $this->total_min_node_count = $var; - - return $this; - } - - /** - * Maximum number of nodes in the node pool. Must be greater than - * total_min_node_count. There has to be enough quota to scale up the cluster. - * The total_*_node_count fields are mutually exclusive with the *_node_count - * fields. - * - * Generated from protobuf field int32 total_max_node_count = 7; - * @return int - */ - public function getTotalMaxNodeCount() - { - return $this->total_max_node_count; - } - - /** - * Maximum number of nodes in the node pool. Must be greater than - * total_min_node_count. There has to be enough quota to scale up the cluster. - * The total_*_node_count fields are mutually exclusive with the *_node_count - * fields. - * - * Generated from protobuf field int32 total_max_node_count = 7; - * @param int $var - * @return $this - */ - public function setTotalMaxNodeCount($var) - { - GPBUtil::checkInt32($var); - $this->total_max_node_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling/LocationPolicy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling/LocationPolicy.php deleted file mode 100644 index 1a3cea48b398..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling/LocationPolicy.php +++ /dev/null @@ -1,66 +0,0 @@ -google.container.v1.NodePoolAutoscaling.LocationPolicy - */ -class LocationPolicy -{ - /** - * Not set. - * - * Generated from protobuf enum LOCATION_POLICY_UNSPECIFIED = 0; - */ - const LOCATION_POLICY_UNSPECIFIED = 0; - /** - * BALANCED is a best effort policy that aims to balance the sizes of - * different zones. - * - * Generated from protobuf enum BALANCED = 1; - */ - const BALANCED = 1; - /** - * ANY policy picks zones that have the highest capacity available. - * - * Generated from protobuf enum ANY = 2; - */ - const ANY = 2; - - private static $valueToName = [ - self::LOCATION_POLICY_UNSPECIFIED => 'LOCATION_POLICY_UNSPECIFIED', - self::BALANCED => 'BALANCED', - self::ANY => 'ANY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(LocationPolicy::class, \Google\Cloud\Container\V1\NodePoolAutoscaling_LocationPolicy::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolDefaults.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolDefaults.php deleted file mode 100644 index 2dc7616a949f..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolDefaults.php +++ /dev/null @@ -1,77 +0,0 @@ -google.container.v1.NodePoolDefaults - */ -class NodePoolDefaults extends \Google\Protobuf\Internal\Message -{ - /** - * Subset of NodeConfig message that has defaults. - * - * Generated from protobuf field .google.container.v1.NodeConfigDefaults node_config_defaults = 1; - */ - protected $node_config_defaults = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\NodeConfigDefaults $node_config_defaults - * Subset of NodeConfig message that has defaults. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Subset of NodeConfig message that has defaults. - * - * Generated from protobuf field .google.container.v1.NodeConfigDefaults node_config_defaults = 1; - * @return \Google\Cloud\Container\V1\NodeConfigDefaults|null - */ - public function getNodeConfigDefaults() - { - return $this->node_config_defaults; - } - - public function hasNodeConfigDefaults() - { - return isset($this->node_config_defaults); - } - - public function clearNodeConfigDefaults() - { - unset($this->node_config_defaults); - } - - /** - * Subset of NodeConfig message that has defaults. - * - * Generated from protobuf field .google.container.v1.NodeConfigDefaults node_config_defaults = 1; - * @param \Google\Cloud\Container\V1\NodeConfigDefaults $var - * @return $this - */ - public function setNodeConfigDefaults($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeConfigDefaults::class); - $this->node_config_defaults = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolLoggingConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolLoggingConfig.php deleted file mode 100644 index 3b1a6d619f08..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolLoggingConfig.php +++ /dev/null @@ -1,77 +0,0 @@ -google.container.v1.NodePoolLoggingConfig - */ -class NodePoolLoggingConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Logging variant configuration. - * - * Generated from protobuf field .google.container.v1.LoggingVariantConfig variant_config = 1; - */ - protected $variant_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\LoggingVariantConfig $variant_config - * Logging variant configuration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Logging variant configuration. - * - * Generated from protobuf field .google.container.v1.LoggingVariantConfig variant_config = 1; - * @return \Google\Cloud\Container\V1\LoggingVariantConfig|null - */ - public function getVariantConfig() - { - return $this->variant_config; - } - - public function hasVariantConfig() - { - return isset($this->variant_config); - } - - public function clearVariantConfig() - { - unset($this->variant_config); - } - - /** - * Logging variant configuration. - * - * Generated from protobuf field .google.container.v1.LoggingVariantConfig variant_config = 1; - * @param \Google\Cloud\Container\V1\LoggingVariantConfig $var - * @return $this - */ - public function setVariantConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LoggingVariantConfig::class); - $this->variant_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolUpdateStrategy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolUpdateStrategy.php deleted file mode 100644 index 0879bfb66d87..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolUpdateStrategy.php +++ /dev/null @@ -1,63 +0,0 @@ -google.container.v1.NodePoolUpdateStrategy - */ -class NodePoolUpdateStrategy -{ - /** - * Default value if unset. GKE internally defaults the update strategy to - * SURGE for unspecified strategies. - * - * Generated from protobuf enum NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED = 0; - */ - const NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED = 0; - /** - * blue-green upgrade. - * - * Generated from protobuf enum BLUE_GREEN = 2; - */ - const BLUE_GREEN = 2; - /** - * SURGE is the traditional way of upgrade a node pool. - * max_surge and max_unavailable determines the level of upgrade parallelism. - * - * Generated from protobuf enum SURGE = 3; - */ - const SURGE = 3; - - private static $valueToName = [ - self::NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED => 'NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED', - self::BLUE_GREEN => 'BLUE_GREEN', - self::SURGE => 'SURGE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaint.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaint.php deleted file mode 100644 index f89a2a0a6096..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaint.php +++ /dev/null @@ -1,139 +0,0 @@ -google.container.v1.NodeTaint - */ -class NodeTaint extends \Google\Protobuf\Internal\Message -{ - /** - * Key for taint. - * - * Generated from protobuf field string key = 1; - */ - protected $key = ''; - /** - * Value for taint. - * - * Generated from protobuf field string value = 2; - */ - protected $value = ''; - /** - * Effect for taint. - * - * Generated from protobuf field .google.container.v1.NodeTaint.Effect effect = 3; - */ - protected $effect = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key - * Key for taint. - * @type string $value - * Value for taint. - * @type int $effect - * Effect for taint. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Key for taint. - * - * Generated from protobuf field string key = 1; - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * Key for taint. - * - * Generated from protobuf field string key = 1; - * @param string $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkString($var, True); - $this->key = $var; - - return $this; - } - - /** - * Value for taint. - * - * Generated from protobuf field string value = 2; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * Value for taint. - * - * Generated from protobuf field string value = 2; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - - /** - * Effect for taint. - * - * Generated from protobuf field .google.container.v1.NodeTaint.Effect effect = 3; - * @return int - */ - public function getEffect() - { - return $this->effect; - } - - /** - * Effect for taint. - * - * Generated from protobuf field .google.container.v1.NodeTaint.Effect effect = 3; - * @param int $var - * @return $this - */ - public function setEffect($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NodeTaint\Effect::class); - $this->effect = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaint/Effect.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaint/Effect.php deleted file mode 100644 index c6436f7b1826..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaint/Effect.php +++ /dev/null @@ -1,71 +0,0 @@ -google.container.v1.NodeTaint.Effect - */ -class Effect -{ - /** - * Not set - * - * Generated from protobuf enum EFFECT_UNSPECIFIED = 0; - */ - const EFFECT_UNSPECIFIED = 0; - /** - * NoSchedule - * - * Generated from protobuf enum NO_SCHEDULE = 1; - */ - const NO_SCHEDULE = 1; - /** - * PreferNoSchedule - * - * Generated from protobuf enum PREFER_NO_SCHEDULE = 2; - */ - const PREFER_NO_SCHEDULE = 2; - /** - * NoExecute - * - * Generated from protobuf enum NO_EXECUTE = 3; - */ - const NO_EXECUTE = 3; - - private static $valueToName = [ - self::EFFECT_UNSPECIFIED => 'EFFECT_UNSPECIFIED', - self::NO_SCHEDULE => 'NO_SCHEDULE', - self::PREFER_NO_SCHEDULE => 'PREFER_NO_SCHEDULE', - self::NO_EXECUTE => 'NO_EXECUTE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Effect::class, \Google\Cloud\Container\V1\NodeTaint_Effect::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaints.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaints.php deleted file mode 100644 index fe6166f0dc3b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaints.php +++ /dev/null @@ -1,68 +0,0 @@ -google.container.v1.NodeTaints - */ -class NodeTaints extends \Google\Protobuf\Internal\Message -{ - /** - * List of node taints. - * - * Generated from protobuf field repeated .google.container.v1.NodeTaint taints = 1; - */ - private $taints; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Container\V1\NodeTaint>|\Google\Protobuf\Internal\RepeatedField $taints - * List of node taints. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * List of node taints. - * - * Generated from protobuf field repeated .google.container.v1.NodeTaint taints = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTaints() - { - return $this->taints; - } - - /** - * List of node taints. - * - * Generated from protobuf field repeated .google.container.v1.NodeTaint taints = 1; - * @param array<\Google\Cloud\Container\V1\NodeTaint>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTaints($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\NodeTaint::class); - $this->taints = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig.php deleted file mode 100644 index e478d70b2638..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig.php +++ /dev/null @@ -1,77 +0,0 @@ -google.container.v1.NotificationConfig - */ -class NotificationConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Notification config for Pub/Sub. - * - * Generated from protobuf field .google.container.v1.NotificationConfig.PubSub pubsub = 1; - */ - protected $pubsub = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\NotificationConfig\PubSub $pubsub - * Notification config for Pub/Sub. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Notification config for Pub/Sub. - * - * Generated from protobuf field .google.container.v1.NotificationConfig.PubSub pubsub = 1; - * @return \Google\Cloud\Container\V1\NotificationConfig\PubSub|null - */ - public function getPubsub() - { - return $this->pubsub; - } - - public function hasPubsub() - { - return isset($this->pubsub); - } - - public function clearPubsub() - { - unset($this->pubsub); - } - - /** - * Notification config for Pub/Sub. - * - * Generated from protobuf field .google.container.v1.NotificationConfig.PubSub pubsub = 1; - * @param \Google\Cloud\Container\V1\NotificationConfig\PubSub $var - * @return $this - */ - public function setPubsub($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NotificationConfig\PubSub::class); - $this->pubsub = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/EventType.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/EventType.php deleted file mode 100644 index 7489b2c7e292..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/EventType.php +++ /dev/null @@ -1,72 +0,0 @@ -google.container.v1.NotificationConfig.EventType - */ -class EventType -{ - /** - * Not set, will be ignored. - * - * Generated from protobuf enum EVENT_TYPE_UNSPECIFIED = 0; - */ - const EVENT_TYPE_UNSPECIFIED = 0; - /** - * Corresponds with UpgradeAvailableEvent. - * - * Generated from protobuf enum UPGRADE_AVAILABLE_EVENT = 1; - */ - const UPGRADE_AVAILABLE_EVENT = 1; - /** - * Corresponds with UpgradeEvent. - * - * Generated from protobuf enum UPGRADE_EVENT = 2; - */ - const UPGRADE_EVENT = 2; - /** - * Corresponds with SecurityBulletinEvent. - * - * Generated from protobuf enum SECURITY_BULLETIN_EVENT = 3; - */ - const SECURITY_BULLETIN_EVENT = 3; - - private static $valueToName = [ - self::EVENT_TYPE_UNSPECIFIED => 'EVENT_TYPE_UNSPECIFIED', - self::UPGRADE_AVAILABLE_EVENT => 'UPGRADE_AVAILABLE_EVENT', - self::UPGRADE_EVENT => 'UPGRADE_EVENT', - self::SECURITY_BULLETIN_EVENT => 'SECURITY_BULLETIN_EVENT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(EventType::class, \Google\Cloud\Container\V1\NotificationConfig_EventType::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/Filter.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/Filter.php deleted file mode 100644 index cdeb11220ad9..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/Filter.php +++ /dev/null @@ -1,73 +0,0 @@ -google.container.v1.NotificationConfig.Filter - */ -class Filter extends \Google\Protobuf\Internal\Message -{ - /** - * Event types to allowlist. - * - * Generated from protobuf field repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - */ - private $event_type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $event_type - * Event types to allowlist. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Event types to allowlist. - * - * Generated from protobuf field repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEventType() - { - return $this->event_type; - } - - /** - * Event types to allowlist. - * - * Generated from protobuf field repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEventType($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Container\V1\NotificationConfig\EventType::class); - $this->event_type = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Filter::class, \Google\Cloud\Container\V1\NotificationConfig_Filter::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/PubSub.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/PubSub.php deleted file mode 100644 index 21ded6c6c98a..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/PubSub.php +++ /dev/null @@ -1,160 +0,0 @@ -google.container.v1.NotificationConfig.PubSub - */ -class PubSub extends \Google\Protobuf\Internal\Message -{ - /** - * Enable notifications for Pub/Sub. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - /** - * The desired Pub/Sub topic to which notifications will be - * sent by GKE. Format is `projects/{project}/topics/{topic}`. - * - * Generated from protobuf field string topic = 2 [(.google.api.resource_reference) = { - */ - protected $topic = ''; - /** - * Allows filtering to one or more specific event types. If no filter is - * specified, or if a filter is specified with no event types, all event - * types will be sent - * - * Generated from protobuf field .google.container.v1.NotificationConfig.Filter filter = 3; - */ - protected $filter = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Enable notifications for Pub/Sub. - * @type string $topic - * The desired Pub/Sub topic to which notifications will be - * sent by GKE. Format is `projects/{project}/topics/{topic}`. - * @type \Google\Cloud\Container\V1\NotificationConfig\Filter $filter - * Allows filtering to one or more specific event types. If no filter is - * specified, or if a filter is specified with no event types, all event - * types will be sent - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Enable notifications for Pub/Sub. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Enable notifications for Pub/Sub. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - - /** - * The desired Pub/Sub topic to which notifications will be - * sent by GKE. Format is `projects/{project}/topics/{topic}`. - * - * Generated from protobuf field string topic = 2 [(.google.api.resource_reference) = { - * @return string - */ - public function getTopic() - { - return $this->topic; - } - - /** - * The desired Pub/Sub topic to which notifications will be - * sent by GKE. Format is `projects/{project}/topics/{topic}`. - * - * Generated from protobuf field string topic = 2 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setTopic($var) - { - GPBUtil::checkString($var, True); - $this->topic = $var; - - return $this; - } - - /** - * Allows filtering to one or more specific event types. If no filter is - * specified, or if a filter is specified with no event types, all event - * types will be sent - * - * Generated from protobuf field .google.container.v1.NotificationConfig.Filter filter = 3; - * @return \Google\Cloud\Container\V1\NotificationConfig\Filter|null - */ - public function getFilter() - { - return $this->filter; - } - - public function hasFilter() - { - return isset($this->filter); - } - - public function clearFilter() - { - unset($this->filter); - } - - /** - * Allows filtering to one or more specific event types. If no filter is - * specified, or if a filter is specified with no event types, all event - * types will be sent - * - * Generated from protobuf field .google.container.v1.NotificationConfig.Filter filter = 3; - * @param \Google\Cloud\Container\V1\NotificationConfig\Filter $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NotificationConfig\Filter::class); - $this->filter = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PubSub::class, \Google\Cloud\Container\V1\NotificationConfig_PubSub::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation.php deleted file mode 100644 index 56bee17d416c..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation.php +++ /dev/null @@ -1,672 +0,0 @@ -google.container.v1.Operation - */ -class Operation extends \Google\Protobuf\Internal\Message -{ - /** - * The server-assigned ID for the operation. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * operation is taking place. This field is deprecated, use location instead. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * The operation type. - * - * Generated from protobuf field .google.container.v1.Operation.Type operation_type = 3; - */ - protected $operation_type = 0; - /** - * The current status of the operation. - * - * Generated from protobuf field .google.container.v1.Operation.Status status = 4; - */ - protected $status = 0; - /** - * Detailed operation progress, if available. - * - * Generated from protobuf field string detail = 8; - */ - protected $detail = ''; - /** - * Output only. If an error has occurred, a textual description of the error. - * Deprecated. Use the field error instead. - * - * Generated from protobuf field string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @deprecated - */ - protected $status_message = ''; - /** - * Server-defined URI for the operation. Example: - * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`. - * - * Generated from protobuf field string self_link = 6; - */ - protected $self_link = ''; - /** - * Server-defined URI for the target of the operation. The format of this is a - * URI to the resource being modified (such as a cluster, node pool, or node). - * For node pool repairs, there may be multiple nodes being repaired, but only - * one will be the target. - * Examples: - * - - * ## - * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster` - * ## - * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np` - * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node` - * - * Generated from protobuf field string target_link = 7; - */ - protected $target_link = ''; - /** - * [Output only] The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * or - * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * in which the cluster resides. - * - * Generated from protobuf field string location = 9; - */ - protected $location = ''; - /** - * [Output only] The time the operation started, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string start_time = 10; - */ - protected $start_time = ''; - /** - * [Output only] The time the operation completed, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string end_time = 11; - */ - protected $end_time = ''; - /** - * Output only. [Output only] Progress information for an operation. - * - * Generated from protobuf field .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $progress = null; - /** - * Which conditions caused the current cluster state. - * Deprecated. Use field error instead. - * - * Generated from protobuf field repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; - * @deprecated - */ - private $cluster_conditions; - /** - * Which conditions caused the current node pool state. - * Deprecated. Use field error instead. - * - * Generated from protobuf field repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - * @deprecated - */ - private $nodepool_conditions; - /** - * The error result of the operation in case of failure. - * - * Generated from protobuf field .google.rpc.Status error = 15; - */ - protected $error = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The server-assigned ID for the operation. - * @type string $zone - * The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * operation is taking place. This field is deprecated, use location instead. - * @type int $operation_type - * The operation type. - * @type int $status - * The current status of the operation. - * @type string $detail - * Detailed operation progress, if available. - * @type string $status_message - * Output only. If an error has occurred, a textual description of the error. - * Deprecated. Use the field error instead. - * @type string $self_link - * Server-defined URI for the operation. Example: - * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`. - * @type string $target_link - * Server-defined URI for the target of the operation. The format of this is a - * URI to the resource being modified (such as a cluster, node pool, or node). - * For node pool repairs, there may be multiple nodes being repaired, but only - * one will be the target. - * Examples: - * - - * ## - * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster` - * ## - * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np` - * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node` - * @type string $location - * [Output only] The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * or - * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * in which the cluster resides. - * @type string $start_time - * [Output only] The time the operation started, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * @type string $end_time - * [Output only] The time the operation completed, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * @type \Google\Cloud\Container\V1\OperationProgress $progress - * Output only. [Output only] Progress information for an operation. - * @type array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $cluster_conditions - * Which conditions caused the current cluster state. - * Deprecated. Use field error instead. - * @type array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $nodepool_conditions - * Which conditions caused the current node pool state. - * Deprecated. Use field error instead. - * @type \Google\Rpc\Status $error - * The error result of the operation in case of failure. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The server-assigned ID for the operation. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The server-assigned ID for the operation. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * operation is taking place. This field is deprecated, use location instead. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * operation is taking place. This field is deprecated, use location instead. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * The operation type. - * - * Generated from protobuf field .google.container.v1.Operation.Type operation_type = 3; - * @return int - */ - public function getOperationType() - { - return $this->operation_type; - } - - /** - * The operation type. - * - * Generated from protobuf field .google.container.v1.Operation.Type operation_type = 3; - * @param int $var - * @return $this - */ - public function setOperationType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\Operation\Type::class); - $this->operation_type = $var; - - return $this; - } - - /** - * The current status of the operation. - * - * Generated from protobuf field .google.container.v1.Operation.Status status = 4; - * @return int - */ - public function getStatus() - { - return $this->status; - } - - /** - * The current status of the operation. - * - * Generated from protobuf field .google.container.v1.Operation.Status status = 4; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\Operation\Status::class); - $this->status = $var; - - return $this; - } - - /** - * Detailed operation progress, if available. - * - * Generated from protobuf field string detail = 8; - * @return string - */ - public function getDetail() - { - return $this->detail; - } - - /** - * Detailed operation progress, if available. - * - * Generated from protobuf field string detail = 8; - * @param string $var - * @return $this - */ - public function setDetail($var) - { - GPBUtil::checkString($var, True); - $this->detail = $var; - - return $this; - } - - /** - * Output only. If an error has occurred, a textual description of the error. - * Deprecated. Use the field error instead. - * - * Generated from protobuf field string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - * @deprecated - */ - public function getStatusMessage() - { - @trigger_error('status_message is deprecated.', E_USER_DEPRECATED); - return $this->status_message; - } - - /** - * Output only. If an error has occurred, a textual description of the error. - * Deprecated. Use the field error instead. - * - * Generated from protobuf field string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - * @deprecated - */ - public function setStatusMessage($var) - { - @trigger_error('status_message is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->status_message = $var; - - return $this; - } - - /** - * Server-defined URI for the operation. Example: - * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`. - * - * Generated from protobuf field string self_link = 6; - * @return string - */ - public function getSelfLink() - { - return $this->self_link; - } - - /** - * Server-defined URI for the operation. Example: - * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`. - * - * Generated from protobuf field string self_link = 6; - * @param string $var - * @return $this - */ - public function setSelfLink($var) - { - GPBUtil::checkString($var, True); - $this->self_link = $var; - - return $this; - } - - /** - * Server-defined URI for the target of the operation. The format of this is a - * URI to the resource being modified (such as a cluster, node pool, or node). - * For node pool repairs, there may be multiple nodes being repaired, but only - * one will be the target. - * Examples: - * - - * ## - * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster` - * ## - * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np` - * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node` - * - * Generated from protobuf field string target_link = 7; - * @return string - */ - public function getTargetLink() - { - return $this->target_link; - } - - /** - * Server-defined URI for the target of the operation. The format of this is a - * URI to the resource being modified (such as a cluster, node pool, or node). - * For node pool repairs, there may be multiple nodes being repaired, but only - * one will be the target. - * Examples: - * - - * ## - * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster` - * ## - * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np` - * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node` - * - * Generated from protobuf field string target_link = 7; - * @param string $var - * @return $this - */ - public function setTargetLink($var) - { - GPBUtil::checkString($var, True); - $this->target_link = $var; - - return $this; - } - - /** - * [Output only] The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * or - * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * in which the cluster resides. - * - * Generated from protobuf field string location = 9; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * [Output only] The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * or - * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * in which the cluster resides. - * - * Generated from protobuf field string location = 9; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - - /** - * [Output only] The time the operation started, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string start_time = 10; - * @return string - */ - public function getStartTime() - { - return $this->start_time; - } - - /** - * [Output only] The time the operation started, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string start_time = 10; - * @param string $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkString($var, True); - $this->start_time = $var; - - return $this; - } - - /** - * [Output only] The time the operation completed, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string end_time = 11; - * @return string - */ - public function getEndTime() - { - return $this->end_time; - } - - /** - * [Output only] The time the operation completed, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string end_time = 11; - * @param string $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkString($var, True); - $this->end_time = $var; - - return $this; - } - - /** - * Output only. [Output only] Progress information for an operation. - * - * Generated from protobuf field .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Container\V1\OperationProgress|null - */ - public function getProgress() - { - return $this->progress; - } - - public function hasProgress() - { - return isset($this->progress); - } - - public function clearProgress() - { - unset($this->progress); - } - - /** - * Output only. [Output only] Progress information for an operation. - * - * Generated from protobuf field .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Container\V1\OperationProgress $var - * @return $this - */ - public function setProgress($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\OperationProgress::class); - $this->progress = $var; - - return $this; - } - - /** - * Which conditions caused the current cluster state. - * Deprecated. Use field error instead. - * - * Generated from protobuf field repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; - * @return \Google\Protobuf\Internal\RepeatedField - * @deprecated - */ - public function getClusterConditions() - { - @trigger_error('cluster_conditions is deprecated.', E_USER_DEPRECATED); - return $this->cluster_conditions; - } - - /** - * Which conditions caused the current cluster state. - * Deprecated. Use field error instead. - * - * Generated from protobuf field repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; - * @param array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - * @deprecated - */ - public function setClusterConditions($var) - { - @trigger_error('cluster_conditions is deprecated.', E_USER_DEPRECATED); - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\StatusCondition::class); - $this->cluster_conditions = $arr; - - return $this; - } - - /** - * Which conditions caused the current node pool state. - * Deprecated. Use field error instead. - * - * Generated from protobuf field repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - * @return \Google\Protobuf\Internal\RepeatedField - * @deprecated - */ - public function getNodepoolConditions() - { - @trigger_error('nodepool_conditions is deprecated.', E_USER_DEPRECATED); - return $this->nodepool_conditions; - } - - /** - * Which conditions caused the current node pool state. - * Deprecated. Use field error instead. - * - * Generated from protobuf field repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - * @param array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - * @deprecated - */ - public function setNodepoolConditions($var) - { - @trigger_error('nodepool_conditions is deprecated.', E_USER_DEPRECATED); - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\StatusCondition::class); - $this->nodepool_conditions = $arr; - - return $this; - } - - /** - * The error result of the operation in case of failure. - * - * Generated from protobuf field .google.rpc.Status error = 15; - * @return \Google\Rpc\Status|null - */ - public function getError() - { - return $this->error; - } - - public function hasError() - { - return isset($this->error); - } - - public function clearError() - { - unset($this->error); - } - - /** - * The error result of the operation in case of failure. - * - * Generated from protobuf field .google.rpc.Status error = 15; - * @param \Google\Rpc\Status $var - * @return $this - */ - public function setError($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Status::class); - $this->error = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation/Status.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation/Status.php deleted file mode 100644 index 49c8585d1851..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation/Status.php +++ /dev/null @@ -1,78 +0,0 @@ -google.container.v1.Operation.Status - */ -class Status -{ - /** - * Not set. - * - * Generated from protobuf enum STATUS_UNSPECIFIED = 0; - */ - const STATUS_UNSPECIFIED = 0; - /** - * The operation has been created. - * - * Generated from protobuf enum PENDING = 1; - */ - const PENDING = 1; - /** - * The operation is currently running. - * - * Generated from protobuf enum RUNNING = 2; - */ - const RUNNING = 2; - /** - * The operation is done, either cancelled or completed. - * - * Generated from protobuf enum DONE = 3; - */ - const DONE = 3; - /** - * The operation is aborting. - * - * Generated from protobuf enum ABORTING = 4; - */ - const ABORTING = 4; - - private static $valueToName = [ - self::STATUS_UNSPECIFIED => 'STATUS_UNSPECIFIED', - self::PENDING => 'PENDING', - self::RUNNING => 'RUNNING', - self::DONE => 'DONE', - self::ABORTING => 'ABORTING', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Status::class, \Google\Cloud\Container\V1\Operation_Status::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation/Type.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation/Type.php deleted file mode 100644 index 59d8003dacf6..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation/Type.php +++ /dev/null @@ -1,234 +0,0 @@ -google.container.v1.Operation.Type - */ -class Type -{ - /** - * Not set. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * The cluster is being created. The cluster should be assumed to be - * unusable until the operation finishes. - * In the event of the operation failing, the cluster will enter the [ERROR - * state][Cluster.Status.ERROR] and eventually be deleted. - * - * Generated from protobuf enum CREATE_CLUSTER = 1; - */ - const CREATE_CLUSTER = 1; - /** - * The cluster is being deleted. The cluster should be assumed to be - * unusable as soon as this operation starts. - * In the event of the operation failing, the cluster will enter the [ERROR - * state][Cluster.Status.ERROR] and the deletion will be automatically - * retried until completed. - * - * Generated from protobuf enum DELETE_CLUSTER = 2; - */ - const DELETE_CLUSTER = 2; - /** - * The [cluster - * version][google.container.v1.ClusterUpdate.desired_master_version] is - * being updated. Note that this includes "upgrades" to the same version, - * which are simply a recreation. This also includes - * [auto-upgrades](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-upgrades#upgrading_automatically). - * For more details, see [documentation on cluster - * upgrades](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-upgrades#cluster_upgrades). - * - * Generated from protobuf enum UPGRADE_MASTER = 3; - */ - const UPGRADE_MASTER = 3; - /** - * A node pool is being updated. Despite calling this an "upgrade", this - * includes most forms of updates to node pools. This also includes - * [auto-upgrades](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-upgrades). - * This operation sets the - * [progress][google.container.v1.Operation.progress] field and may be - * [canceled][google.container.v1.ClusterManager.CancelOperation]. - * The upgrade strategy depends on [node pool - * configuration](https://cloud.google.com/kubernetes-engine/docs/concepts/node-pool-upgrade-strategies). - * The nodes are generally still usable during this operation. - * - * Generated from protobuf enum UPGRADE_NODES = 4; - */ - const UPGRADE_NODES = 4; - /** - * A problem has been detected with the control plane and is being repaired. - * This operation type is initiated by GKE. For more details, see - * [documentation on - * repairs](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions#repairs). - * - * Generated from protobuf enum REPAIR_CLUSTER = 5; - */ - const REPAIR_CLUSTER = 5; - /** - * The cluster is being updated. This is a broad category of operations and - * includes operations that only change metadata as well as those that must - * recreate the entire cluster. If the control plane must be recreated, this - * will cause temporary downtime for zonal clusters. - * Some features require recreating the nodes as well. Those will be - * recreated as separate operations and the update may not be completely - * functional until the node pools recreations finish. Node recreations will - * generally follow [maintenance - * policies](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions). - * Some GKE-initiated operations use this type. This includes certain types - * of auto-upgrades and incident mitigations. - * - * Generated from protobuf enum UPDATE_CLUSTER = 6; - */ - const UPDATE_CLUSTER = 6; - /** - * A node pool is being created. The node pool should be assumed to be - * unusable until this operation finishes. In the event of an error, the - * node pool may be partially created. - * If enabled, [node - * autoprovisioning](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-provisioning) - * may have automatically initiated such operations. - * - * Generated from protobuf enum CREATE_NODE_POOL = 7; - */ - const CREATE_NODE_POOL = 7; - /** - * The node pool is being deleted. The node pool should be assumed to be - * unusable as soon as this operation starts. - * - * Generated from protobuf enum DELETE_NODE_POOL = 8; - */ - const DELETE_NODE_POOL = 8; - /** - * The node pool's [manamagent][google.container.v1.NodePool.management] - * field is being updated. These operations only update metadata and may be - * concurrent with most other operations. - * - * Generated from protobuf enum SET_NODE_POOL_MANAGEMENT = 9; - */ - const SET_NODE_POOL_MANAGEMENT = 9; - /** - * A problem has been detected with nodes and [they are being - * repaired](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-repair). - * This operation type is initiated by GKE, typically automatically. This - * operation may be concurrent with other operations and there may be - * multiple repairs occurring on the same node pool. - * - * Generated from protobuf enum AUTO_REPAIR_NODES = 10; - */ - const AUTO_REPAIR_NODES = 10; - /** - * Unused. Automatic node upgrade uses - * [UPGRADE_NODES][google.container.v1.Operation.Type.UPGRADE_NODES]. - * - * Generated from protobuf enum AUTO_UPGRADE_NODES = 11 [deprecated = true]; - */ - const AUTO_UPGRADE_NODES = 11; - /** - * Unused. Updating labels uses - * [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER]. - * - * Generated from protobuf enum SET_LABELS = 12 [deprecated = true]; - */ - const SET_LABELS = 12; - /** - * Unused. Updating master auth uses - * [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER]. - * - * Generated from protobuf enum SET_MASTER_AUTH = 13 [deprecated = true]; - */ - const SET_MASTER_AUTH = 13; - /** - * The node pool is being resized. With the exception of resizing to or from - * size zero, the node pool is generally usable during this operation. - * - * Generated from protobuf enum SET_NODE_POOL_SIZE = 14; - */ - const SET_NODE_POOL_SIZE = 14; - /** - * Unused. Updating network policy uses - * [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER]. - * - * Generated from protobuf enum SET_NETWORK_POLICY = 15 [deprecated = true]; - */ - const SET_NETWORK_POLICY = 15; - /** - * Unused. Updating maintenance policy uses - * [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER]. - * - * Generated from protobuf enum SET_MAINTENANCE_POLICY = 16 [deprecated = true]; - */ - const SET_MAINTENANCE_POLICY = 16; - /** - * The control plane is being resized. This operation type is initiated by - * GKE. These operations are often performed preemptively to ensure that the - * control plane has sufficient resources and is not typically an indication - * of issues. For more details, see - * [documentation on - * resizes](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions#repairs). - * - * Generated from protobuf enum RESIZE_CLUSTER = 18; - */ - const RESIZE_CLUSTER = 18; - /** - * Fleet features of GKE Enterprise are being upgraded. The cluster should - * be assumed to be blocked for other upgrades until the operation finishes. - * - * Generated from protobuf enum FLEET_FEATURE_UPGRADE = 19; - */ - const FLEET_FEATURE_UPGRADE = 19; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::CREATE_CLUSTER => 'CREATE_CLUSTER', - self::DELETE_CLUSTER => 'DELETE_CLUSTER', - self::UPGRADE_MASTER => 'UPGRADE_MASTER', - self::UPGRADE_NODES => 'UPGRADE_NODES', - self::REPAIR_CLUSTER => 'REPAIR_CLUSTER', - self::UPDATE_CLUSTER => 'UPDATE_CLUSTER', - self::CREATE_NODE_POOL => 'CREATE_NODE_POOL', - self::DELETE_NODE_POOL => 'DELETE_NODE_POOL', - self::SET_NODE_POOL_MANAGEMENT => 'SET_NODE_POOL_MANAGEMENT', - self::AUTO_REPAIR_NODES => 'AUTO_REPAIR_NODES', - self::AUTO_UPGRADE_NODES => 'AUTO_UPGRADE_NODES', - self::SET_LABELS => 'SET_LABELS', - self::SET_MASTER_AUTH => 'SET_MASTER_AUTH', - self::SET_NODE_POOL_SIZE => 'SET_NODE_POOL_SIZE', - self::SET_NETWORK_POLICY => 'SET_NETWORK_POLICY', - self::SET_MAINTENANCE_POLICY => 'SET_MAINTENANCE_POLICY', - self::RESIZE_CLUSTER => 'RESIZE_CLUSTER', - self::FLEET_FEATURE_UPGRADE => 'FLEET_FEATURE_UPGRADE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Type::class, \Google\Cloud\Container\V1\Operation_Type::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/OperationProgress.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/OperationProgress.php deleted file mode 100644 index 533975905024..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/OperationProgress.php +++ /dev/null @@ -1,197 +0,0 @@ -google.container.v1.OperationProgress - */ -class OperationProgress extends \Google\Protobuf\Internal\Message -{ - /** - * A non-parameterized string describing an operation stage. - * Unset for single-stage operations. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Status of an operation stage. - * Unset for single-stage operations. - * - * Generated from protobuf field .google.container.v1.Operation.Status status = 2; - */ - protected $status = 0; - /** - * Progress metric bundle, for example: - * metrics: [{name: "nodes done", int_value: 15}, - * {name: "nodes total", int_value: 32}] - * or - * metrics: [{name: "progress", double_value: 0.56}, - * {name: "progress scale", double_value: 1.0}] - * - * Generated from protobuf field repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - private $metrics; - /** - * Substages of an operation or a stage. - * - * Generated from protobuf field repeated .google.container.v1.OperationProgress stages = 4; - */ - private $stages; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * A non-parameterized string describing an operation stage. - * Unset for single-stage operations. - * @type int $status - * Status of an operation stage. - * Unset for single-stage operations. - * @type array<\Google\Cloud\Container\V1\OperationProgress\Metric>|\Google\Protobuf\Internal\RepeatedField $metrics - * Progress metric bundle, for example: - * metrics: [{name: "nodes done", int_value: 15}, - * {name: "nodes total", int_value: 32}] - * or - * metrics: [{name: "progress", double_value: 0.56}, - * {name: "progress scale", double_value: 1.0}] - * @type array<\Google\Cloud\Container\V1\OperationProgress>|\Google\Protobuf\Internal\RepeatedField $stages - * Substages of an operation or a stage. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * A non-parameterized string describing an operation stage. - * Unset for single-stage operations. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * A non-parameterized string describing an operation stage. - * Unset for single-stage operations. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Status of an operation stage. - * Unset for single-stage operations. - * - * Generated from protobuf field .google.container.v1.Operation.Status status = 2; - * @return int - */ - public function getStatus() - { - return $this->status; - } - - /** - * Status of an operation stage. - * Unset for single-stage operations. - * - * Generated from protobuf field .google.container.v1.Operation.Status status = 2; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\Operation\Status::class); - $this->status = $var; - - return $this; - } - - /** - * Progress metric bundle, for example: - * metrics: [{name: "nodes done", int_value: 15}, - * {name: "nodes total", int_value: 32}] - * or - * metrics: [{name: "progress", double_value: 0.56}, - * {name: "progress scale", double_value: 1.0}] - * - * Generated from protobuf field repeated .google.container.v1.OperationProgress.Metric metrics = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetrics() - { - return $this->metrics; - } - - /** - * Progress metric bundle, for example: - * metrics: [{name: "nodes done", int_value: 15}, - * {name: "nodes total", int_value: 32}] - * or - * metrics: [{name: "progress", double_value: 0.56}, - * {name: "progress scale", double_value: 1.0}] - * - * Generated from protobuf field repeated .google.container.v1.OperationProgress.Metric metrics = 3; - * @param array<\Google\Cloud\Container\V1\OperationProgress\Metric>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetrics($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\OperationProgress\Metric::class); - $this->metrics = $arr; - - return $this; - } - - /** - * Substages of an operation or a stage. - * - * Generated from protobuf field repeated .google.container.v1.OperationProgress stages = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getStages() - { - return $this->stages; - } - - /** - * Substages of an operation or a stage. - * - * Generated from protobuf field repeated .google.container.v1.OperationProgress stages = 4; - * @param array<\Google\Cloud\Container\V1\OperationProgress>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setStages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\OperationProgress::class); - $this->stages = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/OperationProgress/Metric.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/OperationProgress/Metric.php deleted file mode 100644 index 6c134eae0fd1..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/OperationProgress/Metric.php +++ /dev/null @@ -1,178 +0,0 @@ -google.container.v1.OperationProgress.Metric - */ -class Metric extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Metric name, e.g., "nodes total", "percent done". - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - protected $value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Metric name, e.g., "nodes total", "percent done". - * @type int|string $int_value - * For metrics with integer value. - * @type float $double_value - * For metrics with floating point value. - * @type string $string_value - * For metrics with custom values (ratios, visual progress, etc.). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Metric name, e.g., "nodes total", "percent done". - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Metric name, e.g., "nodes total", "percent done". - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * For metrics with integer value. - * - * Generated from protobuf field int64 int_value = 2; - * @return int|string - */ - public function getIntValue() - { - return $this->readOneof(2); - } - - public function hasIntValue() - { - return $this->hasOneof(2); - } - - /** - * For metrics with integer value. - * - * Generated from protobuf field int64 int_value = 2; - * @param int|string $var - * @return $this - */ - public function setIntValue($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * For metrics with floating point value. - * - * Generated from protobuf field double double_value = 3; - * @return float - */ - public function getDoubleValue() - { - return $this->readOneof(3); - } - - public function hasDoubleValue() - { - return $this->hasOneof(3); - } - - /** - * For metrics with floating point value. - * - * Generated from protobuf field double double_value = 3; - * @param float $var - * @return $this - */ - public function setDoubleValue($var) - { - GPBUtil::checkDouble($var); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * For metrics with custom values (ratios, visual progress, etc.). - * - * Generated from protobuf field string string_value = 4; - * @return string - */ - public function getStringValue() - { - return $this->readOneof(4); - } - - public function hasStringValue() - { - return $this->hasOneof(4); - } - - /** - * For metrics with custom values (ratios, visual progress, etc.). - * - * Generated from protobuf field string string_value = 4; - * @param string $var - * @return $this - */ - public function setStringValue($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getValue() - { - return $this->whichOneof("value"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Metric::class, \Google\Cloud\Container\V1\OperationProgress_Metric::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PodCIDROverprovisionConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PodCIDROverprovisionConfig.php deleted file mode 100644 index d5f56d4b2ade..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PodCIDROverprovisionConfig.php +++ /dev/null @@ -1,72 +0,0 @@ -google.container.v1.PodCIDROverprovisionConfig - */ -class PodCIDROverprovisionConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether Pod CIDR overprovisioning is disabled. - * Note: Pod CIDR overprovisioning is enabled by default. - * - * Generated from protobuf field bool disable = 1; - */ - protected $disable = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $disable - * Whether Pod CIDR overprovisioning is disabled. - * Note: Pod CIDR overprovisioning is enabled by default. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether Pod CIDR overprovisioning is disabled. - * Note: Pod CIDR overprovisioning is enabled by default. - * - * Generated from protobuf field bool disable = 1; - * @return bool - */ - public function getDisable() - { - return $this->disable; - } - - /** - * Whether Pod CIDR overprovisioning is disabled. - * Note: Pod CIDR overprovisioning is enabled by default. - * - * Generated from protobuf field bool disable = 1; - * @param bool $var - * @return $this - */ - public function setDisable($var) - { - GPBUtil::checkBool($var); - $this->disable = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateClusterConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateClusterConfig.php deleted file mode 100644 index 1b060f96e51a..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateClusterConfig.php +++ /dev/null @@ -1,339 +0,0 @@ -google.container.v1.PrivateClusterConfig - */ -class PrivateClusterConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether nodes have internal IP addresses only. If enabled, all nodes are - * given only RFC 1918 private addresses and communicate with the master via - * private networking. - * - * Generated from protobuf field bool enable_private_nodes = 1; - */ - protected $enable_private_nodes = false; - /** - * Whether the master's internal IP address is used as the cluster endpoint. - * - * Generated from protobuf field bool enable_private_endpoint = 2; - */ - protected $enable_private_endpoint = false; - /** - * The IP range in CIDR notation to use for the hosted master network. This - * range will be used for assigning internal IP addresses to the master or - * set of masters, as well as the ILB VIP. This range must not overlap with - * any other ranges in use within the cluster's network. - * - * Generated from protobuf field string master_ipv4_cidr_block = 3; - */ - protected $master_ipv4_cidr_block = ''; - /** - * Output only. The internal IP address of this cluster's master endpoint. - * - * Generated from protobuf field string private_endpoint = 4; - */ - protected $private_endpoint = ''; - /** - * Output only. The external IP address of this cluster's master endpoint. - * - * Generated from protobuf field string public_endpoint = 5; - */ - protected $public_endpoint = ''; - /** - * Output only. The peering name in the customer VPC used by this cluster. - * - * Generated from protobuf field string peering_name = 7; - */ - protected $peering_name = ''; - /** - * Controls master global access settings. - * - * Generated from protobuf field .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - */ - protected $master_global_access_config = null; - /** - * Subnet to provision the master's private endpoint during cluster creation. - * Specified in projects/*/regions/*/subnetworks/* format. - * - * Generated from protobuf field string private_endpoint_subnetwork = 10; - */ - protected $private_endpoint_subnetwork = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enable_private_nodes - * Whether nodes have internal IP addresses only. If enabled, all nodes are - * given only RFC 1918 private addresses and communicate with the master via - * private networking. - * @type bool $enable_private_endpoint - * Whether the master's internal IP address is used as the cluster endpoint. - * @type string $master_ipv4_cidr_block - * The IP range in CIDR notation to use for the hosted master network. This - * range will be used for assigning internal IP addresses to the master or - * set of masters, as well as the ILB VIP. This range must not overlap with - * any other ranges in use within the cluster's network. - * @type string $private_endpoint - * Output only. The internal IP address of this cluster's master endpoint. - * @type string $public_endpoint - * Output only. The external IP address of this cluster's master endpoint. - * @type string $peering_name - * Output only. The peering name in the customer VPC used by this cluster. - * @type \Google\Cloud\Container\V1\PrivateClusterMasterGlobalAccessConfig $master_global_access_config - * Controls master global access settings. - * @type string $private_endpoint_subnetwork - * Subnet to provision the master's private endpoint during cluster creation. - * Specified in projects/*/regions/*/subnetworks/* format. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether nodes have internal IP addresses only. If enabled, all nodes are - * given only RFC 1918 private addresses and communicate with the master via - * private networking. - * - * Generated from protobuf field bool enable_private_nodes = 1; - * @return bool - */ - public function getEnablePrivateNodes() - { - return $this->enable_private_nodes; - } - - /** - * Whether nodes have internal IP addresses only. If enabled, all nodes are - * given only RFC 1918 private addresses and communicate with the master via - * private networking. - * - * Generated from protobuf field bool enable_private_nodes = 1; - * @param bool $var - * @return $this - */ - public function setEnablePrivateNodes($var) - { - GPBUtil::checkBool($var); - $this->enable_private_nodes = $var; - - return $this; - } - - /** - * Whether the master's internal IP address is used as the cluster endpoint. - * - * Generated from protobuf field bool enable_private_endpoint = 2; - * @return bool - */ - public function getEnablePrivateEndpoint() - { - return $this->enable_private_endpoint; - } - - /** - * Whether the master's internal IP address is used as the cluster endpoint. - * - * Generated from protobuf field bool enable_private_endpoint = 2; - * @param bool $var - * @return $this - */ - public function setEnablePrivateEndpoint($var) - { - GPBUtil::checkBool($var); - $this->enable_private_endpoint = $var; - - return $this; - } - - /** - * The IP range in CIDR notation to use for the hosted master network. This - * range will be used for assigning internal IP addresses to the master or - * set of masters, as well as the ILB VIP. This range must not overlap with - * any other ranges in use within the cluster's network. - * - * Generated from protobuf field string master_ipv4_cidr_block = 3; - * @return string - */ - public function getMasterIpv4CidrBlock() - { - return $this->master_ipv4_cidr_block; - } - - /** - * The IP range in CIDR notation to use for the hosted master network. This - * range will be used for assigning internal IP addresses to the master or - * set of masters, as well as the ILB VIP. This range must not overlap with - * any other ranges in use within the cluster's network. - * - * Generated from protobuf field string master_ipv4_cidr_block = 3; - * @param string $var - * @return $this - */ - public function setMasterIpv4CidrBlock($var) - { - GPBUtil::checkString($var, True); - $this->master_ipv4_cidr_block = $var; - - return $this; - } - - /** - * Output only. The internal IP address of this cluster's master endpoint. - * - * Generated from protobuf field string private_endpoint = 4; - * @return string - */ - public function getPrivateEndpoint() - { - return $this->private_endpoint; - } - - /** - * Output only. The internal IP address of this cluster's master endpoint. - * - * Generated from protobuf field string private_endpoint = 4; - * @param string $var - * @return $this - */ - public function setPrivateEndpoint($var) - { - GPBUtil::checkString($var, True); - $this->private_endpoint = $var; - - return $this; - } - - /** - * Output only. The external IP address of this cluster's master endpoint. - * - * Generated from protobuf field string public_endpoint = 5; - * @return string - */ - public function getPublicEndpoint() - { - return $this->public_endpoint; - } - - /** - * Output only. The external IP address of this cluster's master endpoint. - * - * Generated from protobuf field string public_endpoint = 5; - * @param string $var - * @return $this - */ - public function setPublicEndpoint($var) - { - GPBUtil::checkString($var, True); - $this->public_endpoint = $var; - - return $this; - } - - /** - * Output only. The peering name in the customer VPC used by this cluster. - * - * Generated from protobuf field string peering_name = 7; - * @return string - */ - public function getPeeringName() - { - return $this->peering_name; - } - - /** - * Output only. The peering name in the customer VPC used by this cluster. - * - * Generated from protobuf field string peering_name = 7; - * @param string $var - * @return $this - */ - public function setPeeringName($var) - { - GPBUtil::checkString($var, True); - $this->peering_name = $var; - - return $this; - } - - /** - * Controls master global access settings. - * - * Generated from protobuf field .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * @return \Google\Cloud\Container\V1\PrivateClusterMasterGlobalAccessConfig|null - */ - public function getMasterGlobalAccessConfig() - { - return $this->master_global_access_config; - } - - public function hasMasterGlobalAccessConfig() - { - return isset($this->master_global_access_config); - } - - public function clearMasterGlobalAccessConfig() - { - unset($this->master_global_access_config); - } - - /** - * Controls master global access settings. - * - * Generated from protobuf field .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * @param \Google\Cloud\Container\V1\PrivateClusterMasterGlobalAccessConfig $var - * @return $this - */ - public function setMasterGlobalAccessConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\PrivateClusterMasterGlobalAccessConfig::class); - $this->master_global_access_config = $var; - - return $this; - } - - /** - * Subnet to provision the master's private endpoint during cluster creation. - * Specified in projects/*/regions/*/subnetworks/* format. - * - * Generated from protobuf field string private_endpoint_subnetwork = 10; - * @return string - */ - public function getPrivateEndpointSubnetwork() - { - return $this->private_endpoint_subnetwork; - } - - /** - * Subnet to provision the master's private endpoint during cluster creation. - * Specified in projects/*/regions/*/subnetworks/* format. - * - * Generated from protobuf field string private_endpoint_subnetwork = 10; - * @param string $var - * @return $this - */ - public function setPrivateEndpointSubnetwork($var) - { - GPBUtil::checkString($var, True); - $this->private_endpoint_subnetwork = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateClusterMasterGlobalAccessConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateClusterMasterGlobalAccessConfig.php deleted file mode 100644 index 0bfb60386807..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateClusterMasterGlobalAccessConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.PrivateClusterMasterGlobalAccessConfig - */ -class PrivateClusterMasterGlobalAccessConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whenever master is accessible globally or not. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whenever master is accessible globally or not. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whenever master is accessible globally or not. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whenever master is accessible globally or not. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateIPv6GoogleAccess.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateIPv6GoogleAccess.php deleted file mode 100644 index fae45c6c2353..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateIPv6GoogleAccess.php +++ /dev/null @@ -1,69 +0,0 @@ -google.container.v1.PrivateIPv6GoogleAccess - */ -class PrivateIPv6GoogleAccess -{ - /** - * Default value. Same as DISABLED - * - * Generated from protobuf enum PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0; - */ - const PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0; - /** - * No private access to or from Google Services - * - * Generated from protobuf enum PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED = 1; - */ - const PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED = 1; - /** - * Enables private IPv6 access to Google Services from GKE - * - * Generated from protobuf enum PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE = 2; - */ - const PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE = 2; - /** - * Enables private IPv6 access to and from Google Services - * - * Generated from protobuf enum PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL = 3; - */ - const PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL = 3; - - private static $valueToName = [ - self::PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED => 'PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED', - self::PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED => 'PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED', - self::PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE => 'PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE', - self::PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL => 'PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RangeInfo.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RangeInfo.php deleted file mode 100644 index 3d7f6294d97b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RangeInfo.php +++ /dev/null @@ -1,101 +0,0 @@ -google.container.v1.RangeInfo - */ -class RangeInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. [Output only] Name of a range. - * - * Generated from protobuf field string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $range_name = ''; - /** - * Output only. [Output only] The utilization of the range. - * - * Generated from protobuf field double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $utilization = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $range_name - * Output only. [Output only] Name of a range. - * @type float $utilization - * Output only. [Output only] The utilization of the range. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Output only. [Output only] Name of a range. - * - * Generated from protobuf field string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getRangeName() - { - return $this->range_name; - } - - /** - * Output only. [Output only] Name of a range. - * - * Generated from protobuf field string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setRangeName($var) - { - GPBUtil::checkString($var, True); - $this->range_name = $var; - - return $this; - } - - /** - * Output only. [Output only] The utilization of the range. - * - * Generated from protobuf field double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getUtilization() - { - return $this->utilization; - } - - /** - * Output only. [Output only] The utilization of the range. - * - * Generated from protobuf field double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setUtilization($var) - { - GPBUtil::checkDouble($var); - $this->utilization = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RecurringTimeWindow.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RecurringTimeWindow.php deleted file mode 100644 index d048032ea79c..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RecurringTimeWindow.php +++ /dev/null @@ -1,211 +0,0 @@ -google.container.v1.RecurringTimeWindow - */ -class RecurringTimeWindow extends \Google\Protobuf\Internal\Message -{ - /** - * The window of the first recurrence. - * - * Generated from protobuf field .google.container.v1.TimeWindow window = 1; - */ - protected $window = null; - /** - * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how - * this window reccurs. They go on for the span of time between the start and - * end time. - * For example, to have something repeat every weekday, you'd use: - * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR` - * To repeat some window daily (equivalent to the DailyMaintenanceWindow): - * `FREQ=DAILY` - * For the first weekend of every month: - * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU` - * This specifies how frequently the window starts. Eg, if you wanted to have - * a 9-5 UTC-4 window every weekday, you'd use something like: - * ``` - * start time = 2019-01-01T09:00:00-0400 - * end time = 2019-01-01T17:00:00-0400 - * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR - * ``` - * Windows can span multiple days. Eg, to make the window encompass every - * weekend from midnight Saturday till the last minute of Sunday UTC: - * ``` - * start time = 2019-01-05T00:00:00Z - * end time = 2019-01-07T23:59:00Z - * recurrence = FREQ=WEEKLY;BYDAY=SA - * ``` - * Note the start and end time's specific dates are largely arbitrary except - * to specify duration of the window and when it first starts. - * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported. - * - * Generated from protobuf field string recurrence = 2; - */ - protected $recurrence = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\TimeWindow $window - * The window of the first recurrence. - * @type string $recurrence - * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how - * this window reccurs. They go on for the span of time between the start and - * end time. - * For example, to have something repeat every weekday, you'd use: - * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR` - * To repeat some window daily (equivalent to the DailyMaintenanceWindow): - * `FREQ=DAILY` - * For the first weekend of every month: - * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU` - * This specifies how frequently the window starts. Eg, if you wanted to have - * a 9-5 UTC-4 window every weekday, you'd use something like: - * ``` - * start time = 2019-01-01T09:00:00-0400 - * end time = 2019-01-01T17:00:00-0400 - * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR - * ``` - * Windows can span multiple days. Eg, to make the window encompass every - * weekend from midnight Saturday till the last minute of Sunday UTC: - * ``` - * start time = 2019-01-05T00:00:00Z - * end time = 2019-01-07T23:59:00Z - * recurrence = FREQ=WEEKLY;BYDAY=SA - * ``` - * Note the start and end time's specific dates are largely arbitrary except - * to specify duration of the window and when it first starts. - * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The window of the first recurrence. - * - * Generated from protobuf field .google.container.v1.TimeWindow window = 1; - * @return \Google\Cloud\Container\V1\TimeWindow|null - */ - public function getWindow() - { - return $this->window; - } - - public function hasWindow() - { - return isset($this->window); - } - - public function clearWindow() - { - unset($this->window); - } - - /** - * The window of the first recurrence. - * - * Generated from protobuf field .google.container.v1.TimeWindow window = 1; - * @param \Google\Cloud\Container\V1\TimeWindow $var - * @return $this - */ - public function setWindow($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\TimeWindow::class); - $this->window = $var; - - return $this; - } - - /** - * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how - * this window reccurs. They go on for the span of time between the start and - * end time. - * For example, to have something repeat every weekday, you'd use: - * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR` - * To repeat some window daily (equivalent to the DailyMaintenanceWindow): - * `FREQ=DAILY` - * For the first weekend of every month: - * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU` - * This specifies how frequently the window starts. Eg, if you wanted to have - * a 9-5 UTC-4 window every weekday, you'd use something like: - * ``` - * start time = 2019-01-01T09:00:00-0400 - * end time = 2019-01-01T17:00:00-0400 - * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR - * ``` - * Windows can span multiple days. Eg, to make the window encompass every - * weekend from midnight Saturday till the last minute of Sunday UTC: - * ``` - * start time = 2019-01-05T00:00:00Z - * end time = 2019-01-07T23:59:00Z - * recurrence = FREQ=WEEKLY;BYDAY=SA - * ``` - * Note the start and end time's specific dates are largely arbitrary except - * to specify duration of the window and when it first starts. - * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported. - * - * Generated from protobuf field string recurrence = 2; - * @return string - */ - public function getRecurrence() - { - return $this->recurrence; - } - - /** - * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how - * this window reccurs. They go on for the span of time between the start and - * end time. - * For example, to have something repeat every weekday, you'd use: - * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR` - * To repeat some window daily (equivalent to the DailyMaintenanceWindow): - * `FREQ=DAILY` - * For the first weekend of every month: - * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU` - * This specifies how frequently the window starts. Eg, if you wanted to have - * a 9-5 UTC-4 window every weekday, you'd use something like: - * ``` - * start time = 2019-01-01T09:00:00-0400 - * end time = 2019-01-01T17:00:00-0400 - * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR - * ``` - * Windows can span multiple days. Eg, to make the window encompass every - * weekend from midnight Saturday till the last minute of Sunday UTC: - * ``` - * start time = 2019-01-05T00:00:00Z - * end time = 2019-01-07T23:59:00Z - * recurrence = FREQ=WEEKLY;BYDAY=SA - * ``` - * Note the start and end time's specific dates are largely arbitrary except - * to specify duration of the window and when it first starts. - * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported. - * - * Generated from protobuf field string recurrence = 2; - * @param string $var - * @return $this - */ - public function setRecurrence($var) - { - GPBUtil::checkString($var, True); - $this->recurrence = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReleaseChannel.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReleaseChannel.php deleted file mode 100644 index 9b9b1b38c11b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReleaseChannel.php +++ /dev/null @@ -1,71 +0,0 @@ -google.container.v1.ReleaseChannel - */ -class ReleaseChannel extends \Google\Protobuf\Internal\Message -{ - /** - * channel specifies which release channel the cluster is subscribed to. - * - * Generated from protobuf field .google.container.v1.ReleaseChannel.Channel channel = 1; - */ - protected $channel = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $channel - * channel specifies which release channel the cluster is subscribed to. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * channel specifies which release channel the cluster is subscribed to. - * - * Generated from protobuf field .google.container.v1.ReleaseChannel.Channel channel = 1; - * @return int - */ - public function getChannel() - { - return $this->channel; - } - - /** - * channel specifies which release channel the cluster is subscribed to. - * - * Generated from protobuf field .google.container.v1.ReleaseChannel.Channel channel = 1; - * @param int $var - * @return $this - */ - public function setChannel($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\ReleaseChannel\Channel::class); - $this->channel = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReleaseChannel/Channel.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReleaseChannel/Channel.php deleted file mode 100644 index d02de572a02f..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReleaseChannel/Channel.php +++ /dev/null @@ -1,78 +0,0 @@ -google.container.v1.ReleaseChannel.Channel - */ -class Channel -{ - /** - * No channel specified. - * - * Generated from protobuf enum UNSPECIFIED = 0; - */ - const UNSPECIFIED = 0; - /** - * RAPID channel is offered on an early access basis for customers who want - * to test new releases. - * WARNING: Versions available in the RAPID Channel may be subject to - * unresolved issues with no known workaround and are not subject to any - * SLAs. - * - * Generated from protobuf enum RAPID = 1; - */ - const RAPID = 1; - /** - * Clusters subscribed to REGULAR receive versions that are considered GA - * quality. REGULAR is intended for production users who want to take - * advantage of new features. - * - * Generated from protobuf enum REGULAR = 2; - */ - const REGULAR = 2; - /** - * Clusters subscribed to STABLE receive versions that are known to be - * stable and reliable in production. - * - * Generated from protobuf enum STABLE = 3; - */ - const STABLE = 3; - - private static $valueToName = [ - self::UNSPECIFIED => 'UNSPECIFIED', - self::RAPID => 'RAPID', - self::REGULAR => 'REGULAR', - self::STABLE => 'STABLE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Channel::class, \Google\Cloud\Container\V1\ReleaseChannel_Channel::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReservationAffinity.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReservationAffinity.php deleted file mode 100644 index 4ab66cc2346b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReservationAffinity.php +++ /dev/null @@ -1,149 +0,0 @@ -google.container.v1.ReservationAffinity - */ -class ReservationAffinity extends \Google\Protobuf\Internal\Message -{ - /** - * Corresponds to the type of reservation consumption. - * - * Generated from protobuf field .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; - */ - protected $consume_reservation_type = 0; - /** - * Corresponds to the label key of a reservation resource. To target a - * SPECIFIC_RESERVATION by name, specify - * "compute.googleapis.com/reservation-name" as the key and specify the name - * of your reservation as its value. - * - * Generated from protobuf field string key = 2; - */ - protected $key = ''; - /** - * Corresponds to the label value(s) of reservation resource(s). - * - * Generated from protobuf field repeated string values = 3; - */ - private $values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $consume_reservation_type - * Corresponds to the type of reservation consumption. - * @type string $key - * Corresponds to the label key of a reservation resource. To target a - * SPECIFIC_RESERVATION by name, specify - * "compute.googleapis.com/reservation-name" as the key and specify the name - * of your reservation as its value. - * @type array|\Google\Protobuf\Internal\RepeatedField $values - * Corresponds to the label value(s) of reservation resource(s). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Corresponds to the type of reservation consumption. - * - * Generated from protobuf field .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; - * @return int - */ - public function getConsumeReservationType() - { - return $this->consume_reservation_type; - } - - /** - * Corresponds to the type of reservation consumption. - * - * Generated from protobuf field .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; - * @param int $var - * @return $this - */ - public function setConsumeReservationType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\ReservationAffinity\Type::class); - $this->consume_reservation_type = $var; - - return $this; - } - - /** - * Corresponds to the label key of a reservation resource. To target a - * SPECIFIC_RESERVATION by name, specify - * "compute.googleapis.com/reservation-name" as the key and specify the name - * of your reservation as its value. - * - * Generated from protobuf field string key = 2; - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * Corresponds to the label key of a reservation resource. To target a - * SPECIFIC_RESERVATION by name, specify - * "compute.googleapis.com/reservation-name" as the key and specify the name - * of your reservation as its value. - * - * Generated from protobuf field string key = 2; - * @param string $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkString($var, True); - $this->key = $var; - - return $this; - } - - /** - * Corresponds to the label value(s) of reservation resource(s). - * - * Generated from protobuf field repeated string values = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValues() - { - return $this->values; - } - - /** - * Corresponds to the label value(s) of reservation resource(s). - * - * Generated from protobuf field repeated string values = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->values = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReservationAffinity/Type.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReservationAffinity/Type.php deleted file mode 100644 index 3c29ed5934e3..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReservationAffinity/Type.php +++ /dev/null @@ -1,72 +0,0 @@ -google.container.v1.ReservationAffinity.Type - */ -class Type -{ - /** - * Default value. This should not be used. - * - * Generated from protobuf enum UNSPECIFIED = 0; - */ - const UNSPECIFIED = 0; - /** - * Do not consume from any reserved capacity. - * - * Generated from protobuf enum NO_RESERVATION = 1; - */ - const NO_RESERVATION = 1; - /** - * Consume any reservation available. - * - * Generated from protobuf enum ANY_RESERVATION = 2; - */ - const ANY_RESERVATION = 2; - /** - * Must consume from a specific reservation. Must specify key value fields - * for specifying the reservations. - * - * Generated from protobuf enum SPECIFIC_RESERVATION = 3; - */ - const SPECIFIC_RESERVATION = 3; - - private static $valueToName = [ - self::UNSPECIFIED => 'UNSPECIFIED', - self::NO_RESERVATION => 'NO_RESERVATION', - self::ANY_RESERVATION => 'ANY_RESERVATION', - self::SPECIFIC_RESERVATION => 'SPECIFIC_RESERVATION', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Type::class, \Google\Cloud\Container\V1\ReservationAffinity_Type::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceLabels.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceLabels.php deleted file mode 100644 index b7898abdd523..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceLabels.php +++ /dev/null @@ -1,68 +0,0 @@ -google.container.v1.ResourceLabels - */ -class ResourceLabels extends \Google\Protobuf\Internal\Message -{ - /** - * Map of node label keys and node label values. - * - * Generated from protobuf field map labels = 1; - */ - private $labels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\MapField $labels - * Map of node label keys and node label values. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Map of node label keys and node label values. - * - * Generated from protobuf field map labels = 1; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Map of node label keys and node label values. - * - * Generated from protobuf field map labels = 1; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceLimit.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceLimit.php deleted file mode 100644 index 9b37f1e58826..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceLimit.php +++ /dev/null @@ -1,136 +0,0 @@ -google.container.v1.ResourceLimit - */ -class ResourceLimit extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name "cpu", "memory" or gpu-specific string. - * - * Generated from protobuf field string resource_type = 1; - */ - protected $resource_type = ''; - /** - * Minimum amount of the resource in the cluster. - * - * Generated from protobuf field int64 minimum = 2; - */ - protected $minimum = 0; - /** - * Maximum amount of the resource in the cluster. - * - * Generated from protobuf field int64 maximum = 3; - */ - protected $maximum = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $resource_type - * Resource name "cpu", "memory" or gpu-specific string. - * @type int|string $minimum - * Minimum amount of the resource in the cluster. - * @type int|string $maximum - * Maximum amount of the resource in the cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Resource name "cpu", "memory" or gpu-specific string. - * - * Generated from protobuf field string resource_type = 1; - * @return string - */ - public function getResourceType() - { - return $this->resource_type; - } - - /** - * Resource name "cpu", "memory" or gpu-specific string. - * - * Generated from protobuf field string resource_type = 1; - * @param string $var - * @return $this - */ - public function setResourceType($var) - { - GPBUtil::checkString($var, True); - $this->resource_type = $var; - - return $this; - } - - /** - * Minimum amount of the resource in the cluster. - * - * Generated from protobuf field int64 minimum = 2; - * @return int|string - */ - public function getMinimum() - { - return $this->minimum; - } - - /** - * Minimum amount of the resource in the cluster. - * - * Generated from protobuf field int64 minimum = 2; - * @param int|string $var - * @return $this - */ - public function setMinimum($var) - { - GPBUtil::checkInt64($var); - $this->minimum = $var; - - return $this; - } - - /** - * Maximum amount of the resource in the cluster. - * - * Generated from protobuf field int64 maximum = 3; - * @return int|string - */ - public function getMaximum() - { - return $this->maximum; - } - - /** - * Maximum amount of the resource in the cluster. - * - * Generated from protobuf field int64 maximum = 3; - * @param int|string $var - * @return $this - */ - public function setMaximum($var) - { - GPBUtil::checkInt64($var); - $this->maximum = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceManagerTags.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceManagerTags.php deleted file mode 100644 index 8ca1fb9c68a7..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceManagerTags.php +++ /dev/null @@ -1,84 +0,0 @@ -google.container.v1.ResourceManagerTags - */ -class ResourceManagerTags extends \Google\Protobuf\Internal\Message -{ - /** - * TagKeyValue must be in one of the following formats ([KEY]=[VALUE]) - * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}` - * 2. `{org_id}/{tag_key_name}={tag_value_name}` - * 3. `{project_id}/{tag_key_name}={tag_value_name}` - * - * Generated from protobuf field map tags = 1; - */ - private $tags; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\MapField $tags - * TagKeyValue must be in one of the following formats ([KEY]=[VALUE]) - * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}` - * 2. `{org_id}/{tag_key_name}={tag_value_name}` - * 3. `{project_id}/{tag_key_name}={tag_value_name}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * TagKeyValue must be in one of the following formats ([KEY]=[VALUE]) - * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}` - * 2. `{org_id}/{tag_key_name}={tag_value_name}` - * 3. `{project_id}/{tag_key_name}={tag_value_name}` - * - * Generated from protobuf field map tags = 1; - * @return \Google\Protobuf\Internal\MapField - */ - public function getTags() - { - return $this->tags; - } - - /** - * TagKeyValue must be in one of the following formats ([KEY]=[VALUE]) - * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}` - * 2. `{org_id}/{tag_key_name}={tag_value_name}` - * 3. `{project_id}/{tag_key_name}={tag_value_name}` - * - * Generated from protobuf field map tags = 1; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig.php deleted file mode 100644 index b29b99b6d250..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig.php +++ /dev/null @@ -1,159 +0,0 @@ -google.container.v1.ResourceUsageExportConfig - */ -class ResourceUsageExportConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Configuration to use BigQuery as usage export destination. - * - * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - */ - protected $bigquery_destination = null; - /** - * Whether to enable network egress metering for this cluster. If enabled, a - * daemonset will be created in the cluster to meter network egress traffic. - * - * Generated from protobuf field bool enable_network_egress_metering = 2; - */ - protected $enable_network_egress_metering = false; - /** - * Configuration to enable resource consumption metering. - * - * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - */ - protected $consumption_metering_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\ResourceUsageExportConfig\BigQueryDestination $bigquery_destination - * Configuration to use BigQuery as usage export destination. - * @type bool $enable_network_egress_metering - * Whether to enable network egress metering for this cluster. If enabled, a - * daemonset will be created in the cluster to meter network egress traffic. - * @type \Google\Cloud\Container\V1\ResourceUsageExportConfig\ConsumptionMeteringConfig $consumption_metering_config - * Configuration to enable resource consumption metering. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Configuration to use BigQuery as usage export destination. - * - * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * @return \Google\Cloud\Container\V1\ResourceUsageExportConfig\BigQueryDestination|null - */ - public function getBigqueryDestination() - { - return $this->bigquery_destination; - } - - public function hasBigqueryDestination() - { - return isset($this->bigquery_destination); - } - - public function clearBigqueryDestination() - { - unset($this->bigquery_destination); - } - - /** - * Configuration to use BigQuery as usage export destination. - * - * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * @param \Google\Cloud\Container\V1\ResourceUsageExportConfig\BigQueryDestination $var - * @return $this - */ - public function setBigqueryDestination($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ResourceUsageExportConfig\BigQueryDestination::class); - $this->bigquery_destination = $var; - - return $this; - } - - /** - * Whether to enable network egress metering for this cluster. If enabled, a - * daemonset will be created in the cluster to meter network egress traffic. - * - * Generated from protobuf field bool enable_network_egress_metering = 2; - * @return bool - */ - public function getEnableNetworkEgressMetering() - { - return $this->enable_network_egress_metering; - } - - /** - * Whether to enable network egress metering for this cluster. If enabled, a - * daemonset will be created in the cluster to meter network egress traffic. - * - * Generated from protobuf field bool enable_network_egress_metering = 2; - * @param bool $var - * @return $this - */ - public function setEnableNetworkEgressMetering($var) - { - GPBUtil::checkBool($var); - $this->enable_network_egress_metering = $var; - - return $this; - } - - /** - * Configuration to enable resource consumption metering. - * - * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * @return \Google\Cloud\Container\V1\ResourceUsageExportConfig\ConsumptionMeteringConfig|null - */ - public function getConsumptionMeteringConfig() - { - return $this->consumption_metering_config; - } - - public function hasConsumptionMeteringConfig() - { - return isset($this->consumption_metering_config); - } - - public function clearConsumptionMeteringConfig() - { - unset($this->consumption_metering_config); - } - - /** - * Configuration to enable resource consumption metering. - * - * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * @param \Google\Cloud\Container\V1\ResourceUsageExportConfig\ConsumptionMeteringConfig $var - * @return $this - */ - public function setConsumptionMeteringConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ResourceUsageExportConfig\ConsumptionMeteringConfig::class); - $this->consumption_metering_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig/BigQueryDestination.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig/BigQueryDestination.php deleted file mode 100644 index 8ab2f49d58dd..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig/BigQueryDestination.php +++ /dev/null @@ -1,70 +0,0 @@ -google.container.v1.ResourceUsageExportConfig.BigQueryDestination - */ -class BigQueryDestination extends \Google\Protobuf\Internal\Message -{ - /** - * The ID of a BigQuery Dataset. - * - * Generated from protobuf field string dataset_id = 1; - */ - protected $dataset_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dataset_id - * The ID of a BigQuery Dataset. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The ID of a BigQuery Dataset. - * - * Generated from protobuf field string dataset_id = 1; - * @return string - */ - public function getDatasetId() - { - return $this->dataset_id; - } - - /** - * The ID of a BigQuery Dataset. - * - * Generated from protobuf field string dataset_id = 1; - * @param string $var - * @return $this - */ - public function setDatasetId($var) - { - GPBUtil::checkString($var, True); - $this->dataset_id = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(BigQueryDestination::class, \Google\Cloud\Container\V1\ResourceUsageExportConfig_BigQueryDestination::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig/ConsumptionMeteringConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig/ConsumptionMeteringConfig.php deleted file mode 100644 index 9f574500466f..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig/ConsumptionMeteringConfig.php +++ /dev/null @@ -1,78 +0,0 @@ -google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - */ -class ConsumptionMeteringConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether to enable consumption metering for this cluster. If enabled, a - * second BigQuery table will be created to hold resource consumption - * records. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether to enable consumption metering for this cluster. If enabled, a - * second BigQuery table will be created to hold resource consumption - * records. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether to enable consumption metering for this cluster. If enabled, a - * second BigQuery table will be created to hold resource consumption - * records. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether to enable consumption metering for this cluster. If enabled, a - * second BigQuery table will be created to hold resource consumption - * records. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ConsumptionMeteringConfig::class, \Google\Cloud\Container\V1\ResourceUsageExportConfig_ConsumptionMeteringConfig::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RollbackNodePoolUpgradeRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RollbackNodePoolUpgradeRequest.php deleted file mode 100644 index abae3fefbdc5..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RollbackNodePoolUpgradeRequest.php +++ /dev/null @@ -1,340 +0,0 @@ -google.container.v1.RollbackNodePoolUpgradeRequest - */ -class RollbackNodePoolUpgradeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to rollback. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Deprecated. The name of the node pool to rollback. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @deprecated - */ - protected $node_pool_id = ''; - /** - * The name (project, location, cluster, node pool id) of the node poll to - * rollback upgrade. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 6; - */ - protected $name = ''; - /** - * Option for rollback to ignore the PodDisruptionBudget. - * Default value is false. - * - * Generated from protobuf field bool respect_pdb = 7; - */ - protected $respect_pdb = false; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @param string $clusterId Deprecated. The name of the cluster to rollback. - * This field has been deprecated and replaced by the name field. - * @param string $nodePoolId Deprecated. The name of the node pool to rollback. - * This field has been deprecated and replaced by the name field. - * - * @return \Google\Cloud\Container\V1\RollbackNodePoolUpgradeRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $clusterId, string $nodePoolId): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId) - ->setNodePoolId($nodePoolId); - } - - /** - * @param string $name The name (project, location, cluster, node pool id) of the node poll to - * rollback upgrade. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * - * @return \Google\Cloud\Container\V1\RollbackNodePoolUpgradeRequest - * - * @experimental - */ - public static function buildFromName(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to rollback. - * This field has been deprecated and replaced by the name field. - * @type string $node_pool_id - * Deprecated. The name of the node pool to rollback. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster, node pool id) of the node poll to - * rollback upgrade. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * @type bool $respect_pdb - * Option for rollback to ignore the PodDisruptionBudget. - * Default value is false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to rollback. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to rollback. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the node pool to rollback. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @return string - * @deprecated - */ - public function getNodePoolId() - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - return $this->node_pool_id; - } - - /** - * Deprecated. The name of the node pool to rollback. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setNodePoolId($var) - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->node_pool_id = $var; - - return $this; - } - - /** - * The name (project, location, cluster, node pool id) of the node poll to - * rollback upgrade. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 6; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster, node pool id) of the node poll to - * rollback upgrade. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 6; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Option for rollback to ignore the PodDisruptionBudget. - * Default value is false. - * - * Generated from protobuf field bool respect_pdb = 7; - * @return bool - */ - public function getRespectPdb() - { - return $this->respect_pdb; - } - - /** - * Option for rollback to ignore the PodDisruptionBudget. - * Default value is false. - * - * Generated from protobuf field bool respect_pdb = 7; - * @param bool $var - * @return $this - */ - public function setRespectPdb($var) - { - GPBUtil::checkBool($var); - $this->respect_pdb = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig.php deleted file mode 100644 index edad92dc8d78..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.SandboxConfig - */ -class SandboxConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Type of the sandbox to use for the node. - * - * Generated from protobuf field .google.container.v1.SandboxConfig.Type type = 2; - */ - protected $type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * Type of the sandbox to use for the node. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Type of the sandbox to use for the node. - * - * Generated from protobuf field .google.container.v1.SandboxConfig.Type type = 2; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Type of the sandbox to use for the node. - * - * Generated from protobuf field .google.container.v1.SandboxConfig.Type type = 2; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\SandboxConfig\Type::class); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig/Type.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig/Type.php deleted file mode 100644 index 824af0ee6238..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig/Type.php +++ /dev/null @@ -1,57 +0,0 @@ -google.container.v1.SandboxConfig.Type - */ -class Type -{ - /** - * Default value. This should not be used. - * - * Generated from protobuf enum UNSPECIFIED = 0; - */ - const UNSPECIFIED = 0; - /** - * Run sandbox using gvisor. - * - * Generated from protobuf enum GVISOR = 1; - */ - const GVISOR = 1; - - private static $valueToName = [ - self::UNSPECIFIED => 'UNSPECIFIED', - self::GVISOR => 'GVISOR', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Type::class, \Google\Cloud\Container\V1\SandboxConfig_Type::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecondaryBootDisk.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecondaryBootDisk.php deleted file mode 100644 index 39efd4ea402a..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecondaryBootDisk.php +++ /dev/null @@ -1,102 +0,0 @@ -google.container.v1.SecondaryBootDisk - */ -class SecondaryBootDisk extends \Google\Protobuf\Internal\Message -{ - /** - * Disk mode (container image cache, etc.) - * - * Generated from protobuf field .google.container.v1.SecondaryBootDisk.Mode mode = 1; - */ - protected $mode = 0; - /** - * Fully-qualified resource ID for an existing disk image. - * - * Generated from protobuf field string disk_image = 2; - */ - protected $disk_image = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $mode - * Disk mode (container image cache, etc.) - * @type string $disk_image - * Fully-qualified resource ID for an existing disk image. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Disk mode (container image cache, etc.) - * - * Generated from protobuf field .google.container.v1.SecondaryBootDisk.Mode mode = 1; - * @return int - */ - public function getMode() - { - return $this->mode; - } - - /** - * Disk mode (container image cache, etc.) - * - * Generated from protobuf field .google.container.v1.SecondaryBootDisk.Mode mode = 1; - * @param int $var - * @return $this - */ - public function setMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\SecondaryBootDisk\Mode::class); - $this->mode = $var; - - return $this; - } - - /** - * Fully-qualified resource ID for an existing disk image. - * - * Generated from protobuf field string disk_image = 2; - * @return string - */ - public function getDiskImage() - { - return $this->disk_image; - } - - /** - * Fully-qualified resource ID for an existing disk image. - * - * Generated from protobuf field string disk_image = 2; - * @param string $var - * @return $this - */ - public function setDiskImage($var) - { - GPBUtil::checkString($var, True); - $this->disk_image = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecondaryBootDisk/Mode.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecondaryBootDisk/Mode.php deleted file mode 100644 index 86e73c36a945..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecondaryBootDisk/Mode.php +++ /dev/null @@ -1,59 +0,0 @@ -google.container.v1.SecondaryBootDisk.Mode - */ -class Mode -{ - /** - * MODE_UNSPECIFIED is when mode is not set. - * - * Generated from protobuf enum MODE_UNSPECIFIED = 0; - */ - const MODE_UNSPECIFIED = 0; - /** - * CONTAINER_IMAGE_CACHE is for using the secondary boot disk as - * a container image cache. - * - * Generated from protobuf enum CONTAINER_IMAGE_CACHE = 1; - */ - const CONTAINER_IMAGE_CACHE = 1; - - private static $valueToName = [ - self::MODE_UNSPECIFIED => 'MODE_UNSPECIFIED', - self::CONTAINER_IMAGE_CACHE => 'CONTAINER_IMAGE_CACHE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Mode::class, \Google\Cloud\Container\V1\SecondaryBootDisk_Mode::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecondaryBootDiskUpdateStrategy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecondaryBootDiskUpdateStrategy.php deleted file mode 100644 index 0bd62853b10d..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecondaryBootDiskUpdateStrategy.php +++ /dev/null @@ -1,34 +0,0 @@ -google.container.v1.SecondaryBootDiskUpdateStrategy - */ -class SecondaryBootDiskUpdateStrategy extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityBulletinEvent.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityBulletinEvent.php deleted file mode 100644 index b20c6257342d..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityBulletinEvent.php +++ /dev/null @@ -1,406 +0,0 @@ -google.container.v1.SecurityBulletinEvent - */ -class SecurityBulletinEvent extends \Google\Protobuf\Internal\Message -{ - /** - * The resource type (node/control plane) that has the vulnerability. Multiple - * notifications (1 notification per resource type) will be sent for a - * vulnerability that affects > 1 resource type. - * - * Generated from protobuf field string resource_type_affected = 1; - */ - protected $resource_type_affected = ''; - /** - * The ID of the bulletin corresponding to the vulnerability. - * - * Generated from protobuf field string bulletin_id = 2; - */ - protected $bulletin_id = ''; - /** - * The CVEs associated with this bulletin. - * - * Generated from protobuf field repeated string cve_ids = 3; - */ - private $cve_ids; - /** - * The severity of this bulletin as it relates to GKE. - * - * Generated from protobuf field string severity = 4; - */ - protected $severity = ''; - /** - * The URI link to the bulletin on the website for more information. - * - * Generated from protobuf field string bulletin_uri = 5; - */ - protected $bulletin_uri = ''; - /** - * A brief description of the bulletin. See the bulletin pointed to by the - * bulletin_uri field for an expanded description. - * - * Generated from protobuf field string brief_description = 6; - */ - protected $brief_description = ''; - /** - * The GKE minor versions affected by this vulnerability. - * - * Generated from protobuf field repeated string affected_supported_minors = 7; - */ - private $affected_supported_minors; - /** - * The GKE versions where this vulnerability is patched. - * - * Generated from protobuf field repeated string patched_versions = 8; - */ - private $patched_versions; - /** - * This represents a version selected from the patched_versions field that - * the cluster receiving this notification should most likely want to upgrade - * to based on its current version. Note that if this notification is being - * received by a given cluster, it means that this version is currently - * available as an upgrade target in that cluster's location. - * - * Generated from protobuf field string suggested_upgrade_target = 9; - */ - protected $suggested_upgrade_target = ''; - /** - * If this field is specified, it means there are manual steps that the user - * must take to make their clusters safe. - * - * Generated from protobuf field bool manual_steps_required = 10; - */ - protected $manual_steps_required = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $resource_type_affected - * The resource type (node/control plane) that has the vulnerability. Multiple - * notifications (1 notification per resource type) will be sent for a - * vulnerability that affects > 1 resource type. - * @type string $bulletin_id - * The ID of the bulletin corresponding to the vulnerability. - * @type array|\Google\Protobuf\Internal\RepeatedField $cve_ids - * The CVEs associated with this bulletin. - * @type string $severity - * The severity of this bulletin as it relates to GKE. - * @type string $bulletin_uri - * The URI link to the bulletin on the website for more information. - * @type string $brief_description - * A brief description of the bulletin. See the bulletin pointed to by the - * bulletin_uri field for an expanded description. - * @type array|\Google\Protobuf\Internal\RepeatedField $affected_supported_minors - * The GKE minor versions affected by this vulnerability. - * @type array|\Google\Protobuf\Internal\RepeatedField $patched_versions - * The GKE versions where this vulnerability is patched. - * @type string $suggested_upgrade_target - * This represents a version selected from the patched_versions field that - * the cluster receiving this notification should most likely want to upgrade - * to based on its current version. Note that if this notification is being - * received by a given cluster, it means that this version is currently - * available as an upgrade target in that cluster's location. - * @type bool $manual_steps_required - * If this field is specified, it means there are manual steps that the user - * must take to make their clusters safe. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The resource type (node/control plane) that has the vulnerability. Multiple - * notifications (1 notification per resource type) will be sent for a - * vulnerability that affects > 1 resource type. - * - * Generated from protobuf field string resource_type_affected = 1; - * @return string - */ - public function getResourceTypeAffected() - { - return $this->resource_type_affected; - } - - /** - * The resource type (node/control plane) that has the vulnerability. Multiple - * notifications (1 notification per resource type) will be sent for a - * vulnerability that affects > 1 resource type. - * - * Generated from protobuf field string resource_type_affected = 1; - * @param string $var - * @return $this - */ - public function setResourceTypeAffected($var) - { - GPBUtil::checkString($var, True); - $this->resource_type_affected = $var; - - return $this; - } - - /** - * The ID of the bulletin corresponding to the vulnerability. - * - * Generated from protobuf field string bulletin_id = 2; - * @return string - */ - public function getBulletinId() - { - return $this->bulletin_id; - } - - /** - * The ID of the bulletin corresponding to the vulnerability. - * - * Generated from protobuf field string bulletin_id = 2; - * @param string $var - * @return $this - */ - public function setBulletinId($var) - { - GPBUtil::checkString($var, True); - $this->bulletin_id = $var; - - return $this; - } - - /** - * The CVEs associated with this bulletin. - * - * Generated from protobuf field repeated string cve_ids = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCveIds() - { - return $this->cve_ids; - } - - /** - * The CVEs associated with this bulletin. - * - * Generated from protobuf field repeated string cve_ids = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCveIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->cve_ids = $arr; - - return $this; - } - - /** - * The severity of this bulletin as it relates to GKE. - * - * Generated from protobuf field string severity = 4; - * @return string - */ - public function getSeverity() - { - return $this->severity; - } - - /** - * The severity of this bulletin as it relates to GKE. - * - * Generated from protobuf field string severity = 4; - * @param string $var - * @return $this - */ - public function setSeverity($var) - { - GPBUtil::checkString($var, True); - $this->severity = $var; - - return $this; - } - - /** - * The URI link to the bulletin on the website for more information. - * - * Generated from protobuf field string bulletin_uri = 5; - * @return string - */ - public function getBulletinUri() - { - return $this->bulletin_uri; - } - - /** - * The URI link to the bulletin on the website for more information. - * - * Generated from protobuf field string bulletin_uri = 5; - * @param string $var - * @return $this - */ - public function setBulletinUri($var) - { - GPBUtil::checkString($var, True); - $this->bulletin_uri = $var; - - return $this; - } - - /** - * A brief description of the bulletin. See the bulletin pointed to by the - * bulletin_uri field for an expanded description. - * - * Generated from protobuf field string brief_description = 6; - * @return string - */ - public function getBriefDescription() - { - return $this->brief_description; - } - - /** - * A brief description of the bulletin. See the bulletin pointed to by the - * bulletin_uri field for an expanded description. - * - * Generated from protobuf field string brief_description = 6; - * @param string $var - * @return $this - */ - public function setBriefDescription($var) - { - GPBUtil::checkString($var, True); - $this->brief_description = $var; - - return $this; - } - - /** - * The GKE minor versions affected by this vulnerability. - * - * Generated from protobuf field repeated string affected_supported_minors = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAffectedSupportedMinors() - { - return $this->affected_supported_minors; - } - - /** - * The GKE minor versions affected by this vulnerability. - * - * Generated from protobuf field repeated string affected_supported_minors = 7; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAffectedSupportedMinors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->affected_supported_minors = $arr; - - return $this; - } - - /** - * The GKE versions where this vulnerability is patched. - * - * Generated from protobuf field repeated string patched_versions = 8; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPatchedVersions() - { - return $this->patched_versions; - } - - /** - * The GKE versions where this vulnerability is patched. - * - * Generated from protobuf field repeated string patched_versions = 8; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPatchedVersions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->patched_versions = $arr; - - return $this; - } - - /** - * This represents a version selected from the patched_versions field that - * the cluster receiving this notification should most likely want to upgrade - * to based on its current version. Note that if this notification is being - * received by a given cluster, it means that this version is currently - * available as an upgrade target in that cluster's location. - * - * Generated from protobuf field string suggested_upgrade_target = 9; - * @return string - */ - public function getSuggestedUpgradeTarget() - { - return $this->suggested_upgrade_target; - } - - /** - * This represents a version selected from the patched_versions field that - * the cluster receiving this notification should most likely want to upgrade - * to based on its current version. Note that if this notification is being - * received by a given cluster, it means that this version is currently - * available as an upgrade target in that cluster's location. - * - * Generated from protobuf field string suggested_upgrade_target = 9; - * @param string $var - * @return $this - */ - public function setSuggestedUpgradeTarget($var) - { - GPBUtil::checkString($var, True); - $this->suggested_upgrade_target = $var; - - return $this; - } - - /** - * If this field is specified, it means there are manual steps that the user - * must take to make their clusters safe. - * - * Generated from protobuf field bool manual_steps_required = 10; - * @return bool - */ - public function getManualStepsRequired() - { - return $this->manual_steps_required; - } - - /** - * If this field is specified, it means there are manual steps that the user - * must take to make their clusters safe. - * - * Generated from protobuf field bool manual_steps_required = 10; - * @param bool $var - * @return $this - */ - public function setManualStepsRequired($var) - { - GPBUtil::checkBool($var); - $this->manual_steps_required = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityPostureConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityPostureConfig.php deleted file mode 100644 index 794357bdce1b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityPostureConfig.php +++ /dev/null @@ -1,122 +0,0 @@ -google.container.v1.SecurityPostureConfig - */ -class SecurityPostureConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Sets which mode to use for Security Posture features. - * - * Generated from protobuf field optional .google.container.v1.SecurityPostureConfig.Mode mode = 1; - */ - protected $mode = null; - /** - * Sets which mode to use for vulnerability scanning. - * - * Generated from protobuf field optional .google.container.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; - */ - protected $vulnerability_mode = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $mode - * Sets which mode to use for Security Posture features. - * @type int $vulnerability_mode - * Sets which mode to use for vulnerability scanning. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Sets which mode to use for Security Posture features. - * - * Generated from protobuf field optional .google.container.v1.SecurityPostureConfig.Mode mode = 1; - * @return int - */ - public function getMode() - { - return isset($this->mode) ? $this->mode : 0; - } - - public function hasMode() - { - return isset($this->mode); - } - - public function clearMode() - { - unset($this->mode); - } - - /** - * Sets which mode to use for Security Posture features. - * - * Generated from protobuf field optional .google.container.v1.SecurityPostureConfig.Mode mode = 1; - * @param int $var - * @return $this - */ - public function setMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\SecurityPostureConfig\Mode::class); - $this->mode = $var; - - return $this; - } - - /** - * Sets which mode to use for vulnerability scanning. - * - * Generated from protobuf field optional .google.container.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; - * @return int - */ - public function getVulnerabilityMode() - { - return isset($this->vulnerability_mode) ? $this->vulnerability_mode : 0; - } - - public function hasVulnerabilityMode() - { - return isset($this->vulnerability_mode); - } - - public function clearVulnerabilityMode() - { - unset($this->vulnerability_mode); - } - - /** - * Sets which mode to use for vulnerability scanning. - * - * Generated from protobuf field optional .google.container.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; - * @param int $var - * @return $this - */ - public function setVulnerabilityMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\SecurityPostureConfig\VulnerabilityMode::class); - $this->vulnerability_mode = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityPostureConfig/Mode.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityPostureConfig/Mode.php deleted file mode 100644 index 4175f3bae536..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityPostureConfig/Mode.php +++ /dev/null @@ -1,64 +0,0 @@ -google.container.v1.SecurityPostureConfig.Mode - */ -class Mode -{ - /** - * Default value not specified. - * - * Generated from protobuf enum MODE_UNSPECIFIED = 0; - */ - const MODE_UNSPECIFIED = 0; - /** - * Disables Security Posture features on the cluster. - * - * Generated from protobuf enum DISABLED = 1; - */ - const DISABLED = 1; - /** - * Applies Security Posture features on the cluster. - * - * Generated from protobuf enum BASIC = 2; - */ - const BASIC = 2; - - private static $valueToName = [ - self::MODE_UNSPECIFIED => 'MODE_UNSPECIFIED', - self::DISABLED => 'DISABLED', - self::BASIC => 'BASIC', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Mode::class, \Google\Cloud\Container\V1\SecurityPostureConfig_Mode::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityPostureConfig/VulnerabilityMode.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityPostureConfig/VulnerabilityMode.php deleted file mode 100644 index 63b7ef9e06e2..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityPostureConfig/VulnerabilityMode.php +++ /dev/null @@ -1,72 +0,0 @@ -google.container.v1.SecurityPostureConfig.VulnerabilityMode - */ -class VulnerabilityMode -{ - /** - * Default value not specified. - * - * Generated from protobuf enum VULNERABILITY_MODE_UNSPECIFIED = 0; - */ - const VULNERABILITY_MODE_UNSPECIFIED = 0; - /** - * Disables vulnerability scanning on the cluster. - * - * Generated from protobuf enum VULNERABILITY_DISABLED = 1; - */ - const VULNERABILITY_DISABLED = 1; - /** - * Applies basic vulnerability scanning on the cluster. - * - * Generated from protobuf enum VULNERABILITY_BASIC = 2; - */ - const VULNERABILITY_BASIC = 2; - /** - * Applies the Security Posture's vulnerability on cluster Enterprise level - * features. - * - * Generated from protobuf enum VULNERABILITY_ENTERPRISE = 3; - */ - const VULNERABILITY_ENTERPRISE = 3; - - private static $valueToName = [ - self::VULNERABILITY_MODE_UNSPECIFIED => 'VULNERABILITY_MODE_UNSPECIFIED', - self::VULNERABILITY_DISABLED => 'VULNERABILITY_DISABLED', - self::VULNERABILITY_BASIC => 'VULNERABILITY_BASIC', - self::VULNERABILITY_ENTERPRISE => 'VULNERABILITY_ENTERPRISE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(VulnerabilityMode::class, \Google\Cloud\Container\V1\SecurityPostureConfig_VulnerabilityMode::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig.php deleted file mode 100644 index 939a53c55648..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig.php +++ /dev/null @@ -1,237 +0,0 @@ -google.container.v1.ServerConfig - */ -class ServerConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Version of Kubernetes the service deploys by default. - * - * Generated from protobuf field string default_cluster_version = 1; - */ - protected $default_cluster_version = ''; - /** - * List of valid node upgrade target versions, in descending order. - * - * Generated from protobuf field repeated string valid_node_versions = 3; - */ - private $valid_node_versions; - /** - * Default image type. - * - * Generated from protobuf field string default_image_type = 4; - */ - protected $default_image_type = ''; - /** - * List of valid image types. - * - * Generated from protobuf field repeated string valid_image_types = 5; - */ - private $valid_image_types; - /** - * List of valid master versions, in descending order. - * - * Generated from protobuf field repeated string valid_master_versions = 6; - */ - private $valid_master_versions; - /** - * List of release channel configurations. - * - * Generated from protobuf field repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - private $channels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $default_cluster_version - * Version of Kubernetes the service deploys by default. - * @type array|\Google\Protobuf\Internal\RepeatedField $valid_node_versions - * List of valid node upgrade target versions, in descending order. - * @type string $default_image_type - * Default image type. - * @type array|\Google\Protobuf\Internal\RepeatedField $valid_image_types - * List of valid image types. - * @type array|\Google\Protobuf\Internal\RepeatedField $valid_master_versions - * List of valid master versions, in descending order. - * @type array<\Google\Cloud\Container\V1\ServerConfig\ReleaseChannelConfig>|\Google\Protobuf\Internal\RepeatedField $channels - * List of release channel configurations. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Version of Kubernetes the service deploys by default. - * - * Generated from protobuf field string default_cluster_version = 1; - * @return string - */ - public function getDefaultClusterVersion() - { - return $this->default_cluster_version; - } - - /** - * Version of Kubernetes the service deploys by default. - * - * Generated from protobuf field string default_cluster_version = 1; - * @param string $var - * @return $this - */ - public function setDefaultClusterVersion($var) - { - GPBUtil::checkString($var, True); - $this->default_cluster_version = $var; - - return $this; - } - - /** - * List of valid node upgrade target versions, in descending order. - * - * Generated from protobuf field repeated string valid_node_versions = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValidNodeVersions() - { - return $this->valid_node_versions; - } - - /** - * List of valid node upgrade target versions, in descending order. - * - * Generated from protobuf field repeated string valid_node_versions = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValidNodeVersions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->valid_node_versions = $arr; - - return $this; - } - - /** - * Default image type. - * - * Generated from protobuf field string default_image_type = 4; - * @return string - */ - public function getDefaultImageType() - { - return $this->default_image_type; - } - - /** - * Default image type. - * - * Generated from protobuf field string default_image_type = 4; - * @param string $var - * @return $this - */ - public function setDefaultImageType($var) - { - GPBUtil::checkString($var, True); - $this->default_image_type = $var; - - return $this; - } - - /** - * List of valid image types. - * - * Generated from protobuf field repeated string valid_image_types = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValidImageTypes() - { - return $this->valid_image_types; - } - - /** - * List of valid image types. - * - * Generated from protobuf field repeated string valid_image_types = 5; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValidImageTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->valid_image_types = $arr; - - return $this; - } - - /** - * List of valid master versions, in descending order. - * - * Generated from protobuf field repeated string valid_master_versions = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValidMasterVersions() - { - return $this->valid_master_versions; - } - - /** - * List of valid master versions, in descending order. - * - * Generated from protobuf field repeated string valid_master_versions = 6; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValidMasterVersions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->valid_master_versions = $arr; - - return $this; - } - - /** - * List of release channel configurations. - * - * Generated from protobuf field repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getChannels() - { - return $this->channels; - } - - /** - * List of release channel configurations. - * - * Generated from protobuf field repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - * @param array<\Google\Cloud\Container\V1\ServerConfig\ReleaseChannelConfig>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setChannels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\ServerConfig\ReleaseChannelConfig::class); - $this->channels = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig/ReleaseChannelConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig/ReleaseChannelConfig.php deleted file mode 100644 index e363702da1e6..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig/ReleaseChannelConfig.php +++ /dev/null @@ -1,138 +0,0 @@ -google.container.v1.ServerConfig.ReleaseChannelConfig - */ -class ReleaseChannelConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The release channel this configuration applies to. - * - * Generated from protobuf field .google.container.v1.ReleaseChannel.Channel channel = 1; - */ - protected $channel = 0; - /** - * The default version for newly created clusters on the channel. - * - * Generated from protobuf field string default_version = 2; - */ - protected $default_version = ''; - /** - * List of valid versions for the channel. - * - * Generated from protobuf field repeated string valid_versions = 4; - */ - private $valid_versions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $channel - * The release channel this configuration applies to. - * @type string $default_version - * The default version for newly created clusters on the channel. - * @type array|\Google\Protobuf\Internal\RepeatedField $valid_versions - * List of valid versions for the channel. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The release channel this configuration applies to. - * - * Generated from protobuf field .google.container.v1.ReleaseChannel.Channel channel = 1; - * @return int - */ - public function getChannel() - { - return $this->channel; - } - - /** - * The release channel this configuration applies to. - * - * Generated from protobuf field .google.container.v1.ReleaseChannel.Channel channel = 1; - * @param int $var - * @return $this - */ - public function setChannel($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\ReleaseChannel\Channel::class); - $this->channel = $var; - - return $this; - } - - /** - * The default version for newly created clusters on the channel. - * - * Generated from protobuf field string default_version = 2; - * @return string - */ - public function getDefaultVersion() - { - return $this->default_version; - } - - /** - * The default version for newly created clusters on the channel. - * - * Generated from protobuf field string default_version = 2; - * @param string $var - * @return $this - */ - public function setDefaultVersion($var) - { - GPBUtil::checkString($var, True); - $this->default_version = $var; - - return $this; - } - - /** - * List of valid versions for the channel. - * - * Generated from protobuf field repeated string valid_versions = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValidVersions() - { - return $this->valid_versions; - } - - /** - * List of valid versions for the channel. - * - * Generated from protobuf field repeated string valid_versions = 4; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValidVersions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->valid_versions = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ReleaseChannelConfig::class, \Google\Cloud\Container\V1\ServerConfig_ReleaseChannelConfig::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServiceExternalIPsConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServiceExternalIPsConfig.php deleted file mode 100644 index df111e30817a..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServiceExternalIPsConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.ServiceExternalIPsConfig - */ -class ServiceExternalIPsConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether Services with ExternalIPs field are allowed or not. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether Services with ExternalIPs field are allowed or not. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether Services with ExternalIPs field are allowed or not. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether Services with ExternalIPs field are allowed or not. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetAddonsConfigRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetAddonsConfigRequest.php deleted file mode 100644 index a2cc02f69958..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetAddonsConfigRequest.php +++ /dev/null @@ -1,303 +0,0 @@ -google.container.v1.SetAddonsConfigRequest - */ -class SetAddonsConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Required. The desired configurations for the various addons available to - * run in the cluster. - * - * Generated from protobuf field .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $addons_config = null; - /** - * The name (project, location, cluster) of the cluster to set addons. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - */ - protected $name = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @param string $clusterId Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @param \Google\Cloud\Container\V1\AddonsConfig $addonsConfig Required. The desired configurations for the various addons available to - * run in the cluster. - * - * @return \Google\Cloud\Container\V1\SetAddonsConfigRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $clusterId, \Google\Cloud\Container\V1\AddonsConfig $addonsConfig): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId) - ->setAddonsConfig($addonsConfig); - } - - /** - * @param string $name The name (project, location, cluster) of the cluster to set addons. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @param \Google\Cloud\Container\V1\AddonsConfig $addonsConfig Required. The desired configurations for the various addons available to - * run in the cluster. - * - * @return \Google\Cloud\Container\V1\SetAddonsConfigRequest - * - * @experimental - */ - public static function buildFromNameAddonsConfig(string $name, \Google\Cloud\Container\V1\AddonsConfig $addonsConfig): self - { - return (new self()) - ->setName($name) - ->setAddonsConfig($addonsConfig); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type \Google\Cloud\Container\V1\AddonsConfig $addons_config - * Required. The desired configurations for the various addons available to - * run in the cluster. - * @type string $name - * The name (project, location, cluster) of the cluster to set addons. - * Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. The desired configurations for the various addons available to - * run in the cluster. - * - * Generated from protobuf field .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Container\V1\AddonsConfig|null - */ - public function getAddonsConfig() - { - return $this->addons_config; - } - - public function hasAddonsConfig() - { - return isset($this->addons_config); - } - - public function clearAddonsConfig() - { - unset($this->addons_config); - } - - /** - * Required. The desired configurations for the various addons available to - * run in the cluster. - * - * Generated from protobuf field .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Container\V1\AddonsConfig $var - * @return $this - */ - public function setAddonsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AddonsConfig::class); - $this->addons_config = $var; - - return $this; - } - - /** - * The name (project, location, cluster) of the cluster to set addons. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster) of the cluster to set addons. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLabelsRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLabelsRequest.php deleted file mode 100644 index 32b166e06b98..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLabelsRequest.php +++ /dev/null @@ -1,302 +0,0 @@ -google.container.v1.SetLabelsRequest - */ -class SetLabelsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Required. The labels to set for that cluster. - * - * Generated from protobuf field map resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - private $resource_labels; - /** - * Required. The fingerprint of the previous set of labels for this resource, - * used to detect conflicts. The fingerprint is initially generated by - * Kubernetes Engine and changes after every request to modify or update - * labels. You must always provide an up-to-date fingerprint hash when - * updating or changing labels. Make a `get()` request to the - * resource to get the latest fingerprint. - * - * Generated from protobuf field string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $label_fingerprint = ''; - /** - * The name (project, location, cluster name) of the cluster to set labels. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 7; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @type array|\Google\Protobuf\Internal\MapField $resource_labels - * Required. The labels to set for that cluster. - * @type string $label_fingerprint - * Required. The fingerprint of the previous set of labels for this resource, - * used to detect conflicts. The fingerprint is initially generated by - * Kubernetes Engine and changes after every request to modify or update - * labels. You must always provide an up-to-date fingerprint hash when - * updating or changing labels. Make a `get()` request to the - * resource to get the latest fingerprint. - * @type string $name - * The name (project, location, cluster name) of the cluster to set labels. - * Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. The labels to set for that cluster. - * - * Generated from protobuf field map resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getResourceLabels() - { - return $this->resource_labels; - } - - /** - * Required. The labels to set for that cluster. - * - * Generated from protobuf field map resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setResourceLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->resource_labels = $arr; - - return $this; - } - - /** - * Required. The fingerprint of the previous set of labels for this resource, - * used to detect conflicts. The fingerprint is initially generated by - * Kubernetes Engine and changes after every request to modify or update - * labels. You must always provide an up-to-date fingerprint hash when - * updating or changing labels. Make a `get()` request to the - * resource to get the latest fingerprint. - * - * Generated from protobuf field string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getLabelFingerprint() - { - return $this->label_fingerprint; - } - - /** - * Required. The fingerprint of the previous set of labels for this resource, - * used to detect conflicts. The fingerprint is initially generated by - * Kubernetes Engine and changes after every request to modify or update - * labels. You must always provide an up-to-date fingerprint hash when - * updating or changing labels. Make a `get()` request to the - * resource to get the latest fingerprint. - * - * Generated from protobuf field string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setLabelFingerprint($var) - { - GPBUtil::checkString($var, True); - $this->label_fingerprint = $var; - - return $this; - } - - /** - * The name (project, location, cluster name) of the cluster to set labels. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 7; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster name) of the cluster to set labels. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 7; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLegacyAbacRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLegacyAbacRequest.php deleted file mode 100644 index 386080c473d9..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLegacyAbacRequest.php +++ /dev/null @@ -1,288 +0,0 @@ -google.container.v1.SetLegacyAbacRequest - */ -class SetLegacyAbacRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Required. Whether ABAC authorization will be enabled in the cluster. - * - * Generated from protobuf field bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $enabled = false; - /** - * The name (project, location, cluster name) of the cluster to set legacy - * abac. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - */ - protected $name = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @param string $clusterId Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * @param bool $enabled Required. Whether ABAC authorization will be enabled in the cluster. - * - * @return \Google\Cloud\Container\V1\SetLegacyAbacRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $clusterId, bool $enabled): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId) - ->setEnabled($enabled); - } - - /** - * @param string $name The name (project, location, cluster name) of the cluster to set legacy - * abac. Specified in the format `projects/*/locations/*/clusters/*`. - * @param bool $enabled Required. Whether ABAC authorization will be enabled in the cluster. - * - * @return \Google\Cloud\Container\V1\SetLegacyAbacRequest - * - * @experimental - */ - public static function buildFromNameEnabled(string $name, bool $enabled): self - { - return (new self()) - ->setName($name) - ->setEnabled($enabled); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * @type bool $enabled - * Required. Whether ABAC authorization will be enabled in the cluster. - * @type string $name - * The name (project, location, cluster name) of the cluster to set legacy - * abac. Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. Whether ABAC authorization will be enabled in the cluster. - * - * Generated from protobuf field bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Required. Whether ABAC authorization will be enabled in the cluster. - * - * Generated from protobuf field bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - - /** - * The name (project, location, cluster name) of the cluster to set legacy - * abac. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster name) of the cluster to set legacy - * abac. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLocationsRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLocationsRequest.php deleted file mode 100644 index 822fdfb7e552..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLocationsRequest.php +++ /dev/null @@ -1,319 +0,0 @@ -google.container.v1.SetLocationsRequest - */ -class SetLocationsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Required. The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. Changing the locations a cluster is in - * will result in nodes being either created or removed from the cluster, - * depending on whether locations are being added or removed. - * This list must always include the cluster's primary zone. - * - * Generated from protobuf field repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - private $locations; - /** - * The name (project, location, cluster) of the cluster to set locations. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - */ - protected $name = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @param string $clusterId Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @param string[] $locations Required. The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. Changing the locations a cluster is in - * will result in nodes being either created or removed from the cluster, - * depending on whether locations are being added or removed. - * - * This list must always include the cluster's primary zone. - * - * @return \Google\Cloud\Container\V1\SetLocationsRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $clusterId, array $locations): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId) - ->setLocations($locations); - } - - /** - * @param string $name The name (project, location, cluster) of the cluster to set locations. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @param string[] $locations Required. The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. Changing the locations a cluster is in - * will result in nodes being either created or removed from the cluster, - * depending on whether locations are being added or removed. - * - * This list must always include the cluster's primary zone. - * - * @return \Google\Cloud\Container\V1\SetLocationsRequest - * - * @experimental - */ - public static function buildFromNameLocations(string $name, array $locations): self - { - return (new self()) - ->setName($name) - ->setLocations($locations); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type array|\Google\Protobuf\Internal\RepeatedField $locations - * Required. The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. Changing the locations a cluster is in - * will result in nodes being either created or removed from the cluster, - * depending on whether locations are being added or removed. - * This list must always include the cluster's primary zone. - * @type string $name - * The name (project, location, cluster) of the cluster to set locations. - * Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. Changing the locations a cluster is in - * will result in nodes being either created or removed from the cluster, - * depending on whether locations are being added or removed. - * This list must always include the cluster's primary zone. - * - * Generated from protobuf field repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getLocations() - { - return $this->locations; - } - - /** - * Required. The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. Changing the locations a cluster is in - * will result in nodes being either created or removed from the cluster, - * depending on whether locations are being added or removed. - * This list must always include the cluster's primary zone. - * - * Generated from protobuf field repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->locations = $arr; - - return $this; - } - - /** - * The name (project, location, cluster) of the cluster to set locations. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster) of the cluster to set locations. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLoggingServiceRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLoggingServiceRequest.php deleted file mode 100644 index 66954003cb55..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLoggingServiceRequest.php +++ /dev/null @@ -1,339 +0,0 @@ -google.container.v1.SetLoggingServiceRequest - */ -class SetLoggingServiceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Required. The logging service the cluster should use to write logs. - * Currently available options: - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * - * Generated from protobuf field string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $logging_service = ''; - /** - * The name (project, location, cluster) of the cluster to set logging. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 5; - */ - protected $name = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @param string $clusterId Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @param string $loggingService Required. The logging service the cluster should use to write logs. - * Currently available options: - * - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * - * @return \Google\Cloud\Container\V1\SetLoggingServiceRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $clusterId, string $loggingService): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId) - ->setLoggingService($loggingService); - } - - /** - * @param string $name The name (project, location, cluster) of the cluster to set logging. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @param string $loggingService Required. The logging service the cluster should use to write logs. - * Currently available options: - * - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * - * @return \Google\Cloud\Container\V1\SetLoggingServiceRequest - * - * @experimental - */ - public static function buildFromNameLoggingService(string $name, string $loggingService): self - { - return (new self()) - ->setName($name) - ->setLoggingService($loggingService); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $logging_service - * Required. The logging service the cluster should use to write logs. - * Currently available options: - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * @type string $name - * The name (project, location, cluster) of the cluster to set logging. - * Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. The logging service the cluster should use to write logs. - * Currently available options: - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * - * Generated from protobuf field string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getLoggingService() - { - return $this->logging_service; - } - - /** - * Required. The logging service the cluster should use to write logs. - * Currently available options: - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * - * Generated from protobuf field string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setLoggingService($var) - { - GPBUtil::checkString($var, True); - $this->logging_service = $var; - - return $this; - } - - /** - * The name (project, location, cluster) of the cluster to set logging. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 5; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster) of the cluster to set logging. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 5; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMaintenancePolicyRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMaintenancePolicyRequest.php deleted file mode 100644 index b7820cb27913..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMaintenancePolicyRequest.php +++ /dev/null @@ -1,278 +0,0 @@ -google.container.v1.SetMaintenancePolicyRequest - */ -class SetMaintenancePolicyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $project_id = ''; - /** - * Required. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. - * - * Generated from protobuf field string zone = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $zone = ''; - /** - * Required. The name of the cluster to update. - * - * Generated from protobuf field string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $cluster_id = ''; - /** - * Required. The maintenance policy to be set for the cluster. An empty field - * clears the existing maintenance policy. - * - * Generated from protobuf field .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $maintenance_policy = null; - /** - * The name (project, location, cluster name) of the cluster to set - * maintenance policy. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 5; - */ - protected $name = ''; - - /** - * @param string $projectId Required. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * @param string $zone Required. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. - * @param string $clusterId Required. The name of the cluster to update. - * @param \Google\Cloud\Container\V1\MaintenancePolicy $maintenancePolicy Required. The maintenance policy to be set for the cluster. An empty field - * clears the existing maintenance policy. - * - * @return \Google\Cloud\Container\V1\SetMaintenancePolicyRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $clusterId, \Google\Cloud\Container\V1\MaintenancePolicy $maintenancePolicy): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId) - ->setMaintenancePolicy($maintenancePolicy); - } - - /** - * @param string $name The name (project, location, cluster name) of the cluster to set - * maintenance policy. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @param \Google\Cloud\Container\V1\MaintenancePolicy $maintenancePolicy Required. The maintenance policy to be set for the cluster. An empty field - * clears the existing maintenance policy. - * - * @return \Google\Cloud\Container\V1\SetMaintenancePolicyRequest - * - * @experimental - */ - public static function buildFromNameMaintenancePolicy(string $name, \Google\Cloud\Container\V1\MaintenancePolicy $maintenancePolicy): self - { - return (new self()) - ->setName($name) - ->setMaintenancePolicy($maintenancePolicy); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Required. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * @type string $zone - * Required. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. - * @type string $cluster_id - * Required. The name of the cluster to update. - * @type \Google\Cloud\Container\V1\MaintenancePolicy $maintenance_policy - * Required. The maintenance policy to be set for the cluster. An empty field - * clears the existing maintenance policy. - * @type string $name - * The name (project, location, cluster name) of the cluster to set - * maintenance policy. - * Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Required. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Required. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. - * - * Generated from protobuf field string zone = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getZone() - { - return $this->zone; - } - - /** - * Required. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. - * - * Generated from protobuf field string zone = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setZone($var) - { - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Required. The name of the cluster to update. - * - * Generated from protobuf field string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getClusterId() - { - return $this->cluster_id; - } - - /** - * Required. The name of the cluster to update. - * - * Generated from protobuf field string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setClusterId($var) - { - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. The maintenance policy to be set for the cluster. An empty field - * clears the existing maintenance policy. - * - * Generated from protobuf field .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Container\V1\MaintenancePolicy|null - */ - public function getMaintenancePolicy() - { - return $this->maintenance_policy; - } - - public function hasMaintenancePolicy() - { - return isset($this->maintenance_policy); - } - - public function clearMaintenancePolicy() - { - unset($this->maintenance_policy); - } - - /** - * Required. The maintenance policy to be set for the cluster. An empty field - * clears the existing maintenance policy. - * - * Generated from protobuf field .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Container\V1\MaintenancePolicy $var - * @return $this - */ - public function setMaintenancePolicy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MaintenancePolicy::class); - $this->maintenance_policy = $var; - - return $this; - } - - /** - * The name (project, location, cluster name) of the cluster to set - * maintenance policy. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 5; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster name) of the cluster to set - * maintenance policy. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 5; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest.php deleted file mode 100644 index 9f9c4bb4de29..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest.php +++ /dev/null @@ -1,290 +0,0 @@ -google.container.v1.SetMasterAuthRequest - */ -class SetMasterAuthRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Required. The exact form of action to be taken on the master auth. - * - * Generated from protobuf field .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $action = 0; - /** - * Required. A description of the update. - * - * Generated from protobuf field .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update = null; - /** - * The name (project, location, cluster) of the cluster to set auth. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 7; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type int $action - * Required. The exact form of action to be taken on the master auth. - * @type \Google\Cloud\Container\V1\MasterAuth $update - * Required. A description of the update. - * @type string $name - * The name (project, location, cluster) of the cluster to set auth. - * Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. The exact form of action to be taken on the master auth. - * - * Generated from protobuf field .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getAction() - { - return $this->action; - } - - /** - * Required. The exact form of action to be taken on the master auth. - * - * Generated from protobuf field .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setAction($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\SetMasterAuthRequest\Action::class); - $this->action = $var; - - return $this; - } - - /** - * Required. A description of the update. - * - * Generated from protobuf field .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Container\V1\MasterAuth|null - */ - public function getUpdate() - { - return $this->update; - } - - public function hasUpdate() - { - return isset($this->update); - } - - public function clearUpdate() - { - unset($this->update); - } - - /** - * Required. A description of the update. - * - * Generated from protobuf field .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Container\V1\MasterAuth $var - * @return $this - */ - public function setUpdate($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MasterAuth::class); - $this->update = $var; - - return $this; - } - - /** - * The name (project, location, cluster) of the cluster to set auth. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 7; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster) of the cluster to set auth. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 7; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest/Action.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest/Action.php deleted file mode 100644 index f05c2c752248..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest/Action.php +++ /dev/null @@ -1,74 +0,0 @@ -google.container.v1.SetMasterAuthRequest.Action - */ -class Action -{ - /** - * Operation is unknown and will error out. - * - * Generated from protobuf enum UNKNOWN = 0; - */ - const UNKNOWN = 0; - /** - * Set the password to a user generated value. - * - * Generated from protobuf enum SET_PASSWORD = 1; - */ - const SET_PASSWORD = 1; - /** - * Generate a new password and set it to that. - * - * Generated from protobuf enum GENERATE_PASSWORD = 2; - */ - const GENERATE_PASSWORD = 2; - /** - * Set the username. If an empty username is provided, basic authentication - * is disabled for the cluster. If a non-empty username is provided, basic - * authentication is enabled, with either a provided password or a generated - * one. - * - * Generated from protobuf enum SET_USERNAME = 3; - */ - const SET_USERNAME = 3; - - private static $valueToName = [ - self::UNKNOWN => 'UNKNOWN', - self::SET_PASSWORD => 'SET_PASSWORD', - self::GENERATE_PASSWORD => 'GENERATE_PASSWORD', - self::SET_USERNAME => 'SET_USERNAME', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Action::class, \Google\Cloud\Container\V1\SetMasterAuthRequest_Action::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMonitoringServiceRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMonitoringServiceRequest.php deleted file mode 100644 index c1e9b2480dd4..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMonitoringServiceRequest.php +++ /dev/null @@ -1,339 +0,0 @@ -google.container.v1.SetMonitoringServiceRequest - */ -class SetMonitoringServiceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Required. The monitoring service the cluster should use to write metrics. - * Currently available options: - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * - * Generated from protobuf field string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $monitoring_service = ''; - /** - * The name (project, location, cluster) of the cluster to set monitoring. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - */ - protected $name = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @param string $clusterId Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @param string $monitoringService Required. The monitoring service the cluster should use to write metrics. - * Currently available options: - * - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * - * @return \Google\Cloud\Container\V1\SetMonitoringServiceRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $clusterId, string $monitoringService): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId) - ->setMonitoringService($monitoringService); - } - - /** - * @param string $name The name (project, location, cluster) of the cluster to set monitoring. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @param string $monitoringService Required. The monitoring service the cluster should use to write metrics. - * Currently available options: - * - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * - * @return \Google\Cloud\Container\V1\SetMonitoringServiceRequest - * - * @experimental - */ - public static function buildFromNameMonitoringService(string $name, string $monitoringService): self - { - return (new self()) - ->setName($name) - ->setMonitoringService($monitoringService); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $monitoring_service - * Required. The monitoring service the cluster should use to write metrics. - * Currently available options: - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * @type string $name - * The name (project, location, cluster) of the cluster to set monitoring. - * Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. The monitoring service the cluster should use to write metrics. - * Currently available options: - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * - * Generated from protobuf field string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getMonitoringService() - { - return $this->monitoring_service; - } - - /** - * Required. The monitoring service the cluster should use to write metrics. - * Currently available options: - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * - * Generated from protobuf field string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setMonitoringService($var) - { - GPBUtil::checkString($var, True); - $this->monitoring_service = $var; - - return $this; - } - - /** - * The name (project, location, cluster) of the cluster to set monitoring. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster) of the cluster to set monitoring. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNetworkPolicyRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNetworkPolicyRequest.php deleted file mode 100644 index 7c35706d9a9b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNetworkPolicyRequest.php +++ /dev/null @@ -1,297 +0,0 @@ -google.container.v1.SetNetworkPolicyRequest - */ -class SetNetworkPolicyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Required. Configuration options for the NetworkPolicy feature. - * - * Generated from protobuf field .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $network_policy = null; - /** - * The name (project, location, cluster name) of the cluster to set networking - * policy. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - */ - protected $name = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @param string $clusterId Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @param \Google\Cloud\Container\V1\NetworkPolicy $networkPolicy Required. Configuration options for the NetworkPolicy feature. - * - * @return \Google\Cloud\Container\V1\SetNetworkPolicyRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $clusterId, \Google\Cloud\Container\V1\NetworkPolicy $networkPolicy): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId) - ->setNetworkPolicy($networkPolicy); - } - - /** - * @param string $name The name (project, location, cluster name) of the cluster to set networking - * policy. Specified in the format `projects/*/locations/*/clusters/*`. - * @param \Google\Cloud\Container\V1\NetworkPolicy $networkPolicy Required. Configuration options for the NetworkPolicy feature. - * - * @return \Google\Cloud\Container\V1\SetNetworkPolicyRequest - * - * @experimental - */ - public static function buildFromNameNetworkPolicy(string $name, \Google\Cloud\Container\V1\NetworkPolicy $networkPolicy): self - { - return (new self()) - ->setName($name) - ->setNetworkPolicy($networkPolicy); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @type \Google\Cloud\Container\V1\NetworkPolicy $network_policy - * Required. Configuration options for the NetworkPolicy feature. - * @type string $name - * The name (project, location, cluster name) of the cluster to set networking - * policy. Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. Configuration options for the NetworkPolicy feature. - * - * Generated from protobuf field .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Container\V1\NetworkPolicy|null - */ - public function getNetworkPolicy() - { - return $this->network_policy; - } - - public function hasNetworkPolicy() - { - return isset($this->network_policy); - } - - public function clearNetworkPolicy() - { - unset($this->network_policy); - } - - /** - * Required. Configuration options for the NetworkPolicy feature. - * - * Generated from protobuf field .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Container\V1\NetworkPolicy $var - * @return $this - */ - public function setNetworkPolicy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkPolicy::class); - $this->network_policy = $var; - - return $this; - } - - /** - * The name (project, location, cluster name) of the cluster to set networking - * policy. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster name) of the cluster to set networking - * policy. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolAutoscalingRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolAutoscalingRequest.php deleted file mode 100644 index a9884dd31f6b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolAutoscalingRequest.php +++ /dev/null @@ -1,303 +0,0 @@ -google.container.v1.SetNodePoolAutoscalingRequest - */ -class SetNodePoolAutoscalingRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Deprecated. The name of the node pool to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @deprecated - */ - protected $node_pool_id = ''; - /** - * Required. Autoscaling configuration for the node pool. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $autoscaling = null; - /** - * The name (project, location, cluster, node pool) of the node pool to set - * autoscaler settings. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 6; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $node_pool_id - * Deprecated. The name of the node pool to upgrade. - * This field has been deprecated and replaced by the name field. - * @type \Google\Cloud\Container\V1\NodePoolAutoscaling $autoscaling - * Required. Autoscaling configuration for the node pool. - * @type string $name - * The name (project, location, cluster, node pool) of the node pool to set - * autoscaler settings. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the node pool to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @return string - * @deprecated - */ - public function getNodePoolId() - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - return $this->node_pool_id; - } - - /** - * Deprecated. The name of the node pool to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setNodePoolId($var) - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->node_pool_id = $var; - - return $this; - } - - /** - * Required. Autoscaling configuration for the node pool. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Container\V1\NodePoolAutoscaling|null - */ - public function getAutoscaling() - { - return $this->autoscaling; - } - - public function hasAutoscaling() - { - return isset($this->autoscaling); - } - - public function clearAutoscaling() - { - unset($this->autoscaling); - } - - /** - * Required. Autoscaling configuration for the node pool. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Container\V1\NodePoolAutoscaling $var - * @return $this - */ - public function setAutoscaling($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolAutoscaling::class); - $this->autoscaling = $var; - - return $this; - } - - /** - * The name (project, location, cluster, node pool) of the node pool to set - * autoscaler settings. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 6; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster, node pool) of the node pool to set - * autoscaler settings. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 6; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolManagementRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolManagementRequest.php deleted file mode 100644 index f1807940a3ff..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolManagementRequest.php +++ /dev/null @@ -1,304 +0,0 @@ -google.container.v1.SetNodePoolManagementRequest - */ -class SetNodePoolManagementRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Deprecated. The name of the node pool to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @deprecated - */ - protected $node_pool_id = ''; - /** - * Required. NodeManagement configuration for the node pool. - * - * Generated from protobuf field .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $management = null; - /** - * The name (project, location, cluster, node pool id) of the node pool to set - * management properties. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 7; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * @type string $node_pool_id - * Deprecated. The name of the node pool to update. - * This field has been deprecated and replaced by the name field. - * @type \Google\Cloud\Container\V1\NodeManagement $management - * Required. NodeManagement configuration for the node pool. - * @type string $name - * The name (project, location, cluster, node pool id) of the node pool to set - * management properties. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the node pool to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @return string - * @deprecated - */ - public function getNodePoolId() - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - return $this->node_pool_id; - } - - /** - * Deprecated. The name of the node pool to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setNodePoolId($var) - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->node_pool_id = $var; - - return $this; - } - - /** - * Required. NodeManagement configuration for the node pool. - * - * Generated from protobuf field .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Container\V1\NodeManagement|null - */ - public function getManagement() - { - return $this->management; - } - - public function hasManagement() - { - return isset($this->management); - } - - public function clearManagement() - { - unset($this->management); - } - - /** - * Required. NodeManagement configuration for the node pool. - * - * Generated from protobuf field .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Container\V1\NodeManagement $var - * @return $this - */ - public function setManagement($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeManagement::class); - $this->management = $var; - - return $this; - } - - /** - * The name (project, location, cluster, node pool id) of the node pool to set - * management properties. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 7; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster, node pool id) of the node pool to set - * management properties. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 7; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolSizeRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolSizeRequest.php deleted file mode 100644 index 56d25d6e8e81..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolSizeRequest.php +++ /dev/null @@ -1,293 +0,0 @@ -google.container.v1.SetNodePoolSizeRequest - */ -class SetNodePoolSizeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Deprecated. The name of the node pool to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @deprecated - */ - protected $node_pool_id = ''; - /** - * Required. The desired node count for the pool. - * - * Generated from protobuf field int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $node_count = 0; - /** - * The name (project, location, cluster, node pool id) of the node pool to set - * size. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 7; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * @type string $node_pool_id - * Deprecated. The name of the node pool to update. - * This field has been deprecated and replaced by the name field. - * @type int $node_count - * Required. The desired node count for the pool. - * @type string $name - * The name (project, location, cluster, node pool id) of the node pool to set - * size. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the node pool to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @return string - * @deprecated - */ - public function getNodePoolId() - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - return $this->node_pool_id; - } - - /** - * Deprecated. The name of the node pool to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setNodePoolId($var) - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->node_pool_id = $var; - - return $this; - } - - /** - * Required. The desired node count for the pool. - * - * Generated from protobuf field int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getNodeCount() - { - return $this->node_count; - } - - /** - * Required. The desired node count for the pool. - * - * Generated from protobuf field int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setNodeCount($var) - { - GPBUtil::checkInt32($var); - $this->node_count = $var; - - return $this; - } - - /** - * The name (project, location, cluster, node pool id) of the node pool to set - * size. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 7; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster, node pool id) of the node pool to set - * size. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 7; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ShieldedInstanceConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ShieldedInstanceConfig.php deleted file mode 100644 index c711d0be5048..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ShieldedInstanceConfig.php +++ /dev/null @@ -1,129 +0,0 @@ -google.container.v1.ShieldedInstanceConfig - */ -class ShieldedInstanceConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Defines whether the instance has Secure Boot enabled. - * Secure Boot helps ensure that the system only runs authentic software by - * verifying the digital signature of all boot components, and halting the - * boot process if signature verification fails. - * - * Generated from protobuf field bool enable_secure_boot = 1; - */ - protected $enable_secure_boot = false; - /** - * Defines whether the instance has integrity monitoring enabled. - * Enables monitoring and attestation of the boot integrity of the instance. - * The attestation is performed against the integrity policy baseline. This - * baseline is initially derived from the implicitly trusted boot image when - * the instance is created. - * - * Generated from protobuf field bool enable_integrity_monitoring = 2; - */ - protected $enable_integrity_monitoring = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enable_secure_boot - * Defines whether the instance has Secure Boot enabled. - * Secure Boot helps ensure that the system only runs authentic software by - * verifying the digital signature of all boot components, and halting the - * boot process if signature verification fails. - * @type bool $enable_integrity_monitoring - * Defines whether the instance has integrity monitoring enabled. - * Enables monitoring and attestation of the boot integrity of the instance. - * The attestation is performed against the integrity policy baseline. This - * baseline is initially derived from the implicitly trusted boot image when - * the instance is created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Defines whether the instance has Secure Boot enabled. - * Secure Boot helps ensure that the system only runs authentic software by - * verifying the digital signature of all boot components, and halting the - * boot process if signature verification fails. - * - * Generated from protobuf field bool enable_secure_boot = 1; - * @return bool - */ - public function getEnableSecureBoot() - { - return $this->enable_secure_boot; - } - - /** - * Defines whether the instance has Secure Boot enabled. - * Secure Boot helps ensure that the system only runs authentic software by - * verifying the digital signature of all boot components, and halting the - * boot process if signature verification fails. - * - * Generated from protobuf field bool enable_secure_boot = 1; - * @param bool $var - * @return $this - */ - public function setEnableSecureBoot($var) - { - GPBUtil::checkBool($var); - $this->enable_secure_boot = $var; - - return $this; - } - - /** - * Defines whether the instance has integrity monitoring enabled. - * Enables monitoring and attestation of the boot integrity of the instance. - * The attestation is performed against the integrity policy baseline. This - * baseline is initially derived from the implicitly trusted boot image when - * the instance is created. - * - * Generated from protobuf field bool enable_integrity_monitoring = 2; - * @return bool - */ - public function getEnableIntegrityMonitoring() - { - return $this->enable_integrity_monitoring; - } - - /** - * Defines whether the instance has integrity monitoring enabled. - * Enables monitoring and attestation of the boot integrity of the instance. - * The attestation is performed against the integrity policy baseline. This - * baseline is initially derived from the implicitly trusted boot image when - * the instance is created. - * - * Generated from protobuf field bool enable_integrity_monitoring = 2; - * @param bool $var - * @return $this - */ - public function setEnableIntegrityMonitoring($var) - { - GPBUtil::checkBool($var); - $this->enable_integrity_monitoring = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ShieldedNodes.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ShieldedNodes.php deleted file mode 100644 index 09b61f99c881..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ShieldedNodes.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.ShieldedNodes - */ -class ShieldedNodes extends \Google\Protobuf\Internal\Message -{ - /** - * Whether Shielded Nodes features are enabled on all nodes in this cluster. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether Shielded Nodes features are enabled on all nodes in this cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether Shielded Nodes features are enabled on all nodes in this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether Shielded Nodes features are enabled on all nodes in this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SoleTenantConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SoleTenantConfig.php deleted file mode 100644 index 9cf3c4f481ab..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SoleTenantConfig.php +++ /dev/null @@ -1,68 +0,0 @@ -google.container.v1.SoleTenantConfig - */ -class SoleTenantConfig extends \Google\Protobuf\Internal\Message -{ - /** - * NodeAffinities used to match to a shared sole tenant node group. - * - * Generated from protobuf field repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; - */ - private $node_affinities; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Container\V1\SoleTenantConfig\NodeAffinity>|\Google\Protobuf\Internal\RepeatedField $node_affinities - * NodeAffinities used to match to a shared sole tenant node group. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * NodeAffinities used to match to a shared sole tenant node group. - * - * Generated from protobuf field repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNodeAffinities() - { - return $this->node_affinities; - } - - /** - * NodeAffinities used to match to a shared sole tenant node group. - * - * Generated from protobuf field repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; - * @param array<\Google\Cloud\Container\V1\SoleTenantConfig\NodeAffinity>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNodeAffinities($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\SoleTenantConfig\NodeAffinity::class); - $this->node_affinities = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SoleTenantConfig/NodeAffinity.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SoleTenantConfig/NodeAffinity.php deleted file mode 100644 index 4d1fff207a65..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SoleTenantConfig/NodeAffinity.php +++ /dev/null @@ -1,140 +0,0 @@ -google.container.v1.SoleTenantConfig.NodeAffinity - */ -class NodeAffinity extends \Google\Protobuf\Internal\Message -{ - /** - * Key for NodeAffinity. - * - * Generated from protobuf field string key = 1; - */ - protected $key = ''; - /** - * Operator for NodeAffinity. - * - * Generated from protobuf field .google.container.v1.SoleTenantConfig.NodeAffinity.Operator operator = 2; - */ - protected $operator = 0; - /** - * Values for NodeAffinity. - * - * Generated from protobuf field repeated string values = 3; - */ - private $values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key - * Key for NodeAffinity. - * @type int $operator - * Operator for NodeAffinity. - * @type array|\Google\Protobuf\Internal\RepeatedField $values - * Values for NodeAffinity. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Key for NodeAffinity. - * - * Generated from protobuf field string key = 1; - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * Key for NodeAffinity. - * - * Generated from protobuf field string key = 1; - * @param string $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkString($var, True); - $this->key = $var; - - return $this; - } - - /** - * Operator for NodeAffinity. - * - * Generated from protobuf field .google.container.v1.SoleTenantConfig.NodeAffinity.Operator operator = 2; - * @return int - */ - public function getOperator() - { - return $this->operator; - } - - /** - * Operator for NodeAffinity. - * - * Generated from protobuf field .google.container.v1.SoleTenantConfig.NodeAffinity.Operator operator = 2; - * @param int $var - * @return $this - */ - public function setOperator($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\SoleTenantConfig\NodeAffinity\Operator::class); - $this->operator = $var; - - return $this; - } - - /** - * Values for NodeAffinity. - * - * Generated from protobuf field repeated string values = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValues() - { - return $this->values; - } - - /** - * Values for NodeAffinity. - * - * Generated from protobuf field repeated string values = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->values = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(NodeAffinity::class, \Google\Cloud\Container\V1\SoleTenantConfig_NodeAffinity::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SoleTenantConfig/NodeAffinity/Operator.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SoleTenantConfig/NodeAffinity/Operator.php deleted file mode 100644 index b40318d1e381..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SoleTenantConfig/NodeAffinity/Operator.php +++ /dev/null @@ -1,65 +0,0 @@ -google.container.v1.SoleTenantConfig.NodeAffinity.Operator - */ -class Operator -{ - /** - * Invalid or unspecified affinity operator. - * - * Generated from protobuf enum OPERATOR_UNSPECIFIED = 0; - */ - const OPERATOR_UNSPECIFIED = 0; - /** - * Affinity operator. - * - * Generated from protobuf enum IN = 1; - */ - const IN = 1; - /** - * Anti-affinity operator. - * - * Generated from protobuf enum NOT_IN = 2; - */ - const NOT_IN = 2; - - private static $valueToName = [ - self::OPERATOR_UNSPECIFIED => 'OPERATOR_UNSPECIFIED', - self::IN => 'IN', - self::NOT_IN => 'NOT_IN', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Operator::class, \Google\Cloud\Container\V1\SoleTenantConfig_NodeAffinity_Operator::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StackType.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StackType.php deleted file mode 100644 index ce1f1c6c392b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StackType.php +++ /dev/null @@ -1,61 +0,0 @@ -google.container.v1.StackType - */ -class StackType -{ - /** - * Default value, will be defaulted as IPV4 only - * - * Generated from protobuf enum STACK_TYPE_UNSPECIFIED = 0; - */ - const STACK_TYPE_UNSPECIFIED = 0; - /** - * Cluster is IPV4 only - * - * Generated from protobuf enum IPV4 = 1; - */ - const IPV4 = 1; - /** - * Cluster can use both IPv4 and IPv6 - * - * Generated from protobuf enum IPV4_IPV6 = 2; - */ - const IPV4_IPV6 = 2; - - private static $valueToName = [ - self::STACK_TYPE_UNSPECIFIED => 'STACK_TYPE_UNSPECIFIED', - self::IPV4 => 'IPV4', - self::IPV4_IPV6 => 'IPV4_IPV6', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StartIPRotationRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StartIPRotationRequest.php deleted file mode 100644 index d83526a15815..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StartIPRotationRequest.php +++ /dev/null @@ -1,284 +0,0 @@ -google.container.v1.StartIPRotationRequest - */ -class StartIPRotationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * The name (project, location, cluster name) of the cluster to start IP - * rotation. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - */ - protected $name = ''; - /** - * Whether to rotate credentials during IP rotation. - * - * Generated from protobuf field bool rotate_credentials = 7; - */ - protected $rotate_credentials = false; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @param string $clusterId Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * @return \Google\Cloud\Container\V1\StartIPRotationRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $clusterId): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId); - } - - /** - * @param string $name The name (project, location, cluster name) of the cluster to start IP - * rotation. Specified in the format `projects/*/locations/*/clusters/*`. - * - * @return \Google\Cloud\Container\V1\StartIPRotationRequest - * - * @experimental - */ - public static function buildFromName(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster name) of the cluster to start IP - * rotation. Specified in the format `projects/*/locations/*/clusters/*`. - * @type bool $rotate_credentials - * Whether to rotate credentials during IP rotation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * The name (project, location, cluster name) of the cluster to start IP - * rotation. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster name) of the cluster to start IP - * rotation. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Whether to rotate credentials during IP rotation. - * - * Generated from protobuf field bool rotate_credentials = 7; - * @return bool - */ - public function getRotateCredentials() - { - return $this->rotate_credentials; - } - - /** - * Whether to rotate credentials during IP rotation. - * - * Generated from protobuf field bool rotate_credentials = 7; - * @param bool $var - * @return $this - */ - public function setRotateCredentials($var) - { - GPBUtil::checkBool($var); - $this->rotate_credentials = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatefulHAConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatefulHAConfig.php deleted file mode 100644 index 6badc67f40b1..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatefulHAConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.StatefulHAConfig - */ -class StatefulHAConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether the Stateful HA add-on is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether the Stateful HA add-on is enabled for this cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether the Stateful HA add-on is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether the Stateful HA add-on is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatusCondition.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatusCondition.php deleted file mode 100644 index 3214778aea36..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatusCondition.php +++ /dev/null @@ -1,145 +0,0 @@ -google.container.v1.StatusCondition - */ -class StatusCondition extends \Google\Protobuf\Internal\Message -{ - /** - * Machine-friendly representation of the condition - * Deprecated. Use canonical_code instead. - * - * Generated from protobuf field .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; - * @deprecated - */ - protected $code = 0; - /** - * Human-friendly representation of the condition - * - * Generated from protobuf field string message = 2; - */ - protected $message = ''; - /** - * Canonical code of the condition. - * - * Generated from protobuf field .google.rpc.Code canonical_code = 3; - */ - protected $canonical_code = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $code - * Machine-friendly representation of the condition - * Deprecated. Use canonical_code instead. - * @type string $message - * Human-friendly representation of the condition - * @type int $canonical_code - * Canonical code of the condition. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Machine-friendly representation of the condition - * Deprecated. Use canonical_code instead. - * - * Generated from protobuf field .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; - * @return int - * @deprecated - */ - public function getCode() - { - @trigger_error('code is deprecated.', E_USER_DEPRECATED); - return $this->code; - } - - /** - * Machine-friendly representation of the condition - * Deprecated. Use canonical_code instead. - * - * Generated from protobuf field .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; - * @param int $var - * @return $this - * @deprecated - */ - public function setCode($var) - { - @trigger_error('code is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\StatusCondition\Code::class); - $this->code = $var; - - return $this; - } - - /** - * Human-friendly representation of the condition - * - * Generated from protobuf field string message = 2; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Human-friendly representation of the condition - * - * Generated from protobuf field string message = 2; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * Canonical code of the condition. - * - * Generated from protobuf field .google.rpc.Code canonical_code = 3; - * @return int - */ - public function getCanonicalCode() - { - return $this->canonical_code; - } - - /** - * Canonical code of the condition. - * - * Generated from protobuf field .google.rpc.Code canonical_code = 3; - * @param int $var - * @return $this - */ - public function setCanonicalCode($var) - { - GPBUtil::checkEnum($var, \Google\Rpc\Code::class); - $this->canonical_code = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatusCondition/Code.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatusCondition/Code.php deleted file mode 100644 index 189901c0228e..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatusCondition/Code.php +++ /dev/null @@ -1,95 +0,0 @@ -google.container.v1.StatusCondition.Code - */ -class Code -{ - /** - * UNKNOWN indicates a generic condition. - * - * Generated from protobuf enum UNKNOWN = 0; - */ - const UNKNOWN = 0; - /** - * GCE_STOCKOUT indicates that Google Compute Engine resources are - * temporarily unavailable. - * - * Generated from protobuf enum GCE_STOCKOUT = 1; - */ - const GCE_STOCKOUT = 1; - /** - * GKE_SERVICE_ACCOUNT_DELETED indicates that the user deleted their robot - * service account. - * - * Generated from protobuf enum GKE_SERVICE_ACCOUNT_DELETED = 2; - */ - const GKE_SERVICE_ACCOUNT_DELETED = 2; - /** - * Google Compute Engine quota was exceeded. - * - * Generated from protobuf enum GCE_QUOTA_EXCEEDED = 3; - */ - const GCE_QUOTA_EXCEEDED = 3; - /** - * Cluster state was manually changed by an SRE due to a system logic error. - * - * Generated from protobuf enum SET_BY_OPERATOR = 4; - */ - const SET_BY_OPERATOR = 4; - /** - * Unable to perform an encrypt operation against the CloudKMS key used for - * etcd level encryption. - * - * Generated from protobuf enum CLOUD_KMS_KEY_ERROR = 7; - */ - const CLOUD_KMS_KEY_ERROR = 7; - /** - * Cluster CA is expiring soon. - * - * Generated from protobuf enum CA_EXPIRING = 9; - */ - const CA_EXPIRING = 9; - - private static $valueToName = [ - self::UNKNOWN => 'UNKNOWN', - self::GCE_STOCKOUT => 'GCE_STOCKOUT', - self::GKE_SERVICE_ACCOUNT_DELETED => 'GKE_SERVICE_ACCOUNT_DELETED', - self::GCE_QUOTA_EXCEEDED => 'GCE_QUOTA_EXCEEDED', - self::SET_BY_OPERATOR => 'SET_BY_OPERATOR', - self::CLOUD_KMS_KEY_ERROR => 'CLOUD_KMS_KEY_ERROR', - self::CA_EXPIRING => 'CA_EXPIRING', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Code::class, \Google\Cloud\Container\V1\StatusCondition_Code::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/TimeWindow.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/TimeWindow.php deleted file mode 100644 index ac645e5dd8ea..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/TimeWindow.php +++ /dev/null @@ -1,170 +0,0 @@ -google.container.v1.TimeWindow - */ -class TimeWindow extends \Google\Protobuf\Internal\Message -{ - /** - * The time that the window first starts. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; - */ - protected $start_time = null; - /** - * The time that the window ends. The end time should take place after the - * start time. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; - */ - protected $end_time = null; - protected $options; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\MaintenanceExclusionOptions $maintenance_exclusion_options - * MaintenanceExclusionOptions provides maintenance exclusion related - * options. - * @type \Google\Protobuf\Timestamp $start_time - * The time that the window first starts. - * @type \Google\Protobuf\Timestamp $end_time - * The time that the window ends. The end time should take place after the - * start time. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * MaintenanceExclusionOptions provides maintenance exclusion related - * options. - * - * Generated from protobuf field .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - * @return \Google\Cloud\Container\V1\MaintenanceExclusionOptions|null - */ - public function getMaintenanceExclusionOptions() - { - return $this->readOneof(3); - } - - public function hasMaintenanceExclusionOptions() - { - return $this->hasOneof(3); - } - - /** - * MaintenanceExclusionOptions provides maintenance exclusion related - * options. - * - * Generated from protobuf field .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - * @param \Google\Cloud\Container\V1\MaintenanceExclusionOptions $var - * @return $this - */ - public function setMaintenanceExclusionOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MaintenanceExclusionOptions::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * The time that the window first starts. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * The time that the window first starts. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * The time that the window ends. The end time should take place after the - * start time. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * The time that the window ends. The end time should take place after the - * start time. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * @return string - */ - public function getOptions() - { - return $this->whichOneof("options"); - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateClusterRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateClusterRequest.php deleted file mode 100644 index 616a4818bea8..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateClusterRequest.php +++ /dev/null @@ -1,297 +0,0 @@ -google.container.v1.UpdateClusterRequest - */ -class UpdateClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Required. A description of the update. - * - * Generated from protobuf field .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update = null; - /** - * The name (project, location, cluster) of the cluster to update. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 5; - */ - protected $name = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @param string $clusterId Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @param \Google\Cloud\Container\V1\ClusterUpdate $update Required. A description of the update. - * - * @return \Google\Cloud\Container\V1\UpdateClusterRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $clusterId, \Google\Cloud\Container\V1\ClusterUpdate $update): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId) - ->setUpdate($update); - } - - /** - * @param string $name The name (project, location, cluster) of the cluster to update. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @param \Google\Cloud\Container\V1\ClusterUpdate $update Required. A description of the update. - * - * @return \Google\Cloud\Container\V1\UpdateClusterRequest - * - * @experimental - */ - public static function buildFromNameUpdate(string $name, \Google\Cloud\Container\V1\ClusterUpdate $update): self - { - return (new self()) - ->setName($name) - ->setUpdate($update); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type \Google\Cloud\Container\V1\ClusterUpdate $update - * Required. A description of the update. - * @type string $name - * The name (project, location, cluster) of the cluster to update. - * Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. A description of the update. - * - * Generated from protobuf field .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Container\V1\ClusterUpdate|null - */ - public function getUpdate() - { - return $this->update; - } - - public function hasUpdate() - { - return isset($this->update); - } - - public function clearUpdate() - { - unset($this->update); - } - - /** - * Required. A description of the update. - * - * Generated from protobuf field .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Container\V1\ClusterUpdate $var - * @return $this - */ - public function setUpdate($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ClusterUpdate::class); - $this->update = $var; - - return $this; - } - - /** - * The name (project, location, cluster) of the cluster to update. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 5; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster) of the cluster to update. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 5; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateMasterRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateMasterRequest.php deleted file mode 100644 index e8512985f1a5..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateMasterRequest.php +++ /dev/null @@ -1,333 +0,0 @@ -google.container.v1.UpdateMasterRequest - */ -class UpdateMasterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Required. The Kubernetes version to change the master to. - * Users may specify either explicit versions offered by Kubernetes Engine or - * version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the default Kubernetes version - * - * Generated from protobuf field string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $master_version = ''; - /** - * The name (project, location, cluster) of the cluster to update. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 7; - */ - protected $name = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @param string $clusterId Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @param string $masterVersion Required. The Kubernetes version to change the master to. - * - * Users may specify either explicit versions offered by Kubernetes Engine or - * version aliases, which have the following behavior: - * - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the default Kubernetes version - * - * @return \Google\Cloud\Container\V1\UpdateMasterRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $clusterId, string $masterVersion): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId) - ->setMasterVersion($masterVersion); - } - - /** - * @param string $name The name (project, location, cluster) of the cluster to update. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @param string $masterVersion Required. The Kubernetes version to change the master to. - * - * Users may specify either explicit versions offered by Kubernetes Engine or - * version aliases, which have the following behavior: - * - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the default Kubernetes version - * - * @return \Google\Cloud\Container\V1\UpdateMasterRequest - * - * @experimental - */ - public static function buildFromNameMasterVersion(string $name, string $masterVersion): self - { - return (new self()) - ->setName($name) - ->setMasterVersion($masterVersion); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $master_version - * Required. The Kubernetes version to change the master to. - * Users may specify either explicit versions offered by Kubernetes Engine or - * version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the default Kubernetes version - * @type string $name - * The name (project, location, cluster) of the cluster to update. - * Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. The Kubernetes version to change the master to. - * Users may specify either explicit versions offered by Kubernetes Engine or - * version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the default Kubernetes version - * - * Generated from protobuf field string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getMasterVersion() - { - return $this->master_version; - } - - /** - * Required. The Kubernetes version to change the master to. - * Users may specify either explicit versions offered by Kubernetes Engine or - * version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the default Kubernetes version - * - * Generated from protobuf field string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setMasterVersion($var) - { - GPBUtil::checkString($var, True); - $this->master_version = $var; - - return $this; - } - - /** - * The name (project, location, cluster) of the cluster to update. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 7; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster) of the cluster to update. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 7; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateNodePoolRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateNodePoolRequest.php deleted file mode 100644 index e9185caf17a8..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateNodePoolRequest.php +++ /dev/null @@ -1,1385 +0,0 @@ -google.container.v1.UpdateNodePoolRequest - */ -class UpdateNodePoolRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Deprecated. The name of the node pool to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @deprecated - */ - protected $node_pool_id = ''; - /** - * Required. The Kubernetes version to change the nodes to (typically an - * upgrade). - * Users may specify either explicit versions offered by Kubernetes Engine or - * version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the Kubernetes master version - * - * Generated from protobuf field string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $node_version = ''; - /** - * Required. The desired image type for the node pool. Please see - * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for - * available image types. - * - * Generated from protobuf field string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $image_type = ''; - /** - * The name (project, location, cluster, node pool) of the node pool to - * update. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 8; - */ - protected $name = ''; - /** - * The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * node pool's nodes should be located. Changing the locations for a node pool - * will result in nodes being either created or removed from the node pool, - * depending on whether locations are being added or removed. - * - * Generated from protobuf field repeated string locations = 13; - */ - private $locations; - /** - * The desired workload metadata config for the node pool. - * - * Generated from protobuf field .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - protected $workload_metadata_config = null; - /** - * Upgrade settings control disruption and speed of the upgrade. - * - * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - */ - protected $upgrade_settings = null; - /** - * The desired network tags to be applied to all nodes in the node pool. - * If this field is not present, the tags will not be changed. Otherwise, - * the existing network tags will be *replaced* with the provided tags. - * - * Generated from protobuf field .google.container.v1.NetworkTags tags = 16; - */ - protected $tags = null; - /** - * The desired node taints to be applied to all nodes in the node pool. - * If this field is not present, the taints will not be changed. Otherwise, - * the existing node taints will be *replaced* with the provided taints. - * - * Generated from protobuf field .google.container.v1.NodeTaints taints = 17; - */ - protected $taints = null; - /** - * The desired node labels to be applied to all nodes in the node pool. - * If this field is not present, the labels will not be changed. Otherwise, - * the existing node labels will be *replaced* with the provided labels. - * - * Generated from protobuf field .google.container.v1.NodeLabels labels = 18; - */ - protected $labels = null; - /** - * Parameters that can be configured on Linux nodes. - * - * Generated from protobuf field .google.container.v1.LinuxNodeConfig linux_node_config = 19; - */ - protected $linux_node_config = null; - /** - * Node kubelet configs. - * - * Generated from protobuf field .google.container.v1.NodeKubeletConfig kubelet_config = 20; - */ - protected $kubelet_config = null; - /** - * Node network config. - * - * Generated from protobuf field .google.container.v1.NodeNetworkConfig node_network_config = 21; - */ - protected $node_network_config = null; - /** - * GCFS config. - * - * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 22; - */ - protected $gcfs_config = null; - /** - * Confidential nodes config. - * All the nodes in the node pool will be Confidential VM once enabled. - * - * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 23; - */ - protected $confidential_nodes = null; - /** - * Enable or disable gvnic on the node pool. - * - * Generated from protobuf field .google.container.v1.VirtualNIC gvnic = 29; - */ - protected $gvnic = null; - /** - * The current etag of the node pool. - * If an etag is provided and does not match the current etag of the node - * pool, update will be blocked and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 30; - */ - protected $etag = ''; - /** - * Enable or disable NCCL fast socket for the node pool. - * - * Generated from protobuf field .google.container.v1.FastSocket fast_socket = 31; - */ - protected $fast_socket = null; - /** - * Logging configuration. - * - * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 32; - */ - protected $logging_config = null; - /** - * The resource labels for the node pool to use to annotate any related - * Google Compute Engine resources. - * - * Generated from protobuf field .google.container.v1.ResourceLabels resource_labels = 33; - */ - protected $resource_labels = null; - /** - * Parameters that can be configured on Windows nodes. - * - * Generated from protobuf field .google.container.v1.WindowsNodeConfig windows_node_config = 34; - */ - protected $windows_node_config = null; - /** - * Optional. The desired [Google Compute Engine machine - * type](https://cloud.google.com/compute/docs/machine-types) for nodes in the - * node pool. Initiates an upgrade operation that migrates the nodes in the - * node pool to the specified machine type. - * - * Generated from protobuf field string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $machine_type = ''; - /** - * Optional. The desired disk type (e.g. 'pd-standard', 'pd-ssd' or - * 'pd-balanced') for nodes in the node pool. - * Initiates an upgrade operation that migrates the nodes in the - * node pool to the specified disk type. - * - * Generated from protobuf field string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $disk_type = ''; - /** - * Optional. The desired disk size for nodes in the node pool specified in GB. - * The smallest allowed disk size is 10GB. - * Initiates an upgrade operation that migrates the nodes in the - * node pool to the specified disk size. - * - * Generated from protobuf field int64 disk_size_gb = 38 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $disk_size_gb = 0; - /** - * Desired resource manager tag keys and values to be attached to the nodes - * for managing Compute Engine firewalls using Network Firewall Policies. - * Existing tags will be replaced with new values. - * - * Generated from protobuf field .google.container.v1.ResourceManagerTags resource_manager_tags = 39; - */ - protected $resource_manager_tags = null; - /** - * Specifies the configuration of queued provisioning. - * - * Generated from protobuf field .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 42; - */ - protected $queued_provisioning = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $node_pool_id - * Deprecated. The name of the node pool to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $node_version - * Required. The Kubernetes version to change the nodes to (typically an - * upgrade). - * Users may specify either explicit versions offered by Kubernetes Engine or - * version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the Kubernetes master version - * @type string $image_type - * Required. The desired image type for the node pool. Please see - * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for - * available image types. - * @type string $name - * The name (project, location, cluster, node pool) of the node pool to - * update. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * @type array|\Google\Protobuf\Internal\RepeatedField $locations - * The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * node pool's nodes should be located. Changing the locations for a node pool - * will result in nodes being either created or removed from the node pool, - * depending on whether locations are being added or removed. - * @type \Google\Cloud\Container\V1\WorkloadMetadataConfig $workload_metadata_config - * The desired workload metadata config for the node pool. - * @type \Google\Cloud\Container\V1\NodePool\UpgradeSettings $upgrade_settings - * Upgrade settings control disruption and speed of the upgrade. - * @type \Google\Cloud\Container\V1\NetworkTags $tags - * The desired network tags to be applied to all nodes in the node pool. - * If this field is not present, the tags will not be changed. Otherwise, - * the existing network tags will be *replaced* with the provided tags. - * @type \Google\Cloud\Container\V1\NodeTaints $taints - * The desired node taints to be applied to all nodes in the node pool. - * If this field is not present, the taints will not be changed. Otherwise, - * the existing node taints will be *replaced* with the provided taints. - * @type \Google\Cloud\Container\V1\NodeLabels $labels - * The desired node labels to be applied to all nodes in the node pool. - * If this field is not present, the labels will not be changed. Otherwise, - * the existing node labels will be *replaced* with the provided labels. - * @type \Google\Cloud\Container\V1\LinuxNodeConfig $linux_node_config - * Parameters that can be configured on Linux nodes. - * @type \Google\Cloud\Container\V1\NodeKubeletConfig $kubelet_config - * Node kubelet configs. - * @type \Google\Cloud\Container\V1\NodeNetworkConfig $node_network_config - * Node network config. - * @type \Google\Cloud\Container\V1\GcfsConfig $gcfs_config - * GCFS config. - * @type \Google\Cloud\Container\V1\ConfidentialNodes $confidential_nodes - * Confidential nodes config. - * All the nodes in the node pool will be Confidential VM once enabled. - * @type \Google\Cloud\Container\V1\VirtualNIC $gvnic - * Enable or disable gvnic on the node pool. - * @type string $etag - * The current etag of the node pool. - * If an etag is provided and does not match the current etag of the node - * pool, update will be blocked and an ABORTED error will be returned. - * @type \Google\Cloud\Container\V1\FastSocket $fast_socket - * Enable or disable NCCL fast socket for the node pool. - * @type \Google\Cloud\Container\V1\NodePoolLoggingConfig $logging_config - * Logging configuration. - * @type \Google\Cloud\Container\V1\ResourceLabels $resource_labels - * The resource labels for the node pool to use to annotate any related - * Google Compute Engine resources. - * @type \Google\Cloud\Container\V1\WindowsNodeConfig $windows_node_config - * Parameters that can be configured on Windows nodes. - * @type string $machine_type - * Optional. The desired [Google Compute Engine machine - * type](https://cloud.google.com/compute/docs/machine-types) for nodes in the - * node pool. Initiates an upgrade operation that migrates the nodes in the - * node pool to the specified machine type. - * @type string $disk_type - * Optional. The desired disk type (e.g. 'pd-standard', 'pd-ssd' or - * 'pd-balanced') for nodes in the node pool. - * Initiates an upgrade operation that migrates the nodes in the - * node pool to the specified disk type. - * @type int|string $disk_size_gb - * Optional. The desired disk size for nodes in the node pool specified in GB. - * The smallest allowed disk size is 10GB. - * Initiates an upgrade operation that migrates the nodes in the - * node pool to the specified disk size. - * @type \Google\Cloud\Container\V1\ResourceManagerTags $resource_manager_tags - * Desired resource manager tag keys and values to be attached to the nodes - * for managing Compute Engine firewalls using Network Firewall Policies. - * Existing tags will be replaced with new values. - * @type \Google\Cloud\Container\V1\NodePool\QueuedProvisioning $queued_provisioning - * Specifies the configuration of queued provisioning. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the node pool to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @return string - * @deprecated - */ - public function getNodePoolId() - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - return $this->node_pool_id; - } - - /** - * Deprecated. The name of the node pool to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setNodePoolId($var) - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->node_pool_id = $var; - - return $this; - } - - /** - * Required. The Kubernetes version to change the nodes to (typically an - * upgrade). - * Users may specify either explicit versions offered by Kubernetes Engine or - * version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the Kubernetes master version - * - * Generated from protobuf field string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getNodeVersion() - { - return $this->node_version; - } - - /** - * Required. The Kubernetes version to change the nodes to (typically an - * upgrade). - * Users may specify either explicit versions offered by Kubernetes Engine or - * version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the Kubernetes master version - * - * Generated from protobuf field string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setNodeVersion($var) - { - GPBUtil::checkString($var, True); - $this->node_version = $var; - - return $this; - } - - /** - * Required. The desired image type for the node pool. Please see - * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for - * available image types. - * - * Generated from protobuf field string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getImageType() - { - return $this->image_type; - } - - /** - * Required. The desired image type for the node pool. Please see - * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for - * available image types. - * - * Generated from protobuf field string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setImageType($var) - { - GPBUtil::checkString($var, True); - $this->image_type = $var; - - return $this; - } - - /** - * The name (project, location, cluster, node pool) of the node pool to - * update. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 8; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster, node pool) of the node pool to - * update. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 8; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * node pool's nodes should be located. Changing the locations for a node pool - * will result in nodes being either created or removed from the node pool, - * depending on whether locations are being added or removed. - * - * Generated from protobuf field repeated string locations = 13; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getLocations() - { - return $this->locations; - } - - /** - * The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * node pool's nodes should be located. Changing the locations for a node pool - * will result in nodes being either created or removed from the node pool, - * depending on whether locations are being added or removed. - * - * Generated from protobuf field repeated string locations = 13; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->locations = $arr; - - return $this; - } - - /** - * The desired workload metadata config for the node pool. - * - * Generated from protobuf field .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * @return \Google\Cloud\Container\V1\WorkloadMetadataConfig|null - */ - public function getWorkloadMetadataConfig() - { - return $this->workload_metadata_config; - } - - public function hasWorkloadMetadataConfig() - { - return isset($this->workload_metadata_config); - } - - public function clearWorkloadMetadataConfig() - { - unset($this->workload_metadata_config); - } - - /** - * The desired workload metadata config for the node pool. - * - * Generated from protobuf field .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * @param \Google\Cloud\Container\V1\WorkloadMetadataConfig $var - * @return $this - */ - public function setWorkloadMetadataConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\WorkloadMetadataConfig::class); - $this->workload_metadata_config = $var; - - return $this; - } - - /** - * Upgrade settings control disruption and speed of the upgrade. - * - * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - * @return \Google\Cloud\Container\V1\NodePool\UpgradeSettings|null - */ - public function getUpgradeSettings() - { - return $this->upgrade_settings; - } - - public function hasUpgradeSettings() - { - return isset($this->upgrade_settings); - } - - public function clearUpgradeSettings() - { - unset($this->upgrade_settings); - } - - /** - * Upgrade settings control disruption and speed of the upgrade. - * - * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - * @param \Google\Cloud\Container\V1\NodePool\UpgradeSettings $var - * @return $this - */ - public function setUpgradeSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool\UpgradeSettings::class); - $this->upgrade_settings = $var; - - return $this; - } - - /** - * The desired network tags to be applied to all nodes in the node pool. - * If this field is not present, the tags will not be changed. Otherwise, - * the existing network tags will be *replaced* with the provided tags. - * - * Generated from protobuf field .google.container.v1.NetworkTags tags = 16; - * @return \Google\Cloud\Container\V1\NetworkTags|null - */ - public function getTags() - { - return $this->tags; - } - - public function hasTags() - { - return isset($this->tags); - } - - public function clearTags() - { - unset($this->tags); - } - - /** - * The desired network tags to be applied to all nodes in the node pool. - * If this field is not present, the tags will not be changed. Otherwise, - * the existing network tags will be *replaced* with the provided tags. - * - * Generated from protobuf field .google.container.v1.NetworkTags tags = 16; - * @param \Google\Cloud\Container\V1\NetworkTags $var - * @return $this - */ - public function setTags($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkTags::class); - $this->tags = $var; - - return $this; - } - - /** - * The desired node taints to be applied to all nodes in the node pool. - * If this field is not present, the taints will not be changed. Otherwise, - * the existing node taints will be *replaced* with the provided taints. - * - * Generated from protobuf field .google.container.v1.NodeTaints taints = 17; - * @return \Google\Cloud\Container\V1\NodeTaints|null - */ - public function getTaints() - { - return $this->taints; - } - - public function hasTaints() - { - return isset($this->taints); - } - - public function clearTaints() - { - unset($this->taints); - } - - /** - * The desired node taints to be applied to all nodes in the node pool. - * If this field is not present, the taints will not be changed. Otherwise, - * the existing node taints will be *replaced* with the provided taints. - * - * Generated from protobuf field .google.container.v1.NodeTaints taints = 17; - * @param \Google\Cloud\Container\V1\NodeTaints $var - * @return $this - */ - public function setTaints($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeTaints::class); - $this->taints = $var; - - return $this; - } - - /** - * The desired node labels to be applied to all nodes in the node pool. - * If this field is not present, the labels will not be changed. Otherwise, - * the existing node labels will be *replaced* with the provided labels. - * - * Generated from protobuf field .google.container.v1.NodeLabels labels = 18; - * @return \Google\Cloud\Container\V1\NodeLabels|null - */ - public function getLabels() - { - return $this->labels; - } - - public function hasLabels() - { - return isset($this->labels); - } - - public function clearLabels() - { - unset($this->labels); - } - - /** - * The desired node labels to be applied to all nodes in the node pool. - * If this field is not present, the labels will not be changed. Otherwise, - * the existing node labels will be *replaced* with the provided labels. - * - * Generated from protobuf field .google.container.v1.NodeLabels labels = 18; - * @param \Google\Cloud\Container\V1\NodeLabels $var - * @return $this - */ - public function setLabels($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeLabels::class); - $this->labels = $var; - - return $this; - } - - /** - * Parameters that can be configured on Linux nodes. - * - * Generated from protobuf field .google.container.v1.LinuxNodeConfig linux_node_config = 19; - * @return \Google\Cloud\Container\V1\LinuxNodeConfig|null - */ - public function getLinuxNodeConfig() - { - return $this->linux_node_config; - } - - public function hasLinuxNodeConfig() - { - return isset($this->linux_node_config); - } - - public function clearLinuxNodeConfig() - { - unset($this->linux_node_config); - } - - /** - * Parameters that can be configured on Linux nodes. - * - * Generated from protobuf field .google.container.v1.LinuxNodeConfig linux_node_config = 19; - * @param \Google\Cloud\Container\V1\LinuxNodeConfig $var - * @return $this - */ - public function setLinuxNodeConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LinuxNodeConfig::class); - $this->linux_node_config = $var; - - return $this; - } - - /** - * Node kubelet configs. - * - * Generated from protobuf field .google.container.v1.NodeKubeletConfig kubelet_config = 20; - * @return \Google\Cloud\Container\V1\NodeKubeletConfig|null - */ - public function getKubeletConfig() - { - return $this->kubelet_config; - } - - public function hasKubeletConfig() - { - return isset($this->kubelet_config); - } - - public function clearKubeletConfig() - { - unset($this->kubelet_config); - } - - /** - * Node kubelet configs. - * - * Generated from protobuf field .google.container.v1.NodeKubeletConfig kubelet_config = 20; - * @param \Google\Cloud\Container\V1\NodeKubeletConfig $var - * @return $this - */ - public function setKubeletConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeKubeletConfig::class); - $this->kubelet_config = $var; - - return $this; - } - - /** - * Node network config. - * - * Generated from protobuf field .google.container.v1.NodeNetworkConfig node_network_config = 21; - * @return \Google\Cloud\Container\V1\NodeNetworkConfig|null - */ - public function getNodeNetworkConfig() - { - return $this->node_network_config; - } - - public function hasNodeNetworkConfig() - { - return isset($this->node_network_config); - } - - public function clearNodeNetworkConfig() - { - unset($this->node_network_config); - } - - /** - * Node network config. - * - * Generated from protobuf field .google.container.v1.NodeNetworkConfig node_network_config = 21; - * @param \Google\Cloud\Container\V1\NodeNetworkConfig $var - * @return $this - */ - public function setNodeNetworkConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeNetworkConfig::class); - $this->node_network_config = $var; - - return $this; - } - - /** - * GCFS config. - * - * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 22; - * @return \Google\Cloud\Container\V1\GcfsConfig|null - */ - public function getGcfsConfig() - { - return $this->gcfs_config; - } - - public function hasGcfsConfig() - { - return isset($this->gcfs_config); - } - - public function clearGcfsConfig() - { - unset($this->gcfs_config); - } - - /** - * GCFS config. - * - * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 22; - * @param \Google\Cloud\Container\V1\GcfsConfig $var - * @return $this - */ - public function setGcfsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GcfsConfig::class); - $this->gcfs_config = $var; - - return $this; - } - - /** - * Confidential nodes config. - * All the nodes in the node pool will be Confidential VM once enabled. - * - * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 23; - * @return \Google\Cloud\Container\V1\ConfidentialNodes|null - */ - public function getConfidentialNodes() - { - return $this->confidential_nodes; - } - - public function hasConfidentialNodes() - { - return isset($this->confidential_nodes); - } - - public function clearConfidentialNodes() - { - unset($this->confidential_nodes); - } - - /** - * Confidential nodes config. - * All the nodes in the node pool will be Confidential VM once enabled. - * - * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 23; - * @param \Google\Cloud\Container\V1\ConfidentialNodes $var - * @return $this - */ - public function setConfidentialNodes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ConfidentialNodes::class); - $this->confidential_nodes = $var; - - return $this; - } - - /** - * Enable or disable gvnic on the node pool. - * - * Generated from protobuf field .google.container.v1.VirtualNIC gvnic = 29; - * @return \Google\Cloud\Container\V1\VirtualNIC|null - */ - public function getGvnic() - { - return $this->gvnic; - } - - public function hasGvnic() - { - return isset($this->gvnic); - } - - public function clearGvnic() - { - unset($this->gvnic); - } - - /** - * Enable or disable gvnic on the node pool. - * - * Generated from protobuf field .google.container.v1.VirtualNIC gvnic = 29; - * @param \Google\Cloud\Container\V1\VirtualNIC $var - * @return $this - */ - public function setGvnic($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\VirtualNIC::class); - $this->gvnic = $var; - - return $this; - } - - /** - * The current etag of the node pool. - * If an etag is provided and does not match the current etag of the node - * pool, update will be blocked and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 30; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * The current etag of the node pool. - * If an etag is provided and does not match the current etag of the node - * pool, update will be blocked and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 30; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Enable or disable NCCL fast socket for the node pool. - * - * Generated from protobuf field .google.container.v1.FastSocket fast_socket = 31; - * @return \Google\Cloud\Container\V1\FastSocket|null - */ - public function getFastSocket() - { - return $this->fast_socket; - } - - public function hasFastSocket() - { - return isset($this->fast_socket); - } - - public function clearFastSocket() - { - unset($this->fast_socket); - } - - /** - * Enable or disable NCCL fast socket for the node pool. - * - * Generated from protobuf field .google.container.v1.FastSocket fast_socket = 31; - * @param \Google\Cloud\Container\V1\FastSocket $var - * @return $this - */ - public function setFastSocket($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\FastSocket::class); - $this->fast_socket = $var; - - return $this; - } - - /** - * Logging configuration. - * - * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 32; - * @return \Google\Cloud\Container\V1\NodePoolLoggingConfig|null - */ - public function getLoggingConfig() - { - return $this->logging_config; - } - - public function hasLoggingConfig() - { - return isset($this->logging_config); - } - - public function clearLoggingConfig() - { - unset($this->logging_config); - } - - /** - * Logging configuration. - * - * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 32; - * @param \Google\Cloud\Container\V1\NodePoolLoggingConfig $var - * @return $this - */ - public function setLoggingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolLoggingConfig::class); - $this->logging_config = $var; - - return $this; - } - - /** - * The resource labels for the node pool to use to annotate any related - * Google Compute Engine resources. - * - * Generated from protobuf field .google.container.v1.ResourceLabels resource_labels = 33; - * @return \Google\Cloud\Container\V1\ResourceLabels|null - */ - public function getResourceLabels() - { - return $this->resource_labels; - } - - public function hasResourceLabels() - { - return isset($this->resource_labels); - } - - public function clearResourceLabels() - { - unset($this->resource_labels); - } - - /** - * The resource labels for the node pool to use to annotate any related - * Google Compute Engine resources. - * - * Generated from protobuf field .google.container.v1.ResourceLabels resource_labels = 33; - * @param \Google\Cloud\Container\V1\ResourceLabels $var - * @return $this - */ - public function setResourceLabels($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ResourceLabels::class); - $this->resource_labels = $var; - - return $this; - } - - /** - * Parameters that can be configured on Windows nodes. - * - * Generated from protobuf field .google.container.v1.WindowsNodeConfig windows_node_config = 34; - * @return \Google\Cloud\Container\V1\WindowsNodeConfig|null - */ - public function getWindowsNodeConfig() - { - return $this->windows_node_config; - } - - public function hasWindowsNodeConfig() - { - return isset($this->windows_node_config); - } - - public function clearWindowsNodeConfig() - { - unset($this->windows_node_config); - } - - /** - * Parameters that can be configured on Windows nodes. - * - * Generated from protobuf field .google.container.v1.WindowsNodeConfig windows_node_config = 34; - * @param \Google\Cloud\Container\V1\WindowsNodeConfig $var - * @return $this - */ - public function setWindowsNodeConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\WindowsNodeConfig::class); - $this->windows_node_config = $var; - - return $this; - } - - /** - * Optional. The desired [Google Compute Engine machine - * type](https://cloud.google.com/compute/docs/machine-types) for nodes in the - * node pool. Initiates an upgrade operation that migrates the nodes in the - * node pool to the specified machine type. - * - * Generated from protobuf field string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getMachineType() - { - return $this->machine_type; - } - - /** - * Optional. The desired [Google Compute Engine machine - * type](https://cloud.google.com/compute/docs/machine-types) for nodes in the - * node pool. Initiates an upgrade operation that migrates the nodes in the - * node pool to the specified machine type. - * - * Generated from protobuf field string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setMachineType($var) - { - GPBUtil::checkString($var, True); - $this->machine_type = $var; - - return $this; - } - - /** - * Optional. The desired disk type (e.g. 'pd-standard', 'pd-ssd' or - * 'pd-balanced') for nodes in the node pool. - * Initiates an upgrade operation that migrates the nodes in the - * node pool to the specified disk type. - * - * Generated from protobuf field string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDiskType() - { - return $this->disk_type; - } - - /** - * Optional. The desired disk type (e.g. 'pd-standard', 'pd-ssd' or - * 'pd-balanced') for nodes in the node pool. - * Initiates an upgrade operation that migrates the nodes in the - * node pool to the specified disk type. - * - * Generated from protobuf field string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDiskType($var) - { - GPBUtil::checkString($var, True); - $this->disk_type = $var; - - return $this; - } - - /** - * Optional. The desired disk size for nodes in the node pool specified in GB. - * The smallest allowed disk size is 10GB. - * Initiates an upgrade operation that migrates the nodes in the - * node pool to the specified disk size. - * - * Generated from protobuf field int64 disk_size_gb = 38 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string - */ - public function getDiskSizeGb() - { - return $this->disk_size_gb; - } - - /** - * Optional. The desired disk size for nodes in the node pool specified in GB. - * The smallest allowed disk size is 10GB. - * Initiates an upgrade operation that migrates the nodes in the - * node pool to the specified disk size. - * - * Generated from protobuf field int64 disk_size_gb = 38 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string $var - * @return $this - */ - public function setDiskSizeGb($var) - { - GPBUtil::checkInt64($var); - $this->disk_size_gb = $var; - - return $this; - } - - /** - * Desired resource manager tag keys and values to be attached to the nodes - * for managing Compute Engine firewalls using Network Firewall Policies. - * Existing tags will be replaced with new values. - * - * Generated from protobuf field .google.container.v1.ResourceManagerTags resource_manager_tags = 39; - * @return \Google\Cloud\Container\V1\ResourceManagerTags|null - */ - public function getResourceManagerTags() - { - return $this->resource_manager_tags; - } - - public function hasResourceManagerTags() - { - return isset($this->resource_manager_tags); - } - - public function clearResourceManagerTags() - { - unset($this->resource_manager_tags); - } - - /** - * Desired resource manager tag keys and values to be attached to the nodes - * for managing Compute Engine firewalls using Network Firewall Policies. - * Existing tags will be replaced with new values. - * - * Generated from protobuf field .google.container.v1.ResourceManagerTags resource_manager_tags = 39; - * @param \Google\Cloud\Container\V1\ResourceManagerTags $var - * @return $this - */ - public function setResourceManagerTags($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ResourceManagerTags::class); - $this->resource_manager_tags = $var; - - return $this; - } - - /** - * Specifies the configuration of queued provisioning. - * - * Generated from protobuf field .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 42; - * @return \Google\Cloud\Container\V1\NodePool\QueuedProvisioning|null - */ - public function getQueuedProvisioning() - { - return $this->queued_provisioning; - } - - public function hasQueuedProvisioning() - { - return isset($this->queued_provisioning); - } - - public function clearQueuedProvisioning() - { - unset($this->queued_provisioning); - } - - /** - * Specifies the configuration of queued provisioning. - * - * Generated from protobuf field .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 42; - * @param \Google\Cloud\Container\V1\NodePool\QueuedProvisioning $var - * @return $this - */ - public function setQueuedProvisioning($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool\QueuedProvisioning::class); - $this->queued_provisioning = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeAvailableEvent.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeAvailableEvent.php deleted file mode 100644 index fa7673b4da19..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeAvailableEvent.php +++ /dev/null @@ -1,188 +0,0 @@ -google.container.v1.UpgradeAvailableEvent - */ -class UpgradeAvailableEvent extends \Google\Protobuf\Internal\Message -{ - /** - * The release version available for upgrade. - * - * Generated from protobuf field string version = 1; - */ - protected $version = ''; - /** - * The resource type of the release version. - * - * Generated from protobuf field .google.container.v1.UpgradeResourceType resource_type = 2; - */ - protected $resource_type = 0; - /** - * The release channel of the version. If empty, it means a non-channel - * release. - * - * Generated from protobuf field .google.container.v1.ReleaseChannel release_channel = 3; - */ - protected $release_channel = null; - /** - * Optional relative path to the resource. For example, the relative path of - * the node pool. - * - * Generated from protobuf field string resource = 4; - */ - protected $resource = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $version - * The release version available for upgrade. - * @type int $resource_type - * The resource type of the release version. - * @type \Google\Cloud\Container\V1\ReleaseChannel $release_channel - * The release channel of the version. If empty, it means a non-channel - * release. - * @type string $resource - * Optional relative path to the resource. For example, the relative path of - * the node pool. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The release version available for upgrade. - * - * Generated from protobuf field string version = 1; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * The release version available for upgrade. - * - * Generated from protobuf field string version = 1; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * The resource type of the release version. - * - * Generated from protobuf field .google.container.v1.UpgradeResourceType resource_type = 2; - * @return int - */ - public function getResourceType() - { - return $this->resource_type; - } - - /** - * The resource type of the release version. - * - * Generated from protobuf field .google.container.v1.UpgradeResourceType resource_type = 2; - * @param int $var - * @return $this - */ - public function setResourceType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\UpgradeResourceType::class); - $this->resource_type = $var; - - return $this; - } - - /** - * The release channel of the version. If empty, it means a non-channel - * release. - * - * Generated from protobuf field .google.container.v1.ReleaseChannel release_channel = 3; - * @return \Google\Cloud\Container\V1\ReleaseChannel|null - */ - public function getReleaseChannel() - { - return $this->release_channel; - } - - public function hasReleaseChannel() - { - return isset($this->release_channel); - } - - public function clearReleaseChannel() - { - unset($this->release_channel); - } - - /** - * The release channel of the version. If empty, it means a non-channel - * release. - * - * Generated from protobuf field .google.container.v1.ReleaseChannel release_channel = 3; - * @param \Google\Cloud\Container\V1\ReleaseChannel $var - * @return $this - */ - public function setReleaseChannel($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ReleaseChannel::class); - $this->release_channel = $var; - - return $this; - } - - /** - * Optional relative path to the resource. For example, the relative path of - * the node pool. - * - * Generated from protobuf field string resource = 4; - * @return string - */ - public function getResource() - { - return $this->resource; - } - - /** - * Optional relative path to the resource. For example, the relative path of - * the node pool. - * - * Generated from protobuf field string resource = 4; - * @param string $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkString($var, True); - $this->resource = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeEvent.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeEvent.php deleted file mode 100644 index 373792fc7920..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeEvent.php +++ /dev/null @@ -1,252 +0,0 @@ -google.container.v1.UpgradeEvent - */ -class UpgradeEvent extends \Google\Protobuf\Internal\Message -{ - /** - * The resource type that is upgrading. - * - * Generated from protobuf field .google.container.v1.UpgradeResourceType resource_type = 1; - */ - protected $resource_type = 0; - /** - * The operation associated with this upgrade. - * - * Generated from protobuf field string operation = 2; - */ - protected $operation = ''; - /** - * The time when the operation was started. - * - * Generated from protobuf field .google.protobuf.Timestamp operation_start_time = 3; - */ - protected $operation_start_time = null; - /** - * The current version before the upgrade. - * - * Generated from protobuf field string current_version = 4; - */ - protected $current_version = ''; - /** - * The target version for the upgrade. - * - * Generated from protobuf field string target_version = 5; - */ - protected $target_version = ''; - /** - * Optional relative path to the resource. For example in node pool upgrades, - * the relative path of the node pool. - * - * Generated from protobuf field string resource = 6; - */ - protected $resource = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $resource_type - * The resource type that is upgrading. - * @type string $operation - * The operation associated with this upgrade. - * @type \Google\Protobuf\Timestamp $operation_start_time - * The time when the operation was started. - * @type string $current_version - * The current version before the upgrade. - * @type string $target_version - * The target version for the upgrade. - * @type string $resource - * Optional relative path to the resource. For example in node pool upgrades, - * the relative path of the node pool. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The resource type that is upgrading. - * - * Generated from protobuf field .google.container.v1.UpgradeResourceType resource_type = 1; - * @return int - */ - public function getResourceType() - { - return $this->resource_type; - } - - /** - * The resource type that is upgrading. - * - * Generated from protobuf field .google.container.v1.UpgradeResourceType resource_type = 1; - * @param int $var - * @return $this - */ - public function setResourceType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\UpgradeResourceType::class); - $this->resource_type = $var; - - return $this; - } - - /** - * The operation associated with this upgrade. - * - * Generated from protobuf field string operation = 2; - * @return string - */ - public function getOperation() - { - return $this->operation; - } - - /** - * The operation associated with this upgrade. - * - * Generated from protobuf field string operation = 2; - * @param string $var - * @return $this - */ - public function setOperation($var) - { - GPBUtil::checkString($var, True); - $this->operation = $var; - - return $this; - } - - /** - * The time when the operation was started. - * - * Generated from protobuf field .google.protobuf.Timestamp operation_start_time = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getOperationStartTime() - { - return $this->operation_start_time; - } - - public function hasOperationStartTime() - { - return isset($this->operation_start_time); - } - - public function clearOperationStartTime() - { - unset($this->operation_start_time); - } - - /** - * The time when the operation was started. - * - * Generated from protobuf field .google.protobuf.Timestamp operation_start_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setOperationStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->operation_start_time = $var; - - return $this; - } - - /** - * The current version before the upgrade. - * - * Generated from protobuf field string current_version = 4; - * @return string - */ - public function getCurrentVersion() - { - return $this->current_version; - } - - /** - * The current version before the upgrade. - * - * Generated from protobuf field string current_version = 4; - * @param string $var - * @return $this - */ - public function setCurrentVersion($var) - { - GPBUtil::checkString($var, True); - $this->current_version = $var; - - return $this; - } - - /** - * The target version for the upgrade. - * - * Generated from protobuf field string target_version = 5; - * @return string - */ - public function getTargetVersion() - { - return $this->target_version; - } - - /** - * The target version for the upgrade. - * - * Generated from protobuf field string target_version = 5; - * @param string $var - * @return $this - */ - public function setTargetVersion($var) - { - GPBUtil::checkString($var, True); - $this->target_version = $var; - - return $this; - } - - /** - * Optional relative path to the resource. For example in node pool upgrades, - * the relative path of the node pool. - * - * Generated from protobuf field string resource = 6; - * @return string - */ - public function getResource() - { - return $this->resource; - } - - /** - * Optional relative path to the resource. For example in node pool upgrades, - * the relative path of the node pool. - * - * Generated from protobuf field string resource = 6; - * @param string $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkString($var, True); - $this->resource = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeResourceType.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeResourceType.php deleted file mode 100644 index 53f1f2370b97..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeResourceType.php +++ /dev/null @@ -1,62 +0,0 @@ -google.container.v1.UpgradeResourceType - */ -class UpgradeResourceType -{ - /** - * Default value. This shouldn't be used. - * - * Generated from protobuf enum UPGRADE_RESOURCE_TYPE_UNSPECIFIED = 0; - */ - const UPGRADE_RESOURCE_TYPE_UNSPECIFIED = 0; - /** - * Master / control plane - * - * Generated from protobuf enum MASTER = 1; - */ - const MASTER = 1; - /** - * Node pool - * - * Generated from protobuf enum NODE_POOL = 2; - */ - const NODE_POOL = 2; - - private static $valueToName = [ - self::UPGRADE_RESOURCE_TYPE_UNSPECIFIED => 'UPGRADE_RESOURCE_TYPE_UNSPECIFIED', - self::MASTER => 'MASTER', - self::NODE_POOL => 'NODE_POOL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetwork.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetwork.php deleted file mode 100644 index 64579e77c1be..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetwork.php +++ /dev/null @@ -1,224 +0,0 @@ -google.container.v1.UsableSubnetwork - */ -class UsableSubnetwork extends \Google\Protobuf\Internal\Message -{ - /** - * Subnetwork Name. - * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet - * - * Generated from protobuf field string subnetwork = 1; - */ - protected $subnetwork = ''; - /** - * Network Name. - * Example: projects/my-project/global/networks/my-network - * - * Generated from protobuf field string network = 2; - */ - protected $network = ''; - /** - * The range of internal addresses that are owned by this subnetwork. - * - * Generated from protobuf field string ip_cidr_range = 3; - */ - protected $ip_cidr_range = ''; - /** - * Secondary IP ranges. - * - * Generated from protobuf field repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - */ - private $secondary_ip_ranges; - /** - * A human readable status message representing the reasons for cases where - * the caller cannot use the secondary ranges under the subnet. For example if - * the secondary_ip_ranges is empty due to a permission issue, an insufficient - * permission message will be given by status_message. - * - * Generated from protobuf field string status_message = 5; - */ - protected $status_message = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $subnetwork - * Subnetwork Name. - * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet - * @type string $network - * Network Name. - * Example: projects/my-project/global/networks/my-network - * @type string $ip_cidr_range - * The range of internal addresses that are owned by this subnetwork. - * @type array<\Google\Cloud\Container\V1\UsableSubnetworkSecondaryRange>|\Google\Protobuf\Internal\RepeatedField $secondary_ip_ranges - * Secondary IP ranges. - * @type string $status_message - * A human readable status message representing the reasons for cases where - * the caller cannot use the secondary ranges under the subnet. For example if - * the secondary_ip_ranges is empty due to a permission issue, an insufficient - * permission message will be given by status_message. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Subnetwork Name. - * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet - * - * Generated from protobuf field string subnetwork = 1; - * @return string - */ - public function getSubnetwork() - { - return $this->subnetwork; - } - - /** - * Subnetwork Name. - * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet - * - * Generated from protobuf field string subnetwork = 1; - * @param string $var - * @return $this - */ - public function setSubnetwork($var) - { - GPBUtil::checkString($var, True); - $this->subnetwork = $var; - - return $this; - } - - /** - * Network Name. - * Example: projects/my-project/global/networks/my-network - * - * Generated from protobuf field string network = 2; - * @return string - */ - public function getNetwork() - { - return $this->network; - } - - /** - * Network Name. - * Example: projects/my-project/global/networks/my-network - * - * Generated from protobuf field string network = 2; - * @param string $var - * @return $this - */ - public function setNetwork($var) - { - GPBUtil::checkString($var, True); - $this->network = $var; - - return $this; - } - - /** - * The range of internal addresses that are owned by this subnetwork. - * - * Generated from protobuf field string ip_cidr_range = 3; - * @return string - */ - public function getIpCidrRange() - { - return $this->ip_cidr_range; - } - - /** - * The range of internal addresses that are owned by this subnetwork. - * - * Generated from protobuf field string ip_cidr_range = 3; - * @param string $var - * @return $this - */ - public function setIpCidrRange($var) - { - GPBUtil::checkString($var, True); - $this->ip_cidr_range = $var; - - return $this; - } - - /** - * Secondary IP ranges. - * - * Generated from protobuf field repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSecondaryIpRanges() - { - return $this->secondary_ip_ranges; - } - - /** - * Secondary IP ranges. - * - * Generated from protobuf field repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * @param array<\Google\Cloud\Container\V1\UsableSubnetworkSecondaryRange>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSecondaryIpRanges($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\UsableSubnetworkSecondaryRange::class); - $this->secondary_ip_ranges = $arr; - - return $this; - } - - /** - * A human readable status message representing the reasons for cases where - * the caller cannot use the secondary ranges under the subnet. For example if - * the secondary_ip_ranges is empty due to a permission issue, an insufficient - * permission message will be given by status_message. - * - * Generated from protobuf field string status_message = 5; - * @return string - */ - public function getStatusMessage() - { - return $this->status_message; - } - - /** - * A human readable status message representing the reasons for cases where - * the caller cannot use the secondary ranges under the subnet. For example if - * the secondary_ip_ranges is empty due to a permission issue, an insufficient - * permission message will be given by status_message. - * - * Generated from protobuf field string status_message = 5; - * @param string $var - * @return $this - */ - public function setStatusMessage($var) - { - GPBUtil::checkString($var, True); - $this->status_message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange.php deleted file mode 100644 index d66bb1a9839e..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange.php +++ /dev/null @@ -1,139 +0,0 @@ -google.container.v1.UsableSubnetworkSecondaryRange - */ -class UsableSubnetworkSecondaryRange extends \Google\Protobuf\Internal\Message -{ - /** - * The name associated with this subnetwork secondary range, used when adding - * an alias IP range to a VM instance. - * - * Generated from protobuf field string range_name = 1; - */ - protected $range_name = ''; - /** - * The range of IP addresses belonging to this subnetwork secondary range. - * - * Generated from protobuf field string ip_cidr_range = 2; - */ - protected $ip_cidr_range = ''; - /** - * This field is to determine the status of the secondary range programmably. - * - * Generated from protobuf field .google.container.v1.UsableSubnetworkSecondaryRange.Status status = 3; - */ - protected $status = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $range_name - * The name associated with this subnetwork secondary range, used when adding - * an alias IP range to a VM instance. - * @type string $ip_cidr_range - * The range of IP addresses belonging to this subnetwork secondary range. - * @type int $status - * This field is to determine the status of the secondary range programmably. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The name associated with this subnetwork secondary range, used when adding - * an alias IP range to a VM instance. - * - * Generated from protobuf field string range_name = 1; - * @return string - */ - public function getRangeName() - { - return $this->range_name; - } - - /** - * The name associated with this subnetwork secondary range, used when adding - * an alias IP range to a VM instance. - * - * Generated from protobuf field string range_name = 1; - * @param string $var - * @return $this - */ - public function setRangeName($var) - { - GPBUtil::checkString($var, True); - $this->range_name = $var; - - return $this; - } - - /** - * The range of IP addresses belonging to this subnetwork secondary range. - * - * Generated from protobuf field string ip_cidr_range = 2; - * @return string - */ - public function getIpCidrRange() - { - return $this->ip_cidr_range; - } - - /** - * The range of IP addresses belonging to this subnetwork secondary range. - * - * Generated from protobuf field string ip_cidr_range = 2; - * @param string $var - * @return $this - */ - public function setIpCidrRange($var) - { - GPBUtil::checkString($var, True); - $this->ip_cidr_range = $var; - - return $this; - } - - /** - * This field is to determine the status of the secondary range programmably. - * - * Generated from protobuf field .google.container.v1.UsableSubnetworkSecondaryRange.Status status = 3; - * @return int - */ - public function getStatus() - { - return $this->status; - } - - /** - * This field is to determine the status of the secondary range programmably. - * - * Generated from protobuf field .google.container.v1.UsableSubnetworkSecondaryRange.Status status = 3; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\UsableSubnetworkSecondaryRange\Status::class); - $this->status = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange/Status.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange/Status.php deleted file mode 100644 index 6c4d490a1015..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange/Status.php +++ /dev/null @@ -1,83 +0,0 @@ -google.container.v1.UsableSubnetworkSecondaryRange.Status - */ -class Status -{ - /** - * UNKNOWN is the zero value of the Status enum. It's not a valid status. - * - * Generated from protobuf enum UNKNOWN = 0; - */ - const UNKNOWN = 0; - /** - * UNUSED denotes that this range is unclaimed by any cluster. - * - * Generated from protobuf enum UNUSED = 1; - */ - const UNUSED = 1; - /** - * IN_USE_SERVICE denotes that this range is claimed by cluster(s) for - * services. User-managed services range can be shared between clusters - * within the same subnetwork. - * - * Generated from protobuf enum IN_USE_SERVICE = 2; - */ - const IN_USE_SERVICE = 2; - /** - * IN_USE_SHAREABLE_POD denotes this range was created by the network admin - * and is currently claimed by a cluster for pods. It can only be used by - * other clusters as a pod range. - * - * Generated from protobuf enum IN_USE_SHAREABLE_POD = 3; - */ - const IN_USE_SHAREABLE_POD = 3; - /** - * IN_USE_MANAGED_POD denotes this range was created by GKE and is claimed - * for pods. It cannot be used for other clusters. - * - * Generated from protobuf enum IN_USE_MANAGED_POD = 4; - */ - const IN_USE_MANAGED_POD = 4; - - private static $valueToName = [ - self::UNKNOWN => 'UNKNOWN', - self::UNUSED => 'UNUSED', - self::IN_USE_SERVICE => 'IN_USE_SERVICE', - self::IN_USE_SHAREABLE_POD => 'IN_USE_SHAREABLE_POD', - self::IN_USE_MANAGED_POD => 'IN_USE_MANAGED_POD', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Status::class, \Google\Cloud\Container\V1\UsableSubnetworkSecondaryRange_Status::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/VerticalPodAutoscaling.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/VerticalPodAutoscaling.php deleted file mode 100644 index 2c29d49c252a..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/VerticalPodAutoscaling.php +++ /dev/null @@ -1,69 +0,0 @@ -google.container.v1.VerticalPodAutoscaling - */ -class VerticalPodAutoscaling extends \Google\Protobuf\Internal\Message -{ - /** - * Enables vertical pod autoscaling. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Enables vertical pod autoscaling. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Enables vertical pod autoscaling. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Enables vertical pod autoscaling. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/VirtualNIC.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/VirtualNIC.php deleted file mode 100644 index bc2237dfd651..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/VirtualNIC.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.VirtualNIC - */ -class VirtualNIC extends \Google\Protobuf\Internal\Message -{ - /** - * Whether gVNIC features are enabled in the node pool. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether gVNIC features are enabled in the node pool. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether gVNIC features are enabled in the node pool. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether gVNIC features are enabled in the node pool. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig.php deleted file mode 100644 index 33744a598dae..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig.php +++ /dev/null @@ -1,69 +0,0 @@ -google.container.v1.WindowsNodeConfig - */ -class WindowsNodeConfig extends \Google\Protobuf\Internal\Message -{ - /** - * OSVersion specifies the Windows node config to be used on the node - * - * Generated from protobuf field .google.container.v1.WindowsNodeConfig.OSVersion os_version = 1; - */ - protected $os_version = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $os_version - * OSVersion specifies the Windows node config to be used on the node - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * OSVersion specifies the Windows node config to be used on the node - * - * Generated from protobuf field .google.container.v1.WindowsNodeConfig.OSVersion os_version = 1; - * @return int - */ - public function getOsVersion() - { - return $this->os_version; - } - - /** - * OSVersion specifies the Windows node config to be used on the node - * - * Generated from protobuf field .google.container.v1.WindowsNodeConfig.OSVersion os_version = 1; - * @param int $var - * @return $this - */ - public function setOsVersion($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\WindowsNodeConfig\OSVersion::class); - $this->os_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig/OSVersion.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig/OSVersion.php deleted file mode 100644 index 3e27aee4f517..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig/OSVersion.php +++ /dev/null @@ -1,64 +0,0 @@ -google.container.v1.WindowsNodeConfig.OSVersion - */ -class OSVersion -{ - /** - * When OSVersion is not specified - * - * Generated from protobuf enum OS_VERSION_UNSPECIFIED = 0; - */ - const OS_VERSION_UNSPECIFIED = 0; - /** - * LTSC2019 specifies to use LTSC2019 as the Windows Servercore Base Image - * - * Generated from protobuf enum OS_VERSION_LTSC2019 = 1; - */ - const OS_VERSION_LTSC2019 = 1; - /** - * LTSC2022 specifies to use LTSC2022 as the Windows Servercore Base Image - * - * Generated from protobuf enum OS_VERSION_LTSC2022 = 2; - */ - const OS_VERSION_LTSC2022 = 2; - - private static $valueToName = [ - self::OS_VERSION_UNSPECIFIED => 'OS_VERSION_UNSPECIFIED', - self::OS_VERSION_LTSC2019 => 'OS_VERSION_LTSC2019', - self::OS_VERSION_LTSC2022 => 'OS_VERSION_LTSC2022', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(OSVersion::class, \Google\Cloud\Container\V1\WindowsNodeConfig_OSVersion::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadIdentityConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadIdentityConfig.php deleted file mode 100644 index be6d013232be..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadIdentityConfig.php +++ /dev/null @@ -1,68 +0,0 @@ -google.container.v1.WorkloadIdentityConfig - */ -class WorkloadIdentityConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The workload pool to attach all Kubernetes service accounts to. - * - * Generated from protobuf field string workload_pool = 2; - */ - protected $workload_pool = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $workload_pool - * The workload pool to attach all Kubernetes service accounts to. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The workload pool to attach all Kubernetes service accounts to. - * - * Generated from protobuf field string workload_pool = 2; - * @return string - */ - public function getWorkloadPool() - { - return $this->workload_pool; - } - - /** - * The workload pool to attach all Kubernetes service accounts to. - * - * Generated from protobuf field string workload_pool = 2; - * @param string $var - * @return $this - */ - public function setWorkloadPool($var) - { - GPBUtil::checkString($var, True); - $this->workload_pool = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadMetadataConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadMetadataConfig.php deleted file mode 100644 index 1f0ba80a934b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadMetadataConfig.php +++ /dev/null @@ -1,72 +0,0 @@ -google.container.v1.WorkloadMetadataConfig - */ -class WorkloadMetadataConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Mode is the configuration for how to expose metadata to workloads running - * on the node pool. - * - * Generated from protobuf field .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; - */ - protected $mode = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $mode - * Mode is the configuration for how to expose metadata to workloads running - * on the node pool. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Mode is the configuration for how to expose metadata to workloads running - * on the node pool. - * - * Generated from protobuf field .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; - * @return int - */ - public function getMode() - { - return $this->mode; - } - - /** - * Mode is the configuration for how to expose metadata to workloads running - * on the node pool. - * - * Generated from protobuf field .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; - * @param int $var - * @return $this - */ - public function setMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\WorkloadMetadataConfig\Mode::class); - $this->mode = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadMetadataConfig/Mode.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadMetadataConfig/Mode.php deleted file mode 100644 index 60affd9637f5..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadMetadataConfig/Mode.php +++ /dev/null @@ -1,69 +0,0 @@ -google.container.v1.WorkloadMetadataConfig.Mode - */ -class Mode -{ - /** - * Not set. - * - * Generated from protobuf enum MODE_UNSPECIFIED = 0; - */ - const MODE_UNSPECIFIED = 0; - /** - * Expose all Compute Engine metadata to pods. - * - * Generated from protobuf enum GCE_METADATA = 1; - */ - const GCE_METADATA = 1; - /** - * Run the GKE Metadata Server on this node. The GKE Metadata Server exposes - * a metadata API to workloads that is compatible with the V1 Compute - * Metadata APIs exposed by the Compute Engine and App Engine Metadata - * Servers. This feature can only be enabled if Workload Identity is enabled - * at the cluster level. - * - * Generated from protobuf enum GKE_METADATA = 2; - */ - const GKE_METADATA = 2; - - private static $valueToName = [ - self::MODE_UNSPECIFIED => 'MODE_UNSPECIFIED', - self::GCE_METADATA => 'GCE_METADATA', - self::GKE_METADATA => 'GKE_METADATA', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Mode::class, \Google\Cloud\Container\V1\WorkloadMetadataConfig_Mode::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadPolicyConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadPolicyConfig.php deleted file mode 100644 index d00c35e58b5c..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadPolicyConfig.php +++ /dev/null @@ -1,78 +0,0 @@ -google.container.v1.WorkloadPolicyConfig - */ -class WorkloadPolicyConfig extends \Google\Protobuf\Internal\Message -{ - /** - * If true, workloads can use NET_ADMIN capability. - * - * Generated from protobuf field optional bool allow_net_admin = 1; - */ - protected $allow_net_admin = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $allow_net_admin - * If true, workloads can use NET_ADMIN capability. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * If true, workloads can use NET_ADMIN capability. - * - * Generated from protobuf field optional bool allow_net_admin = 1; - * @return bool - */ - public function getAllowNetAdmin() - { - return isset($this->allow_net_admin) ? $this->allow_net_admin : false; - } - - public function hasAllowNetAdmin() - { - return isset($this->allow_net_admin); - } - - public function clearAllowNetAdmin() - { - unset($this->allow_net_admin); - } - - /** - * If true, workloads can use NET_ADMIN capability. - * - * Generated from protobuf field optional bool allow_net_admin = 1; - * @param bool $var - * @return $this - */ - public function setAllowNetAdmin($var) - { - GPBUtil::checkBool($var); - $this->allow_net_admin = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/cancel_operation.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/cancel_operation.php deleted file mode 100644 index 3a7332bcc124..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/cancel_operation.php +++ /dev/null @@ -1,55 +0,0 @@ -cancelOperation($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_CancelOperation_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/check_autopilot_compatibility.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/check_autopilot_compatibility.php deleted file mode 100644 index 929cf42dfc00..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/check_autopilot_compatibility.php +++ /dev/null @@ -1,58 +0,0 @@ -checkAutopilotCompatibility($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_CheckAutopilotCompatibility_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_ip_rotation.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_ip_rotation.php deleted file mode 100644 index daba7a5d92c0..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_ip_rotation.php +++ /dev/null @@ -1,57 +0,0 @@ -completeIPRotation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_CompleteIPRotation_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_node_pool_upgrade.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_node_pool_upgrade.php deleted file mode 100644 index 86a24849c686..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_node_pool_upgrade.php +++ /dev/null @@ -1,56 +0,0 @@ -completeNodePoolUpgrade($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_CompleteNodePoolUpgrade_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_cluster.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_cluster.php deleted file mode 100644 index 792f9fd5de79..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_cluster.php +++ /dev/null @@ -1,73 +0,0 @@ -setCluster($cluster); - - // Call the API and handle any network failures. - try { - /** @var Operation $response */ - $response = $clusterManagerClient->createCluster($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_CreateCluster_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_node_pool.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_node_pool.php deleted file mode 100644 index f957fb2a1e84..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_node_pool.php +++ /dev/null @@ -1,60 +0,0 @@ -setNodePool($nodePool); - - // Call the API and handle any network failures. - try { - /** @var Operation $response */ - $response = $clusterManagerClient->createNodePool($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_CreateNodePool_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_cluster.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_cluster.php deleted file mode 100644 index dcee905c5fe1..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_cluster.php +++ /dev/null @@ -1,65 +0,0 @@ -deleteCluster($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_DeleteCluster_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_node_pool.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_node_pool.php deleted file mode 100644 index 07c57bd330d9..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_node_pool.php +++ /dev/null @@ -1,57 +0,0 @@ -deleteNodePool($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_DeleteNodePool_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_cluster.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_cluster.php deleted file mode 100644 index c25939d2a545..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_cluster.php +++ /dev/null @@ -1,57 +0,0 @@ -getCluster($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_GetCluster_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_json_web_keys.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_json_web_keys.php deleted file mode 100644 index cc6f61b0264a..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_json_web_keys.php +++ /dev/null @@ -1,58 +0,0 @@ -getJSONWebKeys($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_GetJSONWebKeys_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_node_pool.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_node_pool.php deleted file mode 100644 index 8e8e0c6b20db..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_node_pool.php +++ /dev/null @@ -1,57 +0,0 @@ -getNodePool($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_GetNodePool_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_operation.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_operation.php deleted file mode 100644 index 97228030f3af..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_operation.php +++ /dev/null @@ -1,57 +0,0 @@ -getOperation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_GetOperation_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_server_config.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_server_config.php deleted file mode 100644 index 8aee5ac8a1e9..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_server_config.php +++ /dev/null @@ -1,57 +0,0 @@ -getServerConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_GetServerConfig_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_clusters.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_clusters.php deleted file mode 100644 index 744c312fbc0c..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_clusters.php +++ /dev/null @@ -1,58 +0,0 @@ -listClusters($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_ListClusters_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_node_pools.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_node_pools.php deleted file mode 100644 index ef5ce762fec4..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_node_pools.php +++ /dev/null @@ -1,57 +0,0 @@ -listNodePools($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_ListNodePools_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_operations.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_operations.php deleted file mode 100644 index ec8f892990de..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_operations.php +++ /dev/null @@ -1,57 +0,0 @@ -listOperations($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_ListOperations_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_usable_subnetworks.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_usable_subnetworks.php deleted file mode 100644 index 123676616299..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_usable_subnetworks.php +++ /dev/null @@ -1,62 +0,0 @@ -listUsableSubnetworks($request); - - /** @var UsableSubnetwork $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_ListUsableSubnetworks_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/rollback_node_pool_upgrade.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/rollback_node_pool_upgrade.php deleted file mode 100644 index 60fd5dfb1524..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/rollback_node_pool_upgrade.php +++ /dev/null @@ -1,58 +0,0 @@ -rollbackNodePoolUpgrade($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_RollbackNodePoolUpgrade_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_addons_config.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_addons_config.php deleted file mode 100644 index c2a610e4fdc2..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_addons_config.php +++ /dev/null @@ -1,60 +0,0 @@ -setAddonsConfig($addonsConfig); - - // Call the API and handle any network failures. - try { - /** @var Operation $response */ - $response = $clusterManagerClient->setAddonsConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_SetAddonsConfig_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_labels.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_labels.php deleted file mode 100644 index 64b779df0263..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_labels.php +++ /dev/null @@ -1,77 +0,0 @@ -setResourceLabels($resourceLabels) - ->setLabelFingerprint($labelFingerprint); - - // Call the API and handle any network failures. - try { - /** @var Operation $response */ - $response = $clusterManagerClient->setLabels($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $labelFingerprint = '[LABEL_FINGERPRINT]'; - - set_labels_sample($labelFingerprint); -} -// [END container_v1_generated_ClusterManager_SetLabels_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_legacy_abac.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_legacy_abac.php deleted file mode 100644 index 63f3c3c5be5d..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_legacy_abac.php +++ /dev/null @@ -1,70 +0,0 @@ -setEnabled($enabled); - - // Call the API and handle any network failures. - try { - /** @var Operation $response */ - $response = $clusterManagerClient->setLegacyAbac($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $enabled = false; - - set_legacy_abac_sample($enabled); -} -// [END container_v1_generated_ClusterManager_SetLegacyAbac_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_locations.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_locations.php deleted file mode 100644 index 61cc473733c8..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_locations.php +++ /dev/null @@ -1,80 +0,0 @@ -setLocations($locations); - - // Call the API and handle any network failures. - try { - /** @var Operation $response */ - $response = $clusterManagerClient->setLocations($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $locationsElement = '[LOCATIONS]'; - - set_locations_sample($locationsElement); -} -// [END container_v1_generated_ClusterManager_SetLocations_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_logging_service.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_logging_service.php deleted file mode 100644 index ef16b6e056c0..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_logging_service.php +++ /dev/null @@ -1,80 +0,0 @@ -setLoggingService($loggingService); - - // Call the API and handle any network failures. - try { - /** @var Operation $response */ - $response = $clusterManagerClient->setLoggingService($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $loggingService = '[LOGGING_SERVICE]'; - - set_logging_service_sample($loggingService); -} -// [END container_v1_generated_ClusterManager_SetLoggingService_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_maintenance_policy.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_maintenance_policy.php deleted file mode 100644 index 4900bcc9ceda..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_maintenance_policy.php +++ /dev/null @@ -1,82 +0,0 @@ -setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId) - ->setMaintenancePolicy($maintenancePolicy); - - // Call the API and handle any network failures. - try { - /** @var Operation $response */ - $response = $clusterManagerClient->setMaintenancePolicy($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $projectId = '[PROJECT_ID]'; - $zone = '[ZONE]'; - $clusterId = '[CLUSTER_ID]'; - - set_maintenance_policy_sample($projectId, $zone, $clusterId); -} -// [END container_v1_generated_ClusterManager_SetMaintenancePolicy_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_master_auth.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_master_auth.php deleted file mode 100644 index 942ffe4b3591..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_master_auth.php +++ /dev/null @@ -1,76 +0,0 @@ -setAction($action) - ->setUpdate($update); - - // Call the API and handle any network failures. - try { - /** @var Operation $response */ - $response = $clusterManagerClient->setMasterAuth($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $action = Action::UNKNOWN; - - set_master_auth_sample($action); -} -// [END container_v1_generated_ClusterManager_SetMasterAuth_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_monitoring_service.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_monitoring_service.php deleted file mode 100644 index 53c5072bc77a..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_monitoring_service.php +++ /dev/null @@ -1,80 +0,0 @@ -setMonitoringService($monitoringService); - - // Call the API and handle any network failures. - try { - /** @var Operation $response */ - $response = $clusterManagerClient->setMonitoringService($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $monitoringService = '[MONITORING_SERVICE]'; - - set_monitoring_service_sample($monitoringService); -} -// [END container_v1_generated_ClusterManager_SetMonitoringService_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_network_policy.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_network_policy.php deleted file mode 100644 index 201e0a8b78e7..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_network_policy.php +++ /dev/null @@ -1,60 +0,0 @@ -setNetworkPolicy($networkPolicy); - - // Call the API and handle any network failures. - try { - /** @var Operation $response */ - $response = $clusterManagerClient->setNetworkPolicy($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_SetNetworkPolicy_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_autoscaling.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_autoscaling.php deleted file mode 100644 index 5ddc38f258af..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_autoscaling.php +++ /dev/null @@ -1,60 +0,0 @@ -setAutoscaling($autoscaling); - - // Call the API and handle any network failures. - try { - /** @var Operation $response */ - $response = $clusterManagerClient->setNodePoolAutoscaling($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_SetNodePoolAutoscaling_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_management.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_management.php deleted file mode 100644 index 6697ec611f96..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_management.php +++ /dev/null @@ -1,60 +0,0 @@ -setManagement($management); - - // Call the API and handle any network failures. - try { - /** @var Operation $response */ - $response = $clusterManagerClient->setNodePoolManagement($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_SetNodePoolManagement_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_size.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_size.php deleted file mode 100644 index a6f3f5e9913a..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_size.php +++ /dev/null @@ -1,72 +0,0 @@ -setNodeCount($nodeCount); - - // Call the API and handle any network failures. - try { - /** @var Operation $response */ - $response = $clusterManagerClient->setNodePoolSize($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $nodeCount = 0; - - set_node_pool_size_sample($nodeCount); -} -// [END container_v1_generated_ClusterManager_SetNodePoolSize_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/start_ip_rotation.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/start_ip_rotation.php deleted file mode 100644 index fa35440e6b4a..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/start_ip_rotation.php +++ /dev/null @@ -1,57 +0,0 @@ -startIPRotation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_StartIPRotation_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_cluster.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_cluster.php deleted file mode 100644 index ba1c330760e7..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_cluster.php +++ /dev/null @@ -1,60 +0,0 @@ -setUpdate($update); - - // Call the API and handle any network failures. - try { - /** @var Operation $response */ - $response = $clusterManagerClient->updateCluster($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_UpdateCluster_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_master.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_master.php deleted file mode 100644 index 7c8e440c0254..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_master.php +++ /dev/null @@ -1,79 +0,0 @@ -setMasterVersion($masterVersion); - - // Call the API and handle any network failures. - try { - /** @var Operation $response */ - $response = $clusterManagerClient->updateMaster($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $masterVersion = '[MASTER_VERSION]'; - - update_master_sample($masterVersion); -} -// [END container_v1_generated_ClusterManager_UpdateMaster_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_node_pool.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_node_pool.php deleted file mode 100644 index 99e1618edc1c..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_node_pool.php +++ /dev/null @@ -1,85 +0,0 @@ -setNodeVersion($nodeVersion) - ->setImageType($imageType); - - // Call the API and handle any network failures. - try { - /** @var Operation $response */ - $response = $clusterManagerClient->updateNodePool($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $nodeVersion = '[NODE_VERSION]'; - $imageType = '[IMAGE_TYPE]'; - - update_node_pool_sample($nodeVersion, $imageType); -} -// [END container_v1_generated_ClusterManager_UpdateNodePool_sync] diff --git a/owl-bot-staging/Container/v1/src/V1/Client/ClusterManagerClient.php b/owl-bot-staging/Container/v1/src/V1/Client/ClusterManagerClient.php deleted file mode 100644 index 7acc789e79f4..000000000000 --- a/owl-bot-staging/Container/v1/src/V1/Client/ClusterManagerClient.php +++ /dev/null @@ -1,1205 +0,0 @@ - self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/cluster_manager_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/cluster_manager_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/cluster_manager_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/cluster_manager_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a topic - * resource. - * - * @param string $project - * @param string $topic - * - * @return string The formatted topic resource. - */ - public static function topicName(string $project, string $topic): string - { - return self::getPathTemplate('topic')->render([ - 'project' => $project, - 'topic' => $topic, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - topic: projects/{project}/topics/{topic} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'container.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Cancels the specified operation. - * - * The async variant is {@see ClusterManagerClient::cancelOperationAsync()} . - * - * @example samples/V1/ClusterManagerClient/cancel_operation.php - * - * @param CancelOperationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function cancelOperation(CancelOperationRequest $request, array $callOptions = []): void - { - $this->startApiCall('CancelOperation', $request, $callOptions)->wait(); - } - - /** - * Checks the cluster compatibility with Autopilot mode, and returns a list of - * compatibility issues. - * - * The async variant is - * {@see ClusterManagerClient::checkAutopilotCompatibilityAsync()} . - * - * @example samples/V1/ClusterManagerClient/check_autopilot_compatibility.php - * - * @param CheckAutopilotCompatibilityRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CheckAutopilotCompatibilityResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function checkAutopilotCompatibility(CheckAutopilotCompatibilityRequest $request, array $callOptions = []): CheckAutopilotCompatibilityResponse - { - return $this->startApiCall('CheckAutopilotCompatibility', $request, $callOptions)->wait(); - } - - /** - * Completes master IP rotation. - * - * The async variant is {@see ClusterManagerClient::completeIPRotationAsync()} . - * - * @example samples/V1/ClusterManagerClient/complete_ip_rotation.php - * - * @param CompleteIPRotationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function completeIPRotation(CompleteIPRotationRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('CompleteIPRotation', $request, $callOptions)->wait(); - } - - /** - * CompleteNodePoolUpgrade will signal an on-going node pool upgrade to - * complete. - * - * The async variant is {@see ClusterManagerClient::completeNodePoolUpgradeAsync()} - * . - * - * @example samples/V1/ClusterManagerClient/complete_node_pool_upgrade.php - * - * @param CompleteNodePoolUpgradeRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function completeNodePoolUpgrade(CompleteNodePoolUpgradeRequest $request, array $callOptions = []): void - { - $this->startApiCall('CompleteNodePoolUpgrade', $request, $callOptions)->wait(); - } - - /** - * Creates a cluster, consisting of the specified number and type of Google - * Compute Engine instances. - * - * By default, the cluster is created in the project's - * [default - * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). - * - * One firewall is added for the cluster. After cluster creation, - * the Kubelet creates routes for each node to allow the containers - * on that node to communicate with all other instances in the - * cluster. - * - * Finally, an entry is added to the project's global metadata indicating - * which CIDR range the cluster is using. - * - * The async variant is {@see ClusterManagerClient::createClusterAsync()} . - * - * @example samples/V1/ClusterManagerClient/create_cluster.php - * - * @param CreateClusterRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function createCluster(CreateClusterRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('CreateCluster', $request, $callOptions)->wait(); - } - - /** - * Creates a node pool for a cluster. - * - * The async variant is {@see ClusterManagerClient::createNodePoolAsync()} . - * - * @example samples/V1/ClusterManagerClient/create_node_pool.php - * - * @param CreateNodePoolRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function createNodePool(CreateNodePoolRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('CreateNodePool', $request, $callOptions)->wait(); - } - - /** - * Deletes the cluster, including the Kubernetes endpoint and all worker - * nodes. - * - * Firewalls and routes that were configured during cluster creation - * are also deleted. - * - * Other Google Compute Engine resources that might be in use by the cluster, - * such as load balancer resources, are not deleted if they weren't present - * when the cluster was initially created. - * - * The async variant is {@see ClusterManagerClient::deleteClusterAsync()} . - * - * @example samples/V1/ClusterManagerClient/delete_cluster.php - * - * @param DeleteClusterRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteCluster(DeleteClusterRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('DeleteCluster', $request, $callOptions)->wait(); - } - - /** - * Deletes a node pool from a cluster. - * - * The async variant is {@see ClusterManagerClient::deleteNodePoolAsync()} . - * - * @example samples/V1/ClusterManagerClient/delete_node_pool.php - * - * @param DeleteNodePoolRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteNodePool(DeleteNodePoolRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('DeleteNodePool', $request, $callOptions)->wait(); - } - - /** - * Gets the details of a specific cluster. - * - * The async variant is {@see ClusterManagerClient::getClusterAsync()} . - * - * @example samples/V1/ClusterManagerClient/get_cluster.php - * - * @param GetClusterRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Cluster - * - * @throws ApiException Thrown if the API call fails. - */ - public function getCluster(GetClusterRequest $request, array $callOptions = []): Cluster - { - return $this->startApiCall('GetCluster', $request, $callOptions)->wait(); - } - - /** - * Gets the public component of the cluster signing keys in - * JSON Web Key format. - * - * The async variant is {@see ClusterManagerClient::getJSONWebKeysAsync()} . - * - * @example samples/V1/ClusterManagerClient/get_json_web_keys.php - * - * @param GetJSONWebKeysRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return GetJSONWebKeysResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function getJSONWebKeys(GetJSONWebKeysRequest $request, array $callOptions = []): GetJSONWebKeysResponse - { - return $this->startApiCall('GetJSONWebKeys', $request, $callOptions)->wait(); - } - - /** - * Retrieves the requested node pool. - * - * The async variant is {@see ClusterManagerClient::getNodePoolAsync()} . - * - * @example samples/V1/ClusterManagerClient/get_node_pool.php - * - * @param GetNodePoolRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return NodePool - * - * @throws ApiException Thrown if the API call fails. - */ - public function getNodePool(GetNodePoolRequest $request, array $callOptions = []): NodePool - { - return $this->startApiCall('GetNodePool', $request, $callOptions)->wait(); - } - - /** - * Gets the specified operation. - * - * The async variant is {@see ClusterManagerClient::getOperationAsync()} . - * - * @example samples/V1/ClusterManagerClient/get_operation.php - * - * @param GetOperationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function getOperation(GetOperationRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('GetOperation', $request, $callOptions)->wait(); - } - - /** - * Returns configuration info about the Google Kubernetes Engine service. - * - * The async variant is {@see ClusterManagerClient::getServerConfigAsync()} . - * - * @example samples/V1/ClusterManagerClient/get_server_config.php - * - * @param GetServerConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ServerConfig - * - * @throws ApiException Thrown if the API call fails. - */ - public function getServerConfig(GetServerConfigRequest $request, array $callOptions = []): ServerConfig - { - return $this->startApiCall('GetServerConfig', $request, $callOptions)->wait(); - } - - /** - * Lists all clusters owned by a project in either the specified zone or all - * zones. - * - * The async variant is {@see ClusterManagerClient::listClustersAsync()} . - * - * @example samples/V1/ClusterManagerClient/list_clusters.php - * - * @param ListClustersRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ListClustersResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listClusters(ListClustersRequest $request, array $callOptions = []): ListClustersResponse - { - return $this->startApiCall('ListClusters', $request, $callOptions)->wait(); - } - - /** - * Lists the node pools for a cluster. - * - * The async variant is {@see ClusterManagerClient::listNodePoolsAsync()} . - * - * @example samples/V1/ClusterManagerClient/list_node_pools.php - * - * @param ListNodePoolsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ListNodePoolsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listNodePools(ListNodePoolsRequest $request, array $callOptions = []): ListNodePoolsResponse - { - return $this->startApiCall('ListNodePools', $request, $callOptions)->wait(); - } - - /** - * Lists all operations in a project in a specific zone or all zones. - * - * The async variant is {@see ClusterManagerClient::listOperationsAsync()} . - * - * @example samples/V1/ClusterManagerClient/list_operations.php - * - * @param ListOperationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ListOperationsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listOperations(ListOperationsRequest $request, array $callOptions = []): ListOperationsResponse - { - return $this->startApiCall('ListOperations', $request, $callOptions)->wait(); - } - - /** - * Lists subnetworks that are usable for creating clusters in a project. - * - * The async variant is {@see ClusterManagerClient::listUsableSubnetworksAsync()} . - * - * @example samples/V1/ClusterManagerClient/list_usable_subnetworks.php - * - * @param ListUsableSubnetworksRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listUsableSubnetworks(ListUsableSubnetworksRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListUsableSubnetworks', $request, $callOptions); - } - - /** - * Rolls back a previously Aborted or Failed NodePool upgrade. - * This makes no changes if the last upgrade successfully completed. - * - * The async variant is {@see ClusterManagerClient::rollbackNodePoolUpgradeAsync()} - * . - * - * @example samples/V1/ClusterManagerClient/rollback_node_pool_upgrade.php - * - * @param RollbackNodePoolUpgradeRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function rollbackNodePoolUpgrade(RollbackNodePoolUpgradeRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('RollbackNodePoolUpgrade', $request, $callOptions)->wait(); - } - - /** - * Sets the addons for a specific cluster. - * - * The async variant is {@see ClusterManagerClient::setAddonsConfigAsync()} . - * - * @example samples/V1/ClusterManagerClient/set_addons_config.php - * - * @param SetAddonsConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function setAddonsConfig(SetAddonsConfigRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('SetAddonsConfig', $request, $callOptions)->wait(); - } - - /** - * Sets labels on a cluster. - * - * The async variant is {@see ClusterManagerClient::setLabelsAsync()} . - * - * @example samples/V1/ClusterManagerClient/set_labels.php - * - * @param SetLabelsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function setLabels(SetLabelsRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('SetLabels', $request, $callOptions)->wait(); - } - - /** - * Enables or disables the ABAC authorization mechanism on a cluster. - * - * The async variant is {@see ClusterManagerClient::setLegacyAbacAsync()} . - * - * @example samples/V1/ClusterManagerClient/set_legacy_abac.php - * - * @param SetLegacyAbacRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function setLegacyAbac(SetLegacyAbacRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('SetLegacyAbac', $request, $callOptions)->wait(); - } - - /** - * Sets the locations for a specific cluster. - * Deprecated. Use - * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update) - * instead. - * - * The async variant is {@see ClusterManagerClient::setLocationsAsync()} . - * - * @example samples/V1/ClusterManagerClient/set_locations.php - * - * @param SetLocationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - * - * @deprecated This method will be removed in the next major version update. - */ - public function setLocations(SetLocationsRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('SetLocations', $request, $callOptions)->wait(); - } - - /** - * Sets the logging service for a specific cluster. - * - * The async variant is {@see ClusterManagerClient::setLoggingServiceAsync()} . - * - * @example samples/V1/ClusterManagerClient/set_logging_service.php - * - * @param SetLoggingServiceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function setLoggingService(SetLoggingServiceRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('SetLoggingService', $request, $callOptions)->wait(); - } - - /** - * Sets the maintenance policy for a cluster. - * - * The async variant is {@see ClusterManagerClient::setMaintenancePolicyAsync()} . - * - * @example samples/V1/ClusterManagerClient/set_maintenance_policy.php - * - * @param SetMaintenancePolicyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function setMaintenancePolicy(SetMaintenancePolicyRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('SetMaintenancePolicy', $request, $callOptions)->wait(); - } - - /** - * Sets master auth materials. Currently supports changing the admin password - * or a specific cluster, either via password generation or explicitly setting - * the password. - * - * The async variant is {@see ClusterManagerClient::setMasterAuthAsync()} . - * - * @example samples/V1/ClusterManagerClient/set_master_auth.php - * - * @param SetMasterAuthRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function setMasterAuth(SetMasterAuthRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('SetMasterAuth', $request, $callOptions)->wait(); - } - - /** - * Sets the monitoring service for a specific cluster. - * - * The async variant is {@see ClusterManagerClient::setMonitoringServiceAsync()} . - * - * @example samples/V1/ClusterManagerClient/set_monitoring_service.php - * - * @param SetMonitoringServiceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function setMonitoringService(SetMonitoringServiceRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('SetMonitoringService', $request, $callOptions)->wait(); - } - - /** - * Enables or disables Network Policy for a cluster. - * - * The async variant is {@see ClusterManagerClient::setNetworkPolicyAsync()} . - * - * @example samples/V1/ClusterManagerClient/set_network_policy.php - * - * @param SetNetworkPolicyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function setNetworkPolicy(SetNetworkPolicyRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('SetNetworkPolicy', $request, $callOptions)->wait(); - } - - /** - * Sets the autoscaling settings for the specified node pool. - * - * The async variant is {@see ClusterManagerClient::setNodePoolAutoscalingAsync()} - * . - * - * @example samples/V1/ClusterManagerClient/set_node_pool_autoscaling.php - * - * @param SetNodePoolAutoscalingRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function setNodePoolAutoscaling(SetNodePoolAutoscalingRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('SetNodePoolAutoscaling', $request, $callOptions)->wait(); - } - - /** - * Sets the NodeManagement options for a node pool. - * - * The async variant is {@see ClusterManagerClient::setNodePoolManagementAsync()} . - * - * @example samples/V1/ClusterManagerClient/set_node_pool_management.php - * - * @param SetNodePoolManagementRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function setNodePoolManagement(SetNodePoolManagementRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('SetNodePoolManagement', $request, $callOptions)->wait(); - } - - /** - * Sets the size for a specific node pool. The new size will be used for all - * replicas, including future replicas created by modifying - * [NodePool.locations][google.container.v1.NodePool.locations]. - * - * The async variant is {@see ClusterManagerClient::setNodePoolSizeAsync()} . - * - * @example samples/V1/ClusterManagerClient/set_node_pool_size.php - * - * @param SetNodePoolSizeRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function setNodePoolSize(SetNodePoolSizeRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('SetNodePoolSize', $request, $callOptions)->wait(); - } - - /** - * Starts master IP rotation. - * - * The async variant is {@see ClusterManagerClient::startIPRotationAsync()} . - * - * @example samples/V1/ClusterManagerClient/start_ip_rotation.php - * - * @param StartIPRotationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function startIPRotation(StartIPRotationRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('StartIPRotation', $request, $callOptions)->wait(); - } - - /** - * Updates the settings of a specific cluster. - * - * The async variant is {@see ClusterManagerClient::updateClusterAsync()} . - * - * @example samples/V1/ClusterManagerClient/update_cluster.php - * - * @param UpdateClusterRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateCluster(UpdateClusterRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('UpdateCluster', $request, $callOptions)->wait(); - } - - /** - * Updates the master for a specific cluster. - * - * The async variant is {@see ClusterManagerClient::updateMasterAsync()} . - * - * @example samples/V1/ClusterManagerClient/update_master.php - * - * @param UpdateMasterRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateMaster(UpdateMasterRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('UpdateMaster', $request, $callOptions)->wait(); - } - - /** - * Updates the version and/or image type for the specified node pool. - * - * The async variant is {@see ClusterManagerClient::updateNodePoolAsync()} . - * - * @example samples/V1/ClusterManagerClient/update_node_pool.php - * - * @param UpdateNodePoolRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateNodePool(UpdateNodePoolRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('UpdateNodePool', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/Container/v1/src/V1/ClusterManagerClient.php b/owl-bot-staging/Container/v1/src/V1/ClusterManagerClient.php deleted file mode 100644 index 925605da2c0d..000000000000 --- a/owl-bot-staging/Container/v1/src/V1/ClusterManagerClient.php +++ /dev/null @@ -1,34 +0,0 @@ -cancelOperation(); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * Many parameters require resource names to be formatted in a particular way. To - * assist with these names, this class includes a format method for each type of - * name, and additionally a parseName method to extract the individual identifiers - * contained within formatted names that are returned by the API. - * - * @deprecated Please use the new service client {@see \Google\Cloud\Container\V1\Client\ClusterManagerClient}. - */ -class ClusterManagerGapicClient -{ - use GapicClientTrait; - - /** The name of the service. */ - const SERVICE_NAME = 'google.container.v1.ClusterManager'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - const SERVICE_ADDRESS = 'container.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'container.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static $topicNameTemplate; - - private static $pathTemplateMap; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/cluster_manager_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/cluster_manager_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/cluster_manager_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/cluster_manager_rest_client_config.php', - ], - ], - ]; - } - - private static function getTopicNameTemplate() - { - if (self::$topicNameTemplate == null) { - self::$topicNameTemplate = new PathTemplate('projects/{project}/topics/{topic}'); - } - - return self::$topicNameTemplate; - } - - private static function getPathTemplateMap() - { - if (self::$pathTemplateMap == null) { - self::$pathTemplateMap = [ - 'topic' => self::getTopicNameTemplate(), - ]; - } - - return self::$pathTemplateMap; - } - - /** - * Formats a string containing the fully-qualified path to represent a topic - * resource. - * - * @param string $project - * @param string $topic - * - * @return string The formatted topic resource. - */ - public static function topicName($project, $topic) - { - return self::getTopicNameTemplate()->render([ - 'project' => $project, - 'topic' => $topic, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - topic: projects/{project}/topics/{topic} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName($formattedName, $template = null) - { - $templateMap = self::getPathTemplateMap(); - if ($template) { - if (!isset($templateMap[$template])) { - throw new ValidationException("Template name $template does not exist"); - } - - return $templateMap[$template]->match($formattedName); - } - - foreach ($templateMap as $templateName => $pathTemplate) { - try { - return $pathTemplate->match($formattedName); - } catch (ValidationException $ex) { - // Swallow the exception to continue trying other path templates - } - } - - throw new ValidationException("Input did not match any known format. Input: $formattedName"); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'container.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** - * Cancels the specified operation. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $clusterManagerClient->cancelOperation(); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * operation resides. This field has been deprecated and replaced by the name - * field. - * @type string $operationId - * Deprecated. The server-assigned `name` of the operation. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, operation id) of the operation to cancel. - * Specified in the format `projects/*/locations/*/operations/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - */ - public function cancelOperation(array $optionalArgs = []) - { - $request = new CancelOperationRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['operationId'])) { - $request->setOperationId($optionalArgs['operationId']); - $requestParamHeaders['operation_id'] = $optionalArgs['operationId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CancelOperation', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Checks the cluster compatibility with Autopilot mode, and returns a list of - * compatibility issues. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $response = $clusterManagerClient->checkAutopilotCompatibility(); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $name - * The name (project, location, cluster) of the cluster to retrieve. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\CheckAutopilotCompatibilityResponse - * - * @throws ApiException if the remote call fails - */ - public function checkAutopilotCompatibility(array $optionalArgs = []) - { - $request = new CheckAutopilotCompatibilityRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CheckAutopilotCompatibility', CheckAutopilotCompatibilityResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Completes master IP rotation. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $response = $clusterManagerClient->completeIPRotation(); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster name) of the cluster to complete IP - * rotation. Specified in the format `projects/*/locations/*/clusters/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function completeIPRotation(array $optionalArgs = []) - { - $request = new CompleteIPRotationRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CompleteIPRotation', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * CompleteNodePoolUpgrade will signal an on-going node pool upgrade to - * complete. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $clusterManagerClient->completeNodePoolUpgrade(); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $name - * The name (project, location, cluster, node pool id) of the node pool to - * complete upgrade. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - */ - public function completeNodePoolUpgrade(array $optionalArgs = []) - { - $request = new CompleteNodePoolUpgradeRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CompleteNodePoolUpgrade', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a cluster, consisting of the specified number and type of Google - * Compute Engine instances. - * - * By default, the cluster is created in the project's - * [default - * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). - * - * One firewall is added for the cluster. After cluster creation, - * the Kubelet creates routes for each node to allow the containers - * on that node to communicate with all other instances in the - * cluster. - * - * Finally, an entry is added to the project's global metadata indicating - * which CIDR range the cluster is using. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $cluster = new Cluster(); - * $response = $clusterManagerClient->createCluster($cluster); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param Cluster $cluster Required. A [cluster - * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * @type string $parent - * The parent (project and location) where the cluster will be created. - * Specified in the format `projects/*/locations/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function createCluster($cluster, array $optionalArgs = []) - { - $request = new CreateClusterRequest(); - $requestParamHeaders = []; - $request->setCluster($cluster); - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['parent'])) { - $request->setParent($optionalArgs['parent']); - $requestParamHeaders['parent'] = $optionalArgs['parent']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateCluster', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a node pool for a cluster. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $nodePool = new NodePool(); - * $response = $clusterManagerClient->createNodePool($nodePool); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param NodePool $nodePool Required. The node pool to create. - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * @type string $clusterId - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the parent field. - * @type string $parent - * The parent (project, location, cluster name) where the node pool will be - * created. Specified in the format - * `projects/*/locations/*/clusters/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function createNodePool($nodePool, array $optionalArgs = []) - { - $request = new CreateNodePoolRequest(); - $requestParamHeaders = []; - $request->setNodePool($nodePool); - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['parent'])) { - $request->setParent($optionalArgs['parent']); - $requestParamHeaders['parent'] = $optionalArgs['parent']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateNodePool', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes the cluster, including the Kubernetes endpoint and all worker - * nodes. - * - * Firewalls and routes that were configured during cluster creation - * are also deleted. - * - * Other Google Compute Engine resources that might be in use by the cluster, - * such as load balancer resources, are not deleted if they weren't present - * when the cluster was initially created. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $response = $clusterManagerClient->deleteCluster(); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster to delete. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster) of the cluster to delete. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function deleteCluster(array $optionalArgs = []) - { - $request = new DeleteClusterRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteCluster', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes a node pool from a cluster. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $response = $clusterManagerClient->deleteNodePool(); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @type string $nodePoolId - * Deprecated. The name of the node pool to delete. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster, node pool id) of the node pool to - * delete. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function deleteNodePool(array $optionalArgs = []) - { - $request = new DeleteNodePoolRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['nodePoolId'])) { - $request->setNodePoolId($optionalArgs['nodePoolId']); - $requestParamHeaders['node_pool_id'] = $optionalArgs['nodePoolId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteNodePool', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Gets the details of a specific cluster. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $response = $clusterManagerClient->getCluster(); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster to retrieve. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster) of the cluster to retrieve. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Cluster - * - * @throws ApiException if the remote call fails - */ - public function getCluster(array $optionalArgs = []) - { - $request = new GetClusterRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetCluster', Cluster::class, $optionalArgs, $request)->wait(); - } - - /** - * Gets the public component of the cluster signing keys in - * JSON Web Key format. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $response = $clusterManagerClient->getJSONWebKeys(); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $parent - * The cluster (project, location, cluster name) to get keys for. Specified in - * the format `projects/*/locations/*/clusters/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\GetJSONWebKeysResponse - * - * @throws ApiException if the remote call fails - */ - public function getJSONWebKeys(array $optionalArgs = []) - { - $request = new GetJSONWebKeysRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['parent'])) { - $request->setParent($optionalArgs['parent']); - $requestParamHeaders['parent'] = $optionalArgs['parent']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetJSONWebKeys', GetJSONWebKeysResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Retrieves the requested node pool. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $response = $clusterManagerClient->getNodePool(); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @type string $nodePoolId - * Deprecated. The name of the node pool. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster, node pool id) of the node pool to - * get. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\NodePool - * - * @throws ApiException if the remote call fails - */ - public function getNodePool(array $optionalArgs = []) - { - $request = new GetNodePoolRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['nodePoolId'])) { - $request->setNodePoolId($optionalArgs['nodePoolId']); - $requestParamHeaders['node_pool_id'] = $optionalArgs['nodePoolId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetNodePool', NodePool::class, $optionalArgs, $request)->wait(); - } - - /** - * Gets the specified operation. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $response = $clusterManagerClient->getOperation(); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $operationId - * Deprecated. The server-assigned `name` of the operation. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, operation id) of the operation to get. - * Specified in the format `projects/*/locations/*/operations/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function getOperation(array $optionalArgs = []) - { - $request = new GetOperationRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['operationId'])) { - $request->setOperationId($optionalArgs['operationId']); - $requestParamHeaders['operation_id'] = $optionalArgs['operationId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetOperation', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Returns configuration info about the Google Kubernetes Engine service. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $response = $clusterManagerClient->getServerConfig(); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) to return - * operations for. This field has been deprecated and replaced by the name - * field. - * @type string $name - * The name (project and location) of the server config to get, - * specified in the format `projects/*/locations/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\ServerConfig - * - * @throws ApiException if the remote call fails - */ - public function getServerConfig(array $optionalArgs = []) - { - $request = new GetServerConfigRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetServerConfig', ServerConfig::class, $optionalArgs, $request)->wait(); - } - - /** - * Lists all clusters owned by a project in either the specified zone or all - * zones. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $response = $clusterManagerClient->listClusters(); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides, or "-" for all zones. This field has been deprecated and - * replaced by the parent field. - * @type string $parent - * The parent (project and location) where the clusters will be listed. - * Specified in the format `projects/*/locations/*`. - * Location "-" matches all zones and all regions. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\ListClustersResponse - * - * @throws ApiException if the remote call fails - */ - public function listClusters(array $optionalArgs = []) - { - $request = new ListClustersRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['parent'])) { - $request->setParent($optionalArgs['parent']); - $requestParamHeaders['parent'] = $optionalArgs['parent']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('ListClusters', ListClustersResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Lists the node pools for a cluster. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $response = $clusterManagerClient->listNodePools(); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * @type string $clusterId - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the parent field. - * @type string $parent - * The parent (project, location, cluster name) where the node pools will be - * listed. Specified in the format `projects/*/locations/*/clusters/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\ListNodePoolsResponse - * - * @throws ApiException if the remote call fails - */ - public function listNodePools(array $optionalArgs = []) - { - $request = new ListNodePoolsRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['parent'])) { - $request->setParent($optionalArgs['parent']); - $requestParamHeaders['parent'] = $optionalArgs['parent']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('ListNodePools', ListNodePoolsResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Lists all operations in a project in a specific zone or all zones. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $response = $clusterManagerClient->listOperations(); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) to return - * operations for, or `-` for all zones. This field has been deprecated and - * replaced by the parent field. - * @type string $parent - * The parent (project and location) where the operations will be listed. - * Specified in the format `projects/*/locations/*`. - * Location "-" matches all zones and all regions. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\ListOperationsResponse - * - * @throws ApiException if the remote call fails - */ - public function listOperations(array $optionalArgs = []) - { - $request = new ListOperationsRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['parent'])) { - $request->setParent($optionalArgs['parent']); - $requestParamHeaders['parent'] = $optionalArgs['parent']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('ListOperations', ListOperationsResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Lists subnetworks that are usable for creating clusters in a project. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * // Iterate over pages of elements - * $pagedResponse = $clusterManagerClient->listUsableSubnetworks(); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $clusterManagerClient->listUsableSubnetworks(); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $parent - * The parent project where subnetworks are usable. - * Specified in the format `projects/*`. - * @type string $filter - * Filtering currently only supports equality on the networkProjectId and must - * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` - * is the project which owns the listed subnetworks. This defaults to the - * parent project ID. - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - */ - public function listUsableSubnetworks(array $optionalArgs = []) - { - $request = new ListUsableSubnetworksRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['parent'])) { - $request->setParent($optionalArgs['parent']); - $requestParamHeaders['parent'] = $optionalArgs['parent']; - } - - if (isset($optionalArgs['filter'])) { - $request->setFilter($optionalArgs['filter']); - } - - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListUsableSubnetworks', $optionalArgs, ListUsableSubnetworksResponse::class, $request); - } - - /** - * Rolls back a previously Aborted or Failed NodePool upgrade. - * This makes no changes if the last upgrade successfully completed. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $response = $clusterManagerClient->rollbackNodePoolUpgrade(); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster to rollback. - * This field has been deprecated and replaced by the name field. - * @type string $nodePoolId - * Deprecated. The name of the node pool to rollback. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster, node pool id) of the node poll to - * rollback upgrade. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * @type bool $respectPdb - * Option for rollback to ignore the PodDisruptionBudget. - * Default value is false. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function rollbackNodePoolUpgrade(array $optionalArgs = []) - { - $request = new RollbackNodePoolUpgradeRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['nodePoolId'])) { - $request->setNodePoolId($optionalArgs['nodePoolId']); - $requestParamHeaders['node_pool_id'] = $optionalArgs['nodePoolId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - if (isset($optionalArgs['respectPdb'])) { - $request->setRespectPdb($optionalArgs['respectPdb']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('RollbackNodePoolUpgrade', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Sets the addons for a specific cluster. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $addonsConfig = new AddonsConfig(); - * $response = $clusterManagerClient->setAddonsConfig($addonsConfig); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param AddonsConfig $addonsConfig Required. The desired configurations for the various addons available to - * run in the cluster. - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster) of the cluster to set addons. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function setAddonsConfig($addonsConfig, array $optionalArgs = []) - { - $request = new SetAddonsConfigRequest(); - $requestParamHeaders = []; - $request->setAddonsConfig($addonsConfig); - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('SetAddonsConfig', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Sets labels on a cluster. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $resourceLabels = []; - * $labelFingerprint = 'label_fingerprint'; - * $response = $clusterManagerClient->setLabels($resourceLabels, $labelFingerprint); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param array $resourceLabels Required. The labels to set for that cluster. - * @param string $labelFingerprint Required. The fingerprint of the previous set of labels for this resource, - * used to detect conflicts. The fingerprint is initially generated by - * Kubernetes Engine and changes after every request to modify or update - * labels. You must always provide an up-to-date fingerprint hash when - * updating or changing labels. Make a `get()` request to the - * resource to get the latest fingerprint. - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster name) of the cluster to set labels. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function setLabels($resourceLabels, $labelFingerprint, array $optionalArgs = []) - { - $request = new SetLabelsRequest(); - $requestParamHeaders = []; - $request->setResourceLabels($resourceLabels); - $request->setLabelFingerprint($labelFingerprint); - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('SetLabels', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Enables or disables the ABAC authorization mechanism on a cluster. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $enabled = false; - * $response = $clusterManagerClient->setLegacyAbac($enabled); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param bool $enabled Required. Whether ABAC authorization will be enabled in the cluster. - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster name) of the cluster to set legacy - * abac. Specified in the format `projects/*/locations/*/clusters/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function setLegacyAbac($enabled, array $optionalArgs = []) - { - $request = new SetLegacyAbacRequest(); - $requestParamHeaders = []; - $request->setEnabled($enabled); - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('SetLegacyAbac', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Sets the locations for a specific cluster. - * Deprecated. Use - * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update) - * instead. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $locations = []; - * $response = $clusterManagerClient->setLocations($locations); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param string[] $locations Required. The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. Changing the locations a cluster is in - * will result in nodes being either created or removed from the cluster, - * depending on whether locations are being added or removed. - * - * This list must always include the cluster's primary zone. - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster) of the cluster to set locations. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - * - * @deprecated This method will be removed in the next major version update. - */ - public function setLocations($locations, array $optionalArgs = []) - { - $request = new SetLocationsRequest(); - $requestParamHeaders = []; - $request->setLocations($locations); - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('SetLocations', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Sets the logging service for a specific cluster. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $loggingService = 'logging_service'; - * $response = $clusterManagerClient->setLoggingService($loggingService); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param string $loggingService Required. The logging service the cluster should use to write logs. - * Currently available options: - * - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster) of the cluster to set logging. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function setLoggingService($loggingService, array $optionalArgs = []) - { - $request = new SetLoggingServiceRequest(); - $requestParamHeaders = []; - $request->setLoggingService($loggingService); - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('SetLoggingService', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Sets the maintenance policy for a cluster. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $projectId = 'project_id'; - * $zone = 'zone'; - * $clusterId = 'cluster_id'; - * $maintenancePolicy = new MaintenancePolicy(); - * $response = $clusterManagerClient->setMaintenancePolicy($projectId, $zone, $clusterId, $maintenancePolicy); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param string $projectId Required. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * @param string $zone Required. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. - * @param string $clusterId Required. The name of the cluster to update. - * @param MaintenancePolicy $maintenancePolicy Required. The maintenance policy to be set for the cluster. An empty field - * clears the existing maintenance policy. - * @param array $optionalArgs { - * Optional. - * - * @type string $name - * The name (project, location, cluster name) of the cluster to set - * maintenance policy. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function setMaintenancePolicy($projectId, $zone, $clusterId, $maintenancePolicy, array $optionalArgs = []) - { - $request = new SetMaintenancePolicyRequest(); - $requestParamHeaders = []; - $request->setProjectId($projectId); - $request->setZone($zone); - $request->setClusterId($clusterId); - $request->setMaintenancePolicy($maintenancePolicy); - $requestParamHeaders['project_id'] = $projectId; - $requestParamHeaders['zone'] = $zone; - $requestParamHeaders['cluster_id'] = $clusterId; - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('SetMaintenancePolicy', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Sets master auth materials. Currently supports changing the admin password - * or a specific cluster, either via password generation or explicitly setting - * the password. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $action = Action::UNKNOWN; - * $update = new MasterAuth(); - * $response = $clusterManagerClient->setMasterAuth($action, $update); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param int $action Required. The exact form of action to be taken on the master auth. - * For allowed values, use constants defined on {@see \Google\Cloud\Container\V1\SetMasterAuthRequest\Action} - * @param MasterAuth $update Required. A description of the update. - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster) of the cluster to set auth. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function setMasterAuth($action, $update, array $optionalArgs = []) - { - $request = new SetMasterAuthRequest(); - $requestParamHeaders = []; - $request->setAction($action); - $request->setUpdate($update); - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('SetMasterAuth', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Sets the monitoring service for a specific cluster. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $monitoringService = 'monitoring_service'; - * $response = $clusterManagerClient->setMonitoringService($monitoringService); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param string $monitoringService Required. The monitoring service the cluster should use to write metrics. - * Currently available options: - * - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster) of the cluster to set monitoring. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function setMonitoringService($monitoringService, array $optionalArgs = []) - { - $request = new SetMonitoringServiceRequest(); - $requestParamHeaders = []; - $request->setMonitoringService($monitoringService); - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('SetMonitoringService', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Enables or disables Network Policy for a cluster. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $networkPolicy = new NetworkPolicy(); - * $response = $clusterManagerClient->setNetworkPolicy($networkPolicy); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param NetworkPolicy $networkPolicy Required. Configuration options for the NetworkPolicy feature. - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster name) of the cluster to set networking - * policy. Specified in the format `projects/*/locations/*/clusters/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function setNetworkPolicy($networkPolicy, array $optionalArgs = []) - { - $request = new SetNetworkPolicyRequest(); - $requestParamHeaders = []; - $request->setNetworkPolicy($networkPolicy); - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('SetNetworkPolicy', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Sets the autoscaling settings for the specified node pool. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $autoscaling = new NodePoolAutoscaling(); - * $response = $clusterManagerClient->setNodePoolAutoscaling($autoscaling); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param NodePoolAutoscaling $autoscaling Required. Autoscaling configuration for the node pool. - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $nodePoolId - * Deprecated. The name of the node pool to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster, node pool) of the node pool to set - * autoscaler settings. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function setNodePoolAutoscaling($autoscaling, array $optionalArgs = []) - { - $request = new SetNodePoolAutoscalingRequest(); - $requestParamHeaders = []; - $request->setAutoscaling($autoscaling); - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['nodePoolId'])) { - $request->setNodePoolId($optionalArgs['nodePoolId']); - $requestParamHeaders['node_pool_id'] = $optionalArgs['nodePoolId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('SetNodePoolAutoscaling', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Sets the NodeManagement options for a node pool. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $management = new NodeManagement(); - * $response = $clusterManagerClient->setNodePoolManagement($management); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param NodeManagement $management Required. NodeManagement configuration for the node pool. - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * @type string $nodePoolId - * Deprecated. The name of the node pool to update. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster, node pool id) of the node pool to set - * management properties. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function setNodePoolManagement($management, array $optionalArgs = []) - { - $request = new SetNodePoolManagementRequest(); - $requestParamHeaders = []; - $request->setManagement($management); - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['nodePoolId'])) { - $request->setNodePoolId($optionalArgs['nodePoolId']); - $requestParamHeaders['node_pool_id'] = $optionalArgs['nodePoolId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('SetNodePoolManagement', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Sets the size for a specific node pool. The new size will be used for all - * replicas, including future replicas created by modifying - * [NodePool.locations][google.container.v1.NodePool.locations]. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $nodeCount = 0; - * $response = $clusterManagerClient->setNodePoolSize($nodeCount); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param int $nodeCount Required. The desired node count for the pool. - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * @type string $nodePoolId - * Deprecated. The name of the node pool to update. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster, node pool id) of the node pool to set - * size. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function setNodePoolSize($nodeCount, array $optionalArgs = []) - { - $request = new SetNodePoolSizeRequest(); - $requestParamHeaders = []; - $request->setNodeCount($nodeCount); - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['nodePoolId'])) { - $request->setNodePoolId($optionalArgs['nodePoolId']); - $requestParamHeaders['node_pool_id'] = $optionalArgs['nodePoolId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('SetNodePoolSize', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Starts master IP rotation. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $response = $clusterManagerClient->startIPRotation(); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster name) of the cluster to start IP - * rotation. Specified in the format `projects/*/locations/*/clusters/*`. - * @type bool $rotateCredentials - * Whether to rotate credentials during IP rotation. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function startIPRotation(array $optionalArgs = []) - { - $request = new StartIPRotationRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - if (isset($optionalArgs['rotateCredentials'])) { - $request->setRotateCredentials($optionalArgs['rotateCredentials']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('StartIPRotation', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates the settings of a specific cluster. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $update = new ClusterUpdate(); - * $response = $clusterManagerClient->updateCluster($update); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param ClusterUpdate $update Required. A description of the update. - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster) of the cluster to update. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function updateCluster($update, array $optionalArgs = []) - { - $request = new UpdateClusterRequest(); - $requestParamHeaders = []; - $request->setUpdate($update); - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateCluster', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates the master for a specific cluster. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $masterVersion = 'master_version'; - * $response = $clusterManagerClient->updateMaster($masterVersion); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param string $masterVersion Required. The Kubernetes version to change the master to. - * - * Users may specify either explicit versions offered by Kubernetes Engine or - * version aliases, which have the following behavior: - * - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the default Kubernetes version - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster) of the cluster to update. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function updateMaster($masterVersion, array $optionalArgs = []) - { - $request = new UpdateMasterRequest(); - $requestParamHeaders = []; - $request->setMasterVersion($masterVersion); - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateMaster', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates the version and/or image type for the specified node pool. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $nodeVersion = 'node_version'; - * $imageType = 'image_type'; - * $response = $clusterManagerClient->updateNodePool($nodeVersion, $imageType); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param string $nodeVersion Required. The Kubernetes version to change the nodes to (typically an - * upgrade). - * - * Users may specify either explicit versions offered by Kubernetes Engine or - * version aliases, which have the following behavior: - * - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the Kubernetes master version - * @param string $imageType Required. The desired image type for the node pool. Please see - * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for - * available image types. - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $nodePoolId - * Deprecated. The name of the node pool to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster, node pool) of the node pool to - * update. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * @type string[] $locations - * The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * node pool's nodes should be located. Changing the locations for a node pool - * will result in nodes being either created or removed from the node pool, - * depending on whether locations are being added or removed. - * @type WorkloadMetadataConfig $workloadMetadataConfig - * The desired workload metadata config for the node pool. - * @type UpgradeSettings $upgradeSettings - * Upgrade settings control disruption and speed of the upgrade. - * @type NetworkTags $tags - * The desired network tags to be applied to all nodes in the node pool. - * If this field is not present, the tags will not be changed. Otherwise, - * the existing network tags will be *replaced* with the provided tags. - * @type NodeTaints $taints - * The desired node taints to be applied to all nodes in the node pool. - * If this field is not present, the taints will not be changed. Otherwise, - * the existing node taints will be *replaced* with the provided taints. - * @type NodeLabels $labels - * The desired node labels to be applied to all nodes in the node pool. - * If this field is not present, the labels will not be changed. Otherwise, - * the existing node labels will be *replaced* with the provided labels. - * @type LinuxNodeConfig $linuxNodeConfig - * Parameters that can be configured on Linux nodes. - * @type NodeKubeletConfig $kubeletConfig - * Node kubelet configs. - * @type NodeNetworkConfig $nodeNetworkConfig - * Node network config. - * @type GcfsConfig $gcfsConfig - * GCFS config. - * @type ConfidentialNodes $confidentialNodes - * Confidential nodes config. - * All the nodes in the node pool will be Confidential VM once enabled. - * @type VirtualNIC $gvnic - * Enable or disable gvnic on the node pool. - * @type string $etag - * The current etag of the node pool. - * If an etag is provided and does not match the current etag of the node - * pool, update will be blocked and an ABORTED error will be returned. - * @type FastSocket $fastSocket - * Enable or disable NCCL fast socket for the node pool. - * @type NodePoolLoggingConfig $loggingConfig - * Logging configuration. - * @type ResourceLabels $resourceLabels - * The resource labels for the node pool to use to annotate any related - * Google Compute Engine resources. - * @type WindowsNodeConfig $windowsNodeConfig - * Parameters that can be configured on Windows nodes. - * @type string $machineType - * Optional. The desired [Google Compute Engine machine - * type](https://cloud.google.com/compute/docs/machine-types) for nodes in the - * node pool. Initiates an upgrade operation that migrates the nodes in the - * node pool to the specified machine type. - * @type string $diskType - * Optional. The desired disk type (e.g. 'pd-standard', 'pd-ssd' or - * 'pd-balanced') for nodes in the node pool. - * Initiates an upgrade operation that migrates the nodes in the - * node pool to the specified disk type. - * @type int $diskSizeGb - * Optional. The desired disk size for nodes in the node pool specified in GB. - * The smallest allowed disk size is 10GB. - * Initiates an upgrade operation that migrates the nodes in the - * node pool to the specified disk size. - * @type ResourceManagerTags $resourceManagerTags - * Desired resource manager tag keys and values to be attached to the nodes - * for managing Compute Engine firewalls using Network Firewall Policies. - * Existing tags will be replaced with new values. - * @type QueuedProvisioning $queuedProvisioning - * Specifies the configuration of queued provisioning. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function updateNodePool($nodeVersion, $imageType, array $optionalArgs = []) - { - $request = new UpdateNodePoolRequest(); - $requestParamHeaders = []; - $request->setNodeVersion($nodeVersion); - $request->setImageType($imageType); - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['nodePoolId'])) { - $request->setNodePoolId($optionalArgs['nodePoolId']); - $requestParamHeaders['node_pool_id'] = $optionalArgs['nodePoolId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - if (isset($optionalArgs['locations'])) { - $request->setLocations($optionalArgs['locations']); - } - - if (isset($optionalArgs['workloadMetadataConfig'])) { - $request->setWorkloadMetadataConfig($optionalArgs['workloadMetadataConfig']); - } - - if (isset($optionalArgs['upgradeSettings'])) { - $request->setUpgradeSettings($optionalArgs['upgradeSettings']); - } - - if (isset($optionalArgs['tags'])) { - $request->setTags($optionalArgs['tags']); - } - - if (isset($optionalArgs['taints'])) { - $request->setTaints($optionalArgs['taints']); - } - - if (isset($optionalArgs['labels'])) { - $request->setLabels($optionalArgs['labels']); - } - - if (isset($optionalArgs['linuxNodeConfig'])) { - $request->setLinuxNodeConfig($optionalArgs['linuxNodeConfig']); - } - - if (isset($optionalArgs['kubeletConfig'])) { - $request->setKubeletConfig($optionalArgs['kubeletConfig']); - } - - if (isset($optionalArgs['nodeNetworkConfig'])) { - $request->setNodeNetworkConfig($optionalArgs['nodeNetworkConfig']); - } - - if (isset($optionalArgs['gcfsConfig'])) { - $request->setGcfsConfig($optionalArgs['gcfsConfig']); - } - - if (isset($optionalArgs['confidentialNodes'])) { - $request->setConfidentialNodes($optionalArgs['confidentialNodes']); - } - - if (isset($optionalArgs['gvnic'])) { - $request->setGvnic($optionalArgs['gvnic']); - } - - if (isset($optionalArgs['etag'])) { - $request->setEtag($optionalArgs['etag']); - } - - if (isset($optionalArgs['fastSocket'])) { - $request->setFastSocket($optionalArgs['fastSocket']); - } - - if (isset($optionalArgs['loggingConfig'])) { - $request->setLoggingConfig($optionalArgs['loggingConfig']); - } - - if (isset($optionalArgs['resourceLabels'])) { - $request->setResourceLabels($optionalArgs['resourceLabels']); - } - - if (isset($optionalArgs['windowsNodeConfig'])) { - $request->setWindowsNodeConfig($optionalArgs['windowsNodeConfig']); - } - - if (isset($optionalArgs['machineType'])) { - $request->setMachineType($optionalArgs['machineType']); - } - - if (isset($optionalArgs['diskType'])) { - $request->setDiskType($optionalArgs['diskType']); - } - - if (isset($optionalArgs['diskSizeGb'])) { - $request->setDiskSizeGb($optionalArgs['diskSizeGb']); - } - - if (isset($optionalArgs['resourceManagerTags'])) { - $request->setResourceManagerTags($optionalArgs['resourceManagerTags']); - } - - if (isset($optionalArgs['queuedProvisioning'])) { - $request->setQueuedProvisioning($optionalArgs['queuedProvisioning']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateNodePool', Operation::class, $optionalArgs, $request)->wait(); - } -} diff --git a/owl-bot-staging/Container/v1/src/V1/gapic_metadata.json b/owl-bot-staging/Container/v1/src/V1/gapic_metadata.json deleted file mode 100644 index b40efd84195c..000000000000 --- a/owl-bot-staging/Container/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,188 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.container.v1", - "libraryPackage": "Google\\Cloud\\Container\\V1", - "services": { - "ClusterManager": { - "clients": { - "grpc": { - "libraryClient": "ClusterManagerGapicClient", - "rpcs": { - "CancelOperation": { - "methods": [ - "cancelOperation" - ] - }, - "CheckAutopilotCompatibility": { - "methods": [ - "checkAutopilotCompatibility" - ] - }, - "CompleteIPRotation": { - "methods": [ - "completeIPRotation" - ] - }, - "CompleteNodePoolUpgrade": { - "methods": [ - "completeNodePoolUpgrade" - ] - }, - "CreateCluster": { - "methods": [ - "createCluster" - ] - }, - "CreateNodePool": { - "methods": [ - "createNodePool" - ] - }, - "DeleteCluster": { - "methods": [ - "deleteCluster" - ] - }, - "DeleteNodePool": { - "methods": [ - "deleteNodePool" - ] - }, - "GetCluster": { - "methods": [ - "getCluster" - ] - }, - "GetJSONWebKeys": { - "methods": [ - "getJSONWebKeys" - ] - }, - "GetNodePool": { - "methods": [ - "getNodePool" - ] - }, - "GetOperation": { - "methods": [ - "getOperation" - ] - }, - "GetServerConfig": { - "methods": [ - "getServerConfig" - ] - }, - "ListClusters": { - "methods": [ - "listClusters" - ] - }, - "ListNodePools": { - "methods": [ - "listNodePools" - ] - }, - "ListOperations": { - "methods": [ - "listOperations" - ] - }, - "ListUsableSubnetworks": { - "methods": [ - "listUsableSubnetworks" - ] - }, - "RollbackNodePoolUpgrade": { - "methods": [ - "rollbackNodePoolUpgrade" - ] - }, - "SetAddonsConfig": { - "methods": [ - "setAddonsConfig" - ] - }, - "SetLabels": { - "methods": [ - "setLabels" - ] - }, - "SetLegacyAbac": { - "methods": [ - "setLegacyAbac" - ] - }, - "SetLocations": { - "methods": [ - "setLocations" - ] - }, - "SetLoggingService": { - "methods": [ - "setLoggingService" - ] - }, - "SetMaintenancePolicy": { - "methods": [ - "setMaintenancePolicy" - ] - }, - "SetMasterAuth": { - "methods": [ - "setMasterAuth" - ] - }, - "SetMonitoringService": { - "methods": [ - "setMonitoringService" - ] - }, - "SetNetworkPolicy": { - "methods": [ - "setNetworkPolicy" - ] - }, - "SetNodePoolAutoscaling": { - "methods": [ - "setNodePoolAutoscaling" - ] - }, - "SetNodePoolManagement": { - "methods": [ - "setNodePoolManagement" - ] - }, - "SetNodePoolSize": { - "methods": [ - "setNodePoolSize" - ] - }, - "StartIPRotation": { - "methods": [ - "startIPRotation" - ] - }, - "UpdateCluster": { - "methods": [ - "updateCluster" - ] - }, - "UpdateMaster": { - "methods": [ - "updateMaster" - ] - }, - "UpdateNodePool": { - "methods": [ - "updateNodePool" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_client_config.json b/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_client_config.json deleted file mode 100644 index 12436c70b15c..000000000000 --- a/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_client_config.json +++ /dev/null @@ -1,215 +0,0 @@ -{ - "interfaces": { - "google.container.v1.ClusterManager": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE", - "DEADLINE_EXCEEDED" - ], - "no_retry_1_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 100, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 20000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 20000, - "total_timeout_millis": 20000 - }, - "no_retry_1_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 45000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 45000, - "total_timeout_millis": 45000 - } - }, - "methods": { - "CancelOperation": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CheckAutopilotCompatibility": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CompleteIPRotation": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CompleteNodePoolUpgrade": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CreateCluster": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateNodePool": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteCluster": { - "timeout_millis": 20000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteNodePool": { - "timeout_millis": 20000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetCluster": { - "timeout_millis": 20000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetJSONWebKeys": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetNodePool": { - "timeout_millis": 20000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetOperation": { - "timeout_millis": 20000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetServerConfig": { - "timeout_millis": 20000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListClusters": { - "timeout_millis": 20000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListNodePools": { - "timeout_millis": 20000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListOperations": { - "timeout_millis": 20000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListUsableSubnetworks": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "RollbackNodePoolUpgrade": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SetAddonsConfig": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SetLabels": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SetLegacyAbac": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SetLocations": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SetLoggingService": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SetMaintenancePolicy": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SetMasterAuth": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SetMonitoringService": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SetNetworkPolicy": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SetNodePoolAutoscaling": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SetNodePoolManagement": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SetNodePoolSize": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "StartIPRotation": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateCluster": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateMaster": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateNodePool": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_descriptor_config.php b/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_descriptor_config.php deleted file mode 100644 index 1b330b402c69..000000000000 --- a/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_descriptor_config.php +++ /dev/null @@ -1,1005 +0,0 @@ - [ - 'google.container.v1.ClusterManager' => [ - 'CancelOperation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'operation_id', - 'fieldAccessors' => [ - 'getOperationId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'CheckAutopilotCompatibility' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\CheckAutopilotCompatibilityResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'CompleteIPRotation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'CompleteNodePoolUpgrade' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'CreateCluster' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateNodePool' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteCluster' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteNodePool' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'node_pool_id', - 'fieldAccessors' => [ - 'getNodePoolId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetCluster' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Cluster', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetJSONWebKeys' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\GetJSONWebKeysResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'GetNodePool' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\NodePool', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'node_pool_id', - 'fieldAccessors' => [ - 'getNodePoolId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'operation_id', - 'fieldAccessors' => [ - 'getOperationId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetServerConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\ServerConfig', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListClusters' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\ListClustersResponse', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListNodePools' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\ListNodePoolsResponse', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListOperations' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\ListOperationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListUsableSubnetworks' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getSubnetworks', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Container\V1\ListUsableSubnetworksResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'RollbackNodePoolUpgrade' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'node_pool_id', - 'fieldAccessors' => [ - 'getNodePoolId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'SetAddonsConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'SetLabels' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'SetLegacyAbac' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'SetLocations' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'SetLoggingService' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'SetMaintenancePolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'SetMasterAuth' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'SetMonitoringService' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'SetNetworkPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'SetNodePoolAutoscaling' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'node_pool_id', - 'fieldAccessors' => [ - 'getNodePoolId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'SetNodePoolManagement' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'node_pool_id', - 'fieldAccessors' => [ - 'getNodePoolId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'SetNodePoolSize' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'node_pool_id', - 'fieldAccessors' => [ - 'getNodePoolId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'StartIPRotation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateCluster' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateMaster' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateNodePool' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'node_pool_id', - 'fieldAccessors' => [ - 'getNodePoolId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'topic' => 'projects/{project}/topics/{topic}', - ], - ], - ], -]; diff --git a/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_rest_client_config.php b/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_rest_client_config.php deleted file mode 100644 index 378a10f34ef5..000000000000 --- a/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_rest_client_config.php +++ /dev/null @@ -1,1091 +0,0 @@ - [ - 'google.container.v1.ClusterManager' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/operations/{operation_id}:cancel', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'operation_id' => [ - 'getters' => [ - 'getOperationId', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'CheckAutopilotCompatibility' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:checkAutopilotCompatibility', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'CompleteIPRotation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:completeIpRotation', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:completeIpRotation', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'CompleteNodePoolUpgrade' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:completeUpgrade', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'CreateCluster' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/clusters', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'CreateNodePool' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/clusters/*}/nodePools', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'DeleteCluster' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'DeleteNodePool' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'node_pool_id' => [ - 'getters' => [ - 'getNodePoolId', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'GetCluster' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'GetJSONWebKeys' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/clusters/*}/jwks', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'GetNodePool' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'node_pool_id' => [ - 'getters' => [ - 'getNodePoolId', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/operations/{operation_id}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'operation_id' => [ - 'getters' => [ - 'getOperationId', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'GetServerConfig' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/serverConfig', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/serverconfig', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'ListClusters' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/clusters', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'ListNodePools' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/clusters/*}/nodePools', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/operations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/operations', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'ListUsableSubnetworks' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*}/aggregated/usableSubnetworks', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'RollbackNodePoolUpgrade' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:rollback', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}:rollback', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'node_pool_id' => [ - 'getters' => [ - 'getNodePoolId', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'SetAddonsConfig' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setAddons', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/addons', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'SetLabels' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setResourceLabels', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/resourceLabels', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'SetLegacyAbac' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setLegacyAbac', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/legacyAbac', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'SetLocations' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setLocations', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/locations', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'SetLoggingService' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setLogging', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/logging', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'SetMaintenancePolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setMaintenancePolicy', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMaintenancePolicy', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'SetMasterAuth' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setMasterAuth', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMasterAuth', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'SetMonitoringService' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setMonitoring', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/monitoring', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'SetNetworkPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setNetworkPolicy', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setNetworkPolicy', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'SetNodePoolAutoscaling' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setAutoscaling', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/autoscaling', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'node_pool_id' => [ - 'getters' => [ - 'getNodePoolId', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'SetNodePoolManagement' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setManagement', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/setManagement', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'node_pool_id' => [ - 'getters' => [ - 'getNodePoolId', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'SetNodePoolSize' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setSize', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/setSize', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'node_pool_id' => [ - 'getters' => [ - 'getNodePoolId', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'StartIPRotation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:startIpRotation', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:startIpRotation', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'UpdateCluster' => [ - 'method' => 'put', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'put', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'UpdateMaster' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:updateMaster', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/master', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'UpdateNodePool' => [ - 'method' => 'put', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/update', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'node_pool_id' => [ - 'getters' => [ - 'getNodePoolId', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Container/v1/tests/Unit/V1/Client/ClusterManagerClientTest.php b/owl-bot-staging/Container/v1/tests/Unit/V1/Client/ClusterManagerClientTest.php deleted file mode 100644 index 8030f9685c5c..000000000000 --- a/owl-bot-staging/Container/v1/tests/Unit/V1/Client/ClusterManagerClientTest.php +++ /dev/null @@ -1,2644 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return ClusterManagerClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ClusterManagerClient($options); - } - - /** @test */ - public function cancelOperationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - $request = new CancelOperationRequest(); - $gapicClient->cancelOperation($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/CancelOperation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function cancelOperationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new CancelOperationRequest(); - try { - $gapicClient->cancelOperation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function checkAutopilotCompatibilityTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $summary = 'summary-1857640538'; - $expectedResponse = new CheckAutopilotCompatibilityResponse(); - $expectedResponse->setSummary($summary); - $transport->addResponse($expectedResponse); - $request = new CheckAutopilotCompatibilityRequest(); - $response = $gapicClient->checkAutopilotCompatibility($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/CheckAutopilotCompatibility', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function checkAutopilotCompatibilityExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new CheckAutopilotCompatibilityRequest(); - try { - $gapicClient->checkAutopilotCompatibility($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function completeIPRotationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - $request = new CompleteIPRotationRequest(); - $response = $gapicClient->completeIPRotation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/CompleteIPRotation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function completeIPRotationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new CompleteIPRotationRequest(); - try { - $gapicClient->completeIPRotation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function completeNodePoolUpgradeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - $request = new CompleteNodePoolUpgradeRequest(); - $gapicClient->completeNodePoolUpgrade($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/CompleteNodePoolUpgrade', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function completeNodePoolUpgradeExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new CompleteNodePoolUpgradeRequest(); - try { - $gapicClient->completeNodePoolUpgrade($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createClusterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $cluster = new Cluster(); - $request = (new CreateClusterRequest()) - ->setCluster($cluster); - $response = $gapicClient->createCluster($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/CreateCluster', $actualFuncCall); - $actualValue = $actualRequestObject->getCluster(); - $this->assertProtobufEquals($cluster, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createClusterExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $cluster = new Cluster(); - $request = (new CreateClusterRequest()) - ->setCluster($cluster); - try { - $gapicClient->createCluster($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createNodePoolTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $nodePool = new NodePool(); - $request = (new CreateNodePoolRequest()) - ->setNodePool($nodePool); - $response = $gapicClient->createNodePool($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/CreateNodePool', $actualFuncCall); - $actualValue = $actualRequestObject->getNodePool(); - $this->assertProtobufEquals($nodePool, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createNodePoolExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $nodePool = new NodePool(); - $request = (new CreateNodePoolRequest()) - ->setNodePool($nodePool); - try { - $gapicClient->createNodePool($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteClusterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - $request = new DeleteClusterRequest(); - $response = $gapicClient->deleteCluster($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/DeleteCluster', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteClusterExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new DeleteClusterRequest(); - try { - $gapicClient->deleteCluster($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteNodePoolTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - $request = new DeleteNodePoolRequest(); - $response = $gapicClient->deleteNodePool($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/DeleteNodePool', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteNodePoolExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new DeleteNodePoolRequest(); - try { - $gapicClient->deleteNodePool($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getClusterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $initialNodeCount = 1682564205; - $loggingService = 'loggingService-1700501035'; - $monitoringService = 'monitoringService1469270462'; - $network = 'network1843485230'; - $clusterIpv4Cidr = 'clusterIpv4Cidr-141875831'; - $subnetwork = 'subnetwork-1302785042'; - $enableKubernetesAlpha = false; - $labelFingerprint = 'labelFingerprint714995737'; - $selfLink = 'selfLink-1691268851'; - $zone2 = 'zone2-696322977'; - $endpoint = 'endpoint1741102485'; - $initialClusterVersion = 'initialClusterVersion-276373352'; - $currentMasterVersion = 'currentMasterVersion-920953983'; - $currentNodeVersion = 'currentNodeVersion-407476063'; - $createTime = 'createTime-493574096'; - $statusMessage = 'statusMessage-239442758'; - $nodeIpv4CidrSize = 1181176815; - $servicesIpv4Cidr = 'servicesIpv4Cidr1966438125'; - $currentNodeCount = 178977560; - $expireTime = 'expireTime-96179731'; - $location = 'location1901043637'; - $enableTpu = false; - $tpuIpv4CidrBlock = 'tpuIpv4CidrBlock1137906646'; - $id = 'id3355'; - $etag = 'etag3123477'; - $expectedResponse = new Cluster(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $expectedResponse->setInitialNodeCount($initialNodeCount); - $expectedResponse->setLoggingService($loggingService); - $expectedResponse->setMonitoringService($monitoringService); - $expectedResponse->setNetwork($network); - $expectedResponse->setClusterIpv4Cidr($clusterIpv4Cidr); - $expectedResponse->setSubnetwork($subnetwork); - $expectedResponse->setEnableKubernetesAlpha($enableKubernetesAlpha); - $expectedResponse->setLabelFingerprint($labelFingerprint); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setZone($zone2); - $expectedResponse->setEndpoint($endpoint); - $expectedResponse->setInitialClusterVersion($initialClusterVersion); - $expectedResponse->setCurrentMasterVersion($currentMasterVersion); - $expectedResponse->setCurrentNodeVersion($currentNodeVersion); - $expectedResponse->setCreateTime($createTime); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setNodeIpv4CidrSize($nodeIpv4CidrSize); - $expectedResponse->setServicesIpv4Cidr($servicesIpv4Cidr); - $expectedResponse->setCurrentNodeCount($currentNodeCount); - $expectedResponse->setExpireTime($expireTime); - $expectedResponse->setLocation($location); - $expectedResponse->setEnableTpu($enableTpu); - $expectedResponse->setTpuIpv4CidrBlock($tpuIpv4CidrBlock); - $expectedResponse->setId($id); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - $request = new GetClusterRequest(); - $response = $gapicClient->getCluster($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/GetCluster', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getClusterExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new GetClusterRequest(); - try { - $gapicClient->getCluster($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getJSONWebKeysTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GetJSONWebKeysResponse(); - $transport->addResponse($expectedResponse); - $request = new GetJSONWebKeysRequest(); - $response = $gapicClient->getJSONWebKeys($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/GetJSONWebKeys', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getJSONWebKeysExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new GetJSONWebKeysRequest(); - try { - $gapicClient->getJSONWebKeys($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getNodePoolTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $initialNodeCount = 1682564205; - $selfLink = 'selfLink-1691268851'; - $version = 'version351608024'; - $statusMessage = 'statusMessage-239442758'; - $podIpv4CidrSize = 1098768716; - $etag = 'etag3123477'; - $expectedResponse = new NodePool(); - $expectedResponse->setName($name2); - $expectedResponse->setInitialNodeCount($initialNodeCount); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setVersion($version); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setPodIpv4CidrSize($podIpv4CidrSize); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - $request = new GetNodePoolRequest(); - $response = $gapicClient->getNodePool($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/GetNodePool', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getNodePoolExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new GetNodePoolRequest(); - try { - $gapicClient->getNodePool($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getOperationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - $request = new \Google\Cloud\Container\V1\GetOperationRequest(); - $response = $gapicClient->getOperation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/GetOperation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getOperationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new \Google\Cloud\Container\V1\GetOperationRequest(); - try { - $gapicClient->getOperation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getServerConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $defaultClusterVersion = 'defaultClusterVersion111003029'; - $defaultImageType = 'defaultImageType-918225828'; - $expectedResponse = new ServerConfig(); - $expectedResponse->setDefaultClusterVersion($defaultClusterVersion); - $expectedResponse->setDefaultImageType($defaultImageType); - $transport->addResponse($expectedResponse); - $request = new GetServerConfigRequest(); - $response = $gapicClient->getServerConfig($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/GetServerConfig', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getServerConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new GetServerConfigRequest(); - try { - $gapicClient->getServerConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listClustersTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ListClustersResponse(); - $transport->addResponse($expectedResponse); - $request = new ListClustersRequest(); - $response = $gapicClient->listClusters($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/ListClusters', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listClustersExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListClustersRequest(); - try { - $gapicClient->listClusters($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listNodePoolsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ListNodePoolsResponse(); - $transport->addResponse($expectedResponse); - $request = new ListNodePoolsRequest(); - $response = $gapicClient->listNodePools($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/ListNodePools', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listNodePoolsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListNodePoolsRequest(); - try { - $gapicClient->listNodePools($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listOperationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ListOperationsResponse(); - $transport->addResponse($expectedResponse); - $request = new ListOperationsRequest(); - $response = $gapicClient->listOperations($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/ListOperations', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listOperationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListOperationsRequest(); - try { - $gapicClient->listOperations($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listUsableSubnetworksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $subnetworksElement = new UsableSubnetwork(); - $subnetworks = [ - $subnetworksElement, - ]; - $expectedResponse = new ListUsableSubnetworksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setSubnetworks($subnetworks); - $transport->addResponse($expectedResponse); - $request = new ListUsableSubnetworksRequest(); - $response = $gapicClient->listUsableSubnetworks($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getSubnetworks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/ListUsableSubnetworks', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listUsableSubnetworksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListUsableSubnetworksRequest(); - try { - $gapicClient->listUsableSubnetworks($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function rollbackNodePoolUpgradeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - $request = new RollbackNodePoolUpgradeRequest(); - $response = $gapicClient->rollbackNodePoolUpgrade($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/RollbackNodePoolUpgrade', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function rollbackNodePoolUpgradeExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new RollbackNodePoolUpgradeRequest(); - try { - $gapicClient->rollbackNodePoolUpgrade($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setAddonsConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $addonsConfig = new AddonsConfig(); - $request = (new SetAddonsConfigRequest()) - ->setAddonsConfig($addonsConfig); - $response = $gapicClient->setAddonsConfig($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetAddonsConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getAddonsConfig(); - $this->assertProtobufEquals($addonsConfig, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setAddonsConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $addonsConfig = new AddonsConfig(); - $request = (new SetAddonsConfigRequest()) - ->setAddonsConfig($addonsConfig); - try { - $gapicClient->setAddonsConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setLabelsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $resourceLabelsValue = 'resourceLabelsValue-1244473404'; - $resourceLabels = [ - 'resourceLabelsKey' => $resourceLabelsValue, - ]; - $labelFingerprint = 'labelFingerprint714995737'; - $request = (new SetLabelsRequest()) - ->setResourceLabels($resourceLabels) - ->setLabelFingerprint($labelFingerprint); - $response = $gapicClient->setLabels($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetLabels', $actualFuncCall); - $actualValue = $actualRequestObject->getResourceLabels(); - $this->assertProtobufEquals($resourceLabels, $actualValue); - $actualValue = $actualRequestObject->getLabelFingerprint(); - $this->assertProtobufEquals($labelFingerprint, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setLabelsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $resourceLabelsValue = 'resourceLabelsValue-1244473404'; - $resourceLabels = [ - 'resourceLabelsKey' => $resourceLabelsValue, - ]; - $labelFingerprint = 'labelFingerprint714995737'; - $request = (new SetLabelsRequest()) - ->setResourceLabels($resourceLabels) - ->setLabelFingerprint($labelFingerprint); - try { - $gapicClient->setLabels($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setLegacyAbacTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $enabled = false; - $request = (new SetLegacyAbacRequest()) - ->setEnabled($enabled); - $response = $gapicClient->setLegacyAbac($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetLegacyAbac', $actualFuncCall); - $actualValue = $actualRequestObject->getEnabled(); - $this->assertProtobufEquals($enabled, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setLegacyAbacExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $enabled = false; - $request = (new SetLegacyAbacRequest()) - ->setEnabled($enabled); - try { - $gapicClient->setLegacyAbac($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setLocationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $locations = []; - $request = (new SetLocationsRequest()) - ->setLocations($locations); - $response = $gapicClient->setLocations($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetLocations', $actualFuncCall); - $actualValue = $actualRequestObject->getLocations(); - $this->assertProtobufEquals($locations, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setLocationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $locations = []; - $request = (new SetLocationsRequest()) - ->setLocations($locations); - try { - $gapicClient->setLocations($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setLoggingServiceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $loggingService = 'loggingService-1700501035'; - $request = (new SetLoggingServiceRequest()) - ->setLoggingService($loggingService); - $response = $gapicClient->setLoggingService($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetLoggingService', $actualFuncCall); - $actualValue = $actualRequestObject->getLoggingService(); - $this->assertProtobufEquals($loggingService, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setLoggingServiceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $loggingService = 'loggingService-1700501035'; - $request = (new SetLoggingServiceRequest()) - ->setLoggingService($loggingService); - try { - $gapicClient->setLoggingService($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setMaintenancePolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $projectId = 'projectId-1969970175'; - $zone = 'zone3744684'; - $clusterId = 'clusterId240280960'; - $maintenancePolicy = new MaintenancePolicy(); - $request = (new SetMaintenancePolicyRequest()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId) - ->setMaintenancePolicy($maintenancePolicy); - $response = $gapicClient->setMaintenancePolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetMaintenancePolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getProjectId(); - $this->assertProtobufEquals($projectId, $actualValue); - $actualValue = $actualRequestObject->getZone(); - $this->assertProtobufEquals($zone, $actualValue); - $actualValue = $actualRequestObject->getClusterId(); - $this->assertProtobufEquals($clusterId, $actualValue); - $actualValue = $actualRequestObject->getMaintenancePolicy(); - $this->assertProtobufEquals($maintenancePolicy, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setMaintenancePolicyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $projectId = 'projectId-1969970175'; - $zone = 'zone3744684'; - $clusterId = 'clusterId240280960'; - $maintenancePolicy = new MaintenancePolicy(); - $request = (new SetMaintenancePolicyRequest()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId) - ->setMaintenancePolicy($maintenancePolicy); - try { - $gapicClient->setMaintenancePolicy($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setMasterAuthTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $action = Action::UNKNOWN; - $update = new MasterAuth(); - $request = (new SetMasterAuthRequest()) - ->setAction($action) - ->setUpdate($update); - $response = $gapicClient->setMasterAuth($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetMasterAuth', $actualFuncCall); - $actualValue = $actualRequestObject->getAction(); - $this->assertProtobufEquals($action, $actualValue); - $actualValue = $actualRequestObject->getUpdate(); - $this->assertProtobufEquals($update, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setMasterAuthExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $action = Action::UNKNOWN; - $update = new MasterAuth(); - $request = (new SetMasterAuthRequest()) - ->setAction($action) - ->setUpdate($update); - try { - $gapicClient->setMasterAuth($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setMonitoringServiceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $monitoringService = 'monitoringService1469270462'; - $request = (new SetMonitoringServiceRequest()) - ->setMonitoringService($monitoringService); - $response = $gapicClient->setMonitoringService($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetMonitoringService', $actualFuncCall); - $actualValue = $actualRequestObject->getMonitoringService(); - $this->assertProtobufEquals($monitoringService, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setMonitoringServiceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $monitoringService = 'monitoringService1469270462'; - $request = (new SetMonitoringServiceRequest()) - ->setMonitoringService($monitoringService); - try { - $gapicClient->setMonitoringService($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setNetworkPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $networkPolicy = new NetworkPolicy(); - $request = (new SetNetworkPolicyRequest()) - ->setNetworkPolicy($networkPolicy); - $response = $gapicClient->setNetworkPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetNetworkPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getNetworkPolicy(); - $this->assertProtobufEquals($networkPolicy, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setNetworkPolicyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $networkPolicy = new NetworkPolicy(); - $request = (new SetNetworkPolicyRequest()) - ->setNetworkPolicy($networkPolicy); - try { - $gapicClient->setNetworkPolicy($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setNodePoolAutoscalingTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $autoscaling = new NodePoolAutoscaling(); - $request = (new SetNodePoolAutoscalingRequest()) - ->setAutoscaling($autoscaling); - $response = $gapicClient->setNodePoolAutoscaling($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetNodePoolAutoscaling', $actualFuncCall); - $actualValue = $actualRequestObject->getAutoscaling(); - $this->assertProtobufEquals($autoscaling, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setNodePoolAutoscalingExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $autoscaling = new NodePoolAutoscaling(); - $request = (new SetNodePoolAutoscalingRequest()) - ->setAutoscaling($autoscaling); - try { - $gapicClient->setNodePoolAutoscaling($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setNodePoolManagementTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $management = new NodeManagement(); - $request = (new SetNodePoolManagementRequest()) - ->setManagement($management); - $response = $gapicClient->setNodePoolManagement($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetNodePoolManagement', $actualFuncCall); - $actualValue = $actualRequestObject->getManagement(); - $this->assertProtobufEquals($management, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setNodePoolManagementExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $management = new NodeManagement(); - $request = (new SetNodePoolManagementRequest()) - ->setManagement($management); - try { - $gapicClient->setNodePoolManagement($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setNodePoolSizeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $nodeCount = 1539922066; - $request = (new SetNodePoolSizeRequest()) - ->setNodeCount($nodeCount); - $response = $gapicClient->setNodePoolSize($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetNodePoolSize', $actualFuncCall); - $actualValue = $actualRequestObject->getNodeCount(); - $this->assertProtobufEquals($nodeCount, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setNodePoolSizeExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $nodeCount = 1539922066; - $request = (new SetNodePoolSizeRequest()) - ->setNodeCount($nodeCount); - try { - $gapicClient->setNodePoolSize($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function startIPRotationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - $request = new StartIPRotationRequest(); - $response = $gapicClient->startIPRotation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/StartIPRotation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function startIPRotationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new StartIPRotationRequest(); - try { - $gapicClient->startIPRotation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateClusterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $update = new ClusterUpdate(); - $request = (new UpdateClusterRequest()) - ->setUpdate($update); - $response = $gapicClient->updateCluster($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/UpdateCluster', $actualFuncCall); - $actualValue = $actualRequestObject->getUpdate(); - $this->assertProtobufEquals($update, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateClusterExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $update = new ClusterUpdate(); - $request = (new UpdateClusterRequest()) - ->setUpdate($update); - try { - $gapicClient->updateCluster($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateMasterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $masterVersion = 'masterVersion-2139460613'; - $request = (new UpdateMasterRequest()) - ->setMasterVersion($masterVersion); - $response = $gapicClient->updateMaster($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/UpdateMaster', $actualFuncCall); - $actualValue = $actualRequestObject->getMasterVersion(); - $this->assertProtobufEquals($masterVersion, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateMasterExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $masterVersion = 'masterVersion-2139460613'; - $request = (new UpdateMasterRequest()) - ->setMasterVersion($masterVersion); - try { - $gapicClient->updateMaster($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateNodePoolTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $nodeVersion = 'nodeVersion1790136219'; - $imageType = 'imageType-1442758754'; - $request = (new UpdateNodePoolRequest()) - ->setNodeVersion($nodeVersion) - ->setImageType($imageType); - $response = $gapicClient->updateNodePool($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/UpdateNodePool', $actualFuncCall); - $actualValue = $actualRequestObject->getNodeVersion(); - $this->assertProtobufEquals($nodeVersion, $actualValue); - $actualValue = $actualRequestObject->getImageType(); - $this->assertProtobufEquals($imageType, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateNodePoolExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $nodeVersion = 'nodeVersion1790136219'; - $imageType = 'imageType-1442758754'; - $request = (new UpdateNodePoolRequest()) - ->setNodeVersion($nodeVersion) - ->setImageType($imageType); - try { - $gapicClient->updateNodePool($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function cancelOperationAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - $request = new CancelOperationRequest(); - $gapicClient->cancelOperationAsync($request)->wait(); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/CancelOperation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Container/v1/tests/Unit/V1/ClusterManagerClientTest.php b/owl-bot-staging/Container/v1/tests/Unit/V1/ClusterManagerClientTest.php deleted file mode 100644 index 0689ca788340..000000000000 --- a/owl-bot-staging/Container/v1/tests/Unit/V1/ClusterManagerClientTest.php +++ /dev/null @@ -1,2476 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return ClusterManagerClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ClusterManagerClient($options); - } - - /** @test */ - public function cancelOperationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - $gapicClient->cancelOperation(); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/CancelOperation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function cancelOperationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->cancelOperation(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function checkAutopilotCompatibilityTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $summary = 'summary-1857640538'; - $expectedResponse = new CheckAutopilotCompatibilityResponse(); - $expectedResponse->setSummary($summary); - $transport->addResponse($expectedResponse); - $response = $gapicClient->checkAutopilotCompatibility(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/CheckAutopilotCompatibility', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function checkAutopilotCompatibilityExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->checkAutopilotCompatibility(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function completeIPRotationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - $response = $gapicClient->completeIPRotation(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/CompleteIPRotation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function completeIPRotationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->completeIPRotation(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function completeNodePoolUpgradeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - $gapicClient->completeNodePoolUpgrade(); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/CompleteNodePoolUpgrade', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function completeNodePoolUpgradeExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->completeNodePoolUpgrade(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createClusterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $cluster = new Cluster(); - $response = $gapicClient->createCluster($cluster); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/CreateCluster', $actualFuncCall); - $actualValue = $actualRequestObject->getCluster(); - $this->assertProtobufEquals($cluster, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createClusterExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $cluster = new Cluster(); - try { - $gapicClient->createCluster($cluster); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createNodePoolTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $nodePool = new NodePool(); - $response = $gapicClient->createNodePool($nodePool); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/CreateNodePool', $actualFuncCall); - $actualValue = $actualRequestObject->getNodePool(); - $this->assertProtobufEquals($nodePool, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createNodePoolExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $nodePool = new NodePool(); - try { - $gapicClient->createNodePool($nodePool); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteClusterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - $response = $gapicClient->deleteCluster(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/DeleteCluster', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteClusterExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->deleteCluster(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteNodePoolTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - $response = $gapicClient->deleteNodePool(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/DeleteNodePool', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteNodePoolExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->deleteNodePool(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getClusterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $initialNodeCount = 1682564205; - $loggingService = 'loggingService-1700501035'; - $monitoringService = 'monitoringService1469270462'; - $network = 'network1843485230'; - $clusterIpv4Cidr = 'clusterIpv4Cidr-141875831'; - $subnetwork = 'subnetwork-1302785042'; - $enableKubernetesAlpha = false; - $labelFingerprint = 'labelFingerprint714995737'; - $selfLink = 'selfLink-1691268851'; - $zone2 = 'zone2-696322977'; - $endpoint = 'endpoint1741102485'; - $initialClusterVersion = 'initialClusterVersion-276373352'; - $currentMasterVersion = 'currentMasterVersion-920953983'; - $currentNodeVersion = 'currentNodeVersion-407476063'; - $createTime = 'createTime-493574096'; - $statusMessage = 'statusMessage-239442758'; - $nodeIpv4CidrSize = 1181176815; - $servicesIpv4Cidr = 'servicesIpv4Cidr1966438125'; - $currentNodeCount = 178977560; - $expireTime = 'expireTime-96179731'; - $location = 'location1901043637'; - $enableTpu = false; - $tpuIpv4CidrBlock = 'tpuIpv4CidrBlock1137906646'; - $id = 'id3355'; - $etag = 'etag3123477'; - $expectedResponse = new Cluster(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $expectedResponse->setInitialNodeCount($initialNodeCount); - $expectedResponse->setLoggingService($loggingService); - $expectedResponse->setMonitoringService($monitoringService); - $expectedResponse->setNetwork($network); - $expectedResponse->setClusterIpv4Cidr($clusterIpv4Cidr); - $expectedResponse->setSubnetwork($subnetwork); - $expectedResponse->setEnableKubernetesAlpha($enableKubernetesAlpha); - $expectedResponse->setLabelFingerprint($labelFingerprint); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setZone($zone2); - $expectedResponse->setEndpoint($endpoint); - $expectedResponse->setInitialClusterVersion($initialClusterVersion); - $expectedResponse->setCurrentMasterVersion($currentMasterVersion); - $expectedResponse->setCurrentNodeVersion($currentNodeVersion); - $expectedResponse->setCreateTime($createTime); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setNodeIpv4CidrSize($nodeIpv4CidrSize); - $expectedResponse->setServicesIpv4Cidr($servicesIpv4Cidr); - $expectedResponse->setCurrentNodeCount($currentNodeCount); - $expectedResponse->setExpireTime($expireTime); - $expectedResponse->setLocation($location); - $expectedResponse->setEnableTpu($enableTpu); - $expectedResponse->setTpuIpv4CidrBlock($tpuIpv4CidrBlock); - $expectedResponse->setId($id); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - $response = $gapicClient->getCluster(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/GetCluster', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getClusterExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->getCluster(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getJSONWebKeysTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GetJSONWebKeysResponse(); - $transport->addResponse($expectedResponse); - $response = $gapicClient->getJSONWebKeys(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/GetJSONWebKeys', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getJSONWebKeysExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->getJSONWebKeys(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getNodePoolTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $initialNodeCount = 1682564205; - $selfLink = 'selfLink-1691268851'; - $version = 'version351608024'; - $statusMessage = 'statusMessage-239442758'; - $podIpv4CidrSize = 1098768716; - $etag = 'etag3123477'; - $expectedResponse = new NodePool(); - $expectedResponse->setName($name2); - $expectedResponse->setInitialNodeCount($initialNodeCount); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setVersion($version); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setPodIpv4CidrSize($podIpv4CidrSize); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - $response = $gapicClient->getNodePool(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/GetNodePool', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getNodePoolExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->getNodePool(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getOperationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - $response = $gapicClient->getOperation(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/GetOperation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getOperationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->getOperation(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getServerConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $defaultClusterVersion = 'defaultClusterVersion111003029'; - $defaultImageType = 'defaultImageType-918225828'; - $expectedResponse = new ServerConfig(); - $expectedResponse->setDefaultClusterVersion($defaultClusterVersion); - $expectedResponse->setDefaultImageType($defaultImageType); - $transport->addResponse($expectedResponse); - $response = $gapicClient->getServerConfig(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/GetServerConfig', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getServerConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->getServerConfig(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listClustersTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ListClustersResponse(); - $transport->addResponse($expectedResponse); - $response = $gapicClient->listClusters(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/ListClusters', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listClustersExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->listClusters(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listNodePoolsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ListNodePoolsResponse(); - $transport->addResponse($expectedResponse); - $response = $gapicClient->listNodePools(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/ListNodePools', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listNodePoolsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->listNodePools(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listOperationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ListOperationsResponse(); - $transport->addResponse($expectedResponse); - $response = $gapicClient->listOperations(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/ListOperations', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listOperationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->listOperations(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listUsableSubnetworksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $subnetworksElement = new UsableSubnetwork(); - $subnetworks = [ - $subnetworksElement, - ]; - $expectedResponse = new ListUsableSubnetworksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setSubnetworks($subnetworks); - $transport->addResponse($expectedResponse); - $response = $gapicClient->listUsableSubnetworks(); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getSubnetworks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/ListUsableSubnetworks', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listUsableSubnetworksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->listUsableSubnetworks(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function rollbackNodePoolUpgradeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - $response = $gapicClient->rollbackNodePoolUpgrade(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/RollbackNodePoolUpgrade', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function rollbackNodePoolUpgradeExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->rollbackNodePoolUpgrade(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setAddonsConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $addonsConfig = new AddonsConfig(); - $response = $gapicClient->setAddonsConfig($addonsConfig); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetAddonsConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getAddonsConfig(); - $this->assertProtobufEquals($addonsConfig, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setAddonsConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $addonsConfig = new AddonsConfig(); - try { - $gapicClient->setAddonsConfig($addonsConfig); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setLabelsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $resourceLabelsValue = 'resourceLabelsValue-1244473404'; - $resourceLabels = [ - 'resourceLabelsKey' => $resourceLabelsValue, - ]; - $labelFingerprint = 'labelFingerprint714995737'; - $response = $gapicClient->setLabels($resourceLabels, $labelFingerprint); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetLabels', $actualFuncCall); - $actualValue = $actualRequestObject->getResourceLabels(); - $this->assertProtobufEquals($resourceLabels, $actualValue); - $actualValue = $actualRequestObject->getLabelFingerprint(); - $this->assertProtobufEquals($labelFingerprint, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setLabelsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $resourceLabelsValue = 'resourceLabelsValue-1244473404'; - $resourceLabels = [ - 'resourceLabelsKey' => $resourceLabelsValue, - ]; - $labelFingerprint = 'labelFingerprint714995737'; - try { - $gapicClient->setLabels($resourceLabels, $labelFingerprint); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setLegacyAbacTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $enabled = false; - $response = $gapicClient->setLegacyAbac($enabled); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetLegacyAbac', $actualFuncCall); - $actualValue = $actualRequestObject->getEnabled(); - $this->assertProtobufEquals($enabled, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setLegacyAbacExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $enabled = false; - try { - $gapicClient->setLegacyAbac($enabled); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setLocationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $locations = []; - $response = $gapicClient->setLocations($locations); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetLocations', $actualFuncCall); - $actualValue = $actualRequestObject->getLocations(); - $this->assertProtobufEquals($locations, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setLocationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $locations = []; - try { - $gapicClient->setLocations($locations); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setLoggingServiceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $loggingService = 'loggingService-1700501035'; - $response = $gapicClient->setLoggingService($loggingService); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetLoggingService', $actualFuncCall); - $actualValue = $actualRequestObject->getLoggingService(); - $this->assertProtobufEquals($loggingService, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setLoggingServiceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $loggingService = 'loggingService-1700501035'; - try { - $gapicClient->setLoggingService($loggingService); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setMaintenancePolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $projectId = 'projectId-1969970175'; - $zone = 'zone3744684'; - $clusterId = 'clusterId240280960'; - $maintenancePolicy = new MaintenancePolicy(); - $response = $gapicClient->setMaintenancePolicy($projectId, $zone, $clusterId, $maintenancePolicy); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetMaintenancePolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getProjectId(); - $this->assertProtobufEquals($projectId, $actualValue); - $actualValue = $actualRequestObject->getZone(); - $this->assertProtobufEquals($zone, $actualValue); - $actualValue = $actualRequestObject->getClusterId(); - $this->assertProtobufEquals($clusterId, $actualValue); - $actualValue = $actualRequestObject->getMaintenancePolicy(); - $this->assertProtobufEquals($maintenancePolicy, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setMaintenancePolicyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $projectId = 'projectId-1969970175'; - $zone = 'zone3744684'; - $clusterId = 'clusterId240280960'; - $maintenancePolicy = new MaintenancePolicy(); - try { - $gapicClient->setMaintenancePolicy($projectId, $zone, $clusterId, $maintenancePolicy); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setMasterAuthTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $action = Action::UNKNOWN; - $update = new MasterAuth(); - $response = $gapicClient->setMasterAuth($action, $update); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetMasterAuth', $actualFuncCall); - $actualValue = $actualRequestObject->getAction(); - $this->assertProtobufEquals($action, $actualValue); - $actualValue = $actualRequestObject->getUpdate(); - $this->assertProtobufEquals($update, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setMasterAuthExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $action = Action::UNKNOWN; - $update = new MasterAuth(); - try { - $gapicClient->setMasterAuth($action, $update); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setMonitoringServiceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $monitoringService = 'monitoringService1469270462'; - $response = $gapicClient->setMonitoringService($monitoringService); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetMonitoringService', $actualFuncCall); - $actualValue = $actualRequestObject->getMonitoringService(); - $this->assertProtobufEquals($monitoringService, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setMonitoringServiceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $monitoringService = 'monitoringService1469270462'; - try { - $gapicClient->setMonitoringService($monitoringService); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setNetworkPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $networkPolicy = new NetworkPolicy(); - $response = $gapicClient->setNetworkPolicy($networkPolicy); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetNetworkPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getNetworkPolicy(); - $this->assertProtobufEquals($networkPolicy, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setNetworkPolicyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $networkPolicy = new NetworkPolicy(); - try { - $gapicClient->setNetworkPolicy($networkPolicy); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setNodePoolAutoscalingTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $autoscaling = new NodePoolAutoscaling(); - $response = $gapicClient->setNodePoolAutoscaling($autoscaling); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetNodePoolAutoscaling', $actualFuncCall); - $actualValue = $actualRequestObject->getAutoscaling(); - $this->assertProtobufEquals($autoscaling, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setNodePoolAutoscalingExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $autoscaling = new NodePoolAutoscaling(); - try { - $gapicClient->setNodePoolAutoscaling($autoscaling); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setNodePoolManagementTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $management = new NodeManagement(); - $response = $gapicClient->setNodePoolManagement($management); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetNodePoolManagement', $actualFuncCall); - $actualValue = $actualRequestObject->getManagement(); - $this->assertProtobufEquals($management, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setNodePoolManagementExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $management = new NodeManagement(); - try { - $gapicClient->setNodePoolManagement($management); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setNodePoolSizeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $nodeCount = 1539922066; - $response = $gapicClient->setNodePoolSize($nodeCount); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetNodePoolSize', $actualFuncCall); - $actualValue = $actualRequestObject->getNodeCount(); - $this->assertProtobufEquals($nodeCount, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setNodePoolSizeExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $nodeCount = 1539922066; - try { - $gapicClient->setNodePoolSize($nodeCount); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function startIPRotationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - $response = $gapicClient->startIPRotation(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/StartIPRotation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function startIPRotationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->startIPRotation(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateClusterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $update = new ClusterUpdate(); - $response = $gapicClient->updateCluster($update); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/UpdateCluster', $actualFuncCall); - $actualValue = $actualRequestObject->getUpdate(); - $this->assertProtobufEquals($update, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateClusterExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $update = new ClusterUpdate(); - try { - $gapicClient->updateCluster($update); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateMasterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $masterVersion = 'masterVersion-2139460613'; - $response = $gapicClient->updateMaster($masterVersion); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/UpdateMaster', $actualFuncCall); - $actualValue = $actualRequestObject->getMasterVersion(); - $this->assertProtobufEquals($masterVersion, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateMasterExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $masterVersion = 'masterVersion-2139460613'; - try { - $gapicClient->updateMaster($masterVersion); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateNodePoolTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $nodeVersion = 'nodeVersion1790136219'; - $imageType = 'imageType-1442758754'; - $response = $gapicClient->updateNodePool($nodeVersion, $imageType); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/UpdateNodePool', $actualFuncCall); - $actualValue = $actualRequestObject->getNodeVersion(); - $this->assertProtobufEquals($nodeVersion, $actualValue); - $actualValue = $actualRequestObject->getImageType(); - $this->assertProtobufEquals($imageType, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateNodePoolExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $nodeVersion = 'nodeVersion1790136219'; - $imageType = 'imageType-1442758754'; - try { - $gapicClient->updateNodePool($nodeVersion, $imageType); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } -}