From 88175994b0105dfda32f24459112af8ec04ffd72 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 25 Jan 2022 19:53:26 +0000 Subject: [PATCH 1/2] fix: reverting unintentional breaking change: GetOpenIdConfigRequest, GetOpenIdConfigResponse PiperOrigin-RevId: 424115592 Source-Link: https://github.com/googleapis/googleapis/commit/853e8a29cecd0816c8b003b299032c3a5168ef8b Source-Link: https://github.com/googleapis/googleapis-gen/commit/8e17f77fb9e4843845bf0ee1d466dcee001cc2c4 Copy-Tag: eyJwIjoiQ29udGFpbmVyLy5Pd2xCb3QueWFtbCIsImgiOiI4ZTE3Zjc3ZmI5ZTQ4NDM4NDViZjBlZTFkNDY2ZGNlZTAwMWNjMmM0In0= --- .../Google/Container/V1/ClusterService.php | Bin 0 -> 36804 bytes .../Cloud/Container/V1/AcceleratorConfig.php | 147 + .../Cloud/Container/V1/AddonsConfig.php | 481 +++ .../Container/V1/AdvancedMachineFeatures.php | 85 + .../V1/AuthenticatorGroupsConfig.php | 109 + .../Cloud/Container/V1/AutoUpgradeOptions.php | 114 + .../Google/Cloud/Container/V1/Autopilot.php | 67 + .../V1/AutoprovisioningNodePoolDefaults.php | 472 +++ .../Container/V1/BinaryAuthorization.php | 71 + .../Container/V1/CancelOperationRequest.php | 212 ++ .../Container/V1/ClientCertificateConfig.php | 67 + .../Cloud/Container/V1/CloudRunConfig.php | 101 + .../V1/CloudRunConfig/LoadBalancerType.php | 64 + .../V1/CloudRunConfig_LoadBalancerType.php | 16 + .../src/Google/Cloud/Container/V1/Cluster.php | 2786 +++++++++++++++++ .../Cloud/Container/V1/Cluster/Status.php | 97 + .../Cloud/Container/V1/ClusterAutoscaling.php | 232 ++ .../ClusterAutoscaling/AutoscalingProfile.php | 64 + .../ClusterAutoscaling_AutoscalingProfile.php | 16 + .../Container/V1/ClusterManagerGrpcClient.php | 548 ++++ .../Cloud/Container/V1/ClusterUpdate.php | 1533 +++++++++ .../Cloud/Container/V1/Cluster_Status.php | 16 + .../V1/CompleteIPRotationRequest.php | 212 ++ .../Cloud/Container/V1/ConfidentialNodes.php | 72 + .../Container/V1/ConfigConnectorConfig.php | 67 + .../Container/V1/CreateClusterRequest.php | 217 ++ .../Container/V1/CreateNodePoolRequest.php | 260 ++ .../Google/Cloud/Container/V1/DNSConfig.php | 135 + .../Cloud/Container/V1/DNSConfig/DNSScope.php | 57 + .../Cloud/Container/V1/DNSConfig/Provider.php | 64 + .../Cloud/Container/V1/DNSConfig_DNSScope.php | 16 + .../Cloud/Container/V1/DNSConfig_Provider.php | 16 + .../Container/V1/DailyMaintenanceWindow.php | 121 + .../Cloud/Container/V1/DatabaseEncryption.php | 105 + .../Container/V1/DatabaseEncryption/State.php | 65 + .../Container/V1/DatabaseEncryption_State.php | 16 + .../Cloud/Container/V1/DatapathProvider.php | 65 + .../Cloud/Container/V1/DefaultSnatStatus.php | 68 + .../Container/V1/DeleteClusterRequest.php | 212 ++ .../Container/V1/DeleteNodePoolRequest.php | 259 ++ .../Cloud/Container/V1/DnsCacheConfig.php | 67 + .../V1/GcePersistentDiskCsiDriverConfig.php | 67 + .../Google/Cloud/Container/V1/GcfsConfig.php | 68 + .../V1/GcpFilestoreCsiDriverConfig.php | 67 + .../Cloud/Container/V1/GetClusterRequest.php | 212 ++ .../Container/V1/GetJSONWebKeysRequest.php | 74 + .../Container/V1/GetJSONWebKeysResponse.php | 71 + .../Cloud/Container/V1/GetNodePoolRequest.php | 259 ++ .../Container/V1/GetOpenIDConfigRequest.php | 72 + .../Container/V1/GetOpenIDConfigResponse.php | 272 ++ .../Container/V1/GetOperationRequest.php | 212 ++ .../Container/V1/GetServerConfigRequest.php | 169 + .../Container/V1/HorizontalPodAutoscaling.php | 77 + .../Cloud/Container/V1/HttpLoadBalancing.php | 76 + .../Container/V1/ILBSubsettingConfig.php | 68 + .../Cloud/Container/V1/IPAllocationPolicy.php | 722 +++++ .../V1/IntraNodeVisibilityConfig.php | 68 + .../src/Google/Cloud/Container/V1/Jwk.php | 339 ++ .../Container/V1/KubernetesDashboard.php | 67 + .../Google/Cloud/Container/V1/LegacyAbac.php | 80 + .../Cloud/Container/V1/LinuxNodeConfig.php | 111 + .../Container/V1/ListClustersRequest.php | 173 + .../Container/V1/ListClustersResponse.php | 109 + .../Container/V1/ListNodePoolsRequest.php | 212 ++ .../Container/V1/ListNodePoolsResponse.php | 67 + .../Container/V1/ListOperationsRequest.php | 173 + .../Container/V1/ListOperationsResponse.php | 105 + .../V1/ListUsableSubnetworksRequest.php | 202 ++ .../V1/ListUsableSubnetworksResponse.php | 114 + .../Container/V1/LoggingComponentConfig.php | 67 + .../V1/LoggingComponentConfig/Component.php | 64 + .../V1/LoggingComponentConfig_Component.php | 16 + .../Cloud/Container/V1/LoggingConfig.php | 77 + .../V1/MaintenanceExclusionOptions.php | 71 + .../V1/MaintenanceExclusionOptions/Scope.php | 69 + .../V1/MaintenanceExclusionOptions_Scope.php | 16 + .../Cloud/Container/V1/MaintenancePolicy.php | 127 + .../Cloud/Container/V1/MaintenanceWindow.php | 152 + .../Google/Cloud/Container/V1/MasterAuth.php | 331 ++ .../V1/MasterAuthorizedNetworksConfig.php | 108 + .../CidrBlock.php | 104 + ...sterAuthorizedNetworksConfig_CidrBlock.php | 16 + .../Cloud/Container/V1/MaxPodsConstraint.php | 67 + .../Cloud/Container/V1/MeshCertificates.php | 140 + .../V1/MonitoringComponentConfig.php | 71 + .../MonitoringComponentConfig/Component.php | 57 + .../MonitoringComponentConfig_Component.php | 16 + .../Cloud/Container/V1/MonitoringConfig.php | 77 + .../Cloud/Container/V1/NetworkConfig.php | 425 +++ .../Cloud/Container/V1/NetworkPolicy.php | 102 + .../Container/V1/NetworkPolicy/Provider.php | 57 + .../Container/V1/NetworkPolicyConfig.php | 69 + .../Container/V1/NetworkPolicy_Provider.php | 16 + .../Google/Cloud/Container/V1/NodeConfig.php | 1309 ++++++++ .../Cloud/Container/V1/NodeConfigDefaults.php | 77 + .../Cloud/Container/V1/NodeKubeletConfig.php | 258 ++ .../Cloud/Container/V1/NodeManagement.php | 166 + .../Cloud/Container/V1/NodeNetworkConfig.php | 219 ++ .../Google/Cloud/Container/V1/NodePool.php | 715 +++++ .../Cloud/Container/V1/NodePool/Status.php | 99 + .../Container/V1/NodePool/UpgradeSettings.php | 133 + .../Container/V1/NodePoolAutoscaling.php | 178 ++ .../Cloud/Container/V1/NodePoolDefaults.php | 77 + .../Cloud/Container/V1/NodePool_Status.php | 16 + .../Container/V1/NodePool_UpgradeSettings.php | 16 + .../Google/Cloud/Container/V1/NodeTaint.php | 139 + .../Cloud/Container/V1/NodeTaint/Effect.php | 71 + .../Cloud/Container/V1/NodeTaint_Effect.php | 16 + .../Cloud/Container/V1/NotificationConfig.php | 77 + .../V1/NotificationConfig/EventType.php | 72 + .../V1/NotificationConfig/Filter.php | 73 + .../V1/NotificationConfig/PubSub.php | 160 + .../V1/NotificationConfig_EventType.php | 16 + .../V1/NotificationConfig_Filter.php | 16 + .../V1/NotificationConfig_PubSub.php | 16 + .../Google/Cloud/Container/V1/Operation.php | 628 ++++ .../Cloud/Container/V1/Operation/Status.php | 78 + .../Cloud/Container/V1/Operation/Type.php | 162 + .../Cloud/Container/V1/OperationProgress.php | 197 ++ .../Container/V1/OperationProgress/Metric.php | 178 ++ .../Container/V1/OperationProgress_Metric.php | 16 + .../Cloud/Container/V1/Operation_Status.php | 16 + .../Cloud/Container/V1/Operation_Type.php | 16 + .../Container/V1/PrivateClusterConfig.php | 301 ++ ...PrivateClusterMasterGlobalAccessConfig.php | 67 + .../Container/V1/PrivateIPv6GoogleAccess.php | 69 + .../Container/V1/RecurringTimeWindow.php | 211 ++ .../Cloud/Container/V1/ReleaseChannel.php | 71 + .../Container/V1/ReleaseChannel/Channel.php | 78 + .../Container/V1/ReleaseChannel_Channel.php | 16 + .../Container/V1/ReservationAffinity.php | 145 + .../Container/V1/ReservationAffinity/Type.php | 72 + .../Container/V1/ReservationAffinity_Type.php | 16 + .../Cloud/Container/V1/ResourceLimit.php | 136 + .../V1/ResourceUsageExportConfig.php | 159 + .../BigQueryDestination.php | 70 + .../ConsumptionMeteringConfig.php | 78 + ...eUsageExportConfig_BigQueryDestination.php | 16 + ...ExportConfig_ConsumptionMeteringConfig.php | 16 + .../V1/RollbackNodePoolUpgradeRequest.php | 261 ++ .../Cloud/Container/V1/SandboxConfig.php | 67 + .../Cloud/Container/V1/SandboxConfig/Type.php | 57 + .../Cloud/Container/V1/SandboxConfig_Type.php | 16 + .../Container/V1/SecurityBulletinEvent.php | 406 +++ .../Cloud/Container/V1/ServerConfig.php | 237 ++ .../V1/ServerConfig/ReleaseChannelConfig.php | 138 + .../V1/ServerConfig_ReleaseChannelConfig.php | 16 + .../Container/V1/ServiceExternalIPsConfig.php | 67 + .../Container/V1/SetAddonsConfigRequest.php | 260 ++ .../Cloud/Container/V1/SetLabelsRequest.php | 302 ++ .../Container/V1/SetLegacyAbacRequest.php | 247 ++ .../Container/V1/SetLocationsRequest.php | 266 ++ .../Container/V1/SetLoggingServiceRequest.php | 278 ++ .../V1/SetMaintenancePolicyRequest.php | 237 ++ .../Container/V1/SetMasterAuthRequest.php | 290 ++ .../V1/SetMasterAuthRequest/Action.php | 74 + .../V1/SetMasterAuthRequest_Action.php | 16 + .../V1/SetMonitoringServiceRequest.php | 278 ++ .../Container/V1/SetNetworkPolicyRequest.php | 256 ++ .../V1/SetNodePoolAutoscalingRequest.php | 303 ++ .../V1/SetNodePoolManagementRequest.php | 304 ++ .../Container/V1/SetNodePoolSizeRequest.php | 293 ++ .../Container/V1/ShieldedInstanceConfig.php | 129 + .../Cloud/Container/V1/ShieldedNodes.php | 67 + .../Container/V1/StartIPRotationRequest.php | 247 ++ .../Cloud/Container/V1/StatusCondition.php | 145 + .../Container/V1/StatusCondition/Code.php | 95 + .../Container/V1/StatusCondition_Code.php | 16 + .../Google/Cloud/Container/V1/TimeWindow.php | 170 + .../Container/V1/UpdateClusterRequest.php | 256 ++ .../Container/V1/UpdateMasterRequest.php | 274 ++ .../Container/V1/UpdateNodePoolRequest.php | 673 ++++ .../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 | 82 + .../UsableSubnetworkSecondaryRange_Status.php | 16 + .../Container/V1/VerticalPodAutoscaling.php | 69 + .../Google/Cloud/Container/V1/VirtualNIC.php | 67 + .../Container/V1/WorkloadIdentityConfig.php | 68 + .../Container/V1/WorkloadMetadataConfig.php | 72 + .../V1/WorkloadMetadataConfig/Mode.php | 69 + .../V1/WorkloadMetadataConfig_Mode.php | 16 + .../v1/src/V1/ClusterManagerClient.php | 34 + .../V1/Gapic/ClusterManagerGapicClient.php | 2696 ++++++++++++++++ .../Container/v1/src/V1/gapic_metadata.json | 178 ++ .../cluster_manager_client_config.json | 205 ++ .../cluster_manager_descriptor_config.php | 18 + .../cluster_manager_rest_client_config.php | 1047 +++++++ .../Unit/V1/ClusterManagerClientTest.php | 2502 +++++++++++++++ 192 files changed, 37489 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/AddonsConfig.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/AutoprovisioningNodePoolDefaults.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/CancelOperationRequest.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/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/ClusterAutoscaling_AutoscalingProfile.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterManagerGrpcClient.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/Cluster_Status.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/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/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/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/State.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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/NetworkPolicy_Provider.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/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/NodePool.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/UpgradeSettings.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/NodePoolDefaults.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_UpgradeSettings.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/NodeTaint_Effect.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/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/OperationProgress_Metric.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/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/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/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/ReservationAffinity_Type.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/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/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/SandboxConfig_Type.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/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/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/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/StartIPRotationRequest.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/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/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/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/WorkloadMetadataConfig_Mode.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/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..81f13c87760951d50f2ae0ded36e801ceaa6195a GIT binary patch literal 36804 zcmd6QYiwLecHTBAQe;u0s7pOs)MGezUK*{2TydUDjb^4vwx}NQ(Zh$dQnYS2yDzC; zHM@KJc56nSC|GZHor#SYw%3V+P2wyN#E*>wCxI7goS5qWP_-BYJdo%cC>_x;A*hI(Og(W`mQV#_N}ZatW6 z-Ss9L&3da|s#hns+S}V+bFx(5ZB(jWb82#OVRdq4bz?HSklT13Q~i3oS@LElck1<> zsyAJ#*ILC2R-3+mX}VNx`z^0o@V(~!O39nzRh6n0cRjyREP0cQ`MG7URV)`<#XF0< zz@2%sz?~bHE-O{47JYwmUKU!Hb=0S768|;YTh&Tw(r*=8_~*rnU#Qe7txB<4`3Y>~ z%H(#j>U&tCd+c_*R%%u1wMm+=S}S?yU!9aSY3z%QIyQb~(m<3aTmTPuay4wGR;=Dx z@cdG<(rDG2c?_MM-SJuh2Io~r4 z!dI9cUwf~jsV`G52gG(2ck+Bd9z-m!sGs?zKJ{wPx6v7wp;N)dow|Q%;-sEmY*cWG ziALn^PCOTRu}y?f*wU1s2b_uwXzJtEuTJY%%mr|trad~)j)jAlEpuvmz`4%ZAM2yh z?~m*E%|;1KsH~YyuoHSrx3KNYc=y{Wb!4ehYk#tW!C*Sul^thJ9rPdgrB>BXrzZQ) zkIY<}l2v2and+D}wJvkAwN~@N#FRP|{oNT+{r9{FSTA*c*g32Q?iZ_VFWpDK&i1{N za=(#MM+t=M?JckBwKOCX$|*J4h23JUxB~{-sDsm)MJ}ns^scn+7rx%cz30V7W+n`* z28B~|U`03RbIuucEH3#yk{q13;B3L-44(%38cfrI9tp^QHgN~==ihr-* zgS!@Xw)mq14xZMF?bh9bU#d4e9}D(lno`hPc7YOsY=9TNtOlz^AkR+^@{(VC+>%Q?S{4MT)q1H|E%<)9 zAfO(^ssqj;b)Z$;@zX=Rqj5FTXnI7jm946mRv0qmysHjjdpI?S&U({NkMQSTwthYn z4%A0{R1Gsi8OMisCuuddTd5W3s2bH`YrEduO&{hr%PReGy?L)%FO~}ig8-MPHa&_F zBQy40-_(-~7WKEM)F4UemY+VtFrTx+OsB9x!<<<)>KAL}t@%aDe&r+$madouN`QF_UX1wCH z=(=enVxbb&X?ftomzf z_tfF|<$DucjCeT7o6(s&uUOAIHf3r9#?_I`%B|SLJ}0e?X$;KA-t@b_ zol?UgliY(;oj28>2ScjVVv##K^OE%-g0-fyJQ$=hC_gzTl#{)BH9Nmih@S@z2)kIH zzm{FtT*_h#7?@wnUd^r*qR;z)7ljAeuVm*pH?m{>?te@vwOl0gECcxsK|a(5e+#u)lB@%1lDT{1i+@l)^&EYql!el@i?z&6r4~7@4s%6)`vF!%6yrol_@_ zsaPsT7fqMx#yF%6u@)M8=kYsGq<%-da+{vHm(|InPfextS+`Z@BT$>_ zJ~R(=dq)z;{#r0CUoYdV%p~VSb&P~fv*xutzfdmvcemI4)uw8!)XoDz-I)32+O@=f}54cDzse4n)>QrSjkF4%$KAy`AE;0Lk>%Ic*Z zs1s!VRd7#gS}d3RN}=4W+-H%(OONoo>><YF{)Wa&$BDEn) zv))IxA8Gf`sgoUVy;`|Zhx8R;>ws(RG6U_B^K4c@Zj70AgPC-l*gg{HRUvpGdIQX< zh6mHEwo_nEOgCrP`Ehkxe`trdOGXv;Ybaap$7L&d#P^+qGj~CqA}IhGCthA}E|RXE zgiwf>QPxjL1re>DMX&qcQ);y1K6jn9lUGiJk>V1u+$W5U&b(pWLww1pkgs}8)>S@H zW1Y_&SDjm0%`6n=GE142c?iReTls8<=zLC{wv5SsWh1+`l39W%wGYUx=mCB1d39V! z3IC6=jxHK}T}?ig6Ld|QQl}S7iPsytS%<>)yD4=}j+hRU#D-Va7clWG*VIU;p!%R} za(i5{p2OZtPt8Nmog+1O;!QOi{6ZcA@Ee%34}_%Yat)ImAAVL;3sNVSyq#j{L1wF1 z>fYVYr_|vXJ8`Z+J89PMSIS^mj z0Yx7snXn$1f!g5k+gmk}%bMwsYbAIl7!_`F7IU<_Juo}iN)erHLXEOf8@^+X!@~cZ zaBc3^w8;6UkoDSi~t9bp{o4LTE?A9U=$a#9`CLWR6Op$ZIh zV5F>F{WvrsQ?PwU#~F;9fc#r@2m_3*chm^O4@8l7MieN!p-%d~Fc6*z6JPWBBJOXR z4rpY?J~O7VBlL=&yT6+BeW*6qM)G) zGz)QFy>307kOHlOW)8$hu0yC$iPV*{u zo5aSB-&G@6z}QXN?UjHkO$gxUW;{7R&2i~FeVPH-^SI<%JJ;3evbSAqS6gtueF8MV z8HGjsR+Dy{KDQ@6K7qkUf?JPvHq@DbrrSPw!M#r!^=8Z5%jbEuDeG|=!rr8LS)Qgr zTvw+Fy@Bp0DqTPW?jDN*OX0kj&X`jtjP7gL3bsxB@FiaFRV$EjZB@g!pvEaayao9P zb-C1h03SS<@yonU!YMB33E5ygxr$-3k$&54e&2b87yF_Ws2h4#hxJV^apQU>e($Hx z^CEVtFb+TBX+8o6U`|z!c2v4sgz8vLzsi&CHu9Q`otL4s6Ef6Ui-zt4ogI3(#_kvQ z*vL&iDW~UX{C=R0B0hRI>RR#B^SqATOSO#A5g(54;Diu=7C#V<#=vrk*GM>_mB<7Q z2v`R1g2BTn307x#6}y{-C+gvXS%?bXt8N$IRk^2~M`P*$ye?ka!$P79!6*srE_N7^ zI59HakSmDACpz1qX=LlcA=@M;fM%QK{at=Pi2$2^Phc0!+e+|J=n`6|qsV6ZYdr0B zH7G&J^gaAOn&>0pG>Rz+5<{+!$|OXBe7er*YVZ{(Km7er`=NMUdKUu*NFnIfozgXi z<`?i0tW`~@9VrOFl_`?y2($V5@@R$ zN?O{-v!Nu7t;G}Gfu#VI6Nw#Qgz5XNFW7@If*#O>40dMJFtL5)t-y)?4brSfX6%73 z;`TfYUW~pl>Mk&Gin0XiObqQ)wMO^xVoK4CfJbaBXvif9ZoUG_sbRUtO8cEz#S4=-5N+8>{&| z{dT|^Rs-3!HN+Drk+#L6~{k8F`aM?P_@#4srj{QFT}=6PpbPFb=|l`QwI^WnYFzh)>8>6XtE? zq>V<;#+vhiI&Q|qHF63pjm-3*k;Aw$D=@|wx1e~j3cw)D+enmM41^`pWCVJfIG$n% z5>Ras$D3->ESD(Erg=@fR8A0P*VHMq>{AN0Id#IU)FJ1;#9-NPZCuXJhWKQ!wrD_a z@_aidT3A`vH-1%}HQx_Uiujp{8IW<7=$Y3Xh!~q5@4$>P3mTs6BawluscrSDdG&as zfKnAkW}e6>h|rJ`v(X)qIX;pUq||pQx}z0!#(-_L6UatO!jR2QfEHlZGo0GoKQhpU zojZ5bi)O^0nz-Z)>{kRattY=$Y!yW9NuS|!wX1}hYp-Lt7F!G9 zsdg&e&+$S%Dcv8b=L{07Z&a#V1voZ*uhoJ}z=&gQMcD1q+|t~7Fhg%M!mNm;Hj2oj z3LKiG_a?=OiJ#Kwz+3qh+%in)%krQzxrs71d ztWC#%n=zQc_ANU8pHnXwKymX!&Mp(AFza?S0AMkp1mK|5L zB4-j2!+MzvFJo8wI`u8*cDPl|MPRN=0x_JEfqnfhuW8SCSeJa~te%$38#g}85rf7K zbEJ&rhGAfioA=SAAuq$>@RYqwQw zB5_+xMbUqv=8E_}$%Bb;Eir1u1uf>IJQ1I!1R{1I63C-TIJPsVU>~@+JX%bQ1xjy_ zOnDHRF?Gn%IWp6esl(@x71NJ3y2vu4`&{OEHQ+Uy^(H&VM`j%36F~y4HbC9A$C?B% z0P@+D1&cK>qz){st{?%0wEfK7>e>dI0q+0p(|J0_)R-k!hh&}kwQOc1TbN(kTt@&7 zRtBCeWS6p$XMOZ+GtVYOVL8L&==2YpXDh1<*>xBl7`B$pXL4)7asx7TA^M3y1h2;Q zXK7|3zq-0Kc95Rx4~I{OkYk%(&u$>=Mh^r4E1AXYa&~27Y}h%jj%GGDDBp-bD}X4< z*5Su-07ocWhZbAP%w?C>#|}|q68$cFDqzaBvBNYu{>Am&?d;fS@I1S5b9L=HphmRn z*4Po)|0iS-3Sq8LT-3Z9bAP8#9ql5|j&MkLS?Tuod|BU92a&Sctdt}rD=E*V>+6*I zi&@TF%p-Q-VUv{M9`DvfMGfi|jz*(8bm#hj&|xSpg)kc%S%E;@p>iEnCGg*HmNo@- zQt})=SQ7Q}oGrF%Uzj_n)4APmrPQ%`P7%~<>YDfUHj*;1qJl*K8ZuD|u(HT>G%hG{ zN`-86Mjg~lKqv5=F*gsFSxRb0K)Ny%B+9i2no*gdI z>QHEo0ZU8@jHOfhjWO#*0x_|jjAgB}0E)vcQp^(Piu!tSiMUeA=$lWF_r0jb+KruN z5gtmdyh;!>=}sE_O>N4ob-CtGrshe0Ezo(;bSI z`@y#$eo22erA`BsP;GwZ&^%|2e_H?&-27?^;?ZkG1K7_FGgmre=mbVD9y{A9K2+m; zh>}a#TiC0_fS=v>Ppi=mbH;L7tg5>|KvEx(Pmsa< z?4Zc1!6KK3GIJlDv1bg}K0cM@u$gWl3_WZ?0TlS-rV} zBz$<>Ns-HE*4LroEkGBBdbyZg$*z(58a(bZ12>W5zLHs{wC`exdSkh4kNEl;4nxac+GkC;Ou`xadP~#K3ti|dKB?3YuBPCpCD$-S~>+K zq3l=Uu^Ln0$bk|`>xcwO7(?V|mx{1{?Afk!C*$5QQT?dk~Y2 z1w)+z!(HKR27o7E2}wu_cPqx*Ur-Kimif@LJB(g;`olprWWFA#6>{OG)gUZgN)aNO zN^(=uWFc}&XD~?{H6jGbNZ>?FTgo76Gdt3_#DGe+ICSQn{#?w7SO$p0l;>;ifyWQP zG;CQE+kE?>5NKcL4qrXHp=7X=obACGCv0+Fi5m#SfA(P@IBzQ@1?IcPg^*OGLqIKa zEjkT#P!VOzW+P%wa(ylrJG0s1i5(T@cXpJB(-+5}6FYG5NTiEo_;QX5X-or1*XXuz zDYs_77Vg9qb)?hi1qINy{Wko@?8_OTILlt(COyzh4a&<*CYQ;$!D7N=La>KyV~wy?8BggH-A_sKMq!|!p7E~>BLFxEUT}jIO2A?X<9h07 zcY-K9gCAFF<@(3Gkz~??r%&=wZ}MoW%n8D`<^r?3%l%()gGRoi$D?AkjN?VYZJ484 z&|em2We>?h7 z5Z&K`hhq;=khL_xT{DgBfnRlO1T-pr#zah>hvypWqY5pj-07rB! zRFz029I!$6(V2X}D)V)V%#i0cBh{{!k2N0|%62ZE(gbNu*)V-WGuSo2bLm zE(wxMCN&BLPC6--u|wjC^Du~+f~gX$my61j<8-w1Qa z*tT^yMcC^N8t6`{apZ*Cu0}s>py_hSu+0+b z)B|MBposFGq*t(OaL?8^6i!O&2xKx8b2{5wTQ~4pba$Q!av(xi1}lNX?lpBdPTz2= z1u9k0$%8Eaf4qvXLBVxi(ARXKq#w)?28U_fS*GH zk36S!Su>B(EXv*KfQH;(=u>0lKIbM-&yJnljB*EQMJ3 z77Ocs(k$;k&))Q~M(x?*v*;J;bNVxN&p9=ZK9}Sj|2zQ^*M1oZAzeMea0{unUw0JK9u3mB`iW&kU-2Ci zc7`qOP{%OfkE2trIQYT59lLBWc`g?Zg{(k81(bb2- zpzYE+284}9(d&ofm7&2E2NT!J}g-oV~x`}h!pTx6q`iNo*3MA zKUKs&5P0ISGoNsOy$|U_-25PpmBcZ|bYP3|W zL0h8oI$oE!@aW8#VSbc8M$_HDl~M=jhpvbgkqi77^Ve55H$X0EzCh$c-I;QDlbN4i z-CWryNa7VV12BGvrhK%yx{*O&qxo!>>PGras?^-A!fKuZVkj*+06)$6{L<>?LgD)I zdf|HZmiDF`B%^7brss2Ol!!L${!xF>Wt%Jmk_IJ)$e&V@c$h$ThLTO zC#*$>OC$=?1f7*D=r9<5iMnTUVk{DbkQ&F|fn>x(7fpYTV|yR2uddwmwyt{*f)GU~ zBATlI!;kN=X9)cq89DR|K+$`}FX+G^;)#cuBr13=Q#DCsqaQup#Q;BkqRW%;;{%=W zi&aX^`_feul8C~EG2k@nUseau70g5<(}o$9q8W7n*F`eQXgucibdfSRIu4qk88}Q_ zG@{~dEtAht*q#dIvWuHbnKdvpG!{X9-5k2O^}83HZ+4T-J3pljUs`_yoF zy-*f!q!6yA76b|2-C$POK4mWK7(q8%Tv@~n6Z;H?i{K~mSwVM+z)&dHN&IQuCD&6s z7N{TjrOd|F)wN{^hpU;*C6XS8(SnBgJ-!4h@(olLnopiWyl-V4E%P8AI+Pa7x{;rk zSC}yOGu- z+6^;OfVu3-{MxPj24pa!e<5pr?Su3F3?&Vq_W%MUD1*`BG>M5&4@dYmP%EK%2F%|E zwL9QAkC=D3E&PZ%9$R+9ZcCj__>5);vuY$1+=eUI%Q-q>rASW=^&3#LsrxYTSpm-d zMxQ#@IeOi+$yqC+We7Ppxocjw7I+Wvl@QMf0K>|4E-Z zWjq;JqN6v)k5dPd9i(!j;Spj|sP>W$B;o>}v&xgi)u!euJ0H8d3{QQ#rO4yfwMNgtn2HYx@KUI*nNo#vy-B)SQV|sj*cz zv>;^CEPa&CKy0&gpMa=JT&G*5dR3jcVJ}ncl2&M6*sc76A;A+CZC^Nvp0~OY2RV}b z?r);8SlE%c`}MEEDQqcKdk?WGRP434c%LIP_G+~5iBtLZ7I@qQoalq{W7j7UOc|h# z10`W0bCdr&b5@;}ujwO1=Y1bt=Xa+!XdD_#8;&R^-7_#~4vB-ESXG1a6QWMayAQvI z_!7xeI-1bt-m0nnxPoCswz|bRIhxSb zGzfHv`<`}7{?{P4P0OTr)Un`EG=?qbvqy-KB#G&yVS>-(nHVNlrmjgd&&4MUng>hZ zV1jNT4QB)@95|6bV-gQ!t3ZaCEXsG+-bF>TSE<_eZfRB{d$fDHJJjeX?7U0&m;2Ol zFlSgltp{`MD!gr#n!t{#Mzc?*PU;Jf${F3LlueT@J%QMdNDyqebRRwR$|g4tU-UiT z0LzPBKtAPzl;Zu@JR|5cAzVqlP)+L48ZQ zSciK<9gbJ5W?{;~Yl&P|TFo9CnW^4^&H{&B*RbGUqKolH7cq3kSI^1GxmUz zeI59J^e5dVsORPvBupNkUtP|lDi9nbZYm*yy?zU2e9MJk1Vyl+ZBk_$b?+qY9@Xe$ zVI6_&2g#I4XtDFo=mK%f{ANm>N_^|ACnM(_t2joa>QIfBi*$e zI-X|>x%`c{3X7|&i{QxcuVvReJG;Q_e_@Zo3%PaT=A=iSS1;}{5Ot688EBUm)%iU} z&gB+z=oUlm*wKQu|3VR^mYv1!&#SZKQqE_P6qV4U6XlXi*~QHKt%4Z|7^wtv;RcmG zE`*Q!E+8^%V|y>D=Z)M#kNDNiHTW7Wg{e@cb)hMfWl;S&);II*tJDsc>v|>h*L40H zBomn^`myiW*>H4-_Bc)0J+$$WV&=HtOnvj;|JU#I6`hOpN4P$f62U9lJMB+jm=0pM z(-$7%@B1)_{_RW7G>s3&eH!|+A5L?w{Pd^vPdMdK=14f^BE5T*(G`i#pCF+JUKzbp z$L_rj2bgW{nY<4hmv>gvJEK;e3Hu7Rg)QEG&v|#BJDdJgqXmNH;iC+^p~kh(+q@XQ zeU#yjq0awAd)inDsAE5|*ch|x$K=VIeebyYI?>tGh1+kq`#n_5dXzbtu;E9UQ6VRT z0p~CGp}d-lHqBAn_Z=J4>%MHCZz4y8_vfE^@@#O6>NMjHSrE#?B38ZO`&lrg2l~$NT?}7U_Q-th%ERi zhuz7eMfYS{kb-YG@HA2}ok2r1vOi;$iuS?1V&-=QGryH`7oQk2Flr-U5~8-<;^%`W zN=(p+4uq_KjHFZSUu#V|JmJ_qbzS3nMbRG$ivCi{eS04$dN>QTXut?1Id|cyP*Rny zc3A3B=E5G=OOG>Miyvi<@jdH!?EEWT1sL?YGsv?ih5~t^_N9mRiogFP`1>mYGUIX^<|fY?!A=txL3D`O=HpDH?+IPE^w#KJC7FgHh-4hjIUnqM zYtx?wYlwk(rt{86-y0M0XCYxb3bhj?Y{w{rgA+z|#@F~yQcv;UM0S4=Fu^zZTzlU9 zERwd6Zb;X;ceNzg8g!T7XF@}`+M`TQ2>BuY1~1N^z<>9!~oaKyJV3yxt>S$TV@ib`!lh{a?W~$2KBqDhby-KFDmT7~23c29N`gEKH`Z(nns zPQM9OdJL;JZmqx5r$&HugBvFyUnVldVCFHUDgRoK@g0MVz3#B~K9MUgfS*{|O=q)5 zk_}df`ne*D#SQyMnLDp^GPuwKc9CG|?P)!vR?EOjHYau|i@80#;;Ht)CU^UntR(q6j_mF!!S^QDv z5K-?%{i}n&H%iqO(Q2jyt+r!SuekcBf~#Llxon*Fcy~Z23{=CESP`~9a+jWlN-Rr0 zMvszU85}|mB>==rtsHw~zI$M=i2CP(sPCrS_xE+7N(QtTt~T7&r^1zW)t=Dx^WvIa z(SaPQ7Ehw6kbg&N$|oMDPW=Nx)UT&pwuO77sEEFZ$dV634uBC=ZMk248capjjq9Pr zhxIp{e~^mCD6^NR zu@?Jt-p11yf9gCkT@-^ZB2q-=B*#yXpRb###OmK3OJe^+kon8|Q=*uxx@z1Ap*P%* zo))3DbsuH+45);=hrv^=lpY{d&di_c7UF;G(7~VM4naRFm*Qdxx?iy=o)gCoX zn4<0Lci9W@mh%QvZla)@AsXOzhg1Qe?A(yRYr5Yaq0KX zyE}LICH^sQ@7%d@>4$x1Wa{iJzs5i2_3SKOXFk|FSJ$KsgrU8M)12*#2mJ5DtwG+! z>#wLu{olpORIfi_@% 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..86dcd5613cea --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AcceleratorConfig.php @@ -0,0 +1,147 @@ +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 = ''; + + /** + * 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). + * } + */ + 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; + } + +} + 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..8428bcbd9742 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AddonsConfig.php @@ -0,0 +1,481 @@ +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; + + /** + * 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. + * } + */ + 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; + } + +} + 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..8ec87cf23014 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Autopilot.php @@ -0,0 +1,67 @@ +google.container.v1.Autopilot + */ +class Autopilot extends \Google\Protobuf\Internal\Message +{ + /** + * Enable Autopilot + * + * 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 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; + } + +} + 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..6d08ae685991 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutoprovisioningNodePoolDefaults.php @@ -0,0 +1,472 @@ +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; + /** + * 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) + * To unset the min cpu platform field pass "automatic" + * as field value. + * + * Generated from protobuf field string min_cpu_platform = 5; + */ + 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. + * + * Generated from protobuf field string image_type = 10; + */ + protected $image_type = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[]|\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 + * 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) + * 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. + * } + */ + 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 string[]|\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; + } + + /** + * 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) + * To unset the min cpu platform field pass "automatic" + * as field value. + * + * Generated from protobuf field string min_cpu_platform = 5; + * @return string + */ + public function getMinCpuPlatform() + { + return $this->min_cpu_platform; + } + + /** + * 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) + * To unset the min cpu platform field pass "automatic" + * as field value. + * + * Generated from protobuf field string min_cpu_platform = 5; + * @param string $var + * @return $this + */ + public function setMinCpuPlatform($var) + { + 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. + * + * 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. + * + * 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; + } + +} + 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..59bff411d440 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization.php @@ -0,0 +1,71 @@ +google.container.v1.BinaryAuthorization + */ +class BinaryAuthorization extends \Google\Protobuf\Internal\Message +{ + /** + * Enable Binary Authorization for this cluster. If enabled, all container + * images will be validated by Binary Authorization. + * + * 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 Binary Authorization for this cluster. If enabled, all container + * images will be validated by Binary Authorization. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Enable Binary Authorization for this cluster. If enabled, all container + * images will be validated by Binary Authorization. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Enable Binary Authorization for this cluster. If enabled, all container + * images will be validated by Binary Authorization. + * + * 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/CancelOperationRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CancelOperationRequest.php new file mode 100644 index 000000000000..6ad754e56dff --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CancelOperationRequest.php @@ -0,0 +1,212 @@ +google.container.v1.CancelOperationRequest + */ +class CancelOperationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * 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 = ''; + + /** + * 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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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/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/CloudRunConfig_LoadBalancerType.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CloudRunConfig_LoadBalancerType.php new file mode 100644 index 000000000000..2ae407869c87 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CloudRunConfig_LoadBalancerType.php @@ -0,0 +1,16 @@ +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. + * + * 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; + /** + * Notification configuration of the cluster. + * + * Generated from protobuf field .google.container.v1.NotificationConfig notification_config = 49; + */ + protected $notification_config = null; + /** + * Configuration of Confidential Nodes + * + * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 50; + */ + protected $confidential_nodes = 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; + + /** + * 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 \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 string[]|\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. + * @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\NotificationConfig $notification_config + * Notification configuration of the cluster. + * @type \Google\Cloud\Container\V1\ConfidentialNodes $confidential_nodes + * Configuration of Confidential Nodes + * @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 string[]|\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 \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. + * } + */ + 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 \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 string[]|\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. + * + * 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. + * + * 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; + } + + /** + * 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 + * + * 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 + * + * 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; + } + + /** + * [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 string[]|\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 \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; + } + +} + 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..2a86e048847b --- /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 \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 string[]|\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 \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 string[]|\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/ClusterAutoscaling_AutoscalingProfile.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling_AutoscalingProfile.php new file mode 100644 index 000000000000..aef8e805da99 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling_AutoscalingProfile.php @@ -0,0 +1,16 @@ +_simpleRequest('/google.container.v1.ClusterManager/ListClusters', + $argument, + ['\Google\Cloud\Container\V1\ListClustersResponse', 'decode'], + $metadata, $options); + } + + /** + * Gets the details of a specific cluster. + * @param \Google\Cloud\Container\V1\GetClusterRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function GetCluster(\Google\Cloud\Container\V1\GetClusterRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.container.v1.ClusterManager/GetCluster', + $argument, + ['\Google\Cloud\Container\V1\Cluster', 'decode'], + $metadata, $options); + } + + /** + * 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. + * @param \Google\Cloud\Container\V1\CreateClusterRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function CreateCluster(\Google\Cloud\Container\V1\CreateClusterRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.container.v1.ClusterManager/CreateCluster', + $argument, + ['\Google\Cloud\Container\V1\Operation', 'decode'], + $metadata, $options); + } + + /** + * Updates the settings of a specific cluster. + * @param \Google\Cloud\Container\V1\UpdateClusterRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function UpdateCluster(\Google\Cloud\Container\V1\UpdateClusterRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.container.v1.ClusterManager/UpdateCluster', + $argument, + ['\Google\Cloud\Container\V1\Operation', 'decode'], + $metadata, $options); + } + + /** + * Updates the version and/or image type for the specified node pool. + * @param \Google\Cloud\Container\V1\UpdateNodePoolRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function UpdateNodePool(\Google\Cloud\Container\V1\UpdateNodePoolRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.container.v1.ClusterManager/UpdateNodePool', + $argument, + ['\Google\Cloud\Container\V1\Operation', 'decode'], + $metadata, $options); + } + + /** + * Sets the autoscaling settings for the specified node pool. + * @param \Google\Cloud\Container\V1\SetNodePoolAutoscalingRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function SetNodePoolAutoscaling(\Google\Cloud\Container\V1\SetNodePoolAutoscalingRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.container.v1.ClusterManager/SetNodePoolAutoscaling', + $argument, + ['\Google\Cloud\Container\V1\Operation', 'decode'], + $metadata, $options); + } + + /** + * Sets the logging service for a specific cluster. + * @param \Google\Cloud\Container\V1\SetLoggingServiceRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function SetLoggingService(\Google\Cloud\Container\V1\SetLoggingServiceRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.container.v1.ClusterManager/SetLoggingService', + $argument, + ['\Google\Cloud\Container\V1\Operation', 'decode'], + $metadata, $options); + } + + /** + * Sets the monitoring service for a specific cluster. + * @param \Google\Cloud\Container\V1\SetMonitoringServiceRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function SetMonitoringService(\Google\Cloud\Container\V1\SetMonitoringServiceRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.container.v1.ClusterManager/SetMonitoringService', + $argument, + ['\Google\Cloud\Container\V1\Operation', 'decode'], + $metadata, $options); + } + + /** + * Sets the addons for a specific cluster. + * @param \Google\Cloud\Container\V1\SetAddonsConfigRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function SetAddonsConfig(\Google\Cloud\Container\V1\SetAddonsConfigRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.container.v1.ClusterManager/SetAddonsConfig', + $argument, + ['\Google\Cloud\Container\V1\Operation', 'decode'], + $metadata, $options); + } + + /** + * 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. + * @param \Google\Cloud\Container\V1\SetLocationsRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function SetLocations(\Google\Cloud\Container\V1\SetLocationsRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.container.v1.ClusterManager/SetLocations', + $argument, + ['\Google\Cloud\Container\V1\Operation', 'decode'], + $metadata, $options); + } + + /** + * Updates the master for a specific cluster. + * @param \Google\Cloud\Container\V1\UpdateMasterRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function UpdateMaster(\Google\Cloud\Container\V1\UpdateMasterRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.container.v1.ClusterManager/UpdateMaster', + $argument, + ['\Google\Cloud\Container\V1\Operation', 'decode'], + $metadata, $options); + } + + /** + * Sets master auth materials. Currently supports changing the admin password + * or a specific cluster, either via password generation or explicitly setting + * the password. + * @param \Google\Cloud\Container\V1\SetMasterAuthRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function SetMasterAuth(\Google\Cloud\Container\V1\SetMasterAuthRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.container.v1.ClusterManager/SetMasterAuth', + $argument, + ['\Google\Cloud\Container\V1\Operation', 'decode'], + $metadata, $options); + } + + /** + * 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. + * @param \Google\Cloud\Container\V1\DeleteClusterRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function DeleteCluster(\Google\Cloud\Container\V1\DeleteClusterRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.container.v1.ClusterManager/DeleteCluster', + $argument, + ['\Google\Cloud\Container\V1\Operation', 'decode'], + $metadata, $options); + } + + /** + * Lists all operations in a project in a specific zone or all zones. + * @param \Google\Cloud\Container\V1\ListOperationsRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function ListOperations(\Google\Cloud\Container\V1\ListOperationsRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.container.v1.ClusterManager/ListOperations', + $argument, + ['\Google\Cloud\Container\V1\ListOperationsResponse', 'decode'], + $metadata, $options); + } + + /** + * Gets the specified operation. + * @param \Google\Cloud\Container\V1\GetOperationRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function GetOperation(\Google\Cloud\Container\V1\GetOperationRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.container.v1.ClusterManager/GetOperation', + $argument, + ['\Google\Cloud\Container\V1\Operation', 'decode'], + $metadata, $options); + } + + /** + * Cancels the specified operation. + * @param \Google\Cloud\Container\V1\CancelOperationRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function CancelOperation(\Google\Cloud\Container\V1\CancelOperationRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.container.v1.ClusterManager/CancelOperation', + $argument, + ['\Google\Protobuf\GPBEmpty', 'decode'], + $metadata, $options); + } + + /** + * Returns configuration info about the Google Kubernetes Engine service. + * @param \Google\Cloud\Container\V1\GetServerConfigRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function GetServerConfig(\Google\Cloud\Container\V1\GetServerConfigRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.container.v1.ClusterManager/GetServerConfig', + $argument, + ['\Google\Cloud\Container\V1\ServerConfig', 'decode'], + $metadata, $options); + } + + /** + * Gets the public component of the cluster signing keys in + * JSON Web Key format. + * This API is not yet intended for general use, and is not available for all + * clusters. + * @param \Google\Cloud\Container\V1\GetJSONWebKeysRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function GetJSONWebKeys(\Google\Cloud\Container\V1\GetJSONWebKeysRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.container.v1.ClusterManager/GetJSONWebKeys', + $argument, + ['\Google\Cloud\Container\V1\GetJSONWebKeysResponse', 'decode'], + $metadata, $options); + } + + /** + * Lists the node pools for a cluster. + * @param \Google\Cloud\Container\V1\ListNodePoolsRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function ListNodePools(\Google\Cloud\Container\V1\ListNodePoolsRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.container.v1.ClusterManager/ListNodePools', + $argument, + ['\Google\Cloud\Container\V1\ListNodePoolsResponse', 'decode'], + $metadata, $options); + } + + /** + * Retrieves the requested node pool. + * @param \Google\Cloud\Container\V1\GetNodePoolRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function GetNodePool(\Google\Cloud\Container\V1\GetNodePoolRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.container.v1.ClusterManager/GetNodePool', + $argument, + ['\Google\Cloud\Container\V1\NodePool', 'decode'], + $metadata, $options); + } + + /** + * Creates a node pool for a cluster. + * @param \Google\Cloud\Container\V1\CreateNodePoolRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function CreateNodePool(\Google\Cloud\Container\V1\CreateNodePoolRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.container.v1.ClusterManager/CreateNodePool', + $argument, + ['\Google\Cloud\Container\V1\Operation', 'decode'], + $metadata, $options); + } + + /** + * Deletes a node pool from a cluster. + * @param \Google\Cloud\Container\V1\DeleteNodePoolRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function DeleteNodePool(\Google\Cloud\Container\V1\DeleteNodePoolRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.container.v1.ClusterManager/DeleteNodePool', + $argument, + ['\Google\Cloud\Container\V1\Operation', 'decode'], + $metadata, $options); + } + + /** + * Rolls back a previously Aborted or Failed NodePool upgrade. + * This makes no changes if the last upgrade successfully completed. + * @param \Google\Cloud\Container\V1\RollbackNodePoolUpgradeRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function RollbackNodePoolUpgrade(\Google\Cloud\Container\V1\RollbackNodePoolUpgradeRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.container.v1.ClusterManager/RollbackNodePoolUpgrade', + $argument, + ['\Google\Cloud\Container\V1\Operation', 'decode'], + $metadata, $options); + } + + /** + * Sets the NodeManagement options for a node pool. + * @param \Google\Cloud\Container\V1\SetNodePoolManagementRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function SetNodePoolManagement(\Google\Cloud\Container\V1\SetNodePoolManagementRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.container.v1.ClusterManager/SetNodePoolManagement', + $argument, + ['\Google\Cloud\Container\V1\Operation', 'decode'], + $metadata, $options); + } + + /** + * Sets labels on a cluster. + * @param \Google\Cloud\Container\V1\SetLabelsRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function SetLabels(\Google\Cloud\Container\V1\SetLabelsRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.container.v1.ClusterManager/SetLabels', + $argument, + ['\Google\Cloud\Container\V1\Operation', 'decode'], + $metadata, $options); + } + + /** + * Enables or disables the ABAC authorization mechanism on a cluster. + * @param \Google\Cloud\Container\V1\SetLegacyAbacRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function SetLegacyAbac(\Google\Cloud\Container\V1\SetLegacyAbacRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.container.v1.ClusterManager/SetLegacyAbac', + $argument, + ['\Google\Cloud\Container\V1\Operation', 'decode'], + $metadata, $options); + } + + /** + * Starts master IP rotation. + * @param \Google\Cloud\Container\V1\StartIPRotationRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function StartIPRotation(\Google\Cloud\Container\V1\StartIPRotationRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.container.v1.ClusterManager/StartIPRotation', + $argument, + ['\Google\Cloud\Container\V1\Operation', 'decode'], + $metadata, $options); + } + + /** + * Completes master IP rotation. + * @param \Google\Cloud\Container\V1\CompleteIPRotationRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function CompleteIPRotation(\Google\Cloud\Container\V1\CompleteIPRotationRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.container.v1.ClusterManager/CompleteIPRotation', + $argument, + ['\Google\Cloud\Container\V1\Operation', 'decode'], + $metadata, $options); + } + + /** + * 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]. + * @param \Google\Cloud\Container\V1\SetNodePoolSizeRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function SetNodePoolSize(\Google\Cloud\Container\V1\SetNodePoolSizeRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.container.v1.ClusterManager/SetNodePoolSize', + $argument, + ['\Google\Cloud\Container\V1\Operation', 'decode'], + $metadata, $options); + } + + /** + * Enables or disables Network Policy for a cluster. + * @param \Google\Cloud\Container\V1\SetNetworkPolicyRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function SetNetworkPolicy(\Google\Cloud\Container\V1\SetNetworkPolicyRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.container.v1.ClusterManager/SetNetworkPolicy', + $argument, + ['\Google\Cloud\Container\V1\Operation', 'decode'], + $metadata, $options); + } + + /** + * Sets the maintenance policy for a cluster. + * @param \Google\Cloud\Container\V1\SetMaintenancePolicyRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function SetMaintenancePolicy(\Google\Cloud\Container\V1\SetMaintenancePolicyRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.container.v1.ClusterManager/SetMaintenancePolicy', + $argument, + ['\Google\Cloud\Container\V1\Operation', 'decode'], + $metadata, $options); + } + + /** + * Lists subnetworks that are usable for creating clusters in a project. + * @param \Google\Cloud\Container\V1\ListUsableSubnetworksRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function ListUsableSubnetworks(\Google\Cloud\Container\V1\ListUsableSubnetworksRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.container.v1.ClusterManager/ListUsableSubnetworks', + $argument, + ['\Google\Cloud\Container\V1\ListUsableSubnetworksResponse', 'decode'], + $metadata, $options); + } + +} 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..40b1a0805494 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterUpdate.php @@ -0,0 +1,1533 @@ +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; + /** + * 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; + /** + * 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; + /** + * 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; + + /** + * 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\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 string[]|\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\ServiceExternalIPsConfig $desired_service_external_ips_config + * ServiceExternalIPsConfig specifies the config for the use of Services with + * ExternalIPs field. + * @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 + * } + */ + 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; + } + + /** + * 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 string[]|\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; + } + + /** + * 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; + } + + /** + * 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; + } + +} + 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..cbe3cc863609 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Cluster_Status.php @@ -0,0 +1,16 @@ +google.container.v1.CompleteIPRotationRequest + */ +class CompleteIPRotationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * 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 id) of the cluster to complete IP + * rotation. 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://developers.google.com/console/help/new/#projectnumber). + * 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 id) 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://developers.google.com/console/help/new/#projectnumber). + * 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://developers.google.com/console/help/new/#projectnumber). + * 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 id) 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 id) 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/ConfidentialNodes.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfidentialNodes.php new file mode 100644 index 000000000000..0f41df525f53 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfidentialNodes.php @@ -0,0 +1,72 @@ +google.container.v1.ConfidentialNodes + */ +class ConfidentialNodes extends \Google\Protobuf\Internal\Message +{ + /** + * Whether Confidential Nodes feature is enabled for 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 Confidential Nodes feature is enabled for all nodes in this + * cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether Confidential Nodes feature is enabled for all nodes in this + * cluster. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Whether Confidential Nodes feature is enabled for 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/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/CreateClusterRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateClusterRequest.php new file mode 100644 index 000000000000..b656d60f6776 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateClusterRequest.php @@ -0,0 +1,217 @@ +google.container.v1.CreateClusterRequest + */ +class CreateClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * 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 = ''; + + /** + * 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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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..4e03543040d8 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateNodePoolRequest.php @@ -0,0 +1,260 @@ +google.container.v1.CreateNodePoolRequest + */ +class CreateNodePoolRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * 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 id) where the node pool will be + * created. Specified in the format + * `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string parent = 6; + */ + protected $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://developers.google.com/console/help/new/#projectnumber). + * 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 id) 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://developers.google.com/console/help/new/#projectnumber). + * 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://developers.google.com/console/help/new/#projectnumber). + * 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 id) 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 id) 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..4ca3b1299203 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/DNSScope.php @@ -0,0 +1,57 @@ +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 VPC. + * + * Generated from protobuf enum VPC_SCOPE = 2; + */ + const VPC_SCOPE = 2; + + private static $valueToName = [ + self::DNS_SCOPE_UNSPECIFIED => 'DNS_SCOPE_UNSPECIFIED', + 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..bd2c1ad31584 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/Provider.php @@ -0,0 +1,64 @@ +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; + + private static $valueToName = [ + self::PROVIDER_UNSPECIFIED => 'PROVIDER_UNSPECIFIED', + self::PLATFORM_DEFAULT => 'PLATFORM_DEFAULT', + self::CLOUD_DNS => 'CLOUD_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/DNSConfig_DNSScope.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig_DNSScope.php new file mode 100644 index 000000000000..3140b72e3cad --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig_DNSScope.php @@ -0,0 +1,16 @@ +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..dfd0d6f2b0ad --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption.php @@ -0,0 +1,105 @@ +google.container.v1.DatabaseEncryption + */ +class DatabaseEncryption extends \Google\Protobuf\Internal\Message +{ + /** + * Denotes the state of etcd encryption. + * + * Generated from protobuf field .google.container.v1.DatabaseEncryption.State state = 2; + */ + protected $state = 0; + /** + * 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 = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $state + * Denotes the state of etcd encryption. + * @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 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Denotes the state of etcd encryption. + * + * Generated from protobuf field .google.container.v1.DatabaseEncryption.State state = 2; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Denotes the 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; + } + + /** + * 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; + } + +} + 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/DatabaseEncryption_State.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption_State.php new file mode 100644 index 000000000000..95a523510c52 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption_State.php @@ -0,0 +1,16 @@ +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..c907704ce82c --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DeleteClusterRequest.php @@ -0,0 +1,212 @@ +google.container.v1.DeleteClusterRequest + */ +class DeleteClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * 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 = ''; + + /** + * 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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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..90a7a12d2044 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DeleteNodePoolRequest.php @@ -0,0 +1,259 @@ +google.container.v1.DeleteNodePoolRequest + */ +class DeleteNodePoolRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * 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 = ''; + + /** + * 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://developers.google.com/console/help/new/#projectnumber). + * 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://developers.google.com/console/help/new/#projectnumber). + * 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://developers.google.com/console/help/new/#projectnumber). + * 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/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/GetClusterRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetClusterRequest.php new file mode 100644 index 000000000000..6b0c31c6086a --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetClusterRequest.php @@ -0,0 +1,212 @@ +google.container.v1.GetClusterRequest + */ +class GetClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * 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 = ''; + + /** + * 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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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..c393d349fa0f --- /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 id) 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 id) 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 id) 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 id) 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..9f1197fe0654 --- /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 \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 \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..12f33f359dcc --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetNodePoolRequest.php @@ -0,0 +1,259 @@ +google.container.v1.GetNodePoolRequest + */ +class GetNodePoolRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * 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 = ''; + + /** + * 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://developers.google.com/console/help/new/#projectnumber). + * 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://developers.google.com/console/help/new/#projectnumber). + * 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://developers.google.com/console/help/new/#projectnumber). + * 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..4bb82bcd263b --- /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 string[]|\Google\Protobuf\Internal\RepeatedField $response_types_supported + * Supported response types. + * @type string[]|\Google\Protobuf\Internal\RepeatedField $subject_types_supported + * Supported subject types. + * @type string[]|\Google\Protobuf\Internal\RepeatedField $id_token_signing_alg_values_supported + * supported ID Token signing Algorithms. + * @type string[]|\Google\Protobuf\Internal\RepeatedField $claims_supported + * Supported claims. + * @type string[]|\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 string[]|\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 string[]|\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 string[]|\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 string[]|\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 string[]|\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..8658df66ee78 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOperationRequest.php @@ -0,0 +1,212 @@ +google.container.v1.GetOperationRequest + */ +class GetOperationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * 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 = ''; + + /** + * 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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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..e93f4909128b --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetServerConfigRequest.php @@ -0,0 +1,169 @@ +google.container.v1.GetServerConfigRequest + */ +class GetServerConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * 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 = ''; + + /** + * 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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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/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..2400883ed3ba --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPAllocationPolicy.php @@ -0,0 +1,722 @@ +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; + + /** + * 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 + * } + */ + 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; + } + +} + 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/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..b1f7a7959eb1 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig.php @@ -0,0 +1,111 @@ +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.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; + + /** + * 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.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 + * } + */ + 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.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.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; + } + +} + 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..6ca351855fa9 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListClustersRequest.php @@ -0,0 +1,173 @@ +google.container.v1.ListClustersRequest + */ +class ListClustersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * 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 = ''; + + /** + * 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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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..f75b4edcd3fb --- /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 \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 string[]|\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 \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 string[]|\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..1df5e92e7d05 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsRequest.php @@ -0,0 +1,212 @@ +google.container.v1.ListNodePoolsRequest + */ +class ListNodePoolsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * 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 id) where the node pools will be + * listed. Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string parent = 5; + */ + protected $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://developers.google.com/console/help/new/#projectnumber). + * 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 id) 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://developers.google.com/console/help/new/#projectnumber). + * 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://developers.google.com/console/help/new/#projectnumber). + * 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 id) 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 id) 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..039dcdec3974 --- /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 \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 \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..24be1e94ea95 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsRequest.php @@ -0,0 +1,173 @@ +google.container.v1.ListOperationsRequest + */ +class ListOperationsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * 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 = ''; + + /** + * 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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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..5cca10be462b --- /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 \Google\Cloud\Container\V1\Operation[]|\Google\Protobuf\Internal\RepeatedField $operations + * A list of operations in the project in the specified zone. + * @type string[]|\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 \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 string[]|\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..9ced5051a36f --- /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 \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 \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/LoggingComponentConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig.php new file mode 100644 index 000000000000..d12b2cd5f774 --- /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 int[]|\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 int[]|\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..c871b613b0ab --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig/Component.php @@ -0,0 +1,64 @@ +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; + + private static $valueToName = [ + self::COMPONENT_UNSPECIFIED => 'COMPONENT_UNSPECIFIED', + self::SYSTEM_COMPONENTS => 'SYSTEM_COMPONENTS', + self::WORKLOADS => 'WORKLOADS', + ]; + + 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/LoggingComponentConfig_Component.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig_Component.php new file mode 100644 index 000000000000..b88df03fdc78 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig_Component.php @@ -0,0 +1,16 @@ +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/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/MaintenanceExclusionOptions_Scope.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceExclusionOptions_Scope.php new file mode 100644 index 000000000000..87f49f9906ac --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceExclusionOptions_Scope.php @@ -0,0 +1,16 @@ +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/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..87614f874f53 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig.php @@ -0,0 +1,108 @@ +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; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Whether or not master authorized networks is enabled. + * @type \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. + * } + */ + 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 \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; + } + +} + 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/MasterAuthorizedNetworksConfig_CidrBlock.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig_CidrBlock.php new file mode 100644 index 000000000000..56c2e022b1bb --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig_CidrBlock.php @@ -0,0 +1,16 @@ +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..e6cf152955a7 --- /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 int[]|\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 int[]|\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..3e2da0d3b50f --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringComponentConfig/Component.php @@ -0,0 +1,57 @@ +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; + + private static $valueToName = [ + self::COMPONENT_UNSPECIFIED => 'COMPONENT_UNSPECIFIED', + self::SYSTEM_COMPONENTS => 'SYSTEM_COMPONENTS', + ]; + + 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/MonitoringComponentConfig_Component.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringComponentConfig_Component.php new file mode 100644 index 000000000000..bfc9b245f289 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringComponentConfig_Component.php @@ -0,0 +1,16 @@ +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; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Container\V1\MonitoringComponentConfig $component_config + * Monitoring components configuration + * } + */ + 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; + } + +} + 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..3da7dbbc6e34 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig.php @@ -0,0 +1,425 @@ +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; + + /** + * 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. + * } + */ + 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; + } + +} + 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/NetworkPolicy_Provider.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicy_Provider.php new file mode 100644 index 000000000000..3397af56f700 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicy_Provider.php @@ -0,0 +1,16 @@ +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. + * + * 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; + + /** + * 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 string[]|\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. + * @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 string[]|\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 \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 \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. + * } + */ + 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 string[]|\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. + * + * 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. + * + * 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 string[]|\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 \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 \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; + } + +} + 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..19511210d3c4 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfigDefaults.php @@ -0,0 +1,77 @@ +google.container.v1.NodeConfigDefaults + */ +class NodeConfigDefaults extends \Google\Protobuf\Internal\Message +{ + /** + * GCFS (Google Container File System, a.k.a Riptide) options. + * + * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 1; + */ + protected $gcfs_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, a.k.a Riptide) options. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * GCFS (Google Container File System, a.k.a 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, a.k.a 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; + } + +} + 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..c418e69fef4c --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeKubeletConfig.php @@ -0,0 +1,258 @@ +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 = ''; + + /** + * 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. + * } + */ + 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; + } + +} + 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..82c039c3b381 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig.php @@ -0,0 +1,219 @@ +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 = ''; + + /** + * 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. + * } + */ + 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; + } + +} + 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..eff24dda77df --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool.php @@ -0,0 +1,715 @@ +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 the Kubernetes of this node. + * + * 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. + * + * 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; + + /** + * 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 string[]|\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 the Kubernetes of this node. + * @type string[]|\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. + * @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 \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. + * } + */ + 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 string[]|\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 the Kubernetes of this node. + * + * Generated from protobuf field string version = 101; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * The version of the Kubernetes of this node. + * + * 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. + * + * 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. + * + * Generated from protobuf field repeated string instance_group_urls = 102; + * @param string[]|\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 \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; + } + +} + 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/UpgradeSettings.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpgradeSettings.php new file mode 100644 index 000000000000..14f513b4c9e6 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpgradeSettings.php @@ -0,0 +1,133 @@ +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; + + /** + * 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. + * } + */ + 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; + } + +} + +// 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/NodePoolAutoscaling.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling.php new file mode 100644 index 000000000000..4858fd20e6d8 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling.php @@ -0,0 +1,178 @@ +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; + + /** + * 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. + * } + */ + 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; + } + +} + 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/NodePool_Status.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool_Status.php new file mode 100644 index 000000000000..27aba771b66c --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool_Status.php @@ -0,0 +1,16 @@ +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/NodeTaint_Effect.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaint_Effect.php new file mode 100644 index 000000000000..2b830a4e4953 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaint_Effect.php @@ -0,0 +1,16 @@ +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..a6dbd23bb0d2 --- /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 int[]|\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 int[]|\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/NotificationConfig_EventType.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig_EventType.php new file mode 100644 index 000000000000..2f5303b139ff --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig_EventType.php @@ -0,0 +1,16 @@ +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 URL for the resource. + * + * Generated from protobuf field string self_link = 6; + */ + protected $self_link = ''; + /** + * Server-defined URL for the target of the operation. + * + * 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 URL for the resource. + * @type string $target_link + * Server-defined URL for the target of the operation. + * @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 \Google\Cloud\Container\V1\StatusCondition[]|\Google\Protobuf\Internal\RepeatedField $cluster_conditions + * Which conditions caused the current cluster state. + * Deprecated. Use field error instead. + * @type \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 URL for the resource. + * + * Generated from protobuf field string self_link = 6; + * @return string + */ + public function getSelfLink() + { + return $this->self_link; + } + + /** + * Server-defined URL for the resource. + * + * 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 URL for the target of the operation. + * + * Generated from protobuf field string target_link = 7; + * @return string + */ + public function getTargetLink() + { + return $this->target_link; + } + + /** + * Server-defined URL for the target of the operation. + * + * 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 \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 \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..4992d7cf2186 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation/Type.php @@ -0,0 +1,162 @@ +google.container.v1.Operation.Type + */ +class Type +{ + /** + * Not set. + * + * Generated from protobuf enum TYPE_UNSPECIFIED = 0; + */ + const TYPE_UNSPECIFIED = 0; + /** + * Cluster create. + * + * Generated from protobuf enum CREATE_CLUSTER = 1; + */ + const CREATE_CLUSTER = 1; + /** + * Cluster delete. + * + * Generated from protobuf enum DELETE_CLUSTER = 2; + */ + const DELETE_CLUSTER = 2; + /** + * A master upgrade. + * + * Generated from protobuf enum UPGRADE_MASTER = 3; + */ + const UPGRADE_MASTER = 3; + /** + * A node upgrade. + * + * Generated from protobuf enum UPGRADE_NODES = 4; + */ + const UPGRADE_NODES = 4; + /** + * Cluster repair. + * + * Generated from protobuf enum REPAIR_CLUSTER = 5; + */ + const REPAIR_CLUSTER = 5; + /** + * Cluster update. + * + * Generated from protobuf enum UPDATE_CLUSTER = 6; + */ + const UPDATE_CLUSTER = 6; + /** + * Node pool create. + * + * Generated from protobuf enum CREATE_NODE_POOL = 7; + */ + const CREATE_NODE_POOL = 7; + /** + * Node pool delete. + * + * Generated from protobuf enum DELETE_NODE_POOL = 8; + */ + const DELETE_NODE_POOL = 8; + /** + * Set node pool management. + * + * Generated from protobuf enum SET_NODE_POOL_MANAGEMENT = 9; + */ + const SET_NODE_POOL_MANAGEMENT = 9; + /** + * Automatic node pool repair. + * + * Generated from protobuf enum AUTO_REPAIR_NODES = 10; + */ + const AUTO_REPAIR_NODES = 10; + /** + * Automatic node upgrade. + * + * Generated from protobuf enum AUTO_UPGRADE_NODES = 11; + */ + const AUTO_UPGRADE_NODES = 11; + /** + * Set labels. + * + * Generated from protobuf enum SET_LABELS = 12; + */ + const SET_LABELS = 12; + /** + * Set/generate master auth materials + * + * Generated from protobuf enum SET_MASTER_AUTH = 13; + */ + const SET_MASTER_AUTH = 13; + /** + * Set node pool size. + * + * Generated from protobuf enum SET_NODE_POOL_SIZE = 14; + */ + const SET_NODE_POOL_SIZE = 14; + /** + * Updates network policy for a cluster. + * + * Generated from protobuf enum SET_NETWORK_POLICY = 15; + */ + const SET_NETWORK_POLICY = 15; + /** + * Set the maintenance policy. + * + * Generated from protobuf enum SET_MAINTENANCE_POLICY = 16; + */ + const SET_MAINTENANCE_POLICY = 16; + + 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', + ]; + + 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..c85975e5c234 --- /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 \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 \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 \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 \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/OperationProgress_Metric.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/OperationProgress_Metric.php new file mode 100644 index 000000000000..44d2e8f7eda4 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/OperationProgress_Metric.php @@ -0,0 +1,16 @@ +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; + + /** + * 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. + * } + */ + 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; + } + +} + 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..fa537f67f7ed --- /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 priate 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/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/ReleaseChannel_Channel.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReleaseChannel_Channel.php new file mode 100644 index 000000000000..05c29e35bc88 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReleaseChannel_Channel.php @@ -0,0 +1,16 @@ +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 "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 "googleapis.com/reservation-name" as + * the key and specify the name of your reservation as its value. + * @type string[]|\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 "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 "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 string[]|\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/ReservationAffinity_Type.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReservationAffinity_Type.php new file mode 100644 index 000000000000..4cb70d614dcd --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReservationAffinity_Type.php @@ -0,0 +1,16 @@ +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/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/ResourceUsageExportConfig_BigQueryDestination.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig_BigQueryDestination.php new file mode 100644 index 000000000000..ecaf313dc630 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig_BigQueryDestination.php @@ -0,0 +1,16 @@ +google.container.v1.RollbackNodePoolUpgradeRequest + */ +class RollbackNodePoolUpgradeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * 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 = ''; + + /** + * 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://support.google.com/cloud/answer/6158840). + * 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/*`. + * } + */ + 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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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; + } + +} + 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/SandboxConfig_Type.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig_Type.php new file mode 100644 index 000000000000..0c8118c38c7d --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig_Type.php @@ -0,0 +1,16 @@ +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 string[]|\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 string[]|\Google\Protobuf\Internal\RepeatedField $affected_supported_minors + * The GKE minor versions affected by this vulnerability. + * @type string[]|\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 string[]|\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 string[]|\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 string[]|\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/ServerConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig.php new file mode 100644 index 000000000000..5f2146dfa811 --- /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 string[]|\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 string[]|\Google\Protobuf\Internal\RepeatedField $valid_image_types + * List of valid image types. + * @type string[]|\Google\Protobuf\Internal\RepeatedField $valid_master_versions + * List of valid master versions, in descending order. + * @type \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 string[]|\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 string[]|\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 string[]|\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 \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..89a1e3d4eee4 --- /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 string[]|\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 string[]|\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/ServerConfig_ReleaseChannelConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig_ReleaseChannelConfig.php new file mode 100644 index 000000000000..30cce6bc0673 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig_ReleaseChannelConfig.php @@ -0,0 +1,16 @@ +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..bc7021e92cf8 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetAddonsConfigRequest.php @@ -0,0 +1,260 @@ +google.container.v1.SetAddonsConfigRequest + */ +class SetAddonsConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * 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 = ''; + + /** + * 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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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..52b374b10a8d --- /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://developers.google.com/console/help/new/#projectnumber). + * 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 id) 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://developers.google.com/console/help/new/#projectnumber). + * 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 id) 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://developers.google.com/console/help/new/#projectnumber). + * 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://developers.google.com/console/help/new/#projectnumber). + * 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 id) 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 id) 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..848fa31ba4b6 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLegacyAbacRequest.php @@ -0,0 +1,247 @@ +google.container.v1.SetLegacyAbacRequest + */ +class SetLegacyAbacRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * 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 id) of the cluster to set legacy abac. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * 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://support.google.com/cloud/answer/6158840). + * 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 id) 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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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 id) 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 id) 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..aa4582476502 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLocationsRequest.php @@ -0,0 +1,266 @@ +google.container.v1.SetLocationsRequest + */ +class SetLocationsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * 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 = ''; + + /** + * 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://support.google.com/cloud/answer/6158840). + * 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[]|\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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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 string[]|\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..75cc6ea5da8d --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLoggingServiceRequest.php @@ -0,0 +1,278 @@ +google.container.v1.SetLoggingServiceRequest + */ +class SetLoggingServiceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * 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 = ''; + + /** + * 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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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..6d56e9199f67 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMaintenancePolicyRequest.php @@ -0,0 +1,237 @@ +google.container.v1.SetMaintenancePolicyRequest + */ +class SetMaintenancePolicyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * + * 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 id) of the cluster to set maintenance + * policy. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 5; + */ + protected $name = ''; + + /** + * 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://support.google.com/cloud/answer/6158840). + * @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 id) 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://support.google.com/cloud/answer/6158840). + * + * 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://support.google.com/cloud/answer/6158840). + * + * 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 id) 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 id) 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..a55d26a6374b --- /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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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/SetMasterAuthRequest_Action.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest_Action.php new file mode 100644 index 000000000000..f7baefe2dfd1 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest_Action.php @@ -0,0 +1,16 @@ +google.container.v1.SetMonitoringServiceRequest + */ +class SetMonitoringServiceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * 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 = ''; + + /** + * 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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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..be804b2d7d8c --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNetworkPolicyRequest.php @@ -0,0 +1,256 @@ +google.container.v1.SetNetworkPolicyRequest + */ +class SetNetworkPolicyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * 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 id) of the cluster to set networking + * policy. Specified in the format `projects/*/locations/*/clusters/*`. + * + * 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://developers.google.com/console/help/new/#projectnumber). + * 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 id) 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://developers.google.com/console/help/new/#projectnumber). + * 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://developers.google.com/console/help/new/#projectnumber). + * 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 id) 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 id) 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..d380679efe13 --- /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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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..9f9244176c8f --- /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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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..b43b3baeda6b --- /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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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/StartIPRotationRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StartIPRotationRequest.php new file mode 100644 index 000000000000..5534fc1c1e64 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StartIPRotationRequest.php @@ -0,0 +1,247 @@ +google.container.v1.StartIPRotationRequest + */ +class StartIPRotationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * 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 id) 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; + + /** + * 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://developers.google.com/console/help/new/#projectnumber). + * 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 id) 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://developers.google.com/console/help/new/#projectnumber). + * 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://developers.google.com/console/help/new/#projectnumber). + * 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 id) 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 id) 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/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/StatusCondition_Code.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatusCondition_Code.php new file mode 100644 index 000000000000..ad11e8fce072 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatusCondition_Code.php @@ -0,0 +1,16 @@ +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..58cb7246a7ba --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateClusterRequest.php @@ -0,0 +1,256 @@ +google.container.v1.UpdateClusterRequest + */ +class UpdateClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * 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 = ''; + + /** + * 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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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..9a1e80118674 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateMasterRequest.php @@ -0,0 +1,274 @@ +google.container.v1.UpdateMasterRequest + */ +class UpdateMasterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * 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 = ''; + + /** + * 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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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..b18a8d64879d --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateNodePoolRequest.php @@ -0,0 +1,673 @@ +google.container.v1.UpdateNodePoolRequest + */ +class UpdateNodePoolRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * 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. + * + * 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; + /** + * 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; + /** + * GCFS config. + * + * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 22; + */ + protected $gcfs_config = null; + /** + * Enable or disable gvnic on the node pool. + * + * Generated from protobuf field .google.container.v1.VirtualNIC gvnic = 29; + */ + protected $gvnic = 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://support.google.com/cloud/answer/6158840). + * 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. + * @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[]|\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\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\GcfsConfig $gcfs_config + * GCFS config. + * @type \Google\Cloud\Container\V1\VirtualNIC $gvnic + * Enable or disable gvnic on the node pool. + * } + */ + 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://support.google.com/cloud/answer/6158840). + * 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://support.google.com/cloud/answer/6158840). + * 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. + * + * 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. + * + * 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 string[]|\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; + } + + /** + * 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; + } + + /** + * 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; + } + + /** + * 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; + } + +} + 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..aef82f0bc453 --- /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 \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 \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..f41ce8a08b03 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange/Status.php @@ -0,0 +1,82 @@ +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 a cluster for + * services. It cannot be used for other clusters. + * + * 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/UsableSubnetworkSecondaryRange_Status.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange_Status.php new file mode 100644 index 000000000000..022be8f2fabb --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange_Status.php @@ -0,0 +1,16 @@ +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/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/WorkloadMetadataConfig_Mode.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadMetadataConfig_Mode.php new file mode 100644 index 000000000000..87dc6378ac2e --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadMetadataConfig_Mode.php @@ -0,0 +1,16 @@ +cancelOperation(); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + */ +class ClusterManagerGapicClient +{ + use GapicClientTrait; + + /** + * The name of the service. + */ + const SERVICE_NAME = 'google.container.v1.ClusterManager'; + + /** + * The default address of the service. + */ + const SERVICE_ADDRESS = 'container.googleapis.com'; + + /** + * 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 function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'serviceAddress' => 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', + ], + ], + ]; + } + + /** + * Constructor. + * + * @param array $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $serviceAddress + * 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 + * $serviceAddress 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://support.google.com/cloud/answer/6158840). + * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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(); + } + + /** + * 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://developers.google.com/console/help/new/#projectnumber). + * 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 id) 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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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(); + } + + /** + * 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://support.google.com/cloud/answer/6158840). + * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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://developers.google.com/console/help/new/#projectnumber). + * 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 id) 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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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://support.google.com/cloud/answer/6158840). + * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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://developers.google.com/console/help/new/#projectnumber). + * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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://support.google.com/cloud/answer/6158840). + * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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. + * This API is not yet intended for general use, and is not available for all + * clusters. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $response = $clusterManagerClient->getJSONWebKeys(); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $parent + * The cluster (project, location, cluster id) 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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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://developers.google.com/console/help/new/#projectnumber). + * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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://support.google.com/cloud/answer/6158840). + * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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://support.google.com/cloud/answer/6158840). + * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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://support.google.com/cloud/answer/6158840). + * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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://developers.google.com/console/help/new/#projectnumber). + * 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 id) 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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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://support.google.com/cloud/answer/6158840). + * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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://support.google.com/cloud/answer/6158840). + * 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 RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a + * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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']; + } + + $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://support.google.com/cloud/answer/6158840). + * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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://developers.google.com/console/help/new/#projectnumber). + * 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 id) 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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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://support.google.com/cloud/answer/6158840). + * 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 id) 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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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://support.google.com/cloud/answer/6158840). + * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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://support.google.com/cloud/answer/6158840). + * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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://support.google.com/cloud/answer/6158840). + * @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 id) 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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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://support.google.com/cloud/answer/6158840). + * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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://support.google.com/cloud/answer/6158840). + * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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://developers.google.com/console/help/new/#projectnumber). + * 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 id) 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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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://support.google.com/cloud/answer/6158840). + * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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://support.google.com/cloud/answer/6158840). + * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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://support.google.com/cloud/answer/6158840). + * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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://developers.google.com/console/help/new/#projectnumber). + * 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 id) 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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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://support.google.com/cloud/answer/6158840). + * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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://support.google.com/cloud/answer/6158840). + * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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. + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * 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 LinuxNodeConfig $linuxNodeConfig + * Parameters that can be configured on Linux nodes. + * @type NodeKubeletConfig $kubeletConfig + * Node kubelet configs. + * @type GcfsConfig $gcfsConfig + * GCFS config. + * @type VirtualNIC $gvnic + * Enable or disable gvnic on the node pool. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a + * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry + * settings parameters. See the documentation on + * {@see Google\ApiCore\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['linuxNodeConfig'])) { + $request->setLinuxNodeConfig($optionalArgs['linuxNodeConfig']); + } + + if (isset($optionalArgs['kubeletConfig'])) { + $request->setKubeletConfig($optionalArgs['kubeletConfig']); + } + + if (isset($optionalArgs['gcfsConfig'])) { + $request->setGcfsConfig($optionalArgs['gcfsConfig']); + } + + if (isset($optionalArgs['gvnic'])) { + $request->setGvnic($optionalArgs['gvnic']); + } + + $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..d1cd355afe98 --- /dev/null +++ b/owl-bot-staging/Container/v1/src/V1/gapic_metadata.json @@ -0,0 +1,178 @@ +{ + "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" + ] + }, + "CompleteIPRotation": { + "methods": [ + "completeIPRotation" + ] + }, + "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..fcc3eebbcfb3 --- /dev/null +++ b/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_client_config.json @@ -0,0 +1,205 @@ +{ + "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" + }, + "CompleteIPRotation": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_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..8b581aa9910c --- /dev/null +++ b/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_descriptor_config.php @@ -0,0 +1,18 @@ + [ + 'google.container.v1.ClusterManager' => [ + 'ListUsableSubnetworks' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getSubnetworks', + ], + ], + ], + ], +]; 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..778f33e9be67 --- /dev/null +++ b/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_rest_client_config.php @@ -0,0 +1,1047 @@ + [ + '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', + ], + ], + ], + ], + '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', + ], + ], + ], + ], + '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', + ], + ], + ], + ], + ], + ], +]; 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..d944f6458610 --- /dev/null +++ b/owl-bot-staging/Container/v1/tests/Unit/V1/ClusterManagerClientTest.php @@ -0,0 +1,2502 @@ +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(); + $client = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + $client->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(); + $client = $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 { + $client->cancelOperation(); + // If the $client 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(); + $client = $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 = $client->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(); + $client = $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 { + $client->completeIPRotation(); + // If the $client 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(); + $client = $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 = $client->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(); + $client = $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 { + $client->createCluster($cluster); + // If the $client 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(); + $client = $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 = $client->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(); + $client = $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 { + $client->createNodePool($nodePool); + // If the $client 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(); + $client = $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 = $client->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(); + $client = $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 { + $client->deleteCluster(); + // If the $client 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(); + $client = $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 = $client->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(); + $client = $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 { + $client->deleteNodePool(); + // If the $client 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(); + $client = $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'; + $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); + $transport->addResponse($expectedResponse); + $response = $client->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(); + $client = $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 { + $client->getCluster(); + // If the $client 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(); + $client = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GetJSONWebKeysResponse(); + $transport->addResponse($expectedResponse); + $response = $client->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(); + $client = $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 { + $client->getJSONWebKeys(); + // If the $client 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(); + $client = $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; + $expectedResponse = new NodePool(); + $expectedResponse->setName($name2); + $expectedResponse->setInitialNodeCount($initialNodeCount); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setVersion($version); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setPodIpv4CidrSize($podIpv4CidrSize); + $transport->addResponse($expectedResponse); + $response = $client->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(); + $client = $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 { + $client->getNodePool(); + // If the $client 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(); + $client = $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 = $client->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(); + $client = $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 { + $client->getOperation(); + // If the $client 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(); + $client = $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 = $client->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(); + $client = $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 { + $client->getServerConfig(); + // If the $client 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(); + $client = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ListClustersResponse(); + $transport->addResponse($expectedResponse); + $response = $client->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(); + $client = $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 { + $client->listClusters(); + // If the $client 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(); + $client = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ListNodePoolsResponse(); + $transport->addResponse($expectedResponse); + $response = $client->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(); + $client = $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 { + $client->listNodePools(); + // If the $client 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(); + $client = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ListOperationsResponse(); + $transport->addResponse($expectedResponse); + $response = $client->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(); + $client = $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 { + $client->listOperations(); + // If the $client 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(); + $client = $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 = $client->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(); + $client = $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 { + $client->listUsableSubnetworks(); + // If the $client 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(); + $client = $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 = $client->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(); + $client = $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 { + $client->rollbackNodePoolUpgrade(); + // If the $client 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(); + $client = $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 = $client->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(); + $client = $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 { + $client->setAddonsConfig($addonsConfig); + // If the $client 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(); + $client = $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 = $client->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(); + $client = $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 { + $client->setLabels($resourceLabels, $labelFingerprint); + // If the $client 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(); + $client = $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 = $client->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(); + $client = $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 { + $client->setLegacyAbac($enabled); + // If the $client 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(); + $client = $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 = $client->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(); + $client = $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 { + $client->setLocations($locations); + // If the $client 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(); + $client = $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 = $client->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(); + $client = $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 { + $client->setLoggingService($loggingService); + // If the $client 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(); + $client = $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 = $client->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(); + $client = $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 { + $client->setMaintenancePolicy($projectId, $zone, $clusterId, $maintenancePolicy); + // If the $client 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(); + $client = $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 = $client->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(); + $client = $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 { + $client->setMasterAuth($action, $update); + // If the $client 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(); + $client = $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 = $client->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(); + $client = $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 { + $client->setMonitoringService($monitoringService); + // If the $client 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(); + $client = $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 = $client->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(); + $client = $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 { + $client->setNetworkPolicy($networkPolicy); + // If the $client 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(); + $client = $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 = $client->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(); + $client = $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 { + $client->setNodePoolAutoscaling($autoscaling); + // If the $client 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(); + $client = $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 = $client->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(); + $client = $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 { + $client->setNodePoolManagement($management); + // If the $client 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(); + $client = $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 = $client->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(); + $client = $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 { + $client->setNodePoolSize($nodeCount); + // If the $client 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(); + $client = $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 = $client->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(); + $client = $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 { + $client->startIPRotation(); + // If the $client 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(); + $client = $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 = $client->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(); + $client = $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 { + $client->updateCluster($update); + // If the $client 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(); + $client = $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 = $client->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(); + $client = $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 { + $client->updateMaster($masterVersion); + // If the $client 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(); + $client = $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 = $client->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(); + $client = $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 { + $client->updateNodePool($nodeVersion, $imageType); + // If the $client 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 856c014806b96749fccec2b9232dde7f6d3c464c Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 25 Jan 2022 19:54:52 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot?= 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 36539 -> 36804 bytes Container/src/V1/GetOpenIDConfigRequest.php | 8 +- .../Google/Container/V1/ClusterService.php | Bin 36804 -> 0 bytes .../Cloud/Container/V1/AcceleratorConfig.php | 147 - .../Cloud/Container/V1/AddonsConfig.php | 481 --- .../Container/V1/AdvancedMachineFeatures.php | 85 - .../V1/AuthenticatorGroupsConfig.php | 109 - .../Cloud/Container/V1/AutoUpgradeOptions.php | 114 - .../Google/Cloud/Container/V1/Autopilot.php | 67 - .../V1/AutoprovisioningNodePoolDefaults.php | 472 --- .../Container/V1/BinaryAuthorization.php | 71 - .../Container/V1/CancelOperationRequest.php | 212 -- .../Container/V1/ClientCertificateConfig.php | 67 - .../Cloud/Container/V1/CloudRunConfig.php | 101 - .../V1/CloudRunConfig/LoadBalancerType.php | 64 - .../V1/CloudRunConfig_LoadBalancerType.php | 16 - .../src/Google/Cloud/Container/V1/Cluster.php | 2786 ----------------- .../Cloud/Container/V1/Cluster/Status.php | 97 - .../Cloud/Container/V1/ClusterAutoscaling.php | 232 -- .../ClusterAutoscaling/AutoscalingProfile.php | 64 - .../ClusterAutoscaling_AutoscalingProfile.php | 16 - .../Container/V1/ClusterManagerGrpcClient.php | 548 ---- .../Cloud/Container/V1/ClusterUpdate.php | 1533 --------- .../Cloud/Container/V1/Cluster_Status.php | 16 - .../V1/CompleteIPRotationRequest.php | 212 -- .../Cloud/Container/V1/ConfidentialNodes.php | 72 - .../Container/V1/ConfigConnectorConfig.php | 67 - .../Container/V1/CreateClusterRequest.php | 217 -- .../Container/V1/CreateNodePoolRequest.php | 260 -- .../Google/Cloud/Container/V1/DNSConfig.php | 135 - .../Cloud/Container/V1/DNSConfig/DNSScope.php | 57 - .../Cloud/Container/V1/DNSConfig/Provider.php | 64 - .../Cloud/Container/V1/DNSConfig_DNSScope.php | 16 - .../Cloud/Container/V1/DNSConfig_Provider.php | 16 - .../Container/V1/DailyMaintenanceWindow.php | 121 - .../Cloud/Container/V1/DatabaseEncryption.php | 105 - .../Container/V1/DatabaseEncryption/State.php | 65 - .../Container/V1/DatabaseEncryption_State.php | 16 - .../Cloud/Container/V1/DatapathProvider.php | 65 - .../Cloud/Container/V1/DefaultSnatStatus.php | 68 - .../Container/V1/DeleteClusterRequest.php | 212 -- .../Container/V1/DeleteNodePoolRequest.php | 259 -- .../Cloud/Container/V1/DnsCacheConfig.php | 67 - .../V1/GcePersistentDiskCsiDriverConfig.php | 67 - .../Google/Cloud/Container/V1/GcfsConfig.php | 68 - .../V1/GcpFilestoreCsiDriverConfig.php | 67 - .../Cloud/Container/V1/GetClusterRequest.php | 212 -- .../Container/V1/GetJSONWebKeysRequest.php | 74 - .../Container/V1/GetJSONWebKeysResponse.php | 71 - .../Cloud/Container/V1/GetNodePoolRequest.php | 259 -- .../Container/V1/GetOpenIDConfigRequest.php | 72 - .../Container/V1/GetOpenIDConfigResponse.php | 272 -- .../Container/V1/GetOperationRequest.php | 212 -- .../Container/V1/GetServerConfigRequest.php | 169 - .../Container/V1/HorizontalPodAutoscaling.php | 77 - .../Cloud/Container/V1/HttpLoadBalancing.php | 76 - .../Container/V1/ILBSubsettingConfig.php | 68 - .../Cloud/Container/V1/IPAllocationPolicy.php | 722 ----- .../V1/IntraNodeVisibilityConfig.php | 68 - .../src/Google/Cloud/Container/V1/Jwk.php | 339 -- .../Container/V1/KubernetesDashboard.php | 67 - .../Google/Cloud/Container/V1/LegacyAbac.php | 80 - .../Cloud/Container/V1/LinuxNodeConfig.php | 111 - .../Container/V1/ListClustersRequest.php | 173 - .../Container/V1/ListClustersResponse.php | 109 - .../Container/V1/ListNodePoolsRequest.php | 212 -- .../Container/V1/ListNodePoolsResponse.php | 67 - .../Container/V1/ListOperationsRequest.php | 173 - .../Container/V1/ListOperationsResponse.php | 105 - .../V1/ListUsableSubnetworksRequest.php | 202 -- .../V1/ListUsableSubnetworksResponse.php | 114 - .../Container/V1/LoggingComponentConfig.php | 67 - .../V1/LoggingComponentConfig/Component.php | 64 - .../V1/LoggingComponentConfig_Component.php | 16 - .../Cloud/Container/V1/LoggingConfig.php | 77 - .../V1/MaintenanceExclusionOptions.php | 71 - .../V1/MaintenanceExclusionOptions/Scope.php | 69 - .../V1/MaintenanceExclusionOptions_Scope.php | 16 - .../Cloud/Container/V1/MaintenancePolicy.php | 127 - .../Cloud/Container/V1/MaintenanceWindow.php | 152 - .../Google/Cloud/Container/V1/MasterAuth.php | 331 -- .../V1/MasterAuthorizedNetworksConfig.php | 108 - .../CidrBlock.php | 104 - ...sterAuthorizedNetworksConfig_CidrBlock.php | 16 - .../Cloud/Container/V1/MaxPodsConstraint.php | 67 - .../Cloud/Container/V1/MeshCertificates.php | 140 - .../V1/MonitoringComponentConfig.php | 71 - .../MonitoringComponentConfig/Component.php | 57 - .../MonitoringComponentConfig_Component.php | 16 - .../Cloud/Container/V1/MonitoringConfig.php | 77 - .../Cloud/Container/V1/NetworkConfig.php | 425 --- .../Cloud/Container/V1/NetworkPolicy.php | 102 - .../Container/V1/NetworkPolicy/Provider.php | 57 - .../Container/V1/NetworkPolicyConfig.php | 69 - .../Container/V1/NetworkPolicy_Provider.php | 16 - .../Google/Cloud/Container/V1/NodeConfig.php | 1309 -------- .../Cloud/Container/V1/NodeConfigDefaults.php | 77 - .../Cloud/Container/V1/NodeKubeletConfig.php | 258 -- .../Cloud/Container/V1/NodeManagement.php | 166 - .../Cloud/Container/V1/NodeNetworkConfig.php | 219 -- .../Google/Cloud/Container/V1/NodePool.php | 715 ----- .../Cloud/Container/V1/NodePool/Status.php | 99 - .../Container/V1/NodePool/UpgradeSettings.php | 133 - .../Container/V1/NodePoolAutoscaling.php | 178 -- .../Cloud/Container/V1/NodePoolDefaults.php | 77 - .../Cloud/Container/V1/NodePool_Status.php | 16 - .../Container/V1/NodePool_UpgradeSettings.php | 16 - .../Google/Cloud/Container/V1/NodeTaint.php | 139 - .../Cloud/Container/V1/NodeTaint/Effect.php | 71 - .../Cloud/Container/V1/NodeTaint_Effect.php | 16 - .../Cloud/Container/V1/NotificationConfig.php | 77 - .../V1/NotificationConfig/EventType.php | 72 - .../V1/NotificationConfig/Filter.php | 73 - .../V1/NotificationConfig/PubSub.php | 160 - .../V1/NotificationConfig_EventType.php | 16 - .../V1/NotificationConfig_Filter.php | 16 - .../V1/NotificationConfig_PubSub.php | 16 - .../Google/Cloud/Container/V1/Operation.php | 628 ---- .../Cloud/Container/V1/Operation/Status.php | 78 - .../Cloud/Container/V1/Operation/Type.php | 162 - .../Cloud/Container/V1/OperationProgress.php | 197 -- .../Container/V1/OperationProgress/Metric.php | 178 -- .../Container/V1/OperationProgress_Metric.php | 16 - .../Cloud/Container/V1/Operation_Status.php | 16 - .../Cloud/Container/V1/Operation_Type.php | 16 - .../Container/V1/PrivateClusterConfig.php | 301 -- ...PrivateClusterMasterGlobalAccessConfig.php | 67 - .../Container/V1/PrivateIPv6GoogleAccess.php | 69 - .../Container/V1/RecurringTimeWindow.php | 211 -- .../Cloud/Container/V1/ReleaseChannel.php | 71 - .../Container/V1/ReleaseChannel/Channel.php | 78 - .../Container/V1/ReleaseChannel_Channel.php | 16 - .../Container/V1/ReservationAffinity.php | 145 - .../Container/V1/ReservationAffinity/Type.php | 72 - .../Container/V1/ReservationAffinity_Type.php | 16 - .../Cloud/Container/V1/ResourceLimit.php | 136 - .../V1/ResourceUsageExportConfig.php | 159 - .../BigQueryDestination.php | 70 - .../ConsumptionMeteringConfig.php | 78 - ...eUsageExportConfig_BigQueryDestination.php | 16 - ...ExportConfig_ConsumptionMeteringConfig.php | 16 - .../V1/RollbackNodePoolUpgradeRequest.php | 261 -- .../Cloud/Container/V1/SandboxConfig.php | 67 - .../Cloud/Container/V1/SandboxConfig/Type.php | 57 - .../Cloud/Container/V1/SandboxConfig_Type.php | 16 - .../Container/V1/SecurityBulletinEvent.php | 406 --- .../Cloud/Container/V1/ServerConfig.php | 237 -- .../V1/ServerConfig/ReleaseChannelConfig.php | 138 - .../V1/ServerConfig_ReleaseChannelConfig.php | 16 - .../Container/V1/ServiceExternalIPsConfig.php | 67 - .../Container/V1/SetAddonsConfigRequest.php | 260 -- .../Cloud/Container/V1/SetLabelsRequest.php | 302 -- .../Container/V1/SetLegacyAbacRequest.php | 247 -- .../Container/V1/SetLocationsRequest.php | 266 -- .../Container/V1/SetLoggingServiceRequest.php | 278 -- .../V1/SetMaintenancePolicyRequest.php | 237 -- .../Container/V1/SetMasterAuthRequest.php | 290 -- .../V1/SetMasterAuthRequest/Action.php | 74 - .../V1/SetMasterAuthRequest_Action.php | 16 - .../V1/SetMonitoringServiceRequest.php | 278 -- .../Container/V1/SetNetworkPolicyRequest.php | 256 -- .../V1/SetNodePoolAutoscalingRequest.php | 303 -- .../V1/SetNodePoolManagementRequest.php | 304 -- .../Container/V1/SetNodePoolSizeRequest.php | 293 -- .../Container/V1/ShieldedInstanceConfig.php | 129 - .../Cloud/Container/V1/ShieldedNodes.php | 67 - .../Container/V1/StartIPRotationRequest.php | 247 -- .../Cloud/Container/V1/StatusCondition.php | 145 - .../Container/V1/StatusCondition/Code.php | 95 - .../Container/V1/StatusCondition_Code.php | 16 - .../Google/Cloud/Container/V1/TimeWindow.php | 170 - .../Container/V1/UpdateClusterRequest.php | 256 -- .../Container/V1/UpdateMasterRequest.php | 274 -- .../Container/V1/UpdateNodePoolRequest.php | 673 ---- .../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 | 82 - .../UsableSubnetworkSecondaryRange_Status.php | 16 - .../Container/V1/VerticalPodAutoscaling.php | 69 - .../Google/Cloud/Container/V1/VirtualNIC.php | 67 - .../Container/V1/WorkloadIdentityConfig.php | 68 - .../Container/V1/WorkloadMetadataConfig.php | 72 - .../V1/WorkloadMetadataConfig/Mode.php | 69 - .../V1/WorkloadMetadataConfig_Mode.php | 16 - .../v1/src/V1/ClusterManagerClient.php | 34 - .../V1/Gapic/ClusterManagerGapicClient.php | 2696 ---------------- .../Container/v1/src/V1/gapic_metadata.json | 178 -- .../cluster_manager_client_config.json | 205 -- .../cluster_manager_descriptor_config.php | 18 - .../cluster_manager_rest_client_config.php | 1047 ------- .../Unit/V1/ClusterManagerClientTest.php | 2502 --------------- 194 files changed, 4 insertions(+), 37493 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/AddonsConfig.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/AutoprovisioningNodePoolDefaults.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/CancelOperationRequest.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/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/ClusterAutoscaling_AutoscalingProfile.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterManagerGrpcClient.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/Cluster_Status.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/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/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/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/State.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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/NetworkPolicy_Provider.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/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/NodePool.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/UpgradeSettings.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/NodePoolDefaults.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_UpgradeSettings.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/NodeTaint_Effect.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/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/OperationProgress_Metric.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/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/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/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/ReservationAffinity_Type.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/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/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/SandboxConfig_Type.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/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/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/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/StartIPRotationRequest.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/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/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/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/WorkloadMetadataConfig_Mode.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/ClusterManagerClientTest.php diff --git a/Container/metadata/V1/ClusterService.php b/Container/metadata/V1/ClusterService.php index 08bcbfde6ee3baa0e024d94f99e5469fc176c211..81f13c87760951d50f2ae0ded36e801ceaa6195a 100644 GIT binary patch delta 275 zcmdlzm+8oSrVUq^S-Yn*acNHU*4)g*A{#2C!6oLNTH;@jn&;`_oS&DLnLgPtQlkD2 zBbPXucu;C_L4ICwst_L+TV`=_X=;%KqXMG_r;q>_M^<@uaeQe}rUVmMM1f192&y{1 zq_QBjIKH^Fpdi1fBsE2XS%Dd-N1jW(xHKs%HMs;s0Siz;Jg1N@muhB8d`W(GYF>PC zW_n&`UV40DPI`PypK148rVUq^S(~OZacNHU*4)g*A{)9{BWjK*0Gt5{&Hw-a diff --git a/Container/src/V1/GetOpenIDConfigRequest.php b/Container/src/V1/GetOpenIDConfigRequest.php index 86ff6eb754a2..c818f3de18d1 100644 --- a/Container/src/V1/GetOpenIDConfigRequest.php +++ b/Container/src/V1/GetOpenIDConfigRequest.php @@ -17,7 +17,7 @@ class GetOpenIDConfigRequest extends \Google\Protobuf\Internal\Message { /** - * The cluster (project, location, cluster id) to get the discovery document + * 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; @@ -31,7 +31,7 @@ class GetOpenIDConfigRequest extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $parent - * The cluster (project, location, cluster id) to get the discovery document + * The cluster (project, location, cluster name) to get the discovery document * for. Specified in the format `projects/*/locations/*/clusters/*`. * } */ @@ -41,7 +41,7 @@ public function __construct($data = NULL) { } /** - * The cluster (project, location, cluster id) to get the discovery document + * 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; @@ -53,7 +53,7 @@ public function getParent() } /** - * The cluster (project, location, cluster id) to get the discovery document + * 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; 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 81f13c87760951d50f2ae0ded36e801ceaa6195a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 36804 zcmd6QYiwLecHTBAQe;u0s7pOs)MGezUK*{2TydUDjb^4vwx}NQ(Zh$dQnYS2yDzC; zHM@KJc56nSC|GZHor#SYw%3V+P2wyN#E*>wCxI7goS5qWP_-BYJdo%cC>_x;A*hI(Og(W`mQV#_N}ZatW6 z-Ss9L&3da|s#hns+S}V+bFx(5ZB(jWb82#OVRdq4bz?HSklT13Q~i3oS@LElck1<> zsyAJ#*ILC2R-3+mX}VNx`z^0o@V(~!O39nzRh6n0cRjyREP0cQ`MG7URV)`<#XF0< zz@2%sz?~bHE-O{47JYwmUKU!Hb=0S768|;YTh&Tw(r*=8_~*rnU#Qe7txB<4`3Y>~ z%H(#j>U&tCd+c_*R%%u1wMm+=S}S?yU!9aSY3z%QIyQb~(m<3aTmTPuay4wGR;=Dx z@cdG<(rDG2c?_MM-SJuh2Io~r4 z!dI9cUwf~jsV`G52gG(2ck+Bd9z-m!sGs?zKJ{wPx6v7wp;N)dow|Q%;-sEmY*cWG ziALn^PCOTRu}y?f*wU1s2b_uwXzJtEuTJY%%mr|trad~)j)jAlEpuvmz`4%ZAM2yh z?~m*E%|;1KsH~YyuoHSrx3KNYc=y{Wb!4ehYk#tW!C*Sul^thJ9rPdgrB>BXrzZQ) zkIY<}l2v2and+D}wJvkAwN~@N#FRP|{oNT+{r9{FSTA*c*g32Q?iZ_VFWpDK&i1{N za=(#MM+t=M?JckBwKOCX$|*J4h23JUxB~{-sDsm)MJ}ns^scn+7rx%cz30V7W+n`* z28B~|U`03RbIuucEH3#yk{q13;B3L-44(%38cfrI9tp^QHgN~==ihr-* zgS!@Xw)mq14xZMF?bh9bU#d4e9}D(lno`hPc7YOsY=9TNtOlz^AkR+^@{(VC+>%Q?S{4MT)q1H|E%<)9 zAfO(^ssqj;b)Z$;@zX=Rqj5FTXnI7jm946mRv0qmysHjjdpI?S&U({NkMQSTwthYn z4%A0{R1Gsi8OMisCuuddTd5W3s2bH`YrEduO&{hr%PReGy?L)%FO~}ig8-MPHa&_F zBQy40-_(-~7WKEM)F4UemY+VtFrTx+OsB9x!<<<)>KAL}t@%aDe&r+$madouN`QF_UX1wCH z=(=enVxbb&X?ftomzf z_tfF|<$DucjCeT7o6(s&uUOAIHf3r9#?_I`%B|SLJ}0e?X$;KA-t@b_ zol?UgliY(;oj28>2ScjVVv##K^OE%-g0-fyJQ$=hC_gzTl#{)BH9Nmih@S@z2)kIH zzm{FtT*_h#7?@wnUd^r*qR;z)7ljAeuVm*pH?m{>?te@vwOl0gECcxsK|a(5e+#u)lB@%1lDT{1i+@l)^&EYql!el@i?z&6r4~7@4s%6)`vF!%6yrol_@_ zsaPsT7fqMx#yF%6u@)M8=kYsGq<%-da+{vHm(|InPfextS+`Z@BT$>_ zJ~R(=dq)z;{#r0CUoYdV%p~VSb&P~fv*xutzfdmvcemI4)uw8!)XoDz-I)32+O@=f}54cDzse4n)>QrSjkF4%$KAy`AE;0Lk>%Ic*Z zs1s!VRd7#gS}d3RN}=4W+-H%(OONoo>><YF{)Wa&$BDEn) zv))IxA8Gf`sgoUVy;`|Zhx8R;>ws(RG6U_B^K4c@Zj70AgPC-l*gg{HRUvpGdIQX< zh6mHEwo_nEOgCrP`Ehkxe`trdOGXv;Ybaap$7L&d#P^+qGj~CqA}IhGCthA}E|RXE zgiwf>QPxjL1re>DMX&qcQ);y1K6jn9lUGiJk>V1u+$W5U&b(pWLww1pkgs}8)>S@H zW1Y_&SDjm0%`6n=GE142c?iReTls8<=zLC{wv5SsWh1+`l39W%wGYUx=mCB1d39V! z3IC6=jxHK}T}?ig6Ld|QQl}S7iPsytS%<>)yD4=}j+hRU#D-Va7clWG*VIU;p!%R} za(i5{p2OZtPt8Nmog+1O;!QOi{6ZcA@Ee%34}_%Yat)ImAAVL;3sNVSyq#j{L1wF1 z>fYVYr_|vXJ8`Z+J89PMSIS^mj z0Yx7snXn$1f!g5k+gmk}%bMwsYbAIl7!_`F7IU<_Juo}iN)erHLXEOf8@^+X!@~cZ zaBc3^w8;6UkoDSi~t9bp{o4LTE?A9U=$a#9`CLWR6Op$ZIh zV5F>F{WvrsQ?PwU#~F;9fc#r@2m_3*chm^O4@8l7MieN!p-%d~Fc6*z6JPWBBJOXR z4rpY?J~O7VBlL=&yT6+BeW*6qM)G) zGz)QFy>307kOHlOW)8$hu0yC$iPV*{u zo5aSB-&G@6z}QXN?UjHkO$gxUW;{7R&2i~FeVPH-^SI<%JJ;3evbSAqS6gtueF8MV z8HGjsR+Dy{KDQ@6K7qkUf?JPvHq@DbrrSPw!M#r!^=8Z5%jbEuDeG|=!rr8LS)Qgr zTvw+Fy@Bp0DqTPW?jDN*OX0kj&X`jtjP7gL3bsxB@FiaFRV$EjZB@g!pvEaayao9P zb-C1h03SS<@yonU!YMB33E5ygxr$-3k$&54e&2b87yF_Ws2h4#hxJV^apQU>e($Hx z^CEVtFb+TBX+8o6U`|z!c2v4sgz8vLzsi&CHu9Q`otL4s6Ef6Ui-zt4ogI3(#_kvQ z*vL&iDW~UX{C=R0B0hRI>RR#B^SqATOSO#A5g(54;Diu=7C#V<#=vrk*GM>_mB<7Q z2v`R1g2BTn307x#6}y{-C+gvXS%?bXt8N$IRk^2~M`P*$ye?ka!$P79!6*srE_N7^ zI59HakSmDACpz1qX=LlcA=@M;fM%QK{at=Pi2$2^Phc0!+e+|J=n`6|qsV6ZYdr0B zH7G&J^gaAOn&>0pG>Rz+5<{+!$|OXBe7er*YVZ{(Km7er`=NMUdKUu*NFnIfozgXi z<`?i0tW`~@9VrOFl_`?y2($V5@@R$ zN?O{-v!Nu7t;G}Gfu#VI6Nw#Qgz5XNFW7@If*#O>40dMJFtL5)t-y)?4brSfX6%73 z;`TfYUW~pl>Mk&Gin0XiObqQ)wMO^xVoK4CfJbaBXvif9ZoUG_sbRUtO8cEz#S4=-5N+8>{&| z{dT|^Rs-3!HN+Drk+#L6~{k8F`aM?P_@#4srj{QFT}=6PpbPFb=|l`QwI^WnYFzh)>8>6XtE? zq>V<;#+vhiI&Q|qHF63pjm-3*k;Aw$D=@|wx1e~j3cw)D+enmM41^`pWCVJfIG$n% z5>Ras$D3->ESD(Erg=@fR8A0P*VHMq>{AN0Id#IU)FJ1;#9-NPZCuXJhWKQ!wrD_a z@_aidT3A`vH-1%}HQx_Uiujp{8IW<7=$Y3Xh!~q5@4$>P3mTs6BawluscrSDdG&as zfKnAkW}e6>h|rJ`v(X)qIX;pUq||pQx}z0!#(-_L6UatO!jR2QfEHlZGo0GoKQhpU zojZ5bi)O^0nz-Z)>{kRattY=$Y!yW9NuS|!wX1}hYp-Lt7F!G9 zsdg&e&+$S%Dcv8b=L{07Z&a#V1voZ*uhoJ}z=&gQMcD1q+|t~7Fhg%M!mNm;Hj2oj z3LKiG_a?=OiJ#Kwz+3qh+%in)%krQzxrs71d ztWC#%n=zQc_ANU8pHnXwKymX!&Mp(AFza?S0AMkp1mK|5L zB4-j2!+MzvFJo8wI`u8*cDPl|MPRN=0x_JEfqnfhuW8SCSeJa~te%$38#g}85rf7K zbEJ&rhGAfioA=SAAuq$>@RYqwQw zB5_+xMbUqv=8E_}$%Bb;Eir1u1uf>IJQ1I!1R{1I63C-TIJPsVU>~@+JX%bQ1xjy_ zOnDHRF?Gn%IWp6esl(@x71NJ3y2vu4`&{OEHQ+Uy^(H&VM`j%36F~y4HbC9A$C?B% z0P@+D1&cK>qz){st{?%0wEfK7>e>dI0q+0p(|J0_)R-k!hh&}kwQOc1TbN(kTt@&7 zRtBCeWS6p$XMOZ+GtVYOVL8L&==2YpXDh1<*>xBl7`B$pXL4)7asx7TA^M3y1h2;Q zXK7|3zq-0Kc95Rx4~I{OkYk%(&u$>=Mh^r4E1AXYa&~27Y}h%jj%GGDDBp-bD}X4< z*5Su-07ocWhZbAP%w?C>#|}|q68$cFDqzaBvBNYu{>Am&?d;fS@I1S5b9L=HphmRn z*4Po)|0iS-3Sq8LT-3Z9bAP8#9ql5|j&MkLS?Tuod|BU92a&Sctdt}rD=E*V>+6*I zi&@TF%p-Q-VUv{M9`DvfMGfi|jz*(8bm#hj&|xSpg)kc%S%E;@p>iEnCGg*HmNo@- zQt})=SQ7Q}oGrF%Uzj_n)4APmrPQ%`P7%~<>YDfUHj*;1qJl*K8ZuD|u(HT>G%hG{ zN`-86Mjg~lKqv5=F*gsFSxRb0K)Ny%B+9i2no*gdI z>QHEo0ZU8@jHOfhjWO#*0x_|jjAgB}0E)vcQp^(Piu!tSiMUeA=$lWF_r0jb+KruN z5gtmdyh;!>=}sE_O>N4ob-CtGrshe0Ezo(;bSI z`@y#$eo22erA`BsP;GwZ&^%|2e_H?&-27?^;?ZkG1K7_FGgmre=mbVD9y{A9K2+m; zh>}a#TiC0_fS=v>Ppi=mbH;L7tg5>|KvEx(Pmsa< z?4Zc1!6KK3GIJlDv1bg}K0cM@u$gWl3_WZ?0TlS-rV} zBz$<>Ns-HE*4LroEkGBBdbyZg$*z(58a(bZ12>W5zLHs{wC`exdSkh4kNEl;4nxac+GkC;Ou`xadP~#K3ti|dKB?3YuBPCpCD$-S~>+K zq3l=Uu^Ln0$bk|`>xcwO7(?V|mx{1{?Afk!C*$5QQT?dk~Y2 z1w)+z!(HKR27o7E2}wu_cPqx*Ur-Kimif@LJB(g;`olprWWFA#6>{OG)gUZgN)aNO zN^(=uWFc}&XD~?{H6jGbNZ>?FTgo76Gdt3_#DGe+ICSQn{#?w7SO$p0l;>;ifyWQP zG;CQE+kE?>5NKcL4qrXHp=7X=obACGCv0+Fi5m#SfA(P@IBzQ@1?IcPg^*OGLqIKa zEjkT#P!VOzW+P%wa(ylrJG0s1i5(T@cXpJB(-+5}6FYG5NTiEo_;QX5X-or1*XXuz zDYs_77Vg9qb)?hi1qINy{Wko@?8_OTILlt(COyzh4a&<*CYQ;$!D7N=La>KyV~wy?8BggH-A_sKMq!|!p7E~>BLFxEUT}jIO2A?X<9h07 zcY-K9gCAFF<@(3Gkz~??r%&=wZ}MoW%n8D`<^r?3%l%()gGRoi$D?AkjN?VYZJ484 z&|em2We>?h7 z5Z&K`hhq;=khL_xT{DgBfnRlO1T-pr#zah>hvypWqY5pj-07rB! zRFz029I!$6(V2X}D)V)V%#i0cBh{{!k2N0|%62ZE(gbNu*)V-WGuSo2bLm zE(wxMCN&BLPC6--u|wjC^Du~+f~gX$my61j<8-w1Qa z*tT^yMcC^N8t6`{apZ*Cu0}s>py_hSu+0+b z)B|MBposFGq*t(OaL?8^6i!O&2xKx8b2{5wTQ~4pba$Q!av(xi1}lNX?lpBdPTz2= z1u9k0$%8Eaf4qvXLBVxi(ARXKq#w)?28U_fS*GH zk36S!Su>B(EXv*KfQH;(=u>0lKIbM-&yJnljB*EQMJ3 z77Ocs(k$;k&))Q~M(x?*v*;J;bNVxN&p9=ZK9}Sj|2zQ^*M1oZAzeMea0{unUw0JK9u3mB`iW&kU-2Ci zc7`qOP{%OfkE2trIQYT59lLBWc`g?Zg{(k81(bb2- zpzYE+284}9(d&ofm7&2E2NT!J}g-oV~x`}h!pTx6q`iNo*3MA zKUKs&5P0ISGoNsOy$|U_-25PpmBcZ|bYP3|W zL0h8oI$oE!@aW8#VSbc8M$_HDl~M=jhpvbgkqi77^Ve55H$X0EzCh$c-I;QDlbN4i z-CWryNa7VV12BGvrhK%yx{*O&qxo!>>PGras?^-A!fKuZVkj*+06)$6{L<>?LgD)I zdf|HZmiDF`B%^7brss2Ol!!L${!xF>Wt%Jmk_IJ)$e&V@c$h$ThLTO zC#*$>OC$=?1f7*D=r9<5iMnTUVk{DbkQ&F|fn>x(7fpYTV|yR2uddwmwyt{*f)GU~ zBATlI!;kN=X9)cq89DR|K+$`}FX+G^;)#cuBr13=Q#DCsqaQup#Q;BkqRW%;;{%=W zi&aX^`_feul8C~EG2k@nUseau70g5<(}o$9q8W7n*F`eQXgucibdfSRIu4qk88}Q_ zG@{~dEtAht*q#dIvWuHbnKdvpG!{X9-5k2O^}83HZ+4T-J3pljUs`_yoF zy-*f!q!6yA76b|2-C$POK4mWK7(q8%Tv@~n6Z;H?i{K~mSwVM+z)&dHN&IQuCD&6s z7N{TjrOd|F)wN{^hpU;*C6XS8(SnBgJ-!4h@(olLnopiWyl-V4E%P8AI+Pa7x{;rk zSC}yOGu- z+6^;OfVu3-{MxPj24pa!e<5pr?Su3F3?&Vq_W%MUD1*`BG>M5&4@dYmP%EK%2F%|E zwL9QAkC=D3E&PZ%9$R+9ZcCj__>5);vuY$1+=eUI%Q-q>rASW=^&3#LsrxYTSpm-d zMxQ#@IeOi+$yqC+We7Ppxocjw7I+Wvl@QMf0K>|4E-Z zWjq;JqN6v)k5dPd9i(!j;Spj|sP>W$B;o>}v&xgi)u!euJ0H8d3{QQ#rO4yfwMNgtn2HYx@KUI*nNo#vy-B)SQV|sj*cz zv>;^CEPa&CKy0&gpMa=JT&G*5dR3jcVJ}ncl2&M6*sc76A;A+CZC^Nvp0~OY2RV}b z?r);8SlE%c`}MEEDQqcKdk?WGRP434c%LIP_G+~5iBtLZ7I@qQoalq{W7j7UOc|h# z10`W0bCdr&b5@;}ujwO1=Y1bt=Xa+!XdD_#8;&R^-7_#~4vB-ESXG1a6QWMayAQvI z_!7xeI-1bt-m0nnxPoCswz|bRIhxSb zGzfHv`<`}7{?{P4P0OTr)Un`EG=?qbvqy-KB#G&yVS>-(nHVNlrmjgd&&4MUng>hZ zV1jNT4QB)@95|6bV-gQ!t3ZaCEXsG+-bF>TSE<_eZfRB{d$fDHJJjeX?7U0&m;2Ol zFlSgltp{`MD!gr#n!t{#Mzc?*PU;Jf${F3LlueT@J%QMdNDyqebRRwR$|g4tU-UiT z0LzPBKtAPzl;Zu@JR|5cAzVqlP)+L48ZQ zSciK<9gbJ5W?{;~Yl&P|TFo9CnW^4^&H{&B*RbGUqKolH7cq3kSI^1GxmUz zeI59J^e5dVsORPvBupNkUtP|lDi9nbZYm*yy?zU2e9MJk1Vyl+ZBk_$b?+qY9@Xe$ zVI6_&2g#I4XtDFo=mK%f{ANm>N_^|ACnM(_t2joa>QIfBi*$e zI-X|>x%`c{3X7|&i{QxcuVvReJG;Q_e_@Zo3%PaT=A=iSS1;}{5Ot688EBUm)%iU} z&gB+z=oUlm*wKQu|3VR^mYv1!&#SZKQqE_P6qV4U6XlXi*~QHKt%4Z|7^wtv;RcmG zE`*Q!E+8^%V|y>D=Z)M#kNDNiHTW7Wg{e@cb)hMfWl;S&);II*tJDsc>v|>h*L40H zBomn^`myiW*>H4-_Bc)0J+$$WV&=HtOnvj;|JU#I6`hOpN4P$f62U9lJMB+jm=0pM z(-$7%@B1)_{_RW7G>s3&eH!|+A5L?w{Pd^vPdMdK=14f^BE5T*(G`i#pCF+JUKzbp z$L_rj2bgW{nY<4hmv>gvJEK;e3Hu7Rg)QEG&v|#BJDdJgqXmNH;iC+^p~kh(+q@XQ zeU#yjq0awAd)inDsAE5|*ch|x$K=VIeebyYI?>tGh1+kq`#n_5dXzbtu;E9UQ6VRT z0p~CGp}d-lHqBAn_Z=J4>%MHCZz4y8_vfE^@@#O6>NMjHSrE#?B38ZO`&lrg2l~$NT?}7U_Q-th%ERi zhuz7eMfYS{kb-YG@HA2}ok2r1vOi;$iuS?1V&-=QGryH`7oQk2Flr-U5~8-<;^%`W zN=(p+4uq_KjHFZSUu#V|JmJ_qbzS3nMbRG$ivCi{eS04$dN>QTXut?1Id|cyP*Rny zc3A3B=E5G=OOG>Miyvi<@jdH!?EEWT1sL?YGsv?ih5~t^_N9mRiogFP`1>mYGUIX^<|fY?!A=txL3D`O=HpDH?+IPE^w#KJC7FgHh-4hjIUnqM zYtx?wYlwk(rt{86-y0M0XCYxb3bhj?Y{w{rgA+z|#@F~yQcv;UM0S4=Fu^zZTzlU9 zERwd6Zb;X;ceNzg8g!T7XF@}`+M`TQ2>BuY1~1N^z<>9!~oaKyJV3yxt>S$TV@ib`!lh{a?W~$2KBqDhby-KFDmT7~23c29N`gEKH`Z(nns zPQM9OdJL;JZmqx5r$&HugBvFyUnVldVCFHUDgRoK@g0MVz3#B~K9MUgfS*{|O=q)5 zk_}df`ne*D#SQyMnLDp^GPuwKc9CG|?P)!vR?EOjHYau|i@80#;;Ht)CU^UntR(q6j_mF!!S^QDv z5K-?%{i}n&H%iqO(Q2jyt+r!SuekcBf~#Llxon*Fcy~Z23{=CESP`~9a+jWlN-Rr0 zMvszU85}|mB>==rtsHw~zI$M=i2CP(sPCrS_xE+7N(QtTt~T7&r^1zW)t=Dx^WvIa z(SaPQ7Ehw6kbg&N$|oMDPW=Nx)UT&pwuO77sEEFZ$dV634uBC=ZMk248capjjq9Pr zhxIp{e~^mCD6^NR zu@?Jt-p11yf9gCkT@-^ZB2q-=B*#yXpRb###OmK3OJe^+kon8|Q=*uxx@z1Ap*P%* zo))3DbsuH+45);=hrv^=lpY{d&di_c7UF;G(7~VM4naRFm*Qdxx?iy=o)gCoX zn4<0Lci9W@mh%QvZla)@AsXOzhg1Qe?A(yRYr5Yaq0KX zyE}LICH^sQ@7%d@>4$x1Wa{iJzs5i2_3SKOXFk|FSJ$KsgrU8M)12*#2mJ5DtwG+! z>#wLu{olpORIfi_@% 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 86dcd5613cea..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AcceleratorConfig.php +++ /dev/null @@ -1,147 +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 = ''; - - /** - * 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). - * } - */ - 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; - } - -} - 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 8428bcbd9742..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AddonsConfig.php +++ /dev/null @@ -1,481 +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; - - /** - * 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. - * } - */ - 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; - } - -} - 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 8ec87cf23014..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Autopilot.php +++ /dev/null @@ -1,67 +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; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Enable 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; - } - -} - 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 6d08ae685991..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutoprovisioningNodePoolDefaults.php +++ /dev/null @@ -1,472 +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; - /** - * 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) - * To unset the min cpu platform field pass "automatic" - * as field value. - * - * Generated from protobuf field string min_cpu_platform = 5; - */ - 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. - * - * Generated from protobuf field string image_type = 10; - */ - protected $image_type = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[]|\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 - * 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) - * 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. - * } - */ - 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 string[]|\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; - } - - /** - * 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) - * To unset the min cpu platform field pass "automatic" - * as field value. - * - * Generated from protobuf field string min_cpu_platform = 5; - * @return string - */ - public function getMinCpuPlatform() - { - return $this->min_cpu_platform; - } - - /** - * 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) - * To unset the min cpu platform field pass "automatic" - * as field value. - * - * Generated from protobuf field string min_cpu_platform = 5; - * @param string $var - * @return $this - */ - public function setMinCpuPlatform($var) - { - 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. - * - * 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. - * - * 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; - } - -} - 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 59bff411d440..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization.php +++ /dev/null @@ -1,71 +0,0 @@ -google.container.v1.BinaryAuthorization - */ -class BinaryAuthorization extends \Google\Protobuf\Internal\Message -{ - /** - * Enable Binary Authorization for this cluster. If enabled, all container - * images will be validated by Binary Authorization. - * - * 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 Binary Authorization for this cluster. If enabled, all container - * images will be validated by Binary Authorization. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Enable Binary Authorization for this cluster. If enabled, all container - * images will be validated by Binary Authorization. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Enable Binary Authorization for this cluster. If enabled, all container - * images will be validated by Binary Authorization. - * - * 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/CancelOperationRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CancelOperationRequest.php deleted file mode 100644 index 6ad754e56dff..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CancelOperationRequest.php +++ /dev/null @@ -1,212 +0,0 @@ -google.container.v1.CancelOperationRequest - */ -class CancelOperationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * 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 = ''; - - /** - * 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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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/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/CloudRunConfig_LoadBalancerType.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CloudRunConfig_LoadBalancerType.php deleted file mode 100644 index 2ae407869c87..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CloudRunConfig_LoadBalancerType.php +++ /dev/null @@ -1,16 +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. - * - * 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; - /** - * Notification configuration of the cluster. - * - * Generated from protobuf field .google.container.v1.NotificationConfig notification_config = 49; - */ - protected $notification_config = null; - /** - * Configuration of Confidential Nodes - * - * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 50; - */ - protected $confidential_nodes = 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; - - /** - * 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 \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 string[]|\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. - * @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\NotificationConfig $notification_config - * Notification configuration of the cluster. - * @type \Google\Cloud\Container\V1\ConfidentialNodes $confidential_nodes - * Configuration of Confidential Nodes - * @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 string[]|\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 \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. - * } - */ - 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 \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 string[]|\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. - * - * 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. - * - * 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; - } - - /** - * 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 - * - * 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 - * - * 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; - } - - /** - * [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 string[]|\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 \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; - } - -} - 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 2a86e048847b..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 \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 string[]|\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 \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 string[]|\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/ClusterAutoscaling_AutoscalingProfile.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling_AutoscalingProfile.php deleted file mode 100644 index aef8e805da99..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling_AutoscalingProfile.php +++ /dev/null @@ -1,16 +0,0 @@ -_simpleRequest('/google.container.v1.ClusterManager/ListClusters', - $argument, - ['\Google\Cloud\Container\V1\ListClustersResponse', 'decode'], - $metadata, $options); - } - - /** - * Gets the details of a specific cluster. - * @param \Google\Cloud\Container\V1\GetClusterRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetCluster(\Google\Cloud\Container\V1\GetClusterRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.container.v1.ClusterManager/GetCluster', - $argument, - ['\Google\Cloud\Container\V1\Cluster', 'decode'], - $metadata, $options); - } - - /** - * 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. - * @param \Google\Cloud\Container\V1\CreateClusterRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function CreateCluster(\Google\Cloud\Container\V1\CreateClusterRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.container.v1.ClusterManager/CreateCluster', - $argument, - ['\Google\Cloud\Container\V1\Operation', 'decode'], - $metadata, $options); - } - - /** - * Updates the settings of a specific cluster. - * @param \Google\Cloud\Container\V1\UpdateClusterRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateCluster(\Google\Cloud\Container\V1\UpdateClusterRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.container.v1.ClusterManager/UpdateCluster', - $argument, - ['\Google\Cloud\Container\V1\Operation', 'decode'], - $metadata, $options); - } - - /** - * Updates the version and/or image type for the specified node pool. - * @param \Google\Cloud\Container\V1\UpdateNodePoolRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateNodePool(\Google\Cloud\Container\V1\UpdateNodePoolRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.container.v1.ClusterManager/UpdateNodePool', - $argument, - ['\Google\Cloud\Container\V1\Operation', 'decode'], - $metadata, $options); - } - - /** - * Sets the autoscaling settings for the specified node pool. - * @param \Google\Cloud\Container\V1\SetNodePoolAutoscalingRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function SetNodePoolAutoscaling(\Google\Cloud\Container\V1\SetNodePoolAutoscalingRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.container.v1.ClusterManager/SetNodePoolAutoscaling', - $argument, - ['\Google\Cloud\Container\V1\Operation', 'decode'], - $metadata, $options); - } - - /** - * Sets the logging service for a specific cluster. - * @param \Google\Cloud\Container\V1\SetLoggingServiceRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function SetLoggingService(\Google\Cloud\Container\V1\SetLoggingServiceRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.container.v1.ClusterManager/SetLoggingService', - $argument, - ['\Google\Cloud\Container\V1\Operation', 'decode'], - $metadata, $options); - } - - /** - * Sets the monitoring service for a specific cluster. - * @param \Google\Cloud\Container\V1\SetMonitoringServiceRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function SetMonitoringService(\Google\Cloud\Container\V1\SetMonitoringServiceRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.container.v1.ClusterManager/SetMonitoringService', - $argument, - ['\Google\Cloud\Container\V1\Operation', 'decode'], - $metadata, $options); - } - - /** - * Sets the addons for a specific cluster. - * @param \Google\Cloud\Container\V1\SetAddonsConfigRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function SetAddonsConfig(\Google\Cloud\Container\V1\SetAddonsConfigRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.container.v1.ClusterManager/SetAddonsConfig', - $argument, - ['\Google\Cloud\Container\V1\Operation', 'decode'], - $metadata, $options); - } - - /** - * 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. - * @param \Google\Cloud\Container\V1\SetLocationsRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function SetLocations(\Google\Cloud\Container\V1\SetLocationsRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.container.v1.ClusterManager/SetLocations', - $argument, - ['\Google\Cloud\Container\V1\Operation', 'decode'], - $metadata, $options); - } - - /** - * Updates the master for a specific cluster. - * @param \Google\Cloud\Container\V1\UpdateMasterRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateMaster(\Google\Cloud\Container\V1\UpdateMasterRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.container.v1.ClusterManager/UpdateMaster', - $argument, - ['\Google\Cloud\Container\V1\Operation', 'decode'], - $metadata, $options); - } - - /** - * Sets master auth materials. Currently supports changing the admin password - * or a specific cluster, either via password generation or explicitly setting - * the password. - * @param \Google\Cloud\Container\V1\SetMasterAuthRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function SetMasterAuth(\Google\Cloud\Container\V1\SetMasterAuthRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.container.v1.ClusterManager/SetMasterAuth', - $argument, - ['\Google\Cloud\Container\V1\Operation', 'decode'], - $metadata, $options); - } - - /** - * 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. - * @param \Google\Cloud\Container\V1\DeleteClusterRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteCluster(\Google\Cloud\Container\V1\DeleteClusterRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.container.v1.ClusterManager/DeleteCluster', - $argument, - ['\Google\Cloud\Container\V1\Operation', 'decode'], - $metadata, $options); - } - - /** - * Lists all operations in a project in a specific zone or all zones. - * @param \Google\Cloud\Container\V1\ListOperationsRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ListOperations(\Google\Cloud\Container\V1\ListOperationsRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.container.v1.ClusterManager/ListOperations', - $argument, - ['\Google\Cloud\Container\V1\ListOperationsResponse', 'decode'], - $metadata, $options); - } - - /** - * Gets the specified operation. - * @param \Google\Cloud\Container\V1\GetOperationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetOperation(\Google\Cloud\Container\V1\GetOperationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.container.v1.ClusterManager/GetOperation', - $argument, - ['\Google\Cloud\Container\V1\Operation', 'decode'], - $metadata, $options); - } - - /** - * Cancels the specified operation. - * @param \Google\Cloud\Container\V1\CancelOperationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function CancelOperation(\Google\Cloud\Container\V1\CancelOperationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.container.v1.ClusterManager/CancelOperation', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Returns configuration info about the Google Kubernetes Engine service. - * @param \Google\Cloud\Container\V1\GetServerConfigRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetServerConfig(\Google\Cloud\Container\V1\GetServerConfigRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.container.v1.ClusterManager/GetServerConfig', - $argument, - ['\Google\Cloud\Container\V1\ServerConfig', 'decode'], - $metadata, $options); - } - - /** - * Gets the public component of the cluster signing keys in - * JSON Web Key format. - * This API is not yet intended for general use, and is not available for all - * clusters. - * @param \Google\Cloud\Container\V1\GetJSONWebKeysRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetJSONWebKeys(\Google\Cloud\Container\V1\GetJSONWebKeysRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.container.v1.ClusterManager/GetJSONWebKeys', - $argument, - ['\Google\Cloud\Container\V1\GetJSONWebKeysResponse', 'decode'], - $metadata, $options); - } - - /** - * Lists the node pools for a cluster. - * @param \Google\Cloud\Container\V1\ListNodePoolsRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ListNodePools(\Google\Cloud\Container\V1\ListNodePoolsRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.container.v1.ClusterManager/ListNodePools', - $argument, - ['\Google\Cloud\Container\V1\ListNodePoolsResponse', 'decode'], - $metadata, $options); - } - - /** - * Retrieves the requested node pool. - * @param \Google\Cloud\Container\V1\GetNodePoolRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetNodePool(\Google\Cloud\Container\V1\GetNodePoolRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.container.v1.ClusterManager/GetNodePool', - $argument, - ['\Google\Cloud\Container\V1\NodePool', 'decode'], - $metadata, $options); - } - - /** - * Creates a node pool for a cluster. - * @param \Google\Cloud\Container\V1\CreateNodePoolRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function CreateNodePool(\Google\Cloud\Container\V1\CreateNodePoolRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.container.v1.ClusterManager/CreateNodePool', - $argument, - ['\Google\Cloud\Container\V1\Operation', 'decode'], - $metadata, $options); - } - - /** - * Deletes a node pool from a cluster. - * @param \Google\Cloud\Container\V1\DeleteNodePoolRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteNodePool(\Google\Cloud\Container\V1\DeleteNodePoolRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.container.v1.ClusterManager/DeleteNodePool', - $argument, - ['\Google\Cloud\Container\V1\Operation', 'decode'], - $metadata, $options); - } - - /** - * Rolls back a previously Aborted or Failed NodePool upgrade. - * This makes no changes if the last upgrade successfully completed. - * @param \Google\Cloud\Container\V1\RollbackNodePoolUpgradeRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function RollbackNodePoolUpgrade(\Google\Cloud\Container\V1\RollbackNodePoolUpgradeRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.container.v1.ClusterManager/RollbackNodePoolUpgrade', - $argument, - ['\Google\Cloud\Container\V1\Operation', 'decode'], - $metadata, $options); - } - - /** - * Sets the NodeManagement options for a node pool. - * @param \Google\Cloud\Container\V1\SetNodePoolManagementRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function SetNodePoolManagement(\Google\Cloud\Container\V1\SetNodePoolManagementRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.container.v1.ClusterManager/SetNodePoolManagement', - $argument, - ['\Google\Cloud\Container\V1\Operation', 'decode'], - $metadata, $options); - } - - /** - * Sets labels on a cluster. - * @param \Google\Cloud\Container\V1\SetLabelsRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function SetLabels(\Google\Cloud\Container\V1\SetLabelsRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.container.v1.ClusterManager/SetLabels', - $argument, - ['\Google\Cloud\Container\V1\Operation', 'decode'], - $metadata, $options); - } - - /** - * Enables or disables the ABAC authorization mechanism on a cluster. - * @param \Google\Cloud\Container\V1\SetLegacyAbacRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function SetLegacyAbac(\Google\Cloud\Container\V1\SetLegacyAbacRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.container.v1.ClusterManager/SetLegacyAbac', - $argument, - ['\Google\Cloud\Container\V1\Operation', 'decode'], - $metadata, $options); - } - - /** - * Starts master IP rotation. - * @param \Google\Cloud\Container\V1\StartIPRotationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function StartIPRotation(\Google\Cloud\Container\V1\StartIPRotationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.container.v1.ClusterManager/StartIPRotation', - $argument, - ['\Google\Cloud\Container\V1\Operation', 'decode'], - $metadata, $options); - } - - /** - * Completes master IP rotation. - * @param \Google\Cloud\Container\V1\CompleteIPRotationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function CompleteIPRotation(\Google\Cloud\Container\V1\CompleteIPRotationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.container.v1.ClusterManager/CompleteIPRotation', - $argument, - ['\Google\Cloud\Container\V1\Operation', 'decode'], - $metadata, $options); - } - - /** - * 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]. - * @param \Google\Cloud\Container\V1\SetNodePoolSizeRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function SetNodePoolSize(\Google\Cloud\Container\V1\SetNodePoolSizeRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.container.v1.ClusterManager/SetNodePoolSize', - $argument, - ['\Google\Cloud\Container\V1\Operation', 'decode'], - $metadata, $options); - } - - /** - * Enables or disables Network Policy for a cluster. - * @param \Google\Cloud\Container\V1\SetNetworkPolicyRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function SetNetworkPolicy(\Google\Cloud\Container\V1\SetNetworkPolicyRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.container.v1.ClusterManager/SetNetworkPolicy', - $argument, - ['\Google\Cloud\Container\V1\Operation', 'decode'], - $metadata, $options); - } - - /** - * Sets the maintenance policy for a cluster. - * @param \Google\Cloud\Container\V1\SetMaintenancePolicyRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function SetMaintenancePolicy(\Google\Cloud\Container\V1\SetMaintenancePolicyRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.container.v1.ClusterManager/SetMaintenancePolicy', - $argument, - ['\Google\Cloud\Container\V1\Operation', 'decode'], - $metadata, $options); - } - - /** - * Lists subnetworks that are usable for creating clusters in a project. - * @param \Google\Cloud\Container\V1\ListUsableSubnetworksRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ListUsableSubnetworks(\Google\Cloud\Container\V1\ListUsableSubnetworksRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.container.v1.ClusterManager/ListUsableSubnetworks', - $argument, - ['\Google\Cloud\Container\V1\ListUsableSubnetworksResponse', 'decode'], - $metadata, $options); - } - -} 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 40b1a0805494..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterUpdate.php +++ /dev/null @@ -1,1533 +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; - /** - * 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; - /** - * 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; - /** - * 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; - - /** - * 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\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 string[]|\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\ServiceExternalIPsConfig $desired_service_external_ips_config - * ServiceExternalIPsConfig specifies the config for the use of Services with - * ExternalIPs field. - * @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 - * } - */ - 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; - } - - /** - * 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 string[]|\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; - } - - /** - * 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; - } - - /** - * 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; - } - -} - 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 cbe3cc863609..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Cluster_Status.php +++ /dev/null @@ -1,16 +0,0 @@ -google.container.v1.CompleteIPRotationRequest - */ -class CompleteIPRotationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * 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 id) of the cluster to complete IP - * rotation. 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://developers.google.com/console/help/new/#projectnumber). - * 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 id) 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://developers.google.com/console/help/new/#projectnumber). - * 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://developers.google.com/console/help/new/#projectnumber). - * 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 id) 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 id) 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/ConfidentialNodes.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfidentialNodes.php deleted file mode 100644 index 0f41df525f53..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfidentialNodes.php +++ /dev/null @@ -1,72 +0,0 @@ -google.container.v1.ConfidentialNodes - */ -class ConfidentialNodes extends \Google\Protobuf\Internal\Message -{ - /** - * Whether Confidential Nodes feature is enabled for 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 Confidential Nodes feature is enabled for all nodes in this - * cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether Confidential Nodes feature is enabled for all nodes in this - * cluster. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether Confidential Nodes feature is enabled for 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/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/CreateClusterRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateClusterRequest.php deleted file mode 100644 index b656d60f6776..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateClusterRequest.php +++ /dev/null @@ -1,217 +0,0 @@ -google.container.v1.CreateClusterRequest - */ -class CreateClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * 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 = ''; - - /** - * 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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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 4e03543040d8..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateNodePoolRequest.php +++ /dev/null @@ -1,260 +0,0 @@ -google.container.v1.CreateNodePoolRequest - */ -class CreateNodePoolRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * 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 id) where the node pool will be - * created. Specified in the format - * `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string parent = 6; - */ - protected $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://developers.google.com/console/help/new/#projectnumber). - * 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 id) 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://developers.google.com/console/help/new/#projectnumber). - * 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://developers.google.com/console/help/new/#projectnumber). - * 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 id) 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 id) 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 4ca3b1299203..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/DNSScope.php +++ /dev/null @@ -1,57 +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 VPC. - * - * Generated from protobuf enum VPC_SCOPE = 2; - */ - const VPC_SCOPE = 2; - - private static $valueToName = [ - self::DNS_SCOPE_UNSPECIFIED => 'DNS_SCOPE_UNSPECIFIED', - 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 bd2c1ad31584..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/Provider.php +++ /dev/null @@ -1,64 +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; - - private static $valueToName = [ - self::PROVIDER_UNSPECIFIED => 'PROVIDER_UNSPECIFIED', - self::PLATFORM_DEFAULT => 'PLATFORM_DEFAULT', - self::CLOUD_DNS => 'CLOUD_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/DNSConfig_DNSScope.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig_DNSScope.php deleted file mode 100644 index 3140b72e3cad..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig_DNSScope.php +++ /dev/null @@ -1,16 +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 dfd0d6f2b0ad..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption.php +++ /dev/null @@ -1,105 +0,0 @@ -google.container.v1.DatabaseEncryption - */ -class DatabaseEncryption extends \Google\Protobuf\Internal\Message -{ - /** - * Denotes the state of etcd encryption. - * - * Generated from protobuf field .google.container.v1.DatabaseEncryption.State state = 2; - */ - protected $state = 0; - /** - * 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 = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $state - * Denotes the state of etcd encryption. - * @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 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Denotes the state of etcd encryption. - * - * Generated from protobuf field .google.container.v1.DatabaseEncryption.State state = 2; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Denotes the 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; - } - - /** - * 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; - } - -} - 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/DatabaseEncryption_State.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption_State.php deleted file mode 100644 index 95a523510c52..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption_State.php +++ /dev/null @@ -1,16 +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 c907704ce82c..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DeleteClusterRequest.php +++ /dev/null @@ -1,212 +0,0 @@ -google.container.v1.DeleteClusterRequest - */ -class DeleteClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * 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 = ''; - - /** - * 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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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 90a7a12d2044..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DeleteNodePoolRequest.php +++ /dev/null @@ -1,259 +0,0 @@ -google.container.v1.DeleteNodePoolRequest - */ -class DeleteNodePoolRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * 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 = ''; - - /** - * 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://developers.google.com/console/help/new/#projectnumber). - * 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://developers.google.com/console/help/new/#projectnumber). - * 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://developers.google.com/console/help/new/#projectnumber). - * 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/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/GetClusterRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetClusterRequest.php deleted file mode 100644 index 6b0c31c6086a..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetClusterRequest.php +++ /dev/null @@ -1,212 +0,0 @@ -google.container.v1.GetClusterRequest - */ -class GetClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * 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 = ''; - - /** - * 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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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 c393d349fa0f..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 id) 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 id) 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 id) 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 id) 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 9f1197fe0654..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 \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 \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 12f33f359dcc..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetNodePoolRequest.php +++ /dev/null @@ -1,259 +0,0 @@ -google.container.v1.GetNodePoolRequest - */ -class GetNodePoolRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * 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 = ''; - - /** - * 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://developers.google.com/console/help/new/#projectnumber). - * 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://developers.google.com/console/help/new/#projectnumber). - * 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://developers.google.com/console/help/new/#projectnumber). - * 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 4bb82bcd263b..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 string[]|\Google\Protobuf\Internal\RepeatedField $response_types_supported - * Supported response types. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $subject_types_supported - * Supported subject types. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $id_token_signing_alg_values_supported - * supported ID Token signing Algorithms. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $claims_supported - * Supported claims. - * @type string[]|\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 string[]|\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 string[]|\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 string[]|\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 string[]|\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 string[]|\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 8658df66ee78..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOperationRequest.php +++ /dev/null @@ -1,212 +0,0 @@ -google.container.v1.GetOperationRequest - */ -class GetOperationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * 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 = ''; - - /** - * 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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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 e93f4909128b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetServerConfigRequest.php +++ /dev/null @@ -1,169 +0,0 @@ -google.container.v1.GetServerConfigRequest - */ -class GetServerConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * 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 = ''; - - /** - * 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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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/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 2400883ed3ba..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPAllocationPolicy.php +++ /dev/null @@ -1,722 +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; - - /** - * 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 - * } - */ - 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; - } - -} - 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/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 b1f7a7959eb1..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig.php +++ /dev/null @@ -1,111 +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.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; - - /** - * 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.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 - * } - */ - 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.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.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; - } - -} - 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 6ca351855fa9..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListClustersRequest.php +++ /dev/null @@ -1,173 +0,0 @@ -google.container.v1.ListClustersRequest - */ -class ListClustersRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * 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 = ''; - - /** - * 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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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 f75b4edcd3fb..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 \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 string[]|\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 \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 string[]|\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 1df5e92e7d05..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsRequest.php +++ /dev/null @@ -1,212 +0,0 @@ -google.container.v1.ListNodePoolsRequest - */ -class ListNodePoolsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * 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 id) where the node pools will be - * listed. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string parent = 5; - */ - protected $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://developers.google.com/console/help/new/#projectnumber). - * 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 id) 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://developers.google.com/console/help/new/#projectnumber). - * 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://developers.google.com/console/help/new/#projectnumber). - * 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 id) 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 id) 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 039dcdec3974..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 \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 \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 24be1e94ea95..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsRequest.php +++ /dev/null @@ -1,173 +0,0 @@ -google.container.v1.ListOperationsRequest - */ -class ListOperationsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * 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 = ''; - - /** - * 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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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 5cca10be462b..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 \Google\Cloud\Container\V1\Operation[]|\Google\Protobuf\Internal\RepeatedField $operations - * A list of operations in the project in the specified zone. - * @type string[]|\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 \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 string[]|\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 9ced5051a36f..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 \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 \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/LoggingComponentConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig.php deleted file mode 100644 index d12b2cd5f774..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 int[]|\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 int[]|\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 c871b613b0ab..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig/Component.php +++ /dev/null @@ -1,64 +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; - - private static $valueToName = [ - self::COMPONENT_UNSPECIFIED => 'COMPONENT_UNSPECIFIED', - self::SYSTEM_COMPONENTS => 'SYSTEM_COMPONENTS', - self::WORKLOADS => 'WORKLOADS', - ]; - - 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/LoggingComponentConfig_Component.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig_Component.php deleted file mode 100644 index b88df03fdc78..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig_Component.php +++ /dev/null @@ -1,16 +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/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/MaintenanceExclusionOptions_Scope.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceExclusionOptions_Scope.php deleted file mode 100644 index 87f49f9906ac..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceExclusionOptions_Scope.php +++ /dev/null @@ -1,16 +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/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 87614f874f53..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig.php +++ /dev/null @@ -1,108 +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; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether or not master authorized networks is enabled. - * @type \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. - * } - */ - 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 \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; - } - -} - 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/MasterAuthorizedNetworksConfig_CidrBlock.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig_CidrBlock.php deleted file mode 100644 index 56c2e022b1bb..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig_CidrBlock.php +++ /dev/null @@ -1,16 +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 e6cf152955a7..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 int[]|\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 int[]|\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 3e2da0d3b50f..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringComponentConfig/Component.php +++ /dev/null @@ -1,57 +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; - - private static $valueToName = [ - self::COMPONENT_UNSPECIFIED => 'COMPONENT_UNSPECIFIED', - self::SYSTEM_COMPONENTS => 'SYSTEM_COMPONENTS', - ]; - - 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/MonitoringComponentConfig_Component.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringComponentConfig_Component.php deleted file mode 100644 index bfc9b245f289..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringComponentConfig_Component.php +++ /dev/null @@ -1,16 +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; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\MonitoringComponentConfig $component_config - * Monitoring components configuration - * } - */ - 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; - } - -} - 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 3da7dbbc6e34..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig.php +++ /dev/null @@ -1,425 +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; - - /** - * 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. - * } - */ - 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; - } - -} - 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/NetworkPolicy_Provider.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicy_Provider.php deleted file mode 100644 index 3397af56f700..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicy_Provider.php +++ /dev/null @@ -1,16 +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. - * - * 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; - - /** - * 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 string[]|\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. - * @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 string[]|\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 \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 \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. - * } - */ - 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 string[]|\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. - * - * 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. - * - * 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 string[]|\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 \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 \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; - } - -} - 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 19511210d3c4..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfigDefaults.php +++ /dev/null @@ -1,77 +0,0 @@ -google.container.v1.NodeConfigDefaults - */ -class NodeConfigDefaults extends \Google\Protobuf\Internal\Message -{ - /** - * GCFS (Google Container File System, a.k.a Riptide) options. - * - * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 1; - */ - protected $gcfs_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, a.k.a Riptide) options. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * GCFS (Google Container File System, a.k.a 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, a.k.a 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; - } - -} - 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 c418e69fef4c..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeKubeletConfig.php +++ /dev/null @@ -1,258 +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 = ''; - - /** - * 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. - * } - */ - 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; - } - -} - 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 82c039c3b381..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig.php +++ /dev/null @@ -1,219 +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 = ''; - - /** - * 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. - * } - */ - 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; - } - -} - 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 eff24dda77df..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool.php +++ /dev/null @@ -1,715 +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 the Kubernetes of this node. - * - * 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. - * - * 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; - - /** - * 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 string[]|\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 the Kubernetes of this node. - * @type string[]|\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. - * @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 \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. - * } - */ - 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 string[]|\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 the Kubernetes of this node. - * - * Generated from protobuf field string version = 101; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * The version of the Kubernetes of this node. - * - * 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. - * - * 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. - * - * Generated from protobuf field repeated string instance_group_urls = 102; - * @param string[]|\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 \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; - } - -} - 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/UpgradeSettings.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpgradeSettings.php deleted file mode 100644 index 14f513b4c9e6..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpgradeSettings.php +++ /dev/null @@ -1,133 +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; - - /** - * 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. - * } - */ - 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; - } - -} - -// 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/NodePoolAutoscaling.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling.php deleted file mode 100644 index 4858fd20e6d8..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling.php +++ /dev/null @@ -1,178 +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; - - /** - * 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. - * } - */ - 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; - } - -} - 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/NodePool_Status.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool_Status.php deleted file mode 100644 index 27aba771b66c..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool_Status.php +++ /dev/null @@ -1,16 +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/NodeTaint_Effect.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaint_Effect.php deleted file mode 100644 index 2b830a4e4953..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaint_Effect.php +++ /dev/null @@ -1,16 +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 a6dbd23bb0d2..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 int[]|\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 int[]|\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/NotificationConfig_EventType.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig_EventType.php deleted file mode 100644 index 2f5303b139ff..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig_EventType.php +++ /dev/null @@ -1,16 +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 URL for the resource. - * - * Generated from protobuf field string self_link = 6; - */ - protected $self_link = ''; - /** - * Server-defined URL for the target of the operation. - * - * 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 URL for the resource. - * @type string $target_link - * Server-defined URL for the target of the operation. - * @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 \Google\Cloud\Container\V1\StatusCondition[]|\Google\Protobuf\Internal\RepeatedField $cluster_conditions - * Which conditions caused the current cluster state. - * Deprecated. Use field error instead. - * @type \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 URL for the resource. - * - * Generated from protobuf field string self_link = 6; - * @return string - */ - public function getSelfLink() - { - return $this->self_link; - } - - /** - * Server-defined URL for the resource. - * - * 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 URL for the target of the operation. - * - * Generated from protobuf field string target_link = 7; - * @return string - */ - public function getTargetLink() - { - return $this->target_link; - } - - /** - * Server-defined URL for the target of the operation. - * - * 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 \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 \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 4992d7cf2186..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation/Type.php +++ /dev/null @@ -1,162 +0,0 @@ -google.container.v1.Operation.Type - */ -class Type -{ - /** - * Not set. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * Cluster create. - * - * Generated from protobuf enum CREATE_CLUSTER = 1; - */ - const CREATE_CLUSTER = 1; - /** - * Cluster delete. - * - * Generated from protobuf enum DELETE_CLUSTER = 2; - */ - const DELETE_CLUSTER = 2; - /** - * A master upgrade. - * - * Generated from protobuf enum UPGRADE_MASTER = 3; - */ - const UPGRADE_MASTER = 3; - /** - * A node upgrade. - * - * Generated from protobuf enum UPGRADE_NODES = 4; - */ - const UPGRADE_NODES = 4; - /** - * Cluster repair. - * - * Generated from protobuf enum REPAIR_CLUSTER = 5; - */ - const REPAIR_CLUSTER = 5; - /** - * Cluster update. - * - * Generated from protobuf enum UPDATE_CLUSTER = 6; - */ - const UPDATE_CLUSTER = 6; - /** - * Node pool create. - * - * Generated from protobuf enum CREATE_NODE_POOL = 7; - */ - const CREATE_NODE_POOL = 7; - /** - * Node pool delete. - * - * Generated from protobuf enum DELETE_NODE_POOL = 8; - */ - const DELETE_NODE_POOL = 8; - /** - * Set node pool management. - * - * Generated from protobuf enum SET_NODE_POOL_MANAGEMENT = 9; - */ - const SET_NODE_POOL_MANAGEMENT = 9; - /** - * Automatic node pool repair. - * - * Generated from protobuf enum AUTO_REPAIR_NODES = 10; - */ - const AUTO_REPAIR_NODES = 10; - /** - * Automatic node upgrade. - * - * Generated from protobuf enum AUTO_UPGRADE_NODES = 11; - */ - const AUTO_UPGRADE_NODES = 11; - /** - * Set labels. - * - * Generated from protobuf enum SET_LABELS = 12; - */ - const SET_LABELS = 12; - /** - * Set/generate master auth materials - * - * Generated from protobuf enum SET_MASTER_AUTH = 13; - */ - const SET_MASTER_AUTH = 13; - /** - * Set node pool size. - * - * Generated from protobuf enum SET_NODE_POOL_SIZE = 14; - */ - const SET_NODE_POOL_SIZE = 14; - /** - * Updates network policy for a cluster. - * - * Generated from protobuf enum SET_NETWORK_POLICY = 15; - */ - const SET_NETWORK_POLICY = 15; - /** - * Set the maintenance policy. - * - * Generated from protobuf enum SET_MAINTENANCE_POLICY = 16; - */ - const SET_MAINTENANCE_POLICY = 16; - - 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', - ]; - - 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 c85975e5c234..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 \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 \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 \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 \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/OperationProgress_Metric.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/OperationProgress_Metric.php deleted file mode 100644 index 44d2e8f7eda4..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/OperationProgress_Metric.php +++ /dev/null @@ -1,16 +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; - - /** - * 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. - * } - */ - 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; - } - -} - 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 fa537f67f7ed..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 priate 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/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/ReleaseChannel_Channel.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReleaseChannel_Channel.php deleted file mode 100644 index 05c29e35bc88..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReleaseChannel_Channel.php +++ /dev/null @@ -1,16 +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 "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 "googleapis.com/reservation-name" as - * the key and specify the name of your reservation as its value. - * @type string[]|\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 "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 "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 string[]|\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/ReservationAffinity_Type.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReservationAffinity_Type.php deleted file mode 100644 index 4cb70d614dcd..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReservationAffinity_Type.php +++ /dev/null @@ -1,16 +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/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/ResourceUsageExportConfig_BigQueryDestination.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig_BigQueryDestination.php deleted file mode 100644 index ecaf313dc630..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig_BigQueryDestination.php +++ /dev/null @@ -1,16 +0,0 @@ -google.container.v1.RollbackNodePoolUpgradeRequest - */ -class RollbackNodePoolUpgradeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * 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 = ''; - - /** - * 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://support.google.com/cloud/answer/6158840). - * 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/*`. - * } - */ - 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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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; - } - -} - 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/SandboxConfig_Type.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig_Type.php deleted file mode 100644 index 0c8118c38c7d..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig_Type.php +++ /dev/null @@ -1,16 +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 string[]|\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 string[]|\Google\Protobuf\Internal\RepeatedField $affected_supported_minors - * The GKE minor versions affected by this vulnerability. - * @type string[]|\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 string[]|\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 string[]|\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 string[]|\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/ServerConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig.php deleted file mode 100644 index 5f2146dfa811..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 string[]|\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 string[]|\Google\Protobuf\Internal\RepeatedField $valid_image_types - * List of valid image types. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $valid_master_versions - * List of valid master versions, in descending order. - * @type \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 string[]|\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 string[]|\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 string[]|\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 \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 89a1e3d4eee4..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 string[]|\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 string[]|\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/ServerConfig_ReleaseChannelConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig_ReleaseChannelConfig.php deleted file mode 100644 index 30cce6bc0673..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig_ReleaseChannelConfig.php +++ /dev/null @@ -1,16 +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 bc7021e92cf8..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetAddonsConfigRequest.php +++ /dev/null @@ -1,260 +0,0 @@ -google.container.v1.SetAddonsConfigRequest - */ -class SetAddonsConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * 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 = ''; - - /** - * 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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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 52b374b10a8d..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://developers.google.com/console/help/new/#projectnumber). - * 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 id) 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://developers.google.com/console/help/new/#projectnumber). - * 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 id) 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://developers.google.com/console/help/new/#projectnumber). - * 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://developers.google.com/console/help/new/#projectnumber). - * 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 id) 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 id) 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 848fa31ba4b6..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLegacyAbacRequest.php +++ /dev/null @@ -1,247 +0,0 @@ -google.container.v1.SetLegacyAbacRequest - */ -class SetLegacyAbacRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * 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 id) of the cluster to set legacy abac. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * 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://support.google.com/cloud/answer/6158840). - * 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 id) 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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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 id) 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 id) 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 aa4582476502..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLocationsRequest.php +++ /dev/null @@ -1,266 +0,0 @@ -google.container.v1.SetLocationsRequest - */ -class SetLocationsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * 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 = ''; - - /** - * 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://support.google.com/cloud/answer/6158840). - * 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[]|\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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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 string[]|\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 75cc6ea5da8d..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLoggingServiceRequest.php +++ /dev/null @@ -1,278 +0,0 @@ -google.container.v1.SetLoggingServiceRequest - */ -class SetLoggingServiceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * 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 = ''; - - /** - * 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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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 6d56e9199f67..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMaintenancePolicyRequest.php +++ /dev/null @@ -1,237 +0,0 @@ -google.container.v1.SetMaintenancePolicyRequest - */ -class SetMaintenancePolicyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * - * 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 id) of the cluster to set maintenance - * policy. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 5; - */ - protected $name = ''; - - /** - * 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://support.google.com/cloud/answer/6158840). - * @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 id) 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://support.google.com/cloud/answer/6158840). - * - * 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://support.google.com/cloud/answer/6158840). - * - * 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 id) 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 id) 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 a55d26a6374b..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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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/SetMasterAuthRequest_Action.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest_Action.php deleted file mode 100644 index f7baefe2dfd1..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest_Action.php +++ /dev/null @@ -1,16 +0,0 @@ -google.container.v1.SetMonitoringServiceRequest - */ -class SetMonitoringServiceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * 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 = ''; - - /** - * 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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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 be804b2d7d8c..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNetworkPolicyRequest.php +++ /dev/null @@ -1,256 +0,0 @@ -google.container.v1.SetNetworkPolicyRequest - */ -class SetNetworkPolicyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * 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 id) of the cluster to set networking - * policy. Specified in the format `projects/*/locations/*/clusters/*`. - * - * 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://developers.google.com/console/help/new/#projectnumber). - * 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 id) 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://developers.google.com/console/help/new/#projectnumber). - * 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://developers.google.com/console/help/new/#projectnumber). - * 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 id) 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 id) 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 d380679efe13..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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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 9f9244176c8f..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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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 b43b3baeda6b..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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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/StartIPRotationRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StartIPRotationRequest.php deleted file mode 100644 index 5534fc1c1e64..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StartIPRotationRequest.php +++ /dev/null @@ -1,247 +0,0 @@ -google.container.v1.StartIPRotationRequest - */ -class StartIPRotationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * 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 id) 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; - - /** - * 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://developers.google.com/console/help/new/#projectnumber). - * 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 id) 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://developers.google.com/console/help/new/#projectnumber). - * 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://developers.google.com/console/help/new/#projectnumber). - * 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 id) 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 id) 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/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/StatusCondition_Code.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatusCondition_Code.php deleted file mode 100644 index ad11e8fce072..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatusCondition_Code.php +++ /dev/null @@ -1,16 +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 58cb7246a7ba..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateClusterRequest.php +++ /dev/null @@ -1,256 +0,0 @@ -google.container.v1.UpdateClusterRequest - */ -class UpdateClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * 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 = ''; - - /** - * 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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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 9a1e80118674..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateMasterRequest.php +++ /dev/null @@ -1,274 +0,0 @@ -google.container.v1.UpdateMasterRequest - */ -class UpdateMasterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * 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 = ''; - - /** - * 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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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 b18a8d64879d..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateNodePoolRequest.php +++ /dev/null @@ -1,673 +0,0 @@ -google.container.v1.UpdateNodePoolRequest - */ -class UpdateNodePoolRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * 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. - * - * 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; - /** - * 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; - /** - * GCFS config. - * - * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 22; - */ - protected $gcfs_config = null; - /** - * Enable or disable gvnic on the node pool. - * - * Generated from protobuf field .google.container.v1.VirtualNIC gvnic = 29; - */ - protected $gvnic = 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://support.google.com/cloud/answer/6158840). - * 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. - * @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[]|\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\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\GcfsConfig $gcfs_config - * GCFS config. - * @type \Google\Cloud\Container\V1\VirtualNIC $gvnic - * Enable or disable gvnic on the node pool. - * } - */ - 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://support.google.com/cloud/answer/6158840). - * 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://support.google.com/cloud/answer/6158840). - * 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. - * - * 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. - * - * 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 string[]|\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; - } - - /** - * 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; - } - - /** - * 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; - } - - /** - * 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; - } - -} - 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 aef82f0bc453..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 \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 \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 f41ce8a08b03..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange/Status.php +++ /dev/null @@ -1,82 +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 a cluster for - * services. It cannot be used for other clusters. - * - * 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/UsableSubnetworkSecondaryRange_Status.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange_Status.php deleted file mode 100644 index 022be8f2fabb..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange_Status.php +++ /dev/null @@ -1,16 +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/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/WorkloadMetadataConfig_Mode.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadMetadataConfig_Mode.php deleted file mode 100644 index 87dc6378ac2e..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadMetadataConfig_Mode.php +++ /dev/null @@ -1,16 +0,0 @@ -cancelOperation(); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - */ -class ClusterManagerGapicClient -{ - use GapicClientTrait; - - /** - * The name of the service. - */ - const SERVICE_NAME = 'google.container.v1.ClusterManager'; - - /** - * The default address of the service. - */ - const SERVICE_ADDRESS = 'container.googleapis.com'; - - /** - * 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 function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'serviceAddress' => 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', - ], - ], - ]; - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $serviceAddress - * 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 - * $serviceAddress 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://support.google.com/cloud/answer/6158840). - * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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(); - } - - /** - * 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://developers.google.com/console/help/new/#projectnumber). - * 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 id) 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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(); - } - - /** - * 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://support.google.com/cloud/answer/6158840). - * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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://developers.google.com/console/help/new/#projectnumber). - * 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 id) 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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://support.google.com/cloud/answer/6158840). - * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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://developers.google.com/console/help/new/#projectnumber). - * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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://support.google.com/cloud/answer/6158840). - * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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. - * This API is not yet intended for general use, and is not available for all - * clusters. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $response = $clusterManagerClient->getJSONWebKeys(); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $parent - * The cluster (project, location, cluster id) 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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://developers.google.com/console/help/new/#projectnumber). - * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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://support.google.com/cloud/answer/6158840). - * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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://support.google.com/cloud/answer/6158840). - * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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://support.google.com/cloud/answer/6158840). - * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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://developers.google.com/console/help/new/#projectnumber). - * 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 id) 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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://support.google.com/cloud/answer/6158840). - * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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://support.google.com/cloud/answer/6158840). - * 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 RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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']; - } - - $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://support.google.com/cloud/answer/6158840). - * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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://developers.google.com/console/help/new/#projectnumber). - * 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 id) 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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://support.google.com/cloud/answer/6158840). - * 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 id) 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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://support.google.com/cloud/answer/6158840). - * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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://support.google.com/cloud/answer/6158840). - * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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://support.google.com/cloud/answer/6158840). - * @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 id) 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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://support.google.com/cloud/answer/6158840). - * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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://support.google.com/cloud/answer/6158840). - * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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://developers.google.com/console/help/new/#projectnumber). - * 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 id) 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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://support.google.com/cloud/answer/6158840). - * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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://support.google.com/cloud/answer/6158840). - * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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://support.google.com/cloud/answer/6158840). - * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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://developers.google.com/console/help/new/#projectnumber). - * 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 id) 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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://support.google.com/cloud/answer/6158840). - * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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://support.google.com/cloud/answer/6158840). - * 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 Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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. - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * 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 LinuxNodeConfig $linuxNodeConfig - * Parameters that can be configured on Linux nodes. - * @type NodeKubeletConfig $kubeletConfig - * Node kubelet configs. - * @type GcfsConfig $gcfsConfig - * GCFS config. - * @type VirtualNIC $gvnic - * Enable or disable gvnic on the node pool. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\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['linuxNodeConfig'])) { - $request->setLinuxNodeConfig($optionalArgs['linuxNodeConfig']); - } - - if (isset($optionalArgs['kubeletConfig'])) { - $request->setKubeletConfig($optionalArgs['kubeletConfig']); - } - - if (isset($optionalArgs['gcfsConfig'])) { - $request->setGcfsConfig($optionalArgs['gcfsConfig']); - } - - if (isset($optionalArgs['gvnic'])) { - $request->setGvnic($optionalArgs['gvnic']); - } - - $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 d1cd355afe98..000000000000 --- a/owl-bot-staging/Container/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,178 +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" - ] - }, - "CompleteIPRotation": { - "methods": [ - "completeIPRotation" - ] - }, - "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 fcc3eebbcfb3..000000000000 --- a/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_client_config.json +++ /dev/null @@ -1,205 +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" - }, - "CompleteIPRotation": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_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 8b581aa9910c..000000000000 --- a/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_descriptor_config.php +++ /dev/null @@ -1,18 +0,0 @@ - [ - 'google.container.v1.ClusterManager' => [ - 'ListUsableSubnetworks' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getSubnetworks', - ], - ], - ], - ], -]; 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 778f33e9be67..000000000000 --- a/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_rest_client_config.php +++ /dev/null @@ -1,1047 +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', - ], - ], - ], - ], - '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', - ], - ], - ], - ], - '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', - ], - ], - ], - ], - ], - ], -]; 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 d944f6458610..000000000000 --- a/owl-bot-staging/Container/v1/tests/Unit/V1/ClusterManagerClientTest.php +++ /dev/null @@ -1,2502 +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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - $client->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(); - $client = $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 { - $client->cancelOperation(); - // If the $client 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(); - $client = $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 = $client->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(); - $client = $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 { - $client->completeIPRotation(); - // If the $client 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(); - $client = $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 = $client->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(); - $client = $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 { - $client->createCluster($cluster); - // If the $client 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(); - $client = $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 = $client->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(); - $client = $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 { - $client->createNodePool($nodePool); - // If the $client 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(); - $client = $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 = $client->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(); - $client = $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 { - $client->deleteCluster(); - // If the $client 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(); - $client = $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 = $client->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(); - $client = $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 { - $client->deleteNodePool(); - // If the $client 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(); - $client = $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'; - $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); - $transport->addResponse($expectedResponse); - $response = $client->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(); - $client = $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 { - $client->getCluster(); - // If the $client 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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GetJSONWebKeysResponse(); - $transport->addResponse($expectedResponse); - $response = $client->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(); - $client = $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 { - $client->getJSONWebKeys(); - // If the $client 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(); - $client = $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; - $expectedResponse = new NodePool(); - $expectedResponse->setName($name2); - $expectedResponse->setInitialNodeCount($initialNodeCount); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setVersion($version); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setPodIpv4CidrSize($podIpv4CidrSize); - $transport->addResponse($expectedResponse); - $response = $client->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(); - $client = $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 { - $client->getNodePool(); - // If the $client 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(); - $client = $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 = $client->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(); - $client = $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 { - $client->getOperation(); - // If the $client 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(); - $client = $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 = $client->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(); - $client = $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 { - $client->getServerConfig(); - // If the $client 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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ListClustersResponse(); - $transport->addResponse($expectedResponse); - $response = $client->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(); - $client = $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 { - $client->listClusters(); - // If the $client 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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ListNodePoolsResponse(); - $transport->addResponse($expectedResponse); - $response = $client->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(); - $client = $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 { - $client->listNodePools(); - // If the $client 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(); - $client = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ListOperationsResponse(); - $transport->addResponse($expectedResponse); - $response = $client->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(); - $client = $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 { - $client->listOperations(); - // If the $client 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(); - $client = $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 = $client->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(); - $client = $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 { - $client->listUsableSubnetworks(); - // If the $client 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(); - $client = $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 = $client->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(); - $client = $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 { - $client->rollbackNodePoolUpgrade(); - // If the $client 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(); - $client = $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 = $client->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(); - $client = $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 { - $client->setAddonsConfig($addonsConfig); - // If the $client 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(); - $client = $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 = $client->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(); - $client = $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 { - $client->setLabels($resourceLabels, $labelFingerprint); - // If the $client 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(); - $client = $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 = $client->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(); - $client = $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 { - $client->setLegacyAbac($enabled); - // If the $client 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(); - $client = $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 = $client->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(); - $client = $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 { - $client->setLocations($locations); - // If the $client 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(); - $client = $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 = $client->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(); - $client = $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 { - $client->setLoggingService($loggingService); - // If the $client 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(); - $client = $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 = $client->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(); - $client = $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 { - $client->setMaintenancePolicy($projectId, $zone, $clusterId, $maintenancePolicy); - // If the $client 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(); - $client = $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 = $client->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(); - $client = $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 { - $client->setMasterAuth($action, $update); - // If the $client 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(); - $client = $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 = $client->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(); - $client = $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 { - $client->setMonitoringService($monitoringService); - // If the $client 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(); - $client = $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 = $client->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(); - $client = $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 { - $client->setNetworkPolicy($networkPolicy); - // If the $client 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(); - $client = $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 = $client->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(); - $client = $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 { - $client->setNodePoolAutoscaling($autoscaling); - // If the $client 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(); - $client = $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 = $client->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(); - $client = $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 { - $client->setNodePoolManagement($management); - // If the $client 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(); - $client = $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 = $client->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(); - $client = $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 { - $client->setNodePoolSize($nodeCount); - // If the $client 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(); - $client = $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 = $client->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(); - $client = $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 { - $client->startIPRotation(); - // If the $client 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(); - $client = $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 = $client->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(); - $client = $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 { - $client->updateCluster($update); - // If the $client 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(); - $client = $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 = $client->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(); - $client = $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 { - $client->updateMaster($masterVersion); - // If the $client 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(); - $client = $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 = $client->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(); - $client = $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 { - $client->updateNodePool($nodeVersion, $imageType); - // If the $client 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()); - } -}