From 3d05d34c2ae06a8f3477d009dc9635573a639f56 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 27 Feb 2023 20:59:13 +0000 Subject: [PATCH 1/2] docs: minor grammar improvements PiperOrigin-RevId: 512664562 Source-Link: https://github.com/googleapis/googleapis/commit/2328fdb96c0747ed08f769ce9c19c932a9d7d2da Source-Link: https://github.com/googleapis/googleapis-gen/commit/93635315eb7fb0d99a5b604d18106b8f472754b2 Copy-Tag: eyJwIjoiQ29udGFpbmVyLy5Pd2xCb3QueWFtbCIsImgiOiI5MzYzNTMxNWViN2ZiMGQ5OWE1YjYwNGQxODEwNmI4ZjQ3Mjc1NGIyIn0= --- .../Google/Container/V1/ClusterService.php | Bin 0 -> 44213 bytes .../Cloud/Container/V1/AcceleratorConfig.php | 191 ++ .../Cloud/Container/V1/AddonsConfig.php | 525 +++ .../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 | 493 +++ .../Container/V1/BinaryAuthorization.php | 118 + .../V1/BinaryAuthorization/EvaluationMode.php | 66 + .../V1/BinaryAuthorization_EvaluationMode.php | 16 + .../Cloud/Container/V1/BlueGreenSettings.php | 123 + .../StandardRolloutPolicy.php | 158 + ...lueGreenSettings_StandardRolloutPolicy.php | 16 + .../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 | 2968 +++++++++++++++++ .../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 | 564 ++++ .../Cloud/Container/V1/ClusterUpdate.php | 1885 +++++++++++ .../Cloud/Container/V1/Cluster_Status.php | 16 + .../V1/CompleteIPRotationRequest.php | 212 ++ .../V1/CompleteNodePoolUpgradeRequest.php | 76 + .../Cloud/Container/V1/ConfidentialNodes.php | 68 + .../Container/V1/ConfigConnectorConfig.php | 67 + .../Container/V1/CostManagementConfig.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 | 64 + .../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/EphemeralStorageLocalSsdConfig.php | 92 + .../Google/Cloud/Container/V1/FastSocket.php | 67 + .../Cloud/Container/V1/GPUSharingConfig.php | 112 + .../GPUSharingConfig/GPUSharingStrategy.php | 57 + .../GPUSharingConfig_GPUSharingStrategy.php | 16 + .../Cloud/Container/V1/GatewayAPIConfig.php | 67 + .../Container/V1/GatewayAPIConfig/Channel.php | 72 + .../Container/V1/GatewayAPIConfig_Channel.php | 16 + .../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/GkeBackupAgentConfig.php | 67 + .../Container/V1/HorizontalPodAutoscaling.php | 77 + .../Cloud/Container/V1/HttpLoadBalancing.php | 76 + .../Container/V1/ILBSubsettingConfig.php | 68 + .../Cloud/Container/V1/IPAllocationPolicy.php | 862 +++++ .../Cloud/Container/V1/IPv6AccessType.php | 61 + .../Container/V1/IdentityServiceConfig.php | 68 + .../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 | 153 + .../V1/LinuxNodeConfig/CgroupMode.php | 67 + .../V1/LinuxNodeConfig_CgroupMode.php | 16 + .../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/LocalNvmeSsdBlockConfig.php | 92 + .../Container/V1/LoggingComponentConfig.php | 67 + .../V1/LoggingComponentConfig/Component.php | 85 + .../V1/LoggingComponentConfig_Component.php | 16 + .../Cloud/Container/V1/LoggingConfig.php | 77 + .../Container/V1/LoggingVariantConfig.php | 67 + .../V1/LoggingVariantConfig/Variant.php | 68 + .../V1/LoggingVariantConfig_Variant.php | 16 + .../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 + .../Container/V1/ManagedPrometheusConfig.php | 68 + .../Google/Cloud/Container/V1/MasterAuth.php | 331 ++ .../V1/MasterAuthorizedNetworksConfig.php | 152 + .../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 | 78 + .../MonitoringComponentConfig_Component.php | 16 + .../Cloud/Container/V1/MonitoringConfig.php | 125 + .../Cloud/Container/V1/NetworkConfig.php | 473 +++ .../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/NetworkTags.php | 68 + .../Google/Cloud/Container/V1/NodeConfig.php | 1669 +++++++++ .../Cloud/Container/V1/NodeConfigDefaults.php | 121 + .../Cloud/Container/V1/NodeKubeletConfig.php | 304 ++ .../Google/Cloud/Container/V1/NodeLabels.php | 68 + .../Cloud/Container/V1/NodeManagement.php | 166 + .../Cloud/Container/V1/NodeNetworkConfig.php | 315 ++ .../NetworkPerformanceConfig.php | 80 + .../NetworkPerformanceConfig/Tier.php | 57 + ...NetworkConfig_NetworkPerformanceConfig.php | 16 + ...rkConfig_NetworkPerformanceConfig_Tier.php | 16 + .../Google/Cloud/Container/V1/NodePool.php | 865 +++++ .../Container/V1/NodePool/PlacementPolicy.php | 70 + .../V1/NodePool/PlacementPolicy/Type.php | 59 + .../Cloud/Container/V1/NodePool/Status.php | 99 + .../Container/V1/NodePool/UpdateInfo.php | 81 + .../V1/NodePool/UpdateInfo/BlueGreenInfo.php | 226 ++ .../UpdateInfo/BlueGreenInfo/Phase.php | 99 + .../Container/V1/NodePool/UpgradeSettings.php | 241 ++ .../Cloud/Container/V1/NodePoolAutoConfig.php | 90 + .../Container/V1/NodePoolAutoscaling.php | 304 ++ .../V1/NodePoolAutoscaling/LocationPolicy.php | 66 + .../V1/NodePoolAutoscaling_LocationPolicy.php | 16 + .../Cloud/Container/V1/NodePoolDefaults.php | 77 + .../Container/V1/NodePoolLoggingConfig.php | 77 + .../Container/V1/NodePoolUpdateStrategy.php | 63 + .../Container/V1/NodePool_PlacementPolicy.php | 16 + .../V1/NodePool_PlacementPolicy_Type.php | 16 + .../Cloud/Container/V1/NodePool_Status.php | 16 + .../Container/V1/NodePool_UpdateInfo.php | 16 + .../V1/NodePool_UpdateInfo_BlueGreenInfo.php | 16 + ...odePool_UpdateInfo_BlueGreenInfo_Phase.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 + .../Google/Cloud/Container/V1/NodeTaints.php | 68 + .../Cloud/Container/V1/NotificationConfig.php | 77 + .../V1/NotificationConfig/EventType.php | 72 + .../V1/NotificationConfig/Filter.php | 73 + .../V1/NotificationConfig/PubSub.php | 160 + .../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 | 339 ++ ...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 | 149 + .../Container/V1/ReservationAffinity/Type.php | 72 + .../Container/V1/ReservationAffinity_Type.php | 16 + .../Cloud/Container/V1/ResourceLabels.php | 68 + .../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 | 299 ++ .../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 + .../Google/Cloud/Container/V1/StackType.php | 61 + .../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 | 1151 +++++++ .../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 + .../Cloud/Container/V1/WindowsNodeConfig.php | 69 + .../V1/WindowsNodeConfig/OSVersion.php | 64 + .../V1/WindowsNodeConfig_OSVersion.php | 16 + .../Container/V1/WorkloadIdentityConfig.php | 68 + .../Container/V1/WorkloadMetadataConfig.php | 72 + .../V1/WorkloadMetadataConfig/Mode.php | 69 + .../V1/WorkloadMetadataConfig_Mode.php | 16 + .../ClusterManagerClient/cancel_operation.php | 51 + .../complete_ip_rotation.php | 53 + .../complete_node_pool_upgrade.php | 52 + .../ClusterManagerClient/create_cluster.php | 70 + .../ClusterManagerClient/create_node_pool.php | 57 + .../ClusterManagerClient/delete_cluster.php | 61 + .../ClusterManagerClient/delete_node_pool.php | 53 + .../V1/ClusterManagerClient/get_cluster.php | 53 + .../get_json_web_keys.php | 56 + .../V1/ClusterManagerClient/get_node_pool.php | 53 + .../V1/ClusterManagerClient/get_operation.php | 53 + .../get_server_config.php | 53 + .../V1/ClusterManagerClient/list_clusters.php | 54 + .../ClusterManagerClient/list_node_pools.php | 53 + .../ClusterManagerClient/list_operations.php | 53 + .../list_usable_subnetworks.php | 58 + .../rollback_node_pool_upgrade.php | 54 + .../set_addons_config.php | 57 + .../V1/ClusterManagerClient/set_labels.php | 73 + .../ClusterManagerClient/set_legacy_abac.php | 65 + .../V1/ClusterManagerClient/set_locations.php | 77 + .../set_logging_service.php | 75 + .../set_maintenance_policy.php | 81 + .../ClusterManagerClient/set_master_auth.php | 72 + .../set_monitoring_service.php | 75 + .../set_network_policy.php | 57 + .../set_node_pool_autoscaling.php | 57 + .../set_node_pool_management.php | 57 + .../set_node_pool_size.php | 67 + .../start_ip_rotation.php | 53 + .../ClusterManagerClient/update_cluster.php | 57 + .../V1/ClusterManagerClient/update_master.php | 74 + .../ClusterManagerClient/update_node_pool.php | 79 + .../v1/src/V1/ClusterManagerClient.php | 34 + .../V1/Gapic/ClusterManagerGapicClient.php | 2784 ++++++++++++++++ .../Container/v1/src/V1/gapic_metadata.json | 183 + .../cluster_manager_client_config.json | 210 ++ .../cluster_manager_descriptor_config.php | 18 + .../cluster_manager_rest_client_config.php | 1060 ++++++ .../Unit/V1/ClusterManagerClientTest.php | 2421 ++++++++++++++ 277 files changed, 45282 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/BinaryAuthorization/EvaluationMode.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization_EvaluationMode.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings/StandardRolloutPolicy.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings_StandardRolloutPolicy.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CancelOperationRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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/CompleteNodePoolUpgradeRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfidentialNodes.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfigConnectorConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CostManagementConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateClusterRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateNodePoolRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/DNSScope.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/Provider.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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/EphemeralStorageLocalSsdConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/FastSocket.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig/GPUSharingStrategy.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig_GPUSharingStrategy.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig/Channel.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig_Channel.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcePersistentDiskCsiDriverConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcfsConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcpFilestoreCsiDriverConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetClusterRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysResponse.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetNodePoolRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigResponse.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOperationRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetServerConfigRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GkeBackupAgentConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HorizontalPodAutoscaling.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HttpLoadBalancing.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ILBSubsettingConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPAllocationPolicy.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPv6AccessType.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IdentityServiceConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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/LinuxNodeConfig/CgroupMode.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig_CgroupMode.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListClustersRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListClustersResponse.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsResponse.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsResponse.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksResponse.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LocalNvmeSsdBlockConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig/Component.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig_Component.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig/Variant.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig_Variant.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceExclusionOptions.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceExclusionOptions/Scope.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceExclusionOptions_Scope.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenancePolicy.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceWindow.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ManagedPrometheusConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuth.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig/CidrBlock.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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/NetworkTags.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfigDefaults.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeKubeletConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeLabels.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeManagement.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig/Tier.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig_NetworkPerformanceConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig_NetworkPerformanceConfig_Tier.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy/Type.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/Status.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo/Phase.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpgradeSettings.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling/LocationPolicy.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling_LocationPolicy.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolDefaults.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolLoggingConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolUpdateStrategy.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool_PlacementPolicy.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool_PlacementPolicy_Type.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool_Status.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool_UpdateInfo.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool_UpdateInfo_BlueGreenInfo.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool_UpdateInfo_BlueGreenInfo_Phase.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool_UpgradeSettings.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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/NodeTaints.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/EventType.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/Filter.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/PubSub.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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/ResourceLabels.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceLimit.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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/StackType.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StartIPRotationRequest.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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/WindowsNodeConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig/OSVersion.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig_OSVersion.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadIdentityConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadMetadataConfig.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadMetadataConfig/Mode.php create mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadMetadataConfig_Mode.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/cancel_operation.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_ip_rotation.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_node_pool_upgrade.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_cluster.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_node_pool.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_cluster.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_node_pool.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_cluster.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_json_web_keys.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_node_pool.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_operation.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_server_config.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_clusters.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_node_pools.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_operations.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_usable_subnetworks.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/rollback_node_pool_upgrade.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_addons_config.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_labels.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_legacy_abac.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_locations.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_logging_service.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_maintenance_policy.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_master_auth.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_monitoring_service.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_network_policy.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_autoscaling.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_management.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_size.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/start_ip_rotation.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_cluster.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_master.php create mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_node_pool.php create mode 100644 owl-bot-staging/Container/v1/src/V1/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..9780914a11f83c353e2eeff888eec32a1df62b81 GIT binary patch literal 44213 zcmd6Qdu&@-df!sAZ0X3RWBd*7*9)#zwU@UT$nRYg^S;dVG9#X?$^MWjs5ZTX_~;y~a+fT%8)LLa$Gvu`jenl6dBs}2)~=PdYCnR7 zyfeO0+VZLxqPy+JPQBc&HR|KkVX0oOUbr|eV^Z7an++`dopA$Eo^Sy?+|Jdpn0jgJ z_H5NFw`$FHqm@U~sj1Cs+s7b1xo}ZWOT*PR#xDqrQ&U|)zBAr#?Nr0FkB_&i?VVQr zD#J|!JoNv%ZNXQjS-YL7*BgX|M%|m53f2@15!Z2Mt5&VI_t)oIt-4j2uHGr#t2J8t z>$+Ukr)AGT`naFn!TH1j_dcQD6-di&H`@;$qw7iyC$(MLZazleo2^o_S#9lON0ysq z9REsn?~_rF0(O2UW)?omFTY#U2RBox_~-N*uJZ-|WYIZ$N&S=G?o$`{e36||X`1%$ zeEQy%u~WK#saeDQr{g8pe(aghiw!zM#dUp%bc55O1}%M3^sDpw6%!C##fgeO4*LC> z&i7T?@Q#W7&TX@+aiibYTc_Wj(4)7SWze^Zrepp}=`mgK9Z%Z3Ki{X0&e!TYA1|UY z=-EbX)0tL>ya!&nz2&7665LuTMwLBHC*0oHFlcCZ48|1 z8&6zFPEPD;oEh%7fNo=HbvQEWuIVKx}(4NnrmRz$SQa?5tO}s%^cqW6CKvcZ%DkdTA59uGs)nGU&Xbj?laE zhFARZ4oEcb+3@6;S(Q1G>1l9{HA1{|RvnLYDT0R78kJN(@6Sn|TlByni<|2V%z%TZjnYp0PSGnj znpF=I_2VF%Qb#q{E|$vW#!kJR8e$0EQ-j-@Wn*qS$uFDLgy}#!fF^BNyqsc3soFMB zC6Ep9pjXwwtrC#xr4I6tpWSW9d2THO0@STWxwKXEyh>3(J%mvQoWtrsyR_-026;uJ zYPi{|5@D#VZ&gzYO$ME})nP0Ty9w^nXnCn&p8iGa^qHWc-uh!|h!M&-KFljgsgdnk zy+~Ww+$yy<8m;Zr5q`6vQuiCJyIYM?rD!k+aEUskl4vnJXzk)Q?b79Ns7^uiZB<1jOuBqc7(h$g) zEf-508zguU-+g z7Lnc}1FX?|g2#E@3R4Hgb>3CUyK=t`6eqd2{Y(&kqvYVUI=0?uw2OQ&?rwWUBCe+} z#E|o<8r~#QprJa=<33}BY7Xu6ik8&rQso|@1?NUz>WwPc4bYz&<1sE<$H?ej3)1PD z?&GA@z~;Srt(-d71Aw(!tG!d&TFlMRHS(H`c4{2W2f@f3hQ9*N4q2P=?4_RLq3k%~ zb?D}VFVA^P4R4gZcF}8;?^fHX=X=0$4ebit?D}UuO(dLob=1fPMNKkZ;Pd~A6$dn* z;4zKE$Er%0bWE${R%3IsR^K$6@*=}>DRwXt@8_k9-k%vYdS7^1vmi;g$V-*rrF-v0~?Y_y6{b6tGxr6Ft|+#z~!t>6kQF>Hs-g~uJu2ot^-f%ELA{Ec7~|9?71zS4 zt21p#He1E&CN8E|TnFd4U#mc#XxFMOEym40Asp!yjK#}#FQ^0b17gd_N-n$HA=D{# zke@>GoIbD47JGm;eM+4u+K@bbPMs;nqZSh8$r$DXQBV))Rm-5yMdAdEfO!oSW@H5?Vu zfuOmyTw!T>B;lS@D#T}wszU-`MId&6Kf(8}i(@aTR2i0r9ndN4xOp82n#mZ65O>)$ zHr$_qb@YX%H4ZsRb&xd>Er`0e;#LA>V{xgtoGoOR*D@=R?;*O6s-v03k0KBIoRm7Q zm6Vytn|}8nCDagc2$7I_&=u!3b+8IUSh>w|cyjUu>qhuvrL)`^N9CaW<(yPb_S&`V z%u2_B#Rg#&g_-Nw+12?hmVk!&p<_Vd}9)s^f>zx%cb{0zDWo^GT; z(Jpt92HlUPw@_mz5Wl6jT@alMlJSmr!Z}LPxcgfl>rAGq{6eOD0RvqNe*&33}RuT@v)a!dG*MpF&a- zi$}3sZMAC~wK5TI+!Ye>Nq-xjv~zGV!_5SpG*daRP8t(xxfC8WRpGlrswbORBJZmF z4l=ubM*`>uJ#()@dFS@sQ;n-s&GU8uZufv>8W?oHeo!5T0SPx>LkGdV(e;Sg|+TNox1-q6JfNX1w}S+Fs}*tlp1`EGTZyJV<`fa$)Vj&&dE5j6<)kHj~_ zOE0Tb?0M~OefuRfYB`aPy`}BAb+>$0B|8p97sG!`y_gqiQ~O(l4$f^gaJ$L+;hC%7 z)%7>})bVIvy^Szu*<>s&6g{I(b-bayRT<%_?ka(D|6E(=8lwepsE+6K(Qx$?8SotUecV*RER6MReVXS=Z!+?NLMStU66>2j`2JN24`I=H580Lsm$#ph>c%*k)LUa{oJcYzG19IuK4? zIU&l8Tg!qbp*1=As&%2!A=3dNueMm|{8){2K66}kets!4Tb$0!XBKB5)vSD!?=%}f zqs~~`WIw->U0%%0Lng8}$SvvyeNYNc$a%y6BebgPpuVEUcO^Ytozm(|FM86|9{2b7 zoP}CI9Pf~^f4WbdmlH$VP8_XT(f2ua*O%c2@byIx7ln+l?^t)N_t5DX48s-!=dw^+ zePd{N&)fi`6wt{K)pP7MH57Cet1^t859B_HBZ0&ZA4n}DxoW&fG`+_xq?627H%sLQ z8Ib30eEm#99f{C8=N*V*t;W4t#aA|Cq*syngej-uT8>vUX5dwACPWR$SuyzXIJ1W$uD7b z9~HBU*Or!NvT%O<-T~$0@|i6%Adw?h5J@Bm@-e7$5fWR;gGrL5MF(b3Z4U|2IL0u$ z7JRxVXGVzmIrPyH1HM&+jVK~skEvuG3l2CziU~TS^}KROxkQiwq5zCVMQkbj{&{uQ z3=N9es8_ICVxrwJFAAxCOS0CG15w+brL#YY zOha(8jke)H=zJ-D1l%mbI2Z%OTNwXwXq`!=U^$1mkZCvxG09203J7m;`7WCVAdzB% z*UdHOp5zip#z>^O{Jqyj2;lC|sgts^1m^2u3l`bShsf;J@4OIQYNQ$4#JQRKv!~S| zEpm`H7ARY|L&Go_bFc+D1;s>w&DN0~#^OruDLO*~yxDK6VMf2^-6E>n?d+t}3g_US zu+VEMpagQv=WBS<-ZLPrbfAqDS#PYi;z2(POgttECM5y~Sb<^va;oUYbe(=VPj9Lt zCDy!*I3hy(vsRK3(a~^NLibNj*A?x}p)eOOb(q=5IqOh_9Wr>6`O@5b5AG~-5C)=K zNZBfFHSd(zn>Fa^~djG9vdZ1>D9DdLSU{`HHjKY4?DQBO`7W0c@2@HdM zQ*k>M;wx~5Y2+J!t+=i1&af!M$*SW_?F>T92;!`YG0|Bl=NHwpp|d8e-k zcI$j_0%XBdE<+a=f9xuMQfsvD)9tv0-8ACrZFk?XZv zwA$49p7{6}rUjD2bZcitorTGh-AKh9kNhdskDHB_uRcD@qou8v$=I(}sb7}6X%GwQ z458N-`bC!a&w$%wP+%$O7f}{+>ZDOO3|Y~*dx6KZ>$p)}M#DF&MkzvX9qb*-RJrv4 zE_4uMah1jF;;inF_1lxD7sdfnY`P6S+FNE9-4NQry*lhXsW1{z7>H@FKekzQ~ zo@knf19`LsuRpD*e5VARVJjt$FuOHoS=!D>Q(B4d%7@?yWep0L#_nes2Kz#cD?g|E zX#Bpfjv>tKPS}X&rDk{>yPbIftwSa}5484VxdDf&1fgsLA_LCLJvMs=T^2ZOg?a>= zjbK7CUSgNcI9GU_n9W`cbedFLX6kpf`E*1bfZeg0VuLC3e`v|RwSY~g#O92wVXhGlF-ItE0)`>7P{7sG zB9v=#Zr4X3ikH}1F%bx`@CC?uSl@tb)+D3x`bhL@jb%x{_HCi)q8Ej-I?zA8`G)M|y z_#uu(RwyAjO&Zv&4^*-S6CSVc%RDMDZ5U{(#ZMrrXj>3u-;{@EgK>gzn>)M-6%&#? zLViJ@Q}K*hI{TSVz9Q0%fyAa8EkKTwMy#8Si2SBc1}5r zQIeyIn#XvlKP$u8FD?-u5~yZ{BYEPX)%g_X?8 zYN5kxHlhx*VoqUwP+6hG4y!}UtBd@jkG!7C*_oxqncO_R?T1n^SXf!g=jqo0XGjfX zmzUuJr4X^f+3ehMW)_<8!RZrfR5Xgnmb&xGF&h_J>+9;U5lT49OmH=B<^5WMBzF^h zf+J=$a||5Fl)M8t&+rumhiO;*3*OB*?oTHK)ac{Rz#|#euGWMc!rj3!q+-SS3e1`! zr_=r333WshsnsTg2##+A0|qsy2&xUW6sxVP#?0H$sWw`b7;xWLCrq2DRz#r_!;^c^ zilCpH5g6^f-MHPNnSmIZx1m5qQPSo~niS}5B2k(lh`BEok!V$oo8e*wiU}TbUjoH- zb=nO3go4GiI%!7gkhMO?VA&~DRMz@Xoi}5|2q_|5*d-imee@|PO$kz^*rr#B%M3fwWkR<(E;6_OkHL`!_qvM^GQkGP#4Xs-E}<*ARV53 zEL|^jERB>BUJ)6Ih9_f=rM{lw6)mc>25hVPN2+%mhHUB|geWs!r=f)O?jh&)ZS}lq z(Nn>aNY4E#SfOhMa%0y(MANokvo*T{5<1v1s+NR!+7Gr>)e0j5>S?Q_iDb>It=G0f zYK8=U+7XeXjzo{w{BHW}vofs7msX0sdI^D;EI+2s^1j-|bIoH4Xs(&_Y_O}Hy3{i~ z(4KUu57jef=eJ(1ZLO0}%&WHBwIC)_D~EP-LvDV$;P=qW4ADQL(#;a0(R?QX=^$|d zJVc_YweJD=ymAe6W{cU}DY+ZkcA9#HhqT9b=xrwJ=^SUci47HjtUf2P>056w24k+Q zMc?`%^_&3|H$Simbl4K!<6-T`1{5IZ7qKOTxPZC8Wg)rm^LTbH5Rn9&(4K@iyB;RP z!`Nl!E^)OGoS2$XzB|;zX&!Gs>fx;be`c)e$CB;`1GjIBd7B5eXFO9Q8GQFeRPs{wq0$F64 zmNdZO$z5ey*dKhcZ4*M?efR>A|7Fw&((i_2LgwbAc_yFJcNg}5Rv}0M9D>2k7mxyQ zJI)|!gZq+7VNdiWJWxL4Ho1>+c6FOflM~ZmFlIO1KR$#cB*e#vA290CFh&P z^$&?R(m3pdx06qQT#21TV4^18BtXZ}wV;!x-H5WR0L`^6B*ze*&vjW2#J4t(N{}BX zVmu)+dx$(U?NSSwuVPUV(K)Qui|c|M5NOvH-CrDFVr7vh;*t<2E(Z|9Awk<|XF~ou zK%lv`XyUUJ2PdhFCk~ztBJ(X($gUvlRW}3xifk;4=jOuuDKMRd77a)dfZXDsAyWk-_!^X$sa zrR5vi7d~>7(g|e{3O!k*coy?+#QkocI@WbOJG_~}Wu@D{=ga!8I)sF=R;?^C(QyHh zU9(f-9eO#hGmY4Ufm{;y_IS6(YU-dK;aJ!yOLwjh2pxieTI5)5_RAt?0*E_YX&@~h zW=_r`C4)gip2LMgBAq;EW&iqTrVr_KQ}?S0b$o{NC$u`UT>bJ6qW3VOg5>rkge(@J zpp)f7jE>!8bW$DCL_kM+o;5cQml>oEH3^WPoYv#ZB0vV4C9>U0D1lp6$L5gODYRt& zAOKhm0s%{l7hnwsV4CWF6KfS?$Wx!_4Rvsb%`6-?F+6D(%=EMZgCHUb;r9mB33*Fe zL>>mqr-zFa%x1o^5m@4*!1VXDeq$^`!h!g(or>g)G6RajEnLjvrVhJmaEZ9ogpo@m ze$=k=8CMN10Qb?-$($P5X>PVku$F2iMM5y*?xewAdR2NAM6;oQeaTG~ReE;`Yr+rk zKZau!C+N|1IwJrb*k|tb^odgk3Fb!>z9n;#)bltVx_joNxWw(`hGwQ1*C3G^@#J+n z8OExLYfFLiqVmTNqHU{sgF137MXTR~sng-vwEKybZjZAz<0KKDF5<0vjI>G?bjbtF zaSWlHwUj8(cDRF-NF-x+<}Xr`=Kh3Xc7@*sBk)3~wqsfo#c6rZ(y)4Gx$ z-QP;6bGR9FB#79AOi@1wx-%UOP9U-qXWX(t7^Oo@n%qy3Fo*SM1z78aPj4w_yW@?7 ziZZQ?l5%(i&H$7^iGJ$PJYx-VvH&Ew`Go|8sA@YLrS$YL^G;`=6oIi9mw;^-AF5H_ zM2UCwo*tAZ!_ibEl5wOUA(clbaN5q zOyFfCaX+6a6rcxCs4SF_x$I(gnUoy=ai3|pid4kK%mQWSZK&h3#M-J)UBoljo43qe zQls-o!qKxl#u*JHU>WcW>UeZOr2f~vD&&>HvWUf|fK5;F8kjn=jf651`6`gXDZs!ppTCq0K>W*MR-6Z ztVNx{rU(stVkLGjfJbM)bN> zQw%QzVW}J~rX#=vTVr2?CTDvA8|@(zRz}NA#*}u6_D!4cGQ<-bq#0d^t%XpAld>@V zSQPpp_ge|%zp(af1eE=6WSs7bTo0DY$t1;j7m|6UaG#3A&TBJF^VA!&=Lo1k^87{)S+UFA;hk&5s*<8JK_weV3r}u zqB4}K$`3%+Z9#(@OrIgL;T$4hF|~=t$ruy8!HzbXW0jr3jT~UfrlWVFDjac$eW-BG z8%hO{vpVa;uKf~FLCCBF?bjAmPUI%eaIjG73@VStG1izP?a6CF8;^MQP@WKnbdpRv z;Mgox6iT{pOBDt}a$gyBgkbK~Sp*bTy6ZrB(@Q54K+o2&=UY^{ys)8;4&GzHy7f;X>&z<|=i&kj->7zO1B+OJd>L1p4MJ*=*mhk;oGyPz)fc#}i~GV|c`_1E=#e z2Iamnyf)%MiL6xl=(M2H)})`CAWe@4VNYF!)GP{A2T3t*Mv)M4J7gqoXXukK=zo?_ z0|F6Ly8QJ_p))6${b20OLICRW3MWdUFeE#(;BYI>EoZZoB?*649}d{)3=~9;MJ-Ox zuWCnEKRJ?SmoqsEOAS3gKzd~0<|-^@ZjcXefSZ#;F4~;EXv<6U^V6A`8$|=op|KxT zM?0_B`?_2Zoq^=!q~W$;CxHXR->QzzQaI>hPcI_WqUvm?eC1=J%DQ;#P1FS@w*4zhbl?y36W%^BO?H&QPgI7osJ4`H9u`to26Qd zum7O)zB+1*`3+8Kp|Cw7Y%yUsWS7+BW=Yz+AHe{9qAQONdNTe=%9M`gGOf{DUD2!5~`VRp>)sIPwwl1*%EwE~)|kg9rnPU};}}0VX;oq{W5Y;u0#sN!&sK zcDi%wG}_5yykT1FzwSd#u~Ex$b0B!@gDNPqn-W7?h~O4E+ z+?x~>(X6a<+QJ}M5nDVBaIkJ@i(xe1TS~0;HsQE`w_iEhrcCV3M7pDjf)06O6cdkw zB7YB2#z-mBrN0KDawE6WI25TywW(2Jk46BTQkRvQIycoQ4XbCQs9mZ6rKR&JE4A+i zG#vsuFC#eX>bXvML&~|fw~;}Oc%8jw6^$BRuR*mAjrLINW~^(DASHl}lkTcW40?eE zI!KU6Xu6i0@03GPf@CSbl3PGvQgL+!`AoM=twYE}x~R@9)h6#(LAdOONEa}o zpmca`duLnXsmQ7Vy_Fvj+WXyq)u%=cl4-Ney+lK~m%7{-8H%Y2Ip5M?M@hke=g+T= z?N`m9BM>>bs9Q$6G>9TmTw9$LEUo(!{*#mTay1sfVo1pH>0^hrT` zkyGEYQm#%2Y{f5xd7Zaaz>u2|ar*Olf84ywKf}J>piIWo!^`pDfbzMDa%8d2BLwgy zY`?8`F2Ah5X7ls_FwC5%BD)#v&#?Oxk$A0xcs$KU@2b;AF!+7~!W-rOI=(1D`5^lH z0|9*jAvO=SBttZ!pVYeWE2bVotjXFz9~}S!IU|~l)e?i~T$6X+of2zfFb7az6&;`0 zu>AaLL0St;Z0q9uSehg{ko%_zH8R)Hfp{U?;V=qPJ*BFsRN2M|tPk`%KctR_hcm`6 zCV$DvH?4Q3bE0(cAYz!KtljQcRO|{*i-qf%WwNpqR>+q>_fdC#F?ep)G($0IDi&>n z)%^yJZA`G>yXruwz?WT-vv*B%WiMEB=wAw#wtQ>_(Ft=1KwikMWMHStKMS!po062d*R4LH+#c*r@hGY-vD;f&S#1GNQ zT*rYgf{cu|#^3A*32<8^?T5AQ2;6pSZAd*8c%rZ~5q5tGpZo#wf=>hYMOPWPst(ZC zg0${yPXg@dlcvuHz)G z70g1%1!?dzH_D$pPj>-%*@Qv>f%aKBJ&|rk~xyPe7L%_l0oI^nQWHQ zFoc_Hln>a0x)URroDGsk#`w;|nTI&z8Nu0Ai!>=<3%>6ZDC^ANn7=|o}XiSA2 zuFifYs=~bk+qJIWL-zXXnZ?EIdHb|0rCMtG`oQx7rGtaHILXX|i>yhtt03$5vs(qH9=W$nUrDYAH{c*e=VkQ* z0(IJryX5GqZIa55s*gISBivlVa3HJT>y0&h0wKJUc2V~C-LJCWys;Dv`Sil&~x z@;)dmE#9oI->5$D<1;!D(Ng^%+`r4FS$uFvlqVGL2Pk^2_<<6MTKJ)|{wB`=u7gCK zDa8=|S=Dv=@aM-Y{_)cXIwuYt%dLCz*(>*b-lhm}8uc%#1E{cWLa|bY9GAmB7l2E( zIg-(UpC=0wf~C-TzstXGOlAq74plIp>80odl>O67UBdC|lyb&`& z`J6-188hW+gheeD@Bs+0(hg#Tv^$-vC$D9owfv0!+2^LolhYYa0P6$^-dyMo!7^+F zV08Ao6M?9j)0xwn1H&ZY7a-wCFBUqeuCi&UDO$j>BNhku24vLEs$_4dQO!m}-$RhC z?fDHn`p}+39Fr=}g$l^M4Q~QzZCXFD)Bo;%96(Yfl8Ad6s!{At!mU8#MFk~nR(5e_ z`J=ozeerWPYku~@Nq3e4Gf~73VFV~Vpyif0T1B5TfdLbV&@X}gSD!|Hzk3?eqzz_2gN!4z>?LD8#nBDYU&5;Ogkh9fA zgk2MzgU3FHZ#=@2uO(WLJ8*9E3<_VC2p@d*B*Q|s)o&!rbe5kVaQ`7hk4}&}#8KZ` zXJl4cZWk74)kCnLjRvKJfhNX~$;7l5d+D6NV+&x!qie9^`BmOT2l-x~I&BP%7^0)d zCdb+mxAq_PfjO4ti&g<*05o10Hg}ghi zx6h|+(AidJz#Q@YAoiitw-BWoKOP1jO1ZvIfIyebh)CJv0fkhJU8L&V-O%D7lL+r2 zfgRET@97x$Ty)aByQ+y?&TgxEdUoG;Lh;e-WNmsNaORCpBC(5IT zzRcG(4_=3|!@6E0xCfQYg5r*XA$;=iAWE`>oG==OC++1yx;v)xJL@2UV?T*N5c#tU zVE9xAsDfTuD9rTupJwoNEtyU4FbYL@_z3Ry#0s?|U^Ky``?C*V@VO7{``D5?D1X8E ztg81YXieML`ymV1zq)H#T9$gQ(5JN8;0NXhEQcqvYmokJpE1CvaZMI_W-XIL>N%(l zw+3|z<C6TK%(1u{%$p~zip7xB*?Zem-zr6{bd(eA725az?M^D5~( z&?i88Q2xGR(jzdV zR|O6*yoe3ZM-Th`Nc9t}lE11|t8Nh8_e-gZB^=RqX6isoE5bEHAH!w6j7-ibiG*(n zRZQxJ`JyfrvftT6T>$`Y;;m3OhKhpdj|C$W1Mvj-jwsGe6;*Uv$m*xke_}>)&#EEz zSyCO&F4EzysUy)6LRl!3@Yy4s2$#An+(OvbXRX}A@2&d?xpV&r7F+u(FzaJRVl@+q zVwa3@3ERhk9ZpZ_B8zXx|AnNL6BIv(`W+x4QH>3eEQOCyaATq9x1dNCh@Vu0g1(Oe z)q#FOts?;k6+HUsr}=ao+2A15pz7rc#R}q!6(ZQ6%BA}&5Nd)9P)+r($70h?|HA`B z5Q-qw(-Jj;4^y`q;OBR$5Ki<4(bj*!rgR6z+^Vr2iy)=o)+snXZk702^qA z5Ly>9pD(Ul$0yb2uIFKw?Q{QYLYinbkl-K zb&5Q{w$I#x$xw_%`19X%Ck|_6_w8* zmN(|ZIjF-kpPkF#(=w(dh#Y8NW_FG0>C6U?`!0P^oit=18hP(rR4@3jAns4cXvyO2%R(f zS(I^gmQRH~4wk_Xk>G#1DnXIW{)evmCVzd7KHSBXtmJC6oc{(9k4ypjvFF(3nQ#+r zKpu;silM=9CfFhjHudBG;lF&nujE{wxOZjZ6Df-Gj&`?s6PG6Fp0p|OcH+{*32h|v zZe4LEsJ-9r6a5#2l!p_X_dD?k{S$O~lsOu-xlHdKWpoW5=X(f{g#}oz)Umtcf(B-p zJrj{(OX8K)^~&hmGBNA&mxU$Xde?b-pDUaAM5Bck|0o0Zj`3CUGA{>jA7%IxH_rdW z$E+enj~x4sMcSBE+g&^GBS;}Rv+hlIUpqRLxOD4PcfXs8UXL=TVix=;la%9RFyQ?8 zJ`@z=#2&NN_H{?v>~-D0Ec@LalXdTLziHi>u_xMcM#8f(NWhu6yu(X=lo=+N^e^Wp z`cQC
    y7*vnQ%8|@VvzaZH7R$}Z;zSw(1$3z|0hddH~>9!MUO7893PjVeX1Aand zOR0Gx5`q-W;e5Lf6gUWc4#&6I6Itwy_llYC3TA#a;m$oaW?(!Dfk}wka7*7GJW+U_ z4)-Hu{R1R%VEtMc)wX%ZZV~Tlw^tPXj-cqzCEPdmfue^~K#K;9P?B?Jp9m#ejm=GX z8Zp$P%%vXJOSdzh*?N>Y&iAb2vGZ?qMHBxc2nKof_#7ZF5TJF_z2fgb3I6^vku-OPRn%MRi%UFCl=-$biE(c8mM4n1FL?TNzjzW>CEz@bb0yVD7)cj*hpqQxaq8a** z0`Jx<&XqlGcF?I?J9Pdx^k3+F{z_vALAZ%o=58v|x8z*6_0s5G#i@n?h@>1&JMZs% zX%nCLV~B!yw)4)1-y0PX--kZhQFJPX!*;YXI5=r6zV3PP zQ;0%EY&u=%y^AIO(jdF|e-j#l(H>>?gpfZ($p`E;Nn)mGRSZHpS{a1cKMxch&;1F( z&F1ds;^BlB0_4_f&MSL77t&2^*xiTT?Ec@zHODeSQD-sNJle=C)qc%8+v;n6m9M#8 zL2m<4*ibS-VTR5(pwScgFgmOkLx&@6448I(x1*_s^6$&md^O>SKHHNVMd0*R+FRG1 zCzEgdk#-@~#;o->`_wRyZgAto1hs{l7|iUFrTK3K8DBTZ=yiv+^@&V*KKw+=ZaS-b zJhJ`>VLMl7u&84HD0BOzP68KLz%COE#t2|eI}8BHXce=V(;jVPkhL4N*Vy{Wg!|Y> zhlt*jO2E4b#1}mnu!CxF(Eie^baIf#mRQ>A|y^vF74W{pSwChhEgIJ6HQ%7VU0ZE9x}_xCpi%gzU40uqdm&FJ-D`xe|(fVOsDs<{^@*6lHbCayD>63 z+^ykOd&Sj16BNMs58e4EIVF}McaZ|c)dzEyV^~U%R_xd# zZMqxo6;Zz-i26pteQ#eE$}pW=1XnBW(i7pzI_jR#^)q5vUes|h#;rw$cS+E$+<#p`e z90Wm%G~4U(`F+94&nDb=_H}#!Wn?}=$+ElfBq$;5c8>Wd)5}g;7sTiimBvmQed;_i z_3ZtcVv^JA#Cv~`0;KDqMbeRXJz{?($o%>J2~m8kx>Ak_p=<7kPl{06xQ{YD-9f?X zeZ*>aP}ds=X`5Vvs55`Ti;<^D#qVls&Z^z#8`DKw2i|7s`*r74KD}MGfrk^NO;m)W z?9|G{PG<(s*!*v1Qn1MAN{RA?PZON}JDK#IcDw0KO-$Usf4?(w9nRT1Fg7%HDlel{ zYI~#6+MfOtLOTecF~0=^-@7tBIwLVYWOYIgZJtbX`NXZaWlnV2Lat4^(b}BYtk&6Z zHxYm{;SYsXUiE)`yYIAoUo<^KfFQWftYq!VZ<=?vZ}Ut1W8U7ry>{gf`_4+&sVRPq zf6VKtDZI|S-#cXA1U&?f$%hjh^p6Mp@5A+jyoy&|Qser+%j50VPW9qdiL>i)a8spT`S}7aLcRQ?xA|9)c*s-ARL(h 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..e11222fbda1f --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AcceleratorConfig.php @@ -0,0 +1,191 @@ +google.container.v1.AcceleratorConfig + */ +class AcceleratorConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The number of the accelerator cards exposed to an instance. + * + * Generated from protobuf field int64 accelerator_count = 1; + */ + protected $accelerator_count = 0; + /** + * The accelerator type resource name. List of supported accelerators + * [here](https://cloud.google.com/compute/docs/gpus) + * + * Generated from protobuf field string accelerator_type = 2; + */ + protected $accelerator_type = ''; + /** + * Size of partitions to create on the GPU. Valid values are described in the + * NVIDIA [mig user + * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning). + * + * Generated from protobuf field string gpu_partition_size = 3; + */ + protected $gpu_partition_size = ''; + /** + * The configuration for GPU sharing options. + * + * Generated from protobuf field optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; + */ + protected $gpu_sharing_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $accelerator_count + * The number of the accelerator cards exposed to an instance. + * @type string $accelerator_type + * The accelerator type resource name. List of supported accelerators + * [here](https://cloud.google.com/compute/docs/gpus) + * @type string $gpu_partition_size + * Size of partitions to create on the GPU. Valid values are described in the + * NVIDIA [mig user + * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning). + * @type \Google\Cloud\Container\V1\GPUSharingConfig $gpu_sharing_config + * The configuration for GPU sharing options. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The number of the accelerator cards exposed to an instance. + * + * Generated from protobuf field int64 accelerator_count = 1; + * @return int|string + */ + public function getAcceleratorCount() + { + return $this->accelerator_count; + } + + /** + * The number of the accelerator cards exposed to an instance. + * + * Generated from protobuf field int64 accelerator_count = 1; + * @param int|string $var + * @return $this + */ + public function setAcceleratorCount($var) + { + GPBUtil::checkInt64($var); + $this->accelerator_count = $var; + + return $this; + } + + /** + * The accelerator type resource name. List of supported accelerators + * [here](https://cloud.google.com/compute/docs/gpus) + * + * Generated from protobuf field string accelerator_type = 2; + * @return string + */ + public function getAcceleratorType() + { + return $this->accelerator_type; + } + + /** + * The accelerator type resource name. List of supported accelerators + * [here](https://cloud.google.com/compute/docs/gpus) + * + * Generated from protobuf field string accelerator_type = 2; + * @param string $var + * @return $this + */ + public function setAcceleratorType($var) + { + GPBUtil::checkString($var, True); + $this->accelerator_type = $var; + + return $this; + } + + /** + * Size of partitions to create on the GPU. Valid values are described in the + * NVIDIA [mig user + * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning). + * + * Generated from protobuf field string gpu_partition_size = 3; + * @return string + */ + public function getGpuPartitionSize() + { + return $this->gpu_partition_size; + } + + /** + * Size of partitions to create on the GPU. Valid values are described in the + * NVIDIA [mig user + * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning). + * + * Generated from protobuf field string gpu_partition_size = 3; + * @param string $var + * @return $this + */ + public function setGpuPartitionSize($var) + { + GPBUtil::checkString($var, True); + $this->gpu_partition_size = $var; + + return $this; + } + + /** + * The configuration for GPU sharing options. + * + * Generated from protobuf field optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; + * @return \Google\Cloud\Container\V1\GPUSharingConfig|null + */ + public function getGpuSharingConfig() + { + return $this->gpu_sharing_config; + } + + public function hasGpuSharingConfig() + { + return isset($this->gpu_sharing_config); + } + + public function clearGpuSharingConfig() + { + unset($this->gpu_sharing_config); + } + + /** + * The configuration for GPU sharing options. + * + * Generated from protobuf field optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; + * @param \Google\Cloud\Container\V1\GPUSharingConfig $var + * @return $this + */ + public function setGpuSharingConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GPUSharingConfig::class); + $this->gpu_sharing_config = $var; + + return $this; + } + +} + 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..36ac5b53077e --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AddonsConfig.php @@ -0,0 +1,525 @@ +google.container.v1.AddonsConfig + */ +class AddonsConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Configuration for the HTTP (L7) load balancing controller addon, which + * makes it easy to set up HTTP load balancers for services in a cluster. + * + * Generated from protobuf field .google.container.v1.HttpLoadBalancing http_load_balancing = 1; + */ + protected $http_load_balancing = null; + /** + * Configuration for the horizontal pod autoscaling feature, which + * increases or decreases the number of replica pods a replication controller + * has based on the resource usage of the existing pods. + * + * Generated from protobuf field .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + protected $horizontal_pod_autoscaling = null; + /** + * Configuration for the Kubernetes Dashboard. + * This addon is deprecated, and will be disabled in 1.15. It is recommended + * to use the Cloud Console to manage and monitor your Kubernetes clusters, + * workloads and applications. For more information, see: + * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards + * + * Generated from protobuf field .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * @deprecated + */ + protected $kubernetes_dashboard = null; + /** + * Configuration for NetworkPolicy. This only tracks whether the addon + * is enabled or not on the Master, it does not track whether network policy + * is enabled for the nodes. + * + * Generated from protobuf field .google.container.v1.NetworkPolicyConfig network_policy_config = 4; + */ + protected $network_policy_config = null; + /** + * Configuration for the Cloud Run addon, which allows the user to use a + * managed Knative service. + * + * Generated from protobuf field .google.container.v1.CloudRunConfig cloud_run_config = 7; + */ + protected $cloud_run_config = null; + /** + * Configuration for NodeLocalDNS, a dns cache running on cluster nodes + * + * Generated from protobuf field .google.container.v1.DnsCacheConfig dns_cache_config = 8; + */ + protected $dns_cache_config = null; + /** + * Configuration for the ConfigConnector add-on, a Kubernetes + * extension to manage hosted GCP services through the Kubernetes API + * + * Generated from protobuf field .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + */ + protected $config_connector_config = null; + /** + * Configuration for the Compute Engine Persistent Disk CSI driver. + * + * Generated from protobuf field .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + */ + protected $gce_persistent_disk_csi_driver_config = null; + /** + * Configuration for the GCP Filestore CSI driver. + * + * Generated from protobuf field .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + */ + protected $gcp_filestore_csi_driver_config = null; + /** + * Configuration for the Backup for GKE agent addon. + * + * Generated from protobuf field .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; + */ + protected $gke_backup_agent_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Container\V1\HttpLoadBalancing $http_load_balancing + * Configuration for the HTTP (L7) load balancing controller addon, which + * makes it easy to set up HTTP load balancers for services in a cluster. + * @type \Google\Cloud\Container\V1\HorizontalPodAutoscaling $horizontal_pod_autoscaling + * Configuration for the horizontal pod autoscaling feature, which + * increases or decreases the number of replica pods a replication controller + * has based on the resource usage of the existing pods. + * @type \Google\Cloud\Container\V1\KubernetesDashboard $kubernetes_dashboard + * Configuration for the Kubernetes Dashboard. + * This addon is deprecated, and will be disabled in 1.15. It is recommended + * to use the Cloud Console to manage and monitor your Kubernetes clusters, + * workloads and applications. For more information, see: + * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards + * @type \Google\Cloud\Container\V1\NetworkPolicyConfig $network_policy_config + * Configuration for NetworkPolicy. This only tracks whether the addon + * is enabled or not on the Master, it does not track whether network policy + * is enabled for the nodes. + * @type \Google\Cloud\Container\V1\CloudRunConfig $cloud_run_config + * Configuration for the Cloud Run addon, which allows the user to use a + * managed Knative service. + * @type \Google\Cloud\Container\V1\DnsCacheConfig $dns_cache_config + * Configuration for NodeLocalDNS, a dns cache running on cluster nodes + * @type \Google\Cloud\Container\V1\ConfigConnectorConfig $config_connector_config + * Configuration for the ConfigConnector add-on, a Kubernetes + * extension to manage hosted GCP services through the Kubernetes API + * @type \Google\Cloud\Container\V1\GcePersistentDiskCsiDriverConfig $gce_persistent_disk_csi_driver_config + * Configuration for the Compute Engine Persistent Disk CSI driver. + * @type \Google\Cloud\Container\V1\GcpFilestoreCsiDriverConfig $gcp_filestore_csi_driver_config + * Configuration for the GCP Filestore CSI driver. + * @type \Google\Cloud\Container\V1\GkeBackupAgentConfig $gke_backup_agent_config + * Configuration for the Backup for GKE agent addon. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Configuration for the HTTP (L7) load balancing controller addon, which + * makes it easy to set up HTTP load balancers for services in a cluster. + * + * Generated from protobuf field .google.container.v1.HttpLoadBalancing http_load_balancing = 1; + * @return \Google\Cloud\Container\V1\HttpLoadBalancing|null + */ + public function getHttpLoadBalancing() + { + return $this->http_load_balancing; + } + + public function hasHttpLoadBalancing() + { + return isset($this->http_load_balancing); + } + + public function clearHttpLoadBalancing() + { + unset($this->http_load_balancing); + } + + /** + * Configuration for the HTTP (L7) load balancing controller addon, which + * makes it easy to set up HTTP load balancers for services in a cluster. + * + * Generated from protobuf field .google.container.v1.HttpLoadBalancing http_load_balancing = 1; + * @param \Google\Cloud\Container\V1\HttpLoadBalancing $var + * @return $this + */ + public function setHttpLoadBalancing($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\HttpLoadBalancing::class); + $this->http_load_balancing = $var; + + return $this; + } + + /** + * Configuration for the horizontal pod autoscaling feature, which + * increases or decreases the number of replica pods a replication controller + * has based on the resource usage of the existing pods. + * + * Generated from protobuf field .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * @return \Google\Cloud\Container\V1\HorizontalPodAutoscaling|null + */ + public function getHorizontalPodAutoscaling() + { + return $this->horizontal_pod_autoscaling; + } + + public function hasHorizontalPodAutoscaling() + { + return isset($this->horizontal_pod_autoscaling); + } + + public function clearHorizontalPodAutoscaling() + { + unset($this->horizontal_pod_autoscaling); + } + + /** + * Configuration for the horizontal pod autoscaling feature, which + * increases or decreases the number of replica pods a replication controller + * has based on the resource usage of the existing pods. + * + * Generated from protobuf field .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * @param \Google\Cloud\Container\V1\HorizontalPodAutoscaling $var + * @return $this + */ + public function setHorizontalPodAutoscaling($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\HorizontalPodAutoscaling::class); + $this->horizontal_pod_autoscaling = $var; + + return $this; + } + + /** + * Configuration for the Kubernetes Dashboard. + * This addon is deprecated, and will be disabled in 1.15. It is recommended + * to use the Cloud Console to manage and monitor your Kubernetes clusters, + * workloads and applications. For more information, see: + * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards + * + * Generated from protobuf field .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * @return \Google\Cloud\Container\V1\KubernetesDashboard|null + * @deprecated + */ + public function getKubernetesDashboard() + { + @trigger_error('kubernetes_dashboard is deprecated.', E_USER_DEPRECATED); + return $this->kubernetes_dashboard; + } + + public function hasKubernetesDashboard() + { + @trigger_error('kubernetes_dashboard is deprecated.', E_USER_DEPRECATED); + return isset($this->kubernetes_dashboard); + } + + public function clearKubernetesDashboard() + { + @trigger_error('kubernetes_dashboard is deprecated.', E_USER_DEPRECATED); + unset($this->kubernetes_dashboard); + } + + /** + * Configuration for the Kubernetes Dashboard. + * This addon is deprecated, and will be disabled in 1.15. It is recommended + * to use the Cloud Console to manage and monitor your Kubernetes clusters, + * workloads and applications. For more information, see: + * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards + * + * Generated from protobuf field .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * @param \Google\Cloud\Container\V1\KubernetesDashboard $var + * @return $this + * @deprecated + */ + public function setKubernetesDashboard($var) + { + @trigger_error('kubernetes_dashboard is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\KubernetesDashboard::class); + $this->kubernetes_dashboard = $var; + + return $this; + } + + /** + * Configuration for NetworkPolicy. This only tracks whether the addon + * is enabled or not on the Master, it does not track whether network policy + * is enabled for the nodes. + * + * Generated from protobuf field .google.container.v1.NetworkPolicyConfig network_policy_config = 4; + * @return \Google\Cloud\Container\V1\NetworkPolicyConfig|null + */ + public function getNetworkPolicyConfig() + { + return $this->network_policy_config; + } + + public function hasNetworkPolicyConfig() + { + return isset($this->network_policy_config); + } + + public function clearNetworkPolicyConfig() + { + unset($this->network_policy_config); + } + + /** + * Configuration for NetworkPolicy. This only tracks whether the addon + * is enabled or not on the Master, it does not track whether network policy + * is enabled for the nodes. + * + * Generated from protobuf field .google.container.v1.NetworkPolicyConfig network_policy_config = 4; + * @param \Google\Cloud\Container\V1\NetworkPolicyConfig $var + * @return $this + */ + public function setNetworkPolicyConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkPolicyConfig::class); + $this->network_policy_config = $var; + + return $this; + } + + /** + * Configuration for the Cloud Run addon, which allows the user to use a + * managed Knative service. + * + * Generated from protobuf field .google.container.v1.CloudRunConfig cloud_run_config = 7; + * @return \Google\Cloud\Container\V1\CloudRunConfig|null + */ + public function getCloudRunConfig() + { + return $this->cloud_run_config; + } + + public function hasCloudRunConfig() + { + return isset($this->cloud_run_config); + } + + public function clearCloudRunConfig() + { + unset($this->cloud_run_config); + } + + /** + * Configuration for the Cloud Run addon, which allows the user to use a + * managed Knative service. + * + * Generated from protobuf field .google.container.v1.CloudRunConfig cloud_run_config = 7; + * @param \Google\Cloud\Container\V1\CloudRunConfig $var + * @return $this + */ + public function setCloudRunConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\CloudRunConfig::class); + $this->cloud_run_config = $var; + + return $this; + } + + /** + * Configuration for NodeLocalDNS, a dns cache running on cluster nodes + * + * Generated from protobuf field .google.container.v1.DnsCacheConfig dns_cache_config = 8; + * @return \Google\Cloud\Container\V1\DnsCacheConfig|null + */ + public function getDnsCacheConfig() + { + return $this->dns_cache_config; + } + + public function hasDnsCacheConfig() + { + return isset($this->dns_cache_config); + } + + public function clearDnsCacheConfig() + { + unset($this->dns_cache_config); + } + + /** + * Configuration for NodeLocalDNS, a dns cache running on cluster nodes + * + * Generated from protobuf field .google.container.v1.DnsCacheConfig dns_cache_config = 8; + * @param \Google\Cloud\Container\V1\DnsCacheConfig $var + * @return $this + */ + public function setDnsCacheConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\DnsCacheConfig::class); + $this->dns_cache_config = $var; + + return $this; + } + + /** + * Configuration for the ConfigConnector add-on, a Kubernetes + * extension to manage hosted GCP services through the Kubernetes API + * + * Generated from protobuf field .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + * @return \Google\Cloud\Container\V1\ConfigConnectorConfig|null + */ + public function getConfigConnectorConfig() + { + return $this->config_connector_config; + } + + public function hasConfigConnectorConfig() + { + return isset($this->config_connector_config); + } + + public function clearConfigConnectorConfig() + { + unset($this->config_connector_config); + } + + /** + * Configuration for the ConfigConnector add-on, a Kubernetes + * extension to manage hosted GCP services through the Kubernetes API + * + * Generated from protobuf field .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + * @param \Google\Cloud\Container\V1\ConfigConnectorConfig $var + * @return $this + */ + public function setConfigConnectorConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ConfigConnectorConfig::class); + $this->config_connector_config = $var; + + return $this; + } + + /** + * Configuration for the Compute Engine Persistent Disk CSI driver. + * + * Generated from protobuf field .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * @return \Google\Cloud\Container\V1\GcePersistentDiskCsiDriverConfig|null + */ + public function getGcePersistentDiskCsiDriverConfig() + { + return $this->gce_persistent_disk_csi_driver_config; + } + + public function hasGcePersistentDiskCsiDriverConfig() + { + return isset($this->gce_persistent_disk_csi_driver_config); + } + + public function clearGcePersistentDiskCsiDriverConfig() + { + unset($this->gce_persistent_disk_csi_driver_config); + } + + /** + * Configuration for the Compute Engine Persistent Disk CSI driver. + * + * Generated from protobuf field .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * @param \Google\Cloud\Container\V1\GcePersistentDiskCsiDriverConfig $var + * @return $this + */ + public function setGcePersistentDiskCsiDriverConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GcePersistentDiskCsiDriverConfig::class); + $this->gce_persistent_disk_csi_driver_config = $var; + + return $this; + } + + /** + * Configuration for the GCP Filestore CSI driver. + * + * Generated from protobuf field .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * @return \Google\Cloud\Container\V1\GcpFilestoreCsiDriverConfig|null + */ + public function getGcpFilestoreCsiDriverConfig() + { + return $this->gcp_filestore_csi_driver_config; + } + + public function hasGcpFilestoreCsiDriverConfig() + { + return isset($this->gcp_filestore_csi_driver_config); + } + + public function clearGcpFilestoreCsiDriverConfig() + { + unset($this->gcp_filestore_csi_driver_config); + } + + /** + * Configuration for the GCP Filestore CSI driver. + * + * Generated from protobuf field .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * @param \Google\Cloud\Container\V1\GcpFilestoreCsiDriverConfig $var + * @return $this + */ + public function setGcpFilestoreCsiDriverConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GcpFilestoreCsiDriverConfig::class); + $this->gcp_filestore_csi_driver_config = $var; + + return $this; + } + + /** + * Configuration for the Backup for GKE agent addon. + * + * Generated from protobuf field .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; + * @return \Google\Cloud\Container\V1\GkeBackupAgentConfig|null + */ + public function getGkeBackupAgentConfig() + { + return $this->gke_backup_agent_config; + } + + public function hasGkeBackupAgentConfig() + { + return isset($this->gke_backup_agent_config); + } + + public function clearGkeBackupAgentConfig() + { + unset($this->gke_backup_agent_config); + } + + /** + * Configuration for the Backup for GKE agent addon. + * + * Generated from protobuf field .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; + * @param \Google\Cloud\Container\V1\GkeBackupAgentConfig $var + * @return $this + */ + public function setGkeBackupAgentConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GkeBackupAgentConfig::class); + $this->gke_backup_agent_config = $var; + + return $this; + } + +} + 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..772257bb3fc1 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutoprovisioningNodePoolDefaults.php @@ -0,0 +1,493 @@ +google.container.v1.AutoprovisioningNodePoolDefaults + */ +class AutoprovisioningNodePoolDefaults extends \Google\Protobuf\Internal\Message +{ + /** + * Scopes that are used by NAP when creating node pools. + * + * Generated from protobuf field repeated string oauth_scopes = 1; + */ + private $oauth_scopes; + /** + * The Google Cloud Platform Service Account to be used by the node VMs. + * + * Generated from protobuf field string service_account = 2; + */ + protected $service_account = ''; + /** + * Specifies the upgrade settings for NAP created node pools + * + * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + protected $upgrade_settings = null; + /** + * Specifies the node management options for NAP created node-pools. + * + * Generated from protobuf field .google.container.v1.NodeManagement management = 4; + */ + protected $management = null; + /** + * Deprecated. Minimum CPU platform to be used for NAP created node pools. + * The instance may be scheduled on the specified or newer CPU platform. + * Applicable values are the friendly names of CPU platforms, such as + * minCpuPlatform: Intel Haswell or + * minCpuPlatform: Intel Sandy Bridge. For more + * information, read [how to specify min CPU + * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). + * This field is deprecated, min_cpu_platform should be specified using + * `cloud.google.com/requested-min-cpu-platform` label selector on the pod. + * To unset the min cpu platform field pass "automatic" + * as field value. + * + * Generated from protobuf field string min_cpu_platform = 5 [deprecated = true]; + * @deprecated + */ + protected $min_cpu_platform = ''; + /** + * Size of the disk attached to each node, specified in GB. + * The smallest allowed disk size is 10GB. + * If unspecified, the default disk size is 100GB. + * + * Generated from protobuf field int32 disk_size_gb = 6; + */ + protected $disk_size_gb = 0; + /** + * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or + * 'pd-balanced') + * If unspecified, the default disk type is 'pd-standard' + * + * Generated from protobuf field string disk_type = 7; + */ + protected $disk_type = ''; + /** + * Shielded Instance options. + * + * Generated from protobuf field .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + protected $shielded_instance_config = null; + /** + * The Customer Managed Encryption Key used to encrypt the boot disk attached + * to each node in the node pool. This should be of the form + * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. + * For more information about protecting resources with Cloud KMS Keys please + * see: + * https://cloud.google.com/compute/docs/disks/customer-managed-encryption + * + * Generated from protobuf field string boot_disk_kms_key = 9; + */ + protected $boot_disk_kms_key = ''; + /** + * The image type to use for NAP created node. Please see + * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for + * available image types. + * + * Generated from protobuf field string image_type = 10; + */ + protected $image_type = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $oauth_scopes + * Scopes that are used by NAP when creating node pools. + * @type string $service_account + * The Google Cloud Platform Service Account to be used by the node VMs. + * @type \Google\Cloud\Container\V1\NodePool\UpgradeSettings $upgrade_settings + * Specifies the upgrade settings for NAP created node pools + * @type \Google\Cloud\Container\V1\NodeManagement $management + * Specifies the node management options for NAP created node-pools. + * @type string $min_cpu_platform + * Deprecated. Minimum CPU platform to be used for NAP created node pools. + * The instance may be scheduled on the specified or newer CPU platform. + * Applicable values are the friendly names of CPU platforms, such as + * minCpuPlatform: Intel Haswell or + * minCpuPlatform: Intel Sandy Bridge. For more + * information, read [how to specify min CPU + * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). + * This field is deprecated, min_cpu_platform should be specified using + * `cloud.google.com/requested-min-cpu-platform` label selector on the pod. + * To unset the min cpu platform field pass "automatic" + * as field value. + * @type int $disk_size_gb + * Size of the disk attached to each node, specified in GB. + * The smallest allowed disk size is 10GB. + * If unspecified, the default disk size is 100GB. + * @type string $disk_type + * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or + * 'pd-balanced') + * If unspecified, the default disk type is 'pd-standard' + * @type \Google\Cloud\Container\V1\ShieldedInstanceConfig $shielded_instance_config + * Shielded Instance options. + * @type string $boot_disk_kms_key + * The Customer Managed Encryption Key used to encrypt the boot disk attached + * to each node in the node pool. This should be of the form + * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. + * For more information about protecting resources with Cloud KMS Keys please + * see: + * https://cloud.google.com/compute/docs/disks/customer-managed-encryption + * @type string $image_type + * The image type to use for NAP created node. Please see + * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for + * available image types. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Scopes that are used by NAP when creating node pools. + * + * Generated from protobuf field repeated string oauth_scopes = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOauthScopes() + { + return $this->oauth_scopes; + } + + /** + * Scopes that are used by NAP when creating node pools. + * + * Generated from protobuf field repeated string oauth_scopes = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOauthScopes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->oauth_scopes = $arr; + + return $this; + } + + /** + * The Google Cloud Platform Service Account to be used by the node VMs. + * + * Generated from protobuf field string service_account = 2; + * @return string + */ + public function getServiceAccount() + { + return $this->service_account; + } + + /** + * The Google Cloud Platform Service Account to be used by the node VMs. + * + * Generated from protobuf field string service_account = 2; + * @param string $var + * @return $this + */ + public function setServiceAccount($var) + { + GPBUtil::checkString($var, True); + $this->service_account = $var; + + return $this; + } + + /** + * Specifies the upgrade settings for NAP created node pools + * + * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + * @return \Google\Cloud\Container\V1\NodePool\UpgradeSettings|null + */ + public function getUpgradeSettings() + { + return $this->upgrade_settings; + } + + public function hasUpgradeSettings() + { + return isset($this->upgrade_settings); + } + + public function clearUpgradeSettings() + { + unset($this->upgrade_settings); + } + + /** + * Specifies the upgrade settings for NAP created node pools + * + * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + * @param \Google\Cloud\Container\V1\NodePool\UpgradeSettings $var + * @return $this + */ + public function setUpgradeSettings($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool\UpgradeSettings::class); + $this->upgrade_settings = $var; + + return $this; + } + + /** + * Specifies the node management options for NAP created node-pools. + * + * Generated from protobuf field .google.container.v1.NodeManagement management = 4; + * @return \Google\Cloud\Container\V1\NodeManagement|null + */ + public function getManagement() + { + return $this->management; + } + + public function hasManagement() + { + return isset($this->management); + } + + public function clearManagement() + { + unset($this->management); + } + + /** + * Specifies the node management options for NAP created node-pools. + * + * Generated from protobuf field .google.container.v1.NodeManagement management = 4; + * @param \Google\Cloud\Container\V1\NodeManagement $var + * @return $this + */ + public function setManagement($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeManagement::class); + $this->management = $var; + + return $this; + } + + /** + * Deprecated. Minimum CPU platform to be used for NAP created node pools. + * The instance may be scheduled on the specified or newer CPU platform. + * Applicable values are the friendly names of CPU platforms, such as + * minCpuPlatform: Intel Haswell or + * minCpuPlatform: Intel Sandy Bridge. For more + * information, read [how to specify min CPU + * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). + * This field is deprecated, min_cpu_platform should be specified using + * `cloud.google.com/requested-min-cpu-platform` label selector on the pod. + * To unset the min cpu platform field pass "automatic" + * as field value. + * + * Generated from protobuf field string min_cpu_platform = 5 [deprecated = true]; + * @return string + * @deprecated + */ + public function getMinCpuPlatform() + { + @trigger_error('min_cpu_platform is deprecated.', E_USER_DEPRECATED); + return $this->min_cpu_platform; + } + + /** + * Deprecated. Minimum CPU platform to be used for NAP created node pools. + * The instance may be scheduled on the specified or newer CPU platform. + * Applicable values are the friendly names of CPU platforms, such as + * minCpuPlatform: Intel Haswell or + * minCpuPlatform: Intel Sandy Bridge. For more + * information, read [how to specify min CPU + * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). + * This field is deprecated, min_cpu_platform should be specified using + * `cloud.google.com/requested-min-cpu-platform` label selector on the pod. + * To unset the min cpu platform field pass "automatic" + * as field value. + * + * Generated from protobuf field string min_cpu_platform = 5 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setMinCpuPlatform($var) + { + @trigger_error('min_cpu_platform is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->min_cpu_platform = $var; + + return $this; + } + + /** + * Size of the disk attached to each node, specified in GB. + * The smallest allowed disk size is 10GB. + * If unspecified, the default disk size is 100GB. + * + * Generated from protobuf field int32 disk_size_gb = 6; + * @return int + */ + public function getDiskSizeGb() + { + return $this->disk_size_gb; + } + + /** + * Size of the disk attached to each node, specified in GB. + * The smallest allowed disk size is 10GB. + * If unspecified, the default disk size is 100GB. + * + * Generated from protobuf field int32 disk_size_gb = 6; + * @param int $var + * @return $this + */ + public function setDiskSizeGb($var) + { + GPBUtil::checkInt32($var); + $this->disk_size_gb = $var; + + return $this; + } + + /** + * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or + * 'pd-balanced') + * If unspecified, the default disk type is 'pd-standard' + * + * Generated from protobuf field string disk_type = 7; + * @return string + */ + public function getDiskType() + { + return $this->disk_type; + } + + /** + * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or + * 'pd-balanced') + * If unspecified, the default disk type is 'pd-standard' + * + * Generated from protobuf field string disk_type = 7; + * @param string $var + * @return $this + */ + public function setDiskType($var) + { + GPBUtil::checkString($var, True); + $this->disk_type = $var; + + return $this; + } + + /** + * Shielded Instance options. + * + * Generated from protobuf field .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + * @return \Google\Cloud\Container\V1\ShieldedInstanceConfig|null + */ + public function getShieldedInstanceConfig() + { + return $this->shielded_instance_config; + } + + public function hasShieldedInstanceConfig() + { + return isset($this->shielded_instance_config); + } + + public function clearShieldedInstanceConfig() + { + unset($this->shielded_instance_config); + } + + /** + * Shielded Instance options. + * + * Generated from protobuf field .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + * @param \Google\Cloud\Container\V1\ShieldedInstanceConfig $var + * @return $this + */ + public function setShieldedInstanceConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ShieldedInstanceConfig::class); + $this->shielded_instance_config = $var; + + return $this; + } + + /** + * The Customer Managed Encryption Key used to encrypt the boot disk attached + * to each node in the node pool. This should be of the form + * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. + * For more information about protecting resources with Cloud KMS Keys please + * see: + * https://cloud.google.com/compute/docs/disks/customer-managed-encryption + * + * Generated from protobuf field string boot_disk_kms_key = 9; + * @return string + */ + public function getBootDiskKmsKey() + { + return $this->boot_disk_kms_key; + } + + /** + * The Customer Managed Encryption Key used to encrypt the boot disk attached + * to each node in the node pool. This should be of the form + * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. + * For more information about protecting resources with Cloud KMS Keys please + * see: + * https://cloud.google.com/compute/docs/disks/customer-managed-encryption + * + * Generated from protobuf field string boot_disk_kms_key = 9; + * @param string $var + * @return $this + */ + public function setBootDiskKmsKey($var) + { + GPBUtil::checkString($var, True); + $this->boot_disk_kms_key = $var; + + return $this; + } + + /** + * The image type to use for NAP created node. Please see + * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for + * available image types. + * + * Generated from protobuf field string image_type = 10; + * @return string + */ + public function getImageType() + { + return $this->image_type; + } + + /** + * The image type to use for NAP created node. Please see + * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for + * available image types. + * + * Generated from protobuf field string image_type = 10; + * @param string $var + * @return $this + */ + public function setImageType($var) + { + GPBUtil::checkString($var, True); + $this->image_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization.php new file mode 100644 index 000000000000..d97177fdd9b4 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization.php @@ -0,0 +1,118 @@ +google.container.v1.BinaryAuthorization + */ +class BinaryAuthorization extends \Google\Protobuf\Internal\Message +{ + /** + * This field is deprecated. Leave this unset and instead configure + * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to + * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored. + * + * Generated from protobuf field bool enabled = 1 [deprecated = true]; + * @deprecated + */ + protected $enabled = false; + /** + * Mode of operation for binauthz policy evaluation. If unspecified, defaults + * to DISABLED. + * + * Generated from protobuf field .google.container.v1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; + */ + protected $evaluation_mode = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * This field is deprecated. Leave this unset and instead configure + * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to + * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored. + * @type int $evaluation_mode + * Mode of operation for binauthz policy evaluation. If unspecified, defaults + * to DISABLED. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * This field is deprecated. Leave this unset and instead configure + * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to + * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored. + * + * Generated from protobuf field bool enabled = 1 [deprecated = true]; + * @return bool + * @deprecated + */ + public function getEnabled() + { + @trigger_error('enabled is deprecated.', E_USER_DEPRECATED); + return $this->enabled; + } + + /** + * This field is deprecated. Leave this unset and instead configure + * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to + * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored. + * + * Generated from protobuf field bool enabled = 1 [deprecated = true]; + * @param bool $var + * @return $this + * @deprecated + */ + public function setEnabled($var) + { + @trigger_error('enabled is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + + /** + * Mode of operation for binauthz policy evaluation. If unspecified, defaults + * to DISABLED. + * + * Generated from protobuf field .google.container.v1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; + * @return int + */ + public function getEvaluationMode() + { + return $this->evaluation_mode; + } + + /** + * Mode of operation for binauthz policy evaluation. If unspecified, defaults + * to DISABLED. + * + * Generated from protobuf field .google.container.v1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; + * @param int $var + * @return $this + */ + public function setEvaluationMode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\BinaryAuthorization\EvaluationMode::class); + $this->evaluation_mode = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization/EvaluationMode.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization/EvaluationMode.php new file mode 100644 index 000000000000..425ec404c0bf --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization/EvaluationMode.php @@ -0,0 +1,66 @@ +google.container.v1.BinaryAuthorization.EvaluationMode + */ +class EvaluationMode +{ + /** + * Default value + * + * Generated from protobuf enum EVALUATION_MODE_UNSPECIFIED = 0; + */ + const EVALUATION_MODE_UNSPECIFIED = 0; + /** + * Disable BinaryAuthorization + * + * Generated from protobuf enum DISABLED = 1; + */ + const DISABLED = 1; + /** + * Enforce Kubernetes admission requests with BinaryAuthorization using the + * project's singleton policy. This is equivalent to setting the + * enabled boolean to true. + * + * Generated from protobuf enum PROJECT_SINGLETON_POLICY_ENFORCE = 2; + */ + const PROJECT_SINGLETON_POLICY_ENFORCE = 2; + + private static $valueToName = [ + self::EVALUATION_MODE_UNSPECIFIED => 'EVALUATION_MODE_UNSPECIFIED', + self::DISABLED => 'DISABLED', + self::PROJECT_SINGLETON_POLICY_ENFORCE => 'PROJECT_SINGLETON_POLICY_ENFORCE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(EvaluationMode::class, \Google\Cloud\Container\V1\BinaryAuthorization_EvaluationMode::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization_EvaluationMode.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization_EvaluationMode.php new file mode 100644 index 000000000000..9db010fe6511 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization_EvaluationMode.php @@ -0,0 +1,16 @@ +google.container.v1.BlueGreenSettings + */ +class BlueGreenSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Time needed after draining entire blue pool. After this period, blue pool + * will be cleaned up. + * + * Generated from protobuf field optional .google.protobuf.Duration node_pool_soak_duration = 2; + */ + protected $node_pool_soak_duration = null; + protected $rollout_policy; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Container\V1\BlueGreenSettings\StandardRolloutPolicy $standard_rollout_policy + * Standard policy for the blue-green upgrade. + * @type \Google\Protobuf\Duration $node_pool_soak_duration + * Time needed after draining entire blue pool. After this period, blue pool + * will be cleaned up. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Standard policy for the blue-green upgrade. + * + * Generated from protobuf field .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; + * @return \Google\Cloud\Container\V1\BlueGreenSettings\StandardRolloutPolicy|null + */ + public function getStandardRolloutPolicy() + { + return $this->readOneof(1); + } + + public function hasStandardRolloutPolicy() + { + return $this->hasOneof(1); + } + + /** + * Standard policy for the blue-green upgrade. + * + * Generated from protobuf field .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; + * @param \Google\Cloud\Container\V1\BlueGreenSettings\StandardRolloutPolicy $var + * @return $this + */ + public function setStandardRolloutPolicy($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\BlueGreenSettings\StandardRolloutPolicy::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Time needed after draining entire blue pool. After this period, blue pool + * will be cleaned up. + * + * Generated from protobuf field optional .google.protobuf.Duration node_pool_soak_duration = 2; + * @return \Google\Protobuf\Duration|null + */ + public function getNodePoolSoakDuration() + { + return $this->node_pool_soak_duration; + } + + public function hasNodePoolSoakDuration() + { + return isset($this->node_pool_soak_duration); + } + + public function clearNodePoolSoakDuration() + { + unset($this->node_pool_soak_duration); + } + + /** + * Time needed after draining entire blue pool. After this period, blue pool + * will be cleaned up. + * + * Generated from protobuf field optional .google.protobuf.Duration node_pool_soak_duration = 2; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setNodePoolSoakDuration($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->node_pool_soak_duration = $var; + + return $this; + } + + /** + * @return string + */ + public function getRolloutPolicy() + { + return $this->whichOneof("rollout_policy"); + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings/StandardRolloutPolicy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings/StandardRolloutPolicy.php new file mode 100644 index 000000000000..8008e05364d2 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings/StandardRolloutPolicy.php @@ -0,0 +1,158 @@ +google.container.v1.BlueGreenSettings.StandardRolloutPolicy + */ +class StandardRolloutPolicy extends \Google\Protobuf\Internal\Message +{ + /** + * Soak time after each batch gets drained. Default to zero. + * + * Generated from protobuf field optional .google.protobuf.Duration batch_soak_duration = 3; + */ + protected $batch_soak_duration = null; + protected $update_batch_size; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $batch_percentage + * Percentage of the blue pool nodes to drain in a batch. + * The range of this field should be (0.0, 1.0]. + * @type int $batch_node_count + * Number of blue nodes to drain in a batch. + * @type \Google\Protobuf\Duration $batch_soak_duration + * Soak time after each batch gets drained. Default to zero. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Percentage of the blue pool nodes to drain in a batch. + * The range of this field should be (0.0, 1.0]. + * + * Generated from protobuf field float batch_percentage = 1; + * @return float + */ + public function getBatchPercentage() + { + return $this->readOneof(1); + } + + public function hasBatchPercentage() + { + return $this->hasOneof(1); + } + + /** + * Percentage of the blue pool nodes to drain in a batch. + * The range of this field should be (0.0, 1.0]. + * + * Generated from protobuf field float batch_percentage = 1; + * @param float $var + * @return $this + */ + public function setBatchPercentage($var) + { + GPBUtil::checkFloat($var); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Number of blue nodes to drain in a batch. + * + * Generated from protobuf field int32 batch_node_count = 2; + * @return int + */ + public function getBatchNodeCount() + { + return $this->readOneof(2); + } + + public function hasBatchNodeCount() + { + return $this->hasOneof(2); + } + + /** + * Number of blue nodes to drain in a batch. + * + * Generated from protobuf field int32 batch_node_count = 2; + * @param int $var + * @return $this + */ + public function setBatchNodeCount($var) + { + GPBUtil::checkInt32($var); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Soak time after each batch gets drained. Default to zero. + * + * Generated from protobuf field optional .google.protobuf.Duration batch_soak_duration = 3; + * @return \Google\Protobuf\Duration|null + */ + public function getBatchSoakDuration() + { + return $this->batch_soak_duration; + } + + public function hasBatchSoakDuration() + { + return isset($this->batch_soak_duration); + } + + public function clearBatchSoakDuration() + { + unset($this->batch_soak_duration); + } + + /** + * Soak time after each batch gets drained. Default to zero. + * + * Generated from protobuf field optional .google.protobuf.Duration batch_soak_duration = 3; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setBatchSoakDuration($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->batch_soak_duration = $var; + + return $this; + } + + /** + * @return string + */ + public function getUpdateBatchSize() + { + return $this->whichOneof("update_batch_size"); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(StandardRolloutPolicy::class, \Google\Cloud\Container\V1\BlueGreenSettings_StandardRolloutPolicy::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings_StandardRolloutPolicy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings_StandardRolloutPolicy.php new file mode 100644 index 000000000000..edef2c1369d9 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings_StandardRolloutPolicy.php @@ -0,0 +1,16 @@ +google.container.v1.CancelOperationRequest + */ +class CancelOperationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * operation resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The server-assigned `name` of the operation. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string operation_id = 3 [deprecated = true]; + * @deprecated + */ + protected $operation_id = ''; + /** + * The name (project, location, operation id) of the operation to cancel. + * Specified in the format `projects/*/locations/*/operations/*`. + * + * Generated from protobuf field string name = 4; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * operation resides. This field has been deprecated and replaced by the name + * field. + * @type string $operation_id + * Deprecated. The server-assigned `name` of the operation. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, operation id) of the operation to cancel. + * Specified in the format `projects/*/locations/*/operations/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * operation resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * operation resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The server-assigned `name` of the operation. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string operation_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getOperationId() + { + @trigger_error('operation_id is deprecated.', E_USER_DEPRECATED); + return $this->operation_id; + } + + /** + * Deprecated. The server-assigned `name` of the operation. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string operation_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setOperationId($var) + { + @trigger_error('operation_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->operation_id = $var; + + return $this; + } + + /** + * The name (project, location, operation id) of the operation to cancel. + * Specified in the format `projects/*/locations/*/operations/*`. + * + * Generated from protobuf field string name = 4; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, operation id) of the operation to cancel. + * Specified in the format `projects/*/locations/*/operations/*`. + * + * Generated from protobuf field string name = 4; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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; + /** + * Configuration for the fine-grained cost management feature. + * + * Generated from protobuf field .google.container.v1.CostManagementConfig cost_management_config = 45; + */ + protected $cost_management_config = null; + /** + * Notification configuration of the cluster. + * + * Generated from protobuf field .google.container.v1.NotificationConfig notification_config = 49; + */ + protected $notification_config = null; + /** + * Configuration of Confidential Nodes. + * All the nodes in the cluster will be Confidential VM once enabled. + * + * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 50; + */ + protected $confidential_nodes = null; + /** + * Configuration for Identity Service component. + * + * Generated from protobuf field .google.container.v1.IdentityServiceConfig identity_service_config = 54; + */ + protected $identity_service_config = null; + /** + * [Output only] Server-defined URL for the resource. + * + * Generated from protobuf field string self_link = 100; + */ + protected $self_link = ''; + /** + * [Output only] The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field is deprecated, use location instead. + * + * Generated from protobuf field string zone = 101 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * [Output only] The IP address of this cluster's master endpoint. + * The endpoint can be accessed from the internet at + * `https://username:password@endpoint/`. + * See the `masterAuth` property of this resource for username and + * password information. + * + * Generated from protobuf field string endpoint = 102; + */ + protected $endpoint = ''; + /** + * The initial Kubernetes version for this cluster. Valid versions are those + * found in validMasterVersions returned by getServerConfig. The version can + * be upgraded over time; such upgrades are reflected in + * currentMasterVersion and currentNodeVersion. + * Users may specify either explicit versions offered by + * Kubernetes Engine or version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "","-": picks the default Kubernetes version + * + * Generated from protobuf field string initial_cluster_version = 103; + */ + protected $initial_cluster_version = ''; + /** + * [Output only] The current software version of the master endpoint. + * + * Generated from protobuf field string current_master_version = 104; + */ + protected $current_master_version = ''; + /** + * [Output only] Deprecated, use + * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools) + * instead. The current version of the node software components. If they are + * currently at multiple versions because they're in the process of being + * upgraded, this reflects the minimum version of all nodes. + * + * Generated from protobuf field string current_node_version = 105 [deprecated = true]; + * @deprecated + */ + protected $current_node_version = ''; + /** + * [Output only] The time the cluster was created, in + * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * + * Generated from protobuf field string create_time = 106; + */ + protected $create_time = ''; + /** + * [Output only] The current status of this cluster. + * + * Generated from protobuf field .google.container.v1.Cluster.Status status = 107; + */ + protected $status = 0; + /** + * [Output only] Deprecated. Use conditions instead. + * Additional information about the current status of this + * cluster, if available. + * + * Generated from protobuf field string status_message = 108 [deprecated = true]; + * @deprecated + */ + protected $status_message = ''; + /** + * [Output only] The size of the address space on each node for hosting + * containers. This is provisioned from within the `container_ipv4_cidr` + * range. This field will only be set when cluster is in route-based network + * mode. + * + * Generated from protobuf field int32 node_ipv4_cidr_size = 109; + */ + protected $node_ipv4_cidr_size = 0; + /** + * [Output only] The IP address range of the Kubernetes services in + * this cluster, in + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `1.2.3.4/29`). Service addresses are + * typically put in the last `/16` from the container CIDR. + * + * Generated from protobuf field string services_ipv4_cidr = 110; + */ + protected $services_ipv4_cidr = ''; + /** + * Deprecated. Use node_pools.instance_group_urls. + * + * Generated from protobuf field repeated string instance_group_urls = 111 [deprecated = true]; + * @deprecated + */ + private $instance_group_urls; + /** + * [Output only] The number of nodes currently in the cluster. Deprecated. + * Call Kubernetes API directly to retrieve node information. + * + * Generated from protobuf field int32 current_node_count = 112 [deprecated = true]; + * @deprecated + */ + protected $current_node_count = 0; + /** + * [Output only] The time the cluster will be automatically + * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * + * Generated from protobuf field string expire_time = 113; + */ + protected $expire_time = ''; + /** + * [Output only] The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + * or + * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + * in which the cluster resides. + * + * Generated from protobuf field string location = 114; + */ + protected $location = ''; + /** + * Enable the ability to use Cloud TPUs in this cluster. + * + * Generated from protobuf field bool enable_tpu = 115; + */ + protected $enable_tpu = false; + /** + * [Output only] The IP address range of the Cloud TPUs in this cluster, in + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `1.2.3.4/29`). + * + * Generated from protobuf field string tpu_ipv4_cidr_block = 116; + */ + protected $tpu_ipv4_cidr_block = ''; + /** + * Which conditions caused the current cluster state. + * + * Generated from protobuf field repeated .google.container.v1.StatusCondition conditions = 118; + */ + private $conditions; + /** + * Autopilot configuration for the cluster. + * + * Generated from protobuf field .google.container.v1.Autopilot autopilot = 128; + */ + protected $autopilot = null; + /** + * Output only. Unique id for the cluster. + * + * Generated from protobuf field string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $id = ''; + /** + * Default NodePool settings for the entire cluster. These settings are + * overridden if specified on the specific NodePool object. + * + * Generated from protobuf field optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; + */ + protected $node_pool_defaults = null; + /** + * Logging configuration for the cluster. + * + * Generated from protobuf field .google.container.v1.LoggingConfig logging_config = 132; + */ + protected $logging_config = null; + /** + * Monitoring configuration for the cluster. + * + * Generated from protobuf field .google.container.v1.MonitoringConfig monitoring_config = 133; + */ + protected $monitoring_config = null; + /** + * Node pool configs that apply to all auto-provisioned node pools + * in autopilot clusters and node auto-provisioning enabled clusters. + * + * Generated from protobuf field .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; + */ + protected $node_pool_auto_config = null; + /** + * This checksum is computed by the server based on the value of cluster + * fields, and may be sent on update requests to ensure the client has an + * up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 139; + */ + protected $etag = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of this cluster. The name must be unique within this project + * and location (e.g. zone or region), and can be up to 40 characters with + * the following restrictions: + * * Lowercase letters, numbers, and hyphens only. + * * Must start with a letter. + * * Must end with a number or a letter. + * @type string $description + * An optional description of this cluster. + * @type int $initial_node_count + * The number of nodes to create in this cluster. You must ensure that your + * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) + * is sufficient for this number of instances. You must also have available + * firewall and routes quota. + * For requests, this field should only be used in lieu of a + * "node_pool" object, since this configuration (along with the + * "node_config") will be used to create a "NodePool" object with an + * auto-generated name. Do not use this and a node_pool at the same time. + * This field is deprecated, use node_pool.initial_node_count instead. + * @type \Google\Cloud\Container\V1\NodeConfig $node_config + * Parameters used in creating the cluster's nodes. + * For requests, this field should only be used in lieu of a + * "node_pool" object, since this configuration (along with the + * "initial_node_count") will be used to create a "NodePool" object with an + * auto-generated name. Do not use this and a node_pool at the same time. + * For responses, this field will be populated with the node configuration of + * the first node pool. (For configuration of each node pool, see + * `node_pool.config`) + * If unspecified, the defaults are used. + * This field is deprecated, use node_pool.config instead. + * @type \Google\Cloud\Container\V1\MasterAuth $master_auth + * The authentication information for accessing the master endpoint. + * If unspecified, the defaults are used: + * For clusters before v1.12, if master_auth is unspecified, `username` will + * be set to "admin", a random password will be generated, and a client + * certificate will be issued. + * @type string $logging_service + * The logging service the cluster should use to write logs. + * Currently available options: + * * `logging.googleapis.com/kubernetes` - The Cloud Logging + * service with a Kubernetes-native resource model + * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + * available as of GKE 1.15). + * * `none` - no logs will be exported from the cluster. + * If left as an empty string,`logging.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. + * @type string $monitoring_service + * The monitoring service the cluster should use to write metrics. + * Currently available options: + * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + * service with a Kubernetes-native resource model + * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + * longer available as of GKE 1.15). + * * `none` - No metrics will be exported from the cluster. + * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. + * @type string $network + * The name of the Google Compute Engine + * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) + * to which the cluster is connected. If left unspecified, the `default` + * network will be used. + * @type string $cluster_ipv4_cidr + * The IP address range of the container pods in this cluster, in + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`). Leave blank to have + * one automatically chosen or specify a `/14` block in `10.0.0.0/8`. + * @type \Google\Cloud\Container\V1\AddonsConfig $addons_config + * Configurations for the various addons available to run in the cluster. + * @type string $subnetwork + * The name of the Google Compute Engine + * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which + * the cluster is connected. + * @type array<\Google\Cloud\Container\V1\NodePool>|\Google\Protobuf\Internal\RepeatedField $node_pools + * The node pools associated with this cluster. + * This field should not be set if "node_config" or "initial_node_count" are + * specified. + * @type array|\Google\Protobuf\Internal\RepeatedField $locations + * The list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster's nodes should be located. + * This field provides a default value if + * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) + * are not specified during node pool creation. + * Warning: changing cluster locations will update the + * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) + * of all node pools and will result in nodes being added and/or removed. + * @type bool $enable_kubernetes_alpha + * Kubernetes alpha features are enabled on this cluster. This includes alpha + * API groups (e.g. v1alpha1) and features that may not be production ready in + * the kubernetes version of the master and nodes. + * The cluster has no SLA for uptime and master/node upgrades are disabled. + * Alpha enabled clusters are automatically deleted thirty days after + * creation. + * @type array|\Google\Protobuf\Internal\MapField $resource_labels + * The resource labels for the cluster to use to annotate any related + * Google Compute Engine resources. + * @type string $label_fingerprint + * The fingerprint of the set of labels for this cluster. + * @type \Google\Cloud\Container\V1\LegacyAbac $legacy_abac + * Configuration for the legacy ABAC authorization mode. + * @type \Google\Cloud\Container\V1\NetworkPolicy $network_policy + * Configuration options for the NetworkPolicy feature. + * @type \Google\Cloud\Container\V1\IPAllocationPolicy $ip_allocation_policy + * Configuration for cluster IP allocation. + * @type \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig $master_authorized_networks_config + * The configuration options for master authorized networks feature. + * @type \Google\Cloud\Container\V1\MaintenancePolicy $maintenance_policy + * Configure the maintenance policy for this cluster. + * @type \Google\Cloud\Container\V1\BinaryAuthorization $binary_authorization + * Configuration for Binary Authorization. + * @type \Google\Cloud\Container\V1\ClusterAutoscaling $autoscaling + * Cluster-level autoscaling configuration. + * @type \Google\Cloud\Container\V1\NetworkConfig $network_config + * Configuration for cluster networking. + * @type \Google\Cloud\Container\V1\MaxPodsConstraint $default_max_pods_constraint + * The default constraint on the maximum number of pods that can be run + * simultaneously on a node in the node pool of this cluster. Only honored + * if cluster created with IP Alias support. + * @type \Google\Cloud\Container\V1\ResourceUsageExportConfig $resource_usage_export_config + * Configuration for exporting resource usages. Resource usage export is + * disabled when this config is unspecified. + * @type \Google\Cloud\Container\V1\AuthenticatorGroupsConfig $authenticator_groups_config + * Configuration controlling RBAC group membership information. + * @type \Google\Cloud\Container\V1\PrivateClusterConfig $private_cluster_config + * Configuration for private cluster. + * @type \Google\Cloud\Container\V1\DatabaseEncryption $database_encryption + * Configuration of etcd encryption. + * @type \Google\Cloud\Container\V1\VerticalPodAutoscaling $vertical_pod_autoscaling + * Cluster-level Vertical Pod Autoscaling configuration. + * @type \Google\Cloud\Container\V1\ShieldedNodes $shielded_nodes + * Shielded Nodes configuration. + * @type \Google\Cloud\Container\V1\ReleaseChannel $release_channel + * Release channel configuration. + * @type \Google\Cloud\Container\V1\WorkloadIdentityConfig $workload_identity_config + * Configuration for the use of Kubernetes Service Accounts in GCP IAM + * policies. + * @type \Google\Cloud\Container\V1\MeshCertificates $mesh_certificates + * Configuration for issuance of mTLS keys and certificates to Kubernetes + * pods. + * @type \Google\Cloud\Container\V1\CostManagementConfig $cost_management_config + * Configuration for the fine-grained cost management feature. + * @type \Google\Cloud\Container\V1\NotificationConfig $notification_config + * Notification configuration of the cluster. + * @type \Google\Cloud\Container\V1\ConfidentialNodes $confidential_nodes + * Configuration of Confidential Nodes. + * All the nodes in the cluster will be Confidential VM once enabled. + * @type \Google\Cloud\Container\V1\IdentityServiceConfig $identity_service_config + * Configuration for Identity Service component. + * @type string $self_link + * [Output only] Server-defined URL for the resource. + * @type string $zone + * [Output only] The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field is deprecated, use location instead. + * @type string $endpoint + * [Output only] The IP address of this cluster's master endpoint. + * The endpoint can be accessed from the internet at + * `https://username:password@endpoint/`. + * See the `masterAuth` property of this resource for username and + * password information. + * @type string $initial_cluster_version + * The initial Kubernetes version for this cluster. Valid versions are those + * found in validMasterVersions returned by getServerConfig. The version can + * be upgraded over time; such upgrades are reflected in + * currentMasterVersion and currentNodeVersion. + * Users may specify either explicit versions offered by + * Kubernetes Engine or version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "","-": picks the default Kubernetes version + * @type string $current_master_version + * [Output only] The current software version of the master endpoint. + * @type string $current_node_version + * [Output only] Deprecated, use + * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools) + * instead. The current version of the node software components. If they are + * currently at multiple versions because they're in the process of being + * upgraded, this reflects the minimum version of all nodes. + * @type string $create_time + * [Output only] The time the cluster was created, in + * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * @type int $status + * [Output only] The current status of this cluster. + * @type string $status_message + * [Output only] Deprecated. Use conditions instead. + * Additional information about the current status of this + * cluster, if available. + * @type int $node_ipv4_cidr_size + * [Output only] The size of the address space on each node for hosting + * containers. This is provisioned from within the `container_ipv4_cidr` + * range. This field will only be set when cluster is in route-based network + * mode. + * @type string $services_ipv4_cidr + * [Output only] The IP address range of the Kubernetes services in + * this cluster, in + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `1.2.3.4/29`). Service addresses are + * typically put in the last `/16` from the container CIDR. + * @type array|\Google\Protobuf\Internal\RepeatedField $instance_group_urls + * Deprecated. Use node_pools.instance_group_urls. + * @type int $current_node_count + * [Output only] The number of nodes currently in the cluster. Deprecated. + * Call Kubernetes API directly to retrieve node information. + * @type string $expire_time + * [Output only] The time the cluster will be automatically + * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * @type string $location + * [Output only] The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + * or + * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + * in which the cluster resides. + * @type bool $enable_tpu + * Enable the ability to use Cloud TPUs in this cluster. + * @type string $tpu_ipv4_cidr_block + * [Output only] The IP address range of the Cloud TPUs in this cluster, in + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `1.2.3.4/29`). + * @type array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $conditions + * Which conditions caused the current cluster state. + * @type \Google\Cloud\Container\V1\Autopilot $autopilot + * Autopilot configuration for the cluster. + * @type string $id + * Output only. Unique id for the cluster. + * @type \Google\Cloud\Container\V1\NodePoolDefaults $node_pool_defaults + * Default NodePool settings for the entire cluster. These settings are + * overridden if specified on the specific NodePool object. + * @type \Google\Cloud\Container\V1\LoggingConfig $logging_config + * Logging configuration for the cluster. + * @type \Google\Cloud\Container\V1\MonitoringConfig $monitoring_config + * Monitoring configuration for the cluster. + * @type \Google\Cloud\Container\V1\NodePoolAutoConfig $node_pool_auto_config + * Node pool configs that apply to all auto-provisioned node pools + * in autopilot clusters and node auto-provisioning enabled clusters. + * @type string $etag + * This checksum is computed by the server based on the value of cluster + * fields, and may be sent on update requests to ensure the client has an + * up-to-date value before proceeding. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The name of this cluster. The name must be unique within this project + * and location (e.g. zone or region), and can be up to 40 characters with + * the following restrictions: + * * Lowercase letters, numbers, and hyphens only. + * * Must start with a letter. + * * Must end with a number or a letter. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of this cluster. The name must be unique within this project + * and location (e.g. zone or region), and can be up to 40 characters with + * the following restrictions: + * * Lowercase letters, numbers, and hyphens only. + * * Must start with a letter. + * * Must end with a number or a letter. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * An optional description of this cluster. + * + * Generated from protobuf field string description = 2; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * An optional description of this cluster. + * + * Generated from protobuf field string description = 2; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * The number of nodes to create in this cluster. You must ensure that your + * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) + * is sufficient for this number of instances. You must also have available + * firewall and routes quota. + * For requests, this field should only be used in lieu of a + * "node_pool" object, since this configuration (along with the + * "node_config") will be used to create a "NodePool" object with an + * auto-generated name. Do not use this and a node_pool at the same time. + * This field is deprecated, use node_pool.initial_node_count instead. + * + * Generated from protobuf field int32 initial_node_count = 3 [deprecated = true]; + * @return int + * @deprecated + */ + public function getInitialNodeCount() + { + @trigger_error('initial_node_count is deprecated.', E_USER_DEPRECATED); + return $this->initial_node_count; + } + + /** + * The number of nodes to create in this cluster. You must ensure that your + * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) + * is sufficient for this number of instances. You must also have available + * firewall and routes quota. + * For requests, this field should only be used in lieu of a + * "node_pool" object, since this configuration (along with the + * "node_config") will be used to create a "NodePool" object with an + * auto-generated name. Do not use this and a node_pool at the same time. + * This field is deprecated, use node_pool.initial_node_count instead. + * + * Generated from protobuf field int32 initial_node_count = 3 [deprecated = true]; + * @param int $var + * @return $this + * @deprecated + */ + public function setInitialNodeCount($var) + { + @trigger_error('initial_node_count is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkInt32($var); + $this->initial_node_count = $var; + + return $this; + } + + /** + * Parameters used in creating the cluster's nodes. + * For requests, this field should only be used in lieu of a + * "node_pool" object, since this configuration (along with the + * "initial_node_count") will be used to create a "NodePool" object with an + * auto-generated name. Do not use this and a node_pool at the same time. + * For responses, this field will be populated with the node configuration of + * the first node pool. (For configuration of each node pool, see + * `node_pool.config`) + * If unspecified, the defaults are used. + * This field is deprecated, use node_pool.config instead. + * + * Generated from protobuf field .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; + * @return \Google\Cloud\Container\V1\NodeConfig|null + * @deprecated + */ + public function getNodeConfig() + { + @trigger_error('node_config is deprecated.', E_USER_DEPRECATED); + return $this->node_config; + } + + public function hasNodeConfig() + { + @trigger_error('node_config is deprecated.', E_USER_DEPRECATED); + return isset($this->node_config); + } + + public function clearNodeConfig() + { + @trigger_error('node_config is deprecated.', E_USER_DEPRECATED); + unset($this->node_config); + } + + /** + * Parameters used in creating the cluster's nodes. + * For requests, this field should only be used in lieu of a + * "node_pool" object, since this configuration (along with the + * "initial_node_count") will be used to create a "NodePool" object with an + * auto-generated name. Do not use this and a node_pool at the same time. + * For responses, this field will be populated with the node configuration of + * the first node pool. (For configuration of each node pool, see + * `node_pool.config`) + * If unspecified, the defaults are used. + * This field is deprecated, use node_pool.config instead. + * + * Generated from protobuf field .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; + * @param \Google\Cloud\Container\V1\NodeConfig $var + * @return $this + * @deprecated + */ + public function setNodeConfig($var) + { + @trigger_error('node_config is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeConfig::class); + $this->node_config = $var; + + return $this; + } + + /** + * The authentication information for accessing the master endpoint. + * If unspecified, the defaults are used: + * For clusters before v1.12, if master_auth is unspecified, `username` will + * be set to "admin", a random password will be generated, and a client + * certificate will be issued. + * + * Generated from protobuf field .google.container.v1.MasterAuth master_auth = 5; + * @return \Google\Cloud\Container\V1\MasterAuth|null + */ + public function getMasterAuth() + { + return $this->master_auth; + } + + public function hasMasterAuth() + { + return isset($this->master_auth); + } + + public function clearMasterAuth() + { + unset($this->master_auth); + } + + /** + * The authentication information for accessing the master endpoint. + * If unspecified, the defaults are used: + * For clusters before v1.12, if master_auth is unspecified, `username` will + * be set to "admin", a random password will be generated, and a client + * certificate will be issued. + * + * Generated from protobuf field .google.container.v1.MasterAuth master_auth = 5; + * @param \Google\Cloud\Container\V1\MasterAuth $var + * @return $this + */ + public function setMasterAuth($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MasterAuth::class); + $this->master_auth = $var; + + return $this; + } + + /** + * The logging service the cluster should use to write logs. + * Currently available options: + * * `logging.googleapis.com/kubernetes` - The Cloud Logging + * service with a Kubernetes-native resource model + * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + * available as of GKE 1.15). + * * `none` - no logs will be exported from the cluster. + * If left as an empty string,`logging.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. + * + * Generated from protobuf field string logging_service = 6; + * @return string + */ + public function getLoggingService() + { + return $this->logging_service; + } + + /** + * The logging service the cluster should use to write logs. + * Currently available options: + * * `logging.googleapis.com/kubernetes` - The Cloud Logging + * service with a Kubernetes-native resource model + * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + * available as of GKE 1.15). + * * `none` - no logs will be exported from the cluster. + * If left as an empty string,`logging.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. + * + * Generated from protobuf field string logging_service = 6; + * @param string $var + * @return $this + */ + public function setLoggingService($var) + { + GPBUtil::checkString($var, True); + $this->logging_service = $var; + + return $this; + } + + /** + * The monitoring service the cluster should use to write metrics. + * Currently available options: + * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + * service with a Kubernetes-native resource model + * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + * longer available as of GKE 1.15). + * * `none` - No metrics will be exported from the cluster. + * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. + * + * Generated from protobuf field string monitoring_service = 7; + * @return string + */ + public function getMonitoringService() + { + return $this->monitoring_service; + } + + /** + * The monitoring service the cluster should use to write metrics. + * Currently available options: + * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + * service with a Kubernetes-native resource model + * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + * longer available as of GKE 1.15). + * * `none` - No metrics will be exported from the cluster. + * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. + * + * Generated from protobuf field string monitoring_service = 7; + * @param string $var + * @return $this + */ + public function setMonitoringService($var) + { + GPBUtil::checkString($var, True); + $this->monitoring_service = $var; + + return $this; + } + + /** + * The name of the Google Compute Engine + * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) + * to which the cluster is connected. If left unspecified, the `default` + * network will be used. + * + * Generated from protobuf field string network = 8; + * @return string + */ + public function getNetwork() + { + return $this->network; + } + + /** + * The name of the Google Compute Engine + * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) + * to which the cluster is connected. If left unspecified, the `default` + * network will be used. + * + * Generated from protobuf field string network = 8; + * @param string $var + * @return $this + */ + public function setNetwork($var) + { + GPBUtil::checkString($var, True); + $this->network = $var; + + return $this; + } + + /** + * The IP address range of the container pods in this cluster, in + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`). Leave blank to have + * one automatically chosen or specify a `/14` block in `10.0.0.0/8`. + * + * Generated from protobuf field string cluster_ipv4_cidr = 9; + * @return string + */ + public function getClusterIpv4Cidr() + { + return $this->cluster_ipv4_cidr; + } + + /** + * The IP address range of the container pods in this cluster, in + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`). Leave blank to have + * one automatically chosen or specify a `/14` block in `10.0.0.0/8`. + * + * Generated from protobuf field string cluster_ipv4_cidr = 9; + * @param string $var + * @return $this + */ + public function setClusterIpv4Cidr($var) + { + GPBUtil::checkString($var, True); + $this->cluster_ipv4_cidr = $var; + + return $this; + } + + /** + * Configurations for the various addons available to run in the cluster. + * + * Generated from protobuf field .google.container.v1.AddonsConfig addons_config = 10; + * @return \Google\Cloud\Container\V1\AddonsConfig|null + */ + public function getAddonsConfig() + { + return $this->addons_config; + } + + public function hasAddonsConfig() + { + return isset($this->addons_config); + } + + public function clearAddonsConfig() + { + unset($this->addons_config); + } + + /** + * Configurations for the various addons available to run in the cluster. + * + * Generated from protobuf field .google.container.v1.AddonsConfig addons_config = 10; + * @param \Google\Cloud\Container\V1\AddonsConfig $var + * @return $this + */ + public function setAddonsConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AddonsConfig::class); + $this->addons_config = $var; + + return $this; + } + + /** + * The name of the Google Compute Engine + * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which + * the cluster is connected. + * + * Generated from protobuf field string subnetwork = 11; + * @return string + */ + public function getSubnetwork() + { + return $this->subnetwork; + } + + /** + * The name of the Google Compute Engine + * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which + * the cluster is connected. + * + * Generated from protobuf field string subnetwork = 11; + * @param string $var + * @return $this + */ + public function setSubnetwork($var) + { + GPBUtil::checkString($var, True); + $this->subnetwork = $var; + + return $this; + } + + /** + * The node pools associated with this cluster. + * This field should not be set if "node_config" or "initial_node_count" are + * specified. + * + * Generated from protobuf field repeated .google.container.v1.NodePool node_pools = 12; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getNodePools() + { + return $this->node_pools; + } + + /** + * The node pools associated with this cluster. + * This field should not be set if "node_config" or "initial_node_count" are + * specified. + * + * Generated from protobuf field repeated .google.container.v1.NodePool node_pools = 12; + * @param array<\Google\Cloud\Container\V1\NodePool>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setNodePools($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\NodePool::class); + $this->node_pools = $arr; + + return $this; + } + + /** + * The list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster's nodes should be located. + * This field provides a default value if + * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) + * are not specified during node pool creation. + * Warning: changing cluster locations will update the + * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) + * of all node pools and will result in nodes being added and/or removed. + * + * Generated from protobuf field repeated string locations = 13; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getLocations() + { + return $this->locations; + } + + /** + * The list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster's nodes should be located. + * This field provides a default value if + * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) + * are not specified during node pool creation. + * Warning: changing cluster locations will update the + * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) + * of all node pools and will result in nodes being added and/or removed. + * + * Generated from protobuf field repeated string locations = 13; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->locations = $arr; + + return $this; + } + + /** + * Kubernetes alpha features are enabled on this cluster. This includes alpha + * API groups (e.g. v1alpha1) and features that may not be production ready in + * the kubernetes version of the master and nodes. + * The cluster has no SLA for uptime and master/node upgrades are disabled. + * Alpha enabled clusters are automatically deleted thirty days after + * creation. + * + * Generated from protobuf field bool enable_kubernetes_alpha = 14; + * @return bool + */ + public function getEnableKubernetesAlpha() + { + return $this->enable_kubernetes_alpha; + } + + /** + * Kubernetes alpha features are enabled on this cluster. This includes alpha + * API groups (e.g. v1alpha1) and features that may not be production ready in + * the kubernetes version of the master and nodes. + * The cluster has no SLA for uptime and master/node upgrades are disabled. + * Alpha enabled clusters are automatically deleted thirty days after + * creation. + * + * Generated from protobuf field bool enable_kubernetes_alpha = 14; + * @param bool $var + * @return $this + */ + public function setEnableKubernetesAlpha($var) + { + GPBUtil::checkBool($var); + $this->enable_kubernetes_alpha = $var; + + return $this; + } + + /** + * The resource labels for the cluster to use to annotate any related + * Google Compute Engine resources. + * + * Generated from protobuf field map resource_labels = 15; + * @return \Google\Protobuf\Internal\MapField + */ + public function getResourceLabels() + { + return $this->resource_labels; + } + + /** + * The resource labels for the cluster to use to annotate any related + * Google Compute Engine resources. + * + * Generated from protobuf field map resource_labels = 15; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setResourceLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->resource_labels = $arr; + + return $this; + } + + /** + * The fingerprint of the set of labels for this cluster. + * + * Generated from protobuf field string label_fingerprint = 16; + * @return string + */ + public function getLabelFingerprint() + { + return $this->label_fingerprint; + } + + /** + * The fingerprint of the set of labels for this cluster. + * + * Generated from protobuf field string label_fingerprint = 16; + * @param string $var + * @return $this + */ + public function setLabelFingerprint($var) + { + GPBUtil::checkString($var, True); + $this->label_fingerprint = $var; + + return $this; + } + + /** + * Configuration for the legacy ABAC authorization mode. + * + * Generated from protobuf field .google.container.v1.LegacyAbac legacy_abac = 18; + * @return \Google\Cloud\Container\V1\LegacyAbac|null + */ + public function getLegacyAbac() + { + return $this->legacy_abac; + } + + public function hasLegacyAbac() + { + return isset($this->legacy_abac); + } + + public function clearLegacyAbac() + { + unset($this->legacy_abac); + } + + /** + * Configuration for the legacy ABAC authorization mode. + * + * Generated from protobuf field .google.container.v1.LegacyAbac legacy_abac = 18; + * @param \Google\Cloud\Container\V1\LegacyAbac $var + * @return $this + */ + public function setLegacyAbac($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LegacyAbac::class); + $this->legacy_abac = $var; + + return $this; + } + + /** + * Configuration options for the NetworkPolicy feature. + * + * Generated from protobuf field .google.container.v1.NetworkPolicy network_policy = 19; + * @return \Google\Cloud\Container\V1\NetworkPolicy|null + */ + public function getNetworkPolicy() + { + return $this->network_policy; + } + + public function hasNetworkPolicy() + { + return isset($this->network_policy); + } + + public function clearNetworkPolicy() + { + unset($this->network_policy); + } + + /** + * Configuration options for the NetworkPolicy feature. + * + * Generated from protobuf field .google.container.v1.NetworkPolicy network_policy = 19; + * @param \Google\Cloud\Container\V1\NetworkPolicy $var + * @return $this + */ + public function setNetworkPolicy($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkPolicy::class); + $this->network_policy = $var; + + return $this; + } + + /** + * Configuration for cluster IP allocation. + * + * Generated from protobuf field .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; + * @return \Google\Cloud\Container\V1\IPAllocationPolicy|null + */ + public function getIpAllocationPolicy() + { + return $this->ip_allocation_policy; + } + + public function hasIpAllocationPolicy() + { + return isset($this->ip_allocation_policy); + } + + public function clearIpAllocationPolicy() + { + unset($this->ip_allocation_policy); + } + + /** + * Configuration for cluster IP allocation. + * + * Generated from protobuf field .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; + * @param \Google\Cloud\Container\V1\IPAllocationPolicy $var + * @return $this + */ + public function setIpAllocationPolicy($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\IPAllocationPolicy::class); + $this->ip_allocation_policy = $var; + + return $this; + } + + /** + * The configuration options for master authorized networks feature. + * + * Generated from protobuf field .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * @return \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig|null + */ + public function getMasterAuthorizedNetworksConfig() + { + return $this->master_authorized_networks_config; + } + + public function hasMasterAuthorizedNetworksConfig() + { + return isset($this->master_authorized_networks_config); + } + + public function clearMasterAuthorizedNetworksConfig() + { + unset($this->master_authorized_networks_config); + } + + /** + * The configuration options for master authorized networks feature. + * + * Generated from protobuf field .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * @param \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig $var + * @return $this + */ + public function setMasterAuthorizedNetworksConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig::class); + $this->master_authorized_networks_config = $var; + + return $this; + } + + /** + * Configure the maintenance policy for this cluster. + * + * Generated from protobuf field .google.container.v1.MaintenancePolicy maintenance_policy = 23; + * @return \Google\Cloud\Container\V1\MaintenancePolicy|null + */ + public function getMaintenancePolicy() + { + return $this->maintenance_policy; + } + + public function hasMaintenancePolicy() + { + return isset($this->maintenance_policy); + } + + public function clearMaintenancePolicy() + { + unset($this->maintenance_policy); + } + + /** + * Configure the maintenance policy for this cluster. + * + * Generated from protobuf field .google.container.v1.MaintenancePolicy maintenance_policy = 23; + * @param \Google\Cloud\Container\V1\MaintenancePolicy $var + * @return $this + */ + public function setMaintenancePolicy($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MaintenancePolicy::class); + $this->maintenance_policy = $var; + + return $this; + } + + /** + * Configuration for Binary Authorization. + * + * Generated from protobuf field .google.container.v1.BinaryAuthorization binary_authorization = 24; + * @return \Google\Cloud\Container\V1\BinaryAuthorization|null + */ + public function getBinaryAuthorization() + { + return $this->binary_authorization; + } + + public function hasBinaryAuthorization() + { + return isset($this->binary_authorization); + } + + public function clearBinaryAuthorization() + { + unset($this->binary_authorization); + } + + /** + * Configuration for Binary Authorization. + * + * Generated from protobuf field .google.container.v1.BinaryAuthorization binary_authorization = 24; + * @param \Google\Cloud\Container\V1\BinaryAuthorization $var + * @return $this + */ + public function setBinaryAuthorization($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\BinaryAuthorization::class); + $this->binary_authorization = $var; + + return $this; + } + + /** + * Cluster-level autoscaling configuration. + * + * Generated from protobuf field .google.container.v1.ClusterAutoscaling autoscaling = 26; + * @return \Google\Cloud\Container\V1\ClusterAutoscaling|null + */ + public function getAutoscaling() + { + return $this->autoscaling; + } + + public function hasAutoscaling() + { + return isset($this->autoscaling); + } + + public function clearAutoscaling() + { + unset($this->autoscaling); + } + + /** + * Cluster-level autoscaling configuration. + * + * Generated from protobuf field .google.container.v1.ClusterAutoscaling autoscaling = 26; + * @param \Google\Cloud\Container\V1\ClusterAutoscaling $var + * @return $this + */ + public function setAutoscaling($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ClusterAutoscaling::class); + $this->autoscaling = $var; + + return $this; + } + + /** + * Configuration for cluster networking. + * + * Generated from protobuf field .google.container.v1.NetworkConfig network_config = 27; + * @return \Google\Cloud\Container\V1\NetworkConfig|null + */ + public function getNetworkConfig() + { + return $this->network_config; + } + + public function hasNetworkConfig() + { + return isset($this->network_config); + } + + public function clearNetworkConfig() + { + unset($this->network_config); + } + + /** + * Configuration for cluster networking. + * + * Generated from protobuf field .google.container.v1.NetworkConfig network_config = 27; + * @param \Google\Cloud\Container\V1\NetworkConfig $var + * @return $this + */ + public function setNetworkConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkConfig::class); + $this->network_config = $var; + + return $this; + } + + /** + * The default constraint on the maximum number of pods that can be run + * simultaneously on a node in the node pool of this cluster. Only honored + * if cluster created with IP Alias support. + * + * Generated from protobuf field .google.container.v1.MaxPodsConstraint default_max_pods_constraint = 30; + * @return \Google\Cloud\Container\V1\MaxPodsConstraint|null + */ + public function getDefaultMaxPodsConstraint() + { + return $this->default_max_pods_constraint; + } + + public function hasDefaultMaxPodsConstraint() + { + return isset($this->default_max_pods_constraint); + } + + public function clearDefaultMaxPodsConstraint() + { + unset($this->default_max_pods_constraint); + } + + /** + * The default constraint on the maximum number of pods that can be run + * simultaneously on a node in the node pool of this cluster. Only honored + * if cluster created with IP Alias support. + * + * Generated from protobuf field .google.container.v1.MaxPodsConstraint default_max_pods_constraint = 30; + * @param \Google\Cloud\Container\V1\MaxPodsConstraint $var + * @return $this + */ + public function setDefaultMaxPodsConstraint($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MaxPodsConstraint::class); + $this->default_max_pods_constraint = $var; + + return $this; + } + + /** + * Configuration for exporting resource usages. Resource usage export is + * disabled when this config is unspecified. + * + * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; + * @return \Google\Cloud\Container\V1\ResourceUsageExportConfig|null + */ + public function getResourceUsageExportConfig() + { + return $this->resource_usage_export_config; + } + + public function hasResourceUsageExportConfig() + { + return isset($this->resource_usage_export_config); + } + + public function clearResourceUsageExportConfig() + { + unset($this->resource_usage_export_config); + } + + /** + * Configuration for exporting resource usages. Resource usage export is + * disabled when this config is unspecified. + * + * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; + * @param \Google\Cloud\Container\V1\ResourceUsageExportConfig $var + * @return $this + */ + public function setResourceUsageExportConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ResourceUsageExportConfig::class); + $this->resource_usage_export_config = $var; + + return $this; + } + + /** + * Configuration controlling RBAC group membership information. + * + * Generated from protobuf field .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * @return \Google\Cloud\Container\V1\AuthenticatorGroupsConfig|null + */ + public function getAuthenticatorGroupsConfig() + { + return $this->authenticator_groups_config; + } + + public function hasAuthenticatorGroupsConfig() + { + return isset($this->authenticator_groups_config); + } + + public function clearAuthenticatorGroupsConfig() + { + unset($this->authenticator_groups_config); + } + + /** + * Configuration controlling RBAC group membership information. + * + * Generated from protobuf field .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * @param \Google\Cloud\Container\V1\AuthenticatorGroupsConfig $var + * @return $this + */ + public function setAuthenticatorGroupsConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AuthenticatorGroupsConfig::class); + $this->authenticator_groups_config = $var; + + return $this; + } + + /** + * Configuration for private cluster. + * + * Generated from protobuf field .google.container.v1.PrivateClusterConfig private_cluster_config = 37; + * @return \Google\Cloud\Container\V1\PrivateClusterConfig|null + */ + public function getPrivateClusterConfig() + { + return $this->private_cluster_config; + } + + public function hasPrivateClusterConfig() + { + return isset($this->private_cluster_config); + } + + public function clearPrivateClusterConfig() + { + unset($this->private_cluster_config); + } + + /** + * Configuration for private cluster. + * + * Generated from protobuf field .google.container.v1.PrivateClusterConfig private_cluster_config = 37; + * @param \Google\Cloud\Container\V1\PrivateClusterConfig $var + * @return $this + */ + public function setPrivateClusterConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\PrivateClusterConfig::class); + $this->private_cluster_config = $var; + + return $this; + } + + /** + * Configuration of etcd encryption. + * + * Generated from protobuf field .google.container.v1.DatabaseEncryption database_encryption = 38; + * @return \Google\Cloud\Container\V1\DatabaseEncryption|null + */ + public function getDatabaseEncryption() + { + return $this->database_encryption; + } + + public function hasDatabaseEncryption() + { + return isset($this->database_encryption); + } + + public function clearDatabaseEncryption() + { + unset($this->database_encryption); + } + + /** + * Configuration of etcd encryption. + * + * Generated from protobuf field .google.container.v1.DatabaseEncryption database_encryption = 38; + * @param \Google\Cloud\Container\V1\DatabaseEncryption $var + * @return $this + */ + public function setDatabaseEncryption($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\DatabaseEncryption::class); + $this->database_encryption = $var; + + return $this; + } + + /** + * Cluster-level Vertical Pod Autoscaling configuration. + * + * Generated from protobuf field .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + * @return \Google\Cloud\Container\V1\VerticalPodAutoscaling|null + */ + public function getVerticalPodAutoscaling() + { + return $this->vertical_pod_autoscaling; + } + + public function hasVerticalPodAutoscaling() + { + return isset($this->vertical_pod_autoscaling); + } + + public function clearVerticalPodAutoscaling() + { + unset($this->vertical_pod_autoscaling); + } + + /** + * Cluster-level Vertical Pod Autoscaling configuration. + * + * Generated from protobuf field .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + * @param \Google\Cloud\Container\V1\VerticalPodAutoscaling $var + * @return $this + */ + public function setVerticalPodAutoscaling($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\VerticalPodAutoscaling::class); + $this->vertical_pod_autoscaling = $var; + + return $this; + } + + /** + * Shielded Nodes configuration. + * + * Generated from protobuf field .google.container.v1.ShieldedNodes shielded_nodes = 40; + * @return \Google\Cloud\Container\V1\ShieldedNodes|null + */ + public function getShieldedNodes() + { + return $this->shielded_nodes; + } + + public function hasShieldedNodes() + { + return isset($this->shielded_nodes); + } + + public function clearShieldedNodes() + { + unset($this->shielded_nodes); + } + + /** + * Shielded Nodes configuration. + * + * Generated from protobuf field .google.container.v1.ShieldedNodes shielded_nodes = 40; + * @param \Google\Cloud\Container\V1\ShieldedNodes $var + * @return $this + */ + public function setShieldedNodes($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ShieldedNodes::class); + $this->shielded_nodes = $var; + + return $this; + } + + /** + * Release channel configuration. + * + * 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; + } + + /** + * Configuration for the fine-grained cost management feature. + * + * Generated from protobuf field .google.container.v1.CostManagementConfig cost_management_config = 45; + * @return \Google\Cloud\Container\V1\CostManagementConfig|null + */ + public function getCostManagementConfig() + { + return $this->cost_management_config; + } + + public function hasCostManagementConfig() + { + return isset($this->cost_management_config); + } + + public function clearCostManagementConfig() + { + unset($this->cost_management_config); + } + + /** + * Configuration for the fine-grained cost management feature. + * + * Generated from protobuf field .google.container.v1.CostManagementConfig cost_management_config = 45; + * @param \Google\Cloud\Container\V1\CostManagementConfig $var + * @return $this + */ + public function setCostManagementConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\CostManagementConfig::class); + $this->cost_management_config = $var; + + return $this; + } + + /** + * Notification configuration of the cluster. + * + * Generated from protobuf field .google.container.v1.NotificationConfig notification_config = 49; + * @return \Google\Cloud\Container\V1\NotificationConfig|null + */ + public function getNotificationConfig() + { + return $this->notification_config; + } + + public function hasNotificationConfig() + { + return isset($this->notification_config); + } + + public function clearNotificationConfig() + { + unset($this->notification_config); + } + + /** + * Notification configuration of the cluster. + * + * Generated from protobuf field .google.container.v1.NotificationConfig notification_config = 49; + * @param \Google\Cloud\Container\V1\NotificationConfig $var + * @return $this + */ + public function setNotificationConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NotificationConfig::class); + $this->notification_config = $var; + + return $this; + } + + /** + * Configuration of Confidential Nodes. + * All the nodes in the cluster will be Confidential VM once enabled. + * + * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 50; + * @return \Google\Cloud\Container\V1\ConfidentialNodes|null + */ + public function getConfidentialNodes() + { + return $this->confidential_nodes; + } + + public function hasConfidentialNodes() + { + return isset($this->confidential_nodes); + } + + public function clearConfidentialNodes() + { + unset($this->confidential_nodes); + } + + /** + * Configuration of Confidential Nodes. + * All the nodes in the cluster will be Confidential VM once enabled. + * + * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 50; + * @param \Google\Cloud\Container\V1\ConfidentialNodes $var + * @return $this + */ + public function setConfidentialNodes($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ConfidentialNodes::class); + $this->confidential_nodes = $var; + + return $this; + } + + /** + * Configuration for Identity Service component. + * + * Generated from protobuf field .google.container.v1.IdentityServiceConfig identity_service_config = 54; + * @return \Google\Cloud\Container\V1\IdentityServiceConfig|null + */ + public function getIdentityServiceConfig() + { + return $this->identity_service_config; + } + + public function hasIdentityServiceConfig() + { + return isset($this->identity_service_config); + } + + public function clearIdentityServiceConfig() + { + unset($this->identity_service_config); + } + + /** + * Configuration for Identity Service component. + * + * Generated from protobuf field .google.container.v1.IdentityServiceConfig identity_service_config = 54; + * @param \Google\Cloud\Container\V1\IdentityServiceConfig $var + * @return $this + */ + public function setIdentityServiceConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\IdentityServiceConfig::class); + $this->identity_service_config = $var; + + return $this; + } + + /** + * [Output only] Server-defined URL for the resource. + * + * Generated from protobuf field string self_link = 100; + * @return string + */ + public function getSelfLink() + { + return $this->self_link; + } + + /** + * [Output only] Server-defined URL for the resource. + * + * Generated from protobuf field string self_link = 100; + * @param string $var + * @return $this + */ + public function setSelfLink($var) + { + GPBUtil::checkString($var, True); + $this->self_link = $var; + + return $this; + } + + /** + * [Output only] The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field is deprecated, use location instead. + * + * Generated from protobuf field string zone = 101 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * [Output only] The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field is deprecated, use location instead. + * + * Generated from protobuf field string zone = 101 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * [Output only] The IP address of this cluster's master endpoint. + * The endpoint can be accessed from the internet at + * `https://username:password@endpoint/`. + * See the `masterAuth` property of this resource for username and + * password information. + * + * Generated from protobuf field string endpoint = 102; + * @return string + */ + public function getEndpoint() + { + return $this->endpoint; + } + + /** + * [Output only] The IP address of this cluster's master endpoint. + * The endpoint can be accessed from the internet at + * `https://username:password@endpoint/`. + * See the `masterAuth` property of this resource for username and + * password information. + * + * Generated from protobuf field string endpoint = 102; + * @param string $var + * @return $this + */ + public function setEndpoint($var) + { + GPBUtil::checkString($var, True); + $this->endpoint = $var; + + return $this; + } + + /** + * The initial Kubernetes version for this cluster. Valid versions are those + * found in validMasterVersions returned by getServerConfig. The version can + * be upgraded over time; such upgrades are reflected in + * currentMasterVersion and currentNodeVersion. + * Users may specify either explicit versions offered by + * Kubernetes Engine or version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "","-": picks the default Kubernetes version + * + * Generated from protobuf field string initial_cluster_version = 103; + * @return string + */ + public function getInitialClusterVersion() + { + return $this->initial_cluster_version; + } + + /** + * The initial Kubernetes version for this cluster. Valid versions are those + * found in validMasterVersions returned by getServerConfig. The version can + * be upgraded over time; such upgrades are reflected in + * currentMasterVersion and currentNodeVersion. + * Users may specify either explicit versions offered by + * Kubernetes Engine or version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "","-": picks the default Kubernetes version + * + * Generated from protobuf field string initial_cluster_version = 103; + * @param string $var + * @return $this + */ + public function setInitialClusterVersion($var) + { + GPBUtil::checkString($var, True); + $this->initial_cluster_version = $var; + + return $this; + } + + /** + * [Output only] The current software version of the master endpoint. + * + * Generated from protobuf field string current_master_version = 104; + * @return string + */ + public function getCurrentMasterVersion() + { + return $this->current_master_version; + } + + /** + * [Output only] The current software version of the master endpoint. + * + * Generated from protobuf field string current_master_version = 104; + * @param string $var + * @return $this + */ + public function setCurrentMasterVersion($var) + { + GPBUtil::checkString($var, True); + $this->current_master_version = $var; + + return $this; + } + + /** + * [Output only] Deprecated, use + * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools) + * instead. The current version of the node software components. If they are + * currently at multiple versions because they're in the process of being + * upgraded, this reflects the minimum version of all nodes. + * + * Generated from protobuf field string current_node_version = 105 [deprecated = true]; + * @return string + * @deprecated + */ + public function getCurrentNodeVersion() + { + @trigger_error('current_node_version is deprecated.', E_USER_DEPRECATED); + return $this->current_node_version; + } + + /** + * [Output only] Deprecated, use + * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools) + * instead. The current version of the node software components. If they are + * currently at multiple versions because they're in the process of being + * upgraded, this reflects the minimum version of all nodes. + * + * Generated from protobuf field string current_node_version = 105 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setCurrentNodeVersion($var) + { + @trigger_error('current_node_version is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->current_node_version = $var; + + return $this; + } + + /** + * [Output only] The time the cluster was created, in + * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * + * Generated from protobuf field string create_time = 106; + * @return string + */ + public function getCreateTime() + { + return $this->create_time; + } + + /** + * [Output only] The time the cluster was created, in + * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * + * Generated from protobuf field string create_time = 106; + * @param string $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkString($var, True); + $this->create_time = $var; + + return $this; + } + + /** + * [Output only] The current status of this cluster. + * + * Generated from protobuf field .google.container.v1.Cluster.Status status = 107; + * @return int + */ + public function getStatus() + { + return $this->status; + } + + /** + * [Output only] The current status of this cluster. + * + * Generated from protobuf field .google.container.v1.Cluster.Status status = 107; + * @param int $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\Cluster\Status::class); + $this->status = $var; + + return $this; + } + + /** + * [Output only] Deprecated. Use conditions instead. + * Additional information about the current status of this + * cluster, if available. + * + * Generated from protobuf field string status_message = 108 [deprecated = true]; + * @return string + * @deprecated + */ + public function getStatusMessage() + { + @trigger_error('status_message is deprecated.', E_USER_DEPRECATED); + return $this->status_message; + } + + /** + * [Output only] Deprecated. Use conditions instead. + * Additional information about the current status of this + * cluster, if available. + * + * Generated from protobuf field string status_message = 108 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setStatusMessage($var) + { + @trigger_error('status_message is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->status_message = $var; + + return $this; + } + + /** + * [Output only] The size of the address space on each node for hosting + * containers. This is provisioned from within the `container_ipv4_cidr` + * range. This field will only be set when cluster is in route-based network + * mode. + * + * Generated from protobuf field int32 node_ipv4_cidr_size = 109; + * @return int + */ + public function getNodeIpv4CidrSize() + { + return $this->node_ipv4_cidr_size; + } + + /** + * [Output only] The size of the address space on each node for hosting + * containers. This is provisioned from within the `container_ipv4_cidr` + * range. This field will only be set when cluster is in route-based network + * mode. + * + * Generated from protobuf field int32 node_ipv4_cidr_size = 109; + * @param int $var + * @return $this + */ + public function setNodeIpv4CidrSize($var) + { + GPBUtil::checkInt32($var); + $this->node_ipv4_cidr_size = $var; + + return $this; + } + + /** + * [Output only] The IP address range of the Kubernetes services in + * this cluster, in + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `1.2.3.4/29`). Service addresses are + * typically put in the last `/16` from the container CIDR. + * + * Generated from protobuf field string services_ipv4_cidr = 110; + * @return string + */ + public function getServicesIpv4Cidr() + { + return $this->services_ipv4_cidr; + } + + /** + * [Output only] The IP address range of the Kubernetes services in + * this cluster, in + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `1.2.3.4/29`). Service addresses are + * typically put in the last `/16` from the container CIDR. + * + * Generated from protobuf field string services_ipv4_cidr = 110; + * @param string $var + * @return $this + */ + public function setServicesIpv4Cidr($var) + { + GPBUtil::checkString($var, True); + $this->services_ipv4_cidr = $var; + + return $this; + } + + /** + * Deprecated. Use node_pools.instance_group_urls. + * + * Generated from protobuf field repeated string instance_group_urls = 111 [deprecated = true]; + * @return \Google\Protobuf\Internal\RepeatedField + * @deprecated + */ + public function getInstanceGroupUrls() + { + @trigger_error('instance_group_urls is deprecated.', E_USER_DEPRECATED); + return $this->instance_group_urls; + } + + /** + * Deprecated. Use node_pools.instance_group_urls. + * + * Generated from protobuf field repeated string instance_group_urls = 111 [deprecated = true]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + * @deprecated + */ + public function setInstanceGroupUrls($var) + { + @trigger_error('instance_group_urls is deprecated.', E_USER_DEPRECATED); + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->instance_group_urls = $arr; + + return $this; + } + + /** + * [Output only] The number of nodes currently in the cluster. Deprecated. + * Call Kubernetes API directly to retrieve node information. + * + * Generated from protobuf field int32 current_node_count = 112 [deprecated = true]; + * @return int + * @deprecated + */ + public function getCurrentNodeCount() + { + @trigger_error('current_node_count is deprecated.', E_USER_DEPRECATED); + return $this->current_node_count; + } + + /** + * [Output only] The number of nodes currently in the cluster. Deprecated. + * Call Kubernetes API directly to retrieve node information. + * + * Generated from protobuf field int32 current_node_count = 112 [deprecated = true]; + * @param int $var + * @return $this + * @deprecated + */ + public function setCurrentNodeCount($var) + { + @trigger_error('current_node_count is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkInt32($var); + $this->current_node_count = $var; + + return $this; + } + + /** + * [Output only] The time the cluster will be automatically + * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * + * Generated from protobuf field string expire_time = 113; + * @return string + */ + public function getExpireTime() + { + return $this->expire_time; + } + + /** + * [Output only] The time the cluster will be automatically + * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * + * Generated from protobuf field string expire_time = 113; + * @param string $var + * @return $this + */ + public function setExpireTime($var) + { + GPBUtil::checkString($var, True); + $this->expire_time = $var; + + return $this; + } + + /** + * [Output only] The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + * or + * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + * in which the cluster resides. + * + * Generated from protobuf field string location = 114; + * @return string + */ + public function getLocation() + { + return $this->location; + } + + /** + * [Output only] The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + * or + * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + * in which the cluster resides. + * + * Generated from protobuf field string location = 114; + * @param string $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkString($var, True); + $this->location = $var; + + return $this; + } + + /** + * Enable the ability to use Cloud TPUs in this cluster. + * + * Generated from protobuf field bool enable_tpu = 115; + * @return bool + */ + public function getEnableTpu() + { + return $this->enable_tpu; + } + + /** + * Enable the ability to use Cloud TPUs in this cluster. + * + * Generated from protobuf field bool enable_tpu = 115; + * @param bool $var + * @return $this + */ + public function setEnableTpu($var) + { + GPBUtil::checkBool($var); + $this->enable_tpu = $var; + + return $this; + } + + /** + * [Output only] The IP address range of the Cloud TPUs in this cluster, in + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `1.2.3.4/29`). + * + * Generated from protobuf field string tpu_ipv4_cidr_block = 116; + * @return string + */ + public function getTpuIpv4CidrBlock() + { + return $this->tpu_ipv4_cidr_block; + } + + /** + * [Output only] The IP address range of the Cloud TPUs in this cluster, in + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `1.2.3.4/29`). + * + * Generated from protobuf field string tpu_ipv4_cidr_block = 116; + * @param string $var + * @return $this + */ + public function setTpuIpv4CidrBlock($var) + { + GPBUtil::checkString($var, True); + $this->tpu_ipv4_cidr_block = $var; + + return $this; + } + + /** + * Which conditions caused the current cluster state. + * + * Generated from protobuf field repeated .google.container.v1.StatusCondition conditions = 118; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getConditions() + { + return $this->conditions; + } + + /** + * Which conditions caused the current cluster state. + * + * Generated from protobuf field repeated .google.container.v1.StatusCondition conditions = 118; + * @param array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setConditions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\StatusCondition::class); + $this->conditions = $arr; + + return $this; + } + + /** + * Autopilot configuration for the cluster. + * + * Generated from protobuf field .google.container.v1.Autopilot autopilot = 128; + * @return \Google\Cloud\Container\V1\Autopilot|null + */ + public function getAutopilot() + { + return $this->autopilot; + } + + public function hasAutopilot() + { + return isset($this->autopilot); + } + + public function clearAutopilot() + { + unset($this->autopilot); + } + + /** + * Autopilot configuration for the cluster. + * + * Generated from protobuf field .google.container.v1.Autopilot autopilot = 128; + * @param \Google\Cloud\Container\V1\Autopilot $var + * @return $this + */ + public function setAutopilot($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\Autopilot::class); + $this->autopilot = $var; + + return $this; + } + + /** + * Output only. Unique id for the cluster. + * + * Generated from protobuf field string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * Output only. Unique id for the cluster. + * + * Generated from protobuf field string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * Default NodePool settings for the entire cluster. These settings are + * overridden if specified on the specific NodePool object. + * + * Generated from protobuf field optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; + * @return \Google\Cloud\Container\V1\NodePoolDefaults|null + */ + public function getNodePoolDefaults() + { + return $this->node_pool_defaults; + } + + public function hasNodePoolDefaults() + { + return isset($this->node_pool_defaults); + } + + public function clearNodePoolDefaults() + { + unset($this->node_pool_defaults); + } + + /** + * Default NodePool settings for the entire cluster. These settings are + * overridden if specified on the specific NodePool object. + * + * Generated from protobuf field optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; + * @param \Google\Cloud\Container\V1\NodePoolDefaults $var + * @return $this + */ + public function setNodePoolDefaults($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolDefaults::class); + $this->node_pool_defaults = $var; + + return $this; + } + + /** + * Logging configuration for the cluster. + * + * Generated from protobuf field .google.container.v1.LoggingConfig logging_config = 132; + * @return \Google\Cloud\Container\V1\LoggingConfig|null + */ + public function getLoggingConfig() + { + return $this->logging_config; + } + + public function hasLoggingConfig() + { + return isset($this->logging_config); + } + + public function clearLoggingConfig() + { + unset($this->logging_config); + } + + /** + * Logging configuration for the cluster. + * + * Generated from protobuf field .google.container.v1.LoggingConfig logging_config = 132; + * @param \Google\Cloud\Container\V1\LoggingConfig $var + * @return $this + */ + public function setLoggingConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LoggingConfig::class); + $this->logging_config = $var; + + return $this; + } + + /** + * Monitoring configuration for the cluster. + * + * Generated from protobuf field .google.container.v1.MonitoringConfig monitoring_config = 133; + * @return \Google\Cloud\Container\V1\MonitoringConfig|null + */ + public function getMonitoringConfig() + { + return $this->monitoring_config; + } + + public function hasMonitoringConfig() + { + return isset($this->monitoring_config); + } + + public function clearMonitoringConfig() + { + unset($this->monitoring_config); + } + + /** + * Monitoring configuration for the cluster. + * + * Generated from protobuf field .google.container.v1.MonitoringConfig monitoring_config = 133; + * @param \Google\Cloud\Container\V1\MonitoringConfig $var + * @return $this + */ + public function setMonitoringConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MonitoringConfig::class); + $this->monitoring_config = $var; + + return $this; + } + + /** + * Node pool configs that apply to all auto-provisioned node pools + * in autopilot clusters and node auto-provisioning enabled clusters. + * + * Generated from protobuf field .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; + * @return \Google\Cloud\Container\V1\NodePoolAutoConfig|null + */ + public function getNodePoolAutoConfig() + { + return $this->node_pool_auto_config; + } + + public function hasNodePoolAutoConfig() + { + return isset($this->node_pool_auto_config); + } + + public function clearNodePoolAutoConfig() + { + unset($this->node_pool_auto_config); + } + + /** + * Node pool configs that apply to all auto-provisioned node pools + * in autopilot clusters and node auto-provisioning enabled clusters. + * + * Generated from protobuf field .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; + * @param \Google\Cloud\Container\V1\NodePoolAutoConfig $var + * @return $this + */ + public function setNodePoolAutoConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolAutoConfig::class); + $this->node_pool_auto_config = $var; + + return $this; + } + + /** + * This checksum is computed by the server based on the value of cluster + * fields, and may be sent on update requests to ensure the client has an + * up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 139; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * This checksum is computed by the server based on the value of cluster + * fields, and may be sent on update requests to ensure the client has an + * up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 139; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Cluster/Status.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Cluster/Status.php new file mode 100644 index 000000000000..c9b3957604fb --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Cluster/Status.php @@ -0,0 +1,97 @@ +google.container.v1.Cluster.Status + */ +class Status +{ + /** + * Not set. + * + * Generated from protobuf enum STATUS_UNSPECIFIED = 0; + */ + const STATUS_UNSPECIFIED = 0; + /** + * The PROVISIONING state indicates the cluster is being created. + * + * Generated from protobuf enum PROVISIONING = 1; + */ + const PROVISIONING = 1; + /** + * The RUNNING state indicates the cluster has been created and is fully + * usable. + * + * Generated from protobuf enum RUNNING = 2; + */ + const RUNNING = 2; + /** + * The RECONCILING state indicates that some work is actively being done on + * the cluster, such as upgrading the master or node software. Details can + * be found in the `statusMessage` field. + * + * Generated from protobuf enum RECONCILING = 3; + */ + const RECONCILING = 3; + /** + * The STOPPING state indicates the cluster is being deleted. + * + * Generated from protobuf enum STOPPING = 4; + */ + const STOPPING = 4; + /** + * The ERROR state indicates the cluster is unusable. It will be + * automatically deleted. Details can be found in the `statusMessage` field. + * + * Generated from protobuf enum ERROR = 5; + */ + const ERROR = 5; + /** + * The DEGRADED state indicates the cluster requires user action to restore + * full functionality. Details can be found in the `statusMessage` field. + * + * Generated from protobuf enum DEGRADED = 6; + */ + const DEGRADED = 6; + + private static $valueToName = [ + self::STATUS_UNSPECIFIED => 'STATUS_UNSPECIFIED', + self::PROVISIONING => 'PROVISIONING', + self::RUNNING => 'RUNNING', + self::RECONCILING => 'RECONCILING', + self::STOPPING => 'STOPPING', + self::ERROR => 'ERROR', + self::DEGRADED => 'DEGRADED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Status::class, \Google\Cloud\Container\V1\Cluster_Status::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling.php new file mode 100644 index 000000000000..5ca6c015c80b --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling.php @@ -0,0 +1,232 @@ +google.container.v1.ClusterAutoscaling + */ +class ClusterAutoscaling extends \Google\Protobuf\Internal\Message +{ + /** + * Enables automatic node pool creation and deletion. + * + * Generated from protobuf field bool enable_node_autoprovisioning = 1; + */ + protected $enable_node_autoprovisioning = false; + /** + * Contains global constraints regarding minimum and maximum + * amount of resources in the cluster. + * + * Generated from protobuf field repeated .google.container.v1.ResourceLimit resource_limits = 2; + */ + private $resource_limits; + /** + * Defines autoscaling behaviour. + * + * Generated from protobuf field .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + */ + protected $autoscaling_profile = 0; + /** + * AutoprovisioningNodePoolDefaults contains defaults for a node pool + * created by NAP. + * + * Generated from protobuf field .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + */ + protected $autoprovisioning_node_pool_defaults = null; + /** + * The list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * NodePool's nodes can be created by NAP. + * + * Generated from protobuf field repeated string autoprovisioning_locations = 5; + */ + private $autoprovisioning_locations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enable_node_autoprovisioning + * Enables automatic node pool creation and deletion. + * @type array<\Google\Cloud\Container\V1\ResourceLimit>|\Google\Protobuf\Internal\RepeatedField $resource_limits + * Contains global constraints regarding minimum and maximum + * amount of resources in the cluster. + * @type int $autoscaling_profile + * Defines autoscaling behaviour. + * @type \Google\Cloud\Container\V1\AutoprovisioningNodePoolDefaults $autoprovisioning_node_pool_defaults + * AutoprovisioningNodePoolDefaults contains defaults for a node pool + * created by NAP. + * @type array|\Google\Protobuf\Internal\RepeatedField $autoprovisioning_locations + * The list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * NodePool's nodes can be created by NAP. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Enables automatic node pool creation and deletion. + * + * Generated from protobuf field bool enable_node_autoprovisioning = 1; + * @return bool + */ + public function getEnableNodeAutoprovisioning() + { + return $this->enable_node_autoprovisioning; + } + + /** + * Enables automatic node pool creation and deletion. + * + * Generated from protobuf field bool enable_node_autoprovisioning = 1; + * @param bool $var + * @return $this + */ + public function setEnableNodeAutoprovisioning($var) + { + GPBUtil::checkBool($var); + $this->enable_node_autoprovisioning = $var; + + return $this; + } + + /** + * Contains global constraints regarding minimum and maximum + * amount of resources in the cluster. + * + * Generated from protobuf field repeated .google.container.v1.ResourceLimit resource_limits = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getResourceLimits() + { + return $this->resource_limits; + } + + /** + * Contains global constraints regarding minimum and maximum + * amount of resources in the cluster. + * + * Generated from protobuf field repeated .google.container.v1.ResourceLimit resource_limits = 2; + * @param array<\Google\Cloud\Container\V1\ResourceLimit>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setResourceLimits($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\ResourceLimit::class); + $this->resource_limits = $arr; + + return $this; + } + + /** + * Defines autoscaling behaviour. + * + * Generated from protobuf field .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * @return int + */ + public function getAutoscalingProfile() + { + return $this->autoscaling_profile; + } + + /** + * Defines autoscaling behaviour. + * + * Generated from protobuf field .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * @param int $var + * @return $this + */ + public function setAutoscalingProfile($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\ClusterAutoscaling\AutoscalingProfile::class); + $this->autoscaling_profile = $var; + + return $this; + } + + /** + * AutoprovisioningNodePoolDefaults contains defaults for a node pool + * created by NAP. + * + * Generated from protobuf field .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * @return \Google\Cloud\Container\V1\AutoprovisioningNodePoolDefaults|null + */ + public function getAutoprovisioningNodePoolDefaults() + { + return $this->autoprovisioning_node_pool_defaults; + } + + public function hasAutoprovisioningNodePoolDefaults() + { + return isset($this->autoprovisioning_node_pool_defaults); + } + + public function clearAutoprovisioningNodePoolDefaults() + { + unset($this->autoprovisioning_node_pool_defaults); + } + + /** + * AutoprovisioningNodePoolDefaults contains defaults for a node pool + * created by NAP. + * + * Generated from protobuf field .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * @param \Google\Cloud\Container\V1\AutoprovisioningNodePoolDefaults $var + * @return $this + */ + public function setAutoprovisioningNodePoolDefaults($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AutoprovisioningNodePoolDefaults::class); + $this->autoprovisioning_node_pool_defaults = $var; + + return $this; + } + + /** + * The list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * NodePool's nodes can be created by NAP. + * + * Generated from protobuf field repeated string autoprovisioning_locations = 5; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAutoprovisioningLocations() + { + return $this->autoprovisioning_locations; + } + + /** + * The list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * NodePool's nodes can be created by NAP. + * + * Generated from protobuf field repeated string autoprovisioning_locations = 5; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAutoprovisioningLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->autoprovisioning_locations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling/AutoscalingProfile.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling/AutoscalingProfile.php new file mode 100644 index 000000000000..c749df9997d7 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling/AutoscalingProfile.php @@ -0,0 +1,64 @@ +google.container.v1.ClusterAutoscaling.AutoscalingProfile + */ +class AutoscalingProfile +{ + /** + * No change to autoscaling configuration. + * + * Generated from protobuf enum PROFILE_UNSPECIFIED = 0; + */ + const PROFILE_UNSPECIFIED = 0; + /** + * Prioritize optimizing utilization of resources. + * + * Generated from protobuf enum OPTIMIZE_UTILIZATION = 1; + */ + const OPTIMIZE_UTILIZATION = 1; + /** + * Use default (balanced) autoscaling configuration. + * + * Generated from protobuf enum BALANCED = 2; + */ + const BALANCED = 2; + + private static $valueToName = [ + self::PROFILE_UNSPECIFIED => 'PROFILE_UNSPECIFIED', + self::OPTIMIZE_UTILIZATION => 'OPTIMIZE_UTILIZATION', + self::BALANCED => 'BALANCED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(AutoscalingProfile::class, \Google\Cloud\Container\V1\ClusterAutoscaling_AutoscalingProfile::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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); + } + + /** + * CompleteNodePoolUpgrade will signal an on-going node pool upgrade to + * complete. + * @param \Google\Cloud\Container\V1\CompleteNodePoolUpgradeRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function CompleteNodePoolUpgrade(\Google\Cloud\Container\V1\CompleteNodePoolUpgradeRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/google.container.v1.ClusterManager/CompleteNodePoolUpgrade', + $argument, + ['\Google\Protobuf\GPBEmpty', '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..12ef9213dbd2 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterUpdate.php @@ -0,0 +1,1885 @@ +google.container.v1.ClusterUpdate + */ +class ClusterUpdate extends \Google\Protobuf\Internal\Message +{ + /** + * The Kubernetes version to change the nodes to (typically an + * upgrade). + * Users may specify either explicit versions offered by + * Kubernetes Engine or version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the Kubernetes master version + * + * Generated from protobuf field string desired_node_version = 4; + */ + protected $desired_node_version = ''; + /** + * The monitoring service the cluster should use to write metrics. + * Currently available options: + * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + * service with a Kubernetes-native resource model + * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + * longer available as of GKE 1.15). + * * `none` - No metrics will be exported from the cluster. + * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. + * + * Generated from protobuf field string desired_monitoring_service = 5; + */ + protected $desired_monitoring_service = ''; + /** + * Configurations for the various addons available to run in the cluster. + * + * Generated from protobuf field .google.container.v1.AddonsConfig desired_addons_config = 6; + */ + protected $desired_addons_config = null; + /** + * The node pool to be upgraded. This field is mandatory if + * "desired_node_version", "desired_image_family" or + * "desired_node_pool_autoscaling" is specified and there is more than one + * node pool on the cluster. + * + * Generated from protobuf field string desired_node_pool_id = 7; + */ + protected $desired_node_pool_id = ''; + /** + * The desired image type for the node pool. + * NOTE: Set the "desired_node_pool" field as well. + * + * Generated from protobuf field string desired_image_type = 8; + */ + protected $desired_image_type = ''; + /** + * Configuration of etcd encryption. + * + * Generated from protobuf field .google.container.v1.DatabaseEncryption desired_database_encryption = 46; + */ + protected $desired_database_encryption = null; + /** + * Configuration for Workload Identity. + * + * Generated from protobuf field .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + */ + protected $desired_workload_identity_config = null; + /** + * Configuration for issuance of mTLS keys and certificates to Kubernetes + * pods. + * + * Generated from protobuf field .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + */ + protected $desired_mesh_certificates = null; + /** + * Configuration for Shielded Nodes. + * + * Generated from protobuf field .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + */ + protected $desired_shielded_nodes = null; + /** + * The desired configuration for the fine-grained cost management feature. + * + * Generated from protobuf field .google.container.v1.CostManagementConfig desired_cost_management_config = 49; + */ + protected $desired_cost_management_config = null; + /** + * DNSConfig contains clusterDNS config for this cluster. + * + * Generated from protobuf field .google.container.v1.DNSConfig desired_dns_config = 53; + */ + protected $desired_dns_config = null; + /** + * Autoscaler configuration for the node pool specified in + * desired_node_pool_id. If there is only one pool in the + * cluster and desired_node_pool_id is not provided then + * the change applies to that single node pool. + * + * Generated from protobuf field .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + protected $desired_node_pool_autoscaling = null; + /** + * The desired list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster's nodes should be located. + * This list must always include the cluster's primary zone. + * Warning: changing cluster locations will update the locations of all node + * pools and will result in nodes being added and/or removed. + * + * Generated from protobuf field repeated string desired_locations = 10; + */ + private $desired_locations; + /** + * The desired configuration options for master authorized networks feature. + * + * Generated from protobuf field .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + protected $desired_master_authorized_networks_config = null; + /** + * Cluster-level autoscaling configuration. + * + * Generated from protobuf field .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + protected $desired_cluster_autoscaling = null; + /** + * The desired configuration options for the Binary Authorization feature. + * + * Generated from protobuf field .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; + */ + protected $desired_binary_authorization = null; + /** + * The logging service the cluster should use to write logs. + * Currently available options: + * * `logging.googleapis.com/kubernetes` - The Cloud Logging + * service with a Kubernetes-native resource model + * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + * available as of GKE 1.15). + * * `none` - no logs will be exported from the cluster. + * If left as an empty string,`logging.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. + * + * Generated from protobuf field string desired_logging_service = 19; + */ + protected $desired_logging_service = ''; + /** + * The desired configuration for exporting resource usage. + * + * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + */ + protected $desired_resource_usage_export_config = null; + /** + * Cluster-level Vertical Pod Autoscaling configuration. + * + * Generated from protobuf field .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + */ + protected $desired_vertical_pod_autoscaling = null; + /** + * The desired private cluster configuration. + * + * Generated from protobuf field .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + */ + protected $desired_private_cluster_config = null; + /** + * The desired config of Intra-node visibility. + * + * Generated from protobuf field .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + */ + protected $desired_intra_node_visibility_config = null; + /** + * The desired status of whether to disable default sNAT for this cluster. + * + * Generated from protobuf field .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + */ + protected $desired_default_snat_status = null; + /** + * The desired release channel configuration. + * + * Generated from protobuf field .google.container.v1.ReleaseChannel desired_release_channel = 31; + */ + protected $desired_release_channel = null; + /** + * The desired L4 Internal Load Balancer Subsetting configuration. + * + * Generated from protobuf field .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + */ + protected $desired_l4ilb_subsetting_config = null; + /** + * The desired datapath provider for the cluster. + * + * Generated from protobuf field .google.container.v1.DatapathProvider desired_datapath_provider = 50; + */ + protected $desired_datapath_provider = 0; + /** + * The desired state of IPv6 connectivity to Google Services. + * + * Generated from protobuf field .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + */ + protected $desired_private_ipv6_google_access = 0; + /** + * The desired notification configuration. + * + * Generated from protobuf field .google.container.v1.NotificationConfig desired_notification_config = 55; + */ + protected $desired_notification_config = null; + /** + * The desired authenticator groups config for the cluster. + * + * Generated from protobuf field .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + */ + protected $desired_authenticator_groups_config = null; + /** + * The desired logging configuration. + * + * Generated from protobuf field .google.container.v1.LoggingConfig desired_logging_config = 64; + */ + protected $desired_logging_config = null; + /** + * The desired monitoring configuration. + * + * Generated from protobuf field .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + */ + protected $desired_monitoring_config = null; + /** + * The desired Identity Service component configuration. + * + * Generated from protobuf field .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; + */ + protected $desired_identity_service_config = null; + /** + * ServiceExternalIPsConfig specifies the config for the use of Services with + * ExternalIPs field. + * + * Generated from protobuf field .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + */ + protected $desired_service_external_ips_config = null; + /** + * Enable/Disable private endpoint for the cluster's master. + * + * Generated from protobuf field optional bool desired_enable_private_endpoint = 71; + */ + protected $desired_enable_private_endpoint = null; + /** + * The Kubernetes version to change the master to. + * Users may specify either explicit versions offered by + * Kubernetes Engine or version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the default Kubernetes version + * + * Generated from protobuf field string desired_master_version = 100; + */ + protected $desired_master_version = ''; + /** + * The desired GCFS config for the cluster + * + * Generated from protobuf field .google.container.v1.GcfsConfig desired_gcfs_config = 109; + */ + protected $desired_gcfs_config = null; + /** + * The desired network tags that apply to all auto-provisioned node pools + * in autopilot clusters and node auto-provisioning enabled clusters. + * + * Generated from protobuf field .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; + */ + protected $desired_node_pool_auto_config_network_tags = null; + /** + * The desired config of Gateway API on this cluster. + * + * Generated from protobuf field .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; + */ + protected $desired_gateway_api_config = null; + /** + * The current etag of the cluster. + * If an etag is provided and does not match the current etag of the cluster, + * update will be blocked and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 115; + */ + protected $etag = ''; + /** + * The desired node pool logging configuration defaults for the cluster. + * + * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; + */ + protected $desired_node_pool_logging_config = null; + /** + * The desired stack type of the cluster. + * If a stack type is provided and does not match the current stack type of + * the cluster, update will attempt to change the stack type to the new type. + * + * Generated from protobuf field .google.container.v1.StackType desired_stack_type = 119; + */ + protected $desired_stack_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $desired_node_version + * The Kubernetes version to change the nodes to (typically an + * upgrade). + * Users may specify either explicit versions offered by + * Kubernetes Engine or version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the Kubernetes master version + * @type string $desired_monitoring_service + * The monitoring service the cluster should use to write metrics. + * Currently available options: + * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + * service with a Kubernetes-native resource model + * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + * longer available as of GKE 1.15). + * * `none` - No metrics will be exported from the cluster. + * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. + * @type \Google\Cloud\Container\V1\AddonsConfig $desired_addons_config + * Configurations for the various addons available to run in the cluster. + * @type string $desired_node_pool_id + * The node pool to be upgraded. This field is mandatory if + * "desired_node_version", "desired_image_family" or + * "desired_node_pool_autoscaling" is specified and there is more than one + * node pool on the cluster. + * @type string $desired_image_type + * The desired image type for the node pool. + * NOTE: Set the "desired_node_pool" field as well. + * @type \Google\Cloud\Container\V1\DatabaseEncryption $desired_database_encryption + * Configuration of etcd encryption. + * @type \Google\Cloud\Container\V1\WorkloadIdentityConfig $desired_workload_identity_config + * Configuration for Workload Identity. + * @type \Google\Cloud\Container\V1\MeshCertificates $desired_mesh_certificates + * Configuration for issuance of mTLS keys and certificates to Kubernetes + * pods. + * @type \Google\Cloud\Container\V1\ShieldedNodes $desired_shielded_nodes + * Configuration for Shielded Nodes. + * @type \Google\Cloud\Container\V1\CostManagementConfig $desired_cost_management_config + * The desired configuration for the fine-grained cost management feature. + * @type \Google\Cloud\Container\V1\DNSConfig $desired_dns_config + * DNSConfig contains clusterDNS config for this cluster. + * @type \Google\Cloud\Container\V1\NodePoolAutoscaling $desired_node_pool_autoscaling + * Autoscaler configuration for the node pool specified in + * desired_node_pool_id. If there is only one pool in the + * cluster and desired_node_pool_id is not provided then + * the change applies to that single node pool. + * @type array|\Google\Protobuf\Internal\RepeatedField $desired_locations + * The desired list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster's nodes should be located. + * This list must always include the cluster's primary zone. + * Warning: changing cluster locations will update the locations of all node + * pools and will result in nodes being added and/or removed. + * @type \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig $desired_master_authorized_networks_config + * The desired configuration options for master authorized networks feature. + * @type \Google\Cloud\Container\V1\ClusterAutoscaling $desired_cluster_autoscaling + * Cluster-level autoscaling configuration. + * @type \Google\Cloud\Container\V1\BinaryAuthorization $desired_binary_authorization + * The desired configuration options for the Binary Authorization feature. + * @type string $desired_logging_service + * The logging service the cluster should use to write logs. + * Currently available options: + * * `logging.googleapis.com/kubernetes` - The Cloud Logging + * service with a Kubernetes-native resource model + * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + * available as of GKE 1.15). + * * `none` - no logs will be exported from the cluster. + * If left as an empty string,`logging.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. + * @type \Google\Cloud\Container\V1\ResourceUsageExportConfig $desired_resource_usage_export_config + * The desired configuration for exporting resource usage. + * @type \Google\Cloud\Container\V1\VerticalPodAutoscaling $desired_vertical_pod_autoscaling + * Cluster-level Vertical Pod Autoscaling configuration. + * @type \Google\Cloud\Container\V1\PrivateClusterConfig $desired_private_cluster_config + * The desired private cluster configuration. + * @type \Google\Cloud\Container\V1\IntraNodeVisibilityConfig $desired_intra_node_visibility_config + * The desired config of Intra-node visibility. + * @type \Google\Cloud\Container\V1\DefaultSnatStatus $desired_default_snat_status + * The desired status of whether to disable default sNAT for this cluster. + * @type \Google\Cloud\Container\V1\ReleaseChannel $desired_release_channel + * The desired release channel configuration. + * @type \Google\Cloud\Container\V1\ILBSubsettingConfig $desired_l4ilb_subsetting_config + * The desired L4 Internal Load Balancer Subsetting configuration. + * @type int $desired_datapath_provider + * The desired datapath provider for the cluster. + * @type int $desired_private_ipv6_google_access + * The desired state of IPv6 connectivity to Google Services. + * @type \Google\Cloud\Container\V1\NotificationConfig $desired_notification_config + * The desired notification configuration. + * @type \Google\Cloud\Container\V1\AuthenticatorGroupsConfig $desired_authenticator_groups_config + * The desired authenticator groups config for the cluster. + * @type \Google\Cloud\Container\V1\LoggingConfig $desired_logging_config + * The desired logging configuration. + * @type \Google\Cloud\Container\V1\MonitoringConfig $desired_monitoring_config + * The desired monitoring configuration. + * @type \Google\Cloud\Container\V1\IdentityServiceConfig $desired_identity_service_config + * The desired Identity Service component configuration. + * @type \Google\Cloud\Container\V1\ServiceExternalIPsConfig $desired_service_external_ips_config + * ServiceExternalIPsConfig specifies the config for the use of Services with + * ExternalIPs field. + * @type bool $desired_enable_private_endpoint + * Enable/Disable private endpoint for the cluster's master. + * @type string $desired_master_version + * The Kubernetes version to change the master to. + * Users may specify either explicit versions offered by + * Kubernetes Engine or version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the default Kubernetes version + * @type \Google\Cloud\Container\V1\GcfsConfig $desired_gcfs_config + * The desired GCFS config for the cluster + * @type \Google\Cloud\Container\V1\NetworkTags $desired_node_pool_auto_config_network_tags + * The desired network tags that apply to all auto-provisioned node pools + * in autopilot clusters and node auto-provisioning enabled clusters. + * @type \Google\Cloud\Container\V1\GatewayAPIConfig $desired_gateway_api_config + * The desired config of Gateway API on this cluster. + * @type string $etag + * The current etag of the cluster. + * If an etag is provided and does not match the current etag of the cluster, + * update will be blocked and an ABORTED error will be returned. + * @type \Google\Cloud\Container\V1\NodePoolLoggingConfig $desired_node_pool_logging_config + * The desired node pool logging configuration defaults for the cluster. + * @type int $desired_stack_type + * The desired stack type of the cluster. + * If a stack type is provided and does not match the current stack type of + * the cluster, update will attempt to change the stack type to the new type. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The Kubernetes version to change the nodes to (typically an + * upgrade). + * Users may specify either explicit versions offered by + * Kubernetes Engine or version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the Kubernetes master version + * + * Generated from protobuf field string desired_node_version = 4; + * @return string + */ + public function getDesiredNodeVersion() + { + return $this->desired_node_version; + } + + /** + * The Kubernetes version to change the nodes to (typically an + * upgrade). + * Users may specify either explicit versions offered by + * Kubernetes Engine or version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the Kubernetes master version + * + * Generated from protobuf field string desired_node_version = 4; + * @param string $var + * @return $this + */ + public function setDesiredNodeVersion($var) + { + GPBUtil::checkString($var, True); + $this->desired_node_version = $var; + + return $this; + } + + /** + * The monitoring service the cluster should use to write metrics. + * Currently available options: + * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + * service with a Kubernetes-native resource model + * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + * longer available as of GKE 1.15). + * * `none` - No metrics will be exported from the cluster. + * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. + * + * Generated from protobuf field string desired_monitoring_service = 5; + * @return string + */ + public function getDesiredMonitoringService() + { + return $this->desired_monitoring_service; + } + + /** + * The monitoring service the cluster should use to write metrics. + * Currently available options: + * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + * service with a Kubernetes-native resource model + * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + * longer available as of GKE 1.15). + * * `none` - No metrics will be exported from the cluster. + * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. + * + * Generated from protobuf field string desired_monitoring_service = 5; + * @param string $var + * @return $this + */ + public function setDesiredMonitoringService($var) + { + GPBUtil::checkString($var, True); + $this->desired_monitoring_service = $var; + + return $this; + } + + /** + * Configurations for the various addons available to run in the cluster. + * + * Generated from protobuf field .google.container.v1.AddonsConfig desired_addons_config = 6; + * @return \Google\Cloud\Container\V1\AddonsConfig|null + */ + public function getDesiredAddonsConfig() + { + return $this->desired_addons_config; + } + + public function hasDesiredAddonsConfig() + { + return isset($this->desired_addons_config); + } + + public function clearDesiredAddonsConfig() + { + unset($this->desired_addons_config); + } + + /** + * Configurations for the various addons available to run in the cluster. + * + * Generated from protobuf field .google.container.v1.AddonsConfig desired_addons_config = 6; + * @param \Google\Cloud\Container\V1\AddonsConfig $var + * @return $this + */ + public function setDesiredAddonsConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AddonsConfig::class); + $this->desired_addons_config = $var; + + return $this; + } + + /** + * The node pool to be upgraded. This field is mandatory if + * "desired_node_version", "desired_image_family" or + * "desired_node_pool_autoscaling" is specified and there is more than one + * node pool on the cluster. + * + * Generated from protobuf field string desired_node_pool_id = 7; + * @return string + */ + public function getDesiredNodePoolId() + { + return $this->desired_node_pool_id; + } + + /** + * The node pool to be upgraded. This field is mandatory if + * "desired_node_version", "desired_image_family" or + * "desired_node_pool_autoscaling" is specified and there is more than one + * node pool on the cluster. + * + * Generated from protobuf field string desired_node_pool_id = 7; + * @param string $var + * @return $this + */ + public function setDesiredNodePoolId($var) + { + GPBUtil::checkString($var, True); + $this->desired_node_pool_id = $var; + + return $this; + } + + /** + * The desired image type for the node pool. + * NOTE: Set the "desired_node_pool" field as well. + * + * Generated from protobuf field string desired_image_type = 8; + * @return string + */ + public function getDesiredImageType() + { + return $this->desired_image_type; + } + + /** + * The desired image type for the node pool. + * NOTE: Set the "desired_node_pool" field as well. + * + * Generated from protobuf field string desired_image_type = 8; + * @param string $var + * @return $this + */ + public function setDesiredImageType($var) + { + GPBUtil::checkString($var, True); + $this->desired_image_type = $var; + + return $this; + } + + /** + * Configuration of etcd encryption. + * + * Generated from protobuf field .google.container.v1.DatabaseEncryption desired_database_encryption = 46; + * @return \Google\Cloud\Container\V1\DatabaseEncryption|null + */ + public function getDesiredDatabaseEncryption() + { + return $this->desired_database_encryption; + } + + public function hasDesiredDatabaseEncryption() + { + return isset($this->desired_database_encryption); + } + + public function clearDesiredDatabaseEncryption() + { + unset($this->desired_database_encryption); + } + + /** + * Configuration of etcd encryption. + * + * Generated from protobuf field .google.container.v1.DatabaseEncryption desired_database_encryption = 46; + * @param \Google\Cloud\Container\V1\DatabaseEncryption $var + * @return $this + */ + public function setDesiredDatabaseEncryption($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\DatabaseEncryption::class); + $this->desired_database_encryption = $var; + + return $this; + } + + /** + * Configuration for Workload Identity. + * + * Generated from protobuf field .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * @return \Google\Cloud\Container\V1\WorkloadIdentityConfig|null + */ + public function getDesiredWorkloadIdentityConfig() + { + return $this->desired_workload_identity_config; + } + + public function hasDesiredWorkloadIdentityConfig() + { + return isset($this->desired_workload_identity_config); + } + + public function clearDesiredWorkloadIdentityConfig() + { + unset($this->desired_workload_identity_config); + } + + /** + * Configuration for Workload Identity. + * + * Generated from protobuf field .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * @param \Google\Cloud\Container\V1\WorkloadIdentityConfig $var + * @return $this + */ + public function setDesiredWorkloadIdentityConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\WorkloadIdentityConfig::class); + $this->desired_workload_identity_config = $var; + + return $this; + } + + /** + * Configuration for issuance of mTLS keys and certificates to Kubernetes + * pods. + * + * Generated from protobuf field .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + * @return \Google\Cloud\Container\V1\MeshCertificates|null + */ + public function getDesiredMeshCertificates() + { + return $this->desired_mesh_certificates; + } + + public function hasDesiredMeshCertificates() + { + return isset($this->desired_mesh_certificates); + } + + public function clearDesiredMeshCertificates() + { + unset($this->desired_mesh_certificates); + } + + /** + * Configuration for issuance of mTLS keys and certificates to Kubernetes + * pods. + * + * Generated from protobuf field .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + * @param \Google\Cloud\Container\V1\MeshCertificates $var + * @return $this + */ + public function setDesiredMeshCertificates($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MeshCertificates::class); + $this->desired_mesh_certificates = $var; + + return $this; + } + + /** + * Configuration for Shielded Nodes. + * + * Generated from protobuf field .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + * @return \Google\Cloud\Container\V1\ShieldedNodes|null + */ + public function getDesiredShieldedNodes() + { + return $this->desired_shielded_nodes; + } + + public function hasDesiredShieldedNodes() + { + return isset($this->desired_shielded_nodes); + } + + public function clearDesiredShieldedNodes() + { + unset($this->desired_shielded_nodes); + } + + /** + * Configuration for Shielded Nodes. + * + * Generated from protobuf field .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + * @param \Google\Cloud\Container\V1\ShieldedNodes $var + * @return $this + */ + public function setDesiredShieldedNodes($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ShieldedNodes::class); + $this->desired_shielded_nodes = $var; + + return $this; + } + + /** + * The desired configuration for the fine-grained cost management feature. + * + * Generated from protobuf field .google.container.v1.CostManagementConfig desired_cost_management_config = 49; + * @return \Google\Cloud\Container\V1\CostManagementConfig|null + */ + public function getDesiredCostManagementConfig() + { + return $this->desired_cost_management_config; + } + + public function hasDesiredCostManagementConfig() + { + return isset($this->desired_cost_management_config); + } + + public function clearDesiredCostManagementConfig() + { + unset($this->desired_cost_management_config); + } + + /** + * The desired configuration for the fine-grained cost management feature. + * + * Generated from protobuf field .google.container.v1.CostManagementConfig desired_cost_management_config = 49; + * @param \Google\Cloud\Container\V1\CostManagementConfig $var + * @return $this + */ + public function setDesiredCostManagementConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\CostManagementConfig::class); + $this->desired_cost_management_config = $var; + + return $this; + } + + /** + * DNSConfig contains clusterDNS config for this cluster. + * + * Generated from protobuf field .google.container.v1.DNSConfig desired_dns_config = 53; + * @return \Google\Cloud\Container\V1\DNSConfig|null + */ + public function getDesiredDnsConfig() + { + return $this->desired_dns_config; + } + + public function hasDesiredDnsConfig() + { + return isset($this->desired_dns_config); + } + + public function clearDesiredDnsConfig() + { + unset($this->desired_dns_config); + } + + /** + * DNSConfig contains clusterDNS config for this cluster. + * + * Generated from protobuf field .google.container.v1.DNSConfig desired_dns_config = 53; + * @param \Google\Cloud\Container\V1\DNSConfig $var + * @return $this + */ + public function setDesiredDnsConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\DNSConfig::class); + $this->desired_dns_config = $var; + + return $this; + } + + /** + * Autoscaler configuration for the node pool specified in + * desired_node_pool_id. If there is only one pool in the + * cluster and desired_node_pool_id is not provided then + * the change applies to that single node pool. + * + * Generated from protobuf field .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + * @return \Google\Cloud\Container\V1\NodePoolAutoscaling|null + */ + public function getDesiredNodePoolAutoscaling() + { + return $this->desired_node_pool_autoscaling; + } + + public function hasDesiredNodePoolAutoscaling() + { + return isset($this->desired_node_pool_autoscaling); + } + + public function clearDesiredNodePoolAutoscaling() + { + unset($this->desired_node_pool_autoscaling); + } + + /** + * Autoscaler configuration for the node pool specified in + * desired_node_pool_id. If there is only one pool in the + * cluster and desired_node_pool_id is not provided then + * the change applies to that single node pool. + * + * Generated from protobuf field .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + * @param \Google\Cloud\Container\V1\NodePoolAutoscaling $var + * @return $this + */ + public function setDesiredNodePoolAutoscaling($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolAutoscaling::class); + $this->desired_node_pool_autoscaling = $var; + + return $this; + } + + /** + * The desired list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster's nodes should be located. + * This list must always include the cluster's primary zone. + * Warning: changing cluster locations will update the locations of all node + * pools and will result in nodes being added and/or removed. + * + * Generated from protobuf field repeated string desired_locations = 10; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDesiredLocations() + { + return $this->desired_locations; + } + + /** + * The desired list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster's nodes should be located. + * This list must always include the cluster's primary zone. + * Warning: changing cluster locations will update the locations of all node + * pools and will result in nodes being added and/or removed. + * + * Generated from protobuf field repeated string desired_locations = 10; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDesiredLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->desired_locations = $arr; + + return $this; + } + + /** + * The desired configuration options for master authorized networks feature. + * + * Generated from protobuf field .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * @return \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig|null + */ + public function getDesiredMasterAuthorizedNetworksConfig() + { + return $this->desired_master_authorized_networks_config; + } + + public function hasDesiredMasterAuthorizedNetworksConfig() + { + return isset($this->desired_master_authorized_networks_config); + } + + public function clearDesiredMasterAuthorizedNetworksConfig() + { + unset($this->desired_master_authorized_networks_config); + } + + /** + * The desired configuration options for master authorized networks feature. + * + * Generated from protobuf field .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * @param \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig $var + * @return $this + */ + public function setDesiredMasterAuthorizedNetworksConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig::class); + $this->desired_master_authorized_networks_config = $var; + + return $this; + } + + /** + * Cluster-level autoscaling configuration. + * + * Generated from protobuf field .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; + * @return \Google\Cloud\Container\V1\ClusterAutoscaling|null + */ + public function getDesiredClusterAutoscaling() + { + return $this->desired_cluster_autoscaling; + } + + public function hasDesiredClusterAutoscaling() + { + return isset($this->desired_cluster_autoscaling); + } + + public function clearDesiredClusterAutoscaling() + { + unset($this->desired_cluster_autoscaling); + } + + /** + * Cluster-level autoscaling configuration. + * + * Generated from protobuf field .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; + * @param \Google\Cloud\Container\V1\ClusterAutoscaling $var + * @return $this + */ + public function setDesiredClusterAutoscaling($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ClusterAutoscaling::class); + $this->desired_cluster_autoscaling = $var; + + return $this; + } + + /** + * The desired configuration options for the Binary Authorization feature. + * + * Generated from protobuf field .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; + * @return \Google\Cloud\Container\V1\BinaryAuthorization|null + */ + public function getDesiredBinaryAuthorization() + { + return $this->desired_binary_authorization; + } + + public function hasDesiredBinaryAuthorization() + { + return isset($this->desired_binary_authorization); + } + + public function clearDesiredBinaryAuthorization() + { + unset($this->desired_binary_authorization); + } + + /** + * The desired configuration options for the Binary Authorization feature. + * + * Generated from protobuf field .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; + * @param \Google\Cloud\Container\V1\BinaryAuthorization $var + * @return $this + */ + public function setDesiredBinaryAuthorization($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\BinaryAuthorization::class); + $this->desired_binary_authorization = $var; + + return $this; + } + + /** + * The logging service the cluster should use to write logs. + * Currently available options: + * * `logging.googleapis.com/kubernetes` - The Cloud Logging + * service with a Kubernetes-native resource model + * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + * available as of GKE 1.15). + * * `none` - no logs will be exported from the cluster. + * If left as an empty string,`logging.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. + * + * Generated from protobuf field string desired_logging_service = 19; + * @return string + */ + public function getDesiredLoggingService() + { + return $this->desired_logging_service; + } + + /** + * The logging service the cluster should use to write logs. + * Currently available options: + * * `logging.googleapis.com/kubernetes` - The Cloud Logging + * service with a Kubernetes-native resource model + * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + * available as of GKE 1.15). + * * `none` - no logs will be exported from the cluster. + * If left as an empty string,`logging.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. + * + * Generated from protobuf field string desired_logging_service = 19; + * @param string $var + * @return $this + */ + public function setDesiredLoggingService($var) + { + GPBUtil::checkString($var, True); + $this->desired_logging_service = $var; + + return $this; + } + + /** + * The desired configuration for exporting resource usage. + * + * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * @return \Google\Cloud\Container\V1\ResourceUsageExportConfig|null + */ + public function getDesiredResourceUsageExportConfig() + { + return $this->desired_resource_usage_export_config; + } + + public function hasDesiredResourceUsageExportConfig() + { + return isset($this->desired_resource_usage_export_config); + } + + public function clearDesiredResourceUsageExportConfig() + { + unset($this->desired_resource_usage_export_config); + } + + /** + * The desired configuration for exporting resource usage. + * + * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * @param \Google\Cloud\Container\V1\ResourceUsageExportConfig $var + * @return $this + */ + public function setDesiredResourceUsageExportConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ResourceUsageExportConfig::class); + $this->desired_resource_usage_export_config = $var; + + return $this; + } + + /** + * Cluster-level Vertical Pod Autoscaling configuration. + * + * Generated from protobuf field .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * @return \Google\Cloud\Container\V1\VerticalPodAutoscaling|null + */ + public function getDesiredVerticalPodAutoscaling() + { + return $this->desired_vertical_pod_autoscaling; + } + + public function hasDesiredVerticalPodAutoscaling() + { + return isset($this->desired_vertical_pod_autoscaling); + } + + public function clearDesiredVerticalPodAutoscaling() + { + unset($this->desired_vertical_pod_autoscaling); + } + + /** + * Cluster-level Vertical Pod Autoscaling configuration. + * + * Generated from protobuf field .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * @param \Google\Cloud\Container\V1\VerticalPodAutoscaling $var + * @return $this + */ + public function setDesiredVerticalPodAutoscaling($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\VerticalPodAutoscaling::class); + $this->desired_vertical_pod_autoscaling = $var; + + return $this; + } + + /** + * The desired private cluster configuration. + * + * Generated from protobuf field .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + * @return \Google\Cloud\Container\V1\PrivateClusterConfig|null + */ + public function getDesiredPrivateClusterConfig() + { + return $this->desired_private_cluster_config; + } + + public function hasDesiredPrivateClusterConfig() + { + return isset($this->desired_private_cluster_config); + } + + public function clearDesiredPrivateClusterConfig() + { + unset($this->desired_private_cluster_config); + } + + /** + * The desired private cluster configuration. + * + * Generated from protobuf field .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + * @param \Google\Cloud\Container\V1\PrivateClusterConfig $var + * @return $this + */ + public function setDesiredPrivateClusterConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\PrivateClusterConfig::class); + $this->desired_private_cluster_config = $var; + + return $this; + } + + /** + * The desired config of Intra-node visibility. + * + * Generated from protobuf field .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * @return \Google\Cloud\Container\V1\IntraNodeVisibilityConfig|null + */ + public function getDesiredIntraNodeVisibilityConfig() + { + return $this->desired_intra_node_visibility_config; + } + + public function hasDesiredIntraNodeVisibilityConfig() + { + return isset($this->desired_intra_node_visibility_config); + } + + public function clearDesiredIntraNodeVisibilityConfig() + { + unset($this->desired_intra_node_visibility_config); + } + + /** + * The desired config of Intra-node visibility. + * + * Generated from protobuf field .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * @param \Google\Cloud\Container\V1\IntraNodeVisibilityConfig $var + * @return $this + */ + public function setDesiredIntraNodeVisibilityConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\IntraNodeVisibilityConfig::class); + $this->desired_intra_node_visibility_config = $var; + + return $this; + } + + /** + * The desired status of whether to disable default sNAT for this cluster. + * + * Generated from protobuf field .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + * @return \Google\Cloud\Container\V1\DefaultSnatStatus|null + */ + public function getDesiredDefaultSnatStatus() + { + return $this->desired_default_snat_status; + } + + public function hasDesiredDefaultSnatStatus() + { + return isset($this->desired_default_snat_status); + } + + public function clearDesiredDefaultSnatStatus() + { + unset($this->desired_default_snat_status); + } + + /** + * The desired status of whether to disable default sNAT for this cluster. + * + * Generated from protobuf field .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + * @param \Google\Cloud\Container\V1\DefaultSnatStatus $var + * @return $this + */ + public function setDesiredDefaultSnatStatus($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\DefaultSnatStatus::class); + $this->desired_default_snat_status = $var; + + return $this; + } + + /** + * The desired release channel configuration. + * + * Generated from protobuf field .google.container.v1.ReleaseChannel desired_release_channel = 31; + * @return \Google\Cloud\Container\V1\ReleaseChannel|null + */ + public function getDesiredReleaseChannel() + { + return $this->desired_release_channel; + } + + public function hasDesiredReleaseChannel() + { + return isset($this->desired_release_channel); + } + + public function clearDesiredReleaseChannel() + { + unset($this->desired_release_channel); + } + + /** + * The desired release channel configuration. + * + * Generated from protobuf field .google.container.v1.ReleaseChannel desired_release_channel = 31; + * @param \Google\Cloud\Container\V1\ReleaseChannel $var + * @return $this + */ + public function setDesiredReleaseChannel($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ReleaseChannel::class); + $this->desired_release_channel = $var; + + return $this; + } + + /** + * The desired L4 Internal Load Balancer Subsetting configuration. + * + * Generated from protobuf field .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + * @return \Google\Cloud\Container\V1\ILBSubsettingConfig|null + */ + public function getDesiredL4IlbSubsettingConfig() + { + return $this->desired_l4ilb_subsetting_config; + } + + public function hasDesiredL4IlbSubsettingConfig() + { + return isset($this->desired_l4ilb_subsetting_config); + } + + public function clearDesiredL4IlbSubsettingConfig() + { + unset($this->desired_l4ilb_subsetting_config); + } + + /** + * The desired L4 Internal Load Balancer Subsetting configuration. + * + * Generated from protobuf field .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + * @param \Google\Cloud\Container\V1\ILBSubsettingConfig $var + * @return $this + */ + public function setDesiredL4IlbSubsettingConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ILBSubsettingConfig::class); + $this->desired_l4ilb_subsetting_config = $var; + + return $this; + } + + /** + * The desired datapath provider for the cluster. + * + * Generated from protobuf field .google.container.v1.DatapathProvider desired_datapath_provider = 50; + * @return int + */ + public function getDesiredDatapathProvider() + { + return $this->desired_datapath_provider; + } + + /** + * The desired datapath provider for the cluster. + * + * Generated from protobuf field .google.container.v1.DatapathProvider desired_datapath_provider = 50; + * @param int $var + * @return $this + */ + public function setDesiredDatapathProvider($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\DatapathProvider::class); + $this->desired_datapath_provider = $var; + + return $this; + } + + /** + * The desired state of IPv6 connectivity to Google Services. + * + * Generated from protobuf field .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + * @return int + */ + public function getDesiredPrivateIpv6GoogleAccess() + { + return $this->desired_private_ipv6_google_access; + } + + /** + * The desired state of IPv6 connectivity to Google Services. + * + * Generated from protobuf field .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + * @param int $var + * @return $this + */ + public function setDesiredPrivateIpv6GoogleAccess($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\PrivateIPv6GoogleAccess::class); + $this->desired_private_ipv6_google_access = $var; + + return $this; + } + + /** + * The desired notification configuration. + * + * Generated from protobuf field .google.container.v1.NotificationConfig desired_notification_config = 55; + * @return \Google\Cloud\Container\V1\NotificationConfig|null + */ + public function getDesiredNotificationConfig() + { + return $this->desired_notification_config; + } + + public function hasDesiredNotificationConfig() + { + return isset($this->desired_notification_config); + } + + public function clearDesiredNotificationConfig() + { + unset($this->desired_notification_config); + } + + /** + * The desired notification configuration. + * + * Generated from protobuf field .google.container.v1.NotificationConfig desired_notification_config = 55; + * @param \Google\Cloud\Container\V1\NotificationConfig $var + * @return $this + */ + public function setDesiredNotificationConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NotificationConfig::class); + $this->desired_notification_config = $var; + + return $this; + } + + /** + * The desired authenticator groups config for the cluster. + * + * Generated from protobuf field .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * @return \Google\Cloud\Container\V1\AuthenticatorGroupsConfig|null + */ + public function getDesiredAuthenticatorGroupsConfig() + { + return $this->desired_authenticator_groups_config; + } + + public function hasDesiredAuthenticatorGroupsConfig() + { + return isset($this->desired_authenticator_groups_config); + } + + public function clearDesiredAuthenticatorGroupsConfig() + { + unset($this->desired_authenticator_groups_config); + } + + /** + * The desired authenticator groups config for the cluster. + * + * Generated from protobuf field .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * @param \Google\Cloud\Container\V1\AuthenticatorGroupsConfig $var + * @return $this + */ + public function setDesiredAuthenticatorGroupsConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AuthenticatorGroupsConfig::class); + $this->desired_authenticator_groups_config = $var; + + return $this; + } + + /** + * The desired logging configuration. + * + * Generated from protobuf field .google.container.v1.LoggingConfig desired_logging_config = 64; + * @return \Google\Cloud\Container\V1\LoggingConfig|null + */ + public function getDesiredLoggingConfig() + { + return $this->desired_logging_config; + } + + public function hasDesiredLoggingConfig() + { + return isset($this->desired_logging_config); + } + + public function clearDesiredLoggingConfig() + { + unset($this->desired_logging_config); + } + + /** + * The desired logging configuration. + * + * Generated from protobuf field .google.container.v1.LoggingConfig desired_logging_config = 64; + * @param \Google\Cloud\Container\V1\LoggingConfig $var + * @return $this + */ + public function setDesiredLoggingConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LoggingConfig::class); + $this->desired_logging_config = $var; + + return $this; + } + + /** + * The desired monitoring configuration. + * + * Generated from protobuf field .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + * @return \Google\Cloud\Container\V1\MonitoringConfig|null + */ + public function getDesiredMonitoringConfig() + { + return $this->desired_monitoring_config; + } + + public function hasDesiredMonitoringConfig() + { + return isset($this->desired_monitoring_config); + } + + public function clearDesiredMonitoringConfig() + { + unset($this->desired_monitoring_config); + } + + /** + * The desired monitoring configuration. + * + * Generated from protobuf field .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + * @param \Google\Cloud\Container\V1\MonitoringConfig $var + * @return $this + */ + public function setDesiredMonitoringConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MonitoringConfig::class); + $this->desired_monitoring_config = $var; + + return $this; + } + + /** + * The desired Identity Service component configuration. + * + * Generated from protobuf field .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; + * @return \Google\Cloud\Container\V1\IdentityServiceConfig|null + */ + public function getDesiredIdentityServiceConfig() + { + return $this->desired_identity_service_config; + } + + public function hasDesiredIdentityServiceConfig() + { + return isset($this->desired_identity_service_config); + } + + public function clearDesiredIdentityServiceConfig() + { + unset($this->desired_identity_service_config); + } + + /** + * The desired Identity Service component configuration. + * + * Generated from protobuf field .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; + * @param \Google\Cloud\Container\V1\IdentityServiceConfig $var + * @return $this + */ + public function setDesiredIdentityServiceConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\IdentityServiceConfig::class); + $this->desired_identity_service_config = $var; + + return $this; + } + + /** + * ServiceExternalIPsConfig specifies the config for the use of Services with + * ExternalIPs field. + * + * Generated from protobuf field .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + * @return \Google\Cloud\Container\V1\ServiceExternalIPsConfig|null + */ + public function getDesiredServiceExternalIpsConfig() + { + return $this->desired_service_external_ips_config; + } + + public function hasDesiredServiceExternalIpsConfig() + { + return isset($this->desired_service_external_ips_config); + } + + public function clearDesiredServiceExternalIpsConfig() + { + unset($this->desired_service_external_ips_config); + } + + /** + * ServiceExternalIPsConfig specifies the config for the use of Services with + * ExternalIPs field. + * + * Generated from protobuf field .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + * @param \Google\Cloud\Container\V1\ServiceExternalIPsConfig $var + * @return $this + */ + public function setDesiredServiceExternalIpsConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ServiceExternalIPsConfig::class); + $this->desired_service_external_ips_config = $var; + + return $this; + } + + /** + * Enable/Disable private endpoint for the cluster's master. + * + * Generated from protobuf field optional bool desired_enable_private_endpoint = 71; + * @return bool + */ + public function getDesiredEnablePrivateEndpoint() + { + return isset($this->desired_enable_private_endpoint) ? $this->desired_enable_private_endpoint : false; + } + + public function hasDesiredEnablePrivateEndpoint() + { + return isset($this->desired_enable_private_endpoint); + } + + public function clearDesiredEnablePrivateEndpoint() + { + unset($this->desired_enable_private_endpoint); + } + + /** + * Enable/Disable private endpoint for the cluster's master. + * + * Generated from protobuf field optional bool desired_enable_private_endpoint = 71; + * @param bool $var + * @return $this + */ + public function setDesiredEnablePrivateEndpoint($var) + { + GPBUtil::checkBool($var); + $this->desired_enable_private_endpoint = $var; + + return $this; + } + + /** + * The Kubernetes version to change the master to. + * Users may specify either explicit versions offered by + * Kubernetes Engine or version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the default Kubernetes version + * + * Generated from protobuf field string desired_master_version = 100; + * @return string + */ + public function getDesiredMasterVersion() + { + return $this->desired_master_version; + } + + /** + * The Kubernetes version to change the master to. + * Users may specify either explicit versions offered by + * Kubernetes Engine or version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the default Kubernetes version + * + * Generated from protobuf field string desired_master_version = 100; + * @param string $var + * @return $this + */ + public function setDesiredMasterVersion($var) + { + GPBUtil::checkString($var, True); + $this->desired_master_version = $var; + + return $this; + } + + /** + * The desired GCFS config for the cluster + * + * Generated from protobuf field .google.container.v1.GcfsConfig desired_gcfs_config = 109; + * @return \Google\Cloud\Container\V1\GcfsConfig|null + */ + public function getDesiredGcfsConfig() + { + return $this->desired_gcfs_config; + } + + public function hasDesiredGcfsConfig() + { + return isset($this->desired_gcfs_config); + } + + public function clearDesiredGcfsConfig() + { + unset($this->desired_gcfs_config); + } + + /** + * The desired GCFS config for the cluster + * + * Generated from protobuf field .google.container.v1.GcfsConfig desired_gcfs_config = 109; + * @param \Google\Cloud\Container\V1\GcfsConfig $var + * @return $this + */ + public function setDesiredGcfsConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GcfsConfig::class); + $this->desired_gcfs_config = $var; + + return $this; + } + + /** + * The desired network tags that apply to all auto-provisioned node pools + * in autopilot clusters and node auto-provisioning enabled clusters. + * + * Generated from protobuf field .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; + * @return \Google\Cloud\Container\V1\NetworkTags|null + */ + public function getDesiredNodePoolAutoConfigNetworkTags() + { + return $this->desired_node_pool_auto_config_network_tags; + } + + public function hasDesiredNodePoolAutoConfigNetworkTags() + { + return isset($this->desired_node_pool_auto_config_network_tags); + } + + public function clearDesiredNodePoolAutoConfigNetworkTags() + { + unset($this->desired_node_pool_auto_config_network_tags); + } + + /** + * The desired network tags that apply to all auto-provisioned node pools + * in autopilot clusters and node auto-provisioning enabled clusters. + * + * Generated from protobuf field .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; + * @param \Google\Cloud\Container\V1\NetworkTags $var + * @return $this + */ + public function setDesiredNodePoolAutoConfigNetworkTags($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkTags::class); + $this->desired_node_pool_auto_config_network_tags = $var; + + return $this; + } + + /** + * The desired config of Gateway API on this cluster. + * + * Generated from protobuf field .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; + * @return \Google\Cloud\Container\V1\GatewayAPIConfig|null + */ + public function getDesiredGatewayApiConfig() + { + return $this->desired_gateway_api_config; + } + + public function hasDesiredGatewayApiConfig() + { + return isset($this->desired_gateway_api_config); + } + + public function clearDesiredGatewayApiConfig() + { + unset($this->desired_gateway_api_config); + } + + /** + * The desired config of Gateway API on this cluster. + * + * Generated from protobuf field .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; + * @param \Google\Cloud\Container\V1\GatewayAPIConfig $var + * @return $this + */ + public function setDesiredGatewayApiConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GatewayAPIConfig::class); + $this->desired_gateway_api_config = $var; + + return $this; + } + + /** + * The current etag of the cluster. + * If an etag is provided and does not match the current etag of the cluster, + * update will be blocked and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 115; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * The current etag of the cluster. + * If an etag is provided and does not match the current etag of the cluster, + * update will be blocked and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 115; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * The desired node pool logging configuration defaults for the cluster. + * + * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; + * @return \Google\Cloud\Container\V1\NodePoolLoggingConfig|null + */ + public function getDesiredNodePoolLoggingConfig() + { + return $this->desired_node_pool_logging_config; + } + + public function hasDesiredNodePoolLoggingConfig() + { + return isset($this->desired_node_pool_logging_config); + } + + public function clearDesiredNodePoolLoggingConfig() + { + unset($this->desired_node_pool_logging_config); + } + + /** + * The desired node pool logging configuration defaults for the cluster. + * + * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; + * @param \Google\Cloud\Container\V1\NodePoolLoggingConfig $var + * @return $this + */ + public function setDesiredNodePoolLoggingConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolLoggingConfig::class); + $this->desired_node_pool_logging_config = $var; + + return $this; + } + + /** + * The desired stack type of the cluster. + * If a stack type is provided and does not match the current stack type of + * the cluster, update will attempt to change the stack type to the new type. + * + * Generated from protobuf field .google.container.v1.StackType desired_stack_type = 119; + * @return int + */ + public function getDesiredStackType() + { + return $this->desired_stack_type; + } + + /** + * The desired stack type of the cluster. + * If a stack type is provided and does not match the current stack type of + * the cluster, update will attempt to change the stack type to the new type. + * + * Generated from protobuf field .google.container.v1.StackType desired_stack_type = 119; + * @param int $var + * @return $this + */ + public function setDesiredStackType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\StackType::class); + $this->desired_stack_type = $var; + + return $this; + } + +} + 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://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * The name (project, location, cluster name) of the cluster to complete IP + * rotation. Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 7; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster name) of the cluster to complete IP + * rotation. Specified in the format `projects/*/locations/*/clusters/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * The name (project, location, cluster name) of the cluster to complete IP + * rotation. Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 7; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster name) of the cluster to complete IP + * rotation. Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 7; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompleteNodePoolUpgradeRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompleteNodePoolUpgradeRequest.php new file mode 100644 index 000000000000..b14c8d08063e --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompleteNodePoolUpgradeRequest.php @@ -0,0 +1,76 @@ +google.container.v1.CompleteNodePoolUpgradeRequest + */ +class CompleteNodePoolUpgradeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The name (project, location, cluster, node pool id) of the node pool to + * complete upgrade. + * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name (project, location, cluster, node pool id) of the node pool to + * complete upgrade. + * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The name (project, location, cluster, node pool id) of the node pool to + * complete upgrade. + * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster, node pool id) of the node pool to + * complete upgrade. + * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfidentialNodes.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfidentialNodes.php new file mode 100644 index 000000000000..a7d3cd2c9116 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfidentialNodes.php @@ -0,0 +1,68 @@ +google.container.v1.ConfidentialNodes + */ +class ConfidentialNodes extends \Google\Protobuf\Internal\Message +{ + /** + * Whether Confidential Nodes feature is enabled. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Whether Confidential Nodes feature is enabled. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether Confidential Nodes feature is enabled. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Whether Confidential Nodes feature is enabled. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfigConnectorConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfigConnectorConfig.php new file mode 100644 index 000000000000..936f2cdd1d89 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfigConnectorConfig.php @@ -0,0 +1,67 @@ +google.container.v1.ConfigConnectorConfig + */ +class ConfigConnectorConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Whether Cloud Connector is enabled for this cluster. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Whether Cloud Connector is enabled for this cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether Cloud Connector is enabled for this cluster. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Whether Cloud Connector is enabled for this cluster. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CostManagementConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CostManagementConfig.php new file mode 100644 index 000000000000..5b896434bf8e --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CostManagementConfig.php @@ -0,0 +1,67 @@ +google.container.v1.CostManagementConfig + */ +class CostManagementConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Whether the feature is enabled or not. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Whether the feature is enabled or not. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether the feature is enabled or not. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Whether the feature is enabled or not. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateClusterRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateClusterRequest.php new file mode 100644 index 000000000000..ecaff57e2d47 --- /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://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the parent + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Required. A [cluster + * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) + * + * Generated from protobuf field .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $cluster = null; + /** + * The parent (project and location) where the cluster will be created. + * Specified in the format `projects/*/locations/*`. + * + * Generated from protobuf field string parent = 5; + */ + protected $parent = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the parent + * field. + * @type \Google\Cloud\Container\V1\Cluster $cluster + * Required. A [cluster + * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) + * @type string $parent + * The parent (project and location) where the cluster will be created. + * Specified in the format `projects/*/locations/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the parent + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the parent + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Required. A [cluster + * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) + * + * Generated from protobuf field .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Container\V1\Cluster|null + */ + public function getCluster() + { + return $this->cluster; + } + + public function hasCluster() + { + return isset($this->cluster); + } + + public function clearCluster() + { + unset($this->cluster); + } + + /** + * Required. A [cluster + * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) + * + * Generated from protobuf field .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Container\V1\Cluster $var + * @return $this + */ + public function setCluster($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\Cluster::class); + $this->cluster = $var; + + return $this; + } + + /** + * The parent (project and location) where the cluster will be created. + * Specified in the format `projects/*/locations/*`. + * + * Generated from protobuf field string parent = 5; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * The parent (project and location) where the cluster will be created. + * Specified in the format `projects/*/locations/*`. + * + * Generated from protobuf field string parent = 5; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateNodePoolRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateNodePoolRequest.php new file mode 100644 index 000000000000..8a0d8dde39fd --- /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://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the parent + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * Required. The node pool to create. + * + * Generated from protobuf field .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $node_pool = null; + /** + * The parent (project, location, cluster name) where the node pool will be + * created. Specified in the format + * `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string parent = 6; + */ + protected $parent = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the parent + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the parent field. + * @type \Google\Cloud\Container\V1\NodePool $node_pool + * Required. The node pool to create. + * @type string $parent + * The parent (project, location, cluster name) where the node pool will be + * created. Specified in the format + * `projects/*/locations/*/clusters/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the parent + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the parent + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Required. The node pool to create. + * + * Generated from protobuf field .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Container\V1\NodePool|null + */ + public function getNodePool() + { + return $this->node_pool; + } + + public function hasNodePool() + { + return isset($this->node_pool); + } + + public function clearNodePool() + { + unset($this->node_pool); + } + + /** + * Required. The node pool to create. + * + * Generated from protobuf field .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Container\V1\NodePool $var + * @return $this + */ + public function setNodePool($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool::class); + $this->node_pool = $var; + + return $this; + } + + /** + * The parent (project, location, cluster name) where the node pool will be + * created. Specified in the format + * `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string parent = 6; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * The parent (project, location, cluster name) where the node pool will be + * created. Specified in the format + * `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string parent = 6; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig.php new file mode 100644 index 000000000000..a1c6338f5310 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig.php @@ -0,0 +1,135 @@ +google.container.v1.DNSConfig + */ +class DNSConfig extends \Google\Protobuf\Internal\Message +{ + /** + * cluster_dns indicates which in-cluster DNS provider should be used. + * + * Generated from protobuf field .google.container.v1.DNSConfig.Provider cluster_dns = 1; + */ + protected $cluster_dns = 0; + /** + * cluster_dns_scope indicates the scope of access to cluster DNS records. + * + * Generated from protobuf field .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; + */ + protected $cluster_dns_scope = 0; + /** + * cluster_dns_domain is the suffix used for all cluster service records. + * + * Generated from protobuf field string cluster_dns_domain = 3; + */ + protected $cluster_dns_domain = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $cluster_dns + * cluster_dns indicates which in-cluster DNS provider should be used. + * @type int $cluster_dns_scope + * cluster_dns_scope indicates the scope of access to cluster DNS records. + * @type string $cluster_dns_domain + * cluster_dns_domain is the suffix used for all cluster service records. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * cluster_dns indicates which in-cluster DNS provider should be used. + * + * Generated from protobuf field .google.container.v1.DNSConfig.Provider cluster_dns = 1; + * @return int + */ + public function getClusterDns() + { + return $this->cluster_dns; + } + + /** + * cluster_dns indicates which in-cluster DNS provider should be used. + * + * Generated from protobuf field .google.container.v1.DNSConfig.Provider cluster_dns = 1; + * @param int $var + * @return $this + */ + public function setClusterDns($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\DNSConfig\Provider::class); + $this->cluster_dns = $var; + + return $this; + } + + /** + * cluster_dns_scope indicates the scope of access to cluster DNS records. + * + * Generated from protobuf field .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; + * @return int + */ + public function getClusterDnsScope() + { + return $this->cluster_dns_scope; + } + + /** + * cluster_dns_scope indicates the scope of access to cluster DNS records. + * + * Generated from protobuf field .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; + * @param int $var + * @return $this + */ + public function setClusterDnsScope($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\DNSConfig\DNSScope::class); + $this->cluster_dns_scope = $var; + + return $this; + } + + /** + * cluster_dns_domain is the suffix used for all cluster service records. + * + * Generated from protobuf field string cluster_dns_domain = 3; + * @return string + */ + public function getClusterDnsDomain() + { + return $this->cluster_dns_domain; + } + + /** + * cluster_dns_domain is the suffix used for all cluster service records. + * + * Generated from protobuf field string cluster_dns_domain = 3; + * @param string $var + * @return $this + */ + public function setClusterDnsDomain($var) + { + GPBUtil::checkString($var, True); + $this->cluster_dns_domain = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/DNSScope.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/DNSScope.php new file mode 100644 index 000000000000..deaedc169384 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/DNSScope.php @@ -0,0 +1,64 @@ +google.container.v1.DNSConfig.DNSScope + */ +class DNSScope +{ + /** + * Default value, will be inferred as cluster scope. + * + * Generated from protobuf enum DNS_SCOPE_UNSPECIFIED = 0; + */ + const DNS_SCOPE_UNSPECIFIED = 0; + /** + * DNS records are accessible from within the cluster. + * + * Generated from protobuf enum CLUSTER_SCOPE = 1; + */ + const CLUSTER_SCOPE = 1; + /** + * DNS records are accessible from within the VPC. + * + * Generated from protobuf enum VPC_SCOPE = 2; + */ + const VPC_SCOPE = 2; + + private static $valueToName = [ + self::DNS_SCOPE_UNSPECIFIED => 'DNS_SCOPE_UNSPECIFIED', + self::CLUSTER_SCOPE => 'CLUSTER_SCOPE', + self::VPC_SCOPE => 'VPC_SCOPE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(DNSScope::class, \Google\Cloud\Container\V1\DNSConfig_DNSScope::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/Provider.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/Provider.php new file mode 100644 index 000000000000..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..a8f206a6497a --- /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://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster to delete. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * The name (project, location, cluster) of the cluster to delete. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 4; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster to delete. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster) of the cluster to delete. + * Specified in the format `projects/*/locations/*/clusters/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster to delete. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster to delete. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * The name (project, location, cluster) of the cluster to delete. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 4; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster) of the cluster to delete. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 4; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DeleteNodePoolRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DeleteNodePoolRequest.php new file mode 100644 index 000000000000..04335e40a89a --- /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://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * Deprecated. The name of the node pool to delete. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @deprecated + */ + protected $node_pool_id = ''; + /** + * The name (project, location, cluster, node pool id) of the node pool to + * delete. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 6; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * @type string $node_pool_id + * Deprecated. The name of the node pool to delete. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster, node pool id) of the node pool to + * delete. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the node pool to delete. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @return string + * @deprecated + */ + public function getNodePoolId() + { + @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); + return $this->node_pool_id; + } + + /** + * Deprecated. The name of the node pool to delete. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setNodePoolId($var) + { + @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->node_pool_id = $var; + + return $this; + } + + /** + * The name (project, location, cluster, node pool id) of the node pool to + * delete. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 6; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster, node pool id) of the node pool to + * delete. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 6; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DnsCacheConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DnsCacheConfig.php new file mode 100644 index 000000000000..d97751e491df --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DnsCacheConfig.php @@ -0,0 +1,67 @@ +google.container.v1.DnsCacheConfig + */ +class DnsCacheConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Whether NodeLocal DNSCache is enabled for this cluster. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Whether NodeLocal DNSCache is enabled for this cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether NodeLocal DNSCache is enabled for this cluster. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Whether NodeLocal DNSCache is enabled for this cluster. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EphemeralStorageLocalSsdConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EphemeralStorageLocalSsdConfig.php new file mode 100644 index 000000000000..0015da72f02f --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EphemeralStorageLocalSsdConfig.php @@ -0,0 +1,92 @@ +google.container.v1.EphemeralStorageLocalSsdConfig + */ +class EphemeralStorageLocalSsdConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Number of local SSDs to use to back ephemeral storage. Uses NVMe + * interfaces. Each local SSD is 375 GB in size. + * If zero, it means to disable using local SSDs as ephemeral storage. + * 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 = 1; + */ + protected $local_ssd_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $local_ssd_count + * Number of local SSDs to use to back ephemeral storage. Uses NVMe + * interfaces. Each local SSD is 375 GB in size. + * If zero, it means to disable using local SSDs as ephemeral storage. + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Number of local SSDs to use to back ephemeral storage. Uses NVMe + * interfaces. Each local SSD is 375 GB in size. + * If zero, it means to disable using local SSDs as ephemeral storage. + * 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 = 1; + * @return int + */ + public function getLocalSsdCount() + { + return $this->local_ssd_count; + } + + /** + * Number of local SSDs to use to back ephemeral storage. Uses NVMe + * interfaces. Each local SSD is 375 GB in size. + * If zero, it means to disable using local SSDs as ephemeral storage. + * 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 = 1; + * @param int $var + * @return $this + */ + public function setLocalSsdCount($var) + { + GPBUtil::checkInt32($var); + $this->local_ssd_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/FastSocket.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/FastSocket.php new file mode 100644 index 000000000000..18d90d015cd3 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/FastSocket.php @@ -0,0 +1,67 @@ +google.container.v1.FastSocket + */ +class FastSocket extends \Google\Protobuf\Internal\Message +{ + /** + * Whether Fast Socket features are enabled in the node pool. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Whether Fast Socket features are enabled in the node pool. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether Fast Socket features are enabled in the node pool. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Whether Fast Socket features are enabled in the node pool. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig.php new file mode 100644 index 000000000000..2badc2e49622 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig.php @@ -0,0 +1,112 @@ +google.container.v1.GPUSharingConfig + */ +class GPUSharingConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The max number of containers that can share a physical GPU. + * + * Generated from protobuf field int64 max_shared_clients_per_gpu = 1; + */ + protected $max_shared_clients_per_gpu = 0; + /** + * The type of GPU sharing strategy to enable on the GPU node. + * + * Generated from protobuf field optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; + */ + protected $gpu_sharing_strategy = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $max_shared_clients_per_gpu + * The max number of containers that can share a physical GPU. + * @type int $gpu_sharing_strategy + * The type of GPU sharing strategy to enable on the GPU node. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The max number of containers that can share a physical GPU. + * + * Generated from protobuf field int64 max_shared_clients_per_gpu = 1; + * @return int|string + */ + public function getMaxSharedClientsPerGpu() + { + return $this->max_shared_clients_per_gpu; + } + + /** + * The max number of containers that can share a physical GPU. + * + * Generated from protobuf field int64 max_shared_clients_per_gpu = 1; + * @param int|string $var + * @return $this + */ + public function setMaxSharedClientsPerGpu($var) + { + GPBUtil::checkInt64($var); + $this->max_shared_clients_per_gpu = $var; + + return $this; + } + + /** + * The type of GPU sharing strategy to enable on the GPU node. + * + * Generated from protobuf field optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; + * @return int + */ + public function getGpuSharingStrategy() + { + return isset($this->gpu_sharing_strategy) ? $this->gpu_sharing_strategy : 0; + } + + public function hasGpuSharingStrategy() + { + return isset($this->gpu_sharing_strategy); + } + + public function clearGpuSharingStrategy() + { + unset($this->gpu_sharing_strategy); + } + + /** + * The type of GPU sharing strategy to enable on the GPU node. + * + * Generated from protobuf field optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; + * @param int $var + * @return $this + */ + public function setGpuSharingStrategy($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\GPUSharingConfig\GPUSharingStrategy::class); + $this->gpu_sharing_strategy = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig/GPUSharingStrategy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig/GPUSharingStrategy.php new file mode 100644 index 000000000000..b7c519c60962 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig/GPUSharingStrategy.php @@ -0,0 +1,57 @@ +google.container.v1.GPUSharingConfig.GPUSharingStrategy + */ +class GPUSharingStrategy +{ + /** + * Default value. + * + * Generated from protobuf enum GPU_SHARING_STRATEGY_UNSPECIFIED = 0; + */ + const GPU_SHARING_STRATEGY_UNSPECIFIED = 0; + /** + * GPUs are time-shared between containers. + * + * Generated from protobuf enum TIME_SHARING = 1; + */ + const TIME_SHARING = 1; + + private static $valueToName = [ + self::GPU_SHARING_STRATEGY_UNSPECIFIED => 'GPU_SHARING_STRATEGY_UNSPECIFIED', + self::TIME_SHARING => 'TIME_SHARING', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GPUSharingStrategy::class, \Google\Cloud\Container\V1\GPUSharingConfig_GPUSharingStrategy::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig_GPUSharingStrategy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig_GPUSharingStrategy.php new file mode 100644 index 000000000000..69bdd525ba9b --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig_GPUSharingStrategy.php @@ -0,0 +1,16 @@ +google.container.v1.GatewayAPIConfig + */ +class GatewayAPIConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The Gateway API release channel to use for Gateway API. + * + * Generated from protobuf field .google.container.v1.GatewayAPIConfig.Channel channel = 1; + */ + protected $channel = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $channel + * The Gateway API release channel to use for Gateway API. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The Gateway API release channel to use for Gateway API. + * + * Generated from protobuf field .google.container.v1.GatewayAPIConfig.Channel channel = 1; + * @return int + */ + public function getChannel() + { + return $this->channel; + } + + /** + * The Gateway API release channel to use for Gateway API. + * + * Generated from protobuf field .google.container.v1.GatewayAPIConfig.Channel channel = 1; + * @param int $var + * @return $this + */ + public function setChannel($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\GatewayAPIConfig\Channel::class); + $this->channel = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig/Channel.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig/Channel.php new file mode 100644 index 000000000000..e947315711f5 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig/Channel.php @@ -0,0 +1,72 @@ +google.container.v1.GatewayAPIConfig.Channel + */ +class Channel +{ + /** + * Default value. + * + * Generated from protobuf enum CHANNEL_UNSPECIFIED = 0; + */ + const CHANNEL_UNSPECIFIED = 0; + /** + * Gateway API support is disabled + * + * Generated from protobuf enum CHANNEL_DISABLED = 1; + */ + const CHANNEL_DISABLED = 1; + /** + * Gateway API support is enabled, experimental CRDs are installed + * + * Generated from protobuf enum CHANNEL_EXPERIMENTAL = 3; + */ + const CHANNEL_EXPERIMENTAL = 3; + /** + * Gateway API support is enabled, standard CRDs are installed + * + * Generated from protobuf enum CHANNEL_STANDARD = 4; + */ + const CHANNEL_STANDARD = 4; + + private static $valueToName = [ + self::CHANNEL_UNSPECIFIED => 'CHANNEL_UNSPECIFIED', + self::CHANNEL_DISABLED => 'CHANNEL_DISABLED', + self::CHANNEL_EXPERIMENTAL => 'CHANNEL_EXPERIMENTAL', + self::CHANNEL_STANDARD => 'CHANNEL_STANDARD', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Channel::class, \Google\Cloud\Container\V1\GatewayAPIConfig_Channel::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig_Channel.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig_Channel.php new file mode 100644 index 000000000000..9304fbcb987e --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig_Channel.php @@ -0,0 +1,16 @@ +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..c10e84039d40 --- /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://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster to retrieve. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * The name (project, location, cluster) of the cluster to retrieve. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 5; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster to retrieve. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster) of the cluster to retrieve. + * Specified in the format `projects/*/locations/*/clusters/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster to retrieve. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster to retrieve. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * The name (project, location, cluster) of the cluster to retrieve. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 5; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster) of the cluster to retrieve. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 5; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysRequest.php new file mode 100644 index 000000000000..51b7332269ce --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysRequest.php @@ -0,0 +1,74 @@ +google.container.v1.GetJSONWebKeysRequest + */ +class GetJSONWebKeysRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The cluster (project, location, cluster name) to get keys for. Specified in + * the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string parent = 1; + */ + protected $parent = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * The cluster (project, location, cluster name) to get keys for. Specified in + * the format `projects/*/locations/*/clusters/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The cluster (project, location, cluster name) to get keys for. Specified in + * the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string parent = 1; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * The cluster (project, location, cluster name) to get keys for. Specified in + * the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string parent = 1; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysResponse.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysResponse.php new file mode 100644 index 000000000000..e87ea71c60c3 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysResponse.php @@ -0,0 +1,71 @@ +google.container.v1.GetJSONWebKeysResponse + */ +class GetJSONWebKeysResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The public component of the keys used by the cluster to sign token + * requests. + * + * Generated from protobuf field repeated .google.container.v1.Jwk keys = 1; + */ + private $keys; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\Container\V1\Jwk>|\Google\Protobuf\Internal\RepeatedField $keys + * The public component of the keys used by the cluster to sign token + * requests. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The public component of the keys used by the cluster to sign token + * requests. + * + * Generated from protobuf field repeated .google.container.v1.Jwk keys = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getKeys() + { + return $this->keys; + } + + /** + * The public component of the keys used by the cluster to sign token + * requests. + * + * Generated from protobuf field repeated .google.container.v1.Jwk keys = 1; + * @param array<\Google\Cloud\Container\V1\Jwk>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setKeys($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\Jwk::class); + $this->keys = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetNodePoolRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetNodePoolRequest.php new file mode 100644 index 000000000000..8c6c8e191cd8 --- /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://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * Deprecated. The name of the node pool. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @deprecated + */ + protected $node_pool_id = ''; + /** + * The name (project, location, cluster, node pool id) of the node pool to + * get. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 6; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * @type string $node_pool_id + * Deprecated. The name of the node pool. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster, node pool id) of the node pool to + * get. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the node pool. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @return string + * @deprecated + */ + public function getNodePoolId() + { + @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); + return $this->node_pool_id; + } + + /** + * Deprecated. The name of the node pool. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setNodePoolId($var) + { + @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->node_pool_id = $var; + + return $this; + } + + /** + * The name (project, location, cluster, node pool id) of the node pool to + * get. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 6; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster, node pool id) of the node pool to + * get. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 6; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigRequest.php new file mode 100644 index 000000000000..91eed5acb736 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigRequest.php @@ -0,0 +1,72 @@ +google.container.v1.GetOpenIDConfigRequest + */ +class GetOpenIDConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The cluster (project, location, cluster name) to get the discovery document + * for. Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string parent = 1; + */ + protected $parent = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * The cluster (project, location, cluster name) to get the discovery document + * for. Specified in the format `projects/*/locations/*/clusters/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The cluster (project, location, cluster name) to get the discovery document + * for. Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string parent = 1; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * The cluster (project, location, cluster name) to get the discovery document + * for. Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string parent = 1; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigResponse.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigResponse.php new file mode 100644 index 000000000000..99ed8727e6b6 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigResponse.php @@ -0,0 +1,272 @@ +google.container.v1.GetOpenIDConfigResponse + */ +class GetOpenIDConfigResponse extends \Google\Protobuf\Internal\Message +{ + /** + * OIDC Issuer. + * + * Generated from protobuf field string issuer = 1; + */ + protected $issuer = ''; + /** + * JSON Web Key uri. + * + * Generated from protobuf field string jwks_uri = 2; + */ + protected $jwks_uri = ''; + /** + * Supported response types. + * + * Generated from protobuf field repeated string response_types_supported = 3; + */ + private $response_types_supported; + /** + * Supported subject types. + * + * Generated from protobuf field repeated string subject_types_supported = 4; + */ + private $subject_types_supported; + /** + * supported ID Token signing Algorithms. + * + * Generated from protobuf field repeated string id_token_signing_alg_values_supported = 5; + */ + private $id_token_signing_alg_values_supported; + /** + * Supported claims. + * + * Generated from protobuf field repeated string claims_supported = 6; + */ + private $claims_supported; + /** + * Supported grant types. + * + * Generated from protobuf field repeated string grant_types = 7; + */ + private $grant_types; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $issuer + * OIDC Issuer. + * @type string $jwks_uri + * JSON Web Key uri. + * @type array|\Google\Protobuf\Internal\RepeatedField $response_types_supported + * Supported response types. + * @type array|\Google\Protobuf\Internal\RepeatedField $subject_types_supported + * Supported subject types. + * @type array|\Google\Protobuf\Internal\RepeatedField $id_token_signing_alg_values_supported + * supported ID Token signing Algorithms. + * @type array|\Google\Protobuf\Internal\RepeatedField $claims_supported + * Supported claims. + * @type array|\Google\Protobuf\Internal\RepeatedField $grant_types + * Supported grant types. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * OIDC Issuer. + * + * Generated from protobuf field string issuer = 1; + * @return string + */ + public function getIssuer() + { + return $this->issuer; + } + + /** + * OIDC Issuer. + * + * Generated from protobuf field string issuer = 1; + * @param string $var + * @return $this + */ + public function setIssuer($var) + { + GPBUtil::checkString($var, True); + $this->issuer = $var; + + return $this; + } + + /** + * JSON Web Key uri. + * + * Generated from protobuf field string jwks_uri = 2; + * @return string + */ + public function getJwksUri() + { + return $this->jwks_uri; + } + + /** + * JSON Web Key uri. + * + * Generated from protobuf field string jwks_uri = 2; + * @param string $var + * @return $this + */ + public function setJwksUri($var) + { + GPBUtil::checkString($var, True); + $this->jwks_uri = $var; + + return $this; + } + + /** + * Supported response types. + * + * Generated from protobuf field repeated string response_types_supported = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getResponseTypesSupported() + { + return $this->response_types_supported; + } + + /** + * Supported response types. + * + * Generated from protobuf field repeated string response_types_supported = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setResponseTypesSupported($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->response_types_supported = $arr; + + return $this; + } + + /** + * Supported subject types. + * + * Generated from protobuf field repeated string subject_types_supported = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSubjectTypesSupported() + { + return $this->subject_types_supported; + } + + /** + * Supported subject types. + * + * Generated from protobuf field repeated string subject_types_supported = 4; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSubjectTypesSupported($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->subject_types_supported = $arr; + + return $this; + } + + /** + * supported ID Token signing Algorithms. + * + * Generated from protobuf field repeated string id_token_signing_alg_values_supported = 5; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getIdTokenSigningAlgValuesSupported() + { + return $this->id_token_signing_alg_values_supported; + } + + /** + * supported ID Token signing Algorithms. + * + * Generated from protobuf field repeated string id_token_signing_alg_values_supported = 5; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setIdTokenSigningAlgValuesSupported($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->id_token_signing_alg_values_supported = $arr; + + return $this; + } + + /** + * Supported claims. + * + * Generated from protobuf field repeated string claims_supported = 6; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getClaimsSupported() + { + return $this->claims_supported; + } + + /** + * Supported claims. + * + * Generated from protobuf field repeated string claims_supported = 6; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setClaimsSupported($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->claims_supported = $arr; + + return $this; + } + + /** + * Supported grant types. + * + * Generated from protobuf field repeated string grant_types = 7; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getGrantTypes() + { + return $this->grant_types; + } + + /** + * Supported grant types. + * + * Generated from protobuf field repeated string grant_types = 7; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setGrantTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->grant_types = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOperationRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOperationRequest.php new file mode 100644 index 000000000000..63dbda7fefac --- /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://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The server-assigned `name` of the operation. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string operation_id = 3 [deprecated = true]; + * @deprecated + */ + protected $operation_id = ''; + /** + * The name (project, location, operation id) of the operation to get. + * Specified in the format `projects/*/locations/*/operations/*`. + * + * Generated from protobuf field string name = 5; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $operation_id + * Deprecated. The server-assigned `name` of the operation. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, operation id) of the operation to get. + * Specified in the format `projects/*/locations/*/operations/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The server-assigned `name` of the operation. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string operation_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getOperationId() + { + @trigger_error('operation_id is deprecated.', E_USER_DEPRECATED); + return $this->operation_id; + } + + /** + * Deprecated. The server-assigned `name` of the operation. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string operation_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setOperationId($var) + { + @trigger_error('operation_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->operation_id = $var; + + return $this; + } + + /** + * The name (project, location, operation id) of the operation to get. + * Specified in the format `projects/*/locations/*/operations/*`. + * + * Generated from protobuf field string name = 5; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, operation id) of the operation to get. + * Specified in the format `projects/*/locations/*/operations/*`. + * + * Generated from protobuf field string name = 5; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetServerConfigRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetServerConfigRequest.php new file mode 100644 index 000000000000..4ad94c25ddd0 --- /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://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) to return + * operations for. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * The name (project and location) of the server config to get, + * specified in the format `projects/*/locations/*`. + * + * Generated from protobuf field string name = 4; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) to return + * operations for. This field has been deprecated and replaced by the name + * field. + * @type string $name + * The name (project and location) of the server config to get, + * specified in the format `projects/*/locations/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) to return + * operations for. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) to return + * operations for. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * The name (project and location) of the server config to get, + * specified in the format `projects/*/locations/*`. + * + * Generated from protobuf field string name = 4; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project and location) of the server config to get, + * specified in the format `projects/*/locations/*`. + * + * Generated from protobuf field string name = 4; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GkeBackupAgentConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GkeBackupAgentConfig.php new file mode 100644 index 000000000000..de7ae1b5392b --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GkeBackupAgentConfig.php @@ -0,0 +1,67 @@ +google.container.v1.GkeBackupAgentConfig + */ +class GkeBackupAgentConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Whether the Backup for GKE agent is enabled for this cluster. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Whether the Backup for GKE agent is enabled for this cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether the Backup for GKE agent is enabled for this cluster. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Whether the Backup for GKE agent is enabled for this cluster. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HorizontalPodAutoscaling.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HorizontalPodAutoscaling.php new file mode 100644 index 000000000000..0e904a7e225a --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HorizontalPodAutoscaling.php @@ -0,0 +1,77 @@ +google.container.v1.HorizontalPodAutoscaling + */ +class HorizontalPodAutoscaling extends \Google\Protobuf\Internal\Message +{ + /** + * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. + * When enabled, it ensures that metrics are collected into Stackdriver + * Monitoring. + * + * Generated from protobuf field bool disabled = 1; + */ + protected $disabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $disabled + * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. + * When enabled, it ensures that metrics are collected into Stackdriver + * Monitoring. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. + * When enabled, it ensures that metrics are collected into Stackdriver + * Monitoring. + * + * Generated from protobuf field bool disabled = 1; + * @return bool + */ + public function getDisabled() + { + return $this->disabled; + } + + /** + * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. + * When enabled, it ensures that metrics are collected into Stackdriver + * Monitoring. + * + * Generated from protobuf field bool disabled = 1; + * @param bool $var + * @return $this + */ + public function setDisabled($var) + { + GPBUtil::checkBool($var); + $this->disabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HttpLoadBalancing.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HttpLoadBalancing.php new file mode 100644 index 000000000000..abe2b7c900b2 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HttpLoadBalancing.php @@ -0,0 +1,76 @@ +google.container.v1.HttpLoadBalancing + */ +class HttpLoadBalancing extends \Google\Protobuf\Internal\Message +{ + /** + * Whether the HTTP Load Balancing controller is enabled in the cluster. + * When enabled, it runs a small pod in the cluster that manages the load + * balancers. + * + * Generated from protobuf field bool disabled = 1; + */ + protected $disabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $disabled + * Whether the HTTP Load Balancing controller is enabled in the cluster. + * When enabled, it runs a small pod in the cluster that manages the load + * balancers. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether the HTTP Load Balancing controller is enabled in the cluster. + * When enabled, it runs a small pod in the cluster that manages the load + * balancers. + * + * Generated from protobuf field bool disabled = 1; + * @return bool + */ + public function getDisabled() + { + return $this->disabled; + } + + /** + * Whether the HTTP Load Balancing controller is enabled in the cluster. + * When enabled, it runs a small pod in the cluster that manages the load + * balancers. + * + * Generated from protobuf field bool disabled = 1; + * @param bool $var + * @return $this + */ + public function setDisabled($var) + { + GPBUtil::checkBool($var); + $this->disabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ILBSubsettingConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ILBSubsettingConfig.php new file mode 100644 index 000000000000..64b0d8c63670 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ILBSubsettingConfig.php @@ -0,0 +1,68 @@ +google.container.v1.ILBSubsettingConfig + */ +class ILBSubsettingConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Enables l4 ILB subsetting for this cluster. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Enables l4 ILB subsetting for this cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Enables l4 ILB subsetting for this cluster. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Enables l4 ILB subsetting for this cluster. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPAllocationPolicy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPAllocationPolicy.php new file mode 100644 index 000000000000..c32df13f6d83 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPAllocationPolicy.php @@ -0,0 +1,862 @@ +google.container.v1.IPAllocationPolicy + */ +class IPAllocationPolicy extends \Google\Protobuf\Internal\Message +{ + /** + * Whether alias IPs will be used for pod IPs in the cluster. + * This is used in conjunction with use_routes. It cannot + * be true if use_routes is true. If both use_ip_aliases and use_routes are + * false, then the server picks the default IP allocation mode + * + * Generated from protobuf field bool use_ip_aliases = 1; + */ + protected $use_ip_aliases = false; + /** + * Whether a new subnetwork will be created automatically for the cluster. + * This field is only applicable when `use_ip_aliases` is true. + * + * Generated from protobuf field bool create_subnetwork = 2; + */ + protected $create_subnetwork = false; + /** + * A custom subnetwork name to be used if `create_subnetwork` is true. If + * this field is empty, then an automatic name will be chosen for the new + * subnetwork. + * + * Generated from protobuf field string subnetwork_name = 3; + */ + protected $subnetwork_name = ''; + /** + * This field is deprecated, use cluster_ipv4_cidr_block. + * + * Generated from protobuf field string cluster_ipv4_cidr = 4 [deprecated = true]; + * @deprecated + */ + protected $cluster_ipv4_cidr = ''; + /** + * This field is deprecated, use node_ipv4_cidr_block. + * + * Generated from protobuf field string node_ipv4_cidr = 5 [deprecated = true]; + * @deprecated + */ + protected $node_ipv4_cidr = ''; + /** + * This field is deprecated, use services_ipv4_cidr_block. + * + * Generated from protobuf field string services_ipv4_cidr = 6 [deprecated = true]; + * @deprecated + */ + protected $services_ipv4_cidr = ''; + /** + * The name of the secondary range to be used for the cluster CIDR + * block. The secondary range will be used for pod IP + * addresses. This must be an existing secondary range associated + * with the cluster subnetwork. + * This field is only applicable with use_ip_aliases is true and + * create_subnetwork is false. + * + * Generated from protobuf field string cluster_secondary_range_name = 7; + */ + protected $cluster_secondary_range_name = ''; + /** + * The name of the secondary range to be used as for the services + * CIDR block. The secondary range will be used for service + * ClusterIPs. This must be an existing secondary range associated + * with the cluster subnetwork. + * This field is only applicable with use_ip_aliases is true and + * create_subnetwork is false. + * + * Generated from protobuf field string services_secondary_range_name = 8; + */ + protected $services_secondary_range_name = ''; + /** + * The IP address range for the cluster pod IPs. If this field is set, then + * `cluster.cluster_ipv4_cidr` must be left blank. + * This field is only applicable when `use_ip_aliases` is true. + * Set to blank to have a range chosen with the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + * to use. + * + * Generated from protobuf field string cluster_ipv4_cidr_block = 9; + */ + protected $cluster_ipv4_cidr_block = ''; + /** + * The IP address range of the instance IPs in this cluster. + * This is applicable only if `create_subnetwork` is true. + * Set to blank to have a range chosen with the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + * to use. + * + * Generated from protobuf field string node_ipv4_cidr_block = 10; + */ + protected $node_ipv4_cidr_block = ''; + /** + * The IP address range of the services IPs in this cluster. If blank, a range + * will be automatically chosen with the default size. + * This field is only applicable when `use_ip_aliases` is true. + * Set to blank to have a range chosen with the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + * to use. + * + * Generated from protobuf field string services_ipv4_cidr_block = 11; + */ + protected $services_ipv4_cidr_block = ''; + /** + * The IP address range of the Cloud TPUs in this cluster. If unspecified, a + * range will be automatically chosen with the default size. + * This field is only applicable when `use_ip_aliases` is true. + * If unspecified, the range will use the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + * to use. + * + * Generated from protobuf field string tpu_ipv4_cidr_block = 13; + */ + protected $tpu_ipv4_cidr_block = ''; + /** + * Whether routes will be used for pod IPs in the cluster. + * This is used in conjunction with use_ip_aliases. It cannot be true if + * use_ip_aliases is true. If both use_ip_aliases and use_routes are false, + * then the server picks the default IP allocation mode + * + * Generated from protobuf field bool use_routes = 15; + */ + protected $use_routes = false; + /** + * The IP stack type of the cluster + * + * Generated from protobuf field .google.container.v1.StackType stack_type = 16; + */ + protected $stack_type = 0; + /** + * The ipv6 access type (internal or external) when create_subnetwork is true + * + * Generated from protobuf field .google.container.v1.IPv6AccessType ipv6_access_type = 17; + */ + protected $ipv6_access_type = 0; + /** + * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and + * pods. + * + * Generated from protobuf field string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $subnet_ipv6_cidr_block = ''; + /** + * Output only. [Output only] The services IPv6 CIDR block for the cluster. + * + * Generated from protobuf field string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $services_ipv6_cidr_block = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $use_ip_aliases + * Whether alias IPs will be used for pod IPs in the cluster. + * This is used in conjunction with use_routes. It cannot + * be true if use_routes is true. If both use_ip_aliases and use_routes are + * false, then the server picks the default IP allocation mode + * @type bool $create_subnetwork + * Whether a new subnetwork will be created automatically for the cluster. + * This field is only applicable when `use_ip_aliases` is true. + * @type string $subnetwork_name + * A custom subnetwork name to be used if `create_subnetwork` is true. If + * this field is empty, then an automatic name will be chosen for the new + * subnetwork. + * @type string $cluster_ipv4_cidr + * This field is deprecated, use cluster_ipv4_cidr_block. + * @type string $node_ipv4_cidr + * This field is deprecated, use node_ipv4_cidr_block. + * @type string $services_ipv4_cidr + * This field is deprecated, use services_ipv4_cidr_block. + * @type string $cluster_secondary_range_name + * The name of the secondary range to be used for the cluster CIDR + * block. The secondary range will be used for pod IP + * addresses. This must be an existing secondary range associated + * with the cluster subnetwork. + * This field is only applicable with use_ip_aliases is true and + * create_subnetwork is false. + * @type string $services_secondary_range_name + * The name of the secondary range to be used as for the services + * CIDR block. The secondary range will be used for service + * ClusterIPs. This must be an existing secondary range associated + * with the cluster subnetwork. + * This field is only applicable with use_ip_aliases is true and + * create_subnetwork is false. + * @type string $cluster_ipv4_cidr_block + * The IP address range for the cluster pod IPs. If this field is set, then + * `cluster.cluster_ipv4_cidr` must be left blank. + * This field is only applicable when `use_ip_aliases` is true. + * Set to blank to have a range chosen with the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + * to use. + * @type string $node_ipv4_cidr_block + * The IP address range of the instance IPs in this cluster. + * This is applicable only if `create_subnetwork` is true. + * Set to blank to have a range chosen with the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + * to use. + * @type string $services_ipv4_cidr_block + * The IP address range of the services IPs in this cluster. If blank, a range + * will be automatically chosen with the default size. + * This field is only applicable when `use_ip_aliases` is true. + * Set to blank to have a range chosen with the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + * to use. + * @type string $tpu_ipv4_cidr_block + * The IP address range of the Cloud TPUs in this cluster. If unspecified, a + * range will be automatically chosen with the default size. + * This field is only applicable when `use_ip_aliases` is true. + * If unspecified, the range will use the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + * to use. + * @type bool $use_routes + * Whether routes will be used for pod IPs in the cluster. + * This is used in conjunction with use_ip_aliases. It cannot be true if + * use_ip_aliases is true. If both use_ip_aliases and use_routes are false, + * then the server picks the default IP allocation mode + * @type int $stack_type + * The IP stack type of the cluster + * @type int $ipv6_access_type + * The ipv6 access type (internal or external) when create_subnetwork is true + * @type string $subnet_ipv6_cidr_block + * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and + * pods. + * @type string $services_ipv6_cidr_block + * Output only. [Output only] The services IPv6 CIDR block for the cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether alias IPs will be used for pod IPs in the cluster. + * This is used in conjunction with use_routes. It cannot + * be true if use_routes is true. If both use_ip_aliases and use_routes are + * false, then the server picks the default IP allocation mode + * + * Generated from protobuf field bool use_ip_aliases = 1; + * @return bool + */ + public function getUseIpAliases() + { + return $this->use_ip_aliases; + } + + /** + * Whether alias IPs will be used for pod IPs in the cluster. + * This is used in conjunction with use_routes. It cannot + * be true if use_routes is true. If both use_ip_aliases and use_routes are + * false, then the server picks the default IP allocation mode + * + * Generated from protobuf field bool use_ip_aliases = 1; + * @param bool $var + * @return $this + */ + public function setUseIpAliases($var) + { + GPBUtil::checkBool($var); + $this->use_ip_aliases = $var; + + return $this; + } + + /** + * Whether a new subnetwork will be created automatically for the cluster. + * This field is only applicable when `use_ip_aliases` is true. + * + * Generated from protobuf field bool create_subnetwork = 2; + * @return bool + */ + public function getCreateSubnetwork() + { + return $this->create_subnetwork; + } + + /** + * Whether a new subnetwork will be created automatically for the cluster. + * This field is only applicable when `use_ip_aliases` is true. + * + * Generated from protobuf field bool create_subnetwork = 2; + * @param bool $var + * @return $this + */ + public function setCreateSubnetwork($var) + { + GPBUtil::checkBool($var); + $this->create_subnetwork = $var; + + return $this; + } + + /** + * A custom subnetwork name to be used if `create_subnetwork` is true. If + * this field is empty, then an automatic name will be chosen for the new + * subnetwork. + * + * Generated from protobuf field string subnetwork_name = 3; + * @return string + */ + public function getSubnetworkName() + { + return $this->subnetwork_name; + } + + /** + * A custom subnetwork name to be used if `create_subnetwork` is true. If + * this field is empty, then an automatic name will be chosen for the new + * subnetwork. + * + * Generated from protobuf field string subnetwork_name = 3; + * @param string $var + * @return $this + */ + public function setSubnetworkName($var) + { + GPBUtil::checkString($var, True); + $this->subnetwork_name = $var; + + return $this; + } + + /** + * This field is deprecated, use cluster_ipv4_cidr_block. + * + * Generated from protobuf field string cluster_ipv4_cidr = 4 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterIpv4Cidr() + { + @trigger_error('cluster_ipv4_cidr is deprecated.', E_USER_DEPRECATED); + return $this->cluster_ipv4_cidr; + } + + /** + * This field is deprecated, use cluster_ipv4_cidr_block. + * + * Generated from protobuf field string cluster_ipv4_cidr = 4 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterIpv4Cidr($var) + { + @trigger_error('cluster_ipv4_cidr is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_ipv4_cidr = $var; + + return $this; + } + + /** + * This field is deprecated, use node_ipv4_cidr_block. + * + * Generated from protobuf field string node_ipv4_cidr = 5 [deprecated = true]; + * @return string + * @deprecated + */ + public function getNodeIpv4Cidr() + { + @trigger_error('node_ipv4_cidr is deprecated.', E_USER_DEPRECATED); + return $this->node_ipv4_cidr; + } + + /** + * This field is deprecated, use node_ipv4_cidr_block. + * + * Generated from protobuf field string node_ipv4_cidr = 5 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setNodeIpv4Cidr($var) + { + @trigger_error('node_ipv4_cidr is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->node_ipv4_cidr = $var; + + return $this; + } + + /** + * This field is deprecated, use services_ipv4_cidr_block. + * + * Generated from protobuf field string services_ipv4_cidr = 6 [deprecated = true]; + * @return string + * @deprecated + */ + public function getServicesIpv4Cidr() + { + @trigger_error('services_ipv4_cidr is deprecated.', E_USER_DEPRECATED); + return $this->services_ipv4_cidr; + } + + /** + * This field is deprecated, use services_ipv4_cidr_block. + * + * Generated from protobuf field string services_ipv4_cidr = 6 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setServicesIpv4Cidr($var) + { + @trigger_error('services_ipv4_cidr is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->services_ipv4_cidr = $var; + + return $this; + } + + /** + * The name of the secondary range to be used for the cluster CIDR + * block. The secondary range will be used for pod IP + * addresses. This must be an existing secondary range associated + * with the cluster subnetwork. + * This field is only applicable with use_ip_aliases is true and + * create_subnetwork is false. + * + * Generated from protobuf field string cluster_secondary_range_name = 7; + * @return string + */ + public function getClusterSecondaryRangeName() + { + return $this->cluster_secondary_range_name; + } + + /** + * The name of the secondary range to be used for the cluster CIDR + * block. The secondary range will be used for pod IP + * addresses. This must be an existing secondary range associated + * with the cluster subnetwork. + * This field is only applicable with use_ip_aliases is true and + * create_subnetwork is false. + * + * Generated from protobuf field string cluster_secondary_range_name = 7; + * @param string $var + * @return $this + */ + public function setClusterSecondaryRangeName($var) + { + GPBUtil::checkString($var, True); + $this->cluster_secondary_range_name = $var; + + return $this; + } + + /** + * The name of the secondary range to be used as for the services + * CIDR block. The secondary range will be used for service + * ClusterIPs. This must be an existing secondary range associated + * with the cluster subnetwork. + * This field is only applicable with use_ip_aliases is true and + * create_subnetwork is false. + * + * Generated from protobuf field string services_secondary_range_name = 8; + * @return string + */ + public function getServicesSecondaryRangeName() + { + return $this->services_secondary_range_name; + } + + /** + * The name of the secondary range to be used as for the services + * CIDR block. The secondary range will be used for service + * ClusterIPs. This must be an existing secondary range associated + * with the cluster subnetwork. + * This field is only applicable with use_ip_aliases is true and + * create_subnetwork is false. + * + * Generated from protobuf field string services_secondary_range_name = 8; + * @param string $var + * @return $this + */ + public function setServicesSecondaryRangeName($var) + { + GPBUtil::checkString($var, True); + $this->services_secondary_range_name = $var; + + return $this; + } + + /** + * The IP address range for the cluster pod IPs. If this field is set, then + * `cluster.cluster_ipv4_cidr` must be left blank. + * This field is only applicable when `use_ip_aliases` is true. + * Set to blank to have a range chosen with the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + * to use. + * + * Generated from protobuf field string cluster_ipv4_cidr_block = 9; + * @return string + */ + public function getClusterIpv4CidrBlock() + { + return $this->cluster_ipv4_cidr_block; + } + + /** + * The IP address range for the cluster pod IPs. If this field is set, then + * `cluster.cluster_ipv4_cidr` must be left blank. + * This field is only applicable when `use_ip_aliases` is true. + * Set to blank to have a range chosen with the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + * to use. + * + * Generated from protobuf field string cluster_ipv4_cidr_block = 9; + * @param string $var + * @return $this + */ + public function setClusterIpv4CidrBlock($var) + { + GPBUtil::checkString($var, True); + $this->cluster_ipv4_cidr_block = $var; + + return $this; + } + + /** + * The IP address range of the instance IPs in this cluster. + * This is applicable only if `create_subnetwork` is true. + * Set to blank to have a range chosen with the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + * to use. + * + * Generated from protobuf field string node_ipv4_cidr_block = 10; + * @return string + */ + public function getNodeIpv4CidrBlock() + { + return $this->node_ipv4_cidr_block; + } + + /** + * The IP address range of the instance IPs in this cluster. + * This is applicable only if `create_subnetwork` is true. + * Set to blank to have a range chosen with the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + * to use. + * + * Generated from protobuf field string node_ipv4_cidr_block = 10; + * @param string $var + * @return $this + */ + public function setNodeIpv4CidrBlock($var) + { + GPBUtil::checkString($var, True); + $this->node_ipv4_cidr_block = $var; + + return $this; + } + + /** + * The IP address range of the services IPs in this cluster. If blank, a range + * will be automatically chosen with the default size. + * This field is only applicable when `use_ip_aliases` is true. + * Set to blank to have a range chosen with the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + * to use. + * + * Generated from protobuf field string services_ipv4_cidr_block = 11; + * @return string + */ + public function getServicesIpv4CidrBlock() + { + return $this->services_ipv4_cidr_block; + } + + /** + * The IP address range of the services IPs in this cluster. If blank, a range + * will be automatically chosen with the default size. + * This field is only applicable when `use_ip_aliases` is true. + * Set to blank to have a range chosen with the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + * to use. + * + * Generated from protobuf field string services_ipv4_cidr_block = 11; + * @param string $var + * @return $this + */ + public function setServicesIpv4CidrBlock($var) + { + GPBUtil::checkString($var, True); + $this->services_ipv4_cidr_block = $var; + + return $this; + } + + /** + * The IP address range of the Cloud TPUs in this cluster. If unspecified, a + * range will be automatically chosen with the default size. + * This field is only applicable when `use_ip_aliases` is true. + * If unspecified, the range will use the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + * to use. + * + * Generated from protobuf field string tpu_ipv4_cidr_block = 13; + * @return string + */ + public function getTpuIpv4CidrBlock() + { + return $this->tpu_ipv4_cidr_block; + } + + /** + * The IP address range of the Cloud TPUs in this cluster. If unspecified, a + * range will be automatically chosen with the default size. + * This field is only applicable when `use_ip_aliases` is true. + * If unspecified, the range will use the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + * to use. + * + * Generated from protobuf field string tpu_ipv4_cidr_block = 13; + * @param string $var + * @return $this + */ + public function setTpuIpv4CidrBlock($var) + { + GPBUtil::checkString($var, True); + $this->tpu_ipv4_cidr_block = $var; + + return $this; + } + + /** + * Whether routes will be used for pod IPs in the cluster. + * This is used in conjunction with use_ip_aliases. It cannot be true if + * use_ip_aliases is true. If both use_ip_aliases and use_routes are false, + * then the server picks the default IP allocation mode + * + * Generated from protobuf field bool use_routes = 15; + * @return bool + */ + public function getUseRoutes() + { + return $this->use_routes; + } + + /** + * Whether routes will be used for pod IPs in the cluster. + * This is used in conjunction with use_ip_aliases. It cannot be true if + * use_ip_aliases is true. If both use_ip_aliases and use_routes are false, + * then the server picks the default IP allocation mode + * + * Generated from protobuf field bool use_routes = 15; + * @param bool $var + * @return $this + */ + public function setUseRoutes($var) + { + GPBUtil::checkBool($var); + $this->use_routes = $var; + + return $this; + } + + /** + * The IP stack type of the cluster + * + * Generated from protobuf field .google.container.v1.StackType stack_type = 16; + * @return int + */ + public function getStackType() + { + return $this->stack_type; + } + + /** + * The IP stack type of the cluster + * + * Generated from protobuf field .google.container.v1.StackType stack_type = 16; + * @param int $var + * @return $this + */ + public function setStackType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\StackType::class); + $this->stack_type = $var; + + return $this; + } + + /** + * The ipv6 access type (internal or external) when create_subnetwork is true + * + * Generated from protobuf field .google.container.v1.IPv6AccessType ipv6_access_type = 17; + * @return int + */ + public function getIpv6AccessType() + { + return $this->ipv6_access_type; + } + + /** + * The ipv6 access type (internal or external) when create_subnetwork is true + * + * Generated from protobuf field .google.container.v1.IPv6AccessType ipv6_access_type = 17; + * @param int $var + * @return $this + */ + public function setIpv6AccessType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\IPv6AccessType::class); + $this->ipv6_access_type = $var; + + return $this; + } + + /** + * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and + * pods. + * + * Generated from protobuf field string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getSubnetIpv6CidrBlock() + { + return $this->subnet_ipv6_cidr_block; + } + + /** + * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and + * pods. + * + * Generated from protobuf field string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setSubnetIpv6CidrBlock($var) + { + GPBUtil::checkString($var, True); + $this->subnet_ipv6_cidr_block = $var; + + return $this; + } + + /** + * Output only. [Output only] The services IPv6 CIDR block for the cluster. + * + * Generated from protobuf field string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getServicesIpv6CidrBlock() + { + return $this->services_ipv6_cidr_block; + } + + /** + * Output only. [Output only] The services IPv6 CIDR block for the cluster. + * + * Generated from protobuf field string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setServicesIpv6CidrBlock($var) + { + GPBUtil::checkString($var, True); + $this->services_ipv6_cidr_block = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPv6AccessType.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPv6AccessType.php new file mode 100644 index 000000000000..1b4be8e42d32 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPv6AccessType.php @@ -0,0 +1,61 @@ +google.container.v1.IPv6AccessType + */ +class IPv6AccessType +{ + /** + * Default value, will be defaulted as type external. + * + * Generated from protobuf enum IPV6_ACCESS_TYPE_UNSPECIFIED = 0; + */ + const IPV6_ACCESS_TYPE_UNSPECIFIED = 0; + /** + * Access type internal (all v6 addresses are internal IPs) + * + * Generated from protobuf enum INTERNAL = 1; + */ + const INTERNAL = 1; + /** + * Access type external (all v6 addresses are external IPs) + * + * Generated from protobuf enum EXTERNAL = 2; + */ + const EXTERNAL = 2; + + private static $valueToName = [ + self::IPV6_ACCESS_TYPE_UNSPECIFIED => 'IPV6_ACCESS_TYPE_UNSPECIFIED', + self::INTERNAL => 'INTERNAL', + self::EXTERNAL => 'EXTERNAL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IdentityServiceConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IdentityServiceConfig.php new file mode 100644 index 000000000000..61767b760f86 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IdentityServiceConfig.php @@ -0,0 +1,68 @@ +google.container.v1.IdentityServiceConfig + */ +class IdentityServiceConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Whether to enable the Identity Service component + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Whether to enable the Identity Service component + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether to enable the Identity Service component + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Whether to enable the Identity Service component + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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..523e5541d78d --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig.php @@ -0,0 +1,153 @@ +google.container.v1.LinuxNodeConfig + */ +class LinuxNodeConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The Linux kernel parameters to be applied to the nodes and all pods running + * on the nodes. + * The following parameters are supported. + * net.core.busy_poll + * net.core.busy_read + * net.core.netdev_max_backlog + * net.core.rmem_max + * net.core.wmem_default + * net.core.wmem_max + * net.core.optmem_max + * net.core.somaxconn + * net.ipv4.tcp_rmem + * net.ipv4.tcp_wmem + * net.ipv4.tcp_tw_reuse + * + * Generated from protobuf field map sysctls = 1; + */ + private $sysctls; + /** + * cgroup_mode specifies the cgroup mode to be used on the node. + * + * Generated from protobuf field .google.container.v1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; + */ + protected $cgroup_mode = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\MapField $sysctls + * The Linux kernel parameters to be applied to the nodes and all pods running + * on the nodes. + * The following parameters are supported. + * net.core.busy_poll + * net.core.busy_read + * net.core.netdev_max_backlog + * net.core.rmem_max + * net.core.wmem_default + * net.core.wmem_max + * net.core.optmem_max + * net.core.somaxconn + * net.ipv4.tcp_rmem + * net.ipv4.tcp_wmem + * net.ipv4.tcp_tw_reuse + * @type int $cgroup_mode + * cgroup_mode specifies the cgroup mode to be used on the node. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The Linux kernel parameters to be applied to the nodes and all pods running + * on the nodes. + * The following parameters are supported. + * net.core.busy_poll + * net.core.busy_read + * net.core.netdev_max_backlog + * net.core.rmem_max + * net.core.wmem_default + * net.core.wmem_max + * net.core.optmem_max + * net.core.somaxconn + * net.ipv4.tcp_rmem + * net.ipv4.tcp_wmem + * net.ipv4.tcp_tw_reuse + * + * Generated from protobuf field map sysctls = 1; + * @return \Google\Protobuf\Internal\MapField + */ + public function getSysctls() + { + return $this->sysctls; + } + + /** + * The Linux kernel parameters to be applied to the nodes and all pods running + * on the nodes. + * The following parameters are supported. + * net.core.busy_poll + * net.core.busy_read + * net.core.netdev_max_backlog + * net.core.rmem_max + * net.core.wmem_default + * net.core.wmem_max + * net.core.optmem_max + * net.core.somaxconn + * net.ipv4.tcp_rmem + * net.ipv4.tcp_wmem + * net.ipv4.tcp_tw_reuse + * + * Generated from protobuf field map sysctls = 1; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setSysctls($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->sysctls = $arr; + + return $this; + } + + /** + * cgroup_mode specifies the cgroup mode to be used on the node. + * + * Generated from protobuf field .google.container.v1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; + * @return int + */ + public function getCgroupMode() + { + return $this->cgroup_mode; + } + + /** + * cgroup_mode specifies the cgroup mode to be used on the node. + * + * Generated from protobuf field .google.container.v1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; + * @param int $var + * @return $this + */ + public function setCgroupMode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\LinuxNodeConfig\CgroupMode::class); + $this->cgroup_mode = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig/CgroupMode.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig/CgroupMode.php new file mode 100644 index 000000000000..677f044abfac --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig/CgroupMode.php @@ -0,0 +1,67 @@ +google.container.v1.LinuxNodeConfig.CgroupMode + */ +class CgroupMode +{ + /** + * CGROUP_MODE_UNSPECIFIED is when unspecified cgroup configuration is used. + * The default for the GKE node OS image will be used. + * + * Generated from protobuf enum CGROUP_MODE_UNSPECIFIED = 0; + */ + const CGROUP_MODE_UNSPECIFIED = 0; + /** + * CGROUP_MODE_V1 specifies to use cgroupv1 for the cgroup configuration on + * the node image. + * + * Generated from protobuf enum CGROUP_MODE_V1 = 1; + */ + const CGROUP_MODE_V1 = 1; + /** + * CGROUP_MODE_V2 specifies to use cgroupv2 for the cgroup configuration on + * the node image. + * + * Generated from protobuf enum CGROUP_MODE_V2 = 2; + */ + const CGROUP_MODE_V2 = 2; + + private static $valueToName = [ + self::CGROUP_MODE_UNSPECIFIED => 'CGROUP_MODE_UNSPECIFIED', + self::CGROUP_MODE_V1 => 'CGROUP_MODE_V1', + self::CGROUP_MODE_V2 => 'CGROUP_MODE_V2', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CgroupMode::class, \Google\Cloud\Container\V1\LinuxNodeConfig_CgroupMode::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig_CgroupMode.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig_CgroupMode.php new file mode 100644 index 000000000000..bf3fc32cde9b --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig_CgroupMode.php @@ -0,0 +1,16 @@ +google.container.v1.ListClustersRequest + */ +class ListClustersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides, or "-" for all zones. This field has been deprecated and + * replaced by the parent field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * The parent (project and location) where the clusters will be listed. + * Specified in the format `projects/*/locations/*`. + * Location "-" matches all zones and all regions. + * + * Generated from protobuf field string parent = 4; + */ + protected $parent = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides, or "-" for all zones. This field has been deprecated and + * replaced by the parent field. + * @type string $parent + * The parent (project and location) where the clusters will be listed. + * Specified in the format `projects/*/locations/*`. + * Location "-" matches all zones and all regions. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides, or "-" for all zones. This field has been deprecated and + * replaced by the parent field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides, or "-" for all zones. This field has been deprecated and + * replaced by the parent field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * The parent (project and location) where the clusters will be listed. + * Specified in the format `projects/*/locations/*`. + * Location "-" matches all zones and all regions. + * + * Generated from protobuf field string parent = 4; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * The parent (project and location) where the clusters will be listed. + * Specified in the format `projects/*/locations/*`. + * Location "-" matches all zones and all regions. + * + * Generated from protobuf field string parent = 4; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListClustersResponse.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListClustersResponse.php new file mode 100644 index 000000000000..4d8a2365a5c0 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListClustersResponse.php @@ -0,0 +1,109 @@ +google.container.v1.ListClustersResponse + */ +class ListClustersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * A list of clusters in the project in the specified zone, or + * across all ones. + * + * Generated from protobuf field repeated .google.container.v1.Cluster clusters = 1; + */ + private $clusters; + /** + * If any zones are listed here, the list of clusters returned + * may be missing those zones. + * + * Generated from protobuf field repeated string missing_zones = 2; + */ + private $missing_zones; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\Container\V1\Cluster>|\Google\Protobuf\Internal\RepeatedField $clusters + * A list of clusters in the project in the specified zone, or + * across all ones. + * @type array|\Google\Protobuf\Internal\RepeatedField $missing_zones + * If any zones are listed here, the list of clusters returned + * may be missing those zones. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * A list of clusters in the project in the specified zone, or + * across all ones. + * + * Generated from protobuf field repeated .google.container.v1.Cluster clusters = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getClusters() + { + return $this->clusters; + } + + /** + * A list of clusters in the project in the specified zone, or + * across all ones. + * + * Generated from protobuf field repeated .google.container.v1.Cluster clusters = 1; + * @param array<\Google\Cloud\Container\V1\Cluster>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setClusters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\Cluster::class); + $this->clusters = $arr; + + return $this; + } + + /** + * If any zones are listed here, the list of clusters returned + * may be missing those zones. + * + * Generated from protobuf field repeated string missing_zones = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMissingZones() + { + return $this->missing_zones; + } + + /** + * If any zones are listed here, the list of clusters returned + * may be missing those zones. + * + * Generated from protobuf field repeated string missing_zones = 2; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMissingZones($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->missing_zones = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsRequest.php new file mode 100644 index 000000000000..5351aed6faf8 --- /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://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the parent + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * The parent (project, location, cluster name) where the node pools will be + * listed. Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string parent = 5; + */ + protected $parent = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the parent + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the parent field. + * @type string $parent + * The parent (project, location, cluster name) where the node pools will be + * listed. Specified in the format `projects/*/locations/*/clusters/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the parent + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the parent + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * The parent (project, location, cluster name) where the node pools will be + * listed. Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string parent = 5; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * The parent (project, location, cluster name) where the node pools will be + * listed. Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string parent = 5; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsResponse.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsResponse.php new file mode 100644 index 000000000000..abf30ec49198 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsResponse.php @@ -0,0 +1,67 @@ +google.container.v1.ListNodePoolsResponse + */ +class ListNodePoolsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * A list of node pools for a cluster. + * + * Generated from protobuf field repeated .google.container.v1.NodePool node_pools = 1; + */ + private $node_pools; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\Container\V1\NodePool>|\Google\Protobuf\Internal\RepeatedField $node_pools + * A list of node pools for a cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * A list of node pools for a cluster. + * + * Generated from protobuf field repeated .google.container.v1.NodePool node_pools = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getNodePools() + { + return $this->node_pools; + } + + /** + * A list of node pools for a cluster. + * + * Generated from protobuf field repeated .google.container.v1.NodePool node_pools = 1; + * @param array<\Google\Cloud\Container\V1\NodePool>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setNodePools($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\NodePool::class); + $this->node_pools = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsRequest.php new file mode 100644 index 000000000000..3f8e5caef677 --- /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://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) to return + * operations for, or `-` for all zones. This field has been deprecated and + * replaced by the parent field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * The parent (project and location) where the operations will be listed. + * Specified in the format `projects/*/locations/*`. + * Location "-" matches all zones and all regions. + * + * Generated from protobuf field string parent = 4; + */ + protected $parent = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) to return + * operations for, or `-` for all zones. This field has been deprecated and + * replaced by the parent field. + * @type string $parent + * The parent (project and location) where the operations will be listed. + * Specified in the format `projects/*/locations/*`. + * Location "-" matches all zones and all regions. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) to return + * operations for, or `-` for all zones. This field has been deprecated and + * replaced by the parent field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) to return + * operations for, or `-` for all zones. This field has been deprecated and + * replaced by the parent field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * The parent (project and location) where the operations will be listed. + * Specified in the format `projects/*/locations/*`. + * Location "-" matches all zones and all regions. + * + * Generated from protobuf field string parent = 4; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * The parent (project and location) where the operations will be listed. + * Specified in the format `projects/*/locations/*`. + * Location "-" matches all zones and all regions. + * + * Generated from protobuf field string parent = 4; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsResponse.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsResponse.php new file mode 100644 index 000000000000..82eb8e28098f --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsResponse.php @@ -0,0 +1,105 @@ +google.container.v1.ListOperationsResponse + */ +class ListOperationsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * A list of operations in the project in the specified zone. + * + * Generated from protobuf field repeated .google.container.v1.Operation operations = 1; + */ + private $operations; + /** + * If any zones are listed here, the list of operations returned + * may be missing the operations from those zones. + * + * Generated from protobuf field repeated string missing_zones = 2; + */ + private $missing_zones; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\Container\V1\Operation>|\Google\Protobuf\Internal\RepeatedField $operations + * A list of operations in the project in the specified zone. + * @type array|\Google\Protobuf\Internal\RepeatedField $missing_zones + * If any zones are listed here, the list of operations returned + * may be missing the operations from those zones. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * A list of operations in the project in the specified zone. + * + * Generated from protobuf field repeated .google.container.v1.Operation operations = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOperations() + { + return $this->operations; + } + + /** + * A list of operations in the project in the specified zone. + * + * Generated from protobuf field repeated .google.container.v1.Operation operations = 1; + * @param array<\Google\Cloud\Container\V1\Operation>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOperations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\Operation::class); + $this->operations = $arr; + + return $this; + } + + /** + * If any zones are listed here, the list of operations returned + * may be missing the operations from those zones. + * + * Generated from protobuf field repeated string missing_zones = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMissingZones() + { + return $this->missing_zones; + } + + /** + * If any zones are listed here, the list of operations returned + * may be missing the operations from those zones. + * + * Generated from protobuf field repeated string missing_zones = 2; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMissingZones($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->missing_zones = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksRequest.php new file mode 100644 index 000000000000..bae700cc3b00 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksRequest.php @@ -0,0 +1,202 @@ +google.container.v1.ListUsableSubnetworksRequest + */ +class ListUsableSubnetworksRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The parent project where subnetworks are usable. + * Specified in the format `projects/*`. + * + * Generated from protobuf field string parent = 1; + */ + protected $parent = ''; + /** + * Filtering currently only supports equality on the networkProjectId and must + * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` + * is the project which owns the listed subnetworks. This defaults to the + * parent project ID. + * + * Generated from protobuf field string filter = 2; + */ + protected $filter = ''; + /** + * The max number of results per page that should be returned. If the number + * of available results is larger than `page_size`, a `next_page_token` is + * returned which can be used to get the next page of results in subsequent + * requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * + * Generated from protobuf field int32 page_size = 3; + */ + protected $page_size = 0; + /** + * Specifies a page token to use. Set this to the nextPageToken returned by + * previous list requests to get the next page of results. + * + * Generated from protobuf field string page_token = 4; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * The parent project where subnetworks are usable. + * Specified in the format `projects/*`. + * @type string $filter + * Filtering currently only supports equality on the networkProjectId and must + * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` + * is the project which owns the listed subnetworks. This defaults to the + * parent project ID. + * @type int $page_size + * The max number of results per page that should be returned. If the number + * of available results is larger than `page_size`, a `next_page_token` is + * returned which can be used to get the next page of results in subsequent + * requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * @type string $page_token + * Specifies a page token to use. Set this to the nextPageToken returned by + * previous list requests to get the next page of results. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The parent project where subnetworks are usable. + * Specified in the format `projects/*`. + * + * Generated from protobuf field string parent = 1; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * The parent project where subnetworks are usable. + * Specified in the format `projects/*`. + * + * Generated from protobuf field string parent = 1; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Filtering currently only supports equality on the networkProjectId and must + * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` + * is the project which owns the listed subnetworks. This defaults to the + * parent project ID. + * + * Generated from protobuf field string filter = 2; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Filtering currently only supports equality on the networkProjectId and must + * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` + * is the project which owns the listed subnetworks. This defaults to the + * parent project ID. + * + * Generated from protobuf field string filter = 2; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * The max number of results per page that should be returned. If the number + * of available results is larger than `page_size`, a `next_page_token` is + * returned which can be used to get the next page of results in subsequent + * requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * + * Generated from protobuf field int32 page_size = 3; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The max number of results per page that should be returned. If the number + * of available results is larger than `page_size`, a `next_page_token` is + * returned which can be used to get the next page of results in subsequent + * requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * + * Generated from protobuf field int32 page_size = 3; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Specifies a page token to use. Set this to the nextPageToken returned by + * previous list requests to get the next page of results. + * + * Generated from protobuf field string page_token = 4; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Specifies a page token to use. Set this to the nextPageToken returned by + * previous list requests to get the next page of results. + * + * Generated from protobuf field string page_token = 4; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksResponse.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksResponse.php new file mode 100644 index 000000000000..73913d380a2a --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksResponse.php @@ -0,0 +1,114 @@ +google.container.v1.ListUsableSubnetworksResponse + */ +class ListUsableSubnetworksResponse extends \Google\Protobuf\Internal\Message +{ + /** + * A list of usable subnetworks in the specified network project. + * + * Generated from protobuf field repeated .google.container.v1.UsableSubnetwork subnetworks = 1; + */ + private $subnetworks; + /** + * This token allows you to get the next page of results for list requests. + * If the number of results is larger than `page_size`, use the + * `next_page_token` as a value for the query parameter `page_token` in the + * next request. The value will become empty when there are no more pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\Container\V1\UsableSubnetwork>|\Google\Protobuf\Internal\RepeatedField $subnetworks + * A list of usable subnetworks in the specified network project. + * @type string $next_page_token + * This token allows you to get the next page of results for list requests. + * If the number of results is larger than `page_size`, use the + * `next_page_token` as a value for the query parameter `page_token` in the + * next request. The value will become empty when there are no more pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * A list of usable subnetworks in the specified network project. + * + * Generated from protobuf field repeated .google.container.v1.UsableSubnetwork subnetworks = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSubnetworks() + { + return $this->subnetworks; + } + + /** + * A list of usable subnetworks in the specified network project. + * + * Generated from protobuf field repeated .google.container.v1.UsableSubnetwork subnetworks = 1; + * @param array<\Google\Cloud\Container\V1\UsableSubnetwork>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSubnetworks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\UsableSubnetwork::class); + $this->subnetworks = $arr; + + return $this; + } + + /** + * This token allows you to get the next page of results for list requests. + * If the number of results is larger than `page_size`, use the + * `next_page_token` as a value for the query parameter `page_token` in the + * next request. The value will become empty when there are no more pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * This token allows you to get the next page of results for list requests. + * If the number of results is larger than `page_size`, use the + * `next_page_token` as a value for the query parameter `page_token` in the + * next request. The value will become empty when there are no more pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LocalNvmeSsdBlockConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LocalNvmeSsdBlockConfig.php new file mode 100644 index 000000000000..746eefad3d03 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LocalNvmeSsdBlockConfig.php @@ -0,0 +1,92 @@ +google.container.v1.LocalNvmeSsdBlockConfig + */ +class LocalNvmeSsdBlockConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The number of raw-block local NVMe SSD disks to be attached to the node. + * Each local SSD is 375 GB in size. If zero, it means no raw-block local NVMe + * 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 = 1; + */ + protected $local_ssd_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $local_ssd_count + * The number of raw-block local NVMe SSD disks to be attached to the node. + * Each local SSD is 375 GB in size. If zero, it means no raw-block local NVMe + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The number of raw-block local NVMe SSD disks to be attached to the node. + * Each local SSD is 375 GB in size. If zero, it means no raw-block local NVMe + * 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 = 1; + * @return int + */ + public function getLocalSsdCount() + { + return $this->local_ssd_count; + } + + /** + * The number of raw-block local NVMe SSD disks to be attached to the node. + * Each local SSD is 375 GB in size. If zero, it means no raw-block local NVMe + * 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 = 1; + * @param int $var + * @return $this + */ + public function setLocalSsdCount($var) + { + GPBUtil::checkInt32($var); + $this->local_ssd_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig.php new file mode 100644 index 000000000000..30537335ecb7 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig.php @@ -0,0 +1,67 @@ +google.container.v1.LoggingComponentConfig + */ +class LoggingComponentConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Select components to collect logs. An empty set would disable all logging. + * + * Generated from protobuf field repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + */ + private $enable_components; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $enable_components + * Select components to collect logs. An empty set would disable all logging. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Select components to collect logs. An empty set would disable all logging. + * + * Generated from protobuf field repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEnableComponents() + { + return $this->enable_components; + } + + /** + * Select components to collect logs. An empty set would disable all logging. + * + * Generated from protobuf field repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEnableComponents($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Container\V1\LoggingComponentConfig\Component::class); + $this->enable_components = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig/Component.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig/Component.php new file mode 100644 index 000000000000..b8e91d33ba74 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig/Component.php @@ -0,0 +1,85 @@ +google.container.v1.LoggingComponentConfig.Component + */ +class Component +{ + /** + * Default value. This shouldn't be used. + * + * Generated from protobuf enum COMPONENT_UNSPECIFIED = 0; + */ + const COMPONENT_UNSPECIFIED = 0; + /** + * system components + * + * Generated from protobuf enum SYSTEM_COMPONENTS = 1; + */ + const SYSTEM_COMPONENTS = 1; + /** + * workloads + * + * Generated from protobuf enum WORKLOADS = 2; + */ + const WORKLOADS = 2; + /** + * kube-apiserver + * + * Generated from protobuf enum APISERVER = 3; + */ + const APISERVER = 3; + /** + * kube-scheduler + * + * Generated from protobuf enum SCHEDULER = 4; + */ + const SCHEDULER = 4; + /** + * kube-controller-manager + * + * Generated from protobuf enum CONTROLLER_MANAGER = 5; + */ + const CONTROLLER_MANAGER = 5; + + private static $valueToName = [ + self::COMPONENT_UNSPECIFIED => 'COMPONENT_UNSPECIFIED', + self::SYSTEM_COMPONENTS => 'SYSTEM_COMPONENTS', + self::WORKLOADS => 'WORKLOADS', + self::APISERVER => 'APISERVER', + self::SCHEDULER => 'SCHEDULER', + self::CONTROLLER_MANAGER => 'CONTROLLER_MANAGER', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Component::class, \Google\Cloud\Container\V1\LoggingComponentConfig_Component::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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/LoggingVariantConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig.php new file mode 100644 index 000000000000..1121954e01e5 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig.php @@ -0,0 +1,67 @@ +google.container.v1.LoggingVariantConfig + */ +class LoggingVariantConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Logging variant deployed on nodes. + * + * Generated from protobuf field .google.container.v1.LoggingVariantConfig.Variant variant = 1; + */ + protected $variant = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $variant + * Logging variant deployed on nodes. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Logging variant deployed on nodes. + * + * Generated from protobuf field .google.container.v1.LoggingVariantConfig.Variant variant = 1; + * @return int + */ + public function getVariant() + { + return $this->variant; + } + + /** + * Logging variant deployed on nodes. + * + * Generated from protobuf field .google.container.v1.LoggingVariantConfig.Variant variant = 1; + * @param int $var + * @return $this + */ + public function setVariant($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\LoggingVariantConfig\Variant::class); + $this->variant = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig/Variant.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig/Variant.php new file mode 100644 index 000000000000..dbff8651edd2 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig/Variant.php @@ -0,0 +1,68 @@ +google.container.v1.LoggingVariantConfig.Variant + */ +class Variant +{ + /** + * Default value. This shouldn't be used. + * + * Generated from protobuf enum VARIANT_UNSPECIFIED = 0; + */ + const VARIANT_UNSPECIFIED = 0; + /** + * default logging variant. + * + * Generated from protobuf enum DEFAULT = 1; + */ + const PBDEFAULT = 1; + /** + * maximum logging throughput variant. + * + * Generated from protobuf enum MAX_THROUGHPUT = 2; + */ + const MAX_THROUGHPUT = 2; + + private static $valueToName = [ + self::VARIANT_UNSPECIFIED => 'VARIANT_UNSPECIFIED', + self::PBDEFAULT => 'DEFAULT', + self::MAX_THROUGHPUT => 'MAX_THROUGHPUT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + $pbconst = __CLASS__. '::PB' . strtoupper($name); + if (!defined($pbconst)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($pbconst); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Variant::class, \Google\Cloud\Container\V1\LoggingVariantConfig_Variant::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig_Variant.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig_Variant.php new file mode 100644 index 000000000000..1ecc371fa21c --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig_Variant.php @@ -0,0 +1,16 @@ +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/ManagedPrometheusConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ManagedPrometheusConfig.php new file mode 100644 index 000000000000..f4876f921559 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ManagedPrometheusConfig.php @@ -0,0 +1,68 @@ +google.container.v1.ManagedPrometheusConfig + */ +class ManagedPrometheusConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Enable Managed Collection. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Enable Managed Collection. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Enable Managed Collection. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Enable Managed Collection. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuth.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuth.php new file mode 100644 index 000000000000..c00aa522ff6a --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuth.php @@ -0,0 +1,331 @@ +google.container.v1.MasterAuth + */ +class MasterAuth extends \Google\Protobuf\Internal\Message +{ + /** + * The username to use for HTTP basic authentication to the master endpoint. + * For clusters v1.6.0 and later, basic authentication can be disabled by + * leaving username unspecified (or setting it to the empty string). + * Warning: basic authentication is deprecated, and will be removed in GKE + * control plane versions 1.19 and newer. For a list of recommended + * authentication methods, see: + * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication + * + * Generated from protobuf field string username = 1 [deprecated = true]; + * @deprecated + */ + protected $username = ''; + /** + * The password to use for HTTP basic authentication to the master endpoint. + * Because the master endpoint is open to the Internet, you should create a + * strong password. If a password is provided for cluster creation, username + * must be non-empty. + * Warning: basic authentication is deprecated, and will be removed in GKE + * control plane versions 1.19 and newer. For a list of recommended + * authentication methods, see: + * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication + * + * Generated from protobuf field string password = 2 [deprecated = true]; + * @deprecated + */ + protected $password = ''; + /** + * Configuration for client certificate authentication on the cluster. For + * clusters before v1.12, if no configuration is specified, a client + * certificate is issued. + * + * Generated from protobuf field .google.container.v1.ClientCertificateConfig client_certificate_config = 3; + */ + protected $client_certificate_config = null; + /** + * [Output only] Base64-encoded public certificate that is the root of + * trust for the cluster. + * + * Generated from protobuf field string cluster_ca_certificate = 100; + */ + protected $cluster_ca_certificate = ''; + /** + * [Output only] Base64-encoded public certificate used by clients to + * authenticate to the cluster endpoint. + * + * Generated from protobuf field string client_certificate = 101; + */ + protected $client_certificate = ''; + /** + * [Output only] Base64-encoded private key used by clients to authenticate + * to the cluster endpoint. + * + * Generated from protobuf field string client_key = 102; + */ + protected $client_key = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $username + * The username to use for HTTP basic authentication to the master endpoint. + * For clusters v1.6.0 and later, basic authentication can be disabled by + * leaving username unspecified (or setting it to the empty string). + * Warning: basic authentication is deprecated, and will be removed in GKE + * control plane versions 1.19 and newer. For a list of recommended + * authentication methods, see: + * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication + * @type string $password + * The password to use for HTTP basic authentication to the master endpoint. + * Because the master endpoint is open to the Internet, you should create a + * strong password. If a password is provided for cluster creation, username + * must be non-empty. + * Warning: basic authentication is deprecated, and will be removed in GKE + * control plane versions 1.19 and newer. For a list of recommended + * authentication methods, see: + * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication + * @type \Google\Cloud\Container\V1\ClientCertificateConfig $client_certificate_config + * Configuration for client certificate authentication on the cluster. For + * clusters before v1.12, if no configuration is specified, a client + * certificate is issued. + * @type string $cluster_ca_certificate + * [Output only] Base64-encoded public certificate that is the root of + * trust for the cluster. + * @type string $client_certificate + * [Output only] Base64-encoded public certificate used by clients to + * authenticate to the cluster endpoint. + * @type string $client_key + * [Output only] Base64-encoded private key used by clients to authenticate + * to the cluster endpoint. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The username to use for HTTP basic authentication to the master endpoint. + * For clusters v1.6.0 and later, basic authentication can be disabled by + * leaving username unspecified (or setting it to the empty string). + * Warning: basic authentication is deprecated, and will be removed in GKE + * control plane versions 1.19 and newer. For a list of recommended + * authentication methods, see: + * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication + * + * Generated from protobuf field string username = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getUsername() + { + @trigger_error('username is deprecated.', E_USER_DEPRECATED); + return $this->username; + } + + /** + * The username to use for HTTP basic authentication to the master endpoint. + * For clusters v1.6.0 and later, basic authentication can be disabled by + * leaving username unspecified (or setting it to the empty string). + * Warning: basic authentication is deprecated, and will be removed in GKE + * control plane versions 1.19 and newer. For a list of recommended + * authentication methods, see: + * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication + * + * Generated from protobuf field string username = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setUsername($var) + { + @trigger_error('username is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->username = $var; + + return $this; + } + + /** + * The password to use for HTTP basic authentication to the master endpoint. + * Because the master endpoint is open to the Internet, you should create a + * strong password. If a password is provided for cluster creation, username + * must be non-empty. + * Warning: basic authentication is deprecated, and will be removed in GKE + * control plane versions 1.19 and newer. For a list of recommended + * authentication methods, see: + * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication + * + * Generated from protobuf field string password = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getPassword() + { + @trigger_error('password is deprecated.', E_USER_DEPRECATED); + return $this->password; + } + + /** + * The password to use for HTTP basic authentication to the master endpoint. + * Because the master endpoint is open to the Internet, you should create a + * strong password. If a password is provided for cluster creation, username + * must be non-empty. + * Warning: basic authentication is deprecated, and will be removed in GKE + * control plane versions 1.19 and newer. For a list of recommended + * authentication methods, see: + * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication + * + * Generated from protobuf field string password = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setPassword($var) + { + @trigger_error('password is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->password = $var; + + return $this; + } + + /** + * Configuration for client certificate authentication on the cluster. For + * clusters before v1.12, if no configuration is specified, a client + * certificate is issued. + * + * Generated from protobuf field .google.container.v1.ClientCertificateConfig client_certificate_config = 3; + * @return \Google\Cloud\Container\V1\ClientCertificateConfig|null + */ + public function getClientCertificateConfig() + { + return $this->client_certificate_config; + } + + public function hasClientCertificateConfig() + { + return isset($this->client_certificate_config); + } + + public function clearClientCertificateConfig() + { + unset($this->client_certificate_config); + } + + /** + * Configuration for client certificate authentication on the cluster. For + * clusters before v1.12, if no configuration is specified, a client + * certificate is issued. + * + * Generated from protobuf field .google.container.v1.ClientCertificateConfig client_certificate_config = 3; + * @param \Google\Cloud\Container\V1\ClientCertificateConfig $var + * @return $this + */ + public function setClientCertificateConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ClientCertificateConfig::class); + $this->client_certificate_config = $var; + + return $this; + } + + /** + * [Output only] Base64-encoded public certificate that is the root of + * trust for the cluster. + * + * Generated from protobuf field string cluster_ca_certificate = 100; + * @return string + */ + public function getClusterCaCertificate() + { + return $this->cluster_ca_certificate; + } + + /** + * [Output only] Base64-encoded public certificate that is the root of + * trust for the cluster. + * + * Generated from protobuf field string cluster_ca_certificate = 100; + * @param string $var + * @return $this + */ + public function setClusterCaCertificate($var) + { + GPBUtil::checkString($var, True); + $this->cluster_ca_certificate = $var; + + return $this; + } + + /** + * [Output only] Base64-encoded public certificate used by clients to + * authenticate to the cluster endpoint. + * + * Generated from protobuf field string client_certificate = 101; + * @return string + */ + public function getClientCertificate() + { + return $this->client_certificate; + } + + /** + * [Output only] Base64-encoded public certificate used by clients to + * authenticate to the cluster endpoint. + * + * Generated from protobuf field string client_certificate = 101; + * @param string $var + * @return $this + */ + public function setClientCertificate($var) + { + GPBUtil::checkString($var, True); + $this->client_certificate = $var; + + return $this; + } + + /** + * [Output only] Base64-encoded private key used by clients to authenticate + * to the cluster endpoint. + * + * Generated from protobuf field string client_key = 102; + * @return string + */ + public function getClientKey() + { + return $this->client_key; + } + + /** + * [Output only] Base64-encoded private key used by clients to authenticate + * to the cluster endpoint. + * + * Generated from protobuf field string client_key = 102; + * @param string $var + * @return $this + */ + public function setClientKey($var) + { + GPBUtil::checkString($var, True); + $this->client_key = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig.php new file mode 100644 index 000000000000..f2d4ee45311c --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig.php @@ -0,0 +1,152 @@ +google.container.v1.MasterAuthorizedNetworksConfig + */ +class MasterAuthorizedNetworksConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Whether or not master authorized networks is enabled. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + /** + * cidr_blocks define up to 50 external networks that could access + * Kubernetes master through HTTPS. + * + * Generated from protobuf field repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + private $cidr_blocks; + /** + * Whether master is accessbile via Google Compute Engine Public IP addresses. + * + * Generated from protobuf field optional bool gcp_public_cidrs_access_enabled = 3; + */ + protected $gcp_public_cidrs_access_enabled = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Whether or not master authorized networks is enabled. + * @type array<\Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig\CidrBlock>|\Google\Protobuf\Internal\RepeatedField $cidr_blocks + * cidr_blocks define up to 50 external networks that could access + * Kubernetes master through HTTPS. + * @type bool $gcp_public_cidrs_access_enabled + * Whether master is accessbile via Google Compute Engine Public IP addresses. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether or not master authorized networks is enabled. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Whether or not master authorized networks is enabled. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + + /** + * cidr_blocks define up to 50 external networks that could access + * Kubernetes master through HTTPS. + * + * Generated from protobuf field repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCidrBlocks() + { + return $this->cidr_blocks; + } + + /** + * cidr_blocks define up to 50 external networks that could access + * Kubernetes master through HTTPS. + * + * Generated from protobuf field repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * @param array<\Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig\CidrBlock>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCidrBlocks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig\CidrBlock::class); + $this->cidr_blocks = $arr; + + return $this; + } + + /** + * Whether master is accessbile via Google Compute Engine Public IP addresses. + * + * Generated from protobuf field optional bool gcp_public_cidrs_access_enabled = 3; + * @return bool + */ + public function getGcpPublicCidrsAccessEnabled() + { + return isset($this->gcp_public_cidrs_access_enabled) ? $this->gcp_public_cidrs_access_enabled : false; + } + + public function hasGcpPublicCidrsAccessEnabled() + { + return isset($this->gcp_public_cidrs_access_enabled); + } + + public function clearGcpPublicCidrsAccessEnabled() + { + unset($this->gcp_public_cidrs_access_enabled); + } + + /** + * Whether master is accessbile via Google Compute Engine Public IP addresses. + * + * Generated from protobuf field optional bool gcp_public_cidrs_access_enabled = 3; + * @param bool $var + * @return $this + */ + public function setGcpPublicCidrsAccessEnabled($var) + { + GPBUtil::checkBool($var); + $this->gcp_public_cidrs_access_enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig/CidrBlock.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig/CidrBlock.php new file mode 100644 index 000000000000..8ab57c26dfce --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig/CidrBlock.php @@ -0,0 +1,104 @@ +google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock + */ +class CidrBlock extends \Google\Protobuf\Internal\Message +{ + /** + * display_name is an optional field for users to identify CIDR blocks. + * + * Generated from protobuf field string display_name = 1; + */ + protected $display_name = ''; + /** + * cidr_block must be specified in CIDR notation. + * + * Generated from protobuf field string cidr_block = 2; + */ + protected $cidr_block = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $display_name + * display_name is an optional field for users to identify CIDR blocks. + * @type string $cidr_block + * cidr_block must be specified in CIDR notation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * display_name is an optional field for users to identify CIDR blocks. + * + * Generated from protobuf field string display_name = 1; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * display_name is an optional field for users to identify CIDR blocks. + * + * Generated from protobuf field string display_name = 1; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * cidr_block must be specified in CIDR notation. + * + * Generated from protobuf field string cidr_block = 2; + * @return string + */ + public function getCidrBlock() + { + return $this->cidr_block; + } + + /** + * cidr_block must be specified in CIDR notation. + * + * Generated from protobuf field string cidr_block = 2; + * @param string $var + * @return $this + */ + public function setCidrBlock($var) + { + GPBUtil::checkString($var, True); + $this->cidr_block = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CidrBlock::class, \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig_CidrBlock::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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..38e5ca512685 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringComponentConfig.php @@ -0,0 +1,71 @@ +google.container.v1.MonitoringComponentConfig + */ +class MonitoringComponentConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Select components to collect metrics. An empty set would disable all + * monitoring. + * + * Generated from protobuf field repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + */ + private $enable_components; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $enable_components + * Select components to collect metrics. An empty set would disable all + * monitoring. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Select components to collect metrics. An empty set would disable all + * monitoring. + * + * Generated from protobuf field repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEnableComponents() + { + return $this->enable_components; + } + + /** + * Select components to collect metrics. An empty set would disable all + * monitoring. + * + * Generated from protobuf field repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEnableComponents($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Container\V1\MonitoringComponentConfig\Component::class); + $this->enable_components = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringComponentConfig/Component.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringComponentConfig/Component.php new file mode 100644 index 000000000000..8498ebe76dea --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringComponentConfig/Component.php @@ -0,0 +1,78 @@ +google.container.v1.MonitoringComponentConfig.Component + */ +class Component +{ + /** + * Default value. This shouldn't be used. + * + * Generated from protobuf enum COMPONENT_UNSPECIFIED = 0; + */ + const COMPONENT_UNSPECIFIED = 0; + /** + * system components + * + * Generated from protobuf enum SYSTEM_COMPONENTS = 1; + */ + const SYSTEM_COMPONENTS = 1; + /** + * kube-apiserver + * + * Generated from protobuf enum APISERVER = 3; + */ + const APISERVER = 3; + /** + * kube-scheduler + * + * Generated from protobuf enum SCHEDULER = 4; + */ + const SCHEDULER = 4; + /** + * kube-controller-manager + * + * Generated from protobuf enum CONTROLLER_MANAGER = 5; + */ + const CONTROLLER_MANAGER = 5; + + private static $valueToName = [ + self::COMPONENT_UNSPECIFIED => 'COMPONENT_UNSPECIFIED', + self::SYSTEM_COMPONENTS => 'SYSTEM_COMPONENTS', + self::APISERVER => 'APISERVER', + self::SCHEDULER => 'SCHEDULER', + self::CONTROLLER_MANAGER => 'CONTROLLER_MANAGER', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Component::class, \Google\Cloud\Container\V1\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; + /** + * Enable Google Cloud Managed Service for Prometheus + * in the cluster. + * + * Generated from protobuf field .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + protected $managed_prometheus_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Container\V1\MonitoringComponentConfig $component_config + * Monitoring components configuration + * @type \Google\Cloud\Container\V1\ManagedPrometheusConfig $managed_prometheus_config + * Enable Google Cloud Managed Service for Prometheus + * in the cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Monitoring components configuration + * + * Generated from protobuf field .google.container.v1.MonitoringComponentConfig component_config = 1; + * @return \Google\Cloud\Container\V1\MonitoringComponentConfig|null + */ + public function getComponentConfig() + { + return $this->component_config; + } + + public function hasComponentConfig() + { + return isset($this->component_config); + } + + public function clearComponentConfig() + { + unset($this->component_config); + } + + /** + * Monitoring components configuration + * + * Generated from protobuf field .google.container.v1.MonitoringComponentConfig component_config = 1; + * @param \Google\Cloud\Container\V1\MonitoringComponentConfig $var + * @return $this + */ + public function setComponentConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MonitoringComponentConfig::class); + $this->component_config = $var; + + return $this; + } + + /** + * Enable Google Cloud Managed Service for Prometheus + * in the cluster. + * + * Generated from protobuf field .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + * @return \Google\Cloud\Container\V1\ManagedPrometheusConfig|null + */ + public function getManagedPrometheusConfig() + { + return $this->managed_prometheus_config; + } + + public function hasManagedPrometheusConfig() + { + return isset($this->managed_prometheus_config); + } + + public function clearManagedPrometheusConfig() + { + unset($this->managed_prometheus_config); + } + + /** + * Enable Google Cloud Managed Service for Prometheus + * in the cluster. + * + * Generated from protobuf field .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + * @param \Google\Cloud\Container\V1\ManagedPrometheusConfig $var + * @return $this + */ + public function setManagedPrometheusConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ManagedPrometheusConfig::class); + $this->managed_prometheus_config = $var; + + return $this; + } + +} + 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..e7efa5e746e0 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig.php @@ -0,0 +1,473 @@ +google.container.v1.NetworkConfig + */ +class NetworkConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The relative name of the Google Compute Engine + * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) + * to which the cluster is connected. Example: + * projects/my-project/global/networks/my-network + * + * Generated from protobuf field string network = 1; + */ + protected $network = ''; + /** + * Output only. The relative name of the Google Compute Engine + * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the + * cluster is connected. Example: + * projects/my-project/regions/us-central1/subnetworks/my-subnet + * + * Generated from protobuf field string subnetwork = 2; + */ + protected $subnetwork = ''; + /** + * Whether Intra-node visibility is enabled for this cluster. + * This makes same node pod to pod traffic visible for VPC network. + * + * Generated from protobuf field bool enable_intra_node_visibility = 5; + */ + protected $enable_intra_node_visibility = false; + /** + * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules + * will be disabled when default_snat_status is disabled. When disabled is set + * to false, default IP masquerade rules will be applied to the nodes to + * prevent sNAT on cluster internal traffic. + * + * Generated from protobuf field .google.container.v1.DefaultSnatStatus default_snat_status = 7; + */ + protected $default_snat_status = null; + /** + * Whether L4ILB Subsetting is enabled for this cluster. + * + * Generated from protobuf field bool enable_l4ilb_subsetting = 10; + */ + protected $enable_l4ilb_subsetting = false; + /** + * The desired datapath provider for this cluster. By default, uses the + * IPTables-based kube-proxy implementation. + * + * Generated from protobuf field .google.container.v1.DatapathProvider datapath_provider = 11; + */ + protected $datapath_provider = 0; + /** + * The desired state of IPv6 connectivity to Google Services. + * By default, no private IPv6 access to or from Google Services (all access + * will be via IPv4) + * + * Generated from protobuf field .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + */ + protected $private_ipv6_google_access = 0; + /** + * DNSConfig contains clusterDNS config for this cluster. + * + * Generated from protobuf field .google.container.v1.DNSConfig dns_config = 13; + */ + protected $dns_config = null; + /** + * ServiceExternalIPsConfig specifies if services with externalIPs field are + * blocked or not. + * + * Generated from protobuf field .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + */ + protected $service_external_ips_config = null; + /** + * GatewayAPIConfig contains the desired config of Gateway API on this + * cluster. + * + * Generated from protobuf field .google.container.v1.GatewayAPIConfig gateway_api_config = 16; + */ + protected $gateway_api_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $network + * Output only. The relative name of the Google Compute Engine + * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) + * to which the cluster is connected. Example: + * projects/my-project/global/networks/my-network + * @type string $subnetwork + * Output only. The relative name of the Google Compute Engine + * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the + * cluster is connected. Example: + * projects/my-project/regions/us-central1/subnetworks/my-subnet + * @type bool $enable_intra_node_visibility + * Whether Intra-node visibility is enabled for this cluster. + * This makes same node pod to pod traffic visible for VPC network. + * @type \Google\Cloud\Container\V1\DefaultSnatStatus $default_snat_status + * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules + * will be disabled when default_snat_status is disabled. When disabled is set + * to false, default IP masquerade rules will be applied to the nodes to + * prevent sNAT on cluster internal traffic. + * @type bool $enable_l4ilb_subsetting + * Whether L4ILB Subsetting is enabled for this cluster. + * @type int $datapath_provider + * The desired datapath provider for this cluster. By default, uses the + * IPTables-based kube-proxy implementation. + * @type int $private_ipv6_google_access + * The desired state of IPv6 connectivity to Google Services. + * By default, no private IPv6 access to or from Google Services (all access + * will be via IPv4) + * @type \Google\Cloud\Container\V1\DNSConfig $dns_config + * DNSConfig contains clusterDNS config for this cluster. + * @type \Google\Cloud\Container\V1\ServiceExternalIPsConfig $service_external_ips_config + * ServiceExternalIPsConfig specifies if services with externalIPs field are + * blocked or not. + * @type \Google\Cloud\Container\V1\GatewayAPIConfig $gateway_api_config + * GatewayAPIConfig contains the desired config of Gateway API on this + * cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The relative name of the Google Compute Engine + * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) + * to which the cluster is connected. Example: + * projects/my-project/global/networks/my-network + * + * Generated from protobuf field string network = 1; + * @return string + */ + public function getNetwork() + { + return $this->network; + } + + /** + * Output only. The relative name of the Google Compute Engine + * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) + * to which the cluster is connected. Example: + * projects/my-project/global/networks/my-network + * + * Generated from protobuf field string network = 1; + * @param string $var + * @return $this + */ + public function setNetwork($var) + { + GPBUtil::checkString($var, True); + $this->network = $var; + + return $this; + } + + /** + * Output only. The relative name of the Google Compute Engine + * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the + * cluster is connected. Example: + * projects/my-project/regions/us-central1/subnetworks/my-subnet + * + * Generated from protobuf field string subnetwork = 2; + * @return string + */ + public function getSubnetwork() + { + return $this->subnetwork; + } + + /** + * Output only. The relative name of the Google Compute Engine + * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the + * cluster is connected. Example: + * projects/my-project/regions/us-central1/subnetworks/my-subnet + * + * Generated from protobuf field string subnetwork = 2; + * @param string $var + * @return $this + */ + public function setSubnetwork($var) + { + GPBUtil::checkString($var, True); + $this->subnetwork = $var; + + return $this; + } + + /** + * Whether Intra-node visibility is enabled for this cluster. + * This makes same node pod to pod traffic visible for VPC network. + * + * Generated from protobuf field bool enable_intra_node_visibility = 5; + * @return bool + */ + public function getEnableIntraNodeVisibility() + { + return $this->enable_intra_node_visibility; + } + + /** + * Whether Intra-node visibility is enabled for this cluster. + * This makes same node pod to pod traffic visible for VPC network. + * + * Generated from protobuf field bool enable_intra_node_visibility = 5; + * @param bool $var + * @return $this + */ + public function setEnableIntraNodeVisibility($var) + { + GPBUtil::checkBool($var); + $this->enable_intra_node_visibility = $var; + + return $this; + } + + /** + * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules + * will be disabled when default_snat_status is disabled. When disabled is set + * to false, default IP masquerade rules will be applied to the nodes to + * prevent sNAT on cluster internal traffic. + * + * Generated from protobuf field .google.container.v1.DefaultSnatStatus default_snat_status = 7; + * @return \Google\Cloud\Container\V1\DefaultSnatStatus|null + */ + public function getDefaultSnatStatus() + { + return $this->default_snat_status; + } + + public function hasDefaultSnatStatus() + { + return isset($this->default_snat_status); + } + + public function clearDefaultSnatStatus() + { + unset($this->default_snat_status); + } + + /** + * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules + * will be disabled when default_snat_status is disabled. When disabled is set + * to false, default IP masquerade rules will be applied to the nodes to + * prevent sNAT on cluster internal traffic. + * + * Generated from protobuf field .google.container.v1.DefaultSnatStatus default_snat_status = 7; + * @param \Google\Cloud\Container\V1\DefaultSnatStatus $var + * @return $this + */ + public function setDefaultSnatStatus($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\DefaultSnatStatus::class); + $this->default_snat_status = $var; + + return $this; + } + + /** + * Whether L4ILB Subsetting is enabled for this cluster. + * + * Generated from protobuf field bool enable_l4ilb_subsetting = 10; + * @return bool + */ + public function getEnableL4IlbSubsetting() + { + return $this->enable_l4ilb_subsetting; + } + + /** + * Whether L4ILB Subsetting is enabled for this cluster. + * + * Generated from protobuf field bool enable_l4ilb_subsetting = 10; + * @param bool $var + * @return $this + */ + public function setEnableL4IlbSubsetting($var) + { + GPBUtil::checkBool($var); + $this->enable_l4ilb_subsetting = $var; + + return $this; + } + + /** + * The desired datapath provider for this cluster. By default, uses the + * IPTables-based kube-proxy implementation. + * + * Generated from protobuf field .google.container.v1.DatapathProvider datapath_provider = 11; + * @return int + */ + public function getDatapathProvider() + { + return $this->datapath_provider; + } + + /** + * The desired datapath provider for this cluster. By default, uses the + * IPTables-based kube-proxy implementation. + * + * Generated from protobuf field .google.container.v1.DatapathProvider datapath_provider = 11; + * @param int $var + * @return $this + */ + public function setDatapathProvider($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\DatapathProvider::class); + $this->datapath_provider = $var; + + return $this; + } + + /** + * The desired state of IPv6 connectivity to Google Services. + * By default, no private IPv6 access to or from Google Services (all access + * will be via IPv4) + * + * Generated from protobuf field .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + * @return int + */ + public function getPrivateIpv6GoogleAccess() + { + return $this->private_ipv6_google_access; + } + + /** + * The desired state of IPv6 connectivity to Google Services. + * By default, no private IPv6 access to or from Google Services (all access + * will be via IPv4) + * + * Generated from protobuf field .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + * @param int $var + * @return $this + */ + public function setPrivateIpv6GoogleAccess($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\PrivateIPv6GoogleAccess::class); + $this->private_ipv6_google_access = $var; + + return $this; + } + + /** + * DNSConfig contains clusterDNS config for this cluster. + * + * Generated from protobuf field .google.container.v1.DNSConfig dns_config = 13; + * @return \Google\Cloud\Container\V1\DNSConfig|null + */ + public function getDnsConfig() + { + return $this->dns_config; + } + + public function hasDnsConfig() + { + return isset($this->dns_config); + } + + public function clearDnsConfig() + { + unset($this->dns_config); + } + + /** + * DNSConfig contains clusterDNS config for this cluster. + * + * Generated from protobuf field .google.container.v1.DNSConfig dns_config = 13; + * @param \Google\Cloud\Container\V1\DNSConfig $var + * @return $this + */ + public function setDnsConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\DNSConfig::class); + $this->dns_config = $var; + + return $this; + } + + /** + * ServiceExternalIPsConfig specifies if services with externalIPs field are + * blocked or not. + * + * Generated from protobuf field .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + * @return \Google\Cloud\Container\V1\ServiceExternalIPsConfig|null + */ + public function getServiceExternalIpsConfig() + { + return $this->service_external_ips_config; + } + + public function hasServiceExternalIpsConfig() + { + return isset($this->service_external_ips_config); + } + + public function clearServiceExternalIpsConfig() + { + unset($this->service_external_ips_config); + } + + /** + * ServiceExternalIPsConfig specifies if services with externalIPs field are + * blocked or not. + * + * Generated from protobuf field .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + * @param \Google\Cloud\Container\V1\ServiceExternalIPsConfig $var + * @return $this + */ + public function setServiceExternalIpsConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ServiceExternalIPsConfig::class); + $this->service_external_ips_config = $var; + + return $this; + } + + /** + * GatewayAPIConfig contains the desired config of Gateway API on this + * cluster. + * + * Generated from protobuf field .google.container.v1.GatewayAPIConfig gateway_api_config = 16; + * @return \Google\Cloud\Container\V1\GatewayAPIConfig|null + */ + public function getGatewayApiConfig() + { + return $this->gateway_api_config; + } + + public function hasGatewayApiConfig() + { + return isset($this->gateway_api_config); + } + + public function clearGatewayApiConfig() + { + unset($this->gateway_api_config); + } + + /** + * GatewayAPIConfig contains the desired config of Gateway API on this + * cluster. + * + * Generated from protobuf field .google.container.v1.GatewayAPIConfig gateway_api_config = 16; + * @param \Google\Cloud\Container\V1\GatewayAPIConfig $var + * @return $this + */ + public function setGatewayApiConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GatewayAPIConfig::class); + $this->gateway_api_config = $var; + + return $this; + } + +} + 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.NetworkTags + */ +class NetworkTags extends \Google\Protobuf\Internal\Message +{ + /** + * List of network tags. + * + * Generated from protobuf field repeated string tags = 1; + */ + private $tags; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $tags + * List of network tags. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * List of network tags. + * + * Generated from protobuf field repeated string tags = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTags() + { + return $this->tags; + } + + /** + * List of network tags. + * + * Generated from protobuf field repeated string tags = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->tags = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfig.php new file mode 100644 index 000000000000..0489d96cbf8e --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfig.php @@ -0,0 +1,1669 @@ +google.container.v1.NodeConfig + */ +class NodeConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The name of a Google Compute Engine [machine + * type](https://cloud.google.com/compute/docs/machine-types) + * If unspecified, the default machine type is `e2-medium`. + * + * Generated from protobuf field string machine_type = 1; + */ + protected $machine_type = ''; + /** + * Size of the disk attached to each node, specified in GB. + * The smallest allowed disk size is 10GB. + * If unspecified, the default disk size is 100GB. + * + * Generated from protobuf field int32 disk_size_gb = 2; + */ + protected $disk_size_gb = 0; + /** + * The set of Google API scopes to be made available on all of the + * node VMs under the "default" service account. + * The following scopes are recommended, but not required, and by default are + * not included: + * * `https://www.googleapis.com/auth/compute` is required for mounting + * persistent storage on your nodes. + * * `https://www.googleapis.com/auth/devstorage.read_only` is required for + * communicating with **gcr.io** + * (the [Google Container + * Registry](https://cloud.google.com/container-registry/)). + * If unspecified, no scopes are added, unless Cloud Logging or Cloud + * Monitoring are enabled, in which case their required scopes will be added. + * + * Generated from protobuf field repeated string oauth_scopes = 3; + */ + private $oauth_scopes; + /** + * The Google Cloud Platform Service Account to be used by the node VMs. + * Specify the email address of the Service Account; otherwise, if no Service + * Account is specified, the "default" service account is used. + * + * Generated from protobuf field string service_account = 9; + */ + protected $service_account = ''; + /** + * The metadata key/value pairs assigned to instances in the cluster. + * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes + * in length. These are reflected as part of a URL in the metadata server. + * Additionally, to avoid ambiguity, keys must not conflict with any other + * metadata keys for the project or be one of the reserved keys: + * - "cluster-location" + * - "cluster-name" + * - "cluster-uid" + * - "configure-sh" + * - "containerd-configure-sh" + * - "enable-os-login" + * - "gci-ensure-gke-docker" + * - "gci-metrics-enabled" + * - "gci-update-strategy" + * - "instance-template" + * - "kube-env" + * - "startup-script" + * - "user-data" + * - "disable-address-manager" + * - "windows-startup-script-ps1" + * - "common-psm1" + * - "k8s-node-setup-psm1" + * - "install-ssh-psm1" + * - "user-profile-psm1" + * Values are free-form strings, and only have meaning as interpreted by + * the image running in the instance. The only restriction placed on them is + * that each value's size must be less than or equal to 32 KB. + * The total size of all keys and values must be less than 512 KB. + * + * Generated from protobuf field map metadata = 4; + */ + private $metadata; + /** + * The image type to use for this node. Note that for a given image type, + * the latest version of it will be used. Please see + * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for + * available image types. + * + * Generated from protobuf field string image_type = 5; + */ + protected $image_type = ''; + /** + * The map of Kubernetes labels (key/value pairs) to be applied to each node. + * These will added in addition to any default label(s) that + * Kubernetes may apply to the node. + * In case of conflict in label keys, the applied set may differ depending on + * the Kubernetes version -- it's best to assume the behavior is undefined + * and conflicts should be avoided. + * For more information, including usage and the valid values, see: + * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ + * + * Generated from protobuf field map labels = 6; + */ + private $labels; + /** + * The number of local SSD disks to be attached to the node. + * The limit for this value is dependent upon the maximum number of + * disks available on a machine per zone. See: + * https://cloud.google.com/compute/docs/disks/local-ssd + * for more information. + * + * Generated from protobuf field int32 local_ssd_count = 7; + */ + protected $local_ssd_count = 0; + /** + * The list of instance tags applied to all nodes. Tags are used to identify + * valid sources or targets for network firewalls and are specified by + * the client during cluster or node pool creation. Each tag within the list + * must comply with RFC1035. + * + * Generated from protobuf field repeated string tags = 8; + */ + private $tags; + /** + * Whether the nodes are created as preemptible VM instances. See: + * https://cloud.google.com/compute/docs/instances/preemptible for more + * information about preemptible VM instances. + * + * Generated from protobuf field bool preemptible = 10; + */ + protected $preemptible = false; + /** + * A list of hardware accelerators to be attached to each node. + * See https://cloud.google.com/compute/docs/gpus for more information about + * support for GPUs. + * + * Generated from protobuf field repeated .google.container.v1.AcceleratorConfig accelerators = 11; + */ + private $accelerators; + /** + * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or + * 'pd-balanced') + * If unspecified, the default disk type is 'pd-standard' + * + * Generated from protobuf field string disk_type = 12; + */ + protected $disk_type = ''; + /** + * Minimum CPU platform to be used by this instance. The instance may be + * scheduled on the specified or newer CPU platform. Applicable values are the + * friendly names of CPU platforms, such as + * `minCpuPlatform: "Intel Haswell"` or + * `minCpuPlatform: "Intel Sandy Bridge"`. For more + * information, read [how to specify min CPU + * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) + * + * Generated from protobuf field string min_cpu_platform = 13; + */ + protected $min_cpu_platform = ''; + /** + * The workload metadata configuration for this node. + * + * Generated from protobuf field .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + protected $workload_metadata_config = null; + /** + * List of kubernetes taints to be applied to each node. + * For more information, including usage and the valid values, see: + * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ + * + * Generated from protobuf field repeated .google.container.v1.NodeTaint taints = 15; + */ + private $taints; + /** + * Sandbox configuration for this node. + * + * Generated from protobuf field .google.container.v1.SandboxConfig sandbox_config = 17; + */ + protected $sandbox_config = null; + /** + * Setting this field will assign instances of this + * pool to run on the specified node group. This is useful for running + * workloads on [sole tenant + * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes). + * + * Generated from protobuf field string node_group = 18; + */ + protected $node_group = ''; + /** + * The optional reservation affinity. Setting this field will apply + * the specified [Zonal Compute + * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) + * to this node pool. + * + * Generated from protobuf field .google.container.v1.ReservationAffinity reservation_affinity = 19; + */ + protected $reservation_affinity = null; + /** + * Shielded Instance options. + * + * Generated from protobuf field .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + protected $shielded_instance_config = null; + /** + * Parameters that can be configured on Linux nodes. + * + * Generated from protobuf field .google.container.v1.LinuxNodeConfig linux_node_config = 21; + */ + protected $linux_node_config = null; + /** + * Node kubelet configs. + * + * Generated from protobuf field .google.container.v1.NodeKubeletConfig kubelet_config = 22; + */ + protected $kubelet_config = null; + /** + * The Customer Managed Encryption Key used to encrypt the boot disk attached + * to each node in the node pool. This should be of the form + * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. + * For more information about protecting resources with Cloud KMS Keys please + * see: + * https://cloud.google.com/compute/docs/disks/customer-managed-encryption + * + * Generated from protobuf field string boot_disk_kms_key = 23; + */ + protected $boot_disk_kms_key = ''; + /** + * Google Container File System (image streaming) configs. + * + * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 25; + */ + protected $gcfs_config = null; + /** + * Advanced features for the Compute Engine VM. + * + * Generated from protobuf field .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + protected $advanced_machine_features = null; + /** + * Enable or disable gvnic in the node pool. + * + * Generated from protobuf field .google.container.v1.VirtualNIC gvnic = 29; + */ + protected $gvnic = null; + /** + * Spot flag for enabling Spot VM, which is a rebrand of + * the existing preemptible flag. + * + * Generated from protobuf field bool spot = 32; + */ + protected $spot = false; + /** + * Confidential nodes config. + * All the nodes in the node pool will be Confidential VM once enabled. + * + * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 35; + */ + protected $confidential_nodes = null; + /** + * Enable or disable NCCL fast socket for the node pool. + * + * Generated from protobuf field optional .google.container.v1.FastSocket fast_socket = 36; + */ + protected $fast_socket = null; + /** + * The resource labels for the node pool to use to annotate any related + * Google Compute Engine resources. + * + * Generated from protobuf field map resource_labels = 37; + */ + private $resource_labels; + /** + * Logging configuration. + * + * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 38; + */ + protected $logging_config = null; + /** + * Parameters that can be configured on Windows nodes. + * + * Generated from protobuf field .google.container.v1.WindowsNodeConfig windows_node_config = 39; + */ + protected $windows_node_config = null; + /** + * Parameters for using raw-block Local NVMe SSDs. + * + * Generated from protobuf field .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; + */ + protected $local_nvme_ssd_block_config = null; + /** + * Parameters for the node ephemeral storage using Local SSDs. + * If unspecified, ephemeral storage is backed by the boot disk. + * + * Generated from protobuf field .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; + */ + protected $ephemeral_storage_local_ssd_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $machine_type + * The name of a Google Compute Engine [machine + * type](https://cloud.google.com/compute/docs/machine-types) + * If unspecified, the default machine type is `e2-medium`. + * @type int $disk_size_gb + * Size of the disk attached to each node, specified in GB. + * The smallest allowed disk size is 10GB. + * If unspecified, the default disk size is 100GB. + * @type array|\Google\Protobuf\Internal\RepeatedField $oauth_scopes + * The set of Google API scopes to be made available on all of the + * node VMs under the "default" service account. + * The following scopes are recommended, but not required, and by default are + * not included: + * * `https://www.googleapis.com/auth/compute` is required for mounting + * persistent storage on your nodes. + * * `https://www.googleapis.com/auth/devstorage.read_only` is required for + * communicating with **gcr.io** + * (the [Google Container + * Registry](https://cloud.google.com/container-registry/)). + * If unspecified, no scopes are added, unless Cloud Logging or Cloud + * Monitoring are enabled, in which case their required scopes will be added. + * @type string $service_account + * The Google Cloud Platform Service Account to be used by the node VMs. + * Specify the email address of the Service Account; otherwise, if no Service + * Account is specified, the "default" service account is used. + * @type array|\Google\Protobuf\Internal\MapField $metadata + * The metadata key/value pairs assigned to instances in the cluster. + * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes + * in length. These are reflected as part of a URL in the metadata server. + * Additionally, to avoid ambiguity, keys must not conflict with any other + * metadata keys for the project or be one of the reserved keys: + * - "cluster-location" + * - "cluster-name" + * - "cluster-uid" + * - "configure-sh" + * - "containerd-configure-sh" + * - "enable-os-login" + * - "gci-ensure-gke-docker" + * - "gci-metrics-enabled" + * - "gci-update-strategy" + * - "instance-template" + * - "kube-env" + * - "startup-script" + * - "user-data" + * - "disable-address-manager" + * - "windows-startup-script-ps1" + * - "common-psm1" + * - "k8s-node-setup-psm1" + * - "install-ssh-psm1" + * - "user-profile-psm1" + * Values are free-form strings, and only have meaning as interpreted by + * the image running in the instance. The only restriction placed on them is + * that each value's size must be less than or equal to 32 KB. + * The total size of all keys and values must be less than 512 KB. + * @type string $image_type + * The image type to use for this node. Note that for a given image type, + * the latest version of it will be used. Please see + * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for + * available image types. + * @type array|\Google\Protobuf\Internal\MapField $labels + * The map of Kubernetes labels (key/value pairs) to be applied to each node. + * These will added in addition to any default label(s) that + * Kubernetes may apply to the node. + * In case of conflict in label keys, the applied set may differ depending on + * the Kubernetes version -- it's best to assume the behavior is undefined + * and conflicts should be avoided. + * For more information, including usage and the valid values, see: + * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ + * @type int $local_ssd_count + * The number of local SSD disks to be attached to the node. + * The limit for this value is dependent upon the maximum number of + * disks available on a machine per zone. See: + * https://cloud.google.com/compute/docs/disks/local-ssd + * for more information. + * @type array|\Google\Protobuf\Internal\RepeatedField $tags + * The list of instance tags applied to all nodes. Tags are used to identify + * valid sources or targets for network firewalls and are specified by + * the client during cluster or node pool creation. Each tag within the list + * must comply with RFC1035. + * @type bool $preemptible + * Whether the nodes are created as preemptible VM instances. See: + * https://cloud.google.com/compute/docs/instances/preemptible for more + * information about preemptible VM instances. + * @type array<\Google\Cloud\Container\V1\AcceleratorConfig>|\Google\Protobuf\Internal\RepeatedField $accelerators + * A list of hardware accelerators to be attached to each node. + * See https://cloud.google.com/compute/docs/gpus for more information about + * support for GPUs. + * @type string $disk_type + * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or + * 'pd-balanced') + * If unspecified, the default disk type is 'pd-standard' + * @type string $min_cpu_platform + * Minimum CPU platform to be used by this instance. The instance may be + * scheduled on the specified or newer CPU platform. Applicable values are the + * friendly names of CPU platforms, such as + * `minCpuPlatform: "Intel Haswell"` or + * `minCpuPlatform: "Intel Sandy Bridge"`. For more + * information, read [how to specify min CPU + * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) + * @type \Google\Cloud\Container\V1\WorkloadMetadataConfig $workload_metadata_config + * The workload metadata configuration for this node. + * @type array<\Google\Cloud\Container\V1\NodeTaint>|\Google\Protobuf\Internal\RepeatedField $taints + * List of kubernetes taints to be applied to each node. + * For more information, including usage and the valid values, see: + * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ + * @type \Google\Cloud\Container\V1\SandboxConfig $sandbox_config + * Sandbox configuration for this node. + * @type string $node_group + * Setting this field will assign instances of this + * pool to run on the specified node group. This is useful for running + * workloads on [sole tenant + * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes). + * @type \Google\Cloud\Container\V1\ReservationAffinity $reservation_affinity + * The optional reservation affinity. Setting this field will apply + * the specified [Zonal Compute + * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) + * to this node pool. + * @type \Google\Cloud\Container\V1\ShieldedInstanceConfig $shielded_instance_config + * Shielded Instance options. + * @type \Google\Cloud\Container\V1\LinuxNodeConfig $linux_node_config + * Parameters that can be configured on Linux nodes. + * @type \Google\Cloud\Container\V1\NodeKubeletConfig $kubelet_config + * Node kubelet configs. + * @type string $boot_disk_kms_key + * The Customer Managed Encryption Key used to encrypt the boot disk attached + * to each node in the node pool. This should be of the form + * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. + * For more information about protecting resources with Cloud KMS Keys please + * see: + * https://cloud.google.com/compute/docs/disks/customer-managed-encryption + * @type \Google\Cloud\Container\V1\GcfsConfig $gcfs_config + * Google Container File System (image streaming) configs. + * @type \Google\Cloud\Container\V1\AdvancedMachineFeatures $advanced_machine_features + * Advanced features for the Compute Engine VM. + * @type \Google\Cloud\Container\V1\VirtualNIC $gvnic + * Enable or disable gvnic in the node pool. + * @type bool $spot + * Spot flag for enabling Spot VM, which is a rebrand of + * the existing preemptible flag. + * @type \Google\Cloud\Container\V1\ConfidentialNodes $confidential_nodes + * Confidential nodes config. + * All the nodes in the node pool will be Confidential VM once enabled. + * @type \Google\Cloud\Container\V1\FastSocket $fast_socket + * Enable or disable NCCL fast socket for the node pool. + * @type array|\Google\Protobuf\Internal\MapField $resource_labels + * The resource labels for the node pool to use to annotate any related + * Google Compute Engine resources. + * @type \Google\Cloud\Container\V1\NodePoolLoggingConfig $logging_config + * Logging configuration. + * @type \Google\Cloud\Container\V1\WindowsNodeConfig $windows_node_config + * Parameters that can be configured on Windows nodes. + * @type \Google\Cloud\Container\V1\LocalNvmeSsdBlockConfig $local_nvme_ssd_block_config + * Parameters for using raw-block Local NVMe SSDs. + * @type \Google\Cloud\Container\V1\EphemeralStorageLocalSsdConfig $ephemeral_storage_local_ssd_config + * Parameters for the node ephemeral storage using Local SSDs. + * If unspecified, ephemeral storage is backed by the boot disk. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The name of a Google Compute Engine [machine + * type](https://cloud.google.com/compute/docs/machine-types) + * If unspecified, the default machine type is `e2-medium`. + * + * Generated from protobuf field string machine_type = 1; + * @return string + */ + public function getMachineType() + { + return $this->machine_type; + } + + /** + * The name of a Google Compute Engine [machine + * type](https://cloud.google.com/compute/docs/machine-types) + * If unspecified, the default machine type is `e2-medium`. + * + * Generated from protobuf field string machine_type = 1; + * @param string $var + * @return $this + */ + public function setMachineType($var) + { + GPBUtil::checkString($var, True); + $this->machine_type = $var; + + return $this; + } + + /** + * Size of the disk attached to each node, specified in GB. + * The smallest allowed disk size is 10GB. + * If unspecified, the default disk size is 100GB. + * + * Generated from protobuf field int32 disk_size_gb = 2; + * @return int + */ + public function getDiskSizeGb() + { + return $this->disk_size_gb; + } + + /** + * Size of the disk attached to each node, specified in GB. + * The smallest allowed disk size is 10GB. + * If unspecified, the default disk size is 100GB. + * + * Generated from protobuf field int32 disk_size_gb = 2; + * @param int $var + * @return $this + */ + public function setDiskSizeGb($var) + { + GPBUtil::checkInt32($var); + $this->disk_size_gb = $var; + + return $this; + } + + /** + * The set of Google API scopes to be made available on all of the + * node VMs under the "default" service account. + * The following scopes are recommended, but not required, and by default are + * not included: + * * `https://www.googleapis.com/auth/compute` is required for mounting + * persistent storage on your nodes. + * * `https://www.googleapis.com/auth/devstorage.read_only` is required for + * communicating with **gcr.io** + * (the [Google Container + * Registry](https://cloud.google.com/container-registry/)). + * If unspecified, no scopes are added, unless Cloud Logging or Cloud + * Monitoring are enabled, in which case their required scopes will be added. + * + * Generated from protobuf field repeated string oauth_scopes = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOauthScopes() + { + return $this->oauth_scopes; + } + + /** + * The set of Google API scopes to be made available on all of the + * node VMs under the "default" service account. + * The following scopes are recommended, but not required, and by default are + * not included: + * * `https://www.googleapis.com/auth/compute` is required for mounting + * persistent storage on your nodes. + * * `https://www.googleapis.com/auth/devstorage.read_only` is required for + * communicating with **gcr.io** + * (the [Google Container + * Registry](https://cloud.google.com/container-registry/)). + * If unspecified, no scopes are added, unless Cloud Logging or Cloud + * Monitoring are enabled, in which case their required scopes will be added. + * + * Generated from protobuf field repeated string oauth_scopes = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOauthScopes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->oauth_scopes = $arr; + + return $this; + } + + /** + * The Google Cloud Platform Service Account to be used by the node VMs. + * Specify the email address of the Service Account; otherwise, if no Service + * Account is specified, the "default" service account is used. + * + * Generated from protobuf field string service_account = 9; + * @return string + */ + public function getServiceAccount() + { + return $this->service_account; + } + + /** + * The Google Cloud Platform Service Account to be used by the node VMs. + * Specify the email address of the Service Account; otherwise, if no Service + * Account is specified, the "default" service account is used. + * + * Generated from protobuf field string service_account = 9; + * @param string $var + * @return $this + */ + public function setServiceAccount($var) + { + GPBUtil::checkString($var, True); + $this->service_account = $var; + + return $this; + } + + /** + * The metadata key/value pairs assigned to instances in the cluster. + * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes + * in length. These are reflected as part of a URL in the metadata server. + * Additionally, to avoid ambiguity, keys must not conflict with any other + * metadata keys for the project or be one of the reserved keys: + * - "cluster-location" + * - "cluster-name" + * - "cluster-uid" + * - "configure-sh" + * - "containerd-configure-sh" + * - "enable-os-login" + * - "gci-ensure-gke-docker" + * - "gci-metrics-enabled" + * - "gci-update-strategy" + * - "instance-template" + * - "kube-env" + * - "startup-script" + * - "user-data" + * - "disable-address-manager" + * - "windows-startup-script-ps1" + * - "common-psm1" + * - "k8s-node-setup-psm1" + * - "install-ssh-psm1" + * - "user-profile-psm1" + * Values are free-form strings, and only have meaning as interpreted by + * the image running in the instance. The only restriction placed on them is + * that each value's size must be less than or equal to 32 KB. + * The total size of all keys and values must be less than 512 KB. + * + * Generated from protobuf field map metadata = 4; + * @return \Google\Protobuf\Internal\MapField + */ + public function getMetadata() + { + return $this->metadata; + } + + /** + * The metadata key/value pairs assigned to instances in the cluster. + * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes + * in length. These are reflected as part of a URL in the metadata server. + * Additionally, to avoid ambiguity, keys must not conflict with any other + * metadata keys for the project or be one of the reserved keys: + * - "cluster-location" + * - "cluster-name" + * - "cluster-uid" + * - "configure-sh" + * - "containerd-configure-sh" + * - "enable-os-login" + * - "gci-ensure-gke-docker" + * - "gci-metrics-enabled" + * - "gci-update-strategy" + * - "instance-template" + * - "kube-env" + * - "startup-script" + * - "user-data" + * - "disable-address-manager" + * - "windows-startup-script-ps1" + * - "common-psm1" + * - "k8s-node-setup-psm1" + * - "install-ssh-psm1" + * - "user-profile-psm1" + * Values are free-form strings, and only have meaning as interpreted by + * the image running in the instance. The only restriction placed on them is + * that each value's size must be less than or equal to 32 KB. + * The total size of all keys and values must be less than 512 KB. + * + * Generated from protobuf field map metadata = 4; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setMetadata($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->metadata = $arr; + + return $this; + } + + /** + * The image type to use for this node. Note that for a given image type, + * the latest version of it will be used. Please see + * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for + * available image types. + * + * Generated from protobuf field string image_type = 5; + * @return string + */ + public function getImageType() + { + return $this->image_type; + } + + /** + * The image type to use for this node. Note that for a given image type, + * the latest version of it will be used. Please see + * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for + * available image types. + * + * Generated from protobuf field string image_type = 5; + * @param string $var + * @return $this + */ + public function setImageType($var) + { + GPBUtil::checkString($var, True); + $this->image_type = $var; + + return $this; + } + + /** + * The map of Kubernetes labels (key/value pairs) to be applied to each node. + * These will added in addition to any default label(s) that + * Kubernetes may apply to the node. + * In case of conflict in label keys, the applied set may differ depending on + * the Kubernetes version -- it's best to assume the behavior is undefined + * and conflicts should be avoided. + * For more information, including usage and the valid values, see: + * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ + * + * Generated from protobuf field map labels = 6; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * The map of Kubernetes labels (key/value pairs) to be applied to each node. + * These will added in addition to any default label(s) that + * Kubernetes may apply to the node. + * In case of conflict in label keys, the applied set may differ depending on + * the Kubernetes version -- it's best to assume the behavior is undefined + * and conflicts should be avoided. + * For more information, including usage and the valid values, see: + * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ + * + * Generated from protobuf field map labels = 6; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * The number of local SSD disks to be attached to the node. + * The limit for this value is dependent upon the maximum number of + * disks available on a machine per zone. See: + * https://cloud.google.com/compute/docs/disks/local-ssd + * for more information. + * + * Generated from protobuf field int32 local_ssd_count = 7; + * @return int + */ + public function getLocalSsdCount() + { + return $this->local_ssd_count; + } + + /** + * The number of local SSD disks to be attached to the node. + * The limit for this value is dependent upon the maximum number of + * disks available on a machine per zone. See: + * https://cloud.google.com/compute/docs/disks/local-ssd + * for more information. + * + * Generated from protobuf field int32 local_ssd_count = 7; + * @param int $var + * @return $this + */ + public function setLocalSsdCount($var) + { + GPBUtil::checkInt32($var); + $this->local_ssd_count = $var; + + return $this; + } + + /** + * The list of instance tags applied to all nodes. Tags are used to identify + * valid sources or targets for network firewalls and are specified by + * the client during cluster or node pool creation. Each tag within the list + * must comply with RFC1035. + * + * Generated from protobuf field repeated string tags = 8; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTags() + { + return $this->tags; + } + + /** + * The list of instance tags applied to all nodes. Tags are used to identify + * valid sources or targets for network firewalls and are specified by + * the client during cluster or node pool creation. Each tag within the list + * must comply with RFC1035. + * + * Generated from protobuf field repeated string tags = 8; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->tags = $arr; + + return $this; + } + + /** + * Whether the nodes are created as preemptible VM instances. See: + * https://cloud.google.com/compute/docs/instances/preemptible for more + * information about preemptible VM instances. + * + * Generated from protobuf field bool preemptible = 10; + * @return bool + */ + public function getPreemptible() + { + return $this->preemptible; + } + + /** + * Whether the nodes are created as preemptible VM instances. See: + * https://cloud.google.com/compute/docs/instances/preemptible for more + * information about preemptible VM instances. + * + * Generated from protobuf field bool preemptible = 10; + * @param bool $var + * @return $this + */ + public function setPreemptible($var) + { + GPBUtil::checkBool($var); + $this->preemptible = $var; + + return $this; + } + + /** + * A list of hardware accelerators to be attached to each node. + * See https://cloud.google.com/compute/docs/gpus for more information about + * support for GPUs. + * + * Generated from protobuf field repeated .google.container.v1.AcceleratorConfig accelerators = 11; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAccelerators() + { + return $this->accelerators; + } + + /** + * A list of hardware accelerators to be attached to each node. + * See https://cloud.google.com/compute/docs/gpus for more information about + * support for GPUs. + * + * Generated from protobuf field repeated .google.container.v1.AcceleratorConfig accelerators = 11; + * @param array<\Google\Cloud\Container\V1\AcceleratorConfig>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAccelerators($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\AcceleratorConfig::class); + $this->accelerators = $arr; + + return $this; + } + + /** + * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or + * 'pd-balanced') + * If unspecified, the default disk type is 'pd-standard' + * + * Generated from protobuf field string disk_type = 12; + * @return string + */ + public function getDiskType() + { + return $this->disk_type; + } + + /** + * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or + * 'pd-balanced') + * If unspecified, the default disk type is 'pd-standard' + * + * Generated from protobuf field string disk_type = 12; + * @param string $var + * @return $this + */ + public function setDiskType($var) + { + GPBUtil::checkString($var, True); + $this->disk_type = $var; + + return $this; + } + + /** + * Minimum CPU platform to be used by this instance. The instance may be + * scheduled on the specified or newer CPU platform. Applicable values are the + * friendly names of CPU platforms, such as + * `minCpuPlatform: "Intel Haswell"` or + * `minCpuPlatform: "Intel Sandy Bridge"`. For more + * information, read [how to specify min CPU + * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) + * + * Generated from protobuf field string min_cpu_platform = 13; + * @return string + */ + public function getMinCpuPlatform() + { + return $this->min_cpu_platform; + } + + /** + * Minimum CPU platform to be used by this instance. The instance may be + * scheduled on the specified or newer CPU platform. Applicable values are the + * friendly names of CPU platforms, such as + * `minCpuPlatform: "Intel Haswell"` or + * `minCpuPlatform: "Intel Sandy Bridge"`. For more + * information, read [how to specify min CPU + * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) + * + * Generated from protobuf field string min_cpu_platform = 13; + * @param string $var + * @return $this + */ + public function setMinCpuPlatform($var) + { + GPBUtil::checkString($var, True); + $this->min_cpu_platform = $var; + + return $this; + } + + /** + * The workload metadata configuration for this node. + * + * Generated from protobuf field .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + * @return \Google\Cloud\Container\V1\WorkloadMetadataConfig|null + */ + public function getWorkloadMetadataConfig() + { + return $this->workload_metadata_config; + } + + public function hasWorkloadMetadataConfig() + { + return isset($this->workload_metadata_config); + } + + public function clearWorkloadMetadataConfig() + { + unset($this->workload_metadata_config); + } + + /** + * The workload metadata configuration for this node. + * + * Generated from protobuf field .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + * @param \Google\Cloud\Container\V1\WorkloadMetadataConfig $var + * @return $this + */ + public function setWorkloadMetadataConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\WorkloadMetadataConfig::class); + $this->workload_metadata_config = $var; + + return $this; + } + + /** + * List of kubernetes taints to be applied to each node. + * For more information, including usage and the valid values, see: + * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ + * + * Generated from protobuf field repeated .google.container.v1.NodeTaint taints = 15; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTaints() + { + return $this->taints; + } + + /** + * List of kubernetes taints to be applied to each node. + * For more information, including usage and the valid values, see: + * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ + * + * Generated from protobuf field repeated .google.container.v1.NodeTaint taints = 15; + * @param array<\Google\Cloud\Container\V1\NodeTaint>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTaints($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\NodeTaint::class); + $this->taints = $arr; + + return $this; + } + + /** + * Sandbox configuration for this node. + * + * Generated from protobuf field .google.container.v1.SandboxConfig sandbox_config = 17; + * @return \Google\Cloud\Container\V1\SandboxConfig|null + */ + public function getSandboxConfig() + { + return $this->sandbox_config; + } + + public function hasSandboxConfig() + { + return isset($this->sandbox_config); + } + + public function clearSandboxConfig() + { + unset($this->sandbox_config); + } + + /** + * Sandbox configuration for this node. + * + * Generated from protobuf field .google.container.v1.SandboxConfig sandbox_config = 17; + * @param \Google\Cloud\Container\V1\SandboxConfig $var + * @return $this + */ + public function setSandboxConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\SandboxConfig::class); + $this->sandbox_config = $var; + + return $this; + } + + /** + * Setting this field will assign instances of this + * pool to run on the specified node group. This is useful for running + * workloads on [sole tenant + * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes). + * + * Generated from protobuf field string node_group = 18; + * @return string + */ + public function getNodeGroup() + { + return $this->node_group; + } + + /** + * Setting this field will assign instances of this + * pool to run on the specified node group. This is useful for running + * workloads on [sole tenant + * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes). + * + * Generated from protobuf field string node_group = 18; + * @param string $var + * @return $this + */ + public function setNodeGroup($var) + { + GPBUtil::checkString($var, True); + $this->node_group = $var; + + return $this; + } + + /** + * The optional reservation affinity. Setting this field will apply + * the specified [Zonal Compute + * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) + * to this node pool. + * + * Generated from protobuf field .google.container.v1.ReservationAffinity reservation_affinity = 19; + * @return \Google\Cloud\Container\V1\ReservationAffinity|null + */ + public function getReservationAffinity() + { + return $this->reservation_affinity; + } + + public function hasReservationAffinity() + { + return isset($this->reservation_affinity); + } + + public function clearReservationAffinity() + { + unset($this->reservation_affinity); + } + + /** + * The optional reservation affinity. Setting this field will apply + * the specified [Zonal Compute + * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) + * to this node pool. + * + * Generated from protobuf field .google.container.v1.ReservationAffinity reservation_affinity = 19; + * @param \Google\Cloud\Container\V1\ReservationAffinity $var + * @return $this + */ + public function setReservationAffinity($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ReservationAffinity::class); + $this->reservation_affinity = $var; + + return $this; + } + + /** + * Shielded Instance options. + * + * Generated from protobuf field .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + * @return \Google\Cloud\Container\V1\ShieldedInstanceConfig|null + */ + public function getShieldedInstanceConfig() + { + return $this->shielded_instance_config; + } + + public function hasShieldedInstanceConfig() + { + return isset($this->shielded_instance_config); + } + + public function clearShieldedInstanceConfig() + { + unset($this->shielded_instance_config); + } + + /** + * Shielded Instance options. + * + * Generated from protobuf field .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + * @param \Google\Cloud\Container\V1\ShieldedInstanceConfig $var + * @return $this + */ + public function setShieldedInstanceConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ShieldedInstanceConfig::class); + $this->shielded_instance_config = $var; + + return $this; + } + + /** + * Parameters that can be configured on Linux nodes. + * + * Generated from protobuf field .google.container.v1.LinuxNodeConfig linux_node_config = 21; + * @return \Google\Cloud\Container\V1\LinuxNodeConfig|null + */ + public function getLinuxNodeConfig() + { + return $this->linux_node_config; + } + + public function hasLinuxNodeConfig() + { + return isset($this->linux_node_config); + } + + public function clearLinuxNodeConfig() + { + unset($this->linux_node_config); + } + + /** + * Parameters that can be configured on Linux nodes. + * + * Generated from protobuf field .google.container.v1.LinuxNodeConfig linux_node_config = 21; + * @param \Google\Cloud\Container\V1\LinuxNodeConfig $var + * @return $this + */ + public function setLinuxNodeConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LinuxNodeConfig::class); + $this->linux_node_config = $var; + + return $this; + } + + /** + * Node kubelet configs. + * + * Generated from protobuf field .google.container.v1.NodeKubeletConfig kubelet_config = 22; + * @return \Google\Cloud\Container\V1\NodeKubeletConfig|null + */ + public function getKubeletConfig() + { + return $this->kubelet_config; + } + + public function hasKubeletConfig() + { + return isset($this->kubelet_config); + } + + public function clearKubeletConfig() + { + unset($this->kubelet_config); + } + + /** + * Node kubelet configs. + * + * Generated from protobuf field .google.container.v1.NodeKubeletConfig kubelet_config = 22; + * @param \Google\Cloud\Container\V1\NodeKubeletConfig $var + * @return $this + */ + public function setKubeletConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeKubeletConfig::class); + $this->kubelet_config = $var; + + return $this; + } + + /** + * The Customer Managed Encryption Key used to encrypt the boot disk attached + * to each node in the node pool. This should be of the form + * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. + * For more information about protecting resources with Cloud KMS Keys please + * see: + * https://cloud.google.com/compute/docs/disks/customer-managed-encryption + * + * Generated from protobuf field string boot_disk_kms_key = 23; + * @return string + */ + public function getBootDiskKmsKey() + { + return $this->boot_disk_kms_key; + } + + /** + * The Customer Managed Encryption Key used to encrypt the boot disk attached + * to each node in the node pool. This should be of the form + * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. + * For more information about protecting resources with Cloud KMS Keys please + * see: + * https://cloud.google.com/compute/docs/disks/customer-managed-encryption + * + * Generated from protobuf field string boot_disk_kms_key = 23; + * @param string $var + * @return $this + */ + public function setBootDiskKmsKey($var) + { + GPBUtil::checkString($var, True); + $this->boot_disk_kms_key = $var; + + return $this; + } + + /** + * Google Container File System (image streaming) configs. + * + * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 25; + * @return \Google\Cloud\Container\V1\GcfsConfig|null + */ + public function getGcfsConfig() + { + return $this->gcfs_config; + } + + public function hasGcfsConfig() + { + return isset($this->gcfs_config); + } + + public function clearGcfsConfig() + { + unset($this->gcfs_config); + } + + /** + * Google Container File System (image streaming) configs. + * + * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 25; + * @param \Google\Cloud\Container\V1\GcfsConfig $var + * @return $this + */ + public function setGcfsConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GcfsConfig::class); + $this->gcfs_config = $var; + + return $this; + } + + /** + * Advanced features for the Compute Engine VM. + * + * Generated from protobuf field .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + * @return \Google\Cloud\Container\V1\AdvancedMachineFeatures|null + */ + public function getAdvancedMachineFeatures() + { + return $this->advanced_machine_features; + } + + public function hasAdvancedMachineFeatures() + { + return isset($this->advanced_machine_features); + } + + public function clearAdvancedMachineFeatures() + { + unset($this->advanced_machine_features); + } + + /** + * Advanced features for the Compute Engine VM. + * + * Generated from protobuf field .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + * @param \Google\Cloud\Container\V1\AdvancedMachineFeatures $var + * @return $this + */ + public function setAdvancedMachineFeatures($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AdvancedMachineFeatures::class); + $this->advanced_machine_features = $var; + + return $this; + } + + /** + * Enable or disable gvnic in the node pool. + * + * Generated from protobuf field .google.container.v1.VirtualNIC gvnic = 29; + * @return \Google\Cloud\Container\V1\VirtualNIC|null + */ + public function getGvnic() + { + return $this->gvnic; + } + + public function hasGvnic() + { + return isset($this->gvnic); + } + + public function clearGvnic() + { + unset($this->gvnic); + } + + /** + * Enable or disable gvnic in the node pool. + * + * Generated from protobuf field .google.container.v1.VirtualNIC gvnic = 29; + * @param \Google\Cloud\Container\V1\VirtualNIC $var + * @return $this + */ + public function setGvnic($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\VirtualNIC::class); + $this->gvnic = $var; + + return $this; + } + + /** + * Spot flag for enabling Spot VM, which is a rebrand of + * the existing preemptible flag. + * + * Generated from protobuf field bool spot = 32; + * @return bool + */ + public function getSpot() + { + return $this->spot; + } + + /** + * Spot flag for enabling Spot VM, which is a rebrand of + * the existing preemptible flag. + * + * Generated from protobuf field bool spot = 32; + * @param bool $var + * @return $this + */ + public function setSpot($var) + { + GPBUtil::checkBool($var); + $this->spot = $var; + + return $this; + } + + /** + * Confidential nodes config. + * All the nodes in the node pool will be Confidential VM once enabled. + * + * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 35; + * @return \Google\Cloud\Container\V1\ConfidentialNodes|null + */ + public function getConfidentialNodes() + { + return $this->confidential_nodes; + } + + public function hasConfidentialNodes() + { + return isset($this->confidential_nodes); + } + + public function clearConfidentialNodes() + { + unset($this->confidential_nodes); + } + + /** + * Confidential nodes config. + * All the nodes in the node pool will be Confidential VM once enabled. + * + * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 35; + * @param \Google\Cloud\Container\V1\ConfidentialNodes $var + * @return $this + */ + public function setConfidentialNodes($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ConfidentialNodes::class); + $this->confidential_nodes = $var; + + return $this; + } + + /** + * Enable or disable NCCL fast socket for the node pool. + * + * Generated from protobuf field optional .google.container.v1.FastSocket fast_socket = 36; + * @return \Google\Cloud\Container\V1\FastSocket|null + */ + public function getFastSocket() + { + return $this->fast_socket; + } + + public function hasFastSocket() + { + return isset($this->fast_socket); + } + + public function clearFastSocket() + { + unset($this->fast_socket); + } + + /** + * Enable or disable NCCL fast socket for the node pool. + * + * Generated from protobuf field optional .google.container.v1.FastSocket fast_socket = 36; + * @param \Google\Cloud\Container\V1\FastSocket $var + * @return $this + */ + public function setFastSocket($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\FastSocket::class); + $this->fast_socket = $var; + + return $this; + } + + /** + * The resource labels for the node pool to use to annotate any related + * Google Compute Engine resources. + * + * Generated from protobuf field map resource_labels = 37; + * @return \Google\Protobuf\Internal\MapField + */ + public function getResourceLabels() + { + return $this->resource_labels; + } + + /** + * The resource labels for the node pool to use to annotate any related + * Google Compute Engine resources. + * + * Generated from protobuf field map resource_labels = 37; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setResourceLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->resource_labels = $arr; + + return $this; + } + + /** + * Logging configuration. + * + * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 38; + * @return \Google\Cloud\Container\V1\NodePoolLoggingConfig|null + */ + public function getLoggingConfig() + { + return $this->logging_config; + } + + public function hasLoggingConfig() + { + return isset($this->logging_config); + } + + public function clearLoggingConfig() + { + unset($this->logging_config); + } + + /** + * Logging configuration. + * + * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 38; + * @param \Google\Cloud\Container\V1\NodePoolLoggingConfig $var + * @return $this + */ + public function setLoggingConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolLoggingConfig::class); + $this->logging_config = $var; + + return $this; + } + + /** + * Parameters that can be configured on Windows nodes. + * + * Generated from protobuf field .google.container.v1.WindowsNodeConfig windows_node_config = 39; + * @return \Google\Cloud\Container\V1\WindowsNodeConfig|null + */ + public function getWindowsNodeConfig() + { + return $this->windows_node_config; + } + + public function hasWindowsNodeConfig() + { + return isset($this->windows_node_config); + } + + public function clearWindowsNodeConfig() + { + unset($this->windows_node_config); + } + + /** + * Parameters that can be configured on Windows nodes. + * + * Generated from protobuf field .google.container.v1.WindowsNodeConfig windows_node_config = 39; + * @param \Google\Cloud\Container\V1\WindowsNodeConfig $var + * @return $this + */ + public function setWindowsNodeConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\WindowsNodeConfig::class); + $this->windows_node_config = $var; + + return $this; + } + + /** + * Parameters for using raw-block Local NVMe SSDs. + * + * Generated from protobuf field .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; + * @return \Google\Cloud\Container\V1\LocalNvmeSsdBlockConfig|null + */ + public function getLocalNvmeSsdBlockConfig() + { + return $this->local_nvme_ssd_block_config; + } + + public function hasLocalNvmeSsdBlockConfig() + { + return isset($this->local_nvme_ssd_block_config); + } + + public function clearLocalNvmeSsdBlockConfig() + { + unset($this->local_nvme_ssd_block_config); + } + + /** + * Parameters for using raw-block Local NVMe SSDs. + * + * Generated from protobuf field .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; + * @param \Google\Cloud\Container\V1\LocalNvmeSsdBlockConfig $var + * @return $this + */ + public function setLocalNvmeSsdBlockConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LocalNvmeSsdBlockConfig::class); + $this->local_nvme_ssd_block_config = $var; + + return $this; + } + + /** + * Parameters for the node ephemeral storage using Local SSDs. + * If unspecified, ephemeral storage is backed by the boot disk. + * + * Generated from protobuf field .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; + * @return \Google\Cloud\Container\V1\EphemeralStorageLocalSsdConfig|null + */ + public function getEphemeralStorageLocalSsdConfig() + { + return $this->ephemeral_storage_local_ssd_config; + } + + public function hasEphemeralStorageLocalSsdConfig() + { + return isset($this->ephemeral_storage_local_ssd_config); + } + + public function clearEphemeralStorageLocalSsdConfig() + { + unset($this->ephemeral_storage_local_ssd_config); + } + + /** + * Parameters for the node ephemeral storage using Local SSDs. + * If unspecified, ephemeral storage is backed by the boot disk. + * + * Generated from protobuf field .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; + * @param \Google\Cloud\Container\V1\EphemeralStorageLocalSsdConfig $var + * @return $this + */ + public function setEphemeralStorageLocalSsdConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\EphemeralStorageLocalSsdConfig::class); + $this->ephemeral_storage_local_ssd_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfigDefaults.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfigDefaults.php new file mode 100644 index 000000000000..c217054480c1 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfigDefaults.php @@ -0,0 +1,121 @@ +google.container.v1.NodeConfigDefaults + */ +class NodeConfigDefaults extends \Google\Protobuf\Internal\Message +{ + /** + * GCFS (Google Container File System, also known as Riptide) options. + * + * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 1; + */ + protected $gcfs_config = null; + /** + * Logging configuration for node pools. + * + * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 3; + */ + protected $logging_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Container\V1\GcfsConfig $gcfs_config + * GCFS (Google Container File System, also known as Riptide) options. + * @type \Google\Cloud\Container\V1\NodePoolLoggingConfig $logging_config + * Logging configuration for node pools. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * GCFS (Google Container File System, also known as Riptide) options. + * + * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 1; + * @return \Google\Cloud\Container\V1\GcfsConfig|null + */ + public function getGcfsConfig() + { + return $this->gcfs_config; + } + + public function hasGcfsConfig() + { + return isset($this->gcfs_config); + } + + public function clearGcfsConfig() + { + unset($this->gcfs_config); + } + + /** + * GCFS (Google Container File System, also known as Riptide) options. + * + * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 1; + * @param \Google\Cloud\Container\V1\GcfsConfig $var + * @return $this + */ + public function setGcfsConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GcfsConfig::class); + $this->gcfs_config = $var; + + return $this; + } + + /** + * Logging configuration for node pools. + * + * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 3; + * @return \Google\Cloud\Container\V1\NodePoolLoggingConfig|null + */ + public function getLoggingConfig() + { + return $this->logging_config; + } + + public function hasLoggingConfig() + { + return isset($this->logging_config); + } + + public function clearLoggingConfig() + { + unset($this->logging_config); + } + + /** + * Logging configuration for node pools. + * + * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 3; + * @param \Google\Cloud\Container\V1\NodePoolLoggingConfig $var + * @return $this + */ + public function setLoggingConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolLoggingConfig::class); + $this->logging_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeKubeletConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeKubeletConfig.php new file mode 100644 index 000000000000..8686d91cec92 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeKubeletConfig.php @@ -0,0 +1,304 @@ +google.container.v1.NodeKubeletConfig + */ +class NodeKubeletConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Control the CPU management policy on the node. + * See + * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ + * The following values are allowed. + * * "none": the default, which represents the existing scheduling behavior. + * * "static": allows pods with certain resource characteristics to be granted + * increased CPU affinity and exclusivity on the node. + * The default value is 'none' if unspecified. + * + * Generated from protobuf field string cpu_manager_policy = 1; + */ + protected $cpu_manager_policy = ''; + /** + * Enable CPU CFS quota enforcement for containers that specify CPU limits. + * This option is enabled by default which makes kubelet use CFS quota + * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to + * enforce container CPU limits. Otherwise, CPU limits will not be enforced at + * all. + * Disable this option to mitigate CPU throttling problems while still having + * your pods to be in Guaranteed QoS class by specifying the CPU limits. + * The default value is 'true' if unspecified. + * + * Generated from protobuf field .google.protobuf.BoolValue cpu_cfs_quota = 2; + */ + protected $cpu_cfs_quota = null; + /** + * Set the CPU CFS quota period value 'cpu.cfs_period_us'. + * The string must be a sequence of decimal numbers, each with optional + * fraction and a unit suffix, such as "300ms". + * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". + * The value must be a positive duration. + * + * Generated from protobuf field string cpu_cfs_quota_period = 3; + */ + protected $cpu_cfs_quota_period = ''; + /** + * Set the Pod PID limits. See + * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits + * Controls the maximum number of processes allowed to run in a pod. The value + * must be greater than or equal to 1024 and less than 4194304. + * + * Generated from protobuf field int64 pod_pids_limit = 4; + */ + protected $pod_pids_limit = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $cpu_manager_policy + * Control the CPU management policy on the node. + * See + * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ + * The following values are allowed. + * * "none": the default, which represents the existing scheduling behavior. + * * "static": allows pods with certain resource characteristics to be granted + * increased CPU affinity and exclusivity on the node. + * The default value is 'none' if unspecified. + * @type \Google\Protobuf\BoolValue $cpu_cfs_quota + * Enable CPU CFS quota enforcement for containers that specify CPU limits. + * This option is enabled by default which makes kubelet use CFS quota + * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to + * enforce container CPU limits. Otherwise, CPU limits will not be enforced at + * all. + * Disable this option to mitigate CPU throttling problems while still having + * your pods to be in Guaranteed QoS class by specifying the CPU limits. + * The default value is 'true' if unspecified. + * @type string $cpu_cfs_quota_period + * Set the CPU CFS quota period value 'cpu.cfs_period_us'. + * The string must be a sequence of decimal numbers, each with optional + * fraction and a unit suffix, such as "300ms". + * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". + * The value must be a positive duration. + * @type int|string $pod_pids_limit + * Set the Pod PID limits. See + * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits + * Controls the maximum number of processes allowed to run in a pod. The value + * must be greater than or equal to 1024 and less than 4194304. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Control the CPU management policy on the node. + * See + * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ + * The following values are allowed. + * * "none": the default, which represents the existing scheduling behavior. + * * "static": allows pods with certain resource characteristics to be granted + * increased CPU affinity and exclusivity on the node. + * The default value is 'none' if unspecified. + * + * Generated from protobuf field string cpu_manager_policy = 1; + * @return string + */ + public function getCpuManagerPolicy() + { + return $this->cpu_manager_policy; + } + + /** + * Control the CPU management policy on the node. + * See + * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ + * The following values are allowed. + * * "none": the default, which represents the existing scheduling behavior. + * * "static": allows pods with certain resource characteristics to be granted + * increased CPU affinity and exclusivity on the node. + * The default value is 'none' if unspecified. + * + * Generated from protobuf field string cpu_manager_policy = 1; + * @param string $var + * @return $this + */ + public function setCpuManagerPolicy($var) + { + GPBUtil::checkString($var, True); + $this->cpu_manager_policy = $var; + + return $this; + } + + /** + * Enable CPU CFS quota enforcement for containers that specify CPU limits. + * This option is enabled by default which makes kubelet use CFS quota + * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to + * enforce container CPU limits. Otherwise, CPU limits will not be enforced at + * all. + * Disable this option to mitigate CPU throttling problems while still having + * your pods to be in Guaranteed QoS class by specifying the CPU limits. + * The default value is 'true' if unspecified. + * + * Generated from protobuf field .google.protobuf.BoolValue cpu_cfs_quota = 2; + * @return \Google\Protobuf\BoolValue|null + */ + public function getCpuCfsQuota() + { + return $this->cpu_cfs_quota; + } + + public function hasCpuCfsQuota() + { + return isset($this->cpu_cfs_quota); + } + + public function clearCpuCfsQuota() + { + unset($this->cpu_cfs_quota); + } + + /** + * Returns the unboxed value from getCpuCfsQuota() + + * Enable CPU CFS quota enforcement for containers that specify CPU limits. + * This option is enabled by default which makes kubelet use CFS quota + * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to + * enforce container CPU limits. Otherwise, CPU limits will not be enforced at + * all. + * Disable this option to mitigate CPU throttling problems while still having + * your pods to be in Guaranteed QoS class by specifying the CPU limits. + * The default value is 'true' if unspecified. + * + * Generated from protobuf field .google.protobuf.BoolValue cpu_cfs_quota = 2; + * @return bool|null + */ + public function getCpuCfsQuotaUnwrapped() + { + return $this->readWrapperValue("cpu_cfs_quota"); + } + + /** + * Enable CPU CFS quota enforcement for containers that specify CPU limits. + * This option is enabled by default which makes kubelet use CFS quota + * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to + * enforce container CPU limits. Otherwise, CPU limits will not be enforced at + * all. + * Disable this option to mitigate CPU throttling problems while still having + * your pods to be in Guaranteed QoS class by specifying the CPU limits. + * The default value is 'true' if unspecified. + * + * Generated from protobuf field .google.protobuf.BoolValue cpu_cfs_quota = 2; + * @param \Google\Protobuf\BoolValue $var + * @return $this + */ + public function setCpuCfsQuota($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); + $this->cpu_cfs_quota = $var; + + return $this; + } + + /** + * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. + + * Enable CPU CFS quota enforcement for containers that specify CPU limits. + * This option is enabled by default which makes kubelet use CFS quota + * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to + * enforce container CPU limits. Otherwise, CPU limits will not be enforced at + * all. + * Disable this option to mitigate CPU throttling problems while still having + * your pods to be in Guaranteed QoS class by specifying the CPU limits. + * The default value is 'true' if unspecified. + * + * Generated from protobuf field .google.protobuf.BoolValue cpu_cfs_quota = 2; + * @param bool|null $var + * @return $this + */ + public function setCpuCfsQuotaUnwrapped($var) + { + $this->writeWrapperValue("cpu_cfs_quota", $var); + return $this;} + + /** + * Set the CPU CFS quota period value 'cpu.cfs_period_us'. + * The string must be a sequence of decimal numbers, each with optional + * fraction and a unit suffix, such as "300ms". + * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". + * The value must be a positive duration. + * + * Generated from protobuf field string cpu_cfs_quota_period = 3; + * @return string + */ + public function getCpuCfsQuotaPeriod() + { + return $this->cpu_cfs_quota_period; + } + + /** + * Set the CPU CFS quota period value 'cpu.cfs_period_us'. + * The string must be a sequence of decimal numbers, each with optional + * fraction and a unit suffix, such as "300ms". + * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". + * The value must be a positive duration. + * + * Generated from protobuf field string cpu_cfs_quota_period = 3; + * @param string $var + * @return $this + */ + public function setCpuCfsQuotaPeriod($var) + { + GPBUtil::checkString($var, True); + $this->cpu_cfs_quota_period = $var; + + return $this; + } + + /** + * Set the Pod PID limits. See + * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits + * Controls the maximum number of processes allowed to run in a pod. The value + * must be greater than or equal to 1024 and less than 4194304. + * + * Generated from protobuf field int64 pod_pids_limit = 4; + * @return int|string + */ + public function getPodPidsLimit() + { + return $this->pod_pids_limit; + } + + /** + * Set the Pod PID limits. See + * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits + * Controls the maximum number of processes allowed to run in a pod. The value + * must be greater than or equal to 1024 and less than 4194304. + * + * Generated from protobuf field int64 pod_pids_limit = 4; + * @param int|string $var + * @return $this + */ + public function setPodPidsLimit($var) + { + GPBUtil::checkInt64($var); + $this->pod_pids_limit = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeLabels.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeLabels.php new file mode 100644 index 000000000000..c358a5fd2b22 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeLabels.php @@ -0,0 +1,68 @@ +google.container.v1.NodeLabels + */ +class NodeLabels extends \Google\Protobuf\Internal\Message +{ + /** + * Map of node label keys and node label values. + * + * Generated from protobuf field map labels = 1; + */ + private $labels; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\MapField $labels + * Map of node label keys and node label values. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Map of node label keys and node label values. + * + * Generated from protobuf field map labels = 1; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Map of node label keys and node label values. + * + * Generated from protobuf field map labels = 1; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeManagement.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeManagement.php new file mode 100644 index 000000000000..a915f86917fc --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeManagement.php @@ -0,0 +1,166 @@ +google.container.v1.NodeManagement + */ +class NodeManagement extends \Google\Protobuf\Internal\Message +{ + /** + * A flag that specifies whether node auto-upgrade is enabled for the node + * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool + * up to date with the latest release version of Kubernetes. + * + * Generated from protobuf field bool auto_upgrade = 1; + */ + protected $auto_upgrade = false; + /** + * A flag that specifies whether the node auto-repair is enabled for the node + * pool. If enabled, the nodes in this node pool will be monitored and, if + * they fail health checks too many times, an automatic repair action will be + * triggered. + * + * Generated from protobuf field bool auto_repair = 2; + */ + protected $auto_repair = false; + /** + * Specifies the Auto Upgrade knobs for the node pool. + * + * Generated from protobuf field .google.container.v1.AutoUpgradeOptions upgrade_options = 10; + */ + protected $upgrade_options = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $auto_upgrade + * A flag that specifies whether node auto-upgrade is enabled for the node + * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool + * up to date with the latest release version of Kubernetes. + * @type bool $auto_repair + * A flag that specifies whether the node auto-repair is enabled for the node + * pool. If enabled, the nodes in this node pool will be monitored and, if + * they fail health checks too many times, an automatic repair action will be + * triggered. + * @type \Google\Cloud\Container\V1\AutoUpgradeOptions $upgrade_options + * Specifies the Auto Upgrade knobs for the node pool. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * A flag that specifies whether node auto-upgrade is enabled for the node + * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool + * up to date with the latest release version of Kubernetes. + * + * Generated from protobuf field bool auto_upgrade = 1; + * @return bool + */ + public function getAutoUpgrade() + { + return $this->auto_upgrade; + } + + /** + * A flag that specifies whether node auto-upgrade is enabled for the node + * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool + * up to date with the latest release version of Kubernetes. + * + * Generated from protobuf field bool auto_upgrade = 1; + * @param bool $var + * @return $this + */ + public function setAutoUpgrade($var) + { + GPBUtil::checkBool($var); + $this->auto_upgrade = $var; + + return $this; + } + + /** + * A flag that specifies whether the node auto-repair is enabled for the node + * pool. If enabled, the nodes in this node pool will be monitored and, if + * they fail health checks too many times, an automatic repair action will be + * triggered. + * + * Generated from protobuf field bool auto_repair = 2; + * @return bool + */ + public function getAutoRepair() + { + return $this->auto_repair; + } + + /** + * A flag that specifies whether the node auto-repair is enabled for the node + * pool. If enabled, the nodes in this node pool will be monitored and, if + * they fail health checks too many times, an automatic repair action will be + * triggered. + * + * Generated from protobuf field bool auto_repair = 2; + * @param bool $var + * @return $this + */ + public function setAutoRepair($var) + { + GPBUtil::checkBool($var); + $this->auto_repair = $var; + + return $this; + } + + /** + * Specifies the Auto Upgrade knobs for the node pool. + * + * Generated from protobuf field .google.container.v1.AutoUpgradeOptions upgrade_options = 10; + * @return \Google\Cloud\Container\V1\AutoUpgradeOptions|null + */ + public function getUpgradeOptions() + { + return $this->upgrade_options; + } + + public function hasUpgradeOptions() + { + return isset($this->upgrade_options); + } + + public function clearUpgradeOptions() + { + unset($this->upgrade_options); + } + + /** + * Specifies the Auto Upgrade knobs for the node pool. + * + * Generated from protobuf field .google.container.v1.AutoUpgradeOptions upgrade_options = 10; + * @param \Google\Cloud\Container\V1\AutoUpgradeOptions $var + * @return $this + */ + public function setUpgradeOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AutoUpgradeOptions::class); + $this->upgrade_options = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig.php new file mode 100644 index 000000000000..9684c54a93b5 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig.php @@ -0,0 +1,315 @@ +google.container.v1.NodeNetworkConfig + */ +class NodeNetworkConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Input only. Whether to create a new range for pod IPs in this node pool. + * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they + * are not specified. + * If neither `create_pod_range` or `pod_range` are specified, the + * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is + * used. + * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. + * This field cannot be changed after the node pool has been created. + * + * Generated from protobuf field bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + protected $create_pod_range = false; + /** + * The ID of the secondary range for pod IPs. + * If `create_pod_range` is true, this ID is used for the new range. + * If `create_pod_range` is false, uses an existing secondary range with this + * ID. + * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. + * This field cannot be changed after the node pool has been created. + * + * Generated from protobuf field string pod_range = 5; + */ + protected $pod_range = ''; + /** + * The IP address range for pod IPs in this node pool. + * Only applicable if `create_pod_range` is true. + * Set to blank to have a range chosen with the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) to pick a specific range to use. + * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. + * This field cannot be changed after the node pool has been created. + * + * Generated from protobuf field string pod_ipv4_cidr_block = 6; + */ + protected $pod_ipv4_cidr_block = ''; + /** + * Whether nodes have internal IP addresses only. + * If enable_private_nodes is not specified, then the value is derived from + * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes] + * + * Generated from protobuf field optional bool enable_private_nodes = 9; + */ + protected $enable_private_nodes = null; + /** + * Network bandwidth tier configuration. + * + * Generated from protobuf field optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; + */ + protected $network_performance_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $create_pod_range + * Input only. Whether to create a new range for pod IPs in this node pool. + * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they + * are not specified. + * If neither `create_pod_range` or `pod_range` are specified, the + * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is + * used. + * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. + * This field cannot be changed after the node pool has been created. + * @type string $pod_range + * The ID of the secondary range for pod IPs. + * If `create_pod_range` is true, this ID is used for the new range. + * If `create_pod_range` is false, uses an existing secondary range with this + * ID. + * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. + * This field cannot be changed after the node pool has been created. + * @type string $pod_ipv4_cidr_block + * The IP address range for pod IPs in this node pool. + * Only applicable if `create_pod_range` is true. + * Set to blank to have a range chosen with the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) to pick a specific range to use. + * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. + * This field cannot be changed after the node pool has been created. + * @type bool $enable_private_nodes + * Whether nodes have internal IP addresses only. + * If enable_private_nodes is not specified, then the value is derived from + * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes] + * @type \Google\Cloud\Container\V1\NodeNetworkConfig\NetworkPerformanceConfig $network_performance_config + * Network bandwidth tier configuration. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Input only. Whether to create a new range for pod IPs in this node pool. + * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they + * are not specified. + * If neither `create_pod_range` or `pod_range` are specified, the + * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is + * used. + * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. + * This field cannot be changed after the node pool has been created. + * + * Generated from protobuf field bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return bool + */ + public function getCreatePodRange() + { + return $this->create_pod_range; + } + + /** + * Input only. Whether to create a new range for pod IPs in this node pool. + * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they + * are not specified. + * If neither `create_pod_range` or `pod_range` are specified, the + * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is + * used. + * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. + * This field cannot be changed after the node pool has been created. + * + * Generated from protobuf field bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setCreatePodRange($var) + { + GPBUtil::checkBool($var); + $this->create_pod_range = $var; + + return $this; + } + + /** + * The ID of the secondary range for pod IPs. + * If `create_pod_range` is true, this ID is used for the new range. + * If `create_pod_range` is false, uses an existing secondary range with this + * ID. + * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. + * This field cannot be changed after the node pool has been created. + * + * Generated from protobuf field string pod_range = 5; + * @return string + */ + public function getPodRange() + { + return $this->pod_range; + } + + /** + * The ID of the secondary range for pod IPs. + * If `create_pod_range` is true, this ID is used for the new range. + * If `create_pod_range` is false, uses an existing secondary range with this + * ID. + * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. + * This field cannot be changed after the node pool has been created. + * + * Generated from protobuf field string pod_range = 5; + * @param string $var + * @return $this + */ + public function setPodRange($var) + { + GPBUtil::checkString($var, True); + $this->pod_range = $var; + + return $this; + } + + /** + * The IP address range for pod IPs in this node pool. + * Only applicable if `create_pod_range` is true. + * Set to blank to have a range chosen with the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) to pick a specific range to use. + * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. + * This field cannot be changed after the node pool has been created. + * + * Generated from protobuf field string pod_ipv4_cidr_block = 6; + * @return string + */ + public function getPodIpv4CidrBlock() + { + return $this->pod_ipv4_cidr_block; + } + + /** + * The IP address range for pod IPs in this node pool. + * Only applicable if `create_pod_range` is true. + * Set to blank to have a range chosen with the default size. + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * Set to a + * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) to pick a specific range to use. + * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. + * This field cannot be changed after the node pool has been created. + * + * Generated from protobuf field string pod_ipv4_cidr_block = 6; + * @param string $var + * @return $this + */ + public function setPodIpv4CidrBlock($var) + { + GPBUtil::checkString($var, True); + $this->pod_ipv4_cidr_block = $var; + + return $this; + } + + /** + * Whether nodes have internal IP addresses only. + * If enable_private_nodes is not specified, then the value is derived from + * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes] + * + * Generated from protobuf field optional bool enable_private_nodes = 9; + * @return bool + */ + public function getEnablePrivateNodes() + { + return isset($this->enable_private_nodes) ? $this->enable_private_nodes : false; + } + + public function hasEnablePrivateNodes() + { + return isset($this->enable_private_nodes); + } + + public function clearEnablePrivateNodes() + { + unset($this->enable_private_nodes); + } + + /** + * Whether nodes have internal IP addresses only. + * If enable_private_nodes is not specified, then the value is derived from + * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes] + * + * Generated from protobuf field optional bool enable_private_nodes = 9; + * @param bool $var + * @return $this + */ + public function setEnablePrivateNodes($var) + { + GPBUtil::checkBool($var); + $this->enable_private_nodes = $var; + + return $this; + } + + /** + * Network bandwidth tier configuration. + * + * Generated from protobuf field optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; + * @return \Google\Cloud\Container\V1\NodeNetworkConfig\NetworkPerformanceConfig|null + */ + public function getNetworkPerformanceConfig() + { + return $this->network_performance_config; + } + + public function hasNetworkPerformanceConfig() + { + return isset($this->network_performance_config); + } + + public function clearNetworkPerformanceConfig() + { + unset($this->network_performance_config); + } + + /** + * Network bandwidth tier configuration. + * + * Generated from protobuf field optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; + * @param \Google\Cloud\Container\V1\NodeNetworkConfig\NetworkPerformanceConfig $var + * @return $this + */ + public function setNetworkPerformanceConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeNetworkConfig\NetworkPerformanceConfig::class); + $this->network_performance_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig.php new file mode 100644 index 000000000000..171177950b7c --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig.php @@ -0,0 +1,80 @@ +google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig + */ +class NetworkPerformanceConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Specifies the total network bandwidth tier for the NodePool. + * + * Generated from protobuf field optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + */ + protected $total_egress_bandwidth_tier = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $total_egress_bandwidth_tier + * Specifies the total network bandwidth tier for the NodePool. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Specifies the total network bandwidth tier for the NodePool. + * + * Generated from protobuf field optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return int + */ + public function getTotalEgressBandwidthTier() + { + return isset($this->total_egress_bandwidth_tier) ? $this->total_egress_bandwidth_tier : 0; + } + + public function hasTotalEgressBandwidthTier() + { + return isset($this->total_egress_bandwidth_tier); + } + + public function clearTotalEgressBandwidthTier() + { + unset($this->total_egress_bandwidth_tier); + } + + /** + * Specifies the total network bandwidth tier for the NodePool. + * + * Generated from protobuf field optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @param int $var + * @return $this + */ + public function setTotalEgressBandwidthTier($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NodeNetworkConfig\NetworkPerformanceConfig\Tier::class); + $this->total_egress_bandwidth_tier = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(NetworkPerformanceConfig::class, \Google\Cloud\Container\V1\NodeNetworkConfig_NetworkPerformanceConfig::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig/Tier.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig/Tier.php new file mode 100644 index 000000000000..7101c3334fff --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig/Tier.php @@ -0,0 +1,57 @@ +google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier + */ +class Tier +{ + /** + * Default value + * + * Generated from protobuf enum TIER_UNSPECIFIED = 0; + */ + const TIER_UNSPECIFIED = 0; + /** + * Higher bandwidth, actual values based on VM size. + * + * Generated from protobuf enum TIER_1 = 1; + */ + const TIER_1 = 1; + + private static $valueToName = [ + self::TIER_UNSPECIFIED => 'TIER_UNSPECIFIED', + self::TIER_1 => 'TIER_1', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Tier::class, \Google\Cloud\Container\V1\NodeNetworkConfig_NetworkPerformanceConfig_Tier::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig_NetworkPerformanceConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig_NetworkPerformanceConfig.php new file mode 100644 index 000000000000..124bdec1caf8 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig_NetworkPerformanceConfig.php @@ -0,0 +1,16 @@ +google.container.v1.NodePool + */ +class NodePool extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the node pool. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * The node configuration of the pool. + * + * Generated from protobuf field .google.container.v1.NodeConfig config = 2; + */ + protected $config = null; + /** + * The initial node count for the pool. You must ensure that your + * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) + * is sufficient for this number of instances. You must also have available + * firewall and routes quota. + * + * Generated from protobuf field int32 initial_node_count = 3; + */ + protected $initial_node_count = 0; + /** + * The list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * NodePool's nodes should be located. + * If this value is unspecified during node pool creation, the + * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) + * value will be used, instead. + * Warning: changing node pool locations will result in nodes being added + * and/or removed. + * + * Generated from protobuf field repeated string locations = 13; + */ + private $locations; + /** + * Networking configuration for this NodePool. If specified, it overrides the + * cluster-level defaults. + * + * Generated from protobuf field .google.container.v1.NodeNetworkConfig network_config = 14; + */ + protected $network_config = null; + /** + * [Output only] Server-defined URL for the resource. + * + * Generated from protobuf field string self_link = 100; + */ + protected $self_link = ''; + /** + * The version of Kubernetes running on this NodePool's nodes. If unspecified, + * it defaults as described + * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version). + * + * Generated from protobuf field string version = 101; + */ + protected $version = ''; + /** + * [Output only] The resource URLs of the [managed instance + * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) + * associated with this node pool. + * During the node pool blue-green upgrade operation, the URLs contain both + * blue and green resources. + * + * Generated from protobuf field repeated string instance_group_urls = 102; + */ + private $instance_group_urls; + /** + * [Output only] The status of the nodes in this pool instance. + * + * Generated from protobuf field .google.container.v1.NodePool.Status status = 103; + */ + protected $status = 0; + /** + * [Output only] Deprecated. Use conditions instead. + * Additional information about the current status of this + * node pool instance, if available. + * + * Generated from protobuf field string status_message = 104 [deprecated = true]; + * @deprecated + */ + protected $status_message = ''; + /** + * Autoscaler configuration for this NodePool. Autoscaler is enabled + * only if a valid configuration is present. + * + * Generated from protobuf field .google.container.v1.NodePoolAutoscaling autoscaling = 4; + */ + protected $autoscaling = null; + /** + * NodeManagement configuration for this NodePool. + * + * Generated from protobuf field .google.container.v1.NodeManagement management = 5; + */ + protected $management = null; + /** + * The constraint on the maximum number of pods that can be run + * simultaneously on a node in the node pool. + * + * Generated from protobuf field .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; + */ + protected $max_pods_constraint = null; + /** + * Which conditions caused the current node pool state. + * + * Generated from protobuf field repeated .google.container.v1.StatusCondition conditions = 105; + */ + private $conditions; + /** + * [Output only] The pod CIDR block size per node in this node pool. + * + * Generated from protobuf field int32 pod_ipv4_cidr_size = 7; + */ + protected $pod_ipv4_cidr_size = 0; + /** + * Upgrade settings control disruption and speed of the upgrade. + * + * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + protected $upgrade_settings = null; + /** + * Specifies the node placement policy. + * + * Generated from protobuf field .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; + */ + protected $placement_policy = null; + /** + * Output only. [Output only] Update info contains relevant information during + * a node pool update. + * + * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_info = null; + /** + * This checksum is computed by the server based on the value of node pool + * fields, and may be sent on update requests to ensure the client has an + * up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 110; + */ + protected $etag = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of the node pool. + * @type \Google\Cloud\Container\V1\NodeConfig $config + * The node configuration of the pool. + * @type int $initial_node_count + * The initial node count for the pool. You must ensure that your + * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) + * is sufficient for this number of instances. You must also have available + * firewall and routes quota. + * @type array|\Google\Protobuf\Internal\RepeatedField $locations + * The list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * NodePool's nodes should be located. + * If this value is unspecified during node pool creation, the + * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) + * value will be used, instead. + * Warning: changing node pool locations will result in nodes being added + * and/or removed. + * @type \Google\Cloud\Container\V1\NodeNetworkConfig $network_config + * Networking configuration for this NodePool. If specified, it overrides the + * cluster-level defaults. + * @type string $self_link + * [Output only] Server-defined URL for the resource. + * @type string $version + * The version of Kubernetes running on this NodePool's nodes. If unspecified, + * it defaults as described + * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version). + * @type array|\Google\Protobuf\Internal\RepeatedField $instance_group_urls + * [Output only] The resource URLs of the [managed instance + * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) + * associated with this node pool. + * During the node pool blue-green upgrade operation, the URLs contain both + * blue and green resources. + * @type int $status + * [Output only] The status of the nodes in this pool instance. + * @type string $status_message + * [Output only] Deprecated. Use conditions instead. + * Additional information about the current status of this + * node pool instance, if available. + * @type \Google\Cloud\Container\V1\NodePoolAutoscaling $autoscaling + * Autoscaler configuration for this NodePool. Autoscaler is enabled + * only if a valid configuration is present. + * @type \Google\Cloud\Container\V1\NodeManagement $management + * NodeManagement configuration for this NodePool. + * @type \Google\Cloud\Container\V1\MaxPodsConstraint $max_pods_constraint + * The constraint on the maximum number of pods that can be run + * simultaneously on a node in the node pool. + * @type array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $conditions + * Which conditions caused the current node pool state. + * @type int $pod_ipv4_cidr_size + * [Output only] The pod CIDR block size per node in this node pool. + * @type \Google\Cloud\Container\V1\NodePool\UpgradeSettings $upgrade_settings + * Upgrade settings control disruption and speed of the upgrade. + * @type \Google\Cloud\Container\V1\NodePool\PlacementPolicy $placement_policy + * Specifies the node placement policy. + * @type \Google\Cloud\Container\V1\NodePool\UpdateInfo $update_info + * Output only. [Output only] Update info contains relevant information during + * a node pool update. + * @type string $etag + * This checksum is computed by the server based on the value of node pool + * fields, and may be sent on update requests to ensure the client has an + * up-to-date value before proceeding. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The name of the node pool. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of the node pool. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The node configuration of the pool. + * + * Generated from protobuf field .google.container.v1.NodeConfig config = 2; + * @return \Google\Cloud\Container\V1\NodeConfig|null + */ + public function getConfig() + { + return $this->config; + } + + public function hasConfig() + { + return isset($this->config); + } + + public function clearConfig() + { + unset($this->config); + } + + /** + * The node configuration of the pool. + * + * Generated from protobuf field .google.container.v1.NodeConfig config = 2; + * @param \Google\Cloud\Container\V1\NodeConfig $var + * @return $this + */ + public function setConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeConfig::class); + $this->config = $var; + + return $this; + } + + /** + * The initial node count for the pool. You must ensure that your + * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) + * is sufficient for this number of instances. You must also have available + * firewall and routes quota. + * + * Generated from protobuf field int32 initial_node_count = 3; + * @return int + */ + public function getInitialNodeCount() + { + return $this->initial_node_count; + } + + /** + * The initial node count for the pool. You must ensure that your + * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) + * is sufficient for this number of instances. You must also have available + * firewall and routes quota. + * + * Generated from protobuf field int32 initial_node_count = 3; + * @param int $var + * @return $this + */ + public function setInitialNodeCount($var) + { + GPBUtil::checkInt32($var); + $this->initial_node_count = $var; + + return $this; + } + + /** + * The list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * NodePool's nodes should be located. + * If this value is unspecified during node pool creation, the + * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) + * value will be used, instead. + * Warning: changing node pool locations will result in nodes being added + * and/or removed. + * + * Generated from protobuf field repeated string locations = 13; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getLocations() + { + return $this->locations; + } + + /** + * The list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * NodePool's nodes should be located. + * If this value is unspecified during node pool creation, the + * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) + * value will be used, instead. + * Warning: changing node pool locations will result in nodes being added + * and/or removed. + * + * Generated from protobuf field repeated string locations = 13; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->locations = $arr; + + return $this; + } + + /** + * Networking configuration for this NodePool. If specified, it overrides the + * cluster-level defaults. + * + * Generated from protobuf field .google.container.v1.NodeNetworkConfig network_config = 14; + * @return \Google\Cloud\Container\V1\NodeNetworkConfig|null + */ + public function getNetworkConfig() + { + return $this->network_config; + } + + public function hasNetworkConfig() + { + return isset($this->network_config); + } + + public function clearNetworkConfig() + { + unset($this->network_config); + } + + /** + * Networking configuration for this NodePool. If specified, it overrides the + * cluster-level defaults. + * + * Generated from protobuf field .google.container.v1.NodeNetworkConfig network_config = 14; + * @param \Google\Cloud\Container\V1\NodeNetworkConfig $var + * @return $this + */ + public function setNetworkConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeNetworkConfig::class); + $this->network_config = $var; + + return $this; + } + + /** + * [Output only] Server-defined URL for the resource. + * + * Generated from protobuf field string self_link = 100; + * @return string + */ + public function getSelfLink() + { + return $this->self_link; + } + + /** + * [Output only] Server-defined URL for the resource. + * + * Generated from protobuf field string self_link = 100; + * @param string $var + * @return $this + */ + public function setSelfLink($var) + { + GPBUtil::checkString($var, True); + $this->self_link = $var; + + return $this; + } + + /** + * The version of Kubernetes running on this NodePool's nodes. If unspecified, + * it defaults as described + * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version). + * + * Generated from protobuf field string version = 101; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * The version of Kubernetes running on this NodePool's nodes. If unspecified, + * it defaults as described + * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version). + * + * Generated from protobuf field string version = 101; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + + /** + * [Output only] The resource URLs of the [managed instance + * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) + * associated with this node pool. + * During the node pool blue-green upgrade operation, the URLs contain both + * blue and green resources. + * + * Generated from protobuf field repeated string instance_group_urls = 102; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getInstanceGroupUrls() + { + return $this->instance_group_urls; + } + + /** + * [Output only] The resource URLs of the [managed instance + * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) + * associated with this node pool. + * During the node pool blue-green upgrade operation, the URLs contain both + * blue and green resources. + * + * Generated from protobuf field repeated string instance_group_urls = 102; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setInstanceGroupUrls($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->instance_group_urls = $arr; + + return $this; + } + + /** + * [Output only] The status of the nodes in this pool instance. + * + * Generated from protobuf field .google.container.v1.NodePool.Status status = 103; + * @return int + */ + public function getStatus() + { + return $this->status; + } + + /** + * [Output only] The status of the nodes in this pool instance. + * + * Generated from protobuf field .google.container.v1.NodePool.Status status = 103; + * @param int $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NodePool\Status::class); + $this->status = $var; + + return $this; + } + + /** + * [Output only] Deprecated. Use conditions instead. + * Additional information about the current status of this + * node pool instance, if available. + * + * Generated from protobuf field string status_message = 104 [deprecated = true]; + * @return string + * @deprecated + */ + public function getStatusMessage() + { + @trigger_error('status_message is deprecated.', E_USER_DEPRECATED); + return $this->status_message; + } + + /** + * [Output only] Deprecated. Use conditions instead. + * Additional information about the current status of this + * node pool instance, if available. + * + * Generated from protobuf field string status_message = 104 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setStatusMessage($var) + { + @trigger_error('status_message is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->status_message = $var; + + return $this; + } + + /** + * Autoscaler configuration for this NodePool. Autoscaler is enabled + * only if a valid configuration is present. + * + * Generated from protobuf field .google.container.v1.NodePoolAutoscaling autoscaling = 4; + * @return \Google\Cloud\Container\V1\NodePoolAutoscaling|null + */ + public function getAutoscaling() + { + return $this->autoscaling; + } + + public function hasAutoscaling() + { + return isset($this->autoscaling); + } + + public function clearAutoscaling() + { + unset($this->autoscaling); + } + + /** + * Autoscaler configuration for this NodePool. Autoscaler is enabled + * only if a valid configuration is present. + * + * Generated from protobuf field .google.container.v1.NodePoolAutoscaling autoscaling = 4; + * @param \Google\Cloud\Container\V1\NodePoolAutoscaling $var + * @return $this + */ + public function setAutoscaling($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolAutoscaling::class); + $this->autoscaling = $var; + + return $this; + } + + /** + * NodeManagement configuration for this NodePool. + * + * Generated from protobuf field .google.container.v1.NodeManagement management = 5; + * @return \Google\Cloud\Container\V1\NodeManagement|null + */ + public function getManagement() + { + return $this->management; + } + + public function hasManagement() + { + return isset($this->management); + } + + public function clearManagement() + { + unset($this->management); + } + + /** + * NodeManagement configuration for this NodePool. + * + * Generated from protobuf field .google.container.v1.NodeManagement management = 5; + * @param \Google\Cloud\Container\V1\NodeManagement $var + * @return $this + */ + public function setManagement($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeManagement::class); + $this->management = $var; + + return $this; + } + + /** + * The constraint on the maximum number of pods that can be run + * simultaneously on a node in the node pool. + * + * Generated from protobuf field .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; + * @return \Google\Cloud\Container\V1\MaxPodsConstraint|null + */ + public function getMaxPodsConstraint() + { + return $this->max_pods_constraint; + } + + public function hasMaxPodsConstraint() + { + return isset($this->max_pods_constraint); + } + + public function clearMaxPodsConstraint() + { + unset($this->max_pods_constraint); + } + + /** + * The constraint on the maximum number of pods that can be run + * simultaneously on a node in the node pool. + * + * Generated from protobuf field .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; + * @param \Google\Cloud\Container\V1\MaxPodsConstraint $var + * @return $this + */ + public function setMaxPodsConstraint($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MaxPodsConstraint::class); + $this->max_pods_constraint = $var; + + return $this; + } + + /** + * Which conditions caused the current node pool state. + * + * Generated from protobuf field repeated .google.container.v1.StatusCondition conditions = 105; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getConditions() + { + return $this->conditions; + } + + /** + * Which conditions caused the current node pool state. + * + * Generated from protobuf field repeated .google.container.v1.StatusCondition conditions = 105; + * @param array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setConditions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\StatusCondition::class); + $this->conditions = $arr; + + return $this; + } + + /** + * [Output only] The pod CIDR block size per node in this node pool. + * + * Generated from protobuf field int32 pod_ipv4_cidr_size = 7; + * @return int + */ + public function getPodIpv4CidrSize() + { + return $this->pod_ipv4_cidr_size; + } + + /** + * [Output only] The pod CIDR block size per node in this node pool. + * + * Generated from protobuf field int32 pod_ipv4_cidr_size = 7; + * @param int $var + * @return $this + */ + public function setPodIpv4CidrSize($var) + { + GPBUtil::checkInt32($var); + $this->pod_ipv4_cidr_size = $var; + + return $this; + } + + /** + * Upgrade settings control disruption and speed of the upgrade. + * + * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + * @return \Google\Cloud\Container\V1\NodePool\UpgradeSettings|null + */ + public function getUpgradeSettings() + { + return $this->upgrade_settings; + } + + public function hasUpgradeSettings() + { + return isset($this->upgrade_settings); + } + + public function clearUpgradeSettings() + { + unset($this->upgrade_settings); + } + + /** + * Upgrade settings control disruption and speed of the upgrade. + * + * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + * @param \Google\Cloud\Container\V1\NodePool\UpgradeSettings $var + * @return $this + */ + public function setUpgradeSettings($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool\UpgradeSettings::class); + $this->upgrade_settings = $var; + + return $this; + } + + /** + * Specifies the node placement policy. + * + * Generated from protobuf field .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; + * @return \Google\Cloud\Container\V1\NodePool\PlacementPolicy|null + */ + public function getPlacementPolicy() + { + return $this->placement_policy; + } + + public function hasPlacementPolicy() + { + return isset($this->placement_policy); + } + + public function clearPlacementPolicy() + { + unset($this->placement_policy); + } + + /** + * Specifies the node placement policy. + * + * Generated from protobuf field .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; + * @param \Google\Cloud\Container\V1\NodePool\PlacementPolicy $var + * @return $this + */ + public function setPlacementPolicy($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool\PlacementPolicy::class); + $this->placement_policy = $var; + + return $this; + } + + /** + * Output only. [Output only] Update info contains relevant information during + * a node pool update. + * + * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Container\V1\NodePool\UpdateInfo|null + */ + public function getUpdateInfo() + { + return $this->update_info; + } + + public function hasUpdateInfo() + { + return isset($this->update_info); + } + + public function clearUpdateInfo() + { + unset($this->update_info); + } + + /** + * Output only. [Output only] Update info contains relevant information during + * a node pool update. + * + * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Container\V1\NodePool\UpdateInfo $var + * @return $this + */ + public function setUpdateInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool\UpdateInfo::class); + $this->update_info = $var; + + return $this; + } + + /** + * This checksum is computed by the server based on the value of node pool + * fields, and may be sent on update requests to ensure the client has an + * up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 110; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * This checksum is computed by the server based on the value of node pool + * fields, and may be sent on update requests to ensure the client has an + * up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 110; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy.php new file mode 100644 index 000000000000..55e898c7a72b --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy.php @@ -0,0 +1,70 @@ +google.container.v1.NodePool.PlacementPolicy + */ +class PlacementPolicy extends \Google\Protobuf\Internal\Message +{ + /** + * The type of placement. + * + * Generated from protobuf field .google.container.v1.NodePool.PlacementPolicy.Type type = 1; + */ + protected $type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $type + * The type of placement. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The type of placement. + * + * Generated from protobuf field .google.container.v1.NodePool.PlacementPolicy.Type type = 1; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * The type of placement. + * + * Generated from protobuf field .google.container.v1.NodePool.PlacementPolicy.Type type = 1; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NodePool\PlacementPolicy\Type::class); + $this->type = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(PlacementPolicy::class, \Google\Cloud\Container\V1\NodePool_PlacementPolicy::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy/Type.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy/Type.php new file mode 100644 index 000000000000..feb385c477d5 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy/Type.php @@ -0,0 +1,59 @@ +google.container.v1.NodePool.PlacementPolicy.Type + */ +class Type +{ + /** + * TYPE_UNSPECIFIED specifies no requirements on nodes + * placement. + * + * Generated from protobuf enum TYPE_UNSPECIFIED = 0; + */ + const TYPE_UNSPECIFIED = 0; + /** + * COMPACT specifies node placement in the same availability domain to + * ensure low communication latency. + * + * Generated from protobuf enum COMPACT = 1; + */ + const COMPACT = 1; + + private static $valueToName = [ + self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', + self::COMPACT => 'COMPACT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Type::class, \Google\Cloud\Container\V1\NodePool_PlacementPolicy_Type::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/Status.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/Status.php new file mode 100644 index 000000000000..76d3391edf7d --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/Status.php @@ -0,0 +1,99 @@ +google.container.v1.NodePool.Status + */ +class Status +{ + /** + * Not set. + * + * Generated from protobuf enum STATUS_UNSPECIFIED = 0; + */ + const STATUS_UNSPECIFIED = 0; + /** + * The PROVISIONING state indicates the node pool is being created. + * + * Generated from protobuf enum PROVISIONING = 1; + */ + const PROVISIONING = 1; + /** + * The RUNNING state indicates the node pool has been created + * and is fully usable. + * + * Generated from protobuf enum RUNNING = 2; + */ + const RUNNING = 2; + /** + * The RUNNING_WITH_ERROR state indicates the node pool has been created + * and is partially usable. Some error state has occurred and some + * functionality may be impaired. Customer may need to reissue a request + * or trigger a new update. + * + * Generated from protobuf enum RUNNING_WITH_ERROR = 3; + */ + const RUNNING_WITH_ERROR = 3; + /** + * The RECONCILING state indicates that some work is actively being done on + * the node pool, such as upgrading node software. Details can + * be found in the `statusMessage` field. + * + * Generated from protobuf enum RECONCILING = 4; + */ + const RECONCILING = 4; + /** + * The STOPPING state indicates the node pool is being deleted. + * + * Generated from protobuf enum STOPPING = 5; + */ + const STOPPING = 5; + /** + * The ERROR state indicates the node pool may be unusable. Details + * can be found in the `statusMessage` field. + * + * Generated from protobuf enum ERROR = 6; + */ + const ERROR = 6; + + private static $valueToName = [ + self::STATUS_UNSPECIFIED => 'STATUS_UNSPECIFIED', + self::PROVISIONING => 'PROVISIONING', + self::RUNNING => 'RUNNING', + self::RUNNING_WITH_ERROR => 'RUNNING_WITH_ERROR', + self::RECONCILING => 'RECONCILING', + self::STOPPING => 'STOPPING', + self::ERROR => 'ERROR', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Status::class, \Google\Cloud\Container\V1\NodePool_Status::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo.php new file mode 100644 index 000000000000..051fb577f24d --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo.php @@ -0,0 +1,81 @@ +google.container.v1.NodePool.UpdateInfo + */ +class UpdateInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Information of a blue-green upgrade. + * + * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; + */ + protected $blue_green_info = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Container\V1\NodePool\UpdateInfo\BlueGreenInfo $blue_green_info + * Information of a blue-green upgrade. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Information of a blue-green upgrade. + * + * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; + * @return \Google\Cloud\Container\V1\NodePool\UpdateInfo\BlueGreenInfo|null + */ + public function getBlueGreenInfo() + { + return $this->blue_green_info; + } + + public function hasBlueGreenInfo() + { + return isset($this->blue_green_info); + } + + public function clearBlueGreenInfo() + { + unset($this->blue_green_info); + } + + /** + * Information of a blue-green upgrade. + * + * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; + * @param \Google\Cloud\Container\V1\NodePool\UpdateInfo\BlueGreenInfo $var + * @return $this + */ + public function setBlueGreenInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool\UpdateInfo\BlueGreenInfo::class); + $this->blue_green_info = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(UpdateInfo::class, \Google\Cloud\Container\V1\NodePool_UpdateInfo::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo.php new file mode 100644 index 000000000000..5a4d73eb77af --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo.php @@ -0,0 +1,226 @@ +google.container.v1.NodePool.UpdateInfo.BlueGreenInfo + */ +class BlueGreenInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Current blue-green upgrade phase. + * + * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; + */ + protected $phase = 0; + /** + * The resource URLs of the [managed instance groups] + * (/compute/docs/instance-groups/creating-groups-of-managed-instances) + * associated with blue pool. + * + * Generated from protobuf field repeated string blue_instance_group_urls = 2; + */ + private $blue_instance_group_urls; + /** + * The resource URLs of the [managed instance groups] + * (/compute/docs/instance-groups/creating-groups-of-managed-instances) + * associated with green pool. + * + * Generated from protobuf field repeated string green_instance_group_urls = 3; + */ + private $green_instance_group_urls; + /** + * Time to start deleting blue pool to complete blue-green upgrade, + * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * + * Generated from protobuf field string blue_pool_deletion_start_time = 4; + */ + protected $blue_pool_deletion_start_time = ''; + /** + * Version of green pool. + * + * Generated from protobuf field string green_pool_version = 5; + */ + protected $green_pool_version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $phase + * Current blue-green upgrade phase. + * @type array|\Google\Protobuf\Internal\RepeatedField $blue_instance_group_urls + * The resource URLs of the [managed instance groups] + * (/compute/docs/instance-groups/creating-groups-of-managed-instances) + * associated with blue pool. + * @type array|\Google\Protobuf\Internal\RepeatedField $green_instance_group_urls + * The resource URLs of the [managed instance groups] + * (/compute/docs/instance-groups/creating-groups-of-managed-instances) + * associated with green pool. + * @type string $blue_pool_deletion_start_time + * Time to start deleting blue pool to complete blue-green upgrade, + * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * @type string $green_pool_version + * Version of green pool. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Current blue-green upgrade phase. + * + * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; + * @return int + */ + public function getPhase() + { + return $this->phase; + } + + /** + * Current blue-green upgrade phase. + * + * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; + * @param int $var + * @return $this + */ + public function setPhase($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NodePool\UpdateInfo\BlueGreenInfo\Phase::class); + $this->phase = $var; + + return $this; + } + + /** + * The resource URLs of the [managed instance groups] + * (/compute/docs/instance-groups/creating-groups-of-managed-instances) + * associated with blue pool. + * + * Generated from protobuf field repeated string blue_instance_group_urls = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getBlueInstanceGroupUrls() + { + return $this->blue_instance_group_urls; + } + + /** + * The resource URLs of the [managed instance groups] + * (/compute/docs/instance-groups/creating-groups-of-managed-instances) + * associated with blue pool. + * + * Generated from protobuf field repeated string blue_instance_group_urls = 2; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setBlueInstanceGroupUrls($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->blue_instance_group_urls = $arr; + + return $this; + } + + /** + * The resource URLs of the [managed instance groups] + * (/compute/docs/instance-groups/creating-groups-of-managed-instances) + * associated with green pool. + * + * Generated from protobuf field repeated string green_instance_group_urls = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getGreenInstanceGroupUrls() + { + return $this->green_instance_group_urls; + } + + /** + * The resource URLs of the [managed instance groups] + * (/compute/docs/instance-groups/creating-groups-of-managed-instances) + * associated with green pool. + * + * Generated from protobuf field repeated string green_instance_group_urls = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setGreenInstanceGroupUrls($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->green_instance_group_urls = $arr; + + return $this; + } + + /** + * Time to start deleting blue pool to complete blue-green upgrade, + * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * + * Generated from protobuf field string blue_pool_deletion_start_time = 4; + * @return string + */ + public function getBluePoolDeletionStartTime() + { + return $this->blue_pool_deletion_start_time; + } + + /** + * Time to start deleting blue pool to complete blue-green upgrade, + * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * + * Generated from protobuf field string blue_pool_deletion_start_time = 4; + * @param string $var + * @return $this + */ + public function setBluePoolDeletionStartTime($var) + { + GPBUtil::checkString($var, True); + $this->blue_pool_deletion_start_time = $var; + + return $this; + } + + /** + * Version of green pool. + * + * Generated from protobuf field string green_pool_version = 5; + * @return string + */ + public function getGreenPoolVersion() + { + return $this->green_pool_version; + } + + /** + * Version of green pool. + * + * Generated from protobuf field string green_pool_version = 5; + * @param string $var + * @return $this + */ + public function setGreenPoolVersion($var) + { + GPBUtil::checkString($var, True); + $this->green_pool_version = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(BlueGreenInfo::class, \Google\Cloud\Container\V1\NodePool_UpdateInfo_BlueGreenInfo::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo/Phase.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo/Phase.php new file mode 100644 index 000000000000..f47b3342f3ef --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo/Phase.php @@ -0,0 +1,99 @@ +google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase + */ +class Phase +{ + /** + * Unspecified phase. + * + * Generated from protobuf enum PHASE_UNSPECIFIED = 0; + */ + const PHASE_UNSPECIFIED = 0; + /** + * blue-green upgrade has been initiated. + * + * Generated from protobuf enum UPDATE_STARTED = 1; + */ + const UPDATE_STARTED = 1; + /** + * Start creating green pool nodes. + * + * Generated from protobuf enum CREATING_GREEN_POOL = 2; + */ + const CREATING_GREEN_POOL = 2; + /** + * Start cordoning blue pool nodes. + * + * Generated from protobuf enum CORDONING_BLUE_POOL = 3; + */ + const CORDONING_BLUE_POOL = 3; + /** + * Start draining blue pool nodes. + * + * Generated from protobuf enum DRAINING_BLUE_POOL = 4; + */ + const DRAINING_BLUE_POOL = 4; + /** + * Start soaking time after draining entire blue pool. + * + * Generated from protobuf enum NODE_POOL_SOAKING = 5; + */ + const NODE_POOL_SOAKING = 5; + /** + * Start deleting blue nodes. + * + * Generated from protobuf enum DELETING_BLUE_POOL = 6; + */ + const DELETING_BLUE_POOL = 6; + /** + * Rollback has been initiated. + * + * Generated from protobuf enum ROLLBACK_STARTED = 7; + */ + const ROLLBACK_STARTED = 7; + + private static $valueToName = [ + self::PHASE_UNSPECIFIED => 'PHASE_UNSPECIFIED', + self::UPDATE_STARTED => 'UPDATE_STARTED', + self::CREATING_GREEN_POOL => 'CREATING_GREEN_POOL', + self::CORDONING_BLUE_POOL => 'CORDONING_BLUE_POOL', + self::DRAINING_BLUE_POOL => 'DRAINING_BLUE_POOL', + self::NODE_POOL_SOAKING => 'NODE_POOL_SOAKING', + self::DELETING_BLUE_POOL => 'DELETING_BLUE_POOL', + self::ROLLBACK_STARTED => 'ROLLBACK_STARTED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Phase::class, \Google\Cloud\Container\V1\NodePool_UpdateInfo_BlueGreenInfo_Phase::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpgradeSettings.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpgradeSettings.php new file mode 100644 index 000000000000..7fea002183a1 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpgradeSettings.php @@ -0,0 +1,241 @@ +google.container.v1.NodePool.UpgradeSettings + */ +class UpgradeSettings extends \Google\Protobuf\Internal\Message +{ + /** + * The maximum number of nodes that can be created beyond the current size + * of the node pool during the upgrade process. + * + * Generated from protobuf field int32 max_surge = 1; + */ + protected $max_surge = 0; + /** + * The maximum number of nodes that can be simultaneously unavailable during + * the upgrade process. A node is considered available if its status is + * Ready. + * + * Generated from protobuf field int32 max_unavailable = 2; + */ + protected $max_unavailable = 0; + /** + * Update strategy of the node pool. + * + * Generated from protobuf field optional .google.container.v1.NodePoolUpdateStrategy strategy = 3; + */ + protected $strategy = null; + /** + * Settings for blue-green upgrade strategy. + * + * Generated from protobuf field optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; + */ + protected $blue_green_settings = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $max_surge + * The maximum number of nodes that can be created beyond the current size + * of the node pool during the upgrade process. + * @type int $max_unavailable + * The maximum number of nodes that can be simultaneously unavailable during + * the upgrade process. A node is considered available if its status is + * Ready. + * @type int $strategy + * Update strategy of the node pool. + * @type \Google\Cloud\Container\V1\BlueGreenSettings $blue_green_settings + * Settings for blue-green upgrade strategy. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The maximum number of nodes that can be created beyond the current size + * of the node pool during the upgrade process. + * + * Generated from protobuf field int32 max_surge = 1; + * @return int + */ + public function getMaxSurge() + { + return $this->max_surge; + } + + /** + * The maximum number of nodes that can be created beyond the current size + * of the node pool during the upgrade process. + * + * Generated from protobuf field int32 max_surge = 1; + * @param int $var + * @return $this + */ + public function setMaxSurge($var) + { + GPBUtil::checkInt32($var); + $this->max_surge = $var; + + return $this; + } + + /** + * The maximum number of nodes that can be simultaneously unavailable during + * the upgrade process. A node is considered available if its status is + * Ready. + * + * Generated from protobuf field int32 max_unavailable = 2; + * @return int + */ + public function getMaxUnavailable() + { + return $this->max_unavailable; + } + + /** + * The maximum number of nodes that can be simultaneously unavailable during + * the upgrade process. A node is considered available if its status is + * Ready. + * + * Generated from protobuf field int32 max_unavailable = 2; + * @param int $var + * @return $this + */ + public function setMaxUnavailable($var) + { + GPBUtil::checkInt32($var); + $this->max_unavailable = $var; + + return $this; + } + + /** + * Update strategy of the node pool. + * + * Generated from protobuf field optional .google.container.v1.NodePoolUpdateStrategy strategy = 3; + * @return int + */ + public function getStrategy() + { + return isset($this->strategy) ? $this->strategy : 0; + } + + public function hasStrategy() + { + return isset($this->strategy); + } + + public function clearStrategy() + { + unset($this->strategy); + } + + /** + * Update strategy of the node pool. + * + * Generated from protobuf field optional .google.container.v1.NodePoolUpdateStrategy strategy = 3; + * @param int $var + * @return $this + */ + public function setStrategy($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NodePoolUpdateStrategy::class); + $this->strategy = $var; + + return $this; + } + + /** + * Settings for blue-green upgrade strategy. + * + * Generated from protobuf field optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; + * @return \Google\Cloud\Container\V1\BlueGreenSettings|null + */ + public function getBlueGreenSettings() + { + return $this->blue_green_settings; + } + + public function hasBlueGreenSettings() + { + return isset($this->blue_green_settings); + } + + public function clearBlueGreenSettings() + { + unset($this->blue_green_settings); + } + + /** + * Settings for blue-green upgrade strategy. + * + * Generated from protobuf field optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; + * @param \Google\Cloud\Container\V1\BlueGreenSettings $var + * @return $this + */ + public function setBlueGreenSettings($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\BlueGreenSettings::class); + $this->blue_green_settings = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(UpgradeSettings::class, \Google\Cloud\Container\V1\NodePool_UpgradeSettings::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoConfig.php new file mode 100644 index 000000000000..eaf3c54734fb --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoConfig.php @@ -0,0 +1,90 @@ +google.container.v1.NodePoolAutoConfig + */ +class NodePoolAutoConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The list of instance tags applied to all nodes. Tags are used to identify + * valid sources or targets for network firewalls and are specified by + * the client during cluster creation. Each tag within the list + * must comply with RFC1035. + * + * Generated from protobuf field .google.container.v1.NetworkTags network_tags = 1; + */ + protected $network_tags = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Container\V1\NetworkTags $network_tags + * The list of instance tags applied to all nodes. Tags are used to identify + * valid sources or targets for network firewalls and are specified by + * the client during cluster creation. Each tag within the list + * must comply with RFC1035. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The list of instance tags applied to all nodes. Tags are used to identify + * valid sources or targets for network firewalls and are specified by + * the client during cluster creation. Each tag within the list + * must comply with RFC1035. + * + * Generated from protobuf field .google.container.v1.NetworkTags network_tags = 1; + * @return \Google\Cloud\Container\V1\NetworkTags|null + */ + public function getNetworkTags() + { + return $this->network_tags; + } + + public function hasNetworkTags() + { + return isset($this->network_tags); + } + + public function clearNetworkTags() + { + unset($this->network_tags); + } + + /** + * The list of instance tags applied to all nodes. Tags are used to identify + * valid sources or targets for network firewalls and are specified by + * the client during cluster creation. Each tag within the list + * must comply with RFC1035. + * + * Generated from protobuf field .google.container.v1.NetworkTags network_tags = 1; + * @param \Google\Cloud\Container\V1\NetworkTags $var + * @return $this + */ + public function setNetworkTags($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkTags::class); + $this->network_tags = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling.php new file mode 100644 index 000000000000..6f5f3887bcfe --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling.php @@ -0,0 +1,304 @@ +google.container.v1.NodePoolAutoscaling + */ +class NodePoolAutoscaling extends \Google\Protobuf\Internal\Message +{ + /** + * Is autoscaling enabled for this node pool. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + /** + * Minimum number of nodes for one location in the NodePool. Must be >= 1 and + * <= max_node_count. + * + * Generated from protobuf field int32 min_node_count = 2; + */ + protected $min_node_count = 0; + /** + * Maximum number of nodes for one location in the NodePool. Must be >= + * min_node_count. There has to be enough quota to scale up the cluster. + * + * Generated from protobuf field int32 max_node_count = 3; + */ + protected $max_node_count = 0; + /** + * Can this node pool be deleted automatically. + * + * Generated from protobuf field bool autoprovisioned = 4; + */ + protected $autoprovisioned = false; + /** + * Location policy used when scaling up a nodepool. + * + * Generated from protobuf field .google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5; + */ + protected $location_policy = 0; + /** + * Minimum number of nodes in the node pool. Must be greater than 1 less than + * total_max_node_count. + * The total_*_node_count fields are mutually exclusive with the *_node_count + * fields. + * + * Generated from protobuf field int32 total_min_node_count = 6; + */ + protected $total_min_node_count = 0; + /** + * Maximum number of nodes in the node pool. Must be greater than + * total_min_node_count. There has to be enough quota to scale up the cluster. + * The total_*_node_count fields are mutually exclusive with the *_node_count + * fields. + * + * Generated from protobuf field int32 total_max_node_count = 7; + */ + protected $total_max_node_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Is autoscaling enabled for this node pool. + * @type int $min_node_count + * Minimum number of nodes for one location in the NodePool. Must be >= 1 and + * <= max_node_count. + * @type int $max_node_count + * Maximum number of nodes for one location in the NodePool. Must be >= + * min_node_count. There has to be enough quota to scale up the cluster. + * @type bool $autoprovisioned + * Can this node pool be deleted automatically. + * @type int $location_policy + * Location policy used when scaling up a nodepool. + * @type int $total_min_node_count + * Minimum number of nodes in the node pool. Must be greater than 1 less than + * total_max_node_count. + * The total_*_node_count fields are mutually exclusive with the *_node_count + * fields. + * @type int $total_max_node_count + * Maximum number of nodes in the node pool. Must be greater than + * total_min_node_count. There has to be enough quota to scale up the cluster. + * The total_*_node_count fields are mutually exclusive with the *_node_count + * fields. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Is autoscaling enabled for this node pool. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Is autoscaling enabled for this node pool. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + + /** + * Minimum number of nodes for one location in the NodePool. Must be >= 1 and + * <= max_node_count. + * + * Generated from protobuf field int32 min_node_count = 2; + * @return int + */ + public function getMinNodeCount() + { + return $this->min_node_count; + } + + /** + * Minimum number of nodes for one location in the NodePool. Must be >= 1 and + * <= max_node_count. + * + * Generated from protobuf field int32 min_node_count = 2; + * @param int $var + * @return $this + */ + public function setMinNodeCount($var) + { + GPBUtil::checkInt32($var); + $this->min_node_count = $var; + + return $this; + } + + /** + * Maximum number of nodes for one location in the NodePool. Must be >= + * min_node_count. There has to be enough quota to scale up the cluster. + * + * Generated from protobuf field int32 max_node_count = 3; + * @return int + */ + public function getMaxNodeCount() + { + return $this->max_node_count; + } + + /** + * Maximum number of nodes for one location in the NodePool. Must be >= + * min_node_count. There has to be enough quota to scale up the cluster. + * + * Generated from protobuf field int32 max_node_count = 3; + * @param int $var + * @return $this + */ + public function setMaxNodeCount($var) + { + GPBUtil::checkInt32($var); + $this->max_node_count = $var; + + return $this; + } + + /** + * Can this node pool be deleted automatically. + * + * Generated from protobuf field bool autoprovisioned = 4; + * @return bool + */ + public function getAutoprovisioned() + { + return $this->autoprovisioned; + } + + /** + * Can this node pool be deleted automatically. + * + * Generated from protobuf field bool autoprovisioned = 4; + * @param bool $var + * @return $this + */ + public function setAutoprovisioned($var) + { + GPBUtil::checkBool($var); + $this->autoprovisioned = $var; + + return $this; + } + + /** + * Location policy used when scaling up a nodepool. + * + * Generated from protobuf field .google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5; + * @return int + */ + public function getLocationPolicy() + { + return $this->location_policy; + } + + /** + * Location policy used when scaling up a nodepool. + * + * Generated from protobuf field .google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5; + * @param int $var + * @return $this + */ + public function setLocationPolicy($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NodePoolAutoscaling\LocationPolicy::class); + $this->location_policy = $var; + + return $this; + } + + /** + * Minimum number of nodes in the node pool. Must be greater than 1 less than + * total_max_node_count. + * The total_*_node_count fields are mutually exclusive with the *_node_count + * fields. + * + * Generated from protobuf field int32 total_min_node_count = 6; + * @return int + */ + public function getTotalMinNodeCount() + { + return $this->total_min_node_count; + } + + /** + * Minimum number of nodes in the node pool. Must be greater than 1 less than + * total_max_node_count. + * The total_*_node_count fields are mutually exclusive with the *_node_count + * fields. + * + * Generated from protobuf field int32 total_min_node_count = 6; + * @param int $var + * @return $this + */ + public function setTotalMinNodeCount($var) + { + GPBUtil::checkInt32($var); + $this->total_min_node_count = $var; + + return $this; + } + + /** + * Maximum number of nodes in the node pool. Must be greater than + * total_min_node_count. There has to be enough quota to scale up the cluster. + * The total_*_node_count fields are mutually exclusive with the *_node_count + * fields. + * + * Generated from protobuf field int32 total_max_node_count = 7; + * @return int + */ + public function getTotalMaxNodeCount() + { + return $this->total_max_node_count; + } + + /** + * Maximum number of nodes in the node pool. Must be greater than + * total_min_node_count. There has to be enough quota to scale up the cluster. + * The total_*_node_count fields are mutually exclusive with the *_node_count + * fields. + * + * Generated from protobuf field int32 total_max_node_count = 7; + * @param int $var + * @return $this + */ + public function setTotalMaxNodeCount($var) + { + GPBUtil::checkInt32($var); + $this->total_max_node_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling/LocationPolicy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling/LocationPolicy.php new file mode 100644 index 000000000000..1a3cea48b398 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling/LocationPolicy.php @@ -0,0 +1,66 @@ +google.container.v1.NodePoolAutoscaling.LocationPolicy + */ +class LocationPolicy +{ + /** + * Not set. + * + * Generated from protobuf enum LOCATION_POLICY_UNSPECIFIED = 0; + */ + const LOCATION_POLICY_UNSPECIFIED = 0; + /** + * BALANCED is a best effort policy that aims to balance the sizes of + * different zones. + * + * Generated from protobuf enum BALANCED = 1; + */ + const BALANCED = 1; + /** + * ANY policy picks zones that have the highest capacity available. + * + * Generated from protobuf enum ANY = 2; + */ + const ANY = 2; + + private static $valueToName = [ + self::LOCATION_POLICY_UNSPECIFIED => 'LOCATION_POLICY_UNSPECIFIED', + self::BALANCED => 'BALANCED', + self::ANY => 'ANY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(LocationPolicy::class, \Google\Cloud\Container\V1\NodePoolAutoscaling_LocationPolicy::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling_LocationPolicy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling_LocationPolicy.php new file mode 100644 index 000000000000..b1681bcd2517 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling_LocationPolicy.php @@ -0,0 +1,16 @@ +google.container.v1.NodePoolDefaults + */ +class NodePoolDefaults extends \Google\Protobuf\Internal\Message +{ + /** + * Subset of NodeConfig message that has defaults. + * + * Generated from protobuf field .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + */ + protected $node_config_defaults = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Container\V1\NodeConfigDefaults $node_config_defaults + * Subset of NodeConfig message that has defaults. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Subset of NodeConfig message that has defaults. + * + * Generated from protobuf field .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + * @return \Google\Cloud\Container\V1\NodeConfigDefaults|null + */ + public function getNodeConfigDefaults() + { + return $this->node_config_defaults; + } + + public function hasNodeConfigDefaults() + { + return isset($this->node_config_defaults); + } + + public function clearNodeConfigDefaults() + { + unset($this->node_config_defaults); + } + + /** + * Subset of NodeConfig message that has defaults. + * + * Generated from protobuf field .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + * @param \Google\Cloud\Container\V1\NodeConfigDefaults $var + * @return $this + */ + public function setNodeConfigDefaults($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeConfigDefaults::class); + $this->node_config_defaults = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolLoggingConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolLoggingConfig.php new file mode 100644 index 000000000000..3b1a6d619f08 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolLoggingConfig.php @@ -0,0 +1,77 @@ +google.container.v1.NodePoolLoggingConfig + */ +class NodePoolLoggingConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Logging variant configuration. + * + * Generated from protobuf field .google.container.v1.LoggingVariantConfig variant_config = 1; + */ + protected $variant_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Container\V1\LoggingVariantConfig $variant_config + * Logging variant configuration. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Logging variant configuration. + * + * Generated from protobuf field .google.container.v1.LoggingVariantConfig variant_config = 1; + * @return \Google\Cloud\Container\V1\LoggingVariantConfig|null + */ + public function getVariantConfig() + { + return $this->variant_config; + } + + public function hasVariantConfig() + { + return isset($this->variant_config); + } + + public function clearVariantConfig() + { + unset($this->variant_config); + } + + /** + * Logging variant configuration. + * + * Generated from protobuf field .google.container.v1.LoggingVariantConfig variant_config = 1; + * @param \Google\Cloud\Container\V1\LoggingVariantConfig $var + * @return $this + */ + public function setVariantConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LoggingVariantConfig::class); + $this->variant_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolUpdateStrategy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolUpdateStrategy.php new file mode 100644 index 000000000000..0879bfb66d87 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolUpdateStrategy.php @@ -0,0 +1,63 @@ +google.container.v1.NodePoolUpdateStrategy + */ +class NodePoolUpdateStrategy +{ + /** + * Default value if unset. GKE internally defaults the update strategy to + * SURGE for unspecified strategies. + * + * Generated from protobuf enum NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED = 0; + */ + const NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED = 0; + /** + * blue-green upgrade. + * + * Generated from protobuf enum BLUE_GREEN = 2; + */ + const BLUE_GREEN = 2; + /** + * SURGE is the traditional way of upgrade a node pool. + * max_surge and max_unavailable determines the level of upgrade parallelism. + * + * Generated from protobuf enum SURGE = 3; + */ + const SURGE = 3; + + private static $valueToName = [ + self::NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED => 'NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED', + self::BLUE_GREEN => 'BLUE_GREEN', + self::SURGE => 'SURGE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool_PlacementPolicy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool_PlacementPolicy.php new file mode 100644 index 000000000000..5b1484223c34 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool_PlacementPolicy.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.NodeTaints + */ +class NodeTaints extends \Google\Protobuf\Internal\Message +{ + /** + * List of node taints. + * + * Generated from protobuf field repeated .google.container.v1.NodeTaint taints = 1; + */ + private $taints; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\Container\V1\NodeTaint>|\Google\Protobuf\Internal\RepeatedField $taints + * List of node taints. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * List of node taints. + * + * Generated from protobuf field repeated .google.container.v1.NodeTaint taints = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTaints() + { + return $this->taints; + } + + /** + * List of node taints. + * + * Generated from protobuf field repeated .google.container.v1.NodeTaint taints = 1; + * @param array<\Google\Cloud\Container\V1\NodeTaint>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTaints($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\NodeTaint::class); + $this->taints = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig.php new file mode 100644 index 000000000000..e478d70b2638 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig.php @@ -0,0 +1,77 @@ +google.container.v1.NotificationConfig + */ +class NotificationConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Notification config for Pub/Sub. + * + * Generated from protobuf field .google.container.v1.NotificationConfig.PubSub pubsub = 1; + */ + protected $pubsub = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Container\V1\NotificationConfig\PubSub $pubsub + * Notification config for Pub/Sub. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Notification config for Pub/Sub. + * + * Generated from protobuf field .google.container.v1.NotificationConfig.PubSub pubsub = 1; + * @return \Google\Cloud\Container\V1\NotificationConfig\PubSub|null + */ + public function getPubsub() + { + return $this->pubsub; + } + + public function hasPubsub() + { + return isset($this->pubsub); + } + + public function clearPubsub() + { + unset($this->pubsub); + } + + /** + * Notification config for Pub/Sub. + * + * Generated from protobuf field .google.container.v1.NotificationConfig.PubSub pubsub = 1; + * @param \Google\Cloud\Container\V1\NotificationConfig\PubSub $var + * @return $this + */ + public function setPubsub($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NotificationConfig\PubSub::class); + $this->pubsub = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/EventType.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/EventType.php new file mode 100644 index 000000000000..7489b2c7e292 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/EventType.php @@ -0,0 +1,72 @@ +google.container.v1.NotificationConfig.EventType + */ +class EventType +{ + /** + * Not set, will be ignored. + * + * Generated from protobuf enum EVENT_TYPE_UNSPECIFIED = 0; + */ + const EVENT_TYPE_UNSPECIFIED = 0; + /** + * Corresponds with UpgradeAvailableEvent. + * + * Generated from protobuf enum UPGRADE_AVAILABLE_EVENT = 1; + */ + const UPGRADE_AVAILABLE_EVENT = 1; + /** + * Corresponds with UpgradeEvent. + * + * Generated from protobuf enum UPGRADE_EVENT = 2; + */ + const UPGRADE_EVENT = 2; + /** + * Corresponds with SecurityBulletinEvent. + * + * Generated from protobuf enum SECURITY_BULLETIN_EVENT = 3; + */ + const SECURITY_BULLETIN_EVENT = 3; + + private static $valueToName = [ + self::EVENT_TYPE_UNSPECIFIED => 'EVENT_TYPE_UNSPECIFIED', + self::UPGRADE_AVAILABLE_EVENT => 'UPGRADE_AVAILABLE_EVENT', + self::UPGRADE_EVENT => 'UPGRADE_EVENT', + self::SECURITY_BULLETIN_EVENT => 'SECURITY_BULLETIN_EVENT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(EventType::class, \Google\Cloud\Container\V1\NotificationConfig_EventType::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/Filter.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/Filter.php new file mode 100644 index 000000000000..cdeb11220ad9 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/Filter.php @@ -0,0 +1,73 @@ +google.container.v1.NotificationConfig.Filter + */ +class Filter extends \Google\Protobuf\Internal\Message +{ + /** + * Event types to allowlist. + * + * Generated from protobuf field repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + */ + private $event_type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $event_type + * Event types to allowlist. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Event types to allowlist. + * + * Generated from protobuf field repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEventType() + { + return $this->event_type; + } + + /** + * Event types to allowlist. + * + * Generated from protobuf field repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEventType($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Container\V1\NotificationConfig\EventType::class); + $this->event_type = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Filter::class, \Google\Cloud\Container\V1\NotificationConfig_Filter::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/PubSub.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/PubSub.php new file mode 100644 index 000000000000..21ded6c6c98a --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/PubSub.php @@ -0,0 +1,160 @@ +google.container.v1.NotificationConfig.PubSub + */ +class PubSub extends \Google\Protobuf\Internal\Message +{ + /** + * Enable notifications for Pub/Sub. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + /** + * The desired Pub/Sub topic to which notifications will be + * sent by GKE. Format is `projects/{project}/topics/{topic}`. + * + * Generated from protobuf field string topic = 2 [(.google.api.resource_reference) = { + */ + protected $topic = ''; + /** + * Allows filtering to one or more specific event types. If no filter is + * specified, or if a filter is specified with no event types, all event + * types will be sent + * + * Generated from protobuf field .google.container.v1.NotificationConfig.Filter filter = 3; + */ + protected $filter = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Enable notifications for Pub/Sub. + * @type string $topic + * The desired Pub/Sub topic to which notifications will be + * sent by GKE. Format is `projects/{project}/topics/{topic}`. + * @type \Google\Cloud\Container\V1\NotificationConfig\Filter $filter + * Allows filtering to one or more specific event types. If no filter is + * specified, or if a filter is specified with no event types, all event + * types will be sent + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Enable notifications for Pub/Sub. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Enable notifications for Pub/Sub. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + + /** + * The desired Pub/Sub topic to which notifications will be + * sent by GKE. Format is `projects/{project}/topics/{topic}`. + * + * Generated from protobuf field string topic = 2 [(.google.api.resource_reference) = { + * @return string + */ + public function getTopic() + { + return $this->topic; + } + + /** + * The desired Pub/Sub topic to which notifications will be + * sent by GKE. Format is `projects/{project}/topics/{topic}`. + * + * Generated from protobuf field string topic = 2 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setTopic($var) + { + GPBUtil::checkString($var, True); + $this->topic = $var; + + return $this; + } + + /** + * Allows filtering to one or more specific event types. If no filter is + * specified, or if a filter is specified with no event types, all event + * types will be sent + * + * Generated from protobuf field .google.container.v1.NotificationConfig.Filter filter = 3; + * @return \Google\Cloud\Container\V1\NotificationConfig\Filter|null + */ + public function getFilter() + { + return $this->filter; + } + + public function hasFilter() + { + return isset($this->filter); + } + + public function clearFilter() + { + unset($this->filter); + } + + /** + * Allows filtering to one or more specific event types. If no filter is + * specified, or if a filter is specified with no event types, all event + * types will be sent + * + * Generated from protobuf field .google.container.v1.NotificationConfig.Filter filter = 3; + * @param \Google\Cloud\Container\V1\NotificationConfig\Filter $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NotificationConfig\Filter::class); + $this->filter = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(PubSub::class, \Google\Cloud\Container\V1\NotificationConfig_PubSub::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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 array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $cluster_conditions + * Which conditions caused the current cluster state. + * Deprecated. Use field error instead. + * @type array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $nodepool_conditions + * Which conditions caused the current node pool state. + * Deprecated. Use field error instead. + * @type \Google\Rpc\Status $error + * The error result of the operation in case of failure. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The server-assigned ID for the operation. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The server-assigned ID for the operation. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * operation is taking place. This field is deprecated, use location instead. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * operation is taking place. This field is deprecated, use location instead. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * The operation type. + * + * Generated from protobuf field .google.container.v1.Operation.Type operation_type = 3; + * @return int + */ + public function getOperationType() + { + return $this->operation_type; + } + + /** + * The operation type. + * + * Generated from protobuf field .google.container.v1.Operation.Type operation_type = 3; + * @param int $var + * @return $this + */ + public function setOperationType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\Operation\Type::class); + $this->operation_type = $var; + + return $this; + } + + /** + * The current status of the operation. + * + * Generated from protobuf field .google.container.v1.Operation.Status status = 4; + * @return int + */ + public function getStatus() + { + return $this->status; + } + + /** + * The current status of the operation. + * + * Generated from protobuf field .google.container.v1.Operation.Status status = 4; + * @param int $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\Operation\Status::class); + $this->status = $var; + + return $this; + } + + /** + * Detailed operation progress, if available. + * + * Generated from protobuf field string detail = 8; + * @return string + */ + public function getDetail() + { + return $this->detail; + } + + /** + * Detailed operation progress, if available. + * + * Generated from protobuf field string detail = 8; + * @param string $var + * @return $this + */ + public function setDetail($var) + { + GPBUtil::checkString($var, True); + $this->detail = $var; + + return $this; + } + + /** + * Output only. If an error has occurred, a textual description of the error. + * Deprecated. Use the field error instead. + * + * Generated from protobuf field string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + * @deprecated + */ + public function getStatusMessage() + { + @trigger_error('status_message is deprecated.', E_USER_DEPRECATED); + return $this->status_message; + } + + /** + * Output only. If an error has occurred, a textual description of the error. + * Deprecated. Use the field error instead. + * + * Generated from protobuf field string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + * @deprecated + */ + public function setStatusMessage($var) + { + @trigger_error('status_message is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->status_message = $var; + + return $this; + } + + /** + * Server-defined 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 array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + * @deprecated + */ + public function setClusterConditions($var) + { + @trigger_error('cluster_conditions is deprecated.', E_USER_DEPRECATED); + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\StatusCondition::class); + $this->cluster_conditions = $arr; + + return $this; + } + + /** + * Which conditions caused the current node pool state. + * Deprecated. Use field error instead. + * + * Generated from protobuf field repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * @return \Google\Protobuf\Internal\RepeatedField + * @deprecated + */ + public function getNodepoolConditions() + { + @trigger_error('nodepool_conditions is deprecated.', E_USER_DEPRECATED); + return $this->nodepool_conditions; + } + + /** + * Which conditions caused the current node pool state. + * Deprecated. Use field error instead. + * + * Generated from protobuf field repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * @param array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + * @deprecated + */ + public function setNodepoolConditions($var) + { + @trigger_error('nodepool_conditions is deprecated.', E_USER_DEPRECATED); + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\StatusCondition::class); + $this->nodepool_conditions = $arr; + + return $this; + } + + /** + * The error result of the operation in case of failure. + * + * Generated from protobuf field .google.rpc.Status error = 15; + * @return \Google\Rpc\Status|null + */ + public function getError() + { + return $this->error; + } + + public function hasError() + { + return isset($this->error); + } + + public function clearError() + { + unset($this->error); + } + + /** + * The error result of the operation in case of failure. + * + * Generated from protobuf field .google.rpc.Status error = 15; + * @param \Google\Rpc\Status $var + * @return $this + */ + public function setError($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Status::class); + $this->error = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation/Status.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation/Status.php new file mode 100644 index 000000000000..49c8585d1851 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation/Status.php @@ -0,0 +1,78 @@ +google.container.v1.Operation.Status + */ +class Status +{ + /** + * Not set. + * + * Generated from protobuf enum STATUS_UNSPECIFIED = 0; + */ + const STATUS_UNSPECIFIED = 0; + /** + * The operation has been created. + * + * Generated from protobuf enum PENDING = 1; + */ + const PENDING = 1; + /** + * The operation is currently running. + * + * Generated from protobuf enum RUNNING = 2; + */ + const RUNNING = 2; + /** + * The operation is done, either cancelled or completed. + * + * Generated from protobuf enum DONE = 3; + */ + const DONE = 3; + /** + * The operation is aborting. + * + * Generated from protobuf enum ABORTING = 4; + */ + const ABORTING = 4; + + private static $valueToName = [ + self::STATUS_UNSPECIFIED => 'STATUS_UNSPECIFIED', + self::PENDING => 'PENDING', + self::RUNNING => 'RUNNING', + self::DONE => 'DONE', + self::ABORTING => 'ABORTING', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Status::class, \Google\Cloud\Container\V1\Operation_Status::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation/Type.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation/Type.php new file mode 100644 index 000000000000..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..533975905024 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/OperationProgress.php @@ -0,0 +1,197 @@ +google.container.v1.OperationProgress + */ +class OperationProgress extends \Google\Protobuf\Internal\Message +{ + /** + * A non-parameterized string describing an operation stage. + * Unset for single-stage operations. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Status of an operation stage. + * Unset for single-stage operations. + * + * Generated from protobuf field .google.container.v1.Operation.Status status = 2; + */ + protected $status = 0; + /** + * Progress metric bundle, for example: + * metrics: [{name: "nodes done", int_value: 15}, + * {name: "nodes total", int_value: 32}] + * or + * metrics: [{name: "progress", double_value: 0.56}, + * {name: "progress scale", double_value: 1.0}] + * + * Generated from protobuf field repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + private $metrics; + /** + * Substages of an operation or a stage. + * + * Generated from protobuf field repeated .google.container.v1.OperationProgress stages = 4; + */ + private $stages; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * A non-parameterized string describing an operation stage. + * Unset for single-stage operations. + * @type int $status + * Status of an operation stage. + * Unset for single-stage operations. + * @type array<\Google\Cloud\Container\V1\OperationProgress\Metric>|\Google\Protobuf\Internal\RepeatedField $metrics + * Progress metric bundle, for example: + * metrics: [{name: "nodes done", int_value: 15}, + * {name: "nodes total", int_value: 32}] + * or + * metrics: [{name: "progress", double_value: 0.56}, + * {name: "progress scale", double_value: 1.0}] + * @type array<\Google\Cloud\Container\V1\OperationProgress>|\Google\Protobuf\Internal\RepeatedField $stages + * Substages of an operation or a stage. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * A non-parameterized string describing an operation stage. + * Unset for single-stage operations. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * A non-parameterized string describing an operation stage. + * Unset for single-stage operations. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Status of an operation stage. + * Unset for single-stage operations. + * + * Generated from protobuf field .google.container.v1.Operation.Status status = 2; + * @return int + */ + public function getStatus() + { + return $this->status; + } + + /** + * Status of an operation stage. + * Unset for single-stage operations. + * + * Generated from protobuf field .google.container.v1.Operation.Status status = 2; + * @param int $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\Operation\Status::class); + $this->status = $var; + + return $this; + } + + /** + * Progress metric bundle, for example: + * metrics: [{name: "nodes done", int_value: 15}, + * {name: "nodes total", int_value: 32}] + * or + * metrics: [{name: "progress", double_value: 0.56}, + * {name: "progress scale", double_value: 1.0}] + * + * Generated from protobuf field repeated .google.container.v1.OperationProgress.Metric metrics = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMetrics() + { + return $this->metrics; + } + + /** + * Progress metric bundle, for example: + * metrics: [{name: "nodes done", int_value: 15}, + * {name: "nodes total", int_value: 32}] + * or + * metrics: [{name: "progress", double_value: 0.56}, + * {name: "progress scale", double_value: 1.0}] + * + * Generated from protobuf field repeated .google.container.v1.OperationProgress.Metric metrics = 3; + * @param array<\Google\Cloud\Container\V1\OperationProgress\Metric>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMetrics($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\OperationProgress\Metric::class); + $this->metrics = $arr; + + return $this; + } + + /** + * Substages of an operation or a stage. + * + * Generated from protobuf field repeated .google.container.v1.OperationProgress stages = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getStages() + { + return $this->stages; + } + + /** + * Substages of an operation or a stage. + * + * Generated from protobuf field repeated .google.container.v1.OperationProgress stages = 4; + * @param array<\Google\Cloud\Container\V1\OperationProgress>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setStages($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\OperationProgress::class); + $this->stages = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/OperationProgress/Metric.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/OperationProgress/Metric.php new file mode 100644 index 000000000000..6c134eae0fd1 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/OperationProgress/Metric.php @@ -0,0 +1,178 @@ +google.container.v1.OperationProgress.Metric + */ +class Metric extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Metric name, e.g., "nodes total", "percent done". + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + protected $value; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Metric name, e.g., "nodes total", "percent done". + * @type int|string $int_value + * For metrics with integer value. + * @type float $double_value + * For metrics with floating point value. + * @type string $string_value + * For metrics with custom values (ratios, visual progress, etc.). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Metric name, e.g., "nodes total", "percent done". + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Metric name, e.g., "nodes total", "percent done". + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * For metrics with integer value. + * + * Generated from protobuf field int64 int_value = 2; + * @return int|string + */ + public function getIntValue() + { + return $this->readOneof(2); + } + + public function hasIntValue() + { + return $this->hasOneof(2); + } + + /** + * For metrics with integer value. + * + * Generated from protobuf field int64 int_value = 2; + * @param int|string $var + * @return $this + */ + public function setIntValue($var) + { + GPBUtil::checkInt64($var); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * For metrics with floating point value. + * + * Generated from protobuf field double double_value = 3; + * @return float + */ + public function getDoubleValue() + { + return $this->readOneof(3); + } + + public function hasDoubleValue() + { + return $this->hasOneof(3); + } + + /** + * For metrics with floating point value. + * + * Generated from protobuf field double double_value = 3; + * @param float $var + * @return $this + */ + public function setDoubleValue($var) + { + GPBUtil::checkDouble($var); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * For metrics with custom values (ratios, visual progress, etc.). + * + * Generated from protobuf field string string_value = 4; + * @return string + */ + public function getStringValue() + { + return $this->readOneof(4); + } + + public function hasStringValue() + { + return $this->hasOneof(4); + } + + /** + * For metrics with custom values (ratios, visual progress, etc.). + * + * Generated from protobuf field string string_value = 4; + * @param string $var + * @return $this + */ + public function setStringValue($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * @return string + */ + public function getValue() + { + return $this->whichOneof("value"); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Metric::class, \Google\Cloud\Container\V1\OperationProgress_Metric::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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; + /** + * Subnet to provision the master's private endpoint during cluster creation. + * Specified in projects/*/regions/*/subnetworks/* format. + * + * Generated from protobuf field string private_endpoint_subnetwork = 10; + */ + protected $private_endpoint_subnetwork = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enable_private_nodes + * Whether nodes have internal IP addresses only. If enabled, all nodes are + * given only RFC 1918 private addresses and communicate with the master via + * private networking. + * @type bool $enable_private_endpoint + * Whether the master's internal IP address is used as the cluster endpoint. + * @type string $master_ipv4_cidr_block + * The IP range in CIDR notation to use for the hosted master network. This + * range will be used for assigning internal IP addresses to the master or + * set of masters, as well as the ILB VIP. This range must not overlap with + * any other ranges in use within the cluster's network. + * @type string $private_endpoint + * Output only. The internal IP address of this cluster's master endpoint. + * @type string $public_endpoint + * Output only. The external IP address of this cluster's master endpoint. + * @type string $peering_name + * Output only. The peering name in the customer VPC used by this cluster. + * @type \Google\Cloud\Container\V1\PrivateClusterMasterGlobalAccessConfig $master_global_access_config + * Controls master global access settings. + * @type string $private_endpoint_subnetwork + * Subnet to provision the master's private endpoint during cluster creation. + * Specified in projects/*/regions/*/subnetworks/* format. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether nodes have internal IP addresses only. If enabled, all nodes are + * given only RFC 1918 private addresses and communicate with the master via + * private networking. + * + * Generated from protobuf field bool enable_private_nodes = 1; + * @return bool + */ + public function getEnablePrivateNodes() + { + return $this->enable_private_nodes; + } + + /** + * Whether nodes have internal IP addresses only. If enabled, all nodes are + * given only RFC 1918 private addresses and communicate with the master via + * private networking. + * + * Generated from protobuf field bool enable_private_nodes = 1; + * @param bool $var + * @return $this + */ + public function setEnablePrivateNodes($var) + { + GPBUtil::checkBool($var); + $this->enable_private_nodes = $var; + + return $this; + } + + /** + * Whether the master's internal IP address is used as the cluster endpoint. + * + * Generated from protobuf field bool enable_private_endpoint = 2; + * @return bool + */ + public function getEnablePrivateEndpoint() + { + return $this->enable_private_endpoint; + } + + /** + * Whether the master's internal IP address is used as the cluster endpoint. + * + * Generated from protobuf field bool enable_private_endpoint = 2; + * @param bool $var + * @return $this + */ + public function setEnablePrivateEndpoint($var) + { + GPBUtil::checkBool($var); + $this->enable_private_endpoint = $var; + + return $this; + } + + /** + * The IP range in CIDR notation to use for the hosted master network. This + * range will be used for assigning internal IP addresses to the master or + * set of masters, as well as the ILB VIP. This range must not overlap with + * any other ranges in use within the cluster's network. + * + * Generated from protobuf field string master_ipv4_cidr_block = 3; + * @return string + */ + public function getMasterIpv4CidrBlock() + { + return $this->master_ipv4_cidr_block; + } + + /** + * The IP range in CIDR notation to use for the hosted master network. This + * range will be used for assigning internal IP addresses to the master or + * set of masters, as well as the ILB VIP. This range must not overlap with + * any other ranges in use within the cluster's network. + * + * Generated from protobuf field string master_ipv4_cidr_block = 3; + * @param string $var + * @return $this + */ + public function setMasterIpv4CidrBlock($var) + { + GPBUtil::checkString($var, True); + $this->master_ipv4_cidr_block = $var; + + return $this; + } + + /** + * Output only. The internal IP address of this cluster's master endpoint. + * + * Generated from protobuf field string private_endpoint = 4; + * @return string + */ + public function getPrivateEndpoint() + { + return $this->private_endpoint; + } + + /** + * Output only. The internal IP address of this cluster's master endpoint. + * + * Generated from protobuf field string private_endpoint = 4; + * @param string $var + * @return $this + */ + public function setPrivateEndpoint($var) + { + GPBUtil::checkString($var, True); + $this->private_endpoint = $var; + + return $this; + } + + /** + * Output only. The external IP address of this cluster's master endpoint. + * + * Generated from protobuf field string public_endpoint = 5; + * @return string + */ + public function getPublicEndpoint() + { + return $this->public_endpoint; + } + + /** + * Output only. The external IP address of this cluster's master endpoint. + * + * Generated from protobuf field string public_endpoint = 5; + * @param string $var + * @return $this + */ + public function setPublicEndpoint($var) + { + GPBUtil::checkString($var, True); + $this->public_endpoint = $var; + + return $this; + } + + /** + * Output only. The peering name in the customer VPC used by this cluster. + * + * Generated from protobuf field string peering_name = 7; + * @return string + */ + public function getPeeringName() + { + return $this->peering_name; + } + + /** + * Output only. The peering name in the customer VPC used by this cluster. + * + * Generated from protobuf field string peering_name = 7; + * @param string $var + * @return $this + */ + public function setPeeringName($var) + { + GPBUtil::checkString($var, True); + $this->peering_name = $var; + + return $this; + } + + /** + * Controls master global access settings. + * + * Generated from protobuf field .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * @return \Google\Cloud\Container\V1\PrivateClusterMasterGlobalAccessConfig|null + */ + public function getMasterGlobalAccessConfig() + { + return $this->master_global_access_config; + } + + public function hasMasterGlobalAccessConfig() + { + return isset($this->master_global_access_config); + } + + public function clearMasterGlobalAccessConfig() + { + unset($this->master_global_access_config); + } + + /** + * Controls master global access settings. + * + * Generated from protobuf field .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * @param \Google\Cloud\Container\V1\PrivateClusterMasterGlobalAccessConfig $var + * @return $this + */ + public function setMasterGlobalAccessConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\PrivateClusterMasterGlobalAccessConfig::class); + $this->master_global_access_config = $var; + + return $this; + } + + /** + * Subnet to provision the master's private endpoint during cluster creation. + * Specified in projects/*/regions/*/subnetworks/* format. + * + * Generated from protobuf field string private_endpoint_subnetwork = 10; + * @return string + */ + public function getPrivateEndpointSubnetwork() + { + return $this->private_endpoint_subnetwork; + } + + /** + * Subnet to provision the master's private endpoint during cluster creation. + * Specified in projects/*/regions/*/subnetworks/* format. + * + * Generated from protobuf field string private_endpoint_subnetwork = 10; + * @param string $var + * @return $this + */ + public function setPrivateEndpointSubnetwork($var) + { + GPBUtil::checkString($var, True); + $this->private_endpoint_subnetwork = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateClusterMasterGlobalAccessConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateClusterMasterGlobalAccessConfig.php new file mode 100644 index 000000000000..0bfb60386807 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateClusterMasterGlobalAccessConfig.php @@ -0,0 +1,67 @@ +google.container.v1.PrivateClusterMasterGlobalAccessConfig + */ +class PrivateClusterMasterGlobalAccessConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Whenever master is accessible globally or not. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Whenever master is accessible globally or not. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whenever master is accessible globally or not. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Whenever master is accessible globally or not. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateIPv6GoogleAccess.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateIPv6GoogleAccess.php new file mode 100644 index 000000000000..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 + * "compute.googleapis.com/reservation-name" as the key and specify the name + * of your reservation as its value. + * + * Generated from protobuf field string key = 2; + */ + protected $key = ''; + /** + * Corresponds to the label value(s) of reservation resource(s). + * + * Generated from protobuf field repeated string values = 3; + */ + private $values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $consume_reservation_type + * Corresponds to the type of reservation consumption. + * @type string $key + * Corresponds to the label key of a reservation resource. To target a + * SPECIFIC_RESERVATION by name, specify + * "compute.googleapis.com/reservation-name" as the key and specify the name + * of your reservation as its value. + * @type array|\Google\Protobuf\Internal\RepeatedField $values + * Corresponds to the label value(s) of reservation resource(s). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Corresponds to the type of reservation consumption. + * + * Generated from protobuf field .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; + * @return int + */ + public function getConsumeReservationType() + { + return $this->consume_reservation_type; + } + + /** + * Corresponds to the type of reservation consumption. + * + * Generated from protobuf field .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; + * @param int $var + * @return $this + */ + public function setConsumeReservationType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\ReservationAffinity\Type::class); + $this->consume_reservation_type = $var; + + return $this; + } + + /** + * Corresponds to the label key of a reservation resource. To target a + * SPECIFIC_RESERVATION by name, specify + * "compute.googleapis.com/reservation-name" as the key and specify the name + * of your reservation as its value. + * + * Generated from protobuf field string key = 2; + * @return string + */ + public function getKey() + { + return $this->key; + } + + /** + * Corresponds to the label key of a reservation resource. To target a + * SPECIFIC_RESERVATION by name, specify + * "compute.googleapis.com/reservation-name" as the key and specify the name + * of your reservation as its value. + * + * Generated from protobuf field string key = 2; + * @param string $var + * @return $this + */ + public function setKey($var) + { + GPBUtil::checkString($var, True); + $this->key = $var; + + return $this; + } + + /** + * Corresponds to the label value(s) of reservation resource(s). + * + * Generated from protobuf field repeated string values = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getValues() + { + return $this->values; + } + + /** + * Corresponds to the label value(s) of reservation resource(s). + * + * Generated from protobuf field repeated string values = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->values = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReservationAffinity/Type.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReservationAffinity/Type.php new file mode 100644 index 000000000000..3c29ed5934e3 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReservationAffinity/Type.php @@ -0,0 +1,72 @@ +google.container.v1.ReservationAffinity.Type + */ +class Type +{ + /** + * Default value. This should not be used. + * + * Generated from protobuf enum UNSPECIFIED = 0; + */ + const UNSPECIFIED = 0; + /** + * Do not consume from any reserved capacity. + * + * Generated from protobuf enum NO_RESERVATION = 1; + */ + const NO_RESERVATION = 1; + /** + * Consume any reservation available. + * + * Generated from protobuf enum ANY_RESERVATION = 2; + */ + const ANY_RESERVATION = 2; + /** + * Must consume from a specific reservation. Must specify key value fields + * for specifying the reservations. + * + * Generated from protobuf enum SPECIFIC_RESERVATION = 3; + */ + const SPECIFIC_RESERVATION = 3; + + private static $valueToName = [ + self::UNSPECIFIED => 'UNSPECIFIED', + self::NO_RESERVATION => 'NO_RESERVATION', + self::ANY_RESERVATION => 'ANY_RESERVATION', + self::SPECIFIC_RESERVATION => 'SPECIFIC_RESERVATION', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Type::class, \Google\Cloud\Container\V1\ReservationAffinity_Type::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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.ResourceLabels + */ +class ResourceLabels extends \Google\Protobuf\Internal\Message +{ + /** + * Map of node label keys and node label values. + * + * Generated from protobuf field map labels = 1; + */ + private $labels; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\MapField $labels + * Map of node label keys and node label values. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Map of node label keys and node label values. + * + * Generated from protobuf field map labels = 1; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Map of node label keys and node label values. + * + * Generated from protobuf field map labels = 1; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceLimit.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceLimit.php new file mode 100644 index 000000000000..9b37f1e58826 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceLimit.php @@ -0,0 +1,136 @@ +google.container.v1.ResourceLimit + */ +class ResourceLimit extends \Google\Protobuf\Internal\Message +{ + /** + * Resource name "cpu", "memory" or gpu-specific string. + * + * Generated from protobuf field string resource_type = 1; + */ + protected $resource_type = ''; + /** + * Minimum amount of the resource in the cluster. + * + * Generated from protobuf field int64 minimum = 2; + */ + protected $minimum = 0; + /** + * Maximum amount of the resource in the cluster. + * + * Generated from protobuf field int64 maximum = 3; + */ + protected $maximum = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $resource_type + * Resource name "cpu", "memory" or gpu-specific string. + * @type int|string $minimum + * Minimum amount of the resource in the cluster. + * @type int|string $maximum + * Maximum amount of the resource in the cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Resource name "cpu", "memory" or gpu-specific string. + * + * Generated from protobuf field string resource_type = 1; + * @return string + */ + public function getResourceType() + { + return $this->resource_type; + } + + /** + * Resource name "cpu", "memory" or gpu-specific string. + * + * Generated from protobuf field string resource_type = 1; + * @param string $var + * @return $this + */ + public function setResourceType($var) + { + GPBUtil::checkString($var, True); + $this->resource_type = $var; + + return $this; + } + + /** + * Minimum amount of the resource in the cluster. + * + * Generated from protobuf field int64 minimum = 2; + * @return int|string + */ + public function getMinimum() + { + return $this->minimum; + } + + /** + * Minimum amount of the resource in the cluster. + * + * Generated from protobuf field int64 minimum = 2; + * @param int|string $var + * @return $this + */ + public function setMinimum($var) + { + GPBUtil::checkInt64($var); + $this->minimum = $var; + + return $this; + } + + /** + * Maximum amount of the resource in the cluster. + * + * Generated from protobuf field int64 maximum = 3; + * @return int|string + */ + public function getMaximum() + { + return $this->maximum; + } + + /** + * Maximum amount of the resource in the cluster. + * + * Generated from protobuf field int64 maximum = 3; + * @param int|string $var + * @return $this + */ + public function setMaximum($var) + { + GPBUtil::checkInt64($var); + $this->maximum = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster to rollback. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * Deprecated. The name of the node pool to rollback. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @deprecated + */ + protected $node_pool_id = ''; + /** + * The name (project, location, cluster, node pool id) of the node poll to + * rollback upgrade. + * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 6; + */ + protected $name = ''; + /** + * Option for rollback to ignore the PodDisruptionBudget. + * Default value is false. + * + * Generated from protobuf field bool respect_pdb = 7; + */ + protected $respect_pdb = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster to rollback. + * This field has been deprecated and replaced by the name field. + * @type string $node_pool_id + * Deprecated. The name of the node pool to rollback. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster, node pool id) of the node poll to + * rollback upgrade. + * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. + * @type bool $respect_pdb + * Option for rollback to ignore the PodDisruptionBudget. + * Default value is false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster to rollback. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster to rollback. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the node pool to rollback. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @return string + * @deprecated + */ + public function getNodePoolId() + { + @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); + return $this->node_pool_id; + } + + /** + * Deprecated. The name of the node pool to rollback. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setNodePoolId($var) + { + @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->node_pool_id = $var; + + return $this; + } + + /** + * The name (project, location, cluster, node pool id) of the node poll to + * rollback upgrade. + * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 6; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster, node pool id) of the node poll to + * rollback upgrade. + * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 6; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Option for rollback to ignore the PodDisruptionBudget. + * Default value is false. + * + * Generated from protobuf field bool respect_pdb = 7; + * @return bool + */ + public function getRespectPdb() + { + return $this->respect_pdb; + } + + /** + * Option for rollback to ignore the PodDisruptionBudget. + * Default value is false. + * + * Generated from protobuf field bool respect_pdb = 7; + * @param bool $var + * @return $this + */ + public function setRespectPdb($var) + { + GPBUtil::checkBool($var); + $this->respect_pdb = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig.php new file mode 100644 index 000000000000..edad92dc8d78 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig.php @@ -0,0 +1,67 @@ +google.container.v1.SandboxConfig + */ +class SandboxConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Type of the sandbox to use for the node. + * + * Generated from protobuf field .google.container.v1.SandboxConfig.Type type = 2; + */ + protected $type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $type + * Type of the sandbox to use for the node. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Type of the sandbox to use for the node. + * + * Generated from protobuf field .google.container.v1.SandboxConfig.Type type = 2; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Type of the sandbox to use for the node. + * + * Generated from protobuf field .google.container.v1.SandboxConfig.Type type = 2; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\SandboxConfig\Type::class); + $this->type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig/Type.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig/Type.php new file mode 100644 index 000000000000..824af0ee6238 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig/Type.php @@ -0,0 +1,57 @@ +google.container.v1.SandboxConfig.Type + */ +class Type +{ + /** + * Default value. This should not be used. + * + * Generated from protobuf enum UNSPECIFIED = 0; + */ + const UNSPECIFIED = 0; + /** + * Run sandbox using gvisor. + * + * Generated from protobuf enum GVISOR = 1; + */ + const GVISOR = 1; + + private static $valueToName = [ + self::UNSPECIFIED => 'UNSPECIFIED', + self::GVISOR => 'GVISOR', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Type::class, \Google\Cloud\Container\V1\SandboxConfig_Type::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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 array|\Google\Protobuf\Internal\RepeatedField $cve_ids + * The CVEs associated with this bulletin. + * @type string $severity + * The severity of this bulletin as it relates to GKE. + * @type string $bulletin_uri + * The URI link to the bulletin on the website for more information. + * @type string $brief_description + * A brief description of the bulletin. See the bulletin pointed to by the + * bulletin_uri field for an expanded description. + * @type array|\Google\Protobuf\Internal\RepeatedField $affected_supported_minors + * The GKE minor versions affected by this vulnerability. + * @type array|\Google\Protobuf\Internal\RepeatedField $patched_versions + * The GKE versions where this vulnerability is patched. + * @type string $suggested_upgrade_target + * This represents a version selected from the patched_versions field that + * the cluster receiving this notification should most likely want to upgrade + * to based on its current version. Note that if this notification is being + * received by a given cluster, it means that this version is currently + * available as an upgrade target in that cluster's location. + * @type bool $manual_steps_required + * If this field is specified, it means there are manual steps that the user + * must take to make their clusters safe. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The resource type (node/control plane) that has the vulnerability. Multiple + * notifications (1 notification per resource type) will be sent for a + * vulnerability that affects > 1 resource type. + * + * Generated from protobuf field string resource_type_affected = 1; + * @return string + */ + public function getResourceTypeAffected() + { + return $this->resource_type_affected; + } + + /** + * The resource type (node/control plane) that has the vulnerability. Multiple + * notifications (1 notification per resource type) will be sent for a + * vulnerability that affects > 1 resource type. + * + * Generated from protobuf field string resource_type_affected = 1; + * @param string $var + * @return $this + */ + public function setResourceTypeAffected($var) + { + GPBUtil::checkString($var, True); + $this->resource_type_affected = $var; + + return $this; + } + + /** + * The ID of the bulletin corresponding to the vulnerability. + * + * Generated from protobuf field string bulletin_id = 2; + * @return string + */ + public function getBulletinId() + { + return $this->bulletin_id; + } + + /** + * The ID of the bulletin corresponding to the vulnerability. + * + * Generated from protobuf field string bulletin_id = 2; + * @param string $var + * @return $this + */ + public function setBulletinId($var) + { + GPBUtil::checkString($var, True); + $this->bulletin_id = $var; + + return $this; + } + + /** + * The CVEs associated with this bulletin. + * + * Generated from protobuf field repeated string cve_ids = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCveIds() + { + return $this->cve_ids; + } + + /** + * The CVEs associated with this bulletin. + * + * Generated from protobuf field repeated string cve_ids = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCveIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->cve_ids = $arr; + + return $this; + } + + /** + * The severity of this bulletin as it relates to GKE. + * + * Generated from protobuf field string severity = 4; + * @return string + */ + public function getSeverity() + { + return $this->severity; + } + + /** + * The severity of this bulletin as it relates to GKE. + * + * Generated from protobuf field string severity = 4; + * @param string $var + * @return $this + */ + public function setSeverity($var) + { + GPBUtil::checkString($var, True); + $this->severity = $var; + + return $this; + } + + /** + * The URI link to the bulletin on the website for more information. + * + * Generated from protobuf field string bulletin_uri = 5; + * @return string + */ + public function getBulletinUri() + { + return $this->bulletin_uri; + } + + /** + * The URI link to the bulletin on the website for more information. + * + * Generated from protobuf field string bulletin_uri = 5; + * @param string $var + * @return $this + */ + public function setBulletinUri($var) + { + GPBUtil::checkString($var, True); + $this->bulletin_uri = $var; + + return $this; + } + + /** + * A brief description of the bulletin. See the bulletin pointed to by the + * bulletin_uri field for an expanded description. + * + * Generated from protobuf field string brief_description = 6; + * @return string + */ + public function getBriefDescription() + { + return $this->brief_description; + } + + /** + * A brief description of the bulletin. See the bulletin pointed to by the + * bulletin_uri field for an expanded description. + * + * Generated from protobuf field string brief_description = 6; + * @param string $var + * @return $this + */ + public function setBriefDescription($var) + { + GPBUtil::checkString($var, True); + $this->brief_description = $var; + + return $this; + } + + /** + * The GKE minor versions affected by this vulnerability. + * + * Generated from protobuf field repeated string affected_supported_minors = 7; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAffectedSupportedMinors() + { + return $this->affected_supported_minors; + } + + /** + * The GKE minor versions affected by this vulnerability. + * + * Generated from protobuf field repeated string affected_supported_minors = 7; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAffectedSupportedMinors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->affected_supported_minors = $arr; + + return $this; + } + + /** + * The GKE versions where this vulnerability is patched. + * + * Generated from protobuf field repeated string patched_versions = 8; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPatchedVersions() + { + return $this->patched_versions; + } + + /** + * The GKE versions where this vulnerability is patched. + * + * Generated from protobuf field repeated string patched_versions = 8; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPatchedVersions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->patched_versions = $arr; + + return $this; + } + + /** + * This represents a version selected from the patched_versions field that + * the cluster receiving this notification should most likely want to upgrade + * to based on its current version. Note that if this notification is being + * received by a given cluster, it means that this version is currently + * available as an upgrade target in that cluster's location. + * + * Generated from protobuf field string suggested_upgrade_target = 9; + * @return string + */ + public function getSuggestedUpgradeTarget() + { + return $this->suggested_upgrade_target; + } + + /** + * This represents a version selected from the patched_versions field that + * the cluster receiving this notification should most likely want to upgrade + * to based on its current version. Note that if this notification is being + * received by a given cluster, it means that this version is currently + * available as an upgrade target in that cluster's location. + * + * Generated from protobuf field string suggested_upgrade_target = 9; + * @param string $var + * @return $this + */ + public function setSuggestedUpgradeTarget($var) + { + GPBUtil::checkString($var, True); + $this->suggested_upgrade_target = $var; + + return $this; + } + + /** + * If this field is specified, it means there are manual steps that the user + * must take to make their clusters safe. + * + * Generated from protobuf field bool manual_steps_required = 10; + * @return bool + */ + public function getManualStepsRequired() + { + return $this->manual_steps_required; + } + + /** + * If this field is specified, it means there are manual steps that the user + * must take to make their clusters safe. + * + * Generated from protobuf field bool manual_steps_required = 10; + * @param bool $var + * @return $this + */ + public function setManualStepsRequired($var) + { + GPBUtil::checkBool($var); + $this->manual_steps_required = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig.php new file mode 100644 index 000000000000..939a53c55648 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig.php @@ -0,0 +1,237 @@ +google.container.v1.ServerConfig + */ +class ServerConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Version of Kubernetes the service deploys by default. + * + * Generated from protobuf field string default_cluster_version = 1; + */ + protected $default_cluster_version = ''; + /** + * List of valid node upgrade target versions, in descending order. + * + * Generated from protobuf field repeated string valid_node_versions = 3; + */ + private $valid_node_versions; + /** + * Default image type. + * + * Generated from protobuf field string default_image_type = 4; + */ + protected $default_image_type = ''; + /** + * List of valid image types. + * + * Generated from protobuf field repeated string valid_image_types = 5; + */ + private $valid_image_types; + /** + * List of valid master versions, in descending order. + * + * Generated from protobuf field repeated string valid_master_versions = 6; + */ + private $valid_master_versions; + /** + * List of release channel configurations. + * + * Generated from protobuf field repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + private $channels; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $default_cluster_version + * Version of Kubernetes the service deploys by default. + * @type array|\Google\Protobuf\Internal\RepeatedField $valid_node_versions + * List of valid node upgrade target versions, in descending order. + * @type string $default_image_type + * Default image type. + * @type array|\Google\Protobuf\Internal\RepeatedField $valid_image_types + * List of valid image types. + * @type array|\Google\Protobuf\Internal\RepeatedField $valid_master_versions + * List of valid master versions, in descending order. + * @type array<\Google\Cloud\Container\V1\ServerConfig\ReleaseChannelConfig>|\Google\Protobuf\Internal\RepeatedField $channels + * List of release channel configurations. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Version of Kubernetes the service deploys by default. + * + * Generated from protobuf field string default_cluster_version = 1; + * @return string + */ + public function getDefaultClusterVersion() + { + return $this->default_cluster_version; + } + + /** + * Version of Kubernetes the service deploys by default. + * + * Generated from protobuf field string default_cluster_version = 1; + * @param string $var + * @return $this + */ + public function setDefaultClusterVersion($var) + { + GPBUtil::checkString($var, True); + $this->default_cluster_version = $var; + + return $this; + } + + /** + * List of valid node upgrade target versions, in descending order. + * + * Generated from protobuf field repeated string valid_node_versions = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getValidNodeVersions() + { + return $this->valid_node_versions; + } + + /** + * List of valid node upgrade target versions, in descending order. + * + * Generated from protobuf field repeated string valid_node_versions = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setValidNodeVersions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->valid_node_versions = $arr; + + return $this; + } + + /** + * Default image type. + * + * Generated from protobuf field string default_image_type = 4; + * @return string + */ + public function getDefaultImageType() + { + return $this->default_image_type; + } + + /** + * Default image type. + * + * Generated from protobuf field string default_image_type = 4; + * @param string $var + * @return $this + */ + public function setDefaultImageType($var) + { + GPBUtil::checkString($var, True); + $this->default_image_type = $var; + + return $this; + } + + /** + * List of valid image types. + * + * Generated from protobuf field repeated string valid_image_types = 5; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getValidImageTypes() + { + return $this->valid_image_types; + } + + /** + * List of valid image types. + * + * Generated from protobuf field repeated string valid_image_types = 5; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setValidImageTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->valid_image_types = $arr; + + return $this; + } + + /** + * List of valid master versions, in descending order. + * + * Generated from protobuf field repeated string valid_master_versions = 6; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getValidMasterVersions() + { + return $this->valid_master_versions; + } + + /** + * List of valid master versions, in descending order. + * + * Generated from protobuf field repeated string valid_master_versions = 6; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setValidMasterVersions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->valid_master_versions = $arr; + + return $this; + } + + /** + * List of release channel configurations. + * + * Generated from protobuf field repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getChannels() + { + return $this->channels; + } + + /** + * List of release channel configurations. + * + * Generated from protobuf field repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + * @param array<\Google\Cloud\Container\V1\ServerConfig\ReleaseChannelConfig>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setChannels($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\ServerConfig\ReleaseChannelConfig::class); + $this->channels = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig/ReleaseChannelConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig/ReleaseChannelConfig.php new file mode 100644 index 000000000000..e363702da1e6 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig/ReleaseChannelConfig.php @@ -0,0 +1,138 @@ +google.container.v1.ServerConfig.ReleaseChannelConfig + */ +class ReleaseChannelConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The release channel this configuration applies to. + * + * Generated from protobuf field .google.container.v1.ReleaseChannel.Channel channel = 1; + */ + protected $channel = 0; + /** + * The default version for newly created clusters on the channel. + * + * Generated from protobuf field string default_version = 2; + */ + protected $default_version = ''; + /** + * List of valid versions for the channel. + * + * Generated from protobuf field repeated string valid_versions = 4; + */ + private $valid_versions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $channel + * The release channel this configuration applies to. + * @type string $default_version + * The default version for newly created clusters on the channel. + * @type array|\Google\Protobuf\Internal\RepeatedField $valid_versions + * List of valid versions for the channel. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The release channel this configuration applies to. + * + * Generated from protobuf field .google.container.v1.ReleaseChannel.Channel channel = 1; + * @return int + */ + public function getChannel() + { + return $this->channel; + } + + /** + * The release channel this configuration applies to. + * + * Generated from protobuf field .google.container.v1.ReleaseChannel.Channel channel = 1; + * @param int $var + * @return $this + */ + public function setChannel($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\ReleaseChannel\Channel::class); + $this->channel = $var; + + return $this; + } + + /** + * The default version for newly created clusters on the channel. + * + * Generated from protobuf field string default_version = 2; + * @return string + */ + public function getDefaultVersion() + { + return $this->default_version; + } + + /** + * The default version for newly created clusters on the channel. + * + * Generated from protobuf field string default_version = 2; + * @param string $var + * @return $this + */ + public function setDefaultVersion($var) + { + GPBUtil::checkString($var, True); + $this->default_version = $var; + + return $this; + } + + /** + * List of valid versions for the channel. + * + * Generated from protobuf field repeated string valid_versions = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getValidVersions() + { + return $this->valid_versions; + } + + /** + * List of valid versions for the channel. + * + * Generated from protobuf field repeated string valid_versions = 4; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setValidVersions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->valid_versions = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ReleaseChannelConfig::class, \Google\Cloud\Container\V1\ServerConfig_ReleaseChannelConfig::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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..44cdc8ed9270 --- /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://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * Required. The desired configurations for the various addons available to + * run in the cluster. + * + * Generated from protobuf field .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $addons_config = null; + /** + * The name (project, location, cluster) of the cluster to set addons. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 6; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @type \Google\Cloud\Container\V1\AddonsConfig $addons_config + * Required. The desired configurations for the various addons available to + * run in the cluster. + * @type string $name + * The name (project, location, cluster) of the cluster to set addons. + * Specified in the format `projects/*/locations/*/clusters/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Required. The desired configurations for the various addons available to + * run in the cluster. + * + * Generated from protobuf field .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Container\V1\AddonsConfig|null + */ + public function getAddonsConfig() + { + return $this->addons_config; + } + + public function hasAddonsConfig() + { + return isset($this->addons_config); + } + + public function clearAddonsConfig() + { + unset($this->addons_config); + } + + /** + * Required. The desired configurations for the various addons available to + * run in the cluster. + * + * Generated from protobuf field .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Container\V1\AddonsConfig $var + * @return $this + */ + public function setAddonsConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AddonsConfig::class); + $this->addons_config = $var; + + return $this; + } + + /** + * The name (project, location, cluster) of the cluster to set addons. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 6; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster) of the cluster to set addons. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 6; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLabelsRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLabelsRequest.php new file mode 100644 index 000000000000..32b166e06b98 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLabelsRequest.php @@ -0,0 +1,302 @@ +google.container.v1.SetLabelsRequest + */ +class SetLabelsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * Required. The labels to set for that cluster. + * + * Generated from protobuf field map resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + private $resource_labels; + /** + * Required. The fingerprint of the previous set of labels for this resource, + * used to detect conflicts. The fingerprint is initially generated by + * Kubernetes Engine and changes after every request to modify or update + * labels. You must always provide an up-to-date fingerprint hash when + * updating or changing labels. Make a `get()` request to the + * resource to get the latest fingerprint. + * + * Generated from protobuf field string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $label_fingerprint = ''; + /** + * The name (project, location, cluster name) of the cluster to set labels. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 7; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * @type array|\Google\Protobuf\Internal\MapField $resource_labels + * Required. The labels to set for that cluster. + * @type string $label_fingerprint + * Required. The fingerprint of the previous set of labels for this resource, + * used to detect conflicts. The fingerprint is initially generated by + * Kubernetes Engine and changes after every request to modify or update + * labels. You must always provide an up-to-date fingerprint hash when + * updating or changing labels. Make a `get()` request to the + * resource to get the latest fingerprint. + * @type string $name + * The name (project, location, cluster name) of the cluster to set labels. + * Specified in the format `projects/*/locations/*/clusters/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Required. The labels to set for that cluster. + * + * Generated from protobuf field map resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getResourceLabels() + { + return $this->resource_labels; + } + + /** + * Required. The labels to set for that cluster. + * + * Generated from protobuf field map resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setResourceLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->resource_labels = $arr; + + return $this; + } + + /** + * Required. The fingerprint of the previous set of labels for this resource, + * used to detect conflicts. The fingerprint is initially generated by + * Kubernetes Engine and changes after every request to modify or update + * labels. You must always provide an up-to-date fingerprint hash when + * updating or changing labels. Make a `get()` request to the + * resource to get the latest fingerprint. + * + * Generated from protobuf field string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getLabelFingerprint() + { + return $this->label_fingerprint; + } + + /** + * Required. The fingerprint of the previous set of labels for this resource, + * used to detect conflicts. The fingerprint is initially generated by + * Kubernetes Engine and changes after every request to modify or update + * labels. You must always provide an up-to-date fingerprint hash when + * updating or changing labels. Make a `get()` request to the + * resource to get the latest fingerprint. + * + * Generated from protobuf field string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setLabelFingerprint($var) + { + GPBUtil::checkString($var, True); + $this->label_fingerprint = $var; + + return $this; + } + + /** + * The name (project, location, cluster name) of the cluster to set labels. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 7; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster name) of the cluster to set labels. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 7; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLegacyAbacRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLegacyAbacRequest.php new file mode 100644 index 000000000000..df7838ce93ef --- /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://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * Required. Whether ABAC authorization will be enabled in the cluster. + * + * Generated from protobuf field bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $enabled = false; + /** + * The name (project, location, cluster name) of the cluster to set legacy + * abac. Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 6; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. + * @type bool $enabled + * Required. Whether ABAC authorization will be enabled in the cluster. + * @type string $name + * The name (project, location, cluster name) of the cluster to set legacy + * abac. Specified in the format `projects/*/locations/*/clusters/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Required. Whether ABAC authorization will be enabled in the cluster. + * + * Generated from protobuf field bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Required. Whether ABAC authorization will be enabled in the cluster. + * + * Generated from protobuf field bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + + /** + * The name (project, location, cluster name) of the cluster to set legacy + * abac. Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 6; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster name) of the cluster to set legacy + * abac. Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 6; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLocationsRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLocationsRequest.php new file mode 100644 index 000000000000..e9844fee5d7c --- /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://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * Required. The desired list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster's nodes should be located. Changing the locations a cluster is in + * will result in nodes being either created or removed from the cluster, + * depending on whether locations are being added or removed. + * This list must always include the cluster's primary zone. + * + * Generated from protobuf field repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + private $locations; + /** + * The name (project, location, cluster) of the cluster to set locations. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 6; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @type array|\Google\Protobuf\Internal\RepeatedField $locations + * Required. The desired list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster's nodes should be located. Changing the locations a cluster is in + * will result in nodes being either created or removed from the cluster, + * depending on whether locations are being added or removed. + * This list must always include the cluster's primary zone. + * @type string $name + * The name (project, location, cluster) of the cluster to set locations. + * Specified in the format `projects/*/locations/*/clusters/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Required. The desired list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster's nodes should be located. Changing the locations a cluster is in + * will result in nodes being either created or removed from the cluster, + * depending on whether locations are being added or removed. + * This list must always include the cluster's primary zone. + * + * Generated from protobuf field repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getLocations() + { + return $this->locations; + } + + /** + * Required. The desired list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster's nodes should be located. Changing the locations a cluster is in + * will result in nodes being either created or removed from the cluster, + * depending on whether locations are being added or removed. + * This list must always include the cluster's primary zone. + * + * Generated from protobuf field repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->locations = $arr; + + return $this; + } + + /** + * The name (project, location, cluster) of the cluster to set locations. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 6; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster) of the cluster to set locations. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 6; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLoggingServiceRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLoggingServiceRequest.php new file mode 100644 index 000000000000..1007f3009a10 --- /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://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * Required. The logging service the cluster should use to write logs. + * Currently available options: + * * `logging.googleapis.com/kubernetes` - The Cloud Logging + * service with a Kubernetes-native resource model + * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + * available as of GKE 1.15). + * * `none` - no logs will be exported from the cluster. + * If left as an empty string,`logging.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. + * + * Generated from protobuf field string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $logging_service = ''; + /** + * The name (project, location, cluster) of the cluster to set logging. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 5; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @type string $logging_service + * Required. The logging service the cluster should use to write logs. + * Currently available options: + * * `logging.googleapis.com/kubernetes` - The Cloud Logging + * service with a Kubernetes-native resource model + * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + * available as of GKE 1.15). + * * `none` - no logs will be exported from the cluster. + * If left as an empty string,`logging.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. + * @type string $name + * The name (project, location, cluster) of the cluster to set logging. + * Specified in the format `projects/*/locations/*/clusters/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Required. The logging service the cluster should use to write logs. + * Currently available options: + * * `logging.googleapis.com/kubernetes` - The Cloud Logging + * service with a Kubernetes-native resource model + * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + * available as of GKE 1.15). + * * `none` - no logs will be exported from the cluster. + * If left as an empty string,`logging.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. + * + * Generated from protobuf field string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getLoggingService() + { + return $this->logging_service; + } + + /** + * Required. The logging service the cluster should use to write logs. + * Currently available options: + * * `logging.googleapis.com/kubernetes` - The Cloud Logging + * service with a Kubernetes-native resource model + * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + * available as of GKE 1.15). + * * `none` - no logs will be exported from the cluster. + * If left as an empty string,`logging.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. + * + * Generated from protobuf field string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setLoggingService($var) + { + GPBUtil::checkString($var, True); + $this->logging_service = $var; + + return $this; + } + + /** + * The name (project, location, cluster) of the cluster to set logging. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 5; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster) of the cluster to set logging. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 5; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMaintenancePolicyRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMaintenancePolicyRequest.php new file mode 100644 index 000000000000..a81c862869b6 --- /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://cloud.google.com/resource-manager/docs/creating-managing-projects). + * + * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $project_id = ''; + /** + * Required. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. + * + * Generated from protobuf field string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $zone = ''; + /** + * Required. The name of the cluster to update. + * + * Generated from protobuf field string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $cluster_id = ''; + /** + * Required. The maintenance policy to be set for the cluster. An empty field + * clears the existing maintenance policy. + * + * Generated from protobuf field .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $maintenance_policy = null; + /** + * The name (project, location, cluster name) of the cluster to set + * maintenance policy. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 5; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Required. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * @type string $zone + * Required. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. + * @type string $cluster_id + * Required. The name of the cluster to update. + * @type \Google\Cloud\Container\V1\MaintenancePolicy $maintenance_policy + * Required. The maintenance policy to be set for the cluster. An empty field + * clears the existing maintenance policy. + * @type string $name + * The name (project, location, cluster name) of the cluster to set + * maintenance policy. + * Specified in the format `projects/*/locations/*/clusters/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * + * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getProjectId() + { + return $this->project_id; + } + + /** + * Required. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * + * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setProjectId($var) + { + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Required. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. + * + * Generated from protobuf field string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getZone() + { + return $this->zone; + } + + /** + * Required. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. + * + * Generated from protobuf field string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setZone($var) + { + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Required. The name of the cluster to update. + * + * Generated from protobuf field string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getClusterId() + { + return $this->cluster_id; + } + + /** + * Required. The name of the cluster to update. + * + * Generated from protobuf field string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setClusterId($var) + { + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Required. The maintenance policy to be set for the cluster. An empty field + * clears the existing maintenance policy. + * + * Generated from protobuf field .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Container\V1\MaintenancePolicy|null + */ + public function getMaintenancePolicy() + { + return $this->maintenance_policy; + } + + public function hasMaintenancePolicy() + { + return isset($this->maintenance_policy); + } + + public function clearMaintenancePolicy() + { + unset($this->maintenance_policy); + } + + /** + * Required. The maintenance policy to be set for the cluster. An empty field + * clears the existing maintenance policy. + * + * Generated from protobuf field .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Container\V1\MaintenancePolicy $var + * @return $this + */ + public function setMaintenancePolicy($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MaintenancePolicy::class); + $this->maintenance_policy = $var; + + return $this; + } + + /** + * The name (project, location, cluster name) of the cluster to set + * maintenance policy. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 5; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster name) of the cluster to set + * maintenance policy. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 5; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest.php new file mode 100644 index 000000000000..9f9c4bb4de29 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest.php @@ -0,0 +1,290 @@ +google.container.v1.SetMasterAuthRequest + */ +class SetMasterAuthRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * Required. The exact form of action to be taken on the master auth. + * + * Generated from protobuf field .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $action = 0; + /** + * Required. A description of the update. + * + * Generated from protobuf field .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update = null; + /** + * The name (project, location, cluster) of the cluster to set auth. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 7; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @type int $action + * Required. The exact form of action to be taken on the master auth. + * @type \Google\Cloud\Container\V1\MasterAuth $update + * Required. A description of the update. + * @type string $name + * The name (project, location, cluster) of the cluster to set auth. + * Specified in the format `projects/*/locations/*/clusters/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Required. The exact form of action to be taken on the master auth. + * + * Generated from protobuf field .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getAction() + { + return $this->action; + } + + /** + * Required. The exact form of action to be taken on the master auth. + * + * Generated from protobuf field .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setAction($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\SetMasterAuthRequest\Action::class); + $this->action = $var; + + return $this; + } + + /** + * Required. A description of the update. + * + * Generated from protobuf field .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Container\V1\MasterAuth|null + */ + public function getUpdate() + { + return $this->update; + } + + public function hasUpdate() + { + return isset($this->update); + } + + public function clearUpdate() + { + unset($this->update); + } + + /** + * Required. A description of the update. + * + * Generated from protobuf field .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Container\V1\MasterAuth $var + * @return $this + */ + public function setUpdate($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MasterAuth::class); + $this->update = $var; + + return $this; + } + + /** + * The name (project, location, cluster) of the cluster to set auth. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 7; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster) of the cluster to set auth. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 7; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest/Action.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest/Action.php new file mode 100644 index 000000000000..f05c2c752248 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest/Action.php @@ -0,0 +1,74 @@ +google.container.v1.SetMasterAuthRequest.Action + */ +class Action +{ + /** + * Operation is unknown and will error out. + * + * Generated from protobuf enum UNKNOWN = 0; + */ + const UNKNOWN = 0; + /** + * Set the password to a user generated value. + * + * Generated from protobuf enum SET_PASSWORD = 1; + */ + const SET_PASSWORD = 1; + /** + * Generate a new password and set it to that. + * + * Generated from protobuf enum GENERATE_PASSWORD = 2; + */ + const GENERATE_PASSWORD = 2; + /** + * Set the username. If an empty username is provided, basic authentication + * is disabled for the cluster. If a non-empty username is provided, basic + * authentication is enabled, with either a provided password or a generated + * one. + * + * Generated from protobuf enum SET_USERNAME = 3; + */ + const SET_USERNAME = 3; + + private static $valueToName = [ + self::UNKNOWN => 'UNKNOWN', + self::SET_PASSWORD => 'SET_PASSWORD', + self::GENERATE_PASSWORD => 'GENERATE_PASSWORD', + self::SET_USERNAME => 'SET_USERNAME', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Action::class, \Google\Cloud\Container\V1\SetMasterAuthRequest_Action::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * Required. The monitoring service the cluster should use to write metrics. + * Currently available options: + * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + * service with a Kubernetes-native resource model + * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + * longer available as of GKE 1.15). + * * `none` - No metrics will be exported from the cluster. + * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. + * + * Generated from protobuf field string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $monitoring_service = ''; + /** + * The name (project, location, cluster) of the cluster to set monitoring. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 6; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @type string $monitoring_service + * Required. The monitoring service the cluster should use to write metrics. + * Currently available options: + * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + * service with a Kubernetes-native resource model + * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + * longer available as of GKE 1.15). + * * `none` - No metrics will be exported from the cluster. + * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. + * @type string $name + * The name (project, location, cluster) of the cluster to set monitoring. + * Specified in the format `projects/*/locations/*/clusters/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Required. The monitoring service the cluster should use to write metrics. + * Currently available options: + * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + * service with a Kubernetes-native resource model + * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + * longer available as of GKE 1.15). + * * `none` - No metrics will be exported from the cluster. + * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. + * + * Generated from protobuf field string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getMonitoringService() + { + return $this->monitoring_service; + } + + /** + * Required. The monitoring service the cluster should use to write metrics. + * Currently available options: + * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + * service with a Kubernetes-native resource model + * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + * longer available as of GKE 1.15). + * * `none` - No metrics will be exported from the cluster. + * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. + * + * Generated from protobuf field string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setMonitoringService($var) + { + GPBUtil::checkString($var, True); + $this->monitoring_service = $var; + + return $this; + } + + /** + * The name (project, location, cluster) of the cluster to set monitoring. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 6; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster) of the cluster to set monitoring. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 6; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNetworkPolicyRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNetworkPolicyRequest.php new file mode 100644 index 000000000000..6e26c1651163 --- /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://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * Required. Configuration options for the NetworkPolicy feature. + * + * Generated from protobuf field .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $network_policy = null; + /** + * The name (project, location, cluster name) of the cluster to set networking + * policy. Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 6; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * @type \Google\Cloud\Container\V1\NetworkPolicy $network_policy + * Required. Configuration options for the NetworkPolicy feature. + * @type string $name + * The name (project, location, cluster name) of the cluster to set networking + * policy. Specified in the format `projects/*/locations/*/clusters/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Required. Configuration options for the NetworkPolicy feature. + * + * Generated from protobuf field .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Container\V1\NetworkPolicy|null + */ + public function getNetworkPolicy() + { + return $this->network_policy; + } + + public function hasNetworkPolicy() + { + return isset($this->network_policy); + } + + public function clearNetworkPolicy() + { + unset($this->network_policy); + } + + /** + * Required. Configuration options for the NetworkPolicy feature. + * + * Generated from protobuf field .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Container\V1\NetworkPolicy $var + * @return $this + */ + public function setNetworkPolicy($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkPolicy::class); + $this->network_policy = $var; + + return $this; + } + + /** + * The name (project, location, cluster name) of the cluster to set networking + * policy. Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 6; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster name) of the cluster to set networking + * policy. Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 6; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolAutoscalingRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolAutoscalingRequest.php new file mode 100644 index 000000000000..a9884dd31f6b --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolAutoscalingRequest.php @@ -0,0 +1,303 @@ +google.container.v1.SetNodePoolAutoscalingRequest + */ +class SetNodePoolAutoscalingRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * Deprecated. The name of the node pool to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @deprecated + */ + protected $node_pool_id = ''; + /** + * Required. Autoscaling configuration for the node pool. + * + * Generated from protobuf field .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $autoscaling = null; + /** + * The name (project, location, cluster, node pool) of the node pool to set + * autoscaler settings. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 6; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @type string $node_pool_id + * Deprecated. The name of the node pool to upgrade. + * This field has been deprecated and replaced by the name field. + * @type \Google\Cloud\Container\V1\NodePoolAutoscaling $autoscaling + * Required. Autoscaling configuration for the node pool. + * @type string $name + * The name (project, location, cluster, node pool) of the node pool to set + * autoscaler settings. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the node pool to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @return string + * @deprecated + */ + public function getNodePoolId() + { + @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); + return $this->node_pool_id; + } + + /** + * Deprecated. The name of the node pool to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setNodePoolId($var) + { + @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->node_pool_id = $var; + + return $this; + } + + /** + * Required. Autoscaling configuration for the node pool. + * + * Generated from protobuf field .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Container\V1\NodePoolAutoscaling|null + */ + public function getAutoscaling() + { + return $this->autoscaling; + } + + public function hasAutoscaling() + { + return isset($this->autoscaling); + } + + public function clearAutoscaling() + { + unset($this->autoscaling); + } + + /** + * Required. Autoscaling configuration for the node pool. + * + * Generated from protobuf field .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Container\V1\NodePoolAutoscaling $var + * @return $this + */ + public function setAutoscaling($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolAutoscaling::class); + $this->autoscaling = $var; + + return $this; + } + + /** + * The name (project, location, cluster, node pool) of the node pool to set + * autoscaler settings. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 6; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster, node pool) of the node pool to set + * autoscaler settings. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 6; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolManagementRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolManagementRequest.php new file mode 100644 index 000000000000..f1807940a3ff --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolManagementRequest.php @@ -0,0 +1,304 @@ +google.container.v1.SetNodePoolManagementRequest + */ +class SetNodePoolManagementRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * Deprecated. The name of the node pool to update. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @deprecated + */ + protected $node_pool_id = ''; + /** + * Required. NodeManagement configuration for the node pool. + * + * Generated from protobuf field .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $management = null; + /** + * The name (project, location, cluster, node pool id) of the node pool to set + * management properties. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 7; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. + * @type string $node_pool_id + * Deprecated. The name of the node pool to update. + * This field has been deprecated and replaced by the name field. + * @type \Google\Cloud\Container\V1\NodeManagement $management + * Required. NodeManagement configuration for the node pool. + * @type string $name + * The name (project, location, cluster, node pool id) of the node pool to set + * management properties. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the node pool to update. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @return string + * @deprecated + */ + public function getNodePoolId() + { + @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); + return $this->node_pool_id; + } + + /** + * Deprecated. The name of the node pool to update. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setNodePoolId($var) + { + @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->node_pool_id = $var; + + return $this; + } + + /** + * Required. NodeManagement configuration for the node pool. + * + * Generated from protobuf field .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Container\V1\NodeManagement|null + */ + public function getManagement() + { + return $this->management; + } + + public function hasManagement() + { + return isset($this->management); + } + + public function clearManagement() + { + unset($this->management); + } + + /** + * Required. NodeManagement configuration for the node pool. + * + * Generated from protobuf field .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Container\V1\NodeManagement $var + * @return $this + */ + public function setManagement($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeManagement::class); + $this->management = $var; + + return $this; + } + + /** + * The name (project, location, cluster, node pool id) of the node pool to set + * management properties. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 7; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster, node pool id) of the node pool to set + * management properties. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 7; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolSizeRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolSizeRequest.php new file mode 100644 index 000000000000..56d25d6e8e81 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolSizeRequest.php @@ -0,0 +1,293 @@ +google.container.v1.SetNodePoolSizeRequest + */ +class SetNodePoolSizeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * Deprecated. The name of the node pool to update. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @deprecated + */ + protected $node_pool_id = ''; + /** + * Required. The desired node count for the pool. + * + * Generated from protobuf field int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $node_count = 0; + /** + * The name (project, location, cluster, node pool id) of the node pool to set + * size. + * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 7; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. + * @type string $node_pool_id + * Deprecated. The name of the node pool to update. + * This field has been deprecated and replaced by the name field. + * @type int $node_count + * Required. The desired node count for the pool. + * @type string $name + * The name (project, location, cluster, node pool id) of the node pool to set + * size. + * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the node pool to update. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @return string + * @deprecated + */ + public function getNodePoolId() + { + @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); + return $this->node_pool_id; + } + + /** + * Deprecated. The name of the node pool to update. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setNodePoolId($var) + { + @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->node_pool_id = $var; + + return $this; + } + + /** + * Required. The desired node count for the pool. + * + * Generated from protobuf field int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getNodeCount() + { + return $this->node_count; + } + + /** + * Required. The desired node count for the pool. + * + * Generated from protobuf field int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setNodeCount($var) + { + GPBUtil::checkInt32($var); + $this->node_count = $var; + + return $this; + } + + /** + * The name (project, location, cluster, node pool id) of the node pool to set + * size. + * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 7; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster, node pool id) of the node pool to set + * size. + * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 7; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ShieldedInstanceConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ShieldedInstanceConfig.php new file mode 100644 index 000000000000..c711d0be5048 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ShieldedInstanceConfig.php @@ -0,0 +1,129 @@ +google.container.v1.ShieldedInstanceConfig + */ +class ShieldedInstanceConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Defines whether the instance has Secure Boot enabled. + * Secure Boot helps ensure that the system only runs authentic software by + * verifying the digital signature of all boot components, and halting the + * boot process if signature verification fails. + * + * Generated from protobuf field bool enable_secure_boot = 1; + */ + protected $enable_secure_boot = false; + /** + * Defines whether the instance has integrity monitoring enabled. + * Enables monitoring and attestation of the boot integrity of the instance. + * The attestation is performed against the integrity policy baseline. This + * baseline is initially derived from the implicitly trusted boot image when + * the instance is created. + * + * Generated from protobuf field bool enable_integrity_monitoring = 2; + */ + protected $enable_integrity_monitoring = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enable_secure_boot + * Defines whether the instance has Secure Boot enabled. + * Secure Boot helps ensure that the system only runs authentic software by + * verifying the digital signature of all boot components, and halting the + * boot process if signature verification fails. + * @type bool $enable_integrity_monitoring + * Defines whether the instance has integrity monitoring enabled. + * Enables monitoring and attestation of the boot integrity of the instance. + * The attestation is performed against the integrity policy baseline. This + * baseline is initially derived from the implicitly trusted boot image when + * the instance is created. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Defines whether the instance has Secure Boot enabled. + * Secure Boot helps ensure that the system only runs authentic software by + * verifying the digital signature of all boot components, and halting the + * boot process if signature verification fails. + * + * Generated from protobuf field bool enable_secure_boot = 1; + * @return bool + */ + public function getEnableSecureBoot() + { + return $this->enable_secure_boot; + } + + /** + * Defines whether the instance has Secure Boot enabled. + * Secure Boot helps ensure that the system only runs authentic software by + * verifying the digital signature of all boot components, and halting the + * boot process if signature verification fails. + * + * Generated from protobuf field bool enable_secure_boot = 1; + * @param bool $var + * @return $this + */ + public function setEnableSecureBoot($var) + { + GPBUtil::checkBool($var); + $this->enable_secure_boot = $var; + + return $this; + } + + /** + * Defines whether the instance has integrity monitoring enabled. + * Enables monitoring and attestation of the boot integrity of the instance. + * The attestation is performed against the integrity policy baseline. This + * baseline is initially derived from the implicitly trusted boot image when + * the instance is created. + * + * Generated from protobuf field bool enable_integrity_monitoring = 2; + * @return bool + */ + public function getEnableIntegrityMonitoring() + { + return $this->enable_integrity_monitoring; + } + + /** + * Defines whether the instance has integrity monitoring enabled. + * Enables monitoring and attestation of the boot integrity of the instance. + * The attestation is performed against the integrity policy baseline. This + * baseline is initially derived from the implicitly trusted boot image when + * the instance is created. + * + * Generated from protobuf field bool enable_integrity_monitoring = 2; + * @param bool $var + * @return $this + */ + public function setEnableIntegrityMonitoring($var) + { + GPBUtil::checkBool($var); + $this->enable_integrity_monitoring = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ShieldedNodes.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ShieldedNodes.php new file mode 100644 index 000000000000..09b61f99c881 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ShieldedNodes.php @@ -0,0 +1,67 @@ +google.container.v1.ShieldedNodes + */ +class ShieldedNodes extends \Google\Protobuf\Internal\Message +{ + /** + * Whether Shielded Nodes features are enabled on all nodes in this cluster. + * + * Generated from protobuf field bool enabled = 1; + */ + protected $enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Whether Shielded Nodes features are enabled on all nodes in this cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Whether Shielded Nodes features are enabled on all nodes in this cluster. + * + * Generated from protobuf field bool enabled = 1; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Whether Shielded Nodes features are enabled on all nodes in this cluster. + * + * Generated from protobuf field bool enabled = 1; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StackType.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StackType.php new file mode 100644 index 000000000000..ce1f1c6c392b --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StackType.php @@ -0,0 +1,61 @@ +google.container.v1.StackType + */ +class StackType +{ + /** + * Default value, will be defaulted as IPV4 only + * + * Generated from protobuf enum STACK_TYPE_UNSPECIFIED = 0; + */ + const STACK_TYPE_UNSPECIFIED = 0; + /** + * Cluster is IPV4 only + * + * Generated from protobuf enum IPV4 = 1; + */ + const IPV4 = 1; + /** + * Cluster can use both IPv4 and IPv6 + * + * Generated from protobuf enum IPV4_IPV6 = 2; + */ + const IPV4_IPV6 = 2; + + private static $valueToName = [ + self::STACK_TYPE_UNSPECIFIED => 'STACK_TYPE_UNSPECIFIED', + self::IPV4 => 'IPV4', + self::IPV4_IPV6 => 'IPV4_IPV6', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StartIPRotationRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StartIPRotationRequest.php new file mode 100644 index 000000000000..8c4ac087d5b1 --- /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://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * The name (project, location, cluster name) of the cluster to start IP + * rotation. Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 6; + */ + protected $name = ''; + /** + * Whether to rotate credentials during IP rotation. + * + * Generated from protobuf field bool rotate_credentials = 7; + */ + protected $rotate_credentials = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster name) of the cluster to start IP + * rotation. Specified in the format `projects/*/locations/*/clusters/*`. + * @type bool $rotate_credentials + * Whether to rotate credentials during IP rotation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * The name (project, location, cluster name) of the cluster to start IP + * rotation. Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 6; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster name) of the cluster to start IP + * rotation. Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 6; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Whether to rotate credentials during IP rotation. + * + * Generated from protobuf field bool rotate_credentials = 7; + * @return bool + */ + public function getRotateCredentials() + { + return $this->rotate_credentials; + } + + /** + * Whether to rotate credentials during IP rotation. + * + * Generated from protobuf field bool rotate_credentials = 7; + * @param bool $var + * @return $this + */ + public function setRotateCredentials($var) + { + GPBUtil::checkBool($var); + $this->rotate_credentials = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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..eec471ed2251 --- /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://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * Required. A description of the update. + * + * Generated from protobuf field .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update = null; + /** + * The name (project, location, cluster) of the cluster to update. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 5; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @type \Google\Cloud\Container\V1\ClusterUpdate $update + * Required. A description of the update. + * @type string $name + * The name (project, location, cluster) of the cluster to update. + * Specified in the format `projects/*/locations/*/clusters/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Required. A description of the update. + * + * Generated from protobuf field .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Container\V1\ClusterUpdate|null + */ + public function getUpdate() + { + return $this->update; + } + + public function hasUpdate() + { + return isset($this->update); + } + + public function clearUpdate() + { + unset($this->update); + } + + /** + * Required. A description of the update. + * + * Generated from protobuf field .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Container\V1\ClusterUpdate $var + * @return $this + */ + public function setUpdate($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ClusterUpdate::class); + $this->update = $var; + + return $this; + } + + /** + * The name (project, location, cluster) of the cluster to update. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 5; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster) of the cluster to update. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 5; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateMasterRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateMasterRequest.php new file mode 100644 index 000000000000..221e9f4f33a2 --- /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://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * Required. The Kubernetes version to change the master to. + * Users may specify either explicit versions offered by Kubernetes Engine or + * version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the default Kubernetes version + * + * Generated from protobuf field string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $master_version = ''; + /** + * The name (project, location, cluster) of the cluster to update. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 7; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @type string $master_version + * Required. The Kubernetes version to change the master to. + * Users may specify either explicit versions offered by Kubernetes Engine or + * version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the default Kubernetes version + * @type string $name + * The name (project, location, cluster) of the cluster to update. + * Specified in the format `projects/*/locations/*/clusters/*`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Required. The Kubernetes version to change the master to. + * Users may specify either explicit versions offered by Kubernetes Engine or + * version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the default Kubernetes version + * + * Generated from protobuf field string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getMasterVersion() + { + return $this->master_version; + } + + /** + * Required. The Kubernetes version to change the master to. + * Users may specify either explicit versions offered by Kubernetes Engine or + * version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the default Kubernetes version + * + * Generated from protobuf field string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setMasterVersion($var) + { + GPBUtil::checkString($var, True); + $this->master_version = $var; + + return $this; + } + + /** + * The name (project, location, cluster) of the cluster to update. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 7; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster) of the cluster to update. + * Specified in the format `projects/*/locations/*/clusters/*`. + * + * Generated from protobuf field string name = 7; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateNodePoolRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateNodePoolRequest.php new file mode 100644 index 000000000000..ad1a43a34a87 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateNodePoolRequest.php @@ -0,0 +1,1151 @@ +google.container.v1.UpdateNodePoolRequest + */ +class UpdateNodePoolRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @deprecated + */ + protected $project_id = ''; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @deprecated + */ + protected $zone = ''; + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @deprecated + */ + protected $cluster_id = ''; + /** + * Deprecated. The name of the node pool to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @deprecated + */ + protected $node_pool_id = ''; + /** + * Required. The Kubernetes version to change the nodes to (typically an + * upgrade). + * Users may specify either explicit versions offered by Kubernetes Engine or + * version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the Kubernetes master version + * + * Generated from protobuf field string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $node_version = ''; + /** + * Required. The desired image type for the node pool. Please see + * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for + * available image types. + * + * Generated from protobuf field string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $image_type = ''; + /** + * The name (project, location, cluster, node pool) of the node pool to + * update. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 8; + */ + protected $name = ''; + /** + * The desired list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * node pool's nodes should be located. Changing the locations for a node pool + * will result in nodes being either created or removed from the node pool, + * depending on whether locations are being added or removed. + * + * Generated from protobuf field repeated string locations = 13; + */ + private $locations; + /** + * The desired workload metadata config for the node pool. + * + * Generated from protobuf field .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + protected $workload_metadata_config = null; + /** + * Upgrade settings control disruption and speed of the upgrade. + * + * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + protected $upgrade_settings = null; + /** + * The desired network tags to be applied to all nodes in the node pool. + * If this field is not present, the tags will not be changed. Otherwise, + * the existing network tags will be *replaced* with the provided tags. + * + * Generated from protobuf field .google.container.v1.NetworkTags tags = 16; + */ + protected $tags = null; + /** + * The desired node taints to be applied to all nodes in the node pool. + * If this field is not present, the taints will not be changed. Otherwise, + * the existing node taints will be *replaced* with the provided taints. + * + * Generated from protobuf field .google.container.v1.NodeTaints taints = 17; + */ + protected $taints = null; + /** + * The desired node labels to be applied to all nodes in the node pool. + * If this field is not present, the labels will not be changed. Otherwise, + * the existing node labels will be *replaced* with the provided labels. + * + * Generated from protobuf field .google.container.v1.NodeLabels labels = 18; + */ + protected $labels = null; + /** + * Parameters that can be configured on Linux nodes. + * + * Generated from protobuf field .google.container.v1.LinuxNodeConfig linux_node_config = 19; + */ + protected $linux_node_config = null; + /** + * Node kubelet configs. + * + * Generated from protobuf field .google.container.v1.NodeKubeletConfig kubelet_config = 20; + */ + protected $kubelet_config = null; + /** + * Node network config. + * + * Generated from protobuf field .google.container.v1.NodeNetworkConfig node_network_config = 21; + */ + protected $node_network_config = null; + /** + * GCFS config. + * + * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 22; + */ + protected $gcfs_config = null; + /** + * Confidential nodes config. + * All the nodes in the node pool will be Confidential VM once enabled. + * + * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 23; + */ + protected $confidential_nodes = null; + /** + * Enable or disable gvnic on the node pool. + * + * Generated from protobuf field .google.container.v1.VirtualNIC gvnic = 29; + */ + protected $gvnic = null; + /** + * The current etag of the node pool. + * If an etag is provided and does not match the current etag of the node + * pool, update will be blocked and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 30; + */ + protected $etag = ''; + /** + * Enable or disable NCCL fast socket for the node pool. + * + * Generated from protobuf field .google.container.v1.FastSocket fast_socket = 31; + */ + protected $fast_socket = null; + /** + * Logging configuration. + * + * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 32; + */ + protected $logging_config = null; + /** + * The resource labels for the node pool to use to annotate any related + * Google Compute Engine resources. + * + * Generated from protobuf field .google.container.v1.ResourceLabels resource_labels = 33; + */ + protected $resource_labels = null; + /** + * Parameters that can be configured on Windows nodes. + * + * Generated from protobuf field .google.container.v1.WindowsNodeConfig windows_node_config = 34; + */ + protected $windows_node_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $cluster_id + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @type string $node_pool_id + * Deprecated. The name of the node pool to upgrade. + * This field has been deprecated and replaced by the name field. + * @type string $node_version + * Required. The Kubernetes version to change the nodes to (typically an + * upgrade). + * Users may specify either explicit versions offered by Kubernetes Engine or + * version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the Kubernetes master version + * @type string $image_type + * Required. The desired image type for the node pool. Please see + * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for + * available image types. + * @type string $name + * The name (project, location, cluster, node pool) of the node pool to + * update. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * @type array|\Google\Protobuf\Internal\RepeatedField $locations + * The desired list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * node pool's nodes should be located. Changing the locations for a node pool + * will result in nodes being either created or removed from the node pool, + * depending on whether locations are being added or removed. + * @type \Google\Cloud\Container\V1\WorkloadMetadataConfig $workload_metadata_config + * The desired workload metadata config for the node pool. + * @type \Google\Cloud\Container\V1\NodePool\UpgradeSettings $upgrade_settings + * Upgrade settings control disruption and speed of the upgrade. + * @type \Google\Cloud\Container\V1\NetworkTags $tags + * The desired network tags to be applied to all nodes in the node pool. + * If this field is not present, the tags will not be changed. Otherwise, + * the existing network tags will be *replaced* with the provided tags. + * @type \Google\Cloud\Container\V1\NodeTaints $taints + * The desired node taints to be applied to all nodes in the node pool. + * If this field is not present, the taints will not be changed. Otherwise, + * the existing node taints will be *replaced* with the provided taints. + * @type \Google\Cloud\Container\V1\NodeLabels $labels + * The desired node labels to be applied to all nodes in the node pool. + * If this field is not present, the labels will not be changed. Otherwise, + * the existing node labels will be *replaced* with the provided labels. + * @type \Google\Cloud\Container\V1\LinuxNodeConfig $linux_node_config + * Parameters that can be configured on Linux nodes. + * @type \Google\Cloud\Container\V1\NodeKubeletConfig $kubelet_config + * Node kubelet configs. + * @type \Google\Cloud\Container\V1\NodeNetworkConfig $node_network_config + * Node network config. + * @type \Google\Cloud\Container\V1\GcfsConfig $gcfs_config + * GCFS config. + * @type \Google\Cloud\Container\V1\ConfidentialNodes $confidential_nodes + * Confidential nodes config. + * All the nodes in the node pool will be Confidential VM once enabled. + * @type \Google\Cloud\Container\V1\VirtualNIC $gvnic + * Enable or disable gvnic on the node pool. + * @type string $etag + * The current etag of the node pool. + * If an etag is provided and does not match the current etag of the node + * pool, update will be blocked and an ABORTED error will be returned. + * @type \Google\Cloud\Container\V1\FastSocket $fast_socket + * Enable or disable NCCL fast socket for the node pool. + * @type \Google\Cloud\Container\V1\NodePoolLoggingConfig $logging_config + * Logging configuration. + * @type \Google\Cloud\Container\V1\ResourceLabels $resource_labels + * The resource labels for the node pool to use to annotate any related + * Google Compute Engine resources. + * @type \Google\Cloud\Container\V1\WindowsNodeConfig $windows_node_config + * Parameters that can be configured on Windows nodes. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getProjectId() + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + return $this->project_id; + } + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string project_id = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setProjectId($var) + { + @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @return string + * @deprecated + */ + public function getZone() + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + return $this->zone; + } + + /** + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * + * Generated from protobuf field string zone = 2 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setZone($var) + { + @trigger_error('zone is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @return string + * @deprecated + */ + public function getClusterId() + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + return $this->cluster_id; + } + + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string cluster_id = 3 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setClusterId($var) + { + @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cluster_id = $var; + + return $this; + } + + /** + * Deprecated. The name of the node pool to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @return string + * @deprecated + */ + public function getNodePoolId() + { + @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); + return $this->node_pool_id; + } + + /** + * Deprecated. The name of the node pool to upgrade. + * This field has been deprecated and replaced by the name field. + * + * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setNodePoolId($var) + { + @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->node_pool_id = $var; + + return $this; + } + + /** + * Required. The Kubernetes version to change the nodes to (typically an + * upgrade). + * Users may specify either explicit versions offered by Kubernetes Engine or + * version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the Kubernetes master version + * + * Generated from protobuf field string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getNodeVersion() + { + return $this->node_version; + } + + /** + * Required. The Kubernetes version to change the nodes to (typically an + * upgrade). + * Users may specify either explicit versions offered by Kubernetes Engine or + * version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the Kubernetes master version + * + * Generated from protobuf field string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setNodeVersion($var) + { + GPBUtil::checkString($var, True); + $this->node_version = $var; + + return $this; + } + + /** + * Required. The desired image type for the node pool. Please see + * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for + * available image types. + * + * Generated from protobuf field string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getImageType() + { + return $this->image_type; + } + + /** + * Required. The desired image type for the node pool. Please see + * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for + * available image types. + * + * Generated from protobuf field string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setImageType($var) + { + GPBUtil::checkString($var, True); + $this->image_type = $var; + + return $this; + } + + /** + * The name (project, location, cluster, node pool) of the node pool to + * update. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 8; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name (project, location, cluster, node pool) of the node pool to + * update. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * + * Generated from protobuf field string name = 8; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The desired list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * node pool's nodes should be located. Changing the locations for a node pool + * will result in nodes being either created or removed from the node pool, + * depending on whether locations are being added or removed. + * + * Generated from protobuf field repeated string locations = 13; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getLocations() + { + return $this->locations; + } + + /** + * The desired list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * node pool's nodes should be located. Changing the locations for a node pool + * will result in nodes being either created or removed from the node pool, + * depending on whether locations are being added or removed. + * + * Generated from protobuf field repeated string locations = 13; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->locations = $arr; + + return $this; + } + + /** + * The desired workload metadata config for the node pool. + * + * Generated from protobuf field .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + * @return \Google\Cloud\Container\V1\WorkloadMetadataConfig|null + */ + public function getWorkloadMetadataConfig() + { + return $this->workload_metadata_config; + } + + public function hasWorkloadMetadataConfig() + { + return isset($this->workload_metadata_config); + } + + public function clearWorkloadMetadataConfig() + { + unset($this->workload_metadata_config); + } + + /** + * The desired workload metadata config for the node pool. + * + * Generated from protobuf field .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + * @param \Google\Cloud\Container\V1\WorkloadMetadataConfig $var + * @return $this + */ + public function setWorkloadMetadataConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\WorkloadMetadataConfig::class); + $this->workload_metadata_config = $var; + + return $this; + } + + /** + * Upgrade settings control disruption and speed of the upgrade. + * + * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + * @return \Google\Cloud\Container\V1\NodePool\UpgradeSettings|null + */ + public function getUpgradeSettings() + { + return $this->upgrade_settings; + } + + public function hasUpgradeSettings() + { + return isset($this->upgrade_settings); + } + + public function clearUpgradeSettings() + { + unset($this->upgrade_settings); + } + + /** + * Upgrade settings control disruption and speed of the upgrade. + * + * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + * @param \Google\Cloud\Container\V1\NodePool\UpgradeSettings $var + * @return $this + */ + public function setUpgradeSettings($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool\UpgradeSettings::class); + $this->upgrade_settings = $var; + + return $this; + } + + /** + * The desired network tags to be applied to all nodes in the node pool. + * If this field is not present, the tags will not be changed. Otherwise, + * the existing network tags will be *replaced* with the provided tags. + * + * Generated from protobuf field .google.container.v1.NetworkTags tags = 16; + * @return \Google\Cloud\Container\V1\NetworkTags|null + */ + public function getTags() + { + return $this->tags; + } + + public function hasTags() + { + return isset($this->tags); + } + + public function clearTags() + { + unset($this->tags); + } + + /** + * The desired network tags to be applied to all nodes in the node pool. + * If this field is not present, the tags will not be changed. Otherwise, + * the existing network tags will be *replaced* with the provided tags. + * + * Generated from protobuf field .google.container.v1.NetworkTags tags = 16; + * @param \Google\Cloud\Container\V1\NetworkTags $var + * @return $this + */ + public function setTags($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkTags::class); + $this->tags = $var; + + return $this; + } + + /** + * The desired node taints to be applied to all nodes in the node pool. + * If this field is not present, the taints will not be changed. Otherwise, + * the existing node taints will be *replaced* with the provided taints. + * + * Generated from protobuf field .google.container.v1.NodeTaints taints = 17; + * @return \Google\Cloud\Container\V1\NodeTaints|null + */ + public function getTaints() + { + return $this->taints; + } + + public function hasTaints() + { + return isset($this->taints); + } + + public function clearTaints() + { + unset($this->taints); + } + + /** + * The desired node taints to be applied to all nodes in the node pool. + * If this field is not present, the taints will not be changed. Otherwise, + * the existing node taints will be *replaced* with the provided taints. + * + * Generated from protobuf field .google.container.v1.NodeTaints taints = 17; + * @param \Google\Cloud\Container\V1\NodeTaints $var + * @return $this + */ + public function setTaints($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeTaints::class); + $this->taints = $var; + + return $this; + } + + /** + * The desired node labels to be applied to all nodes in the node pool. + * If this field is not present, the labels will not be changed. Otherwise, + * the existing node labels will be *replaced* with the provided labels. + * + * Generated from protobuf field .google.container.v1.NodeLabels labels = 18; + * @return \Google\Cloud\Container\V1\NodeLabels|null + */ + public function getLabels() + { + return $this->labels; + } + + public function hasLabels() + { + return isset($this->labels); + } + + public function clearLabels() + { + unset($this->labels); + } + + /** + * The desired node labels to be applied to all nodes in the node pool. + * If this field is not present, the labels will not be changed. Otherwise, + * the existing node labels will be *replaced* with the provided labels. + * + * Generated from protobuf field .google.container.v1.NodeLabels labels = 18; + * @param \Google\Cloud\Container\V1\NodeLabels $var + * @return $this + */ + public function setLabels($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeLabels::class); + $this->labels = $var; + + return $this; + } + + /** + * Parameters that can be configured on Linux nodes. + * + * Generated from protobuf field .google.container.v1.LinuxNodeConfig linux_node_config = 19; + * @return \Google\Cloud\Container\V1\LinuxNodeConfig|null + */ + public function getLinuxNodeConfig() + { + return $this->linux_node_config; + } + + public function hasLinuxNodeConfig() + { + return isset($this->linux_node_config); + } + + public function clearLinuxNodeConfig() + { + unset($this->linux_node_config); + } + + /** + * Parameters that can be configured on Linux nodes. + * + * Generated from protobuf field .google.container.v1.LinuxNodeConfig linux_node_config = 19; + * @param \Google\Cloud\Container\V1\LinuxNodeConfig $var + * @return $this + */ + public function setLinuxNodeConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LinuxNodeConfig::class); + $this->linux_node_config = $var; + + return $this; + } + + /** + * Node kubelet configs. + * + * Generated from protobuf field .google.container.v1.NodeKubeletConfig kubelet_config = 20; + * @return \Google\Cloud\Container\V1\NodeKubeletConfig|null + */ + public function getKubeletConfig() + { + return $this->kubelet_config; + } + + public function hasKubeletConfig() + { + return isset($this->kubelet_config); + } + + public function clearKubeletConfig() + { + unset($this->kubelet_config); + } + + /** + * Node kubelet configs. + * + * Generated from protobuf field .google.container.v1.NodeKubeletConfig kubelet_config = 20; + * @param \Google\Cloud\Container\V1\NodeKubeletConfig $var + * @return $this + */ + public function setKubeletConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeKubeletConfig::class); + $this->kubelet_config = $var; + + return $this; + } + + /** + * Node network config. + * + * Generated from protobuf field .google.container.v1.NodeNetworkConfig node_network_config = 21; + * @return \Google\Cloud\Container\V1\NodeNetworkConfig|null + */ + public function getNodeNetworkConfig() + { + return $this->node_network_config; + } + + public function hasNodeNetworkConfig() + { + return isset($this->node_network_config); + } + + public function clearNodeNetworkConfig() + { + unset($this->node_network_config); + } + + /** + * Node network config. + * + * Generated from protobuf field .google.container.v1.NodeNetworkConfig node_network_config = 21; + * @param \Google\Cloud\Container\V1\NodeNetworkConfig $var + * @return $this + */ + public function setNodeNetworkConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeNetworkConfig::class); + $this->node_network_config = $var; + + return $this; + } + + /** + * GCFS config. + * + * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 22; + * @return \Google\Cloud\Container\V1\GcfsConfig|null + */ + public function getGcfsConfig() + { + return $this->gcfs_config; + } + + public function hasGcfsConfig() + { + return isset($this->gcfs_config); + } + + public function clearGcfsConfig() + { + unset($this->gcfs_config); + } + + /** + * GCFS config. + * + * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 22; + * @param \Google\Cloud\Container\V1\GcfsConfig $var + * @return $this + */ + public function setGcfsConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GcfsConfig::class); + $this->gcfs_config = $var; + + return $this; + } + + /** + * Confidential nodes config. + * All the nodes in the node pool will be Confidential VM once enabled. + * + * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 23; + * @return \Google\Cloud\Container\V1\ConfidentialNodes|null + */ + public function getConfidentialNodes() + { + return $this->confidential_nodes; + } + + public function hasConfidentialNodes() + { + return isset($this->confidential_nodes); + } + + public function clearConfidentialNodes() + { + unset($this->confidential_nodes); + } + + /** + * Confidential nodes config. + * All the nodes in the node pool will be Confidential VM once enabled. + * + * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 23; + * @param \Google\Cloud\Container\V1\ConfidentialNodes $var + * @return $this + */ + public function setConfidentialNodes($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ConfidentialNodes::class); + $this->confidential_nodes = $var; + + return $this; + } + + /** + * Enable or disable gvnic on the node pool. + * + * Generated from protobuf field .google.container.v1.VirtualNIC gvnic = 29; + * @return \Google\Cloud\Container\V1\VirtualNIC|null + */ + public function getGvnic() + { + return $this->gvnic; + } + + public function hasGvnic() + { + return isset($this->gvnic); + } + + public function clearGvnic() + { + unset($this->gvnic); + } + + /** + * Enable or disable gvnic on the node pool. + * + * Generated from protobuf field .google.container.v1.VirtualNIC gvnic = 29; + * @param \Google\Cloud\Container\V1\VirtualNIC $var + * @return $this + */ + public function setGvnic($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\VirtualNIC::class); + $this->gvnic = $var; + + return $this; + } + + /** + * The current etag of the node pool. + * If an etag is provided and does not match the current etag of the node + * pool, update will be blocked and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 30; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * The current etag of the node pool. + * If an etag is provided and does not match the current etag of the node + * pool, update will be blocked and an ABORTED error will be returned. + * + * Generated from protobuf field string etag = 30; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Enable or disable NCCL fast socket for the node pool. + * + * Generated from protobuf field .google.container.v1.FastSocket fast_socket = 31; + * @return \Google\Cloud\Container\V1\FastSocket|null + */ + public function getFastSocket() + { + return $this->fast_socket; + } + + public function hasFastSocket() + { + return isset($this->fast_socket); + } + + public function clearFastSocket() + { + unset($this->fast_socket); + } + + /** + * Enable or disable NCCL fast socket for the node pool. + * + * Generated from protobuf field .google.container.v1.FastSocket fast_socket = 31; + * @param \Google\Cloud\Container\V1\FastSocket $var + * @return $this + */ + public function setFastSocket($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\FastSocket::class); + $this->fast_socket = $var; + + return $this; + } + + /** + * Logging configuration. + * + * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 32; + * @return \Google\Cloud\Container\V1\NodePoolLoggingConfig|null + */ + public function getLoggingConfig() + { + return $this->logging_config; + } + + public function hasLoggingConfig() + { + return isset($this->logging_config); + } + + public function clearLoggingConfig() + { + unset($this->logging_config); + } + + /** + * Logging configuration. + * + * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 32; + * @param \Google\Cloud\Container\V1\NodePoolLoggingConfig $var + * @return $this + */ + public function setLoggingConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolLoggingConfig::class); + $this->logging_config = $var; + + return $this; + } + + /** + * The resource labels for the node pool to use to annotate any related + * Google Compute Engine resources. + * + * Generated from protobuf field .google.container.v1.ResourceLabels resource_labels = 33; + * @return \Google\Cloud\Container\V1\ResourceLabels|null + */ + public function getResourceLabels() + { + return $this->resource_labels; + } + + public function hasResourceLabels() + { + return isset($this->resource_labels); + } + + public function clearResourceLabels() + { + unset($this->resource_labels); + } + + /** + * The resource labels for the node pool to use to annotate any related + * Google Compute Engine resources. + * + * Generated from protobuf field .google.container.v1.ResourceLabels resource_labels = 33; + * @param \Google\Cloud\Container\V1\ResourceLabels $var + * @return $this + */ + public function setResourceLabels($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ResourceLabels::class); + $this->resource_labels = $var; + + return $this; + } + + /** + * Parameters that can be configured on Windows nodes. + * + * Generated from protobuf field .google.container.v1.WindowsNodeConfig windows_node_config = 34; + * @return \Google\Cloud\Container\V1\WindowsNodeConfig|null + */ + public function getWindowsNodeConfig() + { + return $this->windows_node_config; + } + + public function hasWindowsNodeConfig() + { + return isset($this->windows_node_config); + } + + public function clearWindowsNodeConfig() + { + unset($this->windows_node_config); + } + + /** + * Parameters that can be configured on Windows nodes. + * + * Generated from protobuf field .google.container.v1.WindowsNodeConfig windows_node_config = 34; + * @param \Google\Cloud\Container\V1\WindowsNodeConfig $var + * @return $this + */ + public function setWindowsNodeConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\WindowsNodeConfig::class); + $this->windows_node_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeAvailableEvent.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeAvailableEvent.php new file mode 100644 index 000000000000..fa7673b4da19 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeAvailableEvent.php @@ -0,0 +1,188 @@ +google.container.v1.UpgradeAvailableEvent + */ +class UpgradeAvailableEvent extends \Google\Protobuf\Internal\Message +{ + /** + * The release version available for upgrade. + * + * Generated from protobuf field string version = 1; + */ + protected $version = ''; + /** + * The resource type of the release version. + * + * Generated from protobuf field .google.container.v1.UpgradeResourceType resource_type = 2; + */ + protected $resource_type = 0; + /** + * The release channel of the version. If empty, it means a non-channel + * release. + * + * Generated from protobuf field .google.container.v1.ReleaseChannel release_channel = 3; + */ + protected $release_channel = null; + /** + * Optional relative path to the resource. For example, the relative path of + * the node pool. + * + * Generated from protobuf field string resource = 4; + */ + protected $resource = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $version + * The release version available for upgrade. + * @type int $resource_type + * The resource type of the release version. + * @type \Google\Cloud\Container\V1\ReleaseChannel $release_channel + * The release channel of the version. If empty, it means a non-channel + * release. + * @type string $resource + * Optional relative path to the resource. For example, the relative path of + * the node pool. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The release version available for upgrade. + * + * Generated from protobuf field string version = 1; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * The release version available for upgrade. + * + * Generated from protobuf field string version = 1; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + + /** + * The resource type of the release version. + * + * Generated from protobuf field .google.container.v1.UpgradeResourceType resource_type = 2; + * @return int + */ + public function getResourceType() + { + return $this->resource_type; + } + + /** + * The resource type of the release version. + * + * Generated from protobuf field .google.container.v1.UpgradeResourceType resource_type = 2; + * @param int $var + * @return $this + */ + public function setResourceType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\UpgradeResourceType::class); + $this->resource_type = $var; + + return $this; + } + + /** + * The release channel of the version. If empty, it means a non-channel + * release. + * + * Generated from protobuf field .google.container.v1.ReleaseChannel release_channel = 3; + * @return \Google\Cloud\Container\V1\ReleaseChannel|null + */ + public function getReleaseChannel() + { + return $this->release_channel; + } + + public function hasReleaseChannel() + { + return isset($this->release_channel); + } + + public function clearReleaseChannel() + { + unset($this->release_channel); + } + + /** + * The release channel of the version. If empty, it means a non-channel + * release. + * + * Generated from protobuf field .google.container.v1.ReleaseChannel release_channel = 3; + * @param \Google\Cloud\Container\V1\ReleaseChannel $var + * @return $this + */ + public function setReleaseChannel($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ReleaseChannel::class); + $this->release_channel = $var; + + return $this; + } + + /** + * Optional relative path to the resource. For example, the relative path of + * the node pool. + * + * Generated from protobuf field string resource = 4; + * @return string + */ + public function getResource() + { + return $this->resource; + } + + /** + * Optional relative path to the resource. For example, the relative path of + * the node pool. + * + * Generated from protobuf field string resource = 4; + * @param string $var + * @return $this + */ + public function setResource($var) + { + GPBUtil::checkString($var, True); + $this->resource = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeEvent.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeEvent.php new file mode 100644 index 000000000000..373792fc7920 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeEvent.php @@ -0,0 +1,252 @@ +google.container.v1.UpgradeEvent + */ +class UpgradeEvent extends \Google\Protobuf\Internal\Message +{ + /** + * The resource type that is upgrading. + * + * Generated from protobuf field .google.container.v1.UpgradeResourceType resource_type = 1; + */ + protected $resource_type = 0; + /** + * The operation associated with this upgrade. + * + * Generated from protobuf field string operation = 2; + */ + protected $operation = ''; + /** + * The time when the operation was started. + * + * Generated from protobuf field .google.protobuf.Timestamp operation_start_time = 3; + */ + protected $operation_start_time = null; + /** + * The current version before the upgrade. + * + * Generated from protobuf field string current_version = 4; + */ + protected $current_version = ''; + /** + * The target version for the upgrade. + * + * Generated from protobuf field string target_version = 5; + */ + protected $target_version = ''; + /** + * Optional relative path to the resource. For example in node pool upgrades, + * the relative path of the node pool. + * + * Generated from protobuf field string resource = 6; + */ + protected $resource = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $resource_type + * The resource type that is upgrading. + * @type string $operation + * The operation associated with this upgrade. + * @type \Google\Protobuf\Timestamp $operation_start_time + * The time when the operation was started. + * @type string $current_version + * The current version before the upgrade. + * @type string $target_version + * The target version for the upgrade. + * @type string $resource + * Optional relative path to the resource. For example in node pool upgrades, + * the relative path of the node pool. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The resource type that is upgrading. + * + * Generated from protobuf field .google.container.v1.UpgradeResourceType resource_type = 1; + * @return int + */ + public function getResourceType() + { + return $this->resource_type; + } + + /** + * The resource type that is upgrading. + * + * Generated from protobuf field .google.container.v1.UpgradeResourceType resource_type = 1; + * @param int $var + * @return $this + */ + public function setResourceType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\UpgradeResourceType::class); + $this->resource_type = $var; + + return $this; + } + + /** + * The operation associated with this upgrade. + * + * Generated from protobuf field string operation = 2; + * @return string + */ + public function getOperation() + { + return $this->operation; + } + + /** + * The operation associated with this upgrade. + * + * Generated from protobuf field string operation = 2; + * @param string $var + * @return $this + */ + public function setOperation($var) + { + GPBUtil::checkString($var, True); + $this->operation = $var; + + return $this; + } + + /** + * The time when the operation was started. + * + * Generated from protobuf field .google.protobuf.Timestamp operation_start_time = 3; + * @return \Google\Protobuf\Timestamp|null + */ + public function getOperationStartTime() + { + return $this->operation_start_time; + } + + public function hasOperationStartTime() + { + return isset($this->operation_start_time); + } + + public function clearOperationStartTime() + { + unset($this->operation_start_time); + } + + /** + * The time when the operation was started. + * + * Generated from protobuf field .google.protobuf.Timestamp operation_start_time = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setOperationStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->operation_start_time = $var; + + return $this; + } + + /** + * The current version before the upgrade. + * + * Generated from protobuf field string current_version = 4; + * @return string + */ + public function getCurrentVersion() + { + return $this->current_version; + } + + /** + * The current version before the upgrade. + * + * Generated from protobuf field string current_version = 4; + * @param string $var + * @return $this + */ + public function setCurrentVersion($var) + { + GPBUtil::checkString($var, True); + $this->current_version = $var; + + return $this; + } + + /** + * The target version for the upgrade. + * + * Generated from protobuf field string target_version = 5; + * @return string + */ + public function getTargetVersion() + { + return $this->target_version; + } + + /** + * The target version for the upgrade. + * + * Generated from protobuf field string target_version = 5; + * @param string $var + * @return $this + */ + public function setTargetVersion($var) + { + GPBUtil::checkString($var, True); + $this->target_version = $var; + + return $this; + } + + /** + * Optional relative path to the resource. For example in node pool upgrades, + * the relative path of the node pool. + * + * Generated from protobuf field string resource = 6; + * @return string + */ + public function getResource() + { + return $this->resource; + } + + /** + * Optional relative path to the resource. For example in node pool upgrades, + * the relative path of the node pool. + * + * Generated from protobuf field string resource = 6; + * @param string $var + * @return $this + */ + public function setResource($var) + { + GPBUtil::checkString($var, True); + $this->resource = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeResourceType.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeResourceType.php new file mode 100644 index 000000000000..53f1f2370b97 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeResourceType.php @@ -0,0 +1,62 @@ +google.container.v1.UpgradeResourceType + */ +class UpgradeResourceType +{ + /** + * Default value. This shouldn't be used. + * + * Generated from protobuf enum UPGRADE_RESOURCE_TYPE_UNSPECIFIED = 0; + */ + const UPGRADE_RESOURCE_TYPE_UNSPECIFIED = 0; + /** + * Master / control plane + * + * Generated from protobuf enum MASTER = 1; + */ + const MASTER = 1; + /** + * Node pool + * + * Generated from protobuf enum NODE_POOL = 2; + */ + const NODE_POOL = 2; + + private static $valueToName = [ + self::UPGRADE_RESOURCE_TYPE_UNSPECIFIED => 'UPGRADE_RESOURCE_TYPE_UNSPECIFIED', + self::MASTER => 'MASTER', + self::NODE_POOL => 'NODE_POOL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetwork.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetwork.php new file mode 100644 index 000000000000..64579e77c1be --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetwork.php @@ -0,0 +1,224 @@ +google.container.v1.UsableSubnetwork + */ +class UsableSubnetwork extends \Google\Protobuf\Internal\Message +{ + /** + * Subnetwork Name. + * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet + * + * Generated from protobuf field string subnetwork = 1; + */ + protected $subnetwork = ''; + /** + * Network Name. + * Example: projects/my-project/global/networks/my-network + * + * Generated from protobuf field string network = 2; + */ + protected $network = ''; + /** + * The range of internal addresses that are owned by this subnetwork. + * + * Generated from protobuf field string ip_cidr_range = 3; + */ + protected $ip_cidr_range = ''; + /** + * Secondary IP ranges. + * + * Generated from protobuf field repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + private $secondary_ip_ranges; + /** + * A human readable status message representing the reasons for cases where + * the caller cannot use the secondary ranges under the subnet. For example if + * the secondary_ip_ranges is empty due to a permission issue, an insufficient + * permission message will be given by status_message. + * + * Generated from protobuf field string status_message = 5; + */ + protected $status_message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $subnetwork + * Subnetwork Name. + * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet + * @type string $network + * Network Name. + * Example: projects/my-project/global/networks/my-network + * @type string $ip_cidr_range + * The range of internal addresses that are owned by this subnetwork. + * @type array<\Google\Cloud\Container\V1\UsableSubnetworkSecondaryRange>|\Google\Protobuf\Internal\RepeatedField $secondary_ip_ranges + * Secondary IP ranges. + * @type string $status_message + * A human readable status message representing the reasons for cases where + * the caller cannot use the secondary ranges under the subnet. For example if + * the secondary_ip_ranges is empty due to a permission issue, an insufficient + * permission message will be given by status_message. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * Subnetwork Name. + * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet + * + * Generated from protobuf field string subnetwork = 1; + * @return string + */ + public function getSubnetwork() + { + return $this->subnetwork; + } + + /** + * Subnetwork Name. + * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet + * + * Generated from protobuf field string subnetwork = 1; + * @param string $var + * @return $this + */ + public function setSubnetwork($var) + { + GPBUtil::checkString($var, True); + $this->subnetwork = $var; + + return $this; + } + + /** + * Network Name. + * Example: projects/my-project/global/networks/my-network + * + * Generated from protobuf field string network = 2; + * @return string + */ + public function getNetwork() + { + return $this->network; + } + + /** + * Network Name. + * Example: projects/my-project/global/networks/my-network + * + * Generated from protobuf field string network = 2; + * @param string $var + * @return $this + */ + public function setNetwork($var) + { + GPBUtil::checkString($var, True); + $this->network = $var; + + return $this; + } + + /** + * The range of internal addresses that are owned by this subnetwork. + * + * Generated from protobuf field string ip_cidr_range = 3; + * @return string + */ + public function getIpCidrRange() + { + return $this->ip_cidr_range; + } + + /** + * The range of internal addresses that are owned by this subnetwork. + * + * Generated from protobuf field string ip_cidr_range = 3; + * @param string $var + * @return $this + */ + public function setIpCidrRange($var) + { + GPBUtil::checkString($var, True); + $this->ip_cidr_range = $var; + + return $this; + } + + /** + * Secondary IP ranges. + * + * Generated from protobuf field repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSecondaryIpRanges() + { + return $this->secondary_ip_ranges; + } + + /** + * Secondary IP ranges. + * + * Generated from protobuf field repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * @param array<\Google\Cloud\Container\V1\UsableSubnetworkSecondaryRange>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSecondaryIpRanges($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\UsableSubnetworkSecondaryRange::class); + $this->secondary_ip_ranges = $arr; + + return $this; + } + + /** + * A human readable status message representing the reasons for cases where + * the caller cannot use the secondary ranges under the subnet. For example if + * the secondary_ip_ranges is empty due to a permission issue, an insufficient + * permission message will be given by status_message. + * + * Generated from protobuf field string status_message = 5; + * @return string + */ + public function getStatusMessage() + { + return $this->status_message; + } + + /** + * A human readable status message representing the reasons for cases where + * the caller cannot use the secondary ranges under the subnet. For example if + * the secondary_ip_ranges is empty due to a permission issue, an insufficient + * permission message will be given by status_message. + * + * Generated from protobuf field string status_message = 5; + * @param string $var + * @return $this + */ + public function setStatusMessage($var) + { + GPBUtil::checkString($var, True); + $this->status_message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange.php new file mode 100644 index 000000000000..d66bb1a9839e --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange.php @@ -0,0 +1,139 @@ +google.container.v1.UsableSubnetworkSecondaryRange + */ +class UsableSubnetworkSecondaryRange extends \Google\Protobuf\Internal\Message +{ + /** + * The name associated with this subnetwork secondary range, used when adding + * an alias IP range to a VM instance. + * + * Generated from protobuf field string range_name = 1; + */ + protected $range_name = ''; + /** + * The range of IP addresses belonging to this subnetwork secondary range. + * + * Generated from protobuf field string ip_cidr_range = 2; + */ + protected $ip_cidr_range = ''; + /** + * This field is to determine the status of the secondary range programmably. + * + * Generated from protobuf field .google.container.v1.UsableSubnetworkSecondaryRange.Status status = 3; + */ + protected $status = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $range_name + * The name associated with this subnetwork secondary range, used when adding + * an alias IP range to a VM instance. + * @type string $ip_cidr_range + * The range of IP addresses belonging to this subnetwork secondary range. + * @type int $status + * This field is to determine the status of the secondary range programmably. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * The name associated with this subnetwork secondary range, used when adding + * an alias IP range to a VM instance. + * + * Generated from protobuf field string range_name = 1; + * @return string + */ + public function getRangeName() + { + return $this->range_name; + } + + /** + * The name associated with this subnetwork secondary range, used when adding + * an alias IP range to a VM instance. + * + * Generated from protobuf field string range_name = 1; + * @param string $var + * @return $this + */ + public function setRangeName($var) + { + GPBUtil::checkString($var, True); + $this->range_name = $var; + + return $this; + } + + /** + * The range of IP addresses belonging to this subnetwork secondary range. + * + * Generated from protobuf field string ip_cidr_range = 2; + * @return string + */ + public function getIpCidrRange() + { + return $this->ip_cidr_range; + } + + /** + * The range of IP addresses belonging to this subnetwork secondary range. + * + * Generated from protobuf field string ip_cidr_range = 2; + * @param string $var + * @return $this + */ + public function setIpCidrRange($var) + { + GPBUtil::checkString($var, True); + $this->ip_cidr_range = $var; + + return $this; + } + + /** + * This field is to determine the status of the secondary range programmably. + * + * Generated from protobuf field .google.container.v1.UsableSubnetworkSecondaryRange.Status status = 3; + * @return int + */ + public function getStatus() + { + return $this->status; + } + + /** + * This field is to determine the status of the secondary range programmably. + * + * Generated from protobuf field .google.container.v1.UsableSubnetworkSecondaryRange.Status status = 3; + * @param int $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\UsableSubnetworkSecondaryRange\Status::class); + $this->status = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange/Status.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange/Status.php new file mode 100644 index 000000000000..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/WindowsNodeConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig.php new file mode 100644 index 000000000000..33744a598dae --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig.php @@ -0,0 +1,69 @@ +google.container.v1.WindowsNodeConfig + */ +class WindowsNodeConfig extends \Google\Protobuf\Internal\Message +{ + /** + * OSVersion specifies the Windows node config to be used on the node + * + * Generated from protobuf field .google.container.v1.WindowsNodeConfig.OSVersion os_version = 1; + */ + protected $os_version = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $os_version + * OSVersion specifies the Windows node config to be used on the node + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); + parent::__construct($data); + } + + /** + * OSVersion specifies the Windows node config to be used on the node + * + * Generated from protobuf field .google.container.v1.WindowsNodeConfig.OSVersion os_version = 1; + * @return int + */ + public function getOsVersion() + { + return $this->os_version; + } + + /** + * OSVersion specifies the Windows node config to be used on the node + * + * Generated from protobuf field .google.container.v1.WindowsNodeConfig.OSVersion os_version = 1; + * @param int $var + * @return $this + */ + public function setOsVersion($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\WindowsNodeConfig\OSVersion::class); + $this->os_version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig/OSVersion.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig/OSVersion.php new file mode 100644 index 000000000000..3e27aee4f517 --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig/OSVersion.php @@ -0,0 +1,64 @@ +google.container.v1.WindowsNodeConfig.OSVersion + */ +class OSVersion +{ + /** + * When OSVersion is not specified + * + * Generated from protobuf enum OS_VERSION_UNSPECIFIED = 0; + */ + const OS_VERSION_UNSPECIFIED = 0; + /** + * LTSC2019 specifies to use LTSC2019 as the Windows Servercore Base Image + * + * Generated from protobuf enum OS_VERSION_LTSC2019 = 1; + */ + const OS_VERSION_LTSC2019 = 1; + /** + * LTSC2022 specifies to use LTSC2022 as the Windows Servercore Base Image + * + * Generated from protobuf enum OS_VERSION_LTSC2022 = 2; + */ + const OS_VERSION_LTSC2022 = 2; + + private static $valueToName = [ + self::OS_VERSION_UNSPECIFIED => 'OS_VERSION_UNSPECIFIED', + self::OS_VERSION_LTSC2019 => 'OS_VERSION_LTSC2019', + self::OS_VERSION_LTSC2022 => 'OS_VERSION_LTSC2022', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(OSVersion::class, \Google\Cloud\Container\V1\WindowsNodeConfig_OSVersion::class); + diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig_OSVersion.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig_OSVersion.php new file mode 100644 index 000000000000..034c9d0e56fa --- /dev/null +++ b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig_OSVersion.php @@ -0,0 +1,16 @@ +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(); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_CancelOperation_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_ip_rotation.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_ip_rotation.php new file mode 100644 index 000000000000..f53f033c88c3 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_ip_rotation.php @@ -0,0 +1,53 @@ +completeIPRotation(); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_CompleteIPRotation_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_node_pool_upgrade.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_node_pool_upgrade.php new file mode 100644 index 000000000000..71e41d36e387 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_node_pool_upgrade.php @@ -0,0 +1,52 @@ +completeNodePoolUpgrade(); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_CompleteNodePoolUpgrade_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_cluster.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_cluster.php new file mode 100644 index 000000000000..bae93761d98f --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_cluster.php @@ -0,0 +1,70 @@ +createCluster($cluster); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_CreateCluster_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_node_pool.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_node_pool.php new file mode 100644 index 000000000000..ec47b25cca9a --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_node_pool.php @@ -0,0 +1,57 @@ +createNodePool($nodePool); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_CreateNodePool_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_cluster.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_cluster.php new file mode 100644 index 000000000000..628f86b7d6e9 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_cluster.php @@ -0,0 +1,61 @@ +deleteCluster(); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_DeleteCluster_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_node_pool.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_node_pool.php new file mode 100644 index 000000000000..e6cfb1970afe --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_node_pool.php @@ -0,0 +1,53 @@ +deleteNodePool(); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_DeleteNodePool_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_cluster.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_cluster.php new file mode 100644 index 000000000000..53c275133a3a --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_cluster.php @@ -0,0 +1,53 @@ +getCluster(); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_GetCluster_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_json_web_keys.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_json_web_keys.php new file mode 100644 index 000000000000..b3e7d2ba2569 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_json_web_keys.php @@ -0,0 +1,56 @@ +getJSONWebKeys(); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_GetJSONWebKeys_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_node_pool.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_node_pool.php new file mode 100644 index 000000000000..624fb2baccca --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_node_pool.php @@ -0,0 +1,53 @@ +getNodePool(); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_GetNodePool_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_operation.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_operation.php new file mode 100644 index 000000000000..5a9048aff8f7 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_operation.php @@ -0,0 +1,53 @@ +getOperation(); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_GetOperation_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_server_config.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_server_config.php new file mode 100644 index 000000000000..91e9aff9b10e --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_server_config.php @@ -0,0 +1,53 @@ +getServerConfig(); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_GetServerConfig_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_clusters.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_clusters.php new file mode 100644 index 000000000000..a0bc7cf8f5c4 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_clusters.php @@ -0,0 +1,54 @@ +listClusters(); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_ListClusters_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_node_pools.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_node_pools.php new file mode 100644 index 000000000000..644ffa779f06 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_node_pools.php @@ -0,0 +1,53 @@ +listNodePools(); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_ListNodePools_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_operations.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_operations.php new file mode 100644 index 000000000000..3daf5842276c --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_operations.php @@ -0,0 +1,53 @@ +listOperations(); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_ListOperations_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_usable_subnetworks.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_usable_subnetworks.php new file mode 100644 index 000000000000..f7b57665077c --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_usable_subnetworks.php @@ -0,0 +1,58 @@ +listUsableSubnetworks(); + + /** @var UsableSubnetwork $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_ListUsableSubnetworks_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/rollback_node_pool_upgrade.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/rollback_node_pool_upgrade.php new file mode 100644 index 000000000000..bf55bcd9d498 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/rollback_node_pool_upgrade.php @@ -0,0 +1,54 @@ +rollbackNodePoolUpgrade(); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_RollbackNodePoolUpgrade_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_addons_config.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_addons_config.php new file mode 100644 index 000000000000..8fdde179f0eb --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_addons_config.php @@ -0,0 +1,57 @@ +setAddonsConfig($addonsConfig); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_SetAddonsConfig_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_labels.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_labels.php new file mode 100644 index 000000000000..1817f6c7f5fe --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_labels.php @@ -0,0 +1,73 @@ +setLabels($resourceLabels, $labelFingerprint); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $labelFingerprint = '[LABEL_FINGERPRINT]'; + + set_labels_sample($labelFingerprint); +} +// [END container_v1_generated_ClusterManager_SetLabels_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_legacy_abac.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_legacy_abac.php new file mode 100644 index 000000000000..a97d789070f0 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_legacy_abac.php @@ -0,0 +1,65 @@ +setLegacyAbac($enabled); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $enabled = false; + + set_legacy_abac_sample($enabled); +} +// [END container_v1_generated_ClusterManager_SetLegacyAbac_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_locations.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_locations.php new file mode 100644 index 000000000000..e83210da5538 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_locations.php @@ -0,0 +1,77 @@ +setLocations($locations); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $locationsElement = '[LOCATIONS]'; + + set_locations_sample($locationsElement); +} +// [END container_v1_generated_ClusterManager_SetLocations_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_logging_service.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_logging_service.php new file mode 100644 index 000000000000..266beda820ba --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_logging_service.php @@ -0,0 +1,75 @@ +setLoggingService($loggingService); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $loggingService = '[LOGGING_SERVICE]'; + + set_logging_service_sample($loggingService); +} +// [END container_v1_generated_ClusterManager_SetLoggingService_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_maintenance_policy.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_maintenance_policy.php new file mode 100644 index 000000000000..7c267904de58 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_maintenance_policy.php @@ -0,0 +1,81 @@ +setMaintenancePolicy( + $projectId, + $zone, + $clusterId, + $maintenancePolicy + ); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $projectId = '[PROJECT_ID]'; + $zone = '[ZONE]'; + $clusterId = '[CLUSTER_ID]'; + + set_maintenance_policy_sample($projectId, $zone, $clusterId); +} +// [END container_v1_generated_ClusterManager_SetMaintenancePolicy_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_master_auth.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_master_auth.php new file mode 100644 index 000000000000..03aaa103e441 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_master_auth.php @@ -0,0 +1,72 @@ +setMasterAuth($action, $update); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $action = Action::UNKNOWN; + + set_master_auth_sample($action); +} +// [END container_v1_generated_ClusterManager_SetMasterAuth_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_monitoring_service.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_monitoring_service.php new file mode 100644 index 000000000000..03e8cab20ce6 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_monitoring_service.php @@ -0,0 +1,75 @@ +setMonitoringService($monitoringService); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $monitoringService = '[MONITORING_SERVICE]'; + + set_monitoring_service_sample($monitoringService); +} +// [END container_v1_generated_ClusterManager_SetMonitoringService_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_network_policy.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_network_policy.php new file mode 100644 index 000000000000..84c18b4d5983 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_network_policy.php @@ -0,0 +1,57 @@ +setNetworkPolicy($networkPolicy); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_SetNetworkPolicy_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_autoscaling.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_autoscaling.php new file mode 100644 index 000000000000..b03ab267efe6 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_autoscaling.php @@ -0,0 +1,57 @@ +setNodePoolAutoscaling($autoscaling); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_SetNodePoolAutoscaling_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_management.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_management.php new file mode 100644 index 000000000000..24a9a7206978 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_management.php @@ -0,0 +1,57 @@ +setNodePoolManagement($management); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_SetNodePoolManagement_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_size.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_size.php new file mode 100644 index 000000000000..f6db7a220391 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_size.php @@ -0,0 +1,67 @@ +setNodePoolSize($nodeCount); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $nodeCount = 0; + + set_node_pool_size_sample($nodeCount); +} +// [END container_v1_generated_ClusterManager_SetNodePoolSize_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/start_ip_rotation.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/start_ip_rotation.php new file mode 100644 index 000000000000..eca0e46ff123 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/start_ip_rotation.php @@ -0,0 +1,53 @@ +startIPRotation(); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_StartIPRotation_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_cluster.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_cluster.php new file mode 100644 index 000000000000..8430a0e5db80 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_cluster.php @@ -0,0 +1,57 @@ +updateCluster($update); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END container_v1_generated_ClusterManager_UpdateCluster_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_master.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_master.php new file mode 100644 index 000000000000..3ed039dad8a3 --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_master.php @@ -0,0 +1,74 @@ +updateMaster($masterVersion); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $masterVersion = '[MASTER_VERSION]'; + + update_master_sample($masterVersion); +} +// [END container_v1_generated_ClusterManager_UpdateMaster_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_node_pool.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_node_pool.php new file mode 100644 index 000000000000..8b7bf433555e --- /dev/null +++ b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_node_pool.php @@ -0,0 +1,79 @@ +updateNodePool($nodeVersion, $imageType); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $nodeVersion = '[NODE_VERSION]'; + $imageType = '[IMAGE_TYPE]'; + + update_node_pool_sample($nodeVersion, $imageType); +} +// [END container_v1_generated_ClusterManager_UpdateNodePool_sync] diff --git a/owl-bot-staging/Container/v1/src/V1/ClusterManagerClient.php b/owl-bot-staging/Container/v1/src/V1/ClusterManagerClient.php new file mode 100644 index 000000000000..86841f67ee6e --- /dev/null +++ b/owl-bot-staging/Container/v1/src/V1/ClusterManagerClient.php @@ -0,0 +1,34 @@ +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, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/cluster_manager_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/cluster_manager_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/cluster_manager_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/cluster_manager_rest_client_config.php', + ], + ], + ]; + } + + /** + * Constructor. + * + * @param array $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'container.googleapis.com:443'. + * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials + * The credentials to be used by the client to authorize API calls. This option + * accepts either a path to a credentials file, or a decoded credentials file as a + * PHP array. + * *Advanced usage*: In addition, this option can also accept a pre-constructed + * {@see \Google\Auth\FetchAuthTokenInterface} object or + * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these + * objects are provided, any settings in $credentialsConfig will be ignored. + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * } + * + * @throws ValidationException + */ + public function __construct(array $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** + * Cancels the specified operation. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $clusterManagerClient->cancelOperation(); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * operation resides. This field has been deprecated and replaced by the name + * field. + * @type string $operationId + * Deprecated. The server-assigned `name` of the operation. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, operation id) of the operation to cancel. + * Specified in the format `projects/*/locations/*/operations/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException if the remote call fails + */ + public function cancelOperation(array $optionalArgs = []) + { + $request = new CancelOperationRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['operationId'])) { + $request->setOperationId($optionalArgs['operationId']); + $requestParamHeaders['operation_id'] = $optionalArgs['operationId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CancelOperation', GPBEmpty::class, $optionalArgs, $request)->wait(); + } + + /** + * Completes master IP rotation. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $response = $clusterManagerClient->completeIPRotation(); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster name) of the cluster to complete IP + * rotation. Specified in the format `projects/*/locations/*/clusters/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function completeIPRotation(array $optionalArgs = []) + { + $request = new CompleteIPRotationRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CompleteIPRotation', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * CompleteNodePoolUpgrade will signal an on-going node pool upgrade to + * complete. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $clusterManagerClient->completeNodePoolUpgrade(); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $name + * The name (project, location, cluster, node pool id) of the node pool to + * complete upgrade. + * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException if the remote call fails + */ + public function completeNodePoolUpgrade(array $optionalArgs = []) + { + $request = new CompleteNodePoolUpgradeRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CompleteNodePoolUpgrade', GPBEmpty::class, $optionalArgs, $request)->wait(); + } + + /** + * Creates a cluster, consisting of the specified number and type of Google + * Compute Engine instances. + * + * By default, the cluster is created in the project's + * [default + * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). + * + * One firewall is added for the cluster. After cluster creation, + * the Kubelet creates routes for each node to allow the containers + * on that node to communicate with all other instances in the + * cluster. + * + * Finally, an entry is added to the project's global metadata indicating + * which CIDR range the cluster is using. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $cluster = new Cluster(); + * $response = $clusterManagerClient->createCluster($cluster); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param Cluster $cluster Required. A [cluster + * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the parent + * field. + * @type string $parent + * The parent (project and location) where the cluster will be created. + * Specified in the format `projects/*/locations/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function createCluster($cluster, array $optionalArgs = []) + { + $request = new CreateClusterRequest(); + $requestParamHeaders = []; + $request->setCluster($cluster); + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['parent'])) { + $request->setParent($optionalArgs['parent']); + $requestParamHeaders['parent'] = $optionalArgs['parent']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CreateCluster', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Creates a node pool for a cluster. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $nodePool = new NodePool(); + * $response = $clusterManagerClient->createNodePool($nodePool); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param NodePool $nodePool Required. The node pool to create. + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the parent + * field. + * @type string $clusterId + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the parent field. + * @type string $parent + * The parent (project, location, cluster name) where the node pool will be + * created. Specified in the format + * `projects/*/locations/*/clusters/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function createNodePool($nodePool, array $optionalArgs = []) + { + $request = new CreateNodePoolRequest(); + $requestParamHeaders = []; + $request->setNodePool($nodePool); + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['parent'])) { + $request->setParent($optionalArgs['parent']); + $requestParamHeaders['parent'] = $optionalArgs['parent']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CreateNodePool', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Deletes the cluster, including the Kubernetes endpoint and all worker + * nodes. + * + * Firewalls and routes that were configured during cluster creation + * are also deleted. + * + * Other Google Compute Engine resources that might be in use by the cluster, + * such as load balancer resources, are not deleted if they weren't present + * when the cluster was initially created. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $response = $clusterManagerClient->deleteCluster(); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster to delete. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster) of the cluster to delete. + * Specified in the format `projects/*/locations/*/clusters/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function deleteCluster(array $optionalArgs = []) + { + $request = new DeleteClusterRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('DeleteCluster', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Deletes a node pool from a cluster. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $response = $clusterManagerClient->deleteNodePool(); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * @type string $nodePoolId + * Deprecated. The name of the node pool to delete. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster, node pool id) of the node pool to + * delete. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function deleteNodePool(array $optionalArgs = []) + { + $request = new DeleteNodePoolRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['nodePoolId'])) { + $request->setNodePoolId($optionalArgs['nodePoolId']); + $requestParamHeaders['node_pool_id'] = $optionalArgs['nodePoolId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('DeleteNodePool', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Gets the details of a specific cluster. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $response = $clusterManagerClient->getCluster(); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster to retrieve. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster) of the cluster to retrieve. + * Specified in the format `projects/*/locations/*/clusters/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Cluster + * + * @throws ApiException if the remote call fails + */ + public function getCluster(array $optionalArgs = []) + { + $request = new GetClusterRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetCluster', Cluster::class, $optionalArgs, $request)->wait(); + } + + /** + * Gets the public component of the cluster signing keys in + * JSON Web Key format. + * 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 name) to get keys for. Specified in + * the format `projects/*/locations/*/clusters/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\GetJSONWebKeysResponse + * + * @throws ApiException if the remote call fails + */ + public function getJSONWebKeys(array $optionalArgs = []) + { + $request = new GetJSONWebKeysRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['parent'])) { + $request->setParent($optionalArgs['parent']); + $requestParamHeaders['parent'] = $optionalArgs['parent']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetJSONWebKeys', GetJSONWebKeysResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * Retrieves the requested node pool. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $response = $clusterManagerClient->getNodePool(); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * @type string $nodePoolId + * Deprecated. The name of the node pool. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster, node pool id) of the node pool to + * get. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\NodePool + * + * @throws ApiException if the remote call fails + */ + public function getNodePool(array $optionalArgs = []) + { + $request = new GetNodePoolRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['nodePoolId'])) { + $request->setNodePoolId($optionalArgs['nodePoolId']); + $requestParamHeaders['node_pool_id'] = $optionalArgs['nodePoolId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetNodePool', NodePool::class, $optionalArgs, $request)->wait(); + } + + /** + * Gets the specified operation. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $response = $clusterManagerClient->getOperation(); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $operationId + * Deprecated. The server-assigned `name` of the operation. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, operation id) of the operation to get. + * Specified in the format `projects/*/locations/*/operations/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function getOperation(array $optionalArgs = []) + { + $request = new GetOperationRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['operationId'])) { + $request->setOperationId($optionalArgs['operationId']); + $requestParamHeaders['operation_id'] = $optionalArgs['operationId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetOperation', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Returns configuration info about the Google Kubernetes Engine service. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $response = $clusterManagerClient->getServerConfig(); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) to return + * operations for. This field has been deprecated and replaced by the name + * field. + * @type string $name + * The name (project and location) of the server config to get, + * specified in the format `projects/*/locations/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\ServerConfig + * + * @throws ApiException if the remote call fails + */ + public function getServerConfig(array $optionalArgs = []) + { + $request = new GetServerConfigRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetServerConfig', ServerConfig::class, $optionalArgs, $request)->wait(); + } + + /** + * Lists all clusters owned by a project in either the specified zone or all + * zones. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $response = $clusterManagerClient->listClusters(); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides, or "-" for all zones. This field has been deprecated and + * replaced by the parent field. + * @type string $parent + * The parent (project and location) where the clusters will be listed. + * Specified in the format `projects/*/locations/*`. + * Location "-" matches all zones and all regions. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\ListClustersResponse + * + * @throws ApiException if the remote call fails + */ + public function listClusters(array $optionalArgs = []) + { + $request = new ListClustersRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['parent'])) { + $request->setParent($optionalArgs['parent']); + $requestParamHeaders['parent'] = $optionalArgs['parent']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('ListClusters', ListClustersResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * Lists the node pools for a cluster. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $response = $clusterManagerClient->listNodePools(); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the parent + * field. + * @type string $clusterId + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the parent field. + * @type string $parent + * The parent (project, location, cluster name) where the node pools will be + * listed. Specified in the format `projects/*/locations/*/clusters/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\ListNodePoolsResponse + * + * @throws ApiException if the remote call fails + */ + public function listNodePools(array $optionalArgs = []) + { + $request = new ListNodePoolsRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['parent'])) { + $request->setParent($optionalArgs['parent']); + $requestParamHeaders['parent'] = $optionalArgs['parent']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('ListNodePools', ListNodePoolsResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * Lists all operations in a project in a specific zone or all zones. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $response = $clusterManagerClient->listOperations(); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the parent field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) to return + * operations for, or `-` for all zones. This field has been deprecated and + * replaced by the parent field. + * @type string $parent + * The parent (project and location) where the operations will be listed. + * Specified in the format `projects/*/locations/*`. + * Location "-" matches all zones and all regions. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\ListOperationsResponse + * + * @throws ApiException if the remote call fails + */ + public function listOperations(array $optionalArgs = []) + { + $request = new ListOperationsRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['parent'])) { + $request->setParent($optionalArgs['parent']); + $requestParamHeaders['parent'] = $optionalArgs['parent']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('ListOperations', ListOperationsResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * Lists subnetworks that are usable for creating clusters in a project. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * // Iterate over pages of elements + * $pagedResponse = $clusterManagerClient->listUsableSubnetworks(); + * foreach ($pagedResponse->iteratePages() as $page) { + * foreach ($page as $element) { + * // doSomethingWith($element); + * } + * } + * // Alternatively: + * // Iterate through all elements + * $pagedResponse = $clusterManagerClient->listUsableSubnetworks(); + * foreach ($pagedResponse->iterateAllElements() as $element) { + * // doSomethingWith($element); + * } + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $parent + * The parent project where subnetworks are usable. + * Specified in the format `projects/*`. + * @type string $filter + * Filtering currently only supports equality on the networkProjectId and must + * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` + * is the project which owns the listed subnetworks. This defaults to the + * parent project ID. + * @type int $pageSize + * The maximum number of resources contained in the underlying API + * response. The API may return fewer values in a page, even if + * there are additional values to be retrieved. + * @type string $pageToken + * A page token is used to specify a page of values to be returned. + * If no page token is specified (the default), the first page + * of values will be returned. Any page token used here must have + * been generated by a previous call to the API. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\ApiCore\PagedListResponse + * + * @throws ApiException if the remote call fails + */ + public function listUsableSubnetworks(array $optionalArgs = []) + { + $request = new ListUsableSubnetworksRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['parent'])) { + $request->setParent($optionalArgs['parent']); + $requestParamHeaders['parent'] = $optionalArgs['parent']; + } + + if (isset($optionalArgs['filter'])) { + $request->setFilter($optionalArgs['filter']); + } + + if (isset($optionalArgs['pageSize'])) { + $request->setPageSize($optionalArgs['pageSize']); + } + + if (isset($optionalArgs['pageToken'])) { + $request->setPageToken($optionalArgs['pageToken']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->getPagedListResponse('ListUsableSubnetworks', $optionalArgs, ListUsableSubnetworksResponse::class, $request); + } + + /** + * Rolls back a previously Aborted or Failed NodePool upgrade. + * This makes no changes if the last upgrade successfully completed. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $response = $clusterManagerClient->rollbackNodePoolUpgrade(); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster to rollback. + * This field has been deprecated and replaced by the name field. + * @type string $nodePoolId + * Deprecated. The name of the node pool to rollback. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster, node pool id) of the node poll to + * rollback upgrade. + * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. + * @type bool $respectPdb + * Option for rollback to ignore the PodDisruptionBudget. + * Default value is false. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function rollbackNodePoolUpgrade(array $optionalArgs = []) + { + $request = new RollbackNodePoolUpgradeRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['nodePoolId'])) { + $request->setNodePoolId($optionalArgs['nodePoolId']); + $requestParamHeaders['node_pool_id'] = $optionalArgs['nodePoolId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + if (isset($optionalArgs['respectPdb'])) { + $request->setRespectPdb($optionalArgs['respectPdb']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('RollbackNodePoolUpgrade', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Sets the addons for a specific cluster. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $addonsConfig = new AddonsConfig(); + * $response = $clusterManagerClient->setAddonsConfig($addonsConfig); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param AddonsConfig $addonsConfig Required. The desired configurations for the various addons available to + * run in the cluster. + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster) of the cluster to set addons. + * Specified in the format `projects/*/locations/*/clusters/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function setAddonsConfig($addonsConfig, array $optionalArgs = []) + { + $request = new SetAddonsConfigRequest(); + $requestParamHeaders = []; + $request->setAddonsConfig($addonsConfig); + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('SetAddonsConfig', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Sets labels on a cluster. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $resourceLabels = []; + * $labelFingerprint = 'label_fingerprint'; + * $response = $clusterManagerClient->setLabels($resourceLabels, $labelFingerprint); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param array $resourceLabels Required. The labels to set for that cluster. + * @param string $labelFingerprint Required. The fingerprint of the previous set of labels for this resource, + * used to detect conflicts. The fingerprint is initially generated by + * Kubernetes Engine and changes after every request to modify or update + * labels. You must always provide an up-to-date fingerprint hash when + * updating or changing labels. Make a `get()` request to the + * resource to get the latest fingerprint. + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster name) of the cluster to set labels. + * Specified in the format `projects/*/locations/*/clusters/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function setLabels($resourceLabels, $labelFingerprint, array $optionalArgs = []) + { + $request = new SetLabelsRequest(); + $requestParamHeaders = []; + $request->setResourceLabels($resourceLabels); + $request->setLabelFingerprint($labelFingerprint); + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('SetLabels', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Enables or disables the ABAC authorization mechanism on a cluster. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $enabled = false; + * $response = $clusterManagerClient->setLegacyAbac($enabled); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param bool $enabled Required. Whether ABAC authorization will be enabled in the cluster. + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster name) of the cluster to set legacy + * abac. Specified in the format `projects/*/locations/*/clusters/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function setLegacyAbac($enabled, array $optionalArgs = []) + { + $request = new SetLegacyAbacRequest(); + $requestParamHeaders = []; + $request->setEnabled($enabled); + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('SetLegacyAbac', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Sets the locations for a specific cluster. + * Deprecated. Use + * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update) + * instead. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $locations = []; + * $response = $clusterManagerClient->setLocations($locations); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param string[] $locations Required. The desired list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster's nodes should be located. Changing the locations a cluster is in + * will result in nodes being either created or removed from the cluster, + * depending on whether locations are being added or removed. + * + * This list must always include the cluster's primary zone. + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster) of the cluster to set locations. + * Specified in the format `projects/*/locations/*/clusters/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + * + * @deprecated This method will be removed in the next major version update. + */ + public function setLocations($locations, array $optionalArgs = []) + { + $request = new SetLocationsRequest(); + $requestParamHeaders = []; + $request->setLocations($locations); + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('SetLocations', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Sets the logging service for a specific cluster. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $loggingService = 'logging_service'; + * $response = $clusterManagerClient->setLoggingService($loggingService); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param string $loggingService Required. The logging service the cluster should use to write logs. + * Currently available options: + * + * * `logging.googleapis.com/kubernetes` - The Cloud Logging + * service with a Kubernetes-native resource model + * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + * available as of GKE 1.15). + * * `none` - no logs will be exported from the cluster. + * + * If left as an empty string,`logging.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster) of the cluster to set logging. + * Specified in the format `projects/*/locations/*/clusters/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function setLoggingService($loggingService, array $optionalArgs = []) + { + $request = new SetLoggingServiceRequest(); + $requestParamHeaders = []; + $request->setLoggingService($loggingService); + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('SetLoggingService', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Sets the maintenance policy for a cluster. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $projectId = 'project_id'; + * $zone = 'zone'; + * $clusterId = 'cluster_id'; + * $maintenancePolicy = new MaintenancePolicy(); + * $response = $clusterManagerClient->setMaintenancePolicy($projectId, $zone, $clusterId, $maintenancePolicy); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param string $projectId Required. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * @param string $zone Required. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. + * @param string $clusterId Required. The name of the cluster to update. + * @param MaintenancePolicy $maintenancePolicy Required. The maintenance policy to be set for the cluster. An empty field + * clears the existing maintenance policy. + * @param array $optionalArgs { + * Optional. + * + * @type string $name + * The name (project, location, cluster name) of the cluster to set + * maintenance policy. + * Specified in the format `projects/*/locations/*/clusters/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function setMaintenancePolicy($projectId, $zone, $clusterId, $maintenancePolicy, array $optionalArgs = []) + { + $request = new SetMaintenancePolicyRequest(); + $requestParamHeaders = []; + $request->setProjectId($projectId); + $request->setZone($zone); + $request->setClusterId($clusterId); + $request->setMaintenancePolicy($maintenancePolicy); + $requestParamHeaders['project_id'] = $projectId; + $requestParamHeaders['zone'] = $zone; + $requestParamHeaders['cluster_id'] = $clusterId; + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('SetMaintenancePolicy', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Sets master auth materials. Currently supports changing the admin password + * or a specific cluster, either via password generation or explicitly setting + * the password. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $action = Action::UNKNOWN; + * $update = new MasterAuth(); + * $response = $clusterManagerClient->setMasterAuth($action, $update); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param int $action Required. The exact form of action to be taken on the master auth. + * For allowed values, use constants defined on {@see \Google\Cloud\Container\V1\SetMasterAuthRequest\Action} + * @param MasterAuth $update Required. A description of the update. + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster) of the cluster to set auth. + * Specified in the format `projects/*/locations/*/clusters/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function setMasterAuth($action, $update, array $optionalArgs = []) + { + $request = new SetMasterAuthRequest(); + $requestParamHeaders = []; + $request->setAction($action); + $request->setUpdate($update); + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('SetMasterAuth', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Sets the monitoring service for a specific cluster. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $monitoringService = 'monitoring_service'; + * $response = $clusterManagerClient->setMonitoringService($monitoringService); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param string $monitoringService Required. The monitoring service the cluster should use to write metrics. + * Currently available options: + * + * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + * service with a Kubernetes-native resource model + * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + * longer available as of GKE 1.15). + * * `none` - No metrics will be exported from the cluster. + * + * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster) of the cluster to set monitoring. + * Specified in the format `projects/*/locations/*/clusters/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function setMonitoringService($monitoringService, array $optionalArgs = []) + { + $request = new SetMonitoringServiceRequest(); + $requestParamHeaders = []; + $request->setMonitoringService($monitoringService); + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('SetMonitoringService', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Enables or disables Network Policy for a cluster. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $networkPolicy = new NetworkPolicy(); + * $response = $clusterManagerClient->setNetworkPolicy($networkPolicy); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param NetworkPolicy $networkPolicy Required. Configuration options for the NetworkPolicy feature. + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster name) of the cluster to set networking + * policy. Specified in the format `projects/*/locations/*/clusters/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function setNetworkPolicy($networkPolicy, array $optionalArgs = []) + { + $request = new SetNetworkPolicyRequest(); + $requestParamHeaders = []; + $request->setNetworkPolicy($networkPolicy); + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('SetNetworkPolicy', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Sets the autoscaling settings for the specified node pool. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $autoscaling = new NodePoolAutoscaling(); + * $response = $clusterManagerClient->setNodePoolAutoscaling($autoscaling); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param NodePoolAutoscaling $autoscaling Required. Autoscaling configuration for the node pool. + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @type string $nodePoolId + * Deprecated. The name of the node pool to upgrade. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster, node pool) of the node pool to set + * autoscaler settings. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function setNodePoolAutoscaling($autoscaling, array $optionalArgs = []) + { + $request = new SetNodePoolAutoscalingRequest(); + $requestParamHeaders = []; + $request->setAutoscaling($autoscaling); + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['nodePoolId'])) { + $request->setNodePoolId($optionalArgs['nodePoolId']); + $requestParamHeaders['node_pool_id'] = $optionalArgs['nodePoolId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('SetNodePoolAutoscaling', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Sets the NodeManagement options for a node pool. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $management = new NodeManagement(); + * $response = $clusterManagerClient->setNodePoolManagement($management); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param NodeManagement $management Required. NodeManagement configuration for the node pool. + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. + * @type string $nodePoolId + * Deprecated. The name of the node pool to update. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster, node pool id) of the node pool to set + * management properties. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function setNodePoolManagement($management, array $optionalArgs = []) + { + $request = new SetNodePoolManagementRequest(); + $requestParamHeaders = []; + $request->setManagement($management); + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['nodePoolId'])) { + $request->setNodePoolId($optionalArgs['nodePoolId']); + $requestParamHeaders['node_pool_id'] = $optionalArgs['nodePoolId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('SetNodePoolManagement', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Sets the size for a specific node pool. The new size will be used for all + * replicas, including future replicas created by modifying + * [NodePool.locations][google.container.v1.NodePool.locations]. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $nodeCount = 0; + * $response = $clusterManagerClient->setNodePoolSize($nodeCount); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param int $nodeCount Required. The desired node count for the pool. + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. + * @type string $nodePoolId + * Deprecated. The name of the node pool to update. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster, node pool id) of the node pool to set + * size. + * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function setNodePoolSize($nodeCount, array $optionalArgs = []) + { + $request = new SetNodePoolSizeRequest(); + $requestParamHeaders = []; + $request->setNodeCount($nodeCount); + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['nodePoolId'])) { + $request->setNodePoolId($optionalArgs['nodePoolId']); + $requestParamHeaders['node_pool_id'] = $optionalArgs['nodePoolId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('SetNodePoolSize', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Starts master IP rotation. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $response = $clusterManagerClient->startIPRotation(); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster name) of the cluster to start IP + * rotation. Specified in the format `projects/*/locations/*/clusters/*`. + * @type bool $rotateCredentials + * Whether to rotate credentials during IP rotation. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function startIPRotation(array $optionalArgs = []) + { + $request = new StartIPRotationRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + if (isset($optionalArgs['rotateCredentials'])) { + $request->setRotateCredentials($optionalArgs['rotateCredentials']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('StartIPRotation', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Updates the settings of a specific cluster. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $update = new ClusterUpdate(); + * $response = $clusterManagerClient->updateCluster($update); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param ClusterUpdate $update Required. A description of the update. + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster) of the cluster to update. + * Specified in the format `projects/*/locations/*/clusters/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function updateCluster($update, array $optionalArgs = []) + { + $request = new UpdateClusterRequest(); + $requestParamHeaders = []; + $request->setUpdate($update); + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('UpdateCluster', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Updates the master for a specific cluster. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $masterVersion = 'master_version'; + * $response = $clusterManagerClient->updateMaster($masterVersion); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param string $masterVersion Required. The Kubernetes version to change the master to. + * + * Users may specify either explicit versions offered by Kubernetes Engine or + * version aliases, which have the following behavior: + * + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the default Kubernetes version + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster) of the cluster to update. + * Specified in the format `projects/*/locations/*/clusters/*`. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function updateMaster($masterVersion, array $optionalArgs = []) + { + $request = new UpdateMasterRequest(); + $requestParamHeaders = []; + $request->setMasterVersion($masterVersion); + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('UpdateMaster', Operation::class, $optionalArgs, $request)->wait(); + } + + /** + * Updates the version and/or image type for the specified node pool. + * + * Sample code: + * ``` + * $clusterManagerClient = new ClusterManagerClient(); + * try { + * $nodeVersion = 'node_version'; + * $imageType = 'image_type'; + * $response = $clusterManagerClient->updateNodePool($nodeVersion, $imageType); + * } finally { + * $clusterManagerClient->close(); + * } + * ``` + * + * @param string $nodeVersion Required. The Kubernetes version to change the nodes to (typically an + * upgrade). + * + * Users may specify either explicit versions offered by Kubernetes Engine or + * version aliases, which have the following behavior: + * + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the Kubernetes master version + * @param string $imageType Required. The desired image type for the node pool. Please see + * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for + * available image types. + * @param array $optionalArgs { + * Optional. + * + * @type string $projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). + * This field has been deprecated and replaced by the name field. + * @type string $zone + * Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. + * @type string $clusterId + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @type string $nodePoolId + * Deprecated. The name of the node pool to upgrade. + * This field has been deprecated and replaced by the name field. + * @type string $name + * The name (project, location, cluster, node pool) of the node pool to + * update. Specified in the format + * `projects/*/locations/*/clusters/*/nodePools/*`. + * @type string[] $locations + * The desired list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * node pool's nodes should be located. Changing the locations for a node pool + * will result in nodes being either created or removed from the node pool, + * depending on whether locations are being added or removed. + * @type WorkloadMetadataConfig $workloadMetadataConfig + * The desired workload metadata config for the node pool. + * @type UpgradeSettings $upgradeSettings + * Upgrade settings control disruption and speed of the upgrade. + * @type NetworkTags $tags + * The desired network tags to be applied to all nodes in the node pool. + * If this field is not present, the tags will not be changed. Otherwise, + * the existing network tags will be *replaced* with the provided tags. + * @type NodeTaints $taints + * The desired node taints to be applied to all nodes in the node pool. + * If this field is not present, the taints will not be changed. Otherwise, + * the existing node taints will be *replaced* with the provided taints. + * @type NodeLabels $labels + * The desired node labels to be applied to all nodes in the node pool. + * If this field is not present, the labels will not be changed. Otherwise, + * the existing node labels will be *replaced* with the provided labels. + * @type LinuxNodeConfig $linuxNodeConfig + * Parameters that can be configured on Linux nodes. + * @type NodeKubeletConfig $kubeletConfig + * Node kubelet configs. + * @type NodeNetworkConfig $nodeNetworkConfig + * Node network config. + * @type GcfsConfig $gcfsConfig + * GCFS config. + * @type ConfidentialNodes $confidentialNodes + * Confidential nodes config. + * All the nodes in the node pool will be Confidential VM once enabled. + * @type VirtualNIC $gvnic + * Enable or disable gvnic on the node pool. + * @type string $etag + * The current etag of the node pool. + * If an etag is provided and does not match the current etag of the node + * pool, update will be blocked and an ABORTED error will be returned. + * @type FastSocket $fastSocket + * Enable or disable NCCL fast socket for the node pool. + * @type NodePoolLoggingConfig $loggingConfig + * Logging configuration. + * @type ResourceLabels $resourceLabels + * The resource labels for the node pool to use to annotate any related + * Google Compute Engine resources. + * @type WindowsNodeConfig $windowsNodeConfig + * Parameters that can be configured on Windows nodes. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Cloud\Container\V1\Operation + * + * @throws ApiException if the remote call fails + */ + public function updateNodePool($nodeVersion, $imageType, array $optionalArgs = []) + { + $request = new UpdateNodePoolRequest(); + $requestParamHeaders = []; + $request->setNodeVersion($nodeVersion); + $request->setImageType($imageType); + if (isset($optionalArgs['projectId'])) { + $request->setProjectId($optionalArgs['projectId']); + $requestParamHeaders['project_id'] = $optionalArgs['projectId']; + } + + if (isset($optionalArgs['zone'])) { + $request->setZone($optionalArgs['zone']); + $requestParamHeaders['zone'] = $optionalArgs['zone']; + } + + if (isset($optionalArgs['clusterId'])) { + $request->setClusterId($optionalArgs['clusterId']); + $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; + } + + if (isset($optionalArgs['nodePoolId'])) { + $request->setNodePoolId($optionalArgs['nodePoolId']); + $requestParamHeaders['node_pool_id'] = $optionalArgs['nodePoolId']; + } + + if (isset($optionalArgs['name'])) { + $request->setName($optionalArgs['name']); + $requestParamHeaders['name'] = $optionalArgs['name']; + } + + if (isset($optionalArgs['locations'])) { + $request->setLocations($optionalArgs['locations']); + } + + if (isset($optionalArgs['workloadMetadataConfig'])) { + $request->setWorkloadMetadataConfig($optionalArgs['workloadMetadataConfig']); + } + + if (isset($optionalArgs['upgradeSettings'])) { + $request->setUpgradeSettings($optionalArgs['upgradeSettings']); + } + + if (isset($optionalArgs['tags'])) { + $request->setTags($optionalArgs['tags']); + } + + if (isset($optionalArgs['taints'])) { + $request->setTaints($optionalArgs['taints']); + } + + if (isset($optionalArgs['labels'])) { + $request->setLabels($optionalArgs['labels']); + } + + if (isset($optionalArgs['linuxNodeConfig'])) { + $request->setLinuxNodeConfig($optionalArgs['linuxNodeConfig']); + } + + if (isset($optionalArgs['kubeletConfig'])) { + $request->setKubeletConfig($optionalArgs['kubeletConfig']); + } + + if (isset($optionalArgs['nodeNetworkConfig'])) { + $request->setNodeNetworkConfig($optionalArgs['nodeNetworkConfig']); + } + + if (isset($optionalArgs['gcfsConfig'])) { + $request->setGcfsConfig($optionalArgs['gcfsConfig']); + } + + if (isset($optionalArgs['confidentialNodes'])) { + $request->setConfidentialNodes($optionalArgs['confidentialNodes']); + } + + if (isset($optionalArgs['gvnic'])) { + $request->setGvnic($optionalArgs['gvnic']); + } + + if (isset($optionalArgs['etag'])) { + $request->setEtag($optionalArgs['etag']); + } + + if (isset($optionalArgs['fastSocket'])) { + $request->setFastSocket($optionalArgs['fastSocket']); + } + + if (isset($optionalArgs['loggingConfig'])) { + $request->setLoggingConfig($optionalArgs['loggingConfig']); + } + + if (isset($optionalArgs['resourceLabels'])) { + $request->setResourceLabels($optionalArgs['resourceLabels']); + } + + if (isset($optionalArgs['windowsNodeConfig'])) { + $request->setWindowsNodeConfig($optionalArgs['windowsNodeConfig']); + } + + $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..b4b2e167b1b0 --- /dev/null +++ b/owl-bot-staging/Container/v1/src/V1/gapic_metadata.json @@ -0,0 +1,183 @@ +{ + "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" + ] + }, + "CompleteNodePoolUpgrade": { + "methods": [ + "completeNodePoolUpgrade" + ] + }, + "CreateCluster": { + "methods": [ + "createCluster" + ] + }, + "CreateNodePool": { + "methods": [ + "createNodePool" + ] + }, + "DeleteCluster": { + "methods": [ + "deleteCluster" + ] + }, + "DeleteNodePool": { + "methods": [ + "deleteNodePool" + ] + }, + "GetCluster": { + "methods": [ + "getCluster" + ] + }, + "GetJSONWebKeys": { + "methods": [ + "getJSONWebKeys" + ] + }, + "GetNodePool": { + "methods": [ + "getNodePool" + ] + }, + "GetOperation": { + "methods": [ + "getOperation" + ] + }, + "GetServerConfig": { + "methods": [ + "getServerConfig" + ] + }, + "ListClusters": { + "methods": [ + "listClusters" + ] + }, + "ListNodePools": { + "methods": [ + "listNodePools" + ] + }, + "ListOperations": { + "methods": [ + "listOperations" + ] + }, + "ListUsableSubnetworks": { + "methods": [ + "listUsableSubnetworks" + ] + }, + "RollbackNodePoolUpgrade": { + "methods": [ + "rollbackNodePoolUpgrade" + ] + }, + "SetAddonsConfig": { + "methods": [ + "setAddonsConfig" + ] + }, + "SetLabels": { + "methods": [ + "setLabels" + ] + }, + "SetLegacyAbac": { + "methods": [ + "setLegacyAbac" + ] + }, + "SetLocations": { + "methods": [ + "setLocations" + ] + }, + "SetLoggingService": { + "methods": [ + "setLoggingService" + ] + }, + "SetMaintenancePolicy": { + "methods": [ + "setMaintenancePolicy" + ] + }, + "SetMasterAuth": { + "methods": [ + "setMasterAuth" + ] + }, + "SetMonitoringService": { + "methods": [ + "setMonitoringService" + ] + }, + "SetNetworkPolicy": { + "methods": [ + "setNetworkPolicy" + ] + }, + "SetNodePoolAutoscaling": { + "methods": [ + "setNodePoolAutoscaling" + ] + }, + "SetNodePoolManagement": { + "methods": [ + "setNodePoolManagement" + ] + }, + "SetNodePoolSize": { + "methods": [ + "setNodePoolSize" + ] + }, + "StartIPRotation": { + "methods": [ + "startIPRotation" + ] + }, + "UpdateCluster": { + "methods": [ + "updateCluster" + ] + }, + "UpdateMaster": { + "methods": [ + "updateMaster" + ] + }, + "UpdateNodePool": { + "methods": [ + "updateNodePool" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_client_config.json b/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_client_config.json new file mode 100644 index 000000000000..28e413277317 --- /dev/null +++ b/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_client_config.json @@ -0,0 +1,210 @@ +{ + "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" + }, + "CompleteNodePoolUpgrade": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreateCluster": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CreateNodePool": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteCluster": { + "timeout_millis": 20000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteNodePool": { + "timeout_millis": 20000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetCluster": { + "timeout_millis": 20000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetJSONWebKeys": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetNodePool": { + "timeout_millis": 20000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetOperation": { + "timeout_millis": 20000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetServerConfig": { + "timeout_millis": 20000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListClusters": { + "timeout_millis": 20000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListNodePools": { + "timeout_millis": 20000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListOperations": { + "timeout_millis": 20000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListUsableSubnetworks": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "RollbackNodePoolUpgrade": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "SetAddonsConfig": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "SetLabels": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "SetLegacyAbac": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "SetLocations": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "SetLoggingService": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "SetMaintenancePolicy": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "SetMasterAuth": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "SetMonitoringService": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "SetNetworkPolicy": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "SetNodePoolAutoscaling": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "SetNodePoolManagement": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "SetNodePoolSize": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "StartIPRotation": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "UpdateCluster": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "UpdateMaster": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "UpdateNodePool": { + "timeout_millis": 45000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_descriptor_config.php b/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_descriptor_config.php new file mode 100644 index 000000000000..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..3e6acc6bc7f6 --- /dev/null +++ b/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_rest_client_config.php @@ -0,0 +1,1060 @@ + [ + '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', + ], + ], + ], + ], + 'CompleteNodePoolUpgrade' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:completeUpgrade', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'CreateCluster' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/clusters', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'CreateNodePool' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/clusters/*}/nodePools', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'DeleteCluster' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'DeleteNodePool' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'node_pool_id' => [ + 'getters' => [ + 'getNodePoolId', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'GetCluster' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'GetJSONWebKeys' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/clusters/*}/jwks', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'GetNodePool' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'node_pool_id' => [ + 'getters' => [ + 'getNodePoolId', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/operations/{operation_id}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'operation_id' => [ + 'getters' => [ + 'getOperationId', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'GetServerConfig' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}/serverConfig', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/serverconfig', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'ListClusters' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/clusters', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'ListNodePools' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/clusters/*}/nodePools', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/operations', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/operations', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'ListUsableSubnetworks' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*}/aggregated/usableSubnetworks', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'RollbackNodePoolUpgrade' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:rollback', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}:rollback', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'node_pool_id' => [ + 'getters' => [ + 'getNodePoolId', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'SetAddonsConfig' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setAddons', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/addons', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'SetLabels' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setResourceLabels', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/resourceLabels', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'SetLegacyAbac' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setLegacyAbac', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/legacyAbac', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'SetLocations' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setLocations', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/locations', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'SetLoggingService' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setLogging', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/logging', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'SetMaintenancePolicy' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setMaintenancePolicy', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMaintenancePolicy', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'SetMasterAuth' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setMasterAuth', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMasterAuth', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'SetMonitoringService' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setMonitoring', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/monitoring', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'SetNetworkPolicy' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setNetworkPolicy', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setNetworkPolicy', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'SetNodePoolAutoscaling' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setAutoscaling', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/autoscaling', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'node_pool_id' => [ + 'getters' => [ + 'getNodePoolId', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'SetNodePoolManagement' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setManagement', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/setManagement', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'node_pool_id' => [ + 'getters' => [ + 'getNodePoolId', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'SetNodePoolSize' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setSize', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/setSize', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'node_pool_id' => [ + 'getters' => [ + 'getNodePoolId', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'StartIPRotation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:startIpRotation', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:startIpRotation', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'UpdateCluster' => [ + 'method' => 'put', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'put', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'UpdateMaster' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:updateMaster', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/master', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + 'UpdateNodePool' => [ + 'method' => 'put', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/update', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'cluster_id' => [ + 'getters' => [ + 'getClusterId', + ], + ], + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + 'node_pool_id' => [ + 'getters' => [ + 'getNodePoolId', + ], + ], + 'project_id' => [ + 'getters' => [ + 'getProjectId', + ], + ], + 'zone' => [ + 'getters' => [ + 'getZone', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Container/v1/tests/Unit/V1/ClusterManagerClientTest.php b/owl-bot-staging/Container/v1/tests/Unit/V1/ClusterManagerClientTest.php new file mode 100644 index 000000000000..c469859d1ed1 --- /dev/null +++ b/owl-bot-staging/Container/v1/tests/Unit/V1/ClusterManagerClientTest.php @@ -0,0 +1,2421 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return ClusterManagerClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new ClusterManagerClient($options); + } + + /** @test */ + public function cancelOperationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + $gapicClient->cancelOperation(); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/CancelOperation', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function cancelOperationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->cancelOperation(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function completeIPRotationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + $response = $gapicClient->completeIPRotation(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/CompleteIPRotation', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function completeIPRotationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->completeIPRotation(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function completeNodePoolUpgradeTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + $gapicClient->completeNodePoolUpgrade(); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/CompleteNodePoolUpgrade', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function completeNodePoolUpgradeExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->completeNodePoolUpgrade(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createClusterTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $cluster = new Cluster(); + $response = $gapicClient->createCluster($cluster); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/CreateCluster', $actualFuncCall); + $actualValue = $actualRequestObject->getCluster(); + $this->assertProtobufEquals($cluster, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createClusterExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $cluster = new Cluster(); + try { + $gapicClient->createCluster($cluster); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createNodePoolTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $nodePool = new NodePool(); + $response = $gapicClient->createNodePool($nodePool); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/CreateNodePool', $actualFuncCall); + $actualValue = $actualRequestObject->getNodePool(); + $this->assertProtobufEquals($nodePool, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createNodePoolExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $nodePool = new NodePool(); + try { + $gapicClient->createNodePool($nodePool); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteClusterTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + $response = $gapicClient->deleteCluster(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/DeleteCluster', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteClusterExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->deleteCluster(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteNodePoolTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + $response = $gapicClient->deleteNodePool(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/DeleteNodePool', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteNodePoolExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->deleteNodePool(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getClusterTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $description = 'description-1724546052'; + $initialNodeCount = 1682564205; + $loggingService = 'loggingService-1700501035'; + $monitoringService = 'monitoringService1469270462'; + $network = 'network1843485230'; + $clusterIpv4Cidr = 'clusterIpv4Cidr-141875831'; + $subnetwork = 'subnetwork-1302785042'; + $enableKubernetesAlpha = false; + $labelFingerprint = 'labelFingerprint714995737'; + $selfLink = 'selfLink-1691268851'; + $zone2 = 'zone2-696322977'; + $endpoint = 'endpoint1741102485'; + $initialClusterVersion = 'initialClusterVersion-276373352'; + $currentMasterVersion = 'currentMasterVersion-920953983'; + $currentNodeVersion = 'currentNodeVersion-407476063'; + $createTime = 'createTime-493574096'; + $statusMessage = 'statusMessage-239442758'; + $nodeIpv4CidrSize = 1181176815; + $servicesIpv4Cidr = 'servicesIpv4Cidr1966438125'; + $currentNodeCount = 178977560; + $expireTime = 'expireTime-96179731'; + $location = 'location1901043637'; + $enableTpu = false; + $tpuIpv4CidrBlock = 'tpuIpv4CidrBlock1137906646'; + $id = 'id3355'; + $etag = 'etag3123477'; + $expectedResponse = new Cluster(); + $expectedResponse->setName($name2); + $expectedResponse->setDescription($description); + $expectedResponse->setInitialNodeCount($initialNodeCount); + $expectedResponse->setLoggingService($loggingService); + $expectedResponse->setMonitoringService($monitoringService); + $expectedResponse->setNetwork($network); + $expectedResponse->setClusterIpv4Cidr($clusterIpv4Cidr); + $expectedResponse->setSubnetwork($subnetwork); + $expectedResponse->setEnableKubernetesAlpha($enableKubernetesAlpha); + $expectedResponse->setLabelFingerprint($labelFingerprint); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setZone($zone2); + $expectedResponse->setEndpoint($endpoint); + $expectedResponse->setInitialClusterVersion($initialClusterVersion); + $expectedResponse->setCurrentMasterVersion($currentMasterVersion); + $expectedResponse->setCurrentNodeVersion($currentNodeVersion); + $expectedResponse->setCreateTime($createTime); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setNodeIpv4CidrSize($nodeIpv4CidrSize); + $expectedResponse->setServicesIpv4Cidr($servicesIpv4Cidr); + $expectedResponse->setCurrentNodeCount($currentNodeCount); + $expectedResponse->setExpireTime($expireTime); + $expectedResponse->setLocation($location); + $expectedResponse->setEnableTpu($enableTpu); + $expectedResponse->setTpuIpv4CidrBlock($tpuIpv4CidrBlock); + $expectedResponse->setId($id); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + $response = $gapicClient->getCluster(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/GetCluster', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getClusterExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->getCluster(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getJSONWebKeysTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GetJSONWebKeysResponse(); + $transport->addResponse($expectedResponse); + $response = $gapicClient->getJSONWebKeys(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/GetJSONWebKeys', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getJSONWebKeysExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->getJSONWebKeys(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getNodePoolTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $initialNodeCount = 1682564205; + $selfLink = 'selfLink-1691268851'; + $version = 'version351608024'; + $statusMessage = 'statusMessage-239442758'; + $podIpv4CidrSize = 1098768716; + $etag = 'etag3123477'; + $expectedResponse = new NodePool(); + $expectedResponse->setName($name2); + $expectedResponse->setInitialNodeCount($initialNodeCount); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setVersion($version); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setPodIpv4CidrSize($podIpv4CidrSize); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + $response = $gapicClient->getNodePool(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/GetNodePool', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getNodePoolExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->getNodePool(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getOperationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + $response = $gapicClient->getOperation(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/GetOperation', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getOperationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->getOperation(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getServerConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $defaultClusterVersion = 'defaultClusterVersion111003029'; + $defaultImageType = 'defaultImageType-918225828'; + $expectedResponse = new ServerConfig(); + $expectedResponse->setDefaultClusterVersion($defaultClusterVersion); + $expectedResponse->setDefaultImageType($defaultImageType); + $transport->addResponse($expectedResponse); + $response = $gapicClient->getServerConfig(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/GetServerConfig', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getServerConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->getServerConfig(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listClustersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ListClustersResponse(); + $transport->addResponse($expectedResponse); + $response = $gapicClient->listClusters(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/ListClusters', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listClustersExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->listClusters(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listNodePoolsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ListNodePoolsResponse(); + $transport->addResponse($expectedResponse); + $response = $gapicClient->listNodePools(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/ListNodePools', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listNodePoolsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->listNodePools(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listOperationsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ListOperationsResponse(); + $transport->addResponse($expectedResponse); + $response = $gapicClient->listOperations(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/ListOperations', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listOperationsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->listOperations(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listUsableSubnetworksTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $subnetworksElement = new UsableSubnetwork(); + $subnetworks = [ + $subnetworksElement, + ]; + $expectedResponse = new ListUsableSubnetworksResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setSubnetworks($subnetworks); + $transport->addResponse($expectedResponse); + $response = $gapicClient->listUsableSubnetworks(); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getSubnetworks()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/ListUsableSubnetworks', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listUsableSubnetworksExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->listUsableSubnetworks(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function rollbackNodePoolUpgradeTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + $response = $gapicClient->rollbackNodePoolUpgrade(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/RollbackNodePoolUpgrade', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function rollbackNodePoolUpgradeExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->rollbackNodePoolUpgrade(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setAddonsConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $addonsConfig = new AddonsConfig(); + $response = $gapicClient->setAddonsConfig($addonsConfig); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/SetAddonsConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getAddonsConfig(); + $this->assertProtobufEquals($addonsConfig, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setAddonsConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $addonsConfig = new AddonsConfig(); + try { + $gapicClient->setAddonsConfig($addonsConfig); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setLabelsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $resourceLabelsValue = 'resourceLabelsValue-1244473404'; + $resourceLabels = [ + 'resourceLabelsKey' => $resourceLabelsValue, + ]; + $labelFingerprint = 'labelFingerprint714995737'; + $response = $gapicClient->setLabels($resourceLabels, $labelFingerprint); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/SetLabels', $actualFuncCall); + $actualValue = $actualRequestObject->getResourceLabels(); + $this->assertProtobufEquals($resourceLabels, $actualValue); + $actualValue = $actualRequestObject->getLabelFingerprint(); + $this->assertProtobufEquals($labelFingerprint, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setLabelsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $resourceLabelsValue = 'resourceLabelsValue-1244473404'; + $resourceLabels = [ + 'resourceLabelsKey' => $resourceLabelsValue, + ]; + $labelFingerprint = 'labelFingerprint714995737'; + try { + $gapicClient->setLabels($resourceLabels, $labelFingerprint); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setLegacyAbacTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $enabled = false; + $response = $gapicClient->setLegacyAbac($enabled); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/SetLegacyAbac', $actualFuncCall); + $actualValue = $actualRequestObject->getEnabled(); + $this->assertProtobufEquals($enabled, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setLegacyAbacExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $enabled = false; + try { + $gapicClient->setLegacyAbac($enabled); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setLocationsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $locations = []; + $response = $gapicClient->setLocations($locations); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/SetLocations', $actualFuncCall); + $actualValue = $actualRequestObject->getLocations(); + $this->assertProtobufEquals($locations, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setLocationsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $locations = []; + try { + $gapicClient->setLocations($locations); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setLoggingServiceTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $loggingService = 'loggingService-1700501035'; + $response = $gapicClient->setLoggingService($loggingService); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/SetLoggingService', $actualFuncCall); + $actualValue = $actualRequestObject->getLoggingService(); + $this->assertProtobufEquals($loggingService, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setLoggingServiceExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $loggingService = 'loggingService-1700501035'; + try { + $gapicClient->setLoggingService($loggingService); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setMaintenancePolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $projectId = 'projectId-1969970175'; + $zone = 'zone3744684'; + $clusterId = 'clusterId240280960'; + $maintenancePolicy = new MaintenancePolicy(); + $response = $gapicClient->setMaintenancePolicy($projectId, $zone, $clusterId, $maintenancePolicy); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/SetMaintenancePolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getProjectId(); + $this->assertProtobufEquals($projectId, $actualValue); + $actualValue = $actualRequestObject->getZone(); + $this->assertProtobufEquals($zone, $actualValue); + $actualValue = $actualRequestObject->getClusterId(); + $this->assertProtobufEquals($clusterId, $actualValue); + $actualValue = $actualRequestObject->getMaintenancePolicy(); + $this->assertProtobufEquals($maintenancePolicy, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setMaintenancePolicyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $projectId = 'projectId-1969970175'; + $zone = 'zone3744684'; + $clusterId = 'clusterId240280960'; + $maintenancePolicy = new MaintenancePolicy(); + try { + $gapicClient->setMaintenancePolicy($projectId, $zone, $clusterId, $maintenancePolicy); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setMasterAuthTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $action = Action::UNKNOWN; + $update = new MasterAuth(); + $response = $gapicClient->setMasterAuth($action, $update); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/SetMasterAuth', $actualFuncCall); + $actualValue = $actualRequestObject->getAction(); + $this->assertProtobufEquals($action, $actualValue); + $actualValue = $actualRequestObject->getUpdate(); + $this->assertProtobufEquals($update, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setMasterAuthExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $action = Action::UNKNOWN; + $update = new MasterAuth(); + try { + $gapicClient->setMasterAuth($action, $update); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setMonitoringServiceTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $monitoringService = 'monitoringService1469270462'; + $response = $gapicClient->setMonitoringService($monitoringService); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/SetMonitoringService', $actualFuncCall); + $actualValue = $actualRequestObject->getMonitoringService(); + $this->assertProtobufEquals($monitoringService, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setMonitoringServiceExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $monitoringService = 'monitoringService1469270462'; + try { + $gapicClient->setMonitoringService($monitoringService); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setNetworkPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $networkPolicy = new NetworkPolicy(); + $response = $gapicClient->setNetworkPolicy($networkPolicy); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/SetNetworkPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getNetworkPolicy(); + $this->assertProtobufEquals($networkPolicy, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setNetworkPolicyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $networkPolicy = new NetworkPolicy(); + try { + $gapicClient->setNetworkPolicy($networkPolicy); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setNodePoolAutoscalingTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $autoscaling = new NodePoolAutoscaling(); + $response = $gapicClient->setNodePoolAutoscaling($autoscaling); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/SetNodePoolAutoscaling', $actualFuncCall); + $actualValue = $actualRequestObject->getAutoscaling(); + $this->assertProtobufEquals($autoscaling, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setNodePoolAutoscalingExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $autoscaling = new NodePoolAutoscaling(); + try { + $gapicClient->setNodePoolAutoscaling($autoscaling); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setNodePoolManagementTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $management = new NodeManagement(); + $response = $gapicClient->setNodePoolManagement($management); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/SetNodePoolManagement', $actualFuncCall); + $actualValue = $actualRequestObject->getManagement(); + $this->assertProtobufEquals($management, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setNodePoolManagementExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $management = new NodeManagement(); + try { + $gapicClient->setNodePoolManagement($management); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setNodePoolSizeTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $nodeCount = 1539922066; + $response = $gapicClient->setNodePoolSize($nodeCount); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/SetNodePoolSize', $actualFuncCall); + $actualValue = $actualRequestObject->getNodeCount(); + $this->assertProtobufEquals($nodeCount, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setNodePoolSizeExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $nodeCount = 1539922066; + try { + $gapicClient->setNodePoolSize($nodeCount); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function startIPRotationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + $response = $gapicClient->startIPRotation(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/StartIPRotation', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function startIPRotationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->startIPRotation(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateClusterTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $update = new ClusterUpdate(); + $response = $gapicClient->updateCluster($update); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/UpdateCluster', $actualFuncCall); + $actualValue = $actualRequestObject->getUpdate(); + $this->assertProtobufEquals($update, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateClusterExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $update = new ClusterUpdate(); + try { + $gapicClient->updateCluster($update); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateMasterTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $masterVersion = 'masterVersion-2139460613'; + $response = $gapicClient->updateMaster($masterVersion); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/UpdateMaster', $actualFuncCall); + $actualValue = $actualRequestObject->getMasterVersion(); + $this->assertProtobufEquals($masterVersion, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateMasterExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $masterVersion = 'masterVersion-2139460613'; + try { + $gapicClient->updateMaster($masterVersion); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateNodePoolTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $zone2 = 'zone2-696322977'; + $detail = 'detail-1335224239'; + $statusMessage = 'statusMessage-239442758'; + $selfLink = 'selfLink-1691268851'; + $targetLink = 'targetLink-2084812312'; + $location = 'location1901043637'; + $startTime = 'startTime-1573145462'; + $endTime = 'endTime1725551537'; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setZone($zone2); + $expectedResponse->setDetail($detail); + $expectedResponse->setStatusMessage($statusMessage); + $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setTargetLink($targetLink); + $expectedResponse->setLocation($location); + $expectedResponse->setStartTime($startTime); + $expectedResponse->setEndTime($endTime); + $transport->addResponse($expectedResponse); + // Mock request + $nodeVersion = 'nodeVersion1790136219'; + $imageType = 'imageType-1442758754'; + $response = $gapicClient->updateNodePool($nodeVersion, $imageType); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.container.v1.ClusterManager/UpdateNodePool', $actualFuncCall); + $actualValue = $actualRequestObject->getNodeVersion(); + $this->assertProtobufEquals($nodeVersion, $actualValue); + $actualValue = $actualRequestObject->getImageType(); + $this->assertProtobufEquals($imageType, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateNodePoolExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $nodeVersion = 'nodeVersion1790136219'; + $imageType = 'imageType-1442758754'; + try { + $gapicClient->updateNodePool($nodeVersion, $imageType); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } +} From 5d4d70c3dccb2b50e5085ad6b8845e0e39dad59e Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 27 Feb 2023 21:02:32 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- Container/src/V1/NodeTaint.php | 2 +- .../Google/Container/V1/ClusterService.php | Bin 44213 -> 0 bytes .../Cloud/Container/V1/AcceleratorConfig.php | 191 -- .../Cloud/Container/V1/AddonsConfig.php | 525 --- .../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 | 493 --- .../Container/V1/BinaryAuthorization.php | 118 - .../V1/BinaryAuthorization/EvaluationMode.php | 66 - .../V1/BinaryAuthorization_EvaluationMode.php | 16 - .../Cloud/Container/V1/BlueGreenSettings.php | 123 - .../StandardRolloutPolicy.php | 158 - ...lueGreenSettings_StandardRolloutPolicy.php | 16 - .../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 | 2968 ----------------- .../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 | 564 ---- .../Cloud/Container/V1/ClusterUpdate.php | 1885 ----------- .../Cloud/Container/V1/Cluster_Status.php | 16 - .../V1/CompleteIPRotationRequest.php | 212 -- .../V1/CompleteNodePoolUpgradeRequest.php | 76 - .../Cloud/Container/V1/ConfidentialNodes.php | 68 - .../Container/V1/ConfigConnectorConfig.php | 67 - .../Container/V1/CostManagementConfig.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 | 64 - .../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/EphemeralStorageLocalSsdConfig.php | 92 - .../Google/Cloud/Container/V1/FastSocket.php | 67 - .../Cloud/Container/V1/GPUSharingConfig.php | 112 - .../GPUSharingConfig/GPUSharingStrategy.php | 57 - .../GPUSharingConfig_GPUSharingStrategy.php | 16 - .../Cloud/Container/V1/GatewayAPIConfig.php | 67 - .../Container/V1/GatewayAPIConfig/Channel.php | 72 - .../Container/V1/GatewayAPIConfig_Channel.php | 16 - .../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/GkeBackupAgentConfig.php | 67 - .../Container/V1/HorizontalPodAutoscaling.php | 77 - .../Cloud/Container/V1/HttpLoadBalancing.php | 76 - .../Container/V1/ILBSubsettingConfig.php | 68 - .../Cloud/Container/V1/IPAllocationPolicy.php | 862 ----- .../Cloud/Container/V1/IPv6AccessType.php | 61 - .../Container/V1/IdentityServiceConfig.php | 68 - .../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 | 153 - .../V1/LinuxNodeConfig/CgroupMode.php | 67 - .../V1/LinuxNodeConfig_CgroupMode.php | 16 - .../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/LocalNvmeSsdBlockConfig.php | 92 - .../Container/V1/LoggingComponentConfig.php | 67 - .../V1/LoggingComponentConfig/Component.php | 85 - .../V1/LoggingComponentConfig_Component.php | 16 - .../Cloud/Container/V1/LoggingConfig.php | 77 - .../Container/V1/LoggingVariantConfig.php | 67 - .../V1/LoggingVariantConfig/Variant.php | 68 - .../V1/LoggingVariantConfig_Variant.php | 16 - .../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 - .../Container/V1/ManagedPrometheusConfig.php | 68 - .../Google/Cloud/Container/V1/MasterAuth.php | 331 -- .../V1/MasterAuthorizedNetworksConfig.php | 152 - .../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 | 78 - .../MonitoringComponentConfig_Component.php | 16 - .../Cloud/Container/V1/MonitoringConfig.php | 125 - .../Cloud/Container/V1/NetworkConfig.php | 473 --- .../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/NetworkTags.php | 68 - .../Google/Cloud/Container/V1/NodeConfig.php | 1669 --------- .../Cloud/Container/V1/NodeConfigDefaults.php | 121 - .../Cloud/Container/V1/NodeKubeletConfig.php | 304 -- .../Google/Cloud/Container/V1/NodeLabels.php | 68 - .../Cloud/Container/V1/NodeManagement.php | 166 - .../Cloud/Container/V1/NodeNetworkConfig.php | 315 -- .../NetworkPerformanceConfig.php | 80 - .../NetworkPerformanceConfig/Tier.php | 57 - ...NetworkConfig_NetworkPerformanceConfig.php | 16 - ...rkConfig_NetworkPerformanceConfig_Tier.php | 16 - .../Google/Cloud/Container/V1/NodePool.php | 865 ----- .../Container/V1/NodePool/PlacementPolicy.php | 70 - .../V1/NodePool/PlacementPolicy/Type.php | 59 - .../Cloud/Container/V1/NodePool/Status.php | 99 - .../Container/V1/NodePool/UpdateInfo.php | 81 - .../V1/NodePool/UpdateInfo/BlueGreenInfo.php | 226 -- .../UpdateInfo/BlueGreenInfo/Phase.php | 99 - .../Container/V1/NodePool/UpgradeSettings.php | 241 -- .../Cloud/Container/V1/NodePoolAutoConfig.php | 90 - .../Container/V1/NodePoolAutoscaling.php | 304 -- .../V1/NodePoolAutoscaling/LocationPolicy.php | 66 - .../V1/NodePoolAutoscaling_LocationPolicy.php | 16 - .../Cloud/Container/V1/NodePoolDefaults.php | 77 - .../Container/V1/NodePoolLoggingConfig.php | 77 - .../Container/V1/NodePoolUpdateStrategy.php | 63 - .../Container/V1/NodePool_PlacementPolicy.php | 16 - .../V1/NodePool_PlacementPolicy_Type.php | 16 - .../Cloud/Container/V1/NodePool_Status.php | 16 - .../Container/V1/NodePool_UpdateInfo.php | 16 - .../V1/NodePool_UpdateInfo_BlueGreenInfo.php | 16 - ...odePool_UpdateInfo_BlueGreenInfo_Phase.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 - .../Google/Cloud/Container/V1/NodeTaints.php | 68 - .../Cloud/Container/V1/NotificationConfig.php | 77 - .../V1/NotificationConfig/EventType.php | 72 - .../V1/NotificationConfig/Filter.php | 73 - .../V1/NotificationConfig/PubSub.php | 160 - .../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 | 339 -- ...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 | 149 - .../Container/V1/ReservationAffinity/Type.php | 72 - .../Container/V1/ReservationAffinity_Type.php | 16 - .../Cloud/Container/V1/ResourceLabels.php | 68 - .../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 | 299 -- .../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 - .../Google/Cloud/Container/V1/StackType.php | 61 - .../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 | 1151 ------- .../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 - .../Cloud/Container/V1/WindowsNodeConfig.php | 69 - .../V1/WindowsNodeConfig/OSVersion.php | 64 - .../V1/WindowsNodeConfig_OSVersion.php | 16 - .../Container/V1/WorkloadIdentityConfig.php | 68 - .../Container/V1/WorkloadMetadataConfig.php | 72 - .../V1/WorkloadMetadataConfig/Mode.php | 69 - .../V1/WorkloadMetadataConfig_Mode.php | 16 - .../ClusterManagerClient/cancel_operation.php | 51 - .../complete_ip_rotation.php | 53 - .../complete_node_pool_upgrade.php | 52 - .../ClusterManagerClient/create_cluster.php | 70 - .../ClusterManagerClient/create_node_pool.php | 57 - .../ClusterManagerClient/delete_cluster.php | 61 - .../ClusterManagerClient/delete_node_pool.php | 53 - .../V1/ClusterManagerClient/get_cluster.php | 53 - .../get_json_web_keys.php | 56 - .../V1/ClusterManagerClient/get_node_pool.php | 53 - .../V1/ClusterManagerClient/get_operation.php | 53 - .../get_server_config.php | 53 - .../V1/ClusterManagerClient/list_clusters.php | 54 - .../ClusterManagerClient/list_node_pools.php | 53 - .../ClusterManagerClient/list_operations.php | 53 - .../list_usable_subnetworks.php | 58 - .../rollback_node_pool_upgrade.php | 54 - .../set_addons_config.php | 57 - .../V1/ClusterManagerClient/set_labels.php | 73 - .../ClusterManagerClient/set_legacy_abac.php | 65 - .../V1/ClusterManagerClient/set_locations.php | 77 - .../set_logging_service.php | 75 - .../set_maintenance_policy.php | 81 - .../ClusterManagerClient/set_master_auth.php | 72 - .../set_monitoring_service.php | 75 - .../set_network_policy.php | 57 - .../set_node_pool_autoscaling.php | 57 - .../set_node_pool_management.php | 57 - .../set_node_pool_size.php | 67 - .../start_ip_rotation.php | 53 - .../ClusterManagerClient/update_cluster.php | 57 - .../V1/ClusterManagerClient/update_master.php | 74 - .../ClusterManagerClient/update_node_pool.php | 79 - .../v1/src/V1/ClusterManagerClient.php | 34 - .../V1/Gapic/ClusterManagerGapicClient.php | 2784 ---------------- .../Container/v1/src/V1/gapic_metadata.json | 183 - .../cluster_manager_client_config.json | 210 -- .../cluster_manager_descriptor_config.php | 18 - .../cluster_manager_rest_client_config.php | 1060 ------ .../Unit/V1/ClusterManagerClientTest.php | 2421 -------------- 278 files changed, 1 insertion(+), 45283 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/BinaryAuthorization/EvaluationMode.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization_EvaluationMode.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings/StandardRolloutPolicy.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings_StandardRolloutPolicy.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CancelOperationRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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/CompleteNodePoolUpgradeRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfidentialNodes.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfigConnectorConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CostManagementConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateClusterRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateNodePoolRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/DNSScope.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/Provider.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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/EphemeralStorageLocalSsdConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/FastSocket.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig/GPUSharingStrategy.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig_GPUSharingStrategy.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig/Channel.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig_Channel.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcePersistentDiskCsiDriverConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcfsConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcpFilestoreCsiDriverConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetClusterRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysResponse.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetNodePoolRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigResponse.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOperationRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetServerConfigRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GkeBackupAgentConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HorizontalPodAutoscaling.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HttpLoadBalancing.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ILBSubsettingConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPAllocationPolicy.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPv6AccessType.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IdentityServiceConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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/LinuxNodeConfig/CgroupMode.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig_CgroupMode.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListClustersRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListClustersResponse.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsResponse.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsResponse.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksResponse.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LocalNvmeSsdBlockConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig/Component.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig_Component.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig/Variant.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig_Variant.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceExclusionOptions.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceExclusionOptions/Scope.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceExclusionOptions_Scope.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenancePolicy.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceWindow.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ManagedPrometheusConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuth.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig/CidrBlock.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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/NetworkTags.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfigDefaults.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeKubeletConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeLabels.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeManagement.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig/Tier.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig_NetworkPerformanceConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig_NetworkPerformanceConfig_Tier.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy/Type.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/Status.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo/Phase.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpgradeSettings.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling/LocationPolicy.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling_LocationPolicy.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolDefaults.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolLoggingConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolUpdateStrategy.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool_PlacementPolicy.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool_PlacementPolicy_Type.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool_Status.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool_UpdateInfo.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool_UpdateInfo_BlueGreenInfo.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool_UpdateInfo_BlueGreenInfo_Phase.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool_UpgradeSettings.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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/NodeTaints.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/EventType.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/Filter.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/PubSub.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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/ResourceLabels.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceLimit.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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/StackType.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StartIPRotationRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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/WindowsNodeConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig/OSVersion.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig_OSVersion.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadIdentityConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadMetadataConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadMetadataConfig/Mode.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadMetadataConfig_Mode.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/cancel_operation.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_ip_rotation.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_node_pool_upgrade.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_cluster.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_node_pool.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_cluster.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_node_pool.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_cluster.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_json_web_keys.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_node_pool.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_operation.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_server_config.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_clusters.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_node_pools.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_operations.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_usable_subnetworks.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/rollback_node_pool_upgrade.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_addons_config.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_labels.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_legacy_abac.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_locations.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_logging_service.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_maintenance_policy.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_master_auth.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_monitoring_service.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_network_policy.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_autoscaling.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_management.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_size.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/start_ip_rotation.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_cluster.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_master.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_node_pool.php delete mode 100644 owl-bot-staging/Container/v1/src/V1/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/src/V1/NodeTaint.php b/Container/src/V1/NodeTaint.php index c6556f67e2cd..7e856b7cacc8 100644 --- a/Container/src/V1/NodeTaint.php +++ b/Container/src/V1/NodeTaint.php @@ -9,7 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Kubernetes taint is comprised of three fields: key, value, and effect. Effect + * Kubernetes taint is composed of three fields: key, value, and effect. Effect * can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute. * See * [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration) 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 9780914a11f83c353e2eeff888eec32a1df62b81..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 44213 zcmd6Qdu&@-df!sAZ0X3RWBd*7*9)#zwU@UT$nRYg^S;dVG9#X?$^MWjs5ZTX_~;y~a+fT%8)LLa$Gvu`jenl6dBs}2)~=PdYCnR7 zyfeO0+VZLxqPy+JPQBc&HR|KkVX0oOUbr|eV^Z7an++`dopA$Eo^Sy?+|Jdpn0jgJ z_H5NFw`$FHqm@U~sj1Cs+s7b1xo}ZWOT*PR#xDqrQ&U|)zBAr#?Nr0FkB_&i?VVQr zD#J|!JoNv%ZNXQjS-YL7*BgX|M%|m53f2@15!Z2Mt5&VI_t)oIt-4j2uHGr#t2J8t z>$+Ukr)AGT`naFn!TH1j_dcQD6-di&H`@;$qw7iyC$(MLZazleo2^o_S#9lON0ysq z9REsn?~_rF0(O2UW)?omFTY#U2RBox_~-N*uJZ-|WYIZ$N&S=G?o$`{e36||X`1%$ zeEQy%u~WK#saeDQr{g8pe(aghiw!zM#dUp%bc55O1}%M3^sDpw6%!C##fgeO4*LC> z&i7T?@Q#W7&TX@+aiibYTc_Wj(4)7SWze^Zrepp}=`mgK9Z%Z3Ki{X0&e!TYA1|UY z=-EbX)0tL>ya!&nz2&7665LuTMwLBHC*0oHFlcCZ48|1 z8&6zFPEPD;oEh%7fNo=HbvQEWuIVKx}(4NnrmRz$SQa?5tO}s%^cqW6CKvcZ%DkdTA59uGs)nGU&Xbj?laE zhFARZ4oEcb+3@6;S(Q1G>1l9{HA1{|RvnLYDT0R78kJN(@6Sn|TlByni<|2V%z%TZjnYp0PSGnj znpF=I_2VF%Qb#q{E|$vW#!kJR8e$0EQ-j-@Wn*qS$uFDLgy}#!fF^BNyqsc3soFMB zC6Ep9pjXwwtrC#xr4I6tpWSW9d2THO0@STWxwKXEyh>3(J%mvQoWtrsyR_-026;uJ zYPi{|5@D#VZ&gzYO$ME})nP0Ty9w^nXnCn&p8iGa^qHWc-uh!|h!M&-KFljgsgdnk zy+~Ww+$yy<8m;Zr5q`6vQuiCJyIYM?rD!k+aEUskl4vnJXzk)Q?b79Ns7^uiZB<1jOuBqc7(h$g) zEf-508zguU-+g z7Lnc}1FX?|g2#E@3R4Hgb>3CUyK=t`6eqd2{Y(&kqvYVUI=0?uw2OQ&?rwWUBCe+} z#E|o<8r~#QprJa=<33}BY7Xu6ik8&rQso|@1?NUz>WwPc4bYz&<1sE<$H?ej3)1PD z?&GA@z~;Srt(-d71Aw(!tG!d&TFlMRHS(H`c4{2W2f@f3hQ9*N4q2P=?4_RLq3k%~ zb?D}VFVA^P4R4gZcF}8;?^fHX=X=0$4ebit?D}UuO(dLob=1fPMNKkZ;Pd~A6$dn* z;4zKE$Er%0bWE${R%3IsR^K$6@*=}>DRwXt@8_k9-k%vYdS7^1vmi;g$V-*rrF-v0~?Y_y6{b6tGxr6Ft|+#z~!t>6kQF>Hs-g~uJu2ot^-f%ELA{Ec7~|9?71zS4 zt21p#He1E&CN8E|TnFd4U#mc#XxFMOEym40Asp!yjK#}#FQ^0b17gd_N-n$HA=D{# zke@>GoIbD47JGm;eM+4u+K@bbPMs;nqZSh8$r$DXQBV))Rm-5yMdAdEfO!oSW@H5?Vu zfuOmyTw!T>B;lS@D#T}wszU-`MId&6Kf(8}i(@aTR2i0r9ndN4xOp82n#mZ65O>)$ zHr$_qb@YX%H4ZsRb&xd>Er`0e;#LA>V{xgtoGoOR*D@=R?;*O6s-v03k0KBIoRm7Q zm6Vytn|}8nCDagc2$7I_&=u!3b+8IUSh>w|cyjUu>qhuvrL)`^N9CaW<(yPb_S&`V z%u2_B#Rg#&g_-Nw+12?hmVk!&p<_Vd}9)s^f>zx%cb{0zDWo^GT; z(Jpt92HlUPw@_mz5Wl6jT@alMlJSmr!Z}LPxcgfl>rAGq{6eOD0RvqNe*&33}RuT@v)a!dG*MpF&a- zi$}3sZMAC~wK5TI+!Ye>Nq-xjv~zGV!_5SpG*daRP8t(xxfC8WRpGlrswbORBJZmF z4l=ubM*`>uJ#()@dFS@sQ;n-s&GU8uZufv>8W?oHeo!5T0SPx>LkGdV(e;Sg|+TNox1-q6JfNX1w}S+Fs}*tlp1`EGTZyJV<`fa$)Vj&&dE5j6<)kHj~_ zOE0Tb?0M~OefuRfYB`aPy`}BAb+>$0B|8p97sG!`y_gqiQ~O(l4$f^gaJ$L+;hC%7 z)%7>})bVIvy^Szu*<>s&6g{I(b-bayRT<%_?ka(D|6E(=8lwepsE+6K(Qx$?8SotUecV*RER6MReVXS=Z!+?NLMStU66>2j`2JN24`I=H580Lsm$#ph>c%*k)LUa{oJcYzG19IuK4? zIU&l8Tg!qbp*1=As&%2!A=3dNueMm|{8){2K66}kets!4Tb$0!XBKB5)vSD!?=%}f zqs~~`WIw->U0%%0Lng8}$SvvyeNYNc$a%y6BebgPpuVEUcO^Ytozm(|FM86|9{2b7 zoP}CI9Pf~^f4WbdmlH$VP8_XT(f2ua*O%c2@byIx7ln+l?^t)N_t5DX48s-!=dw^+ zePd{N&)fi`6wt{K)pP7MH57Cet1^t859B_HBZ0&ZA4n}DxoW&fG`+_xq?627H%sLQ z8Ib30eEm#99f{C8=N*V*t;W4t#aA|Cq*syngej-uT8>vUX5dwACPWR$SuyzXIJ1W$uD7b z9~HBU*Or!NvT%O<-T~$0@|i6%Adw?h5J@Bm@-e7$5fWR;gGrL5MF(b3Z4U|2IL0u$ z7JRxVXGVzmIrPyH1HM&+jVK~skEvuG3l2CziU~TS^}KROxkQiwq5zCVMQkbj{&{uQ z3=N9es8_ICVxrwJFAAxCOS0CG15w+brL#YY zOha(8jke)H=zJ-D1l%mbI2Z%OTNwXwXq`!=U^$1mkZCvxG09203J7m;`7WCVAdzB% z*UdHOp5zip#z>^O{Jqyj2;lC|sgts^1m^2u3l`bShsf;J@4OIQYNQ$4#JQRKv!~S| zEpm`H7ARY|L&Go_bFc+D1;s>w&DN0~#^OruDLO*~yxDK6VMf2^-6E>n?d+t}3g_US zu+VEMpagQv=WBS<-ZLPrbfAqDS#PYi;z2(POgttECM5y~Sb<^va;oUYbe(=VPj9Lt zCDy!*I3hy(vsRK3(a~^NLibNj*A?x}p)eOOb(q=5IqOh_9Wr>6`O@5b5AG~-5C)=K zNZBfFHSd(zn>Fa^~djG9vdZ1>D9DdLSU{`HHjKY4?DQBO`7W0c@2@HdM zQ*k>M;wx~5Y2+J!t+=i1&af!M$*SW_?F>T92;!`YG0|Bl=NHwpp|d8e-k zcI$j_0%XBdE<+a=f9xuMQfsvD)9tv0-8ACrZFk?XZv zwA$49p7{6}rUjD2bZcitorTGh-AKh9kNhdskDHB_uRcD@qou8v$=I(}sb7}6X%GwQ z458N-`bC!a&w$%wP+%$O7f}{+>ZDOO3|Y~*dx6KZ>$p)}M#DF&MkzvX9qb*-RJrv4 zE_4uMah1jF;;inF_1lxD7sdfnY`P6S+FNE9-4NQry*lhXsW1{z7>H@FKekzQ~ zo@knf19`LsuRpD*e5VARVJjt$FuOHoS=!D>Q(B4d%7@?yWep0L#_nes2Kz#cD?g|E zX#Bpfjv>tKPS}X&rDk{>yPbIftwSa}5484VxdDf&1fgsLA_LCLJvMs=T^2ZOg?a>= zjbK7CUSgNcI9GU_n9W`cbedFLX6kpf`E*1bfZeg0VuLC3e`v|RwSY~g#O92wVXhGlF-ItE0)`>7P{7sG zB9v=#Zr4X3ikH}1F%bx`@CC?uSl@tb)+D3x`bhL@jb%x{_HCi)q8Ej-I?zA8`G)M|y z_#uu(RwyAjO&Zv&4^*-S6CSVc%RDMDZ5U{(#ZMrrXj>3u-;{@EgK>gzn>)M-6%&#? zLViJ@Q}K*hI{TSVz9Q0%fyAa8EkKTwMy#8Si2SBc1}5r zQIeyIn#XvlKP$u8FD?-u5~yZ{BYEPX)%g_X?8 zYN5kxHlhx*VoqUwP+6hG4y!}UtBd@jkG!7C*_oxqncO_R?T1n^SXf!g=jqo0XGjfX zmzUuJr4X^f+3ehMW)_<8!RZrfR5Xgnmb&xGF&h_J>+9;U5lT49OmH=B<^5WMBzF^h zf+J=$a||5Fl)M8t&+rumhiO;*3*OB*?oTHK)ac{Rz#|#euGWMc!rj3!q+-SS3e1`! zr_=r333WshsnsTg2##+A0|qsy2&xUW6sxVP#?0H$sWw`b7;xWLCrq2DRz#r_!;^c^ zilCpH5g6^f-MHPNnSmIZx1m5qQPSo~niS}5B2k(lh`BEok!V$oo8e*wiU}TbUjoH- zb=nO3go4GiI%!7gkhMO?VA&~DRMz@Xoi}5|2q_|5*d-imee@|PO$kz^*rr#B%M3fwWkR<(E;6_OkHL`!_qvM^GQkGP#4Xs-E}<*ARV53 zEL|^jERB>BUJ)6Ih9_f=rM{lw6)mc>25hVPN2+%mhHUB|geWs!r=f)O?jh&)ZS}lq z(Nn>aNY4E#SfOhMa%0y(MANokvo*T{5<1v1s+NR!+7Gr>)e0j5>S?Q_iDb>It=G0f zYK8=U+7XeXjzo{w{BHW}vofs7msX0sdI^D;EI+2s^1j-|bIoH4Xs(&_Y_O}Hy3{i~ z(4KUu57jef=eJ(1ZLO0}%&WHBwIC)_D~EP-LvDV$;P=qW4ADQL(#;a0(R?QX=^$|d zJVc_YweJD=ymAe6W{cU}DY+ZkcA9#HhqT9b=xrwJ=^SUci47HjtUf2P>056w24k+Q zMc?`%^_&3|H$Simbl4K!<6-T`1{5IZ7qKOTxPZC8Wg)rm^LTbH5Rn9&(4K@iyB;RP z!`Nl!E^)OGoS2$XzB|;zX&!Gs>fx;be`c)e$CB;`1GjIBd7B5eXFO9Q8GQFeRPs{wq0$F64 zmNdZO$z5ey*dKhcZ4*M?efR>A|7Fw&((i_2LgwbAc_yFJcNg}5Rv}0M9D>2k7mxyQ zJI)|!gZq+7VNdiWJWxL4Ho1>+c6FOflM~ZmFlIO1KR$#cB*e#vA290CFh&P z^$&?R(m3pdx06qQT#21TV4^18BtXZ}wV;!x-H5WR0L`^6B*ze*&vjW2#J4t(N{}BX zVmu)+dx$(U?NSSwuVPUV(K)Qui|c|M5NOvH-CrDFVr7vh;*t<2E(Z|9Awk<|XF~ou zK%lv`XyUUJ2PdhFCk~ztBJ(X($gUvlRW}3xifk;4=jOuuDKMRd77a)dfZXDsAyWk-_!^X$sa zrR5vi7d~>7(g|e{3O!k*coy?+#QkocI@WbOJG_~}Wu@D{=ga!8I)sF=R;?^C(QyHh zU9(f-9eO#hGmY4Ufm{;y_IS6(YU-dK;aJ!yOLwjh2pxieTI5)5_RAt?0*E_YX&@~h zW=_r`C4)gip2LMgBAq;EW&iqTrVr_KQ}?S0b$o{NC$u`UT>bJ6qW3VOg5>rkge(@J zpp)f7jE>!8bW$DCL_kM+o;5cQml>oEH3^WPoYv#ZB0vV4C9>U0D1lp6$L5gODYRt& zAOKhm0s%{l7hnwsV4CWF6KfS?$Wx!_4Rvsb%`6-?F+6D(%=EMZgCHUb;r9mB33*Fe zL>>mqr-zFa%x1o^5m@4*!1VXDeq$^`!h!g(or>g)G6RajEnLjvrVhJmaEZ9ogpo@m ze$=k=8CMN10Qb?-$($P5X>PVku$F2iMM5y*?xewAdR2NAM6;oQeaTG~ReE;`Yr+rk zKZau!C+N|1IwJrb*k|tb^odgk3Fb!>z9n;#)bltVx_joNxWw(`hGwQ1*C3G^@#J+n z8OExLYfFLiqVmTNqHU{sgF137MXTR~sng-vwEKybZjZAz<0KKDF5<0vjI>G?bjbtF zaSWlHwUj8(cDRF-NF-x+<}Xr`=Kh3Xc7@*sBk)3~wqsfo#c6rZ(y)4Gx$ z-QP;6bGR9FB#79AOi@1wx-%UOP9U-qXWX(t7^Oo@n%qy3Fo*SM1z78aPj4w_yW@?7 ziZZQ?l5%(i&H$7^iGJ$PJYx-VvH&Ew`Go|8sA@YLrS$YL^G;`=6oIi9mw;^-AF5H_ zM2UCwo*tAZ!_ibEl5wOUA(clbaN5q zOyFfCaX+6a6rcxCs4SF_x$I(gnUoy=ai3|pid4kK%mQWSZK&h3#M-J)UBoljo43qe zQls-o!qKxl#u*JHU>WcW>UeZOr2f~vD&&>HvWUf|fK5;F8kjn=jf651`6`gXDZs!ppTCq0K>W*MR-6Z ztVNx{rU(stVkLGjfJbM)bN> zQw%QzVW}J~rX#=vTVr2?CTDvA8|@(zRz}NA#*}u6_D!4cGQ<-bq#0d^t%XpAld>@V zSQPpp_ge|%zp(af1eE=6WSs7bTo0DY$t1;j7m|6UaG#3A&TBJF^VA!&=Lo1k^87{)S+UFA;hk&5s*<8JK_weV3r}u zqB4}K$`3%+Z9#(@OrIgL;T$4hF|~=t$ruy8!HzbXW0jr3jT~UfrlWVFDjac$eW-BG z8%hO{vpVa;uKf~FLCCBF?bjAmPUI%eaIjG73@VStG1izP?a6CF8;^MQP@WKnbdpRv z;Mgox6iT{pOBDt}a$gyBgkbK~Sp*bTy6ZrB(@Q54K+o2&=UY^{ys)8;4&GzHy7f;X>&z<|=i&kj->7zO1B+OJd>L1p4MJ*=*mhk;oGyPz)fc#}i~GV|c`_1E=#e z2Iamnyf)%MiL6xl=(M2H)})`CAWe@4VNYF!)GP{A2T3t*Mv)M4J7gqoXXukK=zo?_ z0|F6Ly8QJ_p))6${b20OLICRW3MWdUFeE#(;BYI>EoZZoB?*649}d{)3=~9;MJ-Ox zuWCnEKRJ?SmoqsEOAS3gKzd~0<|-^@ZjcXefSZ#;F4~;EXv<6U^V6A`8$|=op|KxT zM?0_B`?_2Zoq^=!q~W$;CxHXR->QzzQaI>hPcI_WqUvm?eC1=J%DQ;#P1FS@w*4zhbl?y36W%^BO?H&QPgI7osJ4`H9u`to26Qd zum7O)zB+1*`3+8Kp|Cw7Y%yUsWS7+BW=Yz+AHe{9qAQONdNTe=%9M`gGOf{DUD2!5~`VRp>)sIPwwl1*%EwE~)|kg9rnPU};}}0VX;oq{W5Y;u0#sN!&sK zcDi%wG}_5yykT1FzwSd#u~Ex$b0B!@gDNPqn-W7?h~O4E+ z+?x~>(X6a<+QJ}M5nDVBaIkJ@i(xe1TS~0;HsQE`w_iEhrcCV3M7pDjf)06O6cdkw zB7YB2#z-mBrN0KDawE6WI25TywW(2Jk46BTQkRvQIycoQ4XbCQs9mZ6rKR&JE4A+i zG#vsuFC#eX>bXvML&~|fw~;}Oc%8jw6^$BRuR*mAjrLINW~^(DASHl}lkTcW40?eE zI!KU6Xu6i0@03GPf@CSbl3PGvQgL+!`AoM=twYE}x~R@9)h6#(LAdOONEa}o zpmca`duLnXsmQ7Vy_Fvj+WXyq)u%=cl4-Ney+lK~m%7{-8H%Y2Ip5M?M@hke=g+T= z?N`m9BM>>bs9Q$6G>9TmTw9$LEUo(!{*#mTay1sfVo1pH>0^hrT` zkyGEYQm#%2Y{f5xd7Zaaz>u2|ar*Olf84ywKf}J>piIWo!^`pDfbzMDa%8d2BLwgy zY`?8`F2Ah5X7ls_FwC5%BD)#v&#?Oxk$A0xcs$KU@2b;AF!+7~!W-rOI=(1D`5^lH z0|9*jAvO=SBttZ!pVYeWE2bVotjXFz9~}S!IU|~l)e?i~T$6X+of2zfFb7az6&;`0 zu>AaLL0St;Z0q9uSehg{ko%_zH8R)Hfp{U?;V=qPJ*BFsRN2M|tPk`%KctR_hcm`6 zCV$DvH?4Q3bE0(cAYz!KtljQcRO|{*i-qf%WwNpqR>+q>_fdC#F?ep)G($0IDi&>n z)%^yJZA`G>yXruwz?WT-vv*B%WiMEB=wAw#wtQ>_(Ft=1KwikMWMHStKMS!po062d*R4LH+#c*r@hGY-vD;f&S#1GNQ zT*rYgf{cu|#^3A*32<8^?T5AQ2;6pSZAd*8c%rZ~5q5tGpZo#wf=>hYMOPWPst(ZC zg0${yPXg@dlcvuHz)G z70g1%1!?dzH_D$pPj>-%*@Qv>f%aKBJ&|rk~xyPe7L%_l0oI^nQWHQ zFoc_Hln>a0x)URroDGsk#`w;|nTI&z8Nu0Ai!>=<3%>6ZDC^ANn7=|o}XiSA2 zuFifYs=~bk+qJIWL-zXXnZ?EIdHb|0rCMtG`oQx7rGtaHILXX|i>yhtt03$5vs(qH9=W$nUrDYAH{c*e=VkQ* z0(IJryX5GqZIa55s*gISBivlVa3HJT>y0&h0wKJUc2V~C-LJCWys;Dv`Sil&~x z@;)dmE#9oI->5$D<1;!D(Ng^%+`r4FS$uFvlqVGL2Pk^2_<<6MTKJ)|{wB`=u7gCK zDa8=|S=Dv=@aM-Y{_)cXIwuYt%dLCz*(>*b-lhm}8uc%#1E{cWLa|bY9GAmB7l2E( zIg-(UpC=0wf~C-TzstXGOlAq74plIp>80odl>O67UBdC|lyb&`& z`J6-188hW+gheeD@Bs+0(hg#Tv^$-vC$D9owfv0!+2^LolhYYa0P6$^-dyMo!7^+F zV08Ao6M?9j)0xwn1H&ZY7a-wCFBUqeuCi&UDO$j>BNhku24vLEs$_4dQO!m}-$RhC z?fDHn`p}+39Fr=}g$l^M4Q~QzZCXFD)Bo;%96(Yfl8Ad6s!{At!mU8#MFk~nR(5e_ z`J=ozeerWPYku~@Nq3e4Gf~73VFV~Vpyif0T1B5TfdLbV&@X}gSD!|Hzk3?eqzz_2gN!4z>?LD8#nBDYU&5;Ogkh9fA zgk2MzgU3FHZ#=@2uO(WLJ8*9E3<_VC2p@d*B*Q|s)o&!rbe5kVaQ`7hk4}&}#8KZ` zXJl4cZWk74)kCnLjRvKJfhNX~$;7l5d+D6NV+&x!qie9^`BmOT2l-x~I&BP%7^0)d zCdb+mxAq_PfjO4ti&g<*05o10Hg}ghi zx6h|+(AidJz#Q@YAoiitw-BWoKOP1jO1ZvIfIyebh)CJv0fkhJU8L&V-O%D7lL+r2 zfgRET@97x$Ty)aByQ+y?&TgxEdUoG;Lh;e-WNmsNaORCpBC(5IT zzRcG(4_=3|!@6E0xCfQYg5r*XA$;=iAWE`>oG==OC++1yx;v)xJL@2UV?T*N5c#tU zVE9xAsDfTuD9rTupJwoNEtyU4FbYL@_z3Ry#0s?|U^Ky``?C*V@VO7{``D5?D1X8E ztg81YXieML`ymV1zq)H#T9$gQ(5JN8;0NXhEQcqvYmokJpE1CvaZMI_W-XIL>N%(l zw+3|z<C6TK%(1u{%$p~zip7xB*?Zem-zr6{bd(eA725az?M^D5~( z&?i88Q2xGR(jzdV zR|O6*yoe3ZM-Th`Nc9t}lE11|t8Nh8_e-gZB^=RqX6isoE5bEHAH!w6j7-ibiG*(n zRZQxJ`JyfrvftT6T>$`Y;;m3OhKhpdj|C$W1Mvj-jwsGe6;*Uv$m*xke_}>)&#EEz zSyCO&F4EzysUy)6LRl!3@Yy4s2$#An+(OvbXRX}A@2&d?xpV&r7F+u(FzaJRVl@+q zVwa3@3ERhk9ZpZ_B8zXx|AnNL6BIv(`W+x4QH>3eEQOCyaATq9x1dNCh@Vu0g1(Oe z)q#FOts?;k6+HUsr}=ao+2A15pz7rc#R}q!6(ZQ6%BA}&5Nd)9P)+r($70h?|HA`B z5Q-qw(-Jj;4^y`q;OBR$5Ki<4(bj*!rgR6z+^Vr2iy)=o)+snXZk702^qA z5Ly>9pD(Ul$0yb2uIFKw?Q{QYLYinbkl-K zb&5Q{w$I#x$xw_%`19X%Ck|_6_w8* zmN(|ZIjF-kpPkF#(=w(dh#Y8NW_FG0>C6U?`!0P^oit=18hP(rR4@3jAns4cXvyO2%R(f zS(I^gmQRH~4wk_Xk>G#1DnXIW{)evmCVzd7KHSBXtmJC6oc{(9k4ypjvFF(3nQ#+r zKpu;silM=9CfFhjHudBG;lF&nujE{wxOZjZ6Df-Gj&`?s6PG6Fp0p|OcH+{*32h|v zZe4LEsJ-9r6a5#2l!p_X_dD?k{S$O~lsOu-xlHdKWpoW5=X(f{g#}oz)Umtcf(B-p zJrj{(OX8K)^~&hmGBNA&mxU$Xde?b-pDUaAM5Bck|0o0Zj`3CUGA{>jA7%IxH_rdW z$E+enj~x4sMcSBE+g&^GBS;}Rv+hlIUpqRLxOD4PcfXs8UXL=TVix=;la%9RFyQ?8 zJ`@z=#2&NN_H{?v>~-D0Ec@LalXdTLziHi>u_xMcM#8f(NWhu6yu(X=lo=+N^e^Wp z`cQC
      y7*vnQ%8|@VvzaZH7R$}Z;zSw(1$3z|0hddH~>9!MUO7893PjVeX1Aand zOR0Gx5`q-W;e5Lf6gUWc4#&6I6Itwy_llYC3TA#a;m$oaW?(!Dfk}wka7*7GJW+U_ z4)-Hu{R1R%VEtMc)wX%ZZV~Tlw^tPXj-cqzCEPdmfue^~K#K;9P?B?Jp9m#ejm=GX z8Zp$P%%vXJOSdzh*?N>Y&iAb2vGZ?qMHBxc2nKof_#7ZF5TJF_z2fgb3I6^vku-OPRn%MRi%UFCl=-$biE(c8mM4n1FL?TNzjzW>CEz@bb0yVD7)cj*hpqQxaq8a** z0`Jx<&XqlGcF?I?J9Pdx^k3+F{z_vALAZ%o=58v|x8z*6_0s5G#i@n?h@>1&JMZs% zX%nCLV~B!yw)4)1-y0PX--kZhQFJPX!*;YXI5=r6zV3PP zQ;0%EY&u=%y^AIO(jdF|e-j#l(H>>?gpfZ($p`E;Nn)mGRSZHpS{a1cKMxch&;1F( z&F1ds;^BlB0_4_f&MSL77t&2^*xiTT?Ec@zHODeSQD-sNJle=C)qc%8+v;n6m9M#8 zL2m<4*ibS-VTR5(pwScgFgmOkLx&@6448I(x1*_s^6$&md^O>SKHHNVMd0*R+FRG1 zCzEgdk#-@~#;o->`_wRyZgAto1hs{l7|iUFrTK3K8DBTZ=yiv+^@&V*KKw+=ZaS-b zJhJ`>VLMl7u&84HD0BOzP68KLz%COE#t2|eI}8BHXce=V(;jVPkhL4N*Vy{Wg!|Y> zhlt*jO2E4b#1}mnu!CxF(Eie^baIf#mRQ>A|y^vF74W{pSwChhEgIJ6HQ%7VU0ZE9x}_xCpi%gzU40uqdm&FJ-D`xe|(fVOsDs<{^@*6lHbCayD>63 z+^ykOd&Sj16BNMs58e4EIVF}McaZ|c)dzEyV^~U%R_xd# zZMqxo6;Zz-i26pteQ#eE$}pW=1XnBW(i7pzI_jR#^)q5vUes|h#;rw$cS+E$+<#p`e z90Wm%G~4U(`F+94&nDb=_H}#!Wn?}=$+ElfBq$;5c8>Wd)5}g;7sTiimBvmQed;_i z_3ZtcVv^JA#Cv~`0;KDqMbeRXJz{?($o%>J2~m8kx>Ak_p=<7kPl{06xQ{YD-9f?X zeZ*>aP}ds=X`5Vvs55`Ti;<^D#qVls&Z^z#8`DKw2i|7s`*r74KD}MGfrk^NO;m)W z?9|G{PG<(s*!*v1Qn1MAN{RA?PZON}JDK#IcDw0KO-$Usf4?(w9nRT1Fg7%HDlel{ zYI~#6+MfOtLOTecF~0=^-@7tBIwLVYWOYIgZJtbX`NXZaWlnV2Lat4^(b}BYtk&6Z zHxYm{;SYsXUiE)`yYIAoUo<^KfFQWftYq!VZ<=?vZ}Ut1W8U7ry>{gf`_4+&sVRPq zf6VKtDZI|S-#cXA1U&?f$%hjh^p6Mp@5A+jyoy&|Qser+%j50VPW9qdiL>i)a8spT`S}7aLcRQ?xA|9)c*s-ARL(h 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 e11222fbda1f..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AcceleratorConfig.php +++ /dev/null @@ -1,191 +0,0 @@ -google.container.v1.AcceleratorConfig - */ -class AcceleratorConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The number of the accelerator cards exposed to an instance. - * - * Generated from protobuf field int64 accelerator_count = 1; - */ - protected $accelerator_count = 0; - /** - * The accelerator type resource name. List of supported accelerators - * [here](https://cloud.google.com/compute/docs/gpus) - * - * Generated from protobuf field string accelerator_type = 2; - */ - protected $accelerator_type = ''; - /** - * Size of partitions to create on the GPU. Valid values are described in the - * NVIDIA [mig user - * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning). - * - * Generated from protobuf field string gpu_partition_size = 3; - */ - protected $gpu_partition_size = ''; - /** - * The configuration for GPU sharing options. - * - * Generated from protobuf field optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; - */ - protected $gpu_sharing_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $accelerator_count - * The number of the accelerator cards exposed to an instance. - * @type string $accelerator_type - * The accelerator type resource name. List of supported accelerators - * [here](https://cloud.google.com/compute/docs/gpus) - * @type string $gpu_partition_size - * Size of partitions to create on the GPU. Valid values are described in the - * NVIDIA [mig user - * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning). - * @type \Google\Cloud\Container\V1\GPUSharingConfig $gpu_sharing_config - * The configuration for GPU sharing options. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The number of the accelerator cards exposed to an instance. - * - * Generated from protobuf field int64 accelerator_count = 1; - * @return int|string - */ - public function getAcceleratorCount() - { - return $this->accelerator_count; - } - - /** - * The number of the accelerator cards exposed to an instance. - * - * Generated from protobuf field int64 accelerator_count = 1; - * @param int|string $var - * @return $this - */ - public function setAcceleratorCount($var) - { - GPBUtil::checkInt64($var); - $this->accelerator_count = $var; - - return $this; - } - - /** - * The accelerator type resource name. List of supported accelerators - * [here](https://cloud.google.com/compute/docs/gpus) - * - * Generated from protobuf field string accelerator_type = 2; - * @return string - */ - public function getAcceleratorType() - { - return $this->accelerator_type; - } - - /** - * The accelerator type resource name. List of supported accelerators - * [here](https://cloud.google.com/compute/docs/gpus) - * - * Generated from protobuf field string accelerator_type = 2; - * @param string $var - * @return $this - */ - public function setAcceleratorType($var) - { - GPBUtil::checkString($var, True); - $this->accelerator_type = $var; - - return $this; - } - - /** - * Size of partitions to create on the GPU. Valid values are described in the - * NVIDIA [mig user - * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning). - * - * Generated from protobuf field string gpu_partition_size = 3; - * @return string - */ - public function getGpuPartitionSize() - { - return $this->gpu_partition_size; - } - - /** - * Size of partitions to create on the GPU. Valid values are described in the - * NVIDIA [mig user - * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning). - * - * Generated from protobuf field string gpu_partition_size = 3; - * @param string $var - * @return $this - */ - public function setGpuPartitionSize($var) - { - GPBUtil::checkString($var, True); - $this->gpu_partition_size = $var; - - return $this; - } - - /** - * The configuration for GPU sharing options. - * - * Generated from protobuf field optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; - * @return \Google\Cloud\Container\V1\GPUSharingConfig|null - */ - public function getGpuSharingConfig() - { - return $this->gpu_sharing_config; - } - - public function hasGpuSharingConfig() - { - return isset($this->gpu_sharing_config); - } - - public function clearGpuSharingConfig() - { - unset($this->gpu_sharing_config); - } - - /** - * The configuration for GPU sharing options. - * - * Generated from protobuf field optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; - * @param \Google\Cloud\Container\V1\GPUSharingConfig $var - * @return $this - */ - public function setGpuSharingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GPUSharingConfig::class); - $this->gpu_sharing_config = $var; - - return $this; - } - -} - 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 36ac5b53077e..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AddonsConfig.php +++ /dev/null @@ -1,525 +0,0 @@ -google.container.v1.AddonsConfig - */ -class AddonsConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Configuration for the HTTP (L7) load balancing controller addon, which - * makes it easy to set up HTTP load balancers for services in a cluster. - * - * Generated from protobuf field .google.container.v1.HttpLoadBalancing http_load_balancing = 1; - */ - protected $http_load_balancing = null; - /** - * Configuration for the horizontal pod autoscaling feature, which - * increases or decreases the number of replica pods a replication controller - * has based on the resource usage of the existing pods. - * - * Generated from protobuf field .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - */ - protected $horizontal_pod_autoscaling = null; - /** - * Configuration for the Kubernetes Dashboard. - * This addon is deprecated, and will be disabled in 1.15. It is recommended - * to use the Cloud Console to manage and monitor your Kubernetes clusters, - * workloads and applications. For more information, see: - * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards - * - * Generated from protobuf field .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * @deprecated - */ - protected $kubernetes_dashboard = null; - /** - * Configuration for NetworkPolicy. This only tracks whether the addon - * is enabled or not on the Master, it does not track whether network policy - * is enabled for the nodes. - * - * Generated from protobuf field .google.container.v1.NetworkPolicyConfig network_policy_config = 4; - */ - protected $network_policy_config = null; - /** - * Configuration for the Cloud Run addon, which allows the user to use a - * managed Knative service. - * - * Generated from protobuf field .google.container.v1.CloudRunConfig cloud_run_config = 7; - */ - protected $cloud_run_config = null; - /** - * Configuration for NodeLocalDNS, a dns cache running on cluster nodes - * - * Generated from protobuf field .google.container.v1.DnsCacheConfig dns_cache_config = 8; - */ - protected $dns_cache_config = null; - /** - * Configuration for the ConfigConnector add-on, a Kubernetes - * extension to manage hosted GCP services through the Kubernetes API - * - * Generated from protobuf field .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - */ - protected $config_connector_config = null; - /** - * Configuration for the Compute Engine Persistent Disk CSI driver. - * - * Generated from protobuf field .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - */ - protected $gce_persistent_disk_csi_driver_config = null; - /** - * Configuration for the GCP Filestore CSI driver. - * - * Generated from protobuf field .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - */ - protected $gcp_filestore_csi_driver_config = null; - /** - * Configuration for the Backup for GKE agent addon. - * - * Generated from protobuf field .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; - */ - protected $gke_backup_agent_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\HttpLoadBalancing $http_load_balancing - * Configuration for the HTTP (L7) load balancing controller addon, which - * makes it easy to set up HTTP load balancers for services in a cluster. - * @type \Google\Cloud\Container\V1\HorizontalPodAutoscaling $horizontal_pod_autoscaling - * Configuration for the horizontal pod autoscaling feature, which - * increases or decreases the number of replica pods a replication controller - * has based on the resource usage of the existing pods. - * @type \Google\Cloud\Container\V1\KubernetesDashboard $kubernetes_dashboard - * Configuration for the Kubernetes Dashboard. - * This addon is deprecated, and will be disabled in 1.15. It is recommended - * to use the Cloud Console to manage and monitor your Kubernetes clusters, - * workloads and applications. For more information, see: - * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards - * @type \Google\Cloud\Container\V1\NetworkPolicyConfig $network_policy_config - * Configuration for NetworkPolicy. This only tracks whether the addon - * is enabled or not on the Master, it does not track whether network policy - * is enabled for the nodes. - * @type \Google\Cloud\Container\V1\CloudRunConfig $cloud_run_config - * Configuration for the Cloud Run addon, which allows the user to use a - * managed Knative service. - * @type \Google\Cloud\Container\V1\DnsCacheConfig $dns_cache_config - * Configuration for NodeLocalDNS, a dns cache running on cluster nodes - * @type \Google\Cloud\Container\V1\ConfigConnectorConfig $config_connector_config - * Configuration for the ConfigConnector add-on, a Kubernetes - * extension to manage hosted GCP services through the Kubernetes API - * @type \Google\Cloud\Container\V1\GcePersistentDiskCsiDriverConfig $gce_persistent_disk_csi_driver_config - * Configuration for the Compute Engine Persistent Disk CSI driver. - * @type \Google\Cloud\Container\V1\GcpFilestoreCsiDriverConfig $gcp_filestore_csi_driver_config - * Configuration for the GCP Filestore CSI driver. - * @type \Google\Cloud\Container\V1\GkeBackupAgentConfig $gke_backup_agent_config - * Configuration for the Backup for GKE agent addon. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Configuration for the HTTP (L7) load balancing controller addon, which - * makes it easy to set up HTTP load balancers for services in a cluster. - * - * Generated from protobuf field .google.container.v1.HttpLoadBalancing http_load_balancing = 1; - * @return \Google\Cloud\Container\V1\HttpLoadBalancing|null - */ - public function getHttpLoadBalancing() - { - return $this->http_load_balancing; - } - - public function hasHttpLoadBalancing() - { - return isset($this->http_load_balancing); - } - - public function clearHttpLoadBalancing() - { - unset($this->http_load_balancing); - } - - /** - * Configuration for the HTTP (L7) load balancing controller addon, which - * makes it easy to set up HTTP load balancers for services in a cluster. - * - * Generated from protobuf field .google.container.v1.HttpLoadBalancing http_load_balancing = 1; - * @param \Google\Cloud\Container\V1\HttpLoadBalancing $var - * @return $this - */ - public function setHttpLoadBalancing($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\HttpLoadBalancing::class); - $this->http_load_balancing = $var; - - return $this; - } - - /** - * Configuration for the horizontal pod autoscaling feature, which - * increases or decreases the number of replica pods a replication controller - * has based on the resource usage of the existing pods. - * - * Generated from protobuf field .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - * @return \Google\Cloud\Container\V1\HorizontalPodAutoscaling|null - */ - public function getHorizontalPodAutoscaling() - { - return $this->horizontal_pod_autoscaling; - } - - public function hasHorizontalPodAutoscaling() - { - return isset($this->horizontal_pod_autoscaling); - } - - public function clearHorizontalPodAutoscaling() - { - unset($this->horizontal_pod_autoscaling); - } - - /** - * Configuration for the horizontal pod autoscaling feature, which - * increases or decreases the number of replica pods a replication controller - * has based on the resource usage of the existing pods. - * - * Generated from protobuf field .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - * @param \Google\Cloud\Container\V1\HorizontalPodAutoscaling $var - * @return $this - */ - public function setHorizontalPodAutoscaling($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\HorizontalPodAutoscaling::class); - $this->horizontal_pod_autoscaling = $var; - - return $this; - } - - /** - * Configuration for the Kubernetes Dashboard. - * This addon is deprecated, and will be disabled in 1.15. It is recommended - * to use the Cloud Console to manage and monitor your Kubernetes clusters, - * workloads and applications. For more information, see: - * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards - * - * Generated from protobuf field .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * @return \Google\Cloud\Container\V1\KubernetesDashboard|null - * @deprecated - */ - public function getKubernetesDashboard() - { - @trigger_error('kubernetes_dashboard is deprecated.', E_USER_DEPRECATED); - return $this->kubernetes_dashboard; - } - - public function hasKubernetesDashboard() - { - @trigger_error('kubernetes_dashboard is deprecated.', E_USER_DEPRECATED); - return isset($this->kubernetes_dashboard); - } - - public function clearKubernetesDashboard() - { - @trigger_error('kubernetes_dashboard is deprecated.', E_USER_DEPRECATED); - unset($this->kubernetes_dashboard); - } - - /** - * Configuration for the Kubernetes Dashboard. - * This addon is deprecated, and will be disabled in 1.15. It is recommended - * to use the Cloud Console to manage and monitor your Kubernetes clusters, - * workloads and applications. For more information, see: - * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards - * - * Generated from protobuf field .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * @param \Google\Cloud\Container\V1\KubernetesDashboard $var - * @return $this - * @deprecated - */ - public function setKubernetesDashboard($var) - { - @trigger_error('kubernetes_dashboard is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\KubernetesDashboard::class); - $this->kubernetes_dashboard = $var; - - return $this; - } - - /** - * Configuration for NetworkPolicy. This only tracks whether the addon - * is enabled or not on the Master, it does not track whether network policy - * is enabled for the nodes. - * - * Generated from protobuf field .google.container.v1.NetworkPolicyConfig network_policy_config = 4; - * @return \Google\Cloud\Container\V1\NetworkPolicyConfig|null - */ - public function getNetworkPolicyConfig() - { - return $this->network_policy_config; - } - - public function hasNetworkPolicyConfig() - { - return isset($this->network_policy_config); - } - - public function clearNetworkPolicyConfig() - { - unset($this->network_policy_config); - } - - /** - * Configuration for NetworkPolicy. This only tracks whether the addon - * is enabled or not on the Master, it does not track whether network policy - * is enabled for the nodes. - * - * Generated from protobuf field .google.container.v1.NetworkPolicyConfig network_policy_config = 4; - * @param \Google\Cloud\Container\V1\NetworkPolicyConfig $var - * @return $this - */ - public function setNetworkPolicyConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkPolicyConfig::class); - $this->network_policy_config = $var; - - return $this; - } - - /** - * Configuration for the Cloud Run addon, which allows the user to use a - * managed Knative service. - * - * Generated from protobuf field .google.container.v1.CloudRunConfig cloud_run_config = 7; - * @return \Google\Cloud\Container\V1\CloudRunConfig|null - */ - public function getCloudRunConfig() - { - return $this->cloud_run_config; - } - - public function hasCloudRunConfig() - { - return isset($this->cloud_run_config); - } - - public function clearCloudRunConfig() - { - unset($this->cloud_run_config); - } - - /** - * Configuration for the Cloud Run addon, which allows the user to use a - * managed Knative service. - * - * Generated from protobuf field .google.container.v1.CloudRunConfig cloud_run_config = 7; - * @param \Google\Cloud\Container\V1\CloudRunConfig $var - * @return $this - */ - public function setCloudRunConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\CloudRunConfig::class); - $this->cloud_run_config = $var; - - return $this; - } - - /** - * Configuration for NodeLocalDNS, a dns cache running on cluster nodes - * - * Generated from protobuf field .google.container.v1.DnsCacheConfig dns_cache_config = 8; - * @return \Google\Cloud\Container\V1\DnsCacheConfig|null - */ - public function getDnsCacheConfig() - { - return $this->dns_cache_config; - } - - public function hasDnsCacheConfig() - { - return isset($this->dns_cache_config); - } - - public function clearDnsCacheConfig() - { - unset($this->dns_cache_config); - } - - /** - * Configuration for NodeLocalDNS, a dns cache running on cluster nodes - * - * Generated from protobuf field .google.container.v1.DnsCacheConfig dns_cache_config = 8; - * @param \Google\Cloud\Container\V1\DnsCacheConfig $var - * @return $this - */ - public function setDnsCacheConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\DnsCacheConfig::class); - $this->dns_cache_config = $var; - - return $this; - } - - /** - * Configuration for the ConfigConnector add-on, a Kubernetes - * extension to manage hosted GCP services through the Kubernetes API - * - * Generated from protobuf field .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - * @return \Google\Cloud\Container\V1\ConfigConnectorConfig|null - */ - public function getConfigConnectorConfig() - { - return $this->config_connector_config; - } - - public function hasConfigConnectorConfig() - { - return isset($this->config_connector_config); - } - - public function clearConfigConnectorConfig() - { - unset($this->config_connector_config); - } - - /** - * Configuration for the ConfigConnector add-on, a Kubernetes - * extension to manage hosted GCP services through the Kubernetes API - * - * Generated from protobuf field .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - * @param \Google\Cloud\Container\V1\ConfigConnectorConfig $var - * @return $this - */ - public function setConfigConnectorConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ConfigConnectorConfig::class); - $this->config_connector_config = $var; - - return $this; - } - - /** - * Configuration for the Compute Engine Persistent Disk CSI driver. - * - * Generated from protobuf field .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - * @return \Google\Cloud\Container\V1\GcePersistentDiskCsiDriverConfig|null - */ - public function getGcePersistentDiskCsiDriverConfig() - { - return $this->gce_persistent_disk_csi_driver_config; - } - - public function hasGcePersistentDiskCsiDriverConfig() - { - return isset($this->gce_persistent_disk_csi_driver_config); - } - - public function clearGcePersistentDiskCsiDriverConfig() - { - unset($this->gce_persistent_disk_csi_driver_config); - } - - /** - * Configuration for the Compute Engine Persistent Disk CSI driver. - * - * Generated from protobuf field .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - * @param \Google\Cloud\Container\V1\GcePersistentDiskCsiDriverConfig $var - * @return $this - */ - public function setGcePersistentDiskCsiDriverConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GcePersistentDiskCsiDriverConfig::class); - $this->gce_persistent_disk_csi_driver_config = $var; - - return $this; - } - - /** - * Configuration for the GCP Filestore CSI driver. - * - * Generated from protobuf field .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * @return \Google\Cloud\Container\V1\GcpFilestoreCsiDriverConfig|null - */ - public function getGcpFilestoreCsiDriverConfig() - { - return $this->gcp_filestore_csi_driver_config; - } - - public function hasGcpFilestoreCsiDriverConfig() - { - return isset($this->gcp_filestore_csi_driver_config); - } - - public function clearGcpFilestoreCsiDriverConfig() - { - unset($this->gcp_filestore_csi_driver_config); - } - - /** - * Configuration for the GCP Filestore CSI driver. - * - * Generated from protobuf field .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * @param \Google\Cloud\Container\V1\GcpFilestoreCsiDriverConfig $var - * @return $this - */ - public function setGcpFilestoreCsiDriverConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GcpFilestoreCsiDriverConfig::class); - $this->gcp_filestore_csi_driver_config = $var; - - return $this; - } - - /** - * Configuration for the Backup for GKE agent addon. - * - * Generated from protobuf field .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; - * @return \Google\Cloud\Container\V1\GkeBackupAgentConfig|null - */ - public function getGkeBackupAgentConfig() - { - return $this->gke_backup_agent_config; - } - - public function hasGkeBackupAgentConfig() - { - return isset($this->gke_backup_agent_config); - } - - public function clearGkeBackupAgentConfig() - { - unset($this->gke_backup_agent_config); - } - - /** - * Configuration for the Backup for GKE agent addon. - * - * Generated from protobuf field .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; - * @param \Google\Cloud\Container\V1\GkeBackupAgentConfig $var - * @return $this - */ - public function setGkeBackupAgentConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GkeBackupAgentConfig::class); - $this->gke_backup_agent_config = $var; - - return $this; - } - -} - 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 772257bb3fc1..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutoprovisioningNodePoolDefaults.php +++ /dev/null @@ -1,493 +0,0 @@ -google.container.v1.AutoprovisioningNodePoolDefaults - */ -class AutoprovisioningNodePoolDefaults extends \Google\Protobuf\Internal\Message -{ - /** - * Scopes that are used by NAP when creating node pools. - * - * Generated from protobuf field repeated string oauth_scopes = 1; - */ - private $oauth_scopes; - /** - * The Google Cloud Platform Service Account to be used by the node VMs. - * - * Generated from protobuf field string service_account = 2; - */ - protected $service_account = ''; - /** - * Specifies the upgrade settings for NAP created node pools - * - * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - */ - protected $upgrade_settings = null; - /** - * Specifies the node management options for NAP created node-pools. - * - * Generated from protobuf field .google.container.v1.NodeManagement management = 4; - */ - protected $management = null; - /** - * Deprecated. Minimum CPU platform to be used for NAP created node pools. - * The instance may be scheduled on the specified or newer CPU platform. - * Applicable values are the friendly names of CPU platforms, such as - * minCpuPlatform: Intel Haswell or - * minCpuPlatform: Intel Sandy Bridge. For more - * information, read [how to specify min CPU - * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). - * This field is deprecated, min_cpu_platform should be specified using - * `cloud.google.com/requested-min-cpu-platform` label selector on the pod. - * To unset the min cpu platform field pass "automatic" - * as field value. - * - * Generated from protobuf field string min_cpu_platform = 5 [deprecated = true]; - * @deprecated - */ - protected $min_cpu_platform = ''; - /** - * Size of the disk attached to each node, specified in GB. - * The smallest allowed disk size is 10GB. - * If unspecified, the default disk size is 100GB. - * - * Generated from protobuf field int32 disk_size_gb = 6; - */ - protected $disk_size_gb = 0; - /** - * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or - * 'pd-balanced') - * If unspecified, the default disk type is 'pd-standard' - * - * Generated from protobuf field string disk_type = 7; - */ - protected $disk_type = ''; - /** - * Shielded Instance options. - * - * Generated from protobuf field .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - */ - protected $shielded_instance_config = null; - /** - * The Customer Managed Encryption Key used to encrypt the boot disk attached - * to each node in the node pool. This should be of the form - * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. - * For more information about protecting resources with Cloud KMS Keys please - * see: - * https://cloud.google.com/compute/docs/disks/customer-managed-encryption - * - * Generated from protobuf field string boot_disk_kms_key = 9; - */ - protected $boot_disk_kms_key = ''; - /** - * The image type to use for NAP created node. Please see - * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for - * available image types. - * - * Generated from protobuf field string image_type = 10; - */ - protected $image_type = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $oauth_scopes - * Scopes that are used by NAP when creating node pools. - * @type string $service_account - * The Google Cloud Platform Service Account to be used by the node VMs. - * @type \Google\Cloud\Container\V1\NodePool\UpgradeSettings $upgrade_settings - * Specifies the upgrade settings for NAP created node pools - * @type \Google\Cloud\Container\V1\NodeManagement $management - * Specifies the node management options for NAP created node-pools. - * @type string $min_cpu_platform - * Deprecated. Minimum CPU platform to be used for NAP created node pools. - * The instance may be scheduled on the specified or newer CPU platform. - * Applicable values are the friendly names of CPU platforms, such as - * minCpuPlatform: Intel Haswell or - * minCpuPlatform: Intel Sandy Bridge. For more - * information, read [how to specify min CPU - * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). - * This field is deprecated, min_cpu_platform should be specified using - * `cloud.google.com/requested-min-cpu-platform` label selector on the pod. - * To unset the min cpu platform field pass "automatic" - * as field value. - * @type int $disk_size_gb - * Size of the disk attached to each node, specified in GB. - * The smallest allowed disk size is 10GB. - * If unspecified, the default disk size is 100GB. - * @type string $disk_type - * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or - * 'pd-balanced') - * If unspecified, the default disk type is 'pd-standard' - * @type \Google\Cloud\Container\V1\ShieldedInstanceConfig $shielded_instance_config - * Shielded Instance options. - * @type string $boot_disk_kms_key - * The Customer Managed Encryption Key used to encrypt the boot disk attached - * to each node in the node pool. This should be of the form - * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. - * For more information about protecting resources with Cloud KMS Keys please - * see: - * https://cloud.google.com/compute/docs/disks/customer-managed-encryption - * @type string $image_type - * The image type to use for NAP created node. Please see - * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for - * available image types. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Scopes that are used by NAP when creating node pools. - * - * Generated from protobuf field repeated string oauth_scopes = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOauthScopes() - { - return $this->oauth_scopes; - } - - /** - * Scopes that are used by NAP when creating node pools. - * - * Generated from protobuf field repeated string oauth_scopes = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOauthScopes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->oauth_scopes = $arr; - - return $this; - } - - /** - * The Google Cloud Platform Service Account to be used by the node VMs. - * - * Generated from protobuf field string service_account = 2; - * @return string - */ - public function getServiceAccount() - { - return $this->service_account; - } - - /** - * The Google Cloud Platform Service Account to be used by the node VMs. - * - * Generated from protobuf field string service_account = 2; - * @param string $var - * @return $this - */ - public function setServiceAccount($var) - { - GPBUtil::checkString($var, True); - $this->service_account = $var; - - return $this; - } - - /** - * Specifies the upgrade settings for NAP created node pools - * - * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - * @return \Google\Cloud\Container\V1\NodePool\UpgradeSettings|null - */ - public function getUpgradeSettings() - { - return $this->upgrade_settings; - } - - public function hasUpgradeSettings() - { - return isset($this->upgrade_settings); - } - - public function clearUpgradeSettings() - { - unset($this->upgrade_settings); - } - - /** - * Specifies the upgrade settings for NAP created node pools - * - * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - * @param \Google\Cloud\Container\V1\NodePool\UpgradeSettings $var - * @return $this - */ - public function setUpgradeSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool\UpgradeSettings::class); - $this->upgrade_settings = $var; - - return $this; - } - - /** - * Specifies the node management options for NAP created node-pools. - * - * Generated from protobuf field .google.container.v1.NodeManagement management = 4; - * @return \Google\Cloud\Container\V1\NodeManagement|null - */ - public function getManagement() - { - return $this->management; - } - - public function hasManagement() - { - return isset($this->management); - } - - public function clearManagement() - { - unset($this->management); - } - - /** - * Specifies the node management options for NAP created node-pools. - * - * Generated from protobuf field .google.container.v1.NodeManagement management = 4; - * @param \Google\Cloud\Container\V1\NodeManagement $var - * @return $this - */ - public function setManagement($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeManagement::class); - $this->management = $var; - - return $this; - } - - /** - * Deprecated. Minimum CPU platform to be used for NAP created node pools. - * The instance may be scheduled on the specified or newer CPU platform. - * Applicable values are the friendly names of CPU platforms, such as - * minCpuPlatform: Intel Haswell or - * minCpuPlatform: Intel Sandy Bridge. For more - * information, read [how to specify min CPU - * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). - * This field is deprecated, min_cpu_platform should be specified using - * `cloud.google.com/requested-min-cpu-platform` label selector on the pod. - * To unset the min cpu platform field pass "automatic" - * as field value. - * - * Generated from protobuf field string min_cpu_platform = 5 [deprecated = true]; - * @return string - * @deprecated - */ - public function getMinCpuPlatform() - { - @trigger_error('min_cpu_platform is deprecated.', E_USER_DEPRECATED); - return $this->min_cpu_platform; - } - - /** - * Deprecated. Minimum CPU platform to be used for NAP created node pools. - * The instance may be scheduled on the specified or newer CPU platform. - * Applicable values are the friendly names of CPU platforms, such as - * minCpuPlatform: Intel Haswell or - * minCpuPlatform: Intel Sandy Bridge. For more - * information, read [how to specify min CPU - * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). - * This field is deprecated, min_cpu_platform should be specified using - * `cloud.google.com/requested-min-cpu-platform` label selector on the pod. - * To unset the min cpu platform field pass "automatic" - * as field value. - * - * Generated from protobuf field string min_cpu_platform = 5 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setMinCpuPlatform($var) - { - @trigger_error('min_cpu_platform is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->min_cpu_platform = $var; - - return $this; - } - - /** - * Size of the disk attached to each node, specified in GB. - * The smallest allowed disk size is 10GB. - * If unspecified, the default disk size is 100GB. - * - * Generated from protobuf field int32 disk_size_gb = 6; - * @return int - */ - public function getDiskSizeGb() - { - return $this->disk_size_gb; - } - - /** - * Size of the disk attached to each node, specified in GB. - * The smallest allowed disk size is 10GB. - * If unspecified, the default disk size is 100GB. - * - * Generated from protobuf field int32 disk_size_gb = 6; - * @param int $var - * @return $this - */ - public function setDiskSizeGb($var) - { - GPBUtil::checkInt32($var); - $this->disk_size_gb = $var; - - return $this; - } - - /** - * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or - * 'pd-balanced') - * If unspecified, the default disk type is 'pd-standard' - * - * Generated from protobuf field string disk_type = 7; - * @return string - */ - public function getDiskType() - { - return $this->disk_type; - } - - /** - * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or - * 'pd-balanced') - * If unspecified, the default disk type is 'pd-standard' - * - * Generated from protobuf field string disk_type = 7; - * @param string $var - * @return $this - */ - public function setDiskType($var) - { - GPBUtil::checkString($var, True); - $this->disk_type = $var; - - return $this; - } - - /** - * Shielded Instance options. - * - * Generated from protobuf field .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - * @return \Google\Cloud\Container\V1\ShieldedInstanceConfig|null - */ - public function getShieldedInstanceConfig() - { - return $this->shielded_instance_config; - } - - public function hasShieldedInstanceConfig() - { - return isset($this->shielded_instance_config); - } - - public function clearShieldedInstanceConfig() - { - unset($this->shielded_instance_config); - } - - /** - * Shielded Instance options. - * - * Generated from protobuf field .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - * @param \Google\Cloud\Container\V1\ShieldedInstanceConfig $var - * @return $this - */ - public function setShieldedInstanceConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ShieldedInstanceConfig::class); - $this->shielded_instance_config = $var; - - return $this; - } - - /** - * The Customer Managed Encryption Key used to encrypt the boot disk attached - * to each node in the node pool. This should be of the form - * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. - * For more information about protecting resources with Cloud KMS Keys please - * see: - * https://cloud.google.com/compute/docs/disks/customer-managed-encryption - * - * Generated from protobuf field string boot_disk_kms_key = 9; - * @return string - */ - public function getBootDiskKmsKey() - { - return $this->boot_disk_kms_key; - } - - /** - * The Customer Managed Encryption Key used to encrypt the boot disk attached - * to each node in the node pool. This should be of the form - * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. - * For more information about protecting resources with Cloud KMS Keys please - * see: - * https://cloud.google.com/compute/docs/disks/customer-managed-encryption - * - * Generated from protobuf field string boot_disk_kms_key = 9; - * @param string $var - * @return $this - */ - public function setBootDiskKmsKey($var) - { - GPBUtil::checkString($var, True); - $this->boot_disk_kms_key = $var; - - return $this; - } - - /** - * The image type to use for NAP created node. Please see - * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for - * available image types. - * - * Generated from protobuf field string image_type = 10; - * @return string - */ - public function getImageType() - { - return $this->image_type; - } - - /** - * The image type to use for NAP created node. Please see - * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for - * available image types. - * - * Generated from protobuf field string image_type = 10; - * @param string $var - * @return $this - */ - public function setImageType($var) - { - GPBUtil::checkString($var, True); - $this->image_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization.php deleted file mode 100644 index d97177fdd9b4..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization.php +++ /dev/null @@ -1,118 +0,0 @@ -google.container.v1.BinaryAuthorization - */ -class BinaryAuthorization extends \Google\Protobuf\Internal\Message -{ - /** - * This field is deprecated. Leave this unset and instead configure - * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to - * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored. - * - * Generated from protobuf field bool enabled = 1 [deprecated = true]; - * @deprecated - */ - protected $enabled = false; - /** - * Mode of operation for binauthz policy evaluation. If unspecified, defaults - * to DISABLED. - * - * Generated from protobuf field .google.container.v1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; - */ - protected $evaluation_mode = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * This field is deprecated. Leave this unset and instead configure - * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to - * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored. - * @type int $evaluation_mode - * Mode of operation for binauthz policy evaluation. If unspecified, defaults - * to DISABLED. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * This field is deprecated. Leave this unset and instead configure - * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to - * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored. - * - * Generated from protobuf field bool enabled = 1 [deprecated = true]; - * @return bool - * @deprecated - */ - public function getEnabled() - { - @trigger_error('enabled is deprecated.', E_USER_DEPRECATED); - return $this->enabled; - } - - /** - * This field is deprecated. Leave this unset and instead configure - * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to - * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored. - * - * Generated from protobuf field bool enabled = 1 [deprecated = true]; - * @param bool $var - * @return $this - * @deprecated - */ - public function setEnabled($var) - { - @trigger_error('enabled is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - - /** - * Mode of operation for binauthz policy evaluation. If unspecified, defaults - * to DISABLED. - * - * Generated from protobuf field .google.container.v1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; - * @return int - */ - public function getEvaluationMode() - { - return $this->evaluation_mode; - } - - /** - * Mode of operation for binauthz policy evaluation. If unspecified, defaults - * to DISABLED. - * - * Generated from protobuf field .google.container.v1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; - * @param int $var - * @return $this - */ - public function setEvaluationMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\BinaryAuthorization\EvaluationMode::class); - $this->evaluation_mode = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization/EvaluationMode.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization/EvaluationMode.php deleted file mode 100644 index 425ec404c0bf..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization/EvaluationMode.php +++ /dev/null @@ -1,66 +0,0 @@ -google.container.v1.BinaryAuthorization.EvaluationMode - */ -class EvaluationMode -{ - /** - * Default value - * - * Generated from protobuf enum EVALUATION_MODE_UNSPECIFIED = 0; - */ - const EVALUATION_MODE_UNSPECIFIED = 0; - /** - * Disable BinaryAuthorization - * - * Generated from protobuf enum DISABLED = 1; - */ - const DISABLED = 1; - /** - * Enforce Kubernetes admission requests with BinaryAuthorization using the - * project's singleton policy. This is equivalent to setting the - * enabled boolean to true. - * - * Generated from protobuf enum PROJECT_SINGLETON_POLICY_ENFORCE = 2; - */ - const PROJECT_SINGLETON_POLICY_ENFORCE = 2; - - private static $valueToName = [ - self::EVALUATION_MODE_UNSPECIFIED => 'EVALUATION_MODE_UNSPECIFIED', - self::DISABLED => 'DISABLED', - self::PROJECT_SINGLETON_POLICY_ENFORCE => 'PROJECT_SINGLETON_POLICY_ENFORCE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(EvaluationMode::class, \Google\Cloud\Container\V1\BinaryAuthorization_EvaluationMode::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization_EvaluationMode.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization_EvaluationMode.php deleted file mode 100644 index 9db010fe6511..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization_EvaluationMode.php +++ /dev/null @@ -1,16 +0,0 @@ -google.container.v1.BlueGreenSettings - */ -class BlueGreenSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Time needed after draining entire blue pool. After this period, blue pool - * will be cleaned up. - * - * Generated from protobuf field optional .google.protobuf.Duration node_pool_soak_duration = 2; - */ - protected $node_pool_soak_duration = null; - protected $rollout_policy; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\BlueGreenSettings\StandardRolloutPolicy $standard_rollout_policy - * Standard policy for the blue-green upgrade. - * @type \Google\Protobuf\Duration $node_pool_soak_duration - * Time needed after draining entire blue pool. After this period, blue pool - * will be cleaned up. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Standard policy for the blue-green upgrade. - * - * Generated from protobuf field .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; - * @return \Google\Cloud\Container\V1\BlueGreenSettings\StandardRolloutPolicy|null - */ - public function getStandardRolloutPolicy() - { - return $this->readOneof(1); - } - - public function hasStandardRolloutPolicy() - { - return $this->hasOneof(1); - } - - /** - * Standard policy for the blue-green upgrade. - * - * Generated from protobuf field .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; - * @param \Google\Cloud\Container\V1\BlueGreenSettings\StandardRolloutPolicy $var - * @return $this - */ - public function setStandardRolloutPolicy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\BlueGreenSettings\StandardRolloutPolicy::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Time needed after draining entire blue pool. After this period, blue pool - * will be cleaned up. - * - * Generated from protobuf field optional .google.protobuf.Duration node_pool_soak_duration = 2; - * @return \Google\Protobuf\Duration|null - */ - public function getNodePoolSoakDuration() - { - return $this->node_pool_soak_duration; - } - - public function hasNodePoolSoakDuration() - { - return isset($this->node_pool_soak_duration); - } - - public function clearNodePoolSoakDuration() - { - unset($this->node_pool_soak_duration); - } - - /** - * Time needed after draining entire blue pool. After this period, blue pool - * will be cleaned up. - * - * Generated from protobuf field optional .google.protobuf.Duration node_pool_soak_duration = 2; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setNodePoolSoakDuration($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->node_pool_soak_duration = $var; - - return $this; - } - - /** - * @return string - */ - public function getRolloutPolicy() - { - return $this->whichOneof("rollout_policy"); - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings/StandardRolloutPolicy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings/StandardRolloutPolicy.php deleted file mode 100644 index 8008e05364d2..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings/StandardRolloutPolicy.php +++ /dev/null @@ -1,158 +0,0 @@ -google.container.v1.BlueGreenSettings.StandardRolloutPolicy - */ -class StandardRolloutPolicy extends \Google\Protobuf\Internal\Message -{ - /** - * Soak time after each batch gets drained. Default to zero. - * - * Generated from protobuf field optional .google.protobuf.Duration batch_soak_duration = 3; - */ - protected $batch_soak_duration = null; - protected $update_batch_size; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $batch_percentage - * Percentage of the blue pool nodes to drain in a batch. - * The range of this field should be (0.0, 1.0]. - * @type int $batch_node_count - * Number of blue nodes to drain in a batch. - * @type \Google\Protobuf\Duration $batch_soak_duration - * Soak time after each batch gets drained. Default to zero. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Percentage of the blue pool nodes to drain in a batch. - * The range of this field should be (0.0, 1.0]. - * - * Generated from protobuf field float batch_percentage = 1; - * @return float - */ - public function getBatchPercentage() - { - return $this->readOneof(1); - } - - public function hasBatchPercentage() - { - return $this->hasOneof(1); - } - - /** - * Percentage of the blue pool nodes to drain in a batch. - * The range of this field should be (0.0, 1.0]. - * - * Generated from protobuf field float batch_percentage = 1; - * @param float $var - * @return $this - */ - public function setBatchPercentage($var) - { - GPBUtil::checkFloat($var); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Number of blue nodes to drain in a batch. - * - * Generated from protobuf field int32 batch_node_count = 2; - * @return int - */ - public function getBatchNodeCount() - { - return $this->readOneof(2); - } - - public function hasBatchNodeCount() - { - return $this->hasOneof(2); - } - - /** - * Number of blue nodes to drain in a batch. - * - * Generated from protobuf field int32 batch_node_count = 2; - * @param int $var - * @return $this - */ - public function setBatchNodeCount($var) - { - GPBUtil::checkInt32($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Soak time after each batch gets drained. Default to zero. - * - * Generated from protobuf field optional .google.protobuf.Duration batch_soak_duration = 3; - * @return \Google\Protobuf\Duration|null - */ - public function getBatchSoakDuration() - { - return $this->batch_soak_duration; - } - - public function hasBatchSoakDuration() - { - return isset($this->batch_soak_duration); - } - - public function clearBatchSoakDuration() - { - unset($this->batch_soak_duration); - } - - /** - * Soak time after each batch gets drained. Default to zero. - * - * Generated from protobuf field optional .google.protobuf.Duration batch_soak_duration = 3; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setBatchSoakDuration($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->batch_soak_duration = $var; - - return $this; - } - - /** - * @return string - */ - public function getUpdateBatchSize() - { - return $this->whichOneof("update_batch_size"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(StandardRolloutPolicy::class, \Google\Cloud\Container\V1\BlueGreenSettings_StandardRolloutPolicy::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings_StandardRolloutPolicy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings_StandardRolloutPolicy.php deleted file mode 100644 index edef2c1369d9..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings_StandardRolloutPolicy.php +++ /dev/null @@ -1,16 +0,0 @@ -google.container.v1.CancelOperationRequest - */ -class CancelOperationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * operation resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The server-assigned `name` of the operation. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string operation_id = 3 [deprecated = true]; - * @deprecated - */ - protected $operation_id = ''; - /** - * The name (project, location, operation id) of the operation to cancel. - * Specified in the format `projects/*/locations/*/operations/*`. - * - * Generated from protobuf field string name = 4; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * operation resides. This field has been deprecated and replaced by the name - * field. - * @type string $operation_id - * Deprecated. The server-assigned `name` of the operation. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, operation id) of the operation to cancel. - * Specified in the format `projects/*/locations/*/operations/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * operation resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * operation resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The server-assigned `name` of the operation. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string operation_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getOperationId() - { - @trigger_error('operation_id is deprecated.', E_USER_DEPRECATED); - return $this->operation_id; - } - - /** - * Deprecated. The server-assigned `name` of the operation. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string operation_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setOperationId($var) - { - @trigger_error('operation_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->operation_id = $var; - - return $this; - } - - /** - * The name (project, location, operation id) of the operation to cancel. - * Specified in the format `projects/*/locations/*/operations/*`. - * - * Generated from protobuf field string name = 4; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, operation id) of the operation to cancel. - * Specified in the format `projects/*/locations/*/operations/*`. - * - * Generated from protobuf field string name = 4; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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; - /** - * Configuration for the fine-grained cost management feature. - * - * Generated from protobuf field .google.container.v1.CostManagementConfig cost_management_config = 45; - */ - protected $cost_management_config = null; - /** - * Notification configuration of the cluster. - * - * Generated from protobuf field .google.container.v1.NotificationConfig notification_config = 49; - */ - protected $notification_config = null; - /** - * Configuration of Confidential Nodes. - * All the nodes in the cluster will be Confidential VM once enabled. - * - * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 50; - */ - protected $confidential_nodes = null; - /** - * Configuration for Identity Service component. - * - * Generated from protobuf field .google.container.v1.IdentityServiceConfig identity_service_config = 54; - */ - protected $identity_service_config = null; - /** - * [Output only] Server-defined URL for the resource. - * - * Generated from protobuf field string self_link = 100; - */ - protected $self_link = ''; - /** - * [Output only] The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field is deprecated, use location instead. - * - * Generated from protobuf field string zone = 101 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * [Output only] The IP address of this cluster's master endpoint. - * The endpoint can be accessed from the internet at - * `https://username:password@endpoint/`. - * See the `masterAuth` property of this resource for username and - * password information. - * - * Generated from protobuf field string endpoint = 102; - */ - protected $endpoint = ''; - /** - * The initial Kubernetes version for this cluster. Valid versions are those - * found in validMasterVersions returned by getServerConfig. The version can - * be upgraded over time; such upgrades are reflected in - * currentMasterVersion and currentNodeVersion. - * Users may specify either explicit versions offered by - * Kubernetes Engine or version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "","-": picks the default Kubernetes version - * - * Generated from protobuf field string initial_cluster_version = 103; - */ - protected $initial_cluster_version = ''; - /** - * [Output only] The current software version of the master endpoint. - * - * Generated from protobuf field string current_master_version = 104; - */ - protected $current_master_version = ''; - /** - * [Output only] Deprecated, use - * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools) - * instead. The current version of the node software components. If they are - * currently at multiple versions because they're in the process of being - * upgraded, this reflects the minimum version of all nodes. - * - * Generated from protobuf field string current_node_version = 105 [deprecated = true]; - * @deprecated - */ - protected $current_node_version = ''; - /** - * [Output only] The time the cluster was created, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string create_time = 106; - */ - protected $create_time = ''; - /** - * [Output only] The current status of this cluster. - * - * Generated from protobuf field .google.container.v1.Cluster.Status status = 107; - */ - protected $status = 0; - /** - * [Output only] Deprecated. Use conditions instead. - * Additional information about the current status of this - * cluster, if available. - * - * Generated from protobuf field string status_message = 108 [deprecated = true]; - * @deprecated - */ - protected $status_message = ''; - /** - * [Output only] The size of the address space on each node for hosting - * containers. This is provisioned from within the `container_ipv4_cidr` - * range. This field will only be set when cluster is in route-based network - * mode. - * - * Generated from protobuf field int32 node_ipv4_cidr_size = 109; - */ - protected $node_ipv4_cidr_size = 0; - /** - * [Output only] The IP address range of the Kubernetes services in - * this cluster, in - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `1.2.3.4/29`). Service addresses are - * typically put in the last `/16` from the container CIDR. - * - * Generated from protobuf field string services_ipv4_cidr = 110; - */ - protected $services_ipv4_cidr = ''; - /** - * Deprecated. Use node_pools.instance_group_urls. - * - * Generated from protobuf field repeated string instance_group_urls = 111 [deprecated = true]; - * @deprecated - */ - private $instance_group_urls; - /** - * [Output only] The number of nodes currently in the cluster. Deprecated. - * Call Kubernetes API directly to retrieve node information. - * - * Generated from protobuf field int32 current_node_count = 112 [deprecated = true]; - * @deprecated - */ - protected $current_node_count = 0; - /** - * [Output only] The time the cluster will be automatically - * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string expire_time = 113; - */ - protected $expire_time = ''; - /** - * [Output only] The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * or - * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * in which the cluster resides. - * - * Generated from protobuf field string location = 114; - */ - protected $location = ''; - /** - * Enable the ability to use Cloud TPUs in this cluster. - * - * Generated from protobuf field bool enable_tpu = 115; - */ - protected $enable_tpu = false; - /** - * [Output only] The IP address range of the Cloud TPUs in this cluster, in - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `1.2.3.4/29`). - * - * Generated from protobuf field string tpu_ipv4_cidr_block = 116; - */ - protected $tpu_ipv4_cidr_block = ''; - /** - * Which conditions caused the current cluster state. - * - * Generated from protobuf field repeated .google.container.v1.StatusCondition conditions = 118; - */ - private $conditions; - /** - * Autopilot configuration for the cluster. - * - * Generated from protobuf field .google.container.v1.Autopilot autopilot = 128; - */ - protected $autopilot = null; - /** - * Output only. Unique id for the cluster. - * - * Generated from protobuf field string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $id = ''; - /** - * Default NodePool settings for the entire cluster. These settings are - * overridden if specified on the specific NodePool object. - * - * Generated from protobuf field optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; - */ - protected $node_pool_defaults = null; - /** - * Logging configuration for the cluster. - * - * Generated from protobuf field .google.container.v1.LoggingConfig logging_config = 132; - */ - protected $logging_config = null; - /** - * Monitoring configuration for the cluster. - * - * Generated from protobuf field .google.container.v1.MonitoringConfig monitoring_config = 133; - */ - protected $monitoring_config = null; - /** - * Node pool configs that apply to all auto-provisioned node pools - * in autopilot clusters and node auto-provisioning enabled clusters. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; - */ - protected $node_pool_auto_config = null; - /** - * This checksum is computed by the server based on the value of cluster - * fields, and may be sent on update requests to ensure the client has an - * up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 139; - */ - protected $etag = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of this cluster. The name must be unique within this project - * and location (e.g. zone or region), and can be up to 40 characters with - * the following restrictions: - * * Lowercase letters, numbers, and hyphens only. - * * Must start with a letter. - * * Must end with a number or a letter. - * @type string $description - * An optional description of this cluster. - * @type int $initial_node_count - * The number of nodes to create in this cluster. You must ensure that your - * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) - * is sufficient for this number of instances. You must also have available - * firewall and routes quota. - * For requests, this field should only be used in lieu of a - * "node_pool" object, since this configuration (along with the - * "node_config") will be used to create a "NodePool" object with an - * auto-generated name. Do not use this and a node_pool at the same time. - * This field is deprecated, use node_pool.initial_node_count instead. - * @type \Google\Cloud\Container\V1\NodeConfig $node_config - * Parameters used in creating the cluster's nodes. - * For requests, this field should only be used in lieu of a - * "node_pool" object, since this configuration (along with the - * "initial_node_count") will be used to create a "NodePool" object with an - * auto-generated name. Do not use this and a node_pool at the same time. - * For responses, this field will be populated with the node configuration of - * the first node pool. (For configuration of each node pool, see - * `node_pool.config`) - * If unspecified, the defaults are used. - * This field is deprecated, use node_pool.config instead. - * @type \Google\Cloud\Container\V1\MasterAuth $master_auth - * The authentication information for accessing the master endpoint. - * If unspecified, the defaults are used: - * For clusters before v1.12, if master_auth is unspecified, `username` will - * be set to "admin", a random password will be generated, and a client - * certificate will be issued. - * @type string $logging_service - * The logging service the cluster should use to write logs. - * Currently available options: - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * @type string $monitoring_service - * The monitoring service the cluster should use to write metrics. - * Currently available options: - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * @type string $network - * The name of the Google Compute Engine - * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) - * to which the cluster is connected. If left unspecified, the `default` - * network will be used. - * @type string $cluster_ipv4_cidr - * The IP address range of the container pods in this cluster, in - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`). Leave blank to have - * one automatically chosen or specify a `/14` block in `10.0.0.0/8`. - * @type \Google\Cloud\Container\V1\AddonsConfig $addons_config - * Configurations for the various addons available to run in the cluster. - * @type string $subnetwork - * The name of the Google Compute Engine - * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which - * the cluster is connected. - * @type array<\Google\Cloud\Container\V1\NodePool>|\Google\Protobuf\Internal\RepeatedField $node_pools - * The node pools associated with this cluster. - * This field should not be set if "node_config" or "initial_node_count" are - * specified. - * @type array|\Google\Protobuf\Internal\RepeatedField $locations - * The list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. - * This field provides a default value if - * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) - * are not specified during node pool creation. - * Warning: changing cluster locations will update the - * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) - * of all node pools and will result in nodes being added and/or removed. - * @type bool $enable_kubernetes_alpha - * Kubernetes alpha features are enabled on this cluster. This includes alpha - * API groups (e.g. v1alpha1) and features that may not be production ready in - * the kubernetes version of the master and nodes. - * The cluster has no SLA for uptime and master/node upgrades are disabled. - * Alpha enabled clusters are automatically deleted thirty days after - * creation. - * @type array|\Google\Protobuf\Internal\MapField $resource_labels - * The resource labels for the cluster to use to annotate any related - * Google Compute Engine resources. - * @type string $label_fingerprint - * The fingerprint of the set of labels for this cluster. - * @type \Google\Cloud\Container\V1\LegacyAbac $legacy_abac - * Configuration for the legacy ABAC authorization mode. - * @type \Google\Cloud\Container\V1\NetworkPolicy $network_policy - * Configuration options for the NetworkPolicy feature. - * @type \Google\Cloud\Container\V1\IPAllocationPolicy $ip_allocation_policy - * Configuration for cluster IP allocation. - * @type \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig $master_authorized_networks_config - * The configuration options for master authorized networks feature. - * @type \Google\Cloud\Container\V1\MaintenancePolicy $maintenance_policy - * Configure the maintenance policy for this cluster. - * @type \Google\Cloud\Container\V1\BinaryAuthorization $binary_authorization - * Configuration for Binary Authorization. - * @type \Google\Cloud\Container\V1\ClusterAutoscaling $autoscaling - * Cluster-level autoscaling configuration. - * @type \Google\Cloud\Container\V1\NetworkConfig $network_config - * Configuration for cluster networking. - * @type \Google\Cloud\Container\V1\MaxPodsConstraint $default_max_pods_constraint - * The default constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool of this cluster. Only honored - * if cluster created with IP Alias support. - * @type \Google\Cloud\Container\V1\ResourceUsageExportConfig $resource_usage_export_config - * Configuration for exporting resource usages. Resource usage export is - * disabled when this config is unspecified. - * @type \Google\Cloud\Container\V1\AuthenticatorGroupsConfig $authenticator_groups_config - * Configuration controlling RBAC group membership information. - * @type \Google\Cloud\Container\V1\PrivateClusterConfig $private_cluster_config - * Configuration for private cluster. - * @type \Google\Cloud\Container\V1\DatabaseEncryption $database_encryption - * Configuration of etcd encryption. - * @type \Google\Cloud\Container\V1\VerticalPodAutoscaling $vertical_pod_autoscaling - * Cluster-level Vertical Pod Autoscaling configuration. - * @type \Google\Cloud\Container\V1\ShieldedNodes $shielded_nodes - * Shielded Nodes configuration. - * @type \Google\Cloud\Container\V1\ReleaseChannel $release_channel - * Release channel configuration. - * @type \Google\Cloud\Container\V1\WorkloadIdentityConfig $workload_identity_config - * Configuration for the use of Kubernetes Service Accounts in GCP IAM - * policies. - * @type \Google\Cloud\Container\V1\MeshCertificates $mesh_certificates - * Configuration for issuance of mTLS keys and certificates to Kubernetes - * pods. - * @type \Google\Cloud\Container\V1\CostManagementConfig $cost_management_config - * Configuration for the fine-grained cost management feature. - * @type \Google\Cloud\Container\V1\NotificationConfig $notification_config - * Notification configuration of the cluster. - * @type \Google\Cloud\Container\V1\ConfidentialNodes $confidential_nodes - * Configuration of Confidential Nodes. - * All the nodes in the cluster will be Confidential VM once enabled. - * @type \Google\Cloud\Container\V1\IdentityServiceConfig $identity_service_config - * Configuration for Identity Service component. - * @type string $self_link - * [Output only] Server-defined URL for the resource. - * @type string $zone - * [Output only] The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field is deprecated, use location instead. - * @type string $endpoint - * [Output only] The IP address of this cluster's master endpoint. - * The endpoint can be accessed from the internet at - * `https://username:password@endpoint/`. - * See the `masterAuth` property of this resource for username and - * password information. - * @type string $initial_cluster_version - * The initial Kubernetes version for this cluster. Valid versions are those - * found in validMasterVersions returned by getServerConfig. The version can - * be upgraded over time; such upgrades are reflected in - * currentMasterVersion and currentNodeVersion. - * Users may specify either explicit versions offered by - * Kubernetes Engine or version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "","-": picks the default Kubernetes version - * @type string $current_master_version - * [Output only] The current software version of the master endpoint. - * @type string $current_node_version - * [Output only] Deprecated, use - * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools) - * instead. The current version of the node software components. If they are - * currently at multiple versions because they're in the process of being - * upgraded, this reflects the minimum version of all nodes. - * @type string $create_time - * [Output only] The time the cluster was created, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * @type int $status - * [Output only] The current status of this cluster. - * @type string $status_message - * [Output only] Deprecated. Use conditions instead. - * Additional information about the current status of this - * cluster, if available. - * @type int $node_ipv4_cidr_size - * [Output only] The size of the address space on each node for hosting - * containers. This is provisioned from within the `container_ipv4_cidr` - * range. This field will only be set when cluster is in route-based network - * mode. - * @type string $services_ipv4_cidr - * [Output only] The IP address range of the Kubernetes services in - * this cluster, in - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `1.2.3.4/29`). Service addresses are - * typically put in the last `/16` from the container CIDR. - * @type array|\Google\Protobuf\Internal\RepeatedField $instance_group_urls - * Deprecated. Use node_pools.instance_group_urls. - * @type int $current_node_count - * [Output only] The number of nodes currently in the cluster. Deprecated. - * Call Kubernetes API directly to retrieve node information. - * @type string $expire_time - * [Output only] The time the cluster will be automatically - * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * @type string $location - * [Output only] The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * or - * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * in which the cluster resides. - * @type bool $enable_tpu - * Enable the ability to use Cloud TPUs in this cluster. - * @type string $tpu_ipv4_cidr_block - * [Output only] The IP address range of the Cloud TPUs in this cluster, in - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `1.2.3.4/29`). - * @type array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $conditions - * Which conditions caused the current cluster state. - * @type \Google\Cloud\Container\V1\Autopilot $autopilot - * Autopilot configuration for the cluster. - * @type string $id - * Output only. Unique id for the cluster. - * @type \Google\Cloud\Container\V1\NodePoolDefaults $node_pool_defaults - * Default NodePool settings for the entire cluster. These settings are - * overridden if specified on the specific NodePool object. - * @type \Google\Cloud\Container\V1\LoggingConfig $logging_config - * Logging configuration for the cluster. - * @type \Google\Cloud\Container\V1\MonitoringConfig $monitoring_config - * Monitoring configuration for the cluster. - * @type \Google\Cloud\Container\V1\NodePoolAutoConfig $node_pool_auto_config - * Node pool configs that apply to all auto-provisioned node pools - * in autopilot clusters and node auto-provisioning enabled clusters. - * @type string $etag - * This checksum is computed by the server based on the value of cluster - * fields, and may be sent on update requests to ensure the client has an - * up-to-date value before proceeding. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The name of this cluster. The name must be unique within this project - * and location (e.g. zone or region), and can be up to 40 characters with - * the following restrictions: - * * Lowercase letters, numbers, and hyphens only. - * * Must start with a letter. - * * Must end with a number or a letter. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of this cluster. The name must be unique within this project - * and location (e.g. zone or region), and can be up to 40 characters with - * the following restrictions: - * * Lowercase letters, numbers, and hyphens only. - * * Must start with a letter. - * * Must end with a number or a letter. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * An optional description of this cluster. - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * An optional description of this cluster. - * - * Generated from protobuf field string description = 2; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * The number of nodes to create in this cluster. You must ensure that your - * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) - * is sufficient for this number of instances. You must also have available - * firewall and routes quota. - * For requests, this field should only be used in lieu of a - * "node_pool" object, since this configuration (along with the - * "node_config") will be used to create a "NodePool" object with an - * auto-generated name. Do not use this and a node_pool at the same time. - * This field is deprecated, use node_pool.initial_node_count instead. - * - * Generated from protobuf field int32 initial_node_count = 3 [deprecated = true]; - * @return int - * @deprecated - */ - public function getInitialNodeCount() - { - @trigger_error('initial_node_count is deprecated.', E_USER_DEPRECATED); - return $this->initial_node_count; - } - - /** - * The number of nodes to create in this cluster. You must ensure that your - * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) - * is sufficient for this number of instances. You must also have available - * firewall and routes quota. - * For requests, this field should only be used in lieu of a - * "node_pool" object, since this configuration (along with the - * "node_config") will be used to create a "NodePool" object with an - * auto-generated name. Do not use this and a node_pool at the same time. - * This field is deprecated, use node_pool.initial_node_count instead. - * - * Generated from protobuf field int32 initial_node_count = 3 [deprecated = true]; - * @param int $var - * @return $this - * @deprecated - */ - public function setInitialNodeCount($var) - { - @trigger_error('initial_node_count is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkInt32($var); - $this->initial_node_count = $var; - - return $this; - } - - /** - * Parameters used in creating the cluster's nodes. - * For requests, this field should only be used in lieu of a - * "node_pool" object, since this configuration (along with the - * "initial_node_count") will be used to create a "NodePool" object with an - * auto-generated name. Do not use this and a node_pool at the same time. - * For responses, this field will be populated with the node configuration of - * the first node pool. (For configuration of each node pool, see - * `node_pool.config`) - * If unspecified, the defaults are used. - * This field is deprecated, use node_pool.config instead. - * - * Generated from protobuf field .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; - * @return \Google\Cloud\Container\V1\NodeConfig|null - * @deprecated - */ - public function getNodeConfig() - { - @trigger_error('node_config is deprecated.', E_USER_DEPRECATED); - return $this->node_config; - } - - public function hasNodeConfig() - { - @trigger_error('node_config is deprecated.', E_USER_DEPRECATED); - return isset($this->node_config); - } - - public function clearNodeConfig() - { - @trigger_error('node_config is deprecated.', E_USER_DEPRECATED); - unset($this->node_config); - } - - /** - * Parameters used in creating the cluster's nodes. - * For requests, this field should only be used in lieu of a - * "node_pool" object, since this configuration (along with the - * "initial_node_count") will be used to create a "NodePool" object with an - * auto-generated name. Do not use this and a node_pool at the same time. - * For responses, this field will be populated with the node configuration of - * the first node pool. (For configuration of each node pool, see - * `node_pool.config`) - * If unspecified, the defaults are used. - * This field is deprecated, use node_pool.config instead. - * - * Generated from protobuf field .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; - * @param \Google\Cloud\Container\V1\NodeConfig $var - * @return $this - * @deprecated - */ - public function setNodeConfig($var) - { - @trigger_error('node_config is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeConfig::class); - $this->node_config = $var; - - return $this; - } - - /** - * The authentication information for accessing the master endpoint. - * If unspecified, the defaults are used: - * For clusters before v1.12, if master_auth is unspecified, `username` will - * be set to "admin", a random password will be generated, and a client - * certificate will be issued. - * - * Generated from protobuf field .google.container.v1.MasterAuth master_auth = 5; - * @return \Google\Cloud\Container\V1\MasterAuth|null - */ - public function getMasterAuth() - { - return $this->master_auth; - } - - public function hasMasterAuth() - { - return isset($this->master_auth); - } - - public function clearMasterAuth() - { - unset($this->master_auth); - } - - /** - * The authentication information for accessing the master endpoint. - * If unspecified, the defaults are used: - * For clusters before v1.12, if master_auth is unspecified, `username` will - * be set to "admin", a random password will be generated, and a client - * certificate will be issued. - * - * Generated from protobuf field .google.container.v1.MasterAuth master_auth = 5; - * @param \Google\Cloud\Container\V1\MasterAuth $var - * @return $this - */ - public function setMasterAuth($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MasterAuth::class); - $this->master_auth = $var; - - return $this; - } - - /** - * The logging service the cluster should use to write logs. - * Currently available options: - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * - * Generated from protobuf field string logging_service = 6; - * @return string - */ - public function getLoggingService() - { - return $this->logging_service; - } - - /** - * The logging service the cluster should use to write logs. - * Currently available options: - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * - * Generated from protobuf field string logging_service = 6; - * @param string $var - * @return $this - */ - public function setLoggingService($var) - { - GPBUtil::checkString($var, True); - $this->logging_service = $var; - - return $this; - } - - /** - * The monitoring service the cluster should use to write metrics. - * Currently available options: - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * - * Generated from protobuf field string monitoring_service = 7; - * @return string - */ - public function getMonitoringService() - { - return $this->monitoring_service; - } - - /** - * The monitoring service the cluster should use to write metrics. - * Currently available options: - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * - * Generated from protobuf field string monitoring_service = 7; - * @param string $var - * @return $this - */ - public function setMonitoringService($var) - { - GPBUtil::checkString($var, True); - $this->monitoring_service = $var; - - return $this; - } - - /** - * The name of the Google Compute Engine - * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) - * to which the cluster is connected. If left unspecified, the `default` - * network will be used. - * - * Generated from protobuf field string network = 8; - * @return string - */ - public function getNetwork() - { - return $this->network; - } - - /** - * The name of the Google Compute Engine - * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) - * to which the cluster is connected. If left unspecified, the `default` - * network will be used. - * - * Generated from protobuf field string network = 8; - * @param string $var - * @return $this - */ - public function setNetwork($var) - { - GPBUtil::checkString($var, True); - $this->network = $var; - - return $this; - } - - /** - * The IP address range of the container pods in this cluster, in - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`). Leave blank to have - * one automatically chosen or specify a `/14` block in `10.0.0.0/8`. - * - * Generated from protobuf field string cluster_ipv4_cidr = 9; - * @return string - */ - public function getClusterIpv4Cidr() - { - return $this->cluster_ipv4_cidr; - } - - /** - * The IP address range of the container pods in this cluster, in - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`). Leave blank to have - * one automatically chosen or specify a `/14` block in `10.0.0.0/8`. - * - * Generated from protobuf field string cluster_ipv4_cidr = 9; - * @param string $var - * @return $this - */ - public function setClusterIpv4Cidr($var) - { - GPBUtil::checkString($var, True); - $this->cluster_ipv4_cidr = $var; - - return $this; - } - - /** - * Configurations for the various addons available to run in the cluster. - * - * Generated from protobuf field .google.container.v1.AddonsConfig addons_config = 10; - * @return \Google\Cloud\Container\V1\AddonsConfig|null - */ - public function getAddonsConfig() - { - return $this->addons_config; - } - - public function hasAddonsConfig() - { - return isset($this->addons_config); - } - - public function clearAddonsConfig() - { - unset($this->addons_config); - } - - /** - * Configurations for the various addons available to run in the cluster. - * - * Generated from protobuf field .google.container.v1.AddonsConfig addons_config = 10; - * @param \Google\Cloud\Container\V1\AddonsConfig $var - * @return $this - */ - public function setAddonsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AddonsConfig::class); - $this->addons_config = $var; - - return $this; - } - - /** - * The name of the Google Compute Engine - * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which - * the cluster is connected. - * - * Generated from protobuf field string subnetwork = 11; - * @return string - */ - public function getSubnetwork() - { - return $this->subnetwork; - } - - /** - * The name of the Google Compute Engine - * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which - * the cluster is connected. - * - * Generated from protobuf field string subnetwork = 11; - * @param string $var - * @return $this - */ - public function setSubnetwork($var) - { - GPBUtil::checkString($var, True); - $this->subnetwork = $var; - - return $this; - } - - /** - * The node pools associated with this cluster. - * This field should not be set if "node_config" or "initial_node_count" are - * specified. - * - * Generated from protobuf field repeated .google.container.v1.NodePool node_pools = 12; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNodePools() - { - return $this->node_pools; - } - - /** - * The node pools associated with this cluster. - * This field should not be set if "node_config" or "initial_node_count" are - * specified. - * - * Generated from protobuf field repeated .google.container.v1.NodePool node_pools = 12; - * @param array<\Google\Cloud\Container\V1\NodePool>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNodePools($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\NodePool::class); - $this->node_pools = $arr; - - return $this; - } - - /** - * The list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. - * This field provides a default value if - * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) - * are not specified during node pool creation. - * Warning: changing cluster locations will update the - * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) - * of all node pools and will result in nodes being added and/or removed. - * - * Generated from protobuf field repeated string locations = 13; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getLocations() - { - return $this->locations; - } - - /** - * The list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. - * This field provides a default value if - * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) - * are not specified during node pool creation. - * Warning: changing cluster locations will update the - * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) - * of all node pools and will result in nodes being added and/or removed. - * - * Generated from protobuf field repeated string locations = 13; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->locations = $arr; - - return $this; - } - - /** - * Kubernetes alpha features are enabled on this cluster. This includes alpha - * API groups (e.g. v1alpha1) and features that may not be production ready in - * the kubernetes version of the master and nodes. - * The cluster has no SLA for uptime and master/node upgrades are disabled. - * Alpha enabled clusters are automatically deleted thirty days after - * creation. - * - * Generated from protobuf field bool enable_kubernetes_alpha = 14; - * @return bool - */ - public function getEnableKubernetesAlpha() - { - return $this->enable_kubernetes_alpha; - } - - /** - * Kubernetes alpha features are enabled on this cluster. This includes alpha - * API groups (e.g. v1alpha1) and features that may not be production ready in - * the kubernetes version of the master and nodes. - * The cluster has no SLA for uptime and master/node upgrades are disabled. - * Alpha enabled clusters are automatically deleted thirty days after - * creation. - * - * Generated from protobuf field bool enable_kubernetes_alpha = 14; - * @param bool $var - * @return $this - */ - public function setEnableKubernetesAlpha($var) - { - GPBUtil::checkBool($var); - $this->enable_kubernetes_alpha = $var; - - return $this; - } - - /** - * The resource labels for the cluster to use to annotate any related - * Google Compute Engine resources. - * - * Generated from protobuf field map resource_labels = 15; - * @return \Google\Protobuf\Internal\MapField - */ - public function getResourceLabels() - { - return $this->resource_labels; - } - - /** - * The resource labels for the cluster to use to annotate any related - * Google Compute Engine resources. - * - * Generated from protobuf field map resource_labels = 15; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setResourceLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->resource_labels = $arr; - - return $this; - } - - /** - * The fingerprint of the set of labels for this cluster. - * - * Generated from protobuf field string label_fingerprint = 16; - * @return string - */ - public function getLabelFingerprint() - { - return $this->label_fingerprint; - } - - /** - * The fingerprint of the set of labels for this cluster. - * - * Generated from protobuf field string label_fingerprint = 16; - * @param string $var - * @return $this - */ - public function setLabelFingerprint($var) - { - GPBUtil::checkString($var, True); - $this->label_fingerprint = $var; - - return $this; - } - - /** - * Configuration for the legacy ABAC authorization mode. - * - * Generated from protobuf field .google.container.v1.LegacyAbac legacy_abac = 18; - * @return \Google\Cloud\Container\V1\LegacyAbac|null - */ - public function getLegacyAbac() - { - return $this->legacy_abac; - } - - public function hasLegacyAbac() - { - return isset($this->legacy_abac); - } - - public function clearLegacyAbac() - { - unset($this->legacy_abac); - } - - /** - * Configuration for the legacy ABAC authorization mode. - * - * Generated from protobuf field .google.container.v1.LegacyAbac legacy_abac = 18; - * @param \Google\Cloud\Container\V1\LegacyAbac $var - * @return $this - */ - public function setLegacyAbac($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LegacyAbac::class); - $this->legacy_abac = $var; - - return $this; - } - - /** - * Configuration options for the NetworkPolicy feature. - * - * Generated from protobuf field .google.container.v1.NetworkPolicy network_policy = 19; - * @return \Google\Cloud\Container\V1\NetworkPolicy|null - */ - public function getNetworkPolicy() - { - return $this->network_policy; - } - - public function hasNetworkPolicy() - { - return isset($this->network_policy); - } - - public function clearNetworkPolicy() - { - unset($this->network_policy); - } - - /** - * Configuration options for the NetworkPolicy feature. - * - * Generated from protobuf field .google.container.v1.NetworkPolicy network_policy = 19; - * @param \Google\Cloud\Container\V1\NetworkPolicy $var - * @return $this - */ - public function setNetworkPolicy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkPolicy::class); - $this->network_policy = $var; - - return $this; - } - - /** - * Configuration for cluster IP allocation. - * - * Generated from protobuf field .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - * @return \Google\Cloud\Container\V1\IPAllocationPolicy|null - */ - public function getIpAllocationPolicy() - { - return $this->ip_allocation_policy; - } - - public function hasIpAllocationPolicy() - { - return isset($this->ip_allocation_policy); - } - - public function clearIpAllocationPolicy() - { - unset($this->ip_allocation_policy); - } - - /** - * Configuration for cluster IP allocation. - * - * Generated from protobuf field .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - * @param \Google\Cloud\Container\V1\IPAllocationPolicy $var - * @return $this - */ - public function setIpAllocationPolicy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\IPAllocationPolicy::class); - $this->ip_allocation_policy = $var; - - return $this; - } - - /** - * The configuration options for master authorized networks feature. - * - * Generated from protobuf field .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - * @return \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig|null - */ - public function getMasterAuthorizedNetworksConfig() - { - return $this->master_authorized_networks_config; - } - - public function hasMasterAuthorizedNetworksConfig() - { - return isset($this->master_authorized_networks_config); - } - - public function clearMasterAuthorizedNetworksConfig() - { - unset($this->master_authorized_networks_config); - } - - /** - * The configuration options for master authorized networks feature. - * - * Generated from protobuf field .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - * @param \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig $var - * @return $this - */ - public function setMasterAuthorizedNetworksConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig::class); - $this->master_authorized_networks_config = $var; - - return $this; - } - - /** - * Configure the maintenance policy for this cluster. - * - * Generated from protobuf field .google.container.v1.MaintenancePolicy maintenance_policy = 23; - * @return \Google\Cloud\Container\V1\MaintenancePolicy|null - */ - public function getMaintenancePolicy() - { - return $this->maintenance_policy; - } - - public function hasMaintenancePolicy() - { - return isset($this->maintenance_policy); - } - - public function clearMaintenancePolicy() - { - unset($this->maintenance_policy); - } - - /** - * Configure the maintenance policy for this cluster. - * - * Generated from protobuf field .google.container.v1.MaintenancePolicy maintenance_policy = 23; - * @param \Google\Cloud\Container\V1\MaintenancePolicy $var - * @return $this - */ - public function setMaintenancePolicy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MaintenancePolicy::class); - $this->maintenance_policy = $var; - - return $this; - } - - /** - * Configuration for Binary Authorization. - * - * Generated from protobuf field .google.container.v1.BinaryAuthorization binary_authorization = 24; - * @return \Google\Cloud\Container\V1\BinaryAuthorization|null - */ - public function getBinaryAuthorization() - { - return $this->binary_authorization; - } - - public function hasBinaryAuthorization() - { - return isset($this->binary_authorization); - } - - public function clearBinaryAuthorization() - { - unset($this->binary_authorization); - } - - /** - * Configuration for Binary Authorization. - * - * Generated from protobuf field .google.container.v1.BinaryAuthorization binary_authorization = 24; - * @param \Google\Cloud\Container\V1\BinaryAuthorization $var - * @return $this - */ - public function setBinaryAuthorization($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\BinaryAuthorization::class); - $this->binary_authorization = $var; - - return $this; - } - - /** - * Cluster-level autoscaling configuration. - * - * Generated from protobuf field .google.container.v1.ClusterAutoscaling autoscaling = 26; - * @return \Google\Cloud\Container\V1\ClusterAutoscaling|null - */ - public function getAutoscaling() - { - return $this->autoscaling; - } - - public function hasAutoscaling() - { - return isset($this->autoscaling); - } - - public function clearAutoscaling() - { - unset($this->autoscaling); - } - - /** - * Cluster-level autoscaling configuration. - * - * Generated from protobuf field .google.container.v1.ClusterAutoscaling autoscaling = 26; - * @param \Google\Cloud\Container\V1\ClusterAutoscaling $var - * @return $this - */ - public function setAutoscaling($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ClusterAutoscaling::class); - $this->autoscaling = $var; - - return $this; - } - - /** - * Configuration for cluster networking. - * - * Generated from protobuf field .google.container.v1.NetworkConfig network_config = 27; - * @return \Google\Cloud\Container\V1\NetworkConfig|null - */ - public function getNetworkConfig() - { - return $this->network_config; - } - - public function hasNetworkConfig() - { - return isset($this->network_config); - } - - public function clearNetworkConfig() - { - unset($this->network_config); - } - - /** - * Configuration for cluster networking. - * - * Generated from protobuf field .google.container.v1.NetworkConfig network_config = 27; - * @param \Google\Cloud\Container\V1\NetworkConfig $var - * @return $this - */ - public function setNetworkConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkConfig::class); - $this->network_config = $var; - - return $this; - } - - /** - * The default constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool of this cluster. Only honored - * if cluster created with IP Alias support. - * - * Generated from protobuf field .google.container.v1.MaxPodsConstraint default_max_pods_constraint = 30; - * @return \Google\Cloud\Container\V1\MaxPodsConstraint|null - */ - public function getDefaultMaxPodsConstraint() - { - return $this->default_max_pods_constraint; - } - - public function hasDefaultMaxPodsConstraint() - { - return isset($this->default_max_pods_constraint); - } - - public function clearDefaultMaxPodsConstraint() - { - unset($this->default_max_pods_constraint); - } - - /** - * The default constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool of this cluster. Only honored - * if cluster created with IP Alias support. - * - * Generated from protobuf field .google.container.v1.MaxPodsConstraint default_max_pods_constraint = 30; - * @param \Google\Cloud\Container\V1\MaxPodsConstraint $var - * @return $this - */ - public function setDefaultMaxPodsConstraint($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MaxPodsConstraint::class); - $this->default_max_pods_constraint = $var; - - return $this; - } - - /** - * Configuration for exporting resource usages. Resource usage export is - * disabled when this config is unspecified. - * - * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; - * @return \Google\Cloud\Container\V1\ResourceUsageExportConfig|null - */ - public function getResourceUsageExportConfig() - { - return $this->resource_usage_export_config; - } - - public function hasResourceUsageExportConfig() - { - return isset($this->resource_usage_export_config); - } - - public function clearResourceUsageExportConfig() - { - unset($this->resource_usage_export_config); - } - - /** - * Configuration for exporting resource usages. Resource usage export is - * disabled when this config is unspecified. - * - * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; - * @param \Google\Cloud\Container\V1\ResourceUsageExportConfig $var - * @return $this - */ - public function setResourceUsageExportConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ResourceUsageExportConfig::class); - $this->resource_usage_export_config = $var; - - return $this; - } - - /** - * Configuration controlling RBAC group membership information. - * - * Generated from protobuf field .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - * @return \Google\Cloud\Container\V1\AuthenticatorGroupsConfig|null - */ - public function getAuthenticatorGroupsConfig() - { - return $this->authenticator_groups_config; - } - - public function hasAuthenticatorGroupsConfig() - { - return isset($this->authenticator_groups_config); - } - - public function clearAuthenticatorGroupsConfig() - { - unset($this->authenticator_groups_config); - } - - /** - * Configuration controlling RBAC group membership information. - * - * Generated from protobuf field .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - * @param \Google\Cloud\Container\V1\AuthenticatorGroupsConfig $var - * @return $this - */ - public function setAuthenticatorGroupsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AuthenticatorGroupsConfig::class); - $this->authenticator_groups_config = $var; - - return $this; - } - - /** - * Configuration for private cluster. - * - * Generated from protobuf field .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - * @return \Google\Cloud\Container\V1\PrivateClusterConfig|null - */ - public function getPrivateClusterConfig() - { - return $this->private_cluster_config; - } - - public function hasPrivateClusterConfig() - { - return isset($this->private_cluster_config); - } - - public function clearPrivateClusterConfig() - { - unset($this->private_cluster_config); - } - - /** - * Configuration for private cluster. - * - * Generated from protobuf field .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - * @param \Google\Cloud\Container\V1\PrivateClusterConfig $var - * @return $this - */ - public function setPrivateClusterConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\PrivateClusterConfig::class); - $this->private_cluster_config = $var; - - return $this; - } - - /** - * Configuration of etcd encryption. - * - * Generated from protobuf field .google.container.v1.DatabaseEncryption database_encryption = 38; - * @return \Google\Cloud\Container\V1\DatabaseEncryption|null - */ - public function getDatabaseEncryption() - { - return $this->database_encryption; - } - - public function hasDatabaseEncryption() - { - return isset($this->database_encryption); - } - - public function clearDatabaseEncryption() - { - unset($this->database_encryption); - } - - /** - * Configuration of etcd encryption. - * - * Generated from protobuf field .google.container.v1.DatabaseEncryption database_encryption = 38; - * @param \Google\Cloud\Container\V1\DatabaseEncryption $var - * @return $this - */ - public function setDatabaseEncryption($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\DatabaseEncryption::class); - $this->database_encryption = $var; - - return $this; - } - - /** - * Cluster-level Vertical Pod Autoscaling configuration. - * - * Generated from protobuf field .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - * @return \Google\Cloud\Container\V1\VerticalPodAutoscaling|null - */ - public function getVerticalPodAutoscaling() - { - return $this->vertical_pod_autoscaling; - } - - public function hasVerticalPodAutoscaling() - { - return isset($this->vertical_pod_autoscaling); - } - - public function clearVerticalPodAutoscaling() - { - unset($this->vertical_pod_autoscaling); - } - - /** - * Cluster-level Vertical Pod Autoscaling configuration. - * - * Generated from protobuf field .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - * @param \Google\Cloud\Container\V1\VerticalPodAutoscaling $var - * @return $this - */ - public function setVerticalPodAutoscaling($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\VerticalPodAutoscaling::class); - $this->vertical_pod_autoscaling = $var; - - return $this; - } - - /** - * Shielded Nodes configuration. - * - * Generated from protobuf field .google.container.v1.ShieldedNodes shielded_nodes = 40; - * @return \Google\Cloud\Container\V1\ShieldedNodes|null - */ - public function getShieldedNodes() - { - return $this->shielded_nodes; - } - - public function hasShieldedNodes() - { - return isset($this->shielded_nodes); - } - - public function clearShieldedNodes() - { - unset($this->shielded_nodes); - } - - /** - * Shielded Nodes configuration. - * - * Generated from protobuf field .google.container.v1.ShieldedNodes shielded_nodes = 40; - * @param \Google\Cloud\Container\V1\ShieldedNodes $var - * @return $this - */ - public function setShieldedNodes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ShieldedNodes::class); - $this->shielded_nodes = $var; - - return $this; - } - - /** - * Release channel configuration. - * - * 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; - } - - /** - * Configuration for the fine-grained cost management feature. - * - * Generated from protobuf field .google.container.v1.CostManagementConfig cost_management_config = 45; - * @return \Google\Cloud\Container\V1\CostManagementConfig|null - */ - public function getCostManagementConfig() - { - return $this->cost_management_config; - } - - public function hasCostManagementConfig() - { - return isset($this->cost_management_config); - } - - public function clearCostManagementConfig() - { - unset($this->cost_management_config); - } - - /** - * Configuration for the fine-grained cost management feature. - * - * Generated from protobuf field .google.container.v1.CostManagementConfig cost_management_config = 45; - * @param \Google\Cloud\Container\V1\CostManagementConfig $var - * @return $this - */ - public function setCostManagementConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\CostManagementConfig::class); - $this->cost_management_config = $var; - - return $this; - } - - /** - * Notification configuration of the cluster. - * - * Generated from protobuf field .google.container.v1.NotificationConfig notification_config = 49; - * @return \Google\Cloud\Container\V1\NotificationConfig|null - */ - public function getNotificationConfig() - { - return $this->notification_config; - } - - public function hasNotificationConfig() - { - return isset($this->notification_config); - } - - public function clearNotificationConfig() - { - unset($this->notification_config); - } - - /** - * Notification configuration of the cluster. - * - * Generated from protobuf field .google.container.v1.NotificationConfig notification_config = 49; - * @param \Google\Cloud\Container\V1\NotificationConfig $var - * @return $this - */ - public function setNotificationConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NotificationConfig::class); - $this->notification_config = $var; - - return $this; - } - - /** - * Configuration of Confidential Nodes. - * All the nodes in the cluster will be Confidential VM once enabled. - * - * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 50; - * @return \Google\Cloud\Container\V1\ConfidentialNodes|null - */ - public function getConfidentialNodes() - { - return $this->confidential_nodes; - } - - public function hasConfidentialNodes() - { - return isset($this->confidential_nodes); - } - - public function clearConfidentialNodes() - { - unset($this->confidential_nodes); - } - - /** - * Configuration of Confidential Nodes. - * All the nodes in the cluster will be Confidential VM once enabled. - * - * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 50; - * @param \Google\Cloud\Container\V1\ConfidentialNodes $var - * @return $this - */ - public function setConfidentialNodes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ConfidentialNodes::class); - $this->confidential_nodes = $var; - - return $this; - } - - /** - * Configuration for Identity Service component. - * - * Generated from protobuf field .google.container.v1.IdentityServiceConfig identity_service_config = 54; - * @return \Google\Cloud\Container\V1\IdentityServiceConfig|null - */ - public function getIdentityServiceConfig() - { - return $this->identity_service_config; - } - - public function hasIdentityServiceConfig() - { - return isset($this->identity_service_config); - } - - public function clearIdentityServiceConfig() - { - unset($this->identity_service_config); - } - - /** - * Configuration for Identity Service component. - * - * Generated from protobuf field .google.container.v1.IdentityServiceConfig identity_service_config = 54; - * @param \Google\Cloud\Container\V1\IdentityServiceConfig $var - * @return $this - */ - public function setIdentityServiceConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\IdentityServiceConfig::class); - $this->identity_service_config = $var; - - return $this; - } - - /** - * [Output only] Server-defined URL for the resource. - * - * Generated from protobuf field string self_link = 100; - * @return string - */ - public function getSelfLink() - { - return $this->self_link; - } - - /** - * [Output only] Server-defined URL for the resource. - * - * Generated from protobuf field string self_link = 100; - * @param string $var - * @return $this - */ - public function setSelfLink($var) - { - GPBUtil::checkString($var, True); - $this->self_link = $var; - - return $this; - } - - /** - * [Output only] The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field is deprecated, use location instead. - * - * Generated from protobuf field string zone = 101 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * [Output only] The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field is deprecated, use location instead. - * - * Generated from protobuf field string zone = 101 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * [Output only] The IP address of this cluster's master endpoint. - * The endpoint can be accessed from the internet at - * `https://username:password@endpoint/`. - * See the `masterAuth` property of this resource for username and - * password information. - * - * Generated from protobuf field string endpoint = 102; - * @return string - */ - public function getEndpoint() - { - return $this->endpoint; - } - - /** - * [Output only] The IP address of this cluster's master endpoint. - * The endpoint can be accessed from the internet at - * `https://username:password@endpoint/`. - * See the `masterAuth` property of this resource for username and - * password information. - * - * Generated from protobuf field string endpoint = 102; - * @param string $var - * @return $this - */ - public function setEndpoint($var) - { - GPBUtil::checkString($var, True); - $this->endpoint = $var; - - return $this; - } - - /** - * The initial Kubernetes version for this cluster. Valid versions are those - * found in validMasterVersions returned by getServerConfig. The version can - * be upgraded over time; such upgrades are reflected in - * currentMasterVersion and currentNodeVersion. - * Users may specify either explicit versions offered by - * Kubernetes Engine or version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "","-": picks the default Kubernetes version - * - * Generated from protobuf field string initial_cluster_version = 103; - * @return string - */ - public function getInitialClusterVersion() - { - return $this->initial_cluster_version; - } - - /** - * The initial Kubernetes version for this cluster. Valid versions are those - * found in validMasterVersions returned by getServerConfig. The version can - * be upgraded over time; such upgrades are reflected in - * currentMasterVersion and currentNodeVersion. - * Users may specify either explicit versions offered by - * Kubernetes Engine or version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "","-": picks the default Kubernetes version - * - * Generated from protobuf field string initial_cluster_version = 103; - * @param string $var - * @return $this - */ - public function setInitialClusterVersion($var) - { - GPBUtil::checkString($var, True); - $this->initial_cluster_version = $var; - - return $this; - } - - /** - * [Output only] The current software version of the master endpoint. - * - * Generated from protobuf field string current_master_version = 104; - * @return string - */ - public function getCurrentMasterVersion() - { - return $this->current_master_version; - } - - /** - * [Output only] The current software version of the master endpoint. - * - * Generated from protobuf field string current_master_version = 104; - * @param string $var - * @return $this - */ - public function setCurrentMasterVersion($var) - { - GPBUtil::checkString($var, True); - $this->current_master_version = $var; - - return $this; - } - - /** - * [Output only] Deprecated, use - * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools) - * instead. The current version of the node software components. If they are - * currently at multiple versions because they're in the process of being - * upgraded, this reflects the minimum version of all nodes. - * - * Generated from protobuf field string current_node_version = 105 [deprecated = true]; - * @return string - * @deprecated - */ - public function getCurrentNodeVersion() - { - @trigger_error('current_node_version is deprecated.', E_USER_DEPRECATED); - return $this->current_node_version; - } - - /** - * [Output only] Deprecated, use - * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools) - * instead. The current version of the node software components. If they are - * currently at multiple versions because they're in the process of being - * upgraded, this reflects the minimum version of all nodes. - * - * Generated from protobuf field string current_node_version = 105 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setCurrentNodeVersion($var) - { - @trigger_error('current_node_version is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->current_node_version = $var; - - return $this; - } - - /** - * [Output only] The time the cluster was created, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string create_time = 106; - * @return string - */ - public function getCreateTime() - { - return $this->create_time; - } - - /** - * [Output only] The time the cluster was created, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string create_time = 106; - * @param string $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkString($var, True); - $this->create_time = $var; - - return $this; - } - - /** - * [Output only] The current status of this cluster. - * - * Generated from protobuf field .google.container.v1.Cluster.Status status = 107; - * @return int - */ - public function getStatus() - { - return $this->status; - } - - /** - * [Output only] The current status of this cluster. - * - * Generated from protobuf field .google.container.v1.Cluster.Status status = 107; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\Cluster\Status::class); - $this->status = $var; - - return $this; - } - - /** - * [Output only] Deprecated. Use conditions instead. - * Additional information about the current status of this - * cluster, if available. - * - * Generated from protobuf field string status_message = 108 [deprecated = true]; - * @return string - * @deprecated - */ - public function getStatusMessage() - { - @trigger_error('status_message is deprecated.', E_USER_DEPRECATED); - return $this->status_message; - } - - /** - * [Output only] Deprecated. Use conditions instead. - * Additional information about the current status of this - * cluster, if available. - * - * Generated from protobuf field string status_message = 108 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setStatusMessage($var) - { - @trigger_error('status_message is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->status_message = $var; - - return $this; - } - - /** - * [Output only] The size of the address space on each node for hosting - * containers. This is provisioned from within the `container_ipv4_cidr` - * range. This field will only be set when cluster is in route-based network - * mode. - * - * Generated from protobuf field int32 node_ipv4_cidr_size = 109; - * @return int - */ - public function getNodeIpv4CidrSize() - { - return $this->node_ipv4_cidr_size; - } - - /** - * [Output only] The size of the address space on each node for hosting - * containers. This is provisioned from within the `container_ipv4_cidr` - * range. This field will only be set when cluster is in route-based network - * mode. - * - * Generated from protobuf field int32 node_ipv4_cidr_size = 109; - * @param int $var - * @return $this - */ - public function setNodeIpv4CidrSize($var) - { - GPBUtil::checkInt32($var); - $this->node_ipv4_cidr_size = $var; - - return $this; - } - - /** - * [Output only] The IP address range of the Kubernetes services in - * this cluster, in - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `1.2.3.4/29`). Service addresses are - * typically put in the last `/16` from the container CIDR. - * - * Generated from protobuf field string services_ipv4_cidr = 110; - * @return string - */ - public function getServicesIpv4Cidr() - { - return $this->services_ipv4_cidr; - } - - /** - * [Output only] The IP address range of the Kubernetes services in - * this cluster, in - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `1.2.3.4/29`). Service addresses are - * typically put in the last `/16` from the container CIDR. - * - * Generated from protobuf field string services_ipv4_cidr = 110; - * @param string $var - * @return $this - */ - public function setServicesIpv4Cidr($var) - { - GPBUtil::checkString($var, True); - $this->services_ipv4_cidr = $var; - - return $this; - } - - /** - * Deprecated. Use node_pools.instance_group_urls. - * - * Generated from protobuf field repeated string instance_group_urls = 111 [deprecated = true]; - * @return \Google\Protobuf\Internal\RepeatedField - * @deprecated - */ - public function getInstanceGroupUrls() - { - @trigger_error('instance_group_urls is deprecated.', E_USER_DEPRECATED); - return $this->instance_group_urls; - } - - /** - * Deprecated. Use node_pools.instance_group_urls. - * - * Generated from protobuf field repeated string instance_group_urls = 111 [deprecated = true]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - * @deprecated - */ - public function setInstanceGroupUrls($var) - { - @trigger_error('instance_group_urls is deprecated.', E_USER_DEPRECATED); - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->instance_group_urls = $arr; - - return $this; - } - - /** - * [Output only] The number of nodes currently in the cluster. Deprecated. - * Call Kubernetes API directly to retrieve node information. - * - * Generated from protobuf field int32 current_node_count = 112 [deprecated = true]; - * @return int - * @deprecated - */ - public function getCurrentNodeCount() - { - @trigger_error('current_node_count is deprecated.', E_USER_DEPRECATED); - return $this->current_node_count; - } - - /** - * [Output only] The number of nodes currently in the cluster. Deprecated. - * Call Kubernetes API directly to retrieve node information. - * - * Generated from protobuf field int32 current_node_count = 112 [deprecated = true]; - * @param int $var - * @return $this - * @deprecated - */ - public function setCurrentNodeCount($var) - { - @trigger_error('current_node_count is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkInt32($var); - $this->current_node_count = $var; - - return $this; - } - - /** - * [Output only] The time the cluster will be automatically - * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string expire_time = 113; - * @return string - */ - public function getExpireTime() - { - return $this->expire_time; - } - - /** - * [Output only] The time the cluster will be automatically - * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string expire_time = 113; - * @param string $var - * @return $this - */ - public function setExpireTime($var) - { - GPBUtil::checkString($var, True); - $this->expire_time = $var; - - return $this; - } - - /** - * [Output only] The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * or - * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * in which the cluster resides. - * - * Generated from protobuf field string location = 114; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * [Output only] The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * or - * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * in which the cluster resides. - * - * Generated from protobuf field string location = 114; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - - /** - * Enable the ability to use Cloud TPUs in this cluster. - * - * Generated from protobuf field bool enable_tpu = 115; - * @return bool - */ - public function getEnableTpu() - { - return $this->enable_tpu; - } - - /** - * Enable the ability to use Cloud TPUs in this cluster. - * - * Generated from protobuf field bool enable_tpu = 115; - * @param bool $var - * @return $this - */ - public function setEnableTpu($var) - { - GPBUtil::checkBool($var); - $this->enable_tpu = $var; - - return $this; - } - - /** - * [Output only] The IP address range of the Cloud TPUs in this cluster, in - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `1.2.3.4/29`). - * - * Generated from protobuf field string tpu_ipv4_cidr_block = 116; - * @return string - */ - public function getTpuIpv4CidrBlock() - { - return $this->tpu_ipv4_cidr_block; - } - - /** - * [Output only] The IP address range of the Cloud TPUs in this cluster, in - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `1.2.3.4/29`). - * - * Generated from protobuf field string tpu_ipv4_cidr_block = 116; - * @param string $var - * @return $this - */ - public function setTpuIpv4CidrBlock($var) - { - GPBUtil::checkString($var, True); - $this->tpu_ipv4_cidr_block = $var; - - return $this; - } - - /** - * Which conditions caused the current cluster state. - * - * Generated from protobuf field repeated .google.container.v1.StatusCondition conditions = 118; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getConditions() - { - return $this->conditions; - } - - /** - * Which conditions caused the current cluster state. - * - * Generated from protobuf field repeated .google.container.v1.StatusCondition conditions = 118; - * @param array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setConditions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\StatusCondition::class); - $this->conditions = $arr; - - return $this; - } - - /** - * Autopilot configuration for the cluster. - * - * Generated from protobuf field .google.container.v1.Autopilot autopilot = 128; - * @return \Google\Cloud\Container\V1\Autopilot|null - */ - public function getAutopilot() - { - return $this->autopilot; - } - - public function hasAutopilot() - { - return isset($this->autopilot); - } - - public function clearAutopilot() - { - unset($this->autopilot); - } - - /** - * Autopilot configuration for the cluster. - * - * Generated from protobuf field .google.container.v1.Autopilot autopilot = 128; - * @param \Google\Cloud\Container\V1\Autopilot $var - * @return $this - */ - public function setAutopilot($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\Autopilot::class); - $this->autopilot = $var; - - return $this; - } - - /** - * Output only. Unique id for the cluster. - * - * Generated from protobuf field string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Output only. Unique id for the cluster. - * - * Generated from protobuf field string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Default NodePool settings for the entire cluster. These settings are - * overridden if specified on the specific NodePool object. - * - * Generated from protobuf field optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; - * @return \Google\Cloud\Container\V1\NodePoolDefaults|null - */ - public function getNodePoolDefaults() - { - return $this->node_pool_defaults; - } - - public function hasNodePoolDefaults() - { - return isset($this->node_pool_defaults); - } - - public function clearNodePoolDefaults() - { - unset($this->node_pool_defaults); - } - - /** - * Default NodePool settings for the entire cluster. These settings are - * overridden if specified on the specific NodePool object. - * - * Generated from protobuf field optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; - * @param \Google\Cloud\Container\V1\NodePoolDefaults $var - * @return $this - */ - public function setNodePoolDefaults($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolDefaults::class); - $this->node_pool_defaults = $var; - - return $this; - } - - /** - * Logging configuration for the cluster. - * - * Generated from protobuf field .google.container.v1.LoggingConfig logging_config = 132; - * @return \Google\Cloud\Container\V1\LoggingConfig|null - */ - public function getLoggingConfig() - { - return $this->logging_config; - } - - public function hasLoggingConfig() - { - return isset($this->logging_config); - } - - public function clearLoggingConfig() - { - unset($this->logging_config); - } - - /** - * Logging configuration for the cluster. - * - * Generated from protobuf field .google.container.v1.LoggingConfig logging_config = 132; - * @param \Google\Cloud\Container\V1\LoggingConfig $var - * @return $this - */ - public function setLoggingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LoggingConfig::class); - $this->logging_config = $var; - - return $this; - } - - /** - * Monitoring configuration for the cluster. - * - * Generated from protobuf field .google.container.v1.MonitoringConfig monitoring_config = 133; - * @return \Google\Cloud\Container\V1\MonitoringConfig|null - */ - public function getMonitoringConfig() - { - return $this->monitoring_config; - } - - public function hasMonitoringConfig() - { - return isset($this->monitoring_config); - } - - public function clearMonitoringConfig() - { - unset($this->monitoring_config); - } - - /** - * Monitoring configuration for the cluster. - * - * Generated from protobuf field .google.container.v1.MonitoringConfig monitoring_config = 133; - * @param \Google\Cloud\Container\V1\MonitoringConfig $var - * @return $this - */ - public function setMonitoringConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MonitoringConfig::class); - $this->monitoring_config = $var; - - return $this; - } - - /** - * Node pool configs that apply to all auto-provisioned node pools - * in autopilot clusters and node auto-provisioning enabled clusters. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; - * @return \Google\Cloud\Container\V1\NodePoolAutoConfig|null - */ - public function getNodePoolAutoConfig() - { - return $this->node_pool_auto_config; - } - - public function hasNodePoolAutoConfig() - { - return isset($this->node_pool_auto_config); - } - - public function clearNodePoolAutoConfig() - { - unset($this->node_pool_auto_config); - } - - /** - * Node pool configs that apply to all auto-provisioned node pools - * in autopilot clusters and node auto-provisioning enabled clusters. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; - * @param \Google\Cloud\Container\V1\NodePoolAutoConfig $var - * @return $this - */ - public function setNodePoolAutoConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolAutoConfig::class); - $this->node_pool_auto_config = $var; - - return $this; - } - - /** - * This checksum is computed by the server based on the value of cluster - * fields, and may be sent on update requests to ensure the client has an - * up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 139; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * This checksum is computed by the server based on the value of cluster - * fields, and may be sent on update requests to ensure the client has an - * up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 139; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Cluster/Status.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Cluster/Status.php deleted file mode 100644 index c9b3957604fb..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Cluster/Status.php +++ /dev/null @@ -1,97 +0,0 @@ -google.container.v1.Cluster.Status - */ -class Status -{ - /** - * Not set. - * - * Generated from protobuf enum STATUS_UNSPECIFIED = 0; - */ - const STATUS_UNSPECIFIED = 0; - /** - * The PROVISIONING state indicates the cluster is being created. - * - * Generated from protobuf enum PROVISIONING = 1; - */ - const PROVISIONING = 1; - /** - * The RUNNING state indicates the cluster has been created and is fully - * usable. - * - * Generated from protobuf enum RUNNING = 2; - */ - const RUNNING = 2; - /** - * The RECONCILING state indicates that some work is actively being done on - * the cluster, such as upgrading the master or node software. Details can - * be found in the `statusMessage` field. - * - * Generated from protobuf enum RECONCILING = 3; - */ - const RECONCILING = 3; - /** - * The STOPPING state indicates the cluster is being deleted. - * - * Generated from protobuf enum STOPPING = 4; - */ - const STOPPING = 4; - /** - * The ERROR state indicates the cluster is unusable. It will be - * automatically deleted. Details can be found in the `statusMessage` field. - * - * Generated from protobuf enum ERROR = 5; - */ - const ERROR = 5; - /** - * The DEGRADED state indicates the cluster requires user action to restore - * full functionality. Details can be found in the `statusMessage` field. - * - * Generated from protobuf enum DEGRADED = 6; - */ - const DEGRADED = 6; - - private static $valueToName = [ - self::STATUS_UNSPECIFIED => 'STATUS_UNSPECIFIED', - self::PROVISIONING => 'PROVISIONING', - self::RUNNING => 'RUNNING', - self::RECONCILING => 'RECONCILING', - self::STOPPING => 'STOPPING', - self::ERROR => 'ERROR', - self::DEGRADED => 'DEGRADED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Status::class, \Google\Cloud\Container\V1\Cluster_Status::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling.php deleted file mode 100644 index 5ca6c015c80b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling.php +++ /dev/null @@ -1,232 +0,0 @@ -google.container.v1.ClusterAutoscaling - */ -class ClusterAutoscaling extends \Google\Protobuf\Internal\Message -{ - /** - * Enables automatic node pool creation and deletion. - * - * Generated from protobuf field bool enable_node_autoprovisioning = 1; - */ - protected $enable_node_autoprovisioning = false; - /** - * Contains global constraints regarding minimum and maximum - * amount of resources in the cluster. - * - * Generated from protobuf field repeated .google.container.v1.ResourceLimit resource_limits = 2; - */ - private $resource_limits; - /** - * Defines autoscaling behaviour. - * - * Generated from protobuf field .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; - */ - protected $autoscaling_profile = 0; - /** - * AutoprovisioningNodePoolDefaults contains defaults for a node pool - * created by NAP. - * - * Generated from protobuf field .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - */ - protected $autoprovisioning_node_pool_defaults = null; - /** - * The list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * NodePool's nodes can be created by NAP. - * - * Generated from protobuf field repeated string autoprovisioning_locations = 5; - */ - private $autoprovisioning_locations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enable_node_autoprovisioning - * Enables automatic node pool creation and deletion. - * @type array<\Google\Cloud\Container\V1\ResourceLimit>|\Google\Protobuf\Internal\RepeatedField $resource_limits - * Contains global constraints regarding minimum and maximum - * amount of resources in the cluster. - * @type int $autoscaling_profile - * Defines autoscaling behaviour. - * @type \Google\Cloud\Container\V1\AutoprovisioningNodePoolDefaults $autoprovisioning_node_pool_defaults - * AutoprovisioningNodePoolDefaults contains defaults for a node pool - * created by NAP. - * @type array|\Google\Protobuf\Internal\RepeatedField $autoprovisioning_locations - * The list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * NodePool's nodes can be created by NAP. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Enables automatic node pool creation and deletion. - * - * Generated from protobuf field bool enable_node_autoprovisioning = 1; - * @return bool - */ - public function getEnableNodeAutoprovisioning() - { - return $this->enable_node_autoprovisioning; - } - - /** - * Enables automatic node pool creation and deletion. - * - * Generated from protobuf field bool enable_node_autoprovisioning = 1; - * @param bool $var - * @return $this - */ - public function setEnableNodeAutoprovisioning($var) - { - GPBUtil::checkBool($var); - $this->enable_node_autoprovisioning = $var; - - return $this; - } - - /** - * Contains global constraints regarding minimum and maximum - * amount of resources in the cluster. - * - * Generated from protobuf field repeated .google.container.v1.ResourceLimit resource_limits = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResourceLimits() - { - return $this->resource_limits; - } - - /** - * Contains global constraints regarding minimum and maximum - * amount of resources in the cluster. - * - * Generated from protobuf field repeated .google.container.v1.ResourceLimit resource_limits = 2; - * @param array<\Google\Cloud\Container\V1\ResourceLimit>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResourceLimits($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\ResourceLimit::class); - $this->resource_limits = $arr; - - return $this; - } - - /** - * Defines autoscaling behaviour. - * - * Generated from protobuf field .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; - * @return int - */ - public function getAutoscalingProfile() - { - return $this->autoscaling_profile; - } - - /** - * Defines autoscaling behaviour. - * - * Generated from protobuf field .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; - * @param int $var - * @return $this - */ - public function setAutoscalingProfile($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\ClusterAutoscaling\AutoscalingProfile::class); - $this->autoscaling_profile = $var; - - return $this; - } - - /** - * AutoprovisioningNodePoolDefaults contains defaults for a node pool - * created by NAP. - * - * Generated from protobuf field .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * @return \Google\Cloud\Container\V1\AutoprovisioningNodePoolDefaults|null - */ - public function getAutoprovisioningNodePoolDefaults() - { - return $this->autoprovisioning_node_pool_defaults; - } - - public function hasAutoprovisioningNodePoolDefaults() - { - return isset($this->autoprovisioning_node_pool_defaults); - } - - public function clearAutoprovisioningNodePoolDefaults() - { - unset($this->autoprovisioning_node_pool_defaults); - } - - /** - * AutoprovisioningNodePoolDefaults contains defaults for a node pool - * created by NAP. - * - * Generated from protobuf field .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * @param \Google\Cloud\Container\V1\AutoprovisioningNodePoolDefaults $var - * @return $this - */ - public function setAutoprovisioningNodePoolDefaults($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AutoprovisioningNodePoolDefaults::class); - $this->autoprovisioning_node_pool_defaults = $var; - - return $this; - } - - /** - * The list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * NodePool's nodes can be created by NAP. - * - * Generated from protobuf field repeated string autoprovisioning_locations = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAutoprovisioningLocations() - { - return $this->autoprovisioning_locations; - } - - /** - * The list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * NodePool's nodes can be created by NAP. - * - * Generated from protobuf field repeated string autoprovisioning_locations = 5; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAutoprovisioningLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->autoprovisioning_locations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling/AutoscalingProfile.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling/AutoscalingProfile.php deleted file mode 100644 index c749df9997d7..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling/AutoscalingProfile.php +++ /dev/null @@ -1,64 +0,0 @@ -google.container.v1.ClusterAutoscaling.AutoscalingProfile - */ -class AutoscalingProfile -{ - /** - * No change to autoscaling configuration. - * - * Generated from protobuf enum PROFILE_UNSPECIFIED = 0; - */ - const PROFILE_UNSPECIFIED = 0; - /** - * Prioritize optimizing utilization of resources. - * - * Generated from protobuf enum OPTIMIZE_UTILIZATION = 1; - */ - const OPTIMIZE_UTILIZATION = 1; - /** - * Use default (balanced) autoscaling configuration. - * - * Generated from protobuf enum BALANCED = 2; - */ - const BALANCED = 2; - - private static $valueToName = [ - self::PROFILE_UNSPECIFIED => 'PROFILE_UNSPECIFIED', - self::OPTIMIZE_UTILIZATION => 'OPTIMIZE_UTILIZATION', - self::BALANCED => 'BALANCED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AutoscalingProfile::class, \Google\Cloud\Container\V1\ClusterAutoscaling_AutoscalingProfile::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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); - } - - /** - * CompleteNodePoolUpgrade will signal an on-going node pool upgrade to - * complete. - * @param \Google\Cloud\Container\V1\CompleteNodePoolUpgradeRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function CompleteNodePoolUpgrade(\Google\Cloud\Container\V1\CompleteNodePoolUpgradeRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/google.container.v1.ClusterManager/CompleteNodePoolUpgrade', - $argument, - ['\Google\Protobuf\GPBEmpty', '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 12ef9213dbd2..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterUpdate.php +++ /dev/null @@ -1,1885 +0,0 @@ -google.container.v1.ClusterUpdate - */ -class ClusterUpdate extends \Google\Protobuf\Internal\Message -{ - /** - * The Kubernetes version to change the nodes to (typically an - * upgrade). - * Users may specify either explicit versions offered by - * Kubernetes Engine or version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the Kubernetes master version - * - * Generated from protobuf field string desired_node_version = 4; - */ - protected $desired_node_version = ''; - /** - * The monitoring service the cluster should use to write metrics. - * Currently available options: - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * - * Generated from protobuf field string desired_monitoring_service = 5; - */ - protected $desired_monitoring_service = ''; - /** - * Configurations for the various addons available to run in the cluster. - * - * Generated from protobuf field .google.container.v1.AddonsConfig desired_addons_config = 6; - */ - protected $desired_addons_config = null; - /** - * The node pool to be upgraded. This field is mandatory if - * "desired_node_version", "desired_image_family" or - * "desired_node_pool_autoscaling" is specified and there is more than one - * node pool on the cluster. - * - * Generated from protobuf field string desired_node_pool_id = 7; - */ - protected $desired_node_pool_id = ''; - /** - * The desired image type for the node pool. - * NOTE: Set the "desired_node_pool" field as well. - * - * Generated from protobuf field string desired_image_type = 8; - */ - protected $desired_image_type = ''; - /** - * Configuration of etcd encryption. - * - * Generated from protobuf field .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - */ - protected $desired_database_encryption = null; - /** - * Configuration for Workload Identity. - * - * Generated from protobuf field .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - */ - protected $desired_workload_identity_config = null; - /** - * Configuration for issuance of mTLS keys and certificates to Kubernetes - * pods. - * - * Generated from protobuf field .google.container.v1.MeshCertificates desired_mesh_certificates = 67; - */ - protected $desired_mesh_certificates = null; - /** - * Configuration for Shielded Nodes. - * - * Generated from protobuf field .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - */ - protected $desired_shielded_nodes = null; - /** - * The desired configuration for the fine-grained cost management feature. - * - * Generated from protobuf field .google.container.v1.CostManagementConfig desired_cost_management_config = 49; - */ - protected $desired_cost_management_config = null; - /** - * DNSConfig contains clusterDNS config for this cluster. - * - * Generated from protobuf field .google.container.v1.DNSConfig desired_dns_config = 53; - */ - protected $desired_dns_config = null; - /** - * Autoscaler configuration for the node pool specified in - * desired_node_pool_id. If there is only one pool in the - * cluster and desired_node_pool_id is not provided then - * the change applies to that single node pool. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - */ - protected $desired_node_pool_autoscaling = null; - /** - * The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. - * This list must always include the cluster's primary zone. - * Warning: changing cluster locations will update the locations of all node - * pools and will result in nodes being added and/or removed. - * - * Generated from protobuf field repeated string desired_locations = 10; - */ - private $desired_locations; - /** - * The desired configuration options for master authorized networks feature. - * - * Generated from protobuf field .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - */ - protected $desired_master_authorized_networks_config = null; - /** - * Cluster-level autoscaling configuration. - * - * Generated from protobuf field .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - */ - protected $desired_cluster_autoscaling = null; - /** - * The desired configuration options for the Binary Authorization feature. - * - * Generated from protobuf field .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; - */ - protected $desired_binary_authorization = null; - /** - * The logging service the cluster should use to write logs. - * Currently available options: - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * - * Generated from protobuf field string desired_logging_service = 19; - */ - protected $desired_logging_service = ''; - /** - * The desired configuration for exporting resource usage. - * - * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - */ - protected $desired_resource_usage_export_config = null; - /** - * Cluster-level Vertical Pod Autoscaling configuration. - * - * Generated from protobuf field .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - */ - protected $desired_vertical_pod_autoscaling = null; - /** - * The desired private cluster configuration. - * - * Generated from protobuf field .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - */ - protected $desired_private_cluster_config = null; - /** - * The desired config of Intra-node visibility. - * - * Generated from protobuf field .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - */ - protected $desired_intra_node_visibility_config = null; - /** - * The desired status of whether to disable default sNAT for this cluster. - * - * Generated from protobuf field .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - */ - protected $desired_default_snat_status = null; - /** - * The desired release channel configuration. - * - * Generated from protobuf field .google.container.v1.ReleaseChannel desired_release_channel = 31; - */ - protected $desired_release_channel = null; - /** - * The desired L4 Internal Load Balancer Subsetting configuration. - * - * Generated from protobuf field .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - */ - protected $desired_l4ilb_subsetting_config = null; - /** - * The desired datapath provider for the cluster. - * - * Generated from protobuf field .google.container.v1.DatapathProvider desired_datapath_provider = 50; - */ - protected $desired_datapath_provider = 0; - /** - * The desired state of IPv6 connectivity to Google Services. - * - * Generated from protobuf field .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; - */ - protected $desired_private_ipv6_google_access = 0; - /** - * The desired notification configuration. - * - * Generated from protobuf field .google.container.v1.NotificationConfig desired_notification_config = 55; - */ - protected $desired_notification_config = null; - /** - * The desired authenticator groups config for the cluster. - * - * Generated from protobuf field .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - */ - protected $desired_authenticator_groups_config = null; - /** - * The desired logging configuration. - * - * Generated from protobuf field .google.container.v1.LoggingConfig desired_logging_config = 64; - */ - protected $desired_logging_config = null; - /** - * The desired monitoring configuration. - * - * Generated from protobuf field .google.container.v1.MonitoringConfig desired_monitoring_config = 65; - */ - protected $desired_monitoring_config = null; - /** - * The desired Identity Service component configuration. - * - * Generated from protobuf field .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; - */ - protected $desired_identity_service_config = null; - /** - * ServiceExternalIPsConfig specifies the config for the use of Services with - * ExternalIPs field. - * - * Generated from protobuf field .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - */ - protected $desired_service_external_ips_config = null; - /** - * Enable/Disable private endpoint for the cluster's master. - * - * Generated from protobuf field optional bool desired_enable_private_endpoint = 71; - */ - protected $desired_enable_private_endpoint = null; - /** - * The Kubernetes version to change the master to. - * Users may specify either explicit versions offered by - * Kubernetes Engine or version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the default Kubernetes version - * - * Generated from protobuf field string desired_master_version = 100; - */ - protected $desired_master_version = ''; - /** - * The desired GCFS config for the cluster - * - * Generated from protobuf field .google.container.v1.GcfsConfig desired_gcfs_config = 109; - */ - protected $desired_gcfs_config = null; - /** - * The desired network tags that apply to all auto-provisioned node pools - * in autopilot clusters and node auto-provisioning enabled clusters. - * - * Generated from protobuf field .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; - */ - protected $desired_node_pool_auto_config_network_tags = null; - /** - * The desired config of Gateway API on this cluster. - * - * Generated from protobuf field .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; - */ - protected $desired_gateway_api_config = null; - /** - * The current etag of the cluster. - * If an etag is provided and does not match the current etag of the cluster, - * update will be blocked and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 115; - */ - protected $etag = ''; - /** - * The desired node pool logging configuration defaults for the cluster. - * - * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; - */ - protected $desired_node_pool_logging_config = null; - /** - * The desired stack type of the cluster. - * If a stack type is provided and does not match the current stack type of - * the cluster, update will attempt to change the stack type to the new type. - * - * Generated from protobuf field .google.container.v1.StackType desired_stack_type = 119; - */ - protected $desired_stack_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $desired_node_version - * The Kubernetes version to change the nodes to (typically an - * upgrade). - * Users may specify either explicit versions offered by - * Kubernetes Engine or version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the Kubernetes master version - * @type string $desired_monitoring_service - * The monitoring service the cluster should use to write metrics. - * Currently available options: - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * @type \Google\Cloud\Container\V1\AddonsConfig $desired_addons_config - * Configurations for the various addons available to run in the cluster. - * @type string $desired_node_pool_id - * The node pool to be upgraded. This field is mandatory if - * "desired_node_version", "desired_image_family" or - * "desired_node_pool_autoscaling" is specified and there is more than one - * node pool on the cluster. - * @type string $desired_image_type - * The desired image type for the node pool. - * NOTE: Set the "desired_node_pool" field as well. - * @type \Google\Cloud\Container\V1\DatabaseEncryption $desired_database_encryption - * Configuration of etcd encryption. - * @type \Google\Cloud\Container\V1\WorkloadIdentityConfig $desired_workload_identity_config - * Configuration for Workload Identity. - * @type \Google\Cloud\Container\V1\MeshCertificates $desired_mesh_certificates - * Configuration for issuance of mTLS keys and certificates to Kubernetes - * pods. - * @type \Google\Cloud\Container\V1\ShieldedNodes $desired_shielded_nodes - * Configuration for Shielded Nodes. - * @type \Google\Cloud\Container\V1\CostManagementConfig $desired_cost_management_config - * The desired configuration for the fine-grained cost management feature. - * @type \Google\Cloud\Container\V1\DNSConfig $desired_dns_config - * DNSConfig contains clusterDNS config for this cluster. - * @type \Google\Cloud\Container\V1\NodePoolAutoscaling $desired_node_pool_autoscaling - * Autoscaler configuration for the node pool specified in - * desired_node_pool_id. If there is only one pool in the - * cluster and desired_node_pool_id is not provided then - * the change applies to that single node pool. - * @type array|\Google\Protobuf\Internal\RepeatedField $desired_locations - * The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. - * This list must always include the cluster's primary zone. - * Warning: changing cluster locations will update the locations of all node - * pools and will result in nodes being added and/or removed. - * @type \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig $desired_master_authorized_networks_config - * The desired configuration options for master authorized networks feature. - * @type \Google\Cloud\Container\V1\ClusterAutoscaling $desired_cluster_autoscaling - * Cluster-level autoscaling configuration. - * @type \Google\Cloud\Container\V1\BinaryAuthorization $desired_binary_authorization - * The desired configuration options for the Binary Authorization feature. - * @type string $desired_logging_service - * The logging service the cluster should use to write logs. - * Currently available options: - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * @type \Google\Cloud\Container\V1\ResourceUsageExportConfig $desired_resource_usage_export_config - * The desired configuration for exporting resource usage. - * @type \Google\Cloud\Container\V1\VerticalPodAutoscaling $desired_vertical_pod_autoscaling - * Cluster-level Vertical Pod Autoscaling configuration. - * @type \Google\Cloud\Container\V1\PrivateClusterConfig $desired_private_cluster_config - * The desired private cluster configuration. - * @type \Google\Cloud\Container\V1\IntraNodeVisibilityConfig $desired_intra_node_visibility_config - * The desired config of Intra-node visibility. - * @type \Google\Cloud\Container\V1\DefaultSnatStatus $desired_default_snat_status - * The desired status of whether to disable default sNAT for this cluster. - * @type \Google\Cloud\Container\V1\ReleaseChannel $desired_release_channel - * The desired release channel configuration. - * @type \Google\Cloud\Container\V1\ILBSubsettingConfig $desired_l4ilb_subsetting_config - * The desired L4 Internal Load Balancer Subsetting configuration. - * @type int $desired_datapath_provider - * The desired datapath provider for the cluster. - * @type int $desired_private_ipv6_google_access - * The desired state of IPv6 connectivity to Google Services. - * @type \Google\Cloud\Container\V1\NotificationConfig $desired_notification_config - * The desired notification configuration. - * @type \Google\Cloud\Container\V1\AuthenticatorGroupsConfig $desired_authenticator_groups_config - * The desired authenticator groups config for the cluster. - * @type \Google\Cloud\Container\V1\LoggingConfig $desired_logging_config - * The desired logging configuration. - * @type \Google\Cloud\Container\V1\MonitoringConfig $desired_monitoring_config - * The desired monitoring configuration. - * @type \Google\Cloud\Container\V1\IdentityServiceConfig $desired_identity_service_config - * The desired Identity Service component configuration. - * @type \Google\Cloud\Container\V1\ServiceExternalIPsConfig $desired_service_external_ips_config - * ServiceExternalIPsConfig specifies the config for the use of Services with - * ExternalIPs field. - * @type bool $desired_enable_private_endpoint - * Enable/Disable private endpoint for the cluster's master. - * @type string $desired_master_version - * The Kubernetes version to change the master to. - * Users may specify either explicit versions offered by - * Kubernetes Engine or version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the default Kubernetes version - * @type \Google\Cloud\Container\V1\GcfsConfig $desired_gcfs_config - * The desired GCFS config for the cluster - * @type \Google\Cloud\Container\V1\NetworkTags $desired_node_pool_auto_config_network_tags - * The desired network tags that apply to all auto-provisioned node pools - * in autopilot clusters and node auto-provisioning enabled clusters. - * @type \Google\Cloud\Container\V1\GatewayAPIConfig $desired_gateway_api_config - * The desired config of Gateway API on this cluster. - * @type string $etag - * The current etag of the cluster. - * If an etag is provided and does not match the current etag of the cluster, - * update will be blocked and an ABORTED error will be returned. - * @type \Google\Cloud\Container\V1\NodePoolLoggingConfig $desired_node_pool_logging_config - * The desired node pool logging configuration defaults for the cluster. - * @type int $desired_stack_type - * The desired stack type of the cluster. - * If a stack type is provided and does not match the current stack type of - * the cluster, update will attempt to change the stack type to the new type. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The Kubernetes version to change the nodes to (typically an - * upgrade). - * Users may specify either explicit versions offered by - * Kubernetes Engine or version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the Kubernetes master version - * - * Generated from protobuf field string desired_node_version = 4; - * @return string - */ - public function getDesiredNodeVersion() - { - return $this->desired_node_version; - } - - /** - * The Kubernetes version to change the nodes to (typically an - * upgrade). - * Users may specify either explicit versions offered by - * Kubernetes Engine or version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the Kubernetes master version - * - * Generated from protobuf field string desired_node_version = 4; - * @param string $var - * @return $this - */ - public function setDesiredNodeVersion($var) - { - GPBUtil::checkString($var, True); - $this->desired_node_version = $var; - - return $this; - } - - /** - * The monitoring service the cluster should use to write metrics. - * Currently available options: - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * - * Generated from protobuf field string desired_monitoring_service = 5; - * @return string - */ - public function getDesiredMonitoringService() - { - return $this->desired_monitoring_service; - } - - /** - * The monitoring service the cluster should use to write metrics. - * Currently available options: - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * - * Generated from protobuf field string desired_monitoring_service = 5; - * @param string $var - * @return $this - */ - public function setDesiredMonitoringService($var) - { - GPBUtil::checkString($var, True); - $this->desired_monitoring_service = $var; - - return $this; - } - - /** - * Configurations for the various addons available to run in the cluster. - * - * Generated from protobuf field .google.container.v1.AddonsConfig desired_addons_config = 6; - * @return \Google\Cloud\Container\V1\AddonsConfig|null - */ - public function getDesiredAddonsConfig() - { - return $this->desired_addons_config; - } - - public function hasDesiredAddonsConfig() - { - return isset($this->desired_addons_config); - } - - public function clearDesiredAddonsConfig() - { - unset($this->desired_addons_config); - } - - /** - * Configurations for the various addons available to run in the cluster. - * - * Generated from protobuf field .google.container.v1.AddonsConfig desired_addons_config = 6; - * @param \Google\Cloud\Container\V1\AddonsConfig $var - * @return $this - */ - public function setDesiredAddonsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AddonsConfig::class); - $this->desired_addons_config = $var; - - return $this; - } - - /** - * The node pool to be upgraded. This field is mandatory if - * "desired_node_version", "desired_image_family" or - * "desired_node_pool_autoscaling" is specified and there is more than one - * node pool on the cluster. - * - * Generated from protobuf field string desired_node_pool_id = 7; - * @return string - */ - public function getDesiredNodePoolId() - { - return $this->desired_node_pool_id; - } - - /** - * The node pool to be upgraded. This field is mandatory if - * "desired_node_version", "desired_image_family" or - * "desired_node_pool_autoscaling" is specified and there is more than one - * node pool on the cluster. - * - * Generated from protobuf field string desired_node_pool_id = 7; - * @param string $var - * @return $this - */ - public function setDesiredNodePoolId($var) - { - GPBUtil::checkString($var, True); - $this->desired_node_pool_id = $var; - - return $this; - } - - /** - * The desired image type for the node pool. - * NOTE: Set the "desired_node_pool" field as well. - * - * Generated from protobuf field string desired_image_type = 8; - * @return string - */ - public function getDesiredImageType() - { - return $this->desired_image_type; - } - - /** - * The desired image type for the node pool. - * NOTE: Set the "desired_node_pool" field as well. - * - * Generated from protobuf field string desired_image_type = 8; - * @param string $var - * @return $this - */ - public function setDesiredImageType($var) - { - GPBUtil::checkString($var, True); - $this->desired_image_type = $var; - - return $this; - } - - /** - * Configuration of etcd encryption. - * - * Generated from protobuf field .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - * @return \Google\Cloud\Container\V1\DatabaseEncryption|null - */ - public function getDesiredDatabaseEncryption() - { - return $this->desired_database_encryption; - } - - public function hasDesiredDatabaseEncryption() - { - return isset($this->desired_database_encryption); - } - - public function clearDesiredDatabaseEncryption() - { - unset($this->desired_database_encryption); - } - - /** - * Configuration of etcd encryption. - * - * Generated from protobuf field .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - * @param \Google\Cloud\Container\V1\DatabaseEncryption $var - * @return $this - */ - public function setDesiredDatabaseEncryption($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\DatabaseEncryption::class); - $this->desired_database_encryption = $var; - - return $this; - } - - /** - * Configuration for Workload Identity. - * - * Generated from protobuf field .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * @return \Google\Cloud\Container\V1\WorkloadIdentityConfig|null - */ - public function getDesiredWorkloadIdentityConfig() - { - return $this->desired_workload_identity_config; - } - - public function hasDesiredWorkloadIdentityConfig() - { - return isset($this->desired_workload_identity_config); - } - - public function clearDesiredWorkloadIdentityConfig() - { - unset($this->desired_workload_identity_config); - } - - /** - * Configuration for Workload Identity. - * - * Generated from protobuf field .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * @param \Google\Cloud\Container\V1\WorkloadIdentityConfig $var - * @return $this - */ - public function setDesiredWorkloadIdentityConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\WorkloadIdentityConfig::class); - $this->desired_workload_identity_config = $var; - - return $this; - } - - /** - * Configuration for issuance of mTLS keys and certificates to Kubernetes - * pods. - * - * Generated from protobuf field .google.container.v1.MeshCertificates desired_mesh_certificates = 67; - * @return \Google\Cloud\Container\V1\MeshCertificates|null - */ - public function getDesiredMeshCertificates() - { - return $this->desired_mesh_certificates; - } - - public function hasDesiredMeshCertificates() - { - return isset($this->desired_mesh_certificates); - } - - public function clearDesiredMeshCertificates() - { - unset($this->desired_mesh_certificates); - } - - /** - * Configuration for issuance of mTLS keys and certificates to Kubernetes - * pods. - * - * Generated from protobuf field .google.container.v1.MeshCertificates desired_mesh_certificates = 67; - * @param \Google\Cloud\Container\V1\MeshCertificates $var - * @return $this - */ - public function setDesiredMeshCertificates($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MeshCertificates::class); - $this->desired_mesh_certificates = $var; - - return $this; - } - - /** - * Configuration for Shielded Nodes. - * - * Generated from protobuf field .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - * @return \Google\Cloud\Container\V1\ShieldedNodes|null - */ - public function getDesiredShieldedNodes() - { - return $this->desired_shielded_nodes; - } - - public function hasDesiredShieldedNodes() - { - return isset($this->desired_shielded_nodes); - } - - public function clearDesiredShieldedNodes() - { - unset($this->desired_shielded_nodes); - } - - /** - * Configuration for Shielded Nodes. - * - * Generated from protobuf field .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - * @param \Google\Cloud\Container\V1\ShieldedNodes $var - * @return $this - */ - public function setDesiredShieldedNodes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ShieldedNodes::class); - $this->desired_shielded_nodes = $var; - - return $this; - } - - /** - * The desired configuration for the fine-grained cost management feature. - * - * Generated from protobuf field .google.container.v1.CostManagementConfig desired_cost_management_config = 49; - * @return \Google\Cloud\Container\V1\CostManagementConfig|null - */ - public function getDesiredCostManagementConfig() - { - return $this->desired_cost_management_config; - } - - public function hasDesiredCostManagementConfig() - { - return isset($this->desired_cost_management_config); - } - - public function clearDesiredCostManagementConfig() - { - unset($this->desired_cost_management_config); - } - - /** - * The desired configuration for the fine-grained cost management feature. - * - * Generated from protobuf field .google.container.v1.CostManagementConfig desired_cost_management_config = 49; - * @param \Google\Cloud\Container\V1\CostManagementConfig $var - * @return $this - */ - public function setDesiredCostManagementConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\CostManagementConfig::class); - $this->desired_cost_management_config = $var; - - return $this; - } - - /** - * DNSConfig contains clusterDNS config for this cluster. - * - * Generated from protobuf field .google.container.v1.DNSConfig desired_dns_config = 53; - * @return \Google\Cloud\Container\V1\DNSConfig|null - */ - public function getDesiredDnsConfig() - { - return $this->desired_dns_config; - } - - public function hasDesiredDnsConfig() - { - return isset($this->desired_dns_config); - } - - public function clearDesiredDnsConfig() - { - unset($this->desired_dns_config); - } - - /** - * DNSConfig contains clusterDNS config for this cluster. - * - * Generated from protobuf field .google.container.v1.DNSConfig desired_dns_config = 53; - * @param \Google\Cloud\Container\V1\DNSConfig $var - * @return $this - */ - public function setDesiredDnsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\DNSConfig::class); - $this->desired_dns_config = $var; - - return $this; - } - - /** - * Autoscaler configuration for the node pool specified in - * desired_node_pool_id. If there is only one pool in the - * cluster and desired_node_pool_id is not provided then - * the change applies to that single node pool. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - * @return \Google\Cloud\Container\V1\NodePoolAutoscaling|null - */ - public function getDesiredNodePoolAutoscaling() - { - return $this->desired_node_pool_autoscaling; - } - - public function hasDesiredNodePoolAutoscaling() - { - return isset($this->desired_node_pool_autoscaling); - } - - public function clearDesiredNodePoolAutoscaling() - { - unset($this->desired_node_pool_autoscaling); - } - - /** - * Autoscaler configuration for the node pool specified in - * desired_node_pool_id. If there is only one pool in the - * cluster and desired_node_pool_id is not provided then - * the change applies to that single node pool. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - * @param \Google\Cloud\Container\V1\NodePoolAutoscaling $var - * @return $this - */ - public function setDesiredNodePoolAutoscaling($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolAutoscaling::class); - $this->desired_node_pool_autoscaling = $var; - - return $this; - } - - /** - * The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. - * This list must always include the cluster's primary zone. - * Warning: changing cluster locations will update the locations of all node - * pools and will result in nodes being added and/or removed. - * - * Generated from protobuf field repeated string desired_locations = 10; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDesiredLocations() - { - return $this->desired_locations; - } - - /** - * The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. - * This list must always include the cluster's primary zone. - * Warning: changing cluster locations will update the locations of all node - * pools and will result in nodes being added and/or removed. - * - * Generated from protobuf field repeated string desired_locations = 10; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDesiredLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->desired_locations = $arr; - - return $this; - } - - /** - * The desired configuration options for master authorized networks feature. - * - * Generated from protobuf field .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * @return \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig|null - */ - public function getDesiredMasterAuthorizedNetworksConfig() - { - return $this->desired_master_authorized_networks_config; - } - - public function hasDesiredMasterAuthorizedNetworksConfig() - { - return isset($this->desired_master_authorized_networks_config); - } - - public function clearDesiredMasterAuthorizedNetworksConfig() - { - unset($this->desired_master_authorized_networks_config); - } - - /** - * The desired configuration options for master authorized networks feature. - * - * Generated from protobuf field .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * @param \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig $var - * @return $this - */ - public function setDesiredMasterAuthorizedNetworksConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig::class); - $this->desired_master_authorized_networks_config = $var; - - return $this; - } - - /** - * Cluster-level autoscaling configuration. - * - * Generated from protobuf field .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - * @return \Google\Cloud\Container\V1\ClusterAutoscaling|null - */ - public function getDesiredClusterAutoscaling() - { - return $this->desired_cluster_autoscaling; - } - - public function hasDesiredClusterAutoscaling() - { - return isset($this->desired_cluster_autoscaling); - } - - public function clearDesiredClusterAutoscaling() - { - unset($this->desired_cluster_autoscaling); - } - - /** - * Cluster-level autoscaling configuration. - * - * Generated from protobuf field .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - * @param \Google\Cloud\Container\V1\ClusterAutoscaling $var - * @return $this - */ - public function setDesiredClusterAutoscaling($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ClusterAutoscaling::class); - $this->desired_cluster_autoscaling = $var; - - return $this; - } - - /** - * The desired configuration options for the Binary Authorization feature. - * - * Generated from protobuf field .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; - * @return \Google\Cloud\Container\V1\BinaryAuthorization|null - */ - public function getDesiredBinaryAuthorization() - { - return $this->desired_binary_authorization; - } - - public function hasDesiredBinaryAuthorization() - { - return isset($this->desired_binary_authorization); - } - - public function clearDesiredBinaryAuthorization() - { - unset($this->desired_binary_authorization); - } - - /** - * The desired configuration options for the Binary Authorization feature. - * - * Generated from protobuf field .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; - * @param \Google\Cloud\Container\V1\BinaryAuthorization $var - * @return $this - */ - public function setDesiredBinaryAuthorization($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\BinaryAuthorization::class); - $this->desired_binary_authorization = $var; - - return $this; - } - - /** - * The logging service the cluster should use to write logs. - * Currently available options: - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * - * Generated from protobuf field string desired_logging_service = 19; - * @return string - */ - public function getDesiredLoggingService() - { - return $this->desired_logging_service; - } - - /** - * The logging service the cluster should use to write logs. - * Currently available options: - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * - * Generated from protobuf field string desired_logging_service = 19; - * @param string $var - * @return $this - */ - public function setDesiredLoggingService($var) - { - GPBUtil::checkString($var, True); - $this->desired_logging_service = $var; - - return $this; - } - - /** - * The desired configuration for exporting resource usage. - * - * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * @return \Google\Cloud\Container\V1\ResourceUsageExportConfig|null - */ - public function getDesiredResourceUsageExportConfig() - { - return $this->desired_resource_usage_export_config; - } - - public function hasDesiredResourceUsageExportConfig() - { - return isset($this->desired_resource_usage_export_config); - } - - public function clearDesiredResourceUsageExportConfig() - { - unset($this->desired_resource_usage_export_config); - } - - /** - * The desired configuration for exporting resource usage. - * - * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * @param \Google\Cloud\Container\V1\ResourceUsageExportConfig $var - * @return $this - */ - public function setDesiredResourceUsageExportConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ResourceUsageExportConfig::class); - $this->desired_resource_usage_export_config = $var; - - return $this; - } - - /** - * Cluster-level Vertical Pod Autoscaling configuration. - * - * Generated from protobuf field .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - * @return \Google\Cloud\Container\V1\VerticalPodAutoscaling|null - */ - public function getDesiredVerticalPodAutoscaling() - { - return $this->desired_vertical_pod_autoscaling; - } - - public function hasDesiredVerticalPodAutoscaling() - { - return isset($this->desired_vertical_pod_autoscaling); - } - - public function clearDesiredVerticalPodAutoscaling() - { - unset($this->desired_vertical_pod_autoscaling); - } - - /** - * Cluster-level Vertical Pod Autoscaling configuration. - * - * Generated from protobuf field .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - * @param \Google\Cloud\Container\V1\VerticalPodAutoscaling $var - * @return $this - */ - public function setDesiredVerticalPodAutoscaling($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\VerticalPodAutoscaling::class); - $this->desired_vertical_pod_autoscaling = $var; - - return $this; - } - - /** - * The desired private cluster configuration. - * - * Generated from protobuf field .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - * @return \Google\Cloud\Container\V1\PrivateClusterConfig|null - */ - public function getDesiredPrivateClusterConfig() - { - return $this->desired_private_cluster_config; - } - - public function hasDesiredPrivateClusterConfig() - { - return isset($this->desired_private_cluster_config); - } - - public function clearDesiredPrivateClusterConfig() - { - unset($this->desired_private_cluster_config); - } - - /** - * The desired private cluster configuration. - * - * Generated from protobuf field .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - * @param \Google\Cloud\Container\V1\PrivateClusterConfig $var - * @return $this - */ - public function setDesiredPrivateClusterConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\PrivateClusterConfig::class); - $this->desired_private_cluster_config = $var; - - return $this; - } - - /** - * The desired config of Intra-node visibility. - * - * Generated from protobuf field .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * @return \Google\Cloud\Container\V1\IntraNodeVisibilityConfig|null - */ - public function getDesiredIntraNodeVisibilityConfig() - { - return $this->desired_intra_node_visibility_config; - } - - public function hasDesiredIntraNodeVisibilityConfig() - { - return isset($this->desired_intra_node_visibility_config); - } - - public function clearDesiredIntraNodeVisibilityConfig() - { - unset($this->desired_intra_node_visibility_config); - } - - /** - * The desired config of Intra-node visibility. - * - * Generated from protobuf field .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * @param \Google\Cloud\Container\V1\IntraNodeVisibilityConfig $var - * @return $this - */ - public function setDesiredIntraNodeVisibilityConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\IntraNodeVisibilityConfig::class); - $this->desired_intra_node_visibility_config = $var; - - return $this; - } - - /** - * The desired status of whether to disable default sNAT for this cluster. - * - * Generated from protobuf field .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - * @return \Google\Cloud\Container\V1\DefaultSnatStatus|null - */ - public function getDesiredDefaultSnatStatus() - { - return $this->desired_default_snat_status; - } - - public function hasDesiredDefaultSnatStatus() - { - return isset($this->desired_default_snat_status); - } - - public function clearDesiredDefaultSnatStatus() - { - unset($this->desired_default_snat_status); - } - - /** - * The desired status of whether to disable default sNAT for this cluster. - * - * Generated from protobuf field .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - * @param \Google\Cloud\Container\V1\DefaultSnatStatus $var - * @return $this - */ - public function setDesiredDefaultSnatStatus($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\DefaultSnatStatus::class); - $this->desired_default_snat_status = $var; - - return $this; - } - - /** - * The desired release channel configuration. - * - * Generated from protobuf field .google.container.v1.ReleaseChannel desired_release_channel = 31; - * @return \Google\Cloud\Container\V1\ReleaseChannel|null - */ - public function getDesiredReleaseChannel() - { - return $this->desired_release_channel; - } - - public function hasDesiredReleaseChannel() - { - return isset($this->desired_release_channel); - } - - public function clearDesiredReleaseChannel() - { - unset($this->desired_release_channel); - } - - /** - * The desired release channel configuration. - * - * Generated from protobuf field .google.container.v1.ReleaseChannel desired_release_channel = 31; - * @param \Google\Cloud\Container\V1\ReleaseChannel $var - * @return $this - */ - public function setDesiredReleaseChannel($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ReleaseChannel::class); - $this->desired_release_channel = $var; - - return $this; - } - - /** - * The desired L4 Internal Load Balancer Subsetting configuration. - * - * Generated from protobuf field .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - * @return \Google\Cloud\Container\V1\ILBSubsettingConfig|null - */ - public function getDesiredL4IlbSubsettingConfig() - { - return $this->desired_l4ilb_subsetting_config; - } - - public function hasDesiredL4IlbSubsettingConfig() - { - return isset($this->desired_l4ilb_subsetting_config); - } - - public function clearDesiredL4IlbSubsettingConfig() - { - unset($this->desired_l4ilb_subsetting_config); - } - - /** - * The desired L4 Internal Load Balancer Subsetting configuration. - * - * Generated from protobuf field .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - * @param \Google\Cloud\Container\V1\ILBSubsettingConfig $var - * @return $this - */ - public function setDesiredL4IlbSubsettingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ILBSubsettingConfig::class); - $this->desired_l4ilb_subsetting_config = $var; - - return $this; - } - - /** - * The desired datapath provider for the cluster. - * - * Generated from protobuf field .google.container.v1.DatapathProvider desired_datapath_provider = 50; - * @return int - */ - public function getDesiredDatapathProvider() - { - return $this->desired_datapath_provider; - } - - /** - * The desired datapath provider for the cluster. - * - * Generated from protobuf field .google.container.v1.DatapathProvider desired_datapath_provider = 50; - * @param int $var - * @return $this - */ - public function setDesiredDatapathProvider($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\DatapathProvider::class); - $this->desired_datapath_provider = $var; - - return $this; - } - - /** - * The desired state of IPv6 connectivity to Google Services. - * - * Generated from protobuf field .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; - * @return int - */ - public function getDesiredPrivateIpv6GoogleAccess() - { - return $this->desired_private_ipv6_google_access; - } - - /** - * The desired state of IPv6 connectivity to Google Services. - * - * Generated from protobuf field .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; - * @param int $var - * @return $this - */ - public function setDesiredPrivateIpv6GoogleAccess($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\PrivateIPv6GoogleAccess::class); - $this->desired_private_ipv6_google_access = $var; - - return $this; - } - - /** - * The desired notification configuration. - * - * Generated from protobuf field .google.container.v1.NotificationConfig desired_notification_config = 55; - * @return \Google\Cloud\Container\V1\NotificationConfig|null - */ - public function getDesiredNotificationConfig() - { - return $this->desired_notification_config; - } - - public function hasDesiredNotificationConfig() - { - return isset($this->desired_notification_config); - } - - public function clearDesiredNotificationConfig() - { - unset($this->desired_notification_config); - } - - /** - * The desired notification configuration. - * - * Generated from protobuf field .google.container.v1.NotificationConfig desired_notification_config = 55; - * @param \Google\Cloud\Container\V1\NotificationConfig $var - * @return $this - */ - public function setDesiredNotificationConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NotificationConfig::class); - $this->desired_notification_config = $var; - - return $this; - } - - /** - * The desired authenticator groups config for the cluster. - * - * Generated from protobuf field .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * @return \Google\Cloud\Container\V1\AuthenticatorGroupsConfig|null - */ - public function getDesiredAuthenticatorGroupsConfig() - { - return $this->desired_authenticator_groups_config; - } - - public function hasDesiredAuthenticatorGroupsConfig() - { - return isset($this->desired_authenticator_groups_config); - } - - public function clearDesiredAuthenticatorGroupsConfig() - { - unset($this->desired_authenticator_groups_config); - } - - /** - * The desired authenticator groups config for the cluster. - * - * Generated from protobuf field .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * @param \Google\Cloud\Container\V1\AuthenticatorGroupsConfig $var - * @return $this - */ - public function setDesiredAuthenticatorGroupsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AuthenticatorGroupsConfig::class); - $this->desired_authenticator_groups_config = $var; - - return $this; - } - - /** - * The desired logging configuration. - * - * Generated from protobuf field .google.container.v1.LoggingConfig desired_logging_config = 64; - * @return \Google\Cloud\Container\V1\LoggingConfig|null - */ - public function getDesiredLoggingConfig() - { - return $this->desired_logging_config; - } - - public function hasDesiredLoggingConfig() - { - return isset($this->desired_logging_config); - } - - public function clearDesiredLoggingConfig() - { - unset($this->desired_logging_config); - } - - /** - * The desired logging configuration. - * - * Generated from protobuf field .google.container.v1.LoggingConfig desired_logging_config = 64; - * @param \Google\Cloud\Container\V1\LoggingConfig $var - * @return $this - */ - public function setDesiredLoggingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LoggingConfig::class); - $this->desired_logging_config = $var; - - return $this; - } - - /** - * The desired monitoring configuration. - * - * Generated from protobuf field .google.container.v1.MonitoringConfig desired_monitoring_config = 65; - * @return \Google\Cloud\Container\V1\MonitoringConfig|null - */ - public function getDesiredMonitoringConfig() - { - return $this->desired_monitoring_config; - } - - public function hasDesiredMonitoringConfig() - { - return isset($this->desired_monitoring_config); - } - - public function clearDesiredMonitoringConfig() - { - unset($this->desired_monitoring_config); - } - - /** - * The desired monitoring configuration. - * - * Generated from protobuf field .google.container.v1.MonitoringConfig desired_monitoring_config = 65; - * @param \Google\Cloud\Container\V1\MonitoringConfig $var - * @return $this - */ - public function setDesiredMonitoringConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MonitoringConfig::class); - $this->desired_monitoring_config = $var; - - return $this; - } - - /** - * The desired Identity Service component configuration. - * - * Generated from protobuf field .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; - * @return \Google\Cloud\Container\V1\IdentityServiceConfig|null - */ - public function getDesiredIdentityServiceConfig() - { - return $this->desired_identity_service_config; - } - - public function hasDesiredIdentityServiceConfig() - { - return isset($this->desired_identity_service_config); - } - - public function clearDesiredIdentityServiceConfig() - { - unset($this->desired_identity_service_config); - } - - /** - * The desired Identity Service component configuration. - * - * Generated from protobuf field .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; - * @param \Google\Cloud\Container\V1\IdentityServiceConfig $var - * @return $this - */ - public function setDesiredIdentityServiceConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\IdentityServiceConfig::class); - $this->desired_identity_service_config = $var; - - return $this; - } - - /** - * ServiceExternalIPsConfig specifies the config for the use of Services with - * ExternalIPs field. - * - * Generated from protobuf field .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - * @return \Google\Cloud\Container\V1\ServiceExternalIPsConfig|null - */ - public function getDesiredServiceExternalIpsConfig() - { - return $this->desired_service_external_ips_config; - } - - public function hasDesiredServiceExternalIpsConfig() - { - return isset($this->desired_service_external_ips_config); - } - - public function clearDesiredServiceExternalIpsConfig() - { - unset($this->desired_service_external_ips_config); - } - - /** - * ServiceExternalIPsConfig specifies the config for the use of Services with - * ExternalIPs field. - * - * Generated from protobuf field .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - * @param \Google\Cloud\Container\V1\ServiceExternalIPsConfig $var - * @return $this - */ - public function setDesiredServiceExternalIpsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ServiceExternalIPsConfig::class); - $this->desired_service_external_ips_config = $var; - - return $this; - } - - /** - * Enable/Disable private endpoint for the cluster's master. - * - * Generated from protobuf field optional bool desired_enable_private_endpoint = 71; - * @return bool - */ - public function getDesiredEnablePrivateEndpoint() - { - return isset($this->desired_enable_private_endpoint) ? $this->desired_enable_private_endpoint : false; - } - - public function hasDesiredEnablePrivateEndpoint() - { - return isset($this->desired_enable_private_endpoint); - } - - public function clearDesiredEnablePrivateEndpoint() - { - unset($this->desired_enable_private_endpoint); - } - - /** - * Enable/Disable private endpoint for the cluster's master. - * - * Generated from protobuf field optional bool desired_enable_private_endpoint = 71; - * @param bool $var - * @return $this - */ - public function setDesiredEnablePrivateEndpoint($var) - { - GPBUtil::checkBool($var); - $this->desired_enable_private_endpoint = $var; - - return $this; - } - - /** - * The Kubernetes version to change the master to. - * Users may specify either explicit versions offered by - * Kubernetes Engine or version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the default Kubernetes version - * - * Generated from protobuf field string desired_master_version = 100; - * @return string - */ - public function getDesiredMasterVersion() - { - return $this->desired_master_version; - } - - /** - * The Kubernetes version to change the master to. - * Users may specify either explicit versions offered by - * Kubernetes Engine or version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the default Kubernetes version - * - * Generated from protobuf field string desired_master_version = 100; - * @param string $var - * @return $this - */ - public function setDesiredMasterVersion($var) - { - GPBUtil::checkString($var, True); - $this->desired_master_version = $var; - - return $this; - } - - /** - * The desired GCFS config for the cluster - * - * Generated from protobuf field .google.container.v1.GcfsConfig desired_gcfs_config = 109; - * @return \Google\Cloud\Container\V1\GcfsConfig|null - */ - public function getDesiredGcfsConfig() - { - return $this->desired_gcfs_config; - } - - public function hasDesiredGcfsConfig() - { - return isset($this->desired_gcfs_config); - } - - public function clearDesiredGcfsConfig() - { - unset($this->desired_gcfs_config); - } - - /** - * The desired GCFS config for the cluster - * - * Generated from protobuf field .google.container.v1.GcfsConfig desired_gcfs_config = 109; - * @param \Google\Cloud\Container\V1\GcfsConfig $var - * @return $this - */ - public function setDesiredGcfsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GcfsConfig::class); - $this->desired_gcfs_config = $var; - - return $this; - } - - /** - * The desired network tags that apply to all auto-provisioned node pools - * in autopilot clusters and node auto-provisioning enabled clusters. - * - * Generated from protobuf field .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; - * @return \Google\Cloud\Container\V1\NetworkTags|null - */ - public function getDesiredNodePoolAutoConfigNetworkTags() - { - return $this->desired_node_pool_auto_config_network_tags; - } - - public function hasDesiredNodePoolAutoConfigNetworkTags() - { - return isset($this->desired_node_pool_auto_config_network_tags); - } - - public function clearDesiredNodePoolAutoConfigNetworkTags() - { - unset($this->desired_node_pool_auto_config_network_tags); - } - - /** - * The desired network tags that apply to all auto-provisioned node pools - * in autopilot clusters and node auto-provisioning enabled clusters. - * - * Generated from protobuf field .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; - * @param \Google\Cloud\Container\V1\NetworkTags $var - * @return $this - */ - public function setDesiredNodePoolAutoConfigNetworkTags($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkTags::class); - $this->desired_node_pool_auto_config_network_tags = $var; - - return $this; - } - - /** - * The desired config of Gateway API on this cluster. - * - * Generated from protobuf field .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; - * @return \Google\Cloud\Container\V1\GatewayAPIConfig|null - */ - public function getDesiredGatewayApiConfig() - { - return $this->desired_gateway_api_config; - } - - public function hasDesiredGatewayApiConfig() - { - return isset($this->desired_gateway_api_config); - } - - public function clearDesiredGatewayApiConfig() - { - unset($this->desired_gateway_api_config); - } - - /** - * The desired config of Gateway API on this cluster. - * - * Generated from protobuf field .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; - * @param \Google\Cloud\Container\V1\GatewayAPIConfig $var - * @return $this - */ - public function setDesiredGatewayApiConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GatewayAPIConfig::class); - $this->desired_gateway_api_config = $var; - - return $this; - } - - /** - * The current etag of the cluster. - * If an etag is provided and does not match the current etag of the cluster, - * update will be blocked and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 115; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * The current etag of the cluster. - * If an etag is provided and does not match the current etag of the cluster, - * update will be blocked and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 115; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * The desired node pool logging configuration defaults for the cluster. - * - * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; - * @return \Google\Cloud\Container\V1\NodePoolLoggingConfig|null - */ - public function getDesiredNodePoolLoggingConfig() - { - return $this->desired_node_pool_logging_config; - } - - public function hasDesiredNodePoolLoggingConfig() - { - return isset($this->desired_node_pool_logging_config); - } - - public function clearDesiredNodePoolLoggingConfig() - { - unset($this->desired_node_pool_logging_config); - } - - /** - * The desired node pool logging configuration defaults for the cluster. - * - * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; - * @param \Google\Cloud\Container\V1\NodePoolLoggingConfig $var - * @return $this - */ - public function setDesiredNodePoolLoggingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolLoggingConfig::class); - $this->desired_node_pool_logging_config = $var; - - return $this; - } - - /** - * The desired stack type of the cluster. - * If a stack type is provided and does not match the current stack type of - * the cluster, update will attempt to change the stack type to the new type. - * - * Generated from protobuf field .google.container.v1.StackType desired_stack_type = 119; - * @return int - */ - public function getDesiredStackType() - { - return $this->desired_stack_type; - } - - /** - * The desired stack type of the cluster. - * If a stack type is provided and does not match the current stack type of - * the cluster, update will attempt to change the stack type to the new type. - * - * Generated from protobuf field .google.container.v1.StackType desired_stack_type = 119; - * @param int $var - * @return $this - */ - public function setDesiredStackType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\StackType::class); - $this->desired_stack_type = $var; - - return $this; - } - -} - 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://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * The name (project, location, cluster name) of the cluster to complete IP - * rotation. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 7; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster name) of the cluster to complete IP - * rotation. Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * The name (project, location, cluster name) of the cluster to complete IP - * rotation. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 7; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster name) of the cluster to complete IP - * rotation. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 7; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompleteNodePoolUpgradeRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompleteNodePoolUpgradeRequest.php deleted file mode 100644 index b14c8d08063e..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompleteNodePoolUpgradeRequest.php +++ /dev/null @@ -1,76 +0,0 @@ -google.container.v1.CompleteNodePoolUpgradeRequest - */ -class CompleteNodePoolUpgradeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The name (project, location, cluster, node pool id) of the node pool to - * complete upgrade. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name (project, location, cluster, node pool id) of the node pool to - * complete upgrade. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The name (project, location, cluster, node pool id) of the node pool to - * complete upgrade. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster, node pool id) of the node pool to - * complete upgrade. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfidentialNodes.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfidentialNodes.php deleted file mode 100644 index a7d3cd2c9116..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfidentialNodes.php +++ /dev/null @@ -1,68 +0,0 @@ -google.container.v1.ConfidentialNodes - */ -class ConfidentialNodes extends \Google\Protobuf\Internal\Message -{ - /** - * Whether Confidential Nodes feature is enabled. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether Confidential Nodes feature is enabled. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether Confidential Nodes feature is enabled. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether Confidential Nodes feature is enabled. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfigConnectorConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfigConnectorConfig.php deleted file mode 100644 index 936f2cdd1d89..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfigConnectorConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.ConfigConnectorConfig - */ -class ConfigConnectorConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether Cloud Connector is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether Cloud Connector is enabled for this cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether Cloud Connector is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether Cloud Connector is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CostManagementConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CostManagementConfig.php deleted file mode 100644 index 5b896434bf8e..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CostManagementConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.CostManagementConfig - */ -class CostManagementConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether the feature is enabled or not. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether the feature is enabled or not. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether the feature is enabled or not. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether the feature is enabled or not. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateClusterRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateClusterRequest.php deleted file mode 100644 index ecaff57e2d47..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://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Required. A [cluster - * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) - * - * Generated from protobuf field .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $cluster = null; - /** - * The parent (project and location) where the cluster will be created. - * Specified in the format `projects/*/locations/*`. - * - * Generated from protobuf field string parent = 5; - */ - protected $parent = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * @type \Google\Cloud\Container\V1\Cluster $cluster - * Required. A [cluster - * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) - * @type string $parent - * The parent (project and location) where the cluster will be created. - * Specified in the format `projects/*/locations/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Required. A [cluster - * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) - * - * Generated from protobuf field .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Container\V1\Cluster|null - */ - public function getCluster() - { - return $this->cluster; - } - - public function hasCluster() - { - return isset($this->cluster); - } - - public function clearCluster() - { - unset($this->cluster); - } - - /** - * Required. A [cluster - * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) - * - * Generated from protobuf field .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Container\V1\Cluster $var - * @return $this - */ - public function setCluster($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\Cluster::class); - $this->cluster = $var; - - return $this; - } - - /** - * The parent (project and location) where the cluster will be created. - * Specified in the format `projects/*/locations/*`. - * - * Generated from protobuf field string parent = 5; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The parent (project and location) where the cluster will be created. - * Specified in the format `projects/*/locations/*`. - * - * Generated from protobuf field string parent = 5; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateNodePoolRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateNodePoolRequest.php deleted file mode 100644 index 8a0d8dde39fd..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://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Required. The node pool to create. - * - * Generated from protobuf field .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $node_pool = null; - /** - * The parent (project, location, cluster name) where the node pool will be - * created. Specified in the format - * `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string parent = 6; - */ - protected $parent = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the parent field. - * @type \Google\Cloud\Container\V1\NodePool $node_pool - * Required. The node pool to create. - * @type string $parent - * The parent (project, location, cluster name) where the node pool will be - * created. Specified in the format - * `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. The node pool to create. - * - * Generated from protobuf field .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Container\V1\NodePool|null - */ - public function getNodePool() - { - return $this->node_pool; - } - - public function hasNodePool() - { - return isset($this->node_pool); - } - - public function clearNodePool() - { - unset($this->node_pool); - } - - /** - * Required. The node pool to create. - * - * Generated from protobuf field .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Container\V1\NodePool $var - * @return $this - */ - public function setNodePool($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool::class); - $this->node_pool = $var; - - return $this; - } - - /** - * The parent (project, location, cluster name) where the node pool will be - * created. Specified in the format - * `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string parent = 6; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The parent (project, location, cluster name) where the node pool will be - * created. Specified in the format - * `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string parent = 6; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig.php deleted file mode 100644 index a1c6338f5310..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig.php +++ /dev/null @@ -1,135 +0,0 @@ -google.container.v1.DNSConfig - */ -class DNSConfig extends \Google\Protobuf\Internal\Message -{ - /** - * cluster_dns indicates which in-cluster DNS provider should be used. - * - * Generated from protobuf field .google.container.v1.DNSConfig.Provider cluster_dns = 1; - */ - protected $cluster_dns = 0; - /** - * cluster_dns_scope indicates the scope of access to cluster DNS records. - * - * Generated from protobuf field .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; - */ - protected $cluster_dns_scope = 0; - /** - * cluster_dns_domain is the suffix used for all cluster service records. - * - * Generated from protobuf field string cluster_dns_domain = 3; - */ - protected $cluster_dns_domain = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $cluster_dns - * cluster_dns indicates which in-cluster DNS provider should be used. - * @type int $cluster_dns_scope - * cluster_dns_scope indicates the scope of access to cluster DNS records. - * @type string $cluster_dns_domain - * cluster_dns_domain is the suffix used for all cluster service records. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * cluster_dns indicates which in-cluster DNS provider should be used. - * - * Generated from protobuf field .google.container.v1.DNSConfig.Provider cluster_dns = 1; - * @return int - */ - public function getClusterDns() - { - return $this->cluster_dns; - } - - /** - * cluster_dns indicates which in-cluster DNS provider should be used. - * - * Generated from protobuf field .google.container.v1.DNSConfig.Provider cluster_dns = 1; - * @param int $var - * @return $this - */ - public function setClusterDns($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\DNSConfig\Provider::class); - $this->cluster_dns = $var; - - return $this; - } - - /** - * cluster_dns_scope indicates the scope of access to cluster DNS records. - * - * Generated from protobuf field .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; - * @return int - */ - public function getClusterDnsScope() - { - return $this->cluster_dns_scope; - } - - /** - * cluster_dns_scope indicates the scope of access to cluster DNS records. - * - * Generated from protobuf field .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; - * @param int $var - * @return $this - */ - public function setClusterDnsScope($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\DNSConfig\DNSScope::class); - $this->cluster_dns_scope = $var; - - return $this; - } - - /** - * cluster_dns_domain is the suffix used for all cluster service records. - * - * Generated from protobuf field string cluster_dns_domain = 3; - * @return string - */ - public function getClusterDnsDomain() - { - return $this->cluster_dns_domain; - } - - /** - * cluster_dns_domain is the suffix used for all cluster service records. - * - * Generated from protobuf field string cluster_dns_domain = 3; - * @param string $var - * @return $this - */ - public function setClusterDnsDomain($var) - { - GPBUtil::checkString($var, True); - $this->cluster_dns_domain = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/DNSScope.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/DNSScope.php deleted file mode 100644 index deaedc169384..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/DNSScope.php +++ /dev/null @@ -1,64 +0,0 @@ -google.container.v1.DNSConfig.DNSScope - */ -class DNSScope -{ - /** - * Default value, will be inferred as cluster scope. - * - * Generated from protobuf enum DNS_SCOPE_UNSPECIFIED = 0; - */ - const DNS_SCOPE_UNSPECIFIED = 0; - /** - * DNS records are accessible from within the cluster. - * - * Generated from protobuf enum CLUSTER_SCOPE = 1; - */ - const CLUSTER_SCOPE = 1; - /** - * DNS records are accessible from within the VPC. - * - * Generated from protobuf enum VPC_SCOPE = 2; - */ - const VPC_SCOPE = 2; - - private static $valueToName = [ - self::DNS_SCOPE_UNSPECIFIED => 'DNS_SCOPE_UNSPECIFIED', - self::CLUSTER_SCOPE => 'CLUSTER_SCOPE', - self::VPC_SCOPE => 'VPC_SCOPE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DNSScope::class, \Google\Cloud\Container\V1\DNSConfig_DNSScope::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/Provider.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/Provider.php deleted file mode 100644 index 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 a8f206a6497a..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://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to delete. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * The name (project, location, cluster) of the cluster to delete. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 4; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to delete. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster) of the cluster to delete. - * Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to delete. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to delete. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * The name (project, location, cluster) of the cluster to delete. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 4; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster) of the cluster to delete. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 4; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DeleteNodePoolRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DeleteNodePoolRequest.php deleted file mode 100644 index 04335e40a89a..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://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Deprecated. The name of the node pool to delete. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @deprecated - */ - protected $node_pool_id = ''; - /** - * The name (project, location, cluster, node pool id) of the node pool to - * delete. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 6; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @type string $node_pool_id - * Deprecated. The name of the node pool to delete. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster, node pool id) of the node pool to - * delete. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the node pool to delete. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @return string - * @deprecated - */ - public function getNodePoolId() - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - return $this->node_pool_id; - } - - /** - * Deprecated. The name of the node pool to delete. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setNodePoolId($var) - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->node_pool_id = $var; - - return $this; - } - - /** - * The name (project, location, cluster, node pool id) of the node pool to - * delete. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 6; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster, node pool id) of the node pool to - * delete. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 6; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DnsCacheConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DnsCacheConfig.php deleted file mode 100644 index d97751e491df..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DnsCacheConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.DnsCacheConfig - */ -class DnsCacheConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether NodeLocal DNSCache is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether NodeLocal DNSCache is enabled for this cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether NodeLocal DNSCache is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether NodeLocal DNSCache is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EphemeralStorageLocalSsdConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EphemeralStorageLocalSsdConfig.php deleted file mode 100644 index 0015da72f02f..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EphemeralStorageLocalSsdConfig.php +++ /dev/null @@ -1,92 +0,0 @@ -google.container.v1.EphemeralStorageLocalSsdConfig - */ -class EphemeralStorageLocalSsdConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Number of local SSDs to use to back ephemeral storage. Uses NVMe - * interfaces. Each local SSD is 375 GB in size. - * If zero, it means to disable using local SSDs as ephemeral storage. - * 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 = 1; - */ - protected $local_ssd_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $local_ssd_count - * Number of local SSDs to use to back ephemeral storage. Uses NVMe - * interfaces. Each local SSD is 375 GB in size. - * If zero, it means to disable using local SSDs as ephemeral storage. - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Number of local SSDs to use to back ephemeral storage. Uses NVMe - * interfaces. Each local SSD is 375 GB in size. - * If zero, it means to disable using local SSDs as ephemeral storage. - * 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 = 1; - * @return int - */ - public function getLocalSsdCount() - { - return $this->local_ssd_count; - } - - /** - * Number of local SSDs to use to back ephemeral storage. Uses NVMe - * interfaces. Each local SSD is 375 GB in size. - * If zero, it means to disable using local SSDs as ephemeral storage. - * 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 = 1; - * @param int $var - * @return $this - */ - public function setLocalSsdCount($var) - { - GPBUtil::checkInt32($var); - $this->local_ssd_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/FastSocket.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/FastSocket.php deleted file mode 100644 index 18d90d015cd3..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/FastSocket.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.FastSocket - */ -class FastSocket extends \Google\Protobuf\Internal\Message -{ - /** - * Whether Fast Socket features are enabled in the node pool. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether Fast Socket features are enabled in the node pool. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether Fast Socket features are enabled in the node pool. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether Fast Socket features are enabled in the node pool. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig.php deleted file mode 100644 index 2badc2e49622..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig.php +++ /dev/null @@ -1,112 +0,0 @@ -google.container.v1.GPUSharingConfig - */ -class GPUSharingConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The max number of containers that can share a physical GPU. - * - * Generated from protobuf field int64 max_shared_clients_per_gpu = 1; - */ - protected $max_shared_clients_per_gpu = 0; - /** - * The type of GPU sharing strategy to enable on the GPU node. - * - * Generated from protobuf field optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; - */ - protected $gpu_sharing_strategy = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $max_shared_clients_per_gpu - * The max number of containers that can share a physical GPU. - * @type int $gpu_sharing_strategy - * The type of GPU sharing strategy to enable on the GPU node. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The max number of containers that can share a physical GPU. - * - * Generated from protobuf field int64 max_shared_clients_per_gpu = 1; - * @return int|string - */ - public function getMaxSharedClientsPerGpu() - { - return $this->max_shared_clients_per_gpu; - } - - /** - * The max number of containers that can share a physical GPU. - * - * Generated from protobuf field int64 max_shared_clients_per_gpu = 1; - * @param int|string $var - * @return $this - */ - public function setMaxSharedClientsPerGpu($var) - { - GPBUtil::checkInt64($var); - $this->max_shared_clients_per_gpu = $var; - - return $this; - } - - /** - * The type of GPU sharing strategy to enable on the GPU node. - * - * Generated from protobuf field optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; - * @return int - */ - public function getGpuSharingStrategy() - { - return isset($this->gpu_sharing_strategy) ? $this->gpu_sharing_strategy : 0; - } - - public function hasGpuSharingStrategy() - { - return isset($this->gpu_sharing_strategy); - } - - public function clearGpuSharingStrategy() - { - unset($this->gpu_sharing_strategy); - } - - /** - * The type of GPU sharing strategy to enable on the GPU node. - * - * Generated from protobuf field optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; - * @param int $var - * @return $this - */ - public function setGpuSharingStrategy($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\GPUSharingConfig\GPUSharingStrategy::class); - $this->gpu_sharing_strategy = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig/GPUSharingStrategy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig/GPUSharingStrategy.php deleted file mode 100644 index b7c519c60962..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig/GPUSharingStrategy.php +++ /dev/null @@ -1,57 +0,0 @@ -google.container.v1.GPUSharingConfig.GPUSharingStrategy - */ -class GPUSharingStrategy -{ - /** - * Default value. - * - * Generated from protobuf enum GPU_SHARING_STRATEGY_UNSPECIFIED = 0; - */ - const GPU_SHARING_STRATEGY_UNSPECIFIED = 0; - /** - * GPUs are time-shared between containers. - * - * Generated from protobuf enum TIME_SHARING = 1; - */ - const TIME_SHARING = 1; - - private static $valueToName = [ - self::GPU_SHARING_STRATEGY_UNSPECIFIED => 'GPU_SHARING_STRATEGY_UNSPECIFIED', - self::TIME_SHARING => 'TIME_SHARING', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(GPUSharingStrategy::class, \Google\Cloud\Container\V1\GPUSharingConfig_GPUSharingStrategy::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig_GPUSharingStrategy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig_GPUSharingStrategy.php deleted file mode 100644 index 69bdd525ba9b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig_GPUSharingStrategy.php +++ /dev/null @@ -1,16 +0,0 @@ -google.container.v1.GatewayAPIConfig - */ -class GatewayAPIConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The Gateway API release channel to use for Gateway API. - * - * Generated from protobuf field .google.container.v1.GatewayAPIConfig.Channel channel = 1; - */ - protected $channel = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $channel - * The Gateway API release channel to use for Gateway API. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The Gateway API release channel to use for Gateway API. - * - * Generated from protobuf field .google.container.v1.GatewayAPIConfig.Channel channel = 1; - * @return int - */ - public function getChannel() - { - return $this->channel; - } - - /** - * The Gateway API release channel to use for Gateway API. - * - * Generated from protobuf field .google.container.v1.GatewayAPIConfig.Channel channel = 1; - * @param int $var - * @return $this - */ - public function setChannel($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\GatewayAPIConfig\Channel::class); - $this->channel = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig/Channel.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig/Channel.php deleted file mode 100644 index e947315711f5..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig/Channel.php +++ /dev/null @@ -1,72 +0,0 @@ -google.container.v1.GatewayAPIConfig.Channel - */ -class Channel -{ - /** - * Default value. - * - * Generated from protobuf enum CHANNEL_UNSPECIFIED = 0; - */ - const CHANNEL_UNSPECIFIED = 0; - /** - * Gateway API support is disabled - * - * Generated from protobuf enum CHANNEL_DISABLED = 1; - */ - const CHANNEL_DISABLED = 1; - /** - * Gateway API support is enabled, experimental CRDs are installed - * - * Generated from protobuf enum CHANNEL_EXPERIMENTAL = 3; - */ - const CHANNEL_EXPERIMENTAL = 3; - /** - * Gateway API support is enabled, standard CRDs are installed - * - * Generated from protobuf enum CHANNEL_STANDARD = 4; - */ - const CHANNEL_STANDARD = 4; - - private static $valueToName = [ - self::CHANNEL_UNSPECIFIED => 'CHANNEL_UNSPECIFIED', - self::CHANNEL_DISABLED => 'CHANNEL_DISABLED', - self::CHANNEL_EXPERIMENTAL => 'CHANNEL_EXPERIMENTAL', - self::CHANNEL_STANDARD => 'CHANNEL_STANDARD', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Channel::class, \Google\Cloud\Container\V1\GatewayAPIConfig_Channel::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig_Channel.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig_Channel.php deleted file mode 100644 index 9304fbcb987e..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig_Channel.php +++ /dev/null @@ -1,16 +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 c10e84039d40..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://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to retrieve. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * The name (project, location, cluster) of the cluster to retrieve. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 5; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to retrieve. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster) of the cluster to retrieve. - * Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to retrieve. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to retrieve. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * The name (project, location, cluster) of the cluster to retrieve. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 5; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster) of the cluster to retrieve. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 5; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysRequest.php deleted file mode 100644 index 51b7332269ce..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysRequest.php +++ /dev/null @@ -1,74 +0,0 @@ -google.container.v1.GetJSONWebKeysRequest - */ -class GetJSONWebKeysRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The cluster (project, location, cluster name) to get keys for. Specified in - * the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string parent = 1; - */ - protected $parent = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * The cluster (project, location, cluster name) to get keys for. Specified in - * the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The cluster (project, location, cluster name) to get keys for. Specified in - * the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string parent = 1; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The cluster (project, location, cluster name) to get keys for. Specified in - * the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string parent = 1; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysResponse.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysResponse.php deleted file mode 100644 index e87ea71c60c3..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysResponse.php +++ /dev/null @@ -1,71 +0,0 @@ -google.container.v1.GetJSONWebKeysResponse - */ -class GetJSONWebKeysResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The public component of the keys used by the cluster to sign token - * requests. - * - * Generated from protobuf field repeated .google.container.v1.Jwk keys = 1; - */ - private $keys; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Container\V1\Jwk>|\Google\Protobuf\Internal\RepeatedField $keys - * The public component of the keys used by the cluster to sign token - * requests. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The public component of the keys used by the cluster to sign token - * requests. - * - * Generated from protobuf field repeated .google.container.v1.Jwk keys = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getKeys() - { - return $this->keys; - } - - /** - * The public component of the keys used by the cluster to sign token - * requests. - * - * Generated from protobuf field repeated .google.container.v1.Jwk keys = 1; - * @param array<\Google\Cloud\Container\V1\Jwk>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setKeys($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\Jwk::class); - $this->keys = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetNodePoolRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetNodePoolRequest.php deleted file mode 100644 index 8c6c8e191cd8..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://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Deprecated. The name of the node pool. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @deprecated - */ - protected $node_pool_id = ''; - /** - * The name (project, location, cluster, node pool id) of the node pool to - * get. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 6; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @type string $node_pool_id - * Deprecated. The name of the node pool. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster, node pool id) of the node pool to - * get. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the node pool. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @return string - * @deprecated - */ - public function getNodePoolId() - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - return $this->node_pool_id; - } - - /** - * Deprecated. The name of the node pool. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setNodePoolId($var) - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->node_pool_id = $var; - - return $this; - } - - /** - * The name (project, location, cluster, node pool id) of the node pool to - * get. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 6; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster, node pool id) of the node pool to - * get. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 6; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigRequest.php deleted file mode 100644 index 91eed5acb736..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigRequest.php +++ /dev/null @@ -1,72 +0,0 @@ -google.container.v1.GetOpenIDConfigRequest - */ -class GetOpenIDConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The cluster (project, location, cluster name) to get the discovery document - * for. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string parent = 1; - */ - protected $parent = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * The cluster (project, location, cluster name) to get the discovery document - * for. Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The cluster (project, location, cluster name) to get the discovery document - * for. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string parent = 1; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The cluster (project, location, cluster name) to get the discovery document - * for. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string parent = 1; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigResponse.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigResponse.php deleted file mode 100644 index 99ed8727e6b6..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigResponse.php +++ /dev/null @@ -1,272 +0,0 @@ -google.container.v1.GetOpenIDConfigResponse - */ -class GetOpenIDConfigResponse extends \Google\Protobuf\Internal\Message -{ - /** - * OIDC Issuer. - * - * Generated from protobuf field string issuer = 1; - */ - protected $issuer = ''; - /** - * JSON Web Key uri. - * - * Generated from protobuf field string jwks_uri = 2; - */ - protected $jwks_uri = ''; - /** - * Supported response types. - * - * Generated from protobuf field repeated string response_types_supported = 3; - */ - private $response_types_supported; - /** - * Supported subject types. - * - * Generated from protobuf field repeated string subject_types_supported = 4; - */ - private $subject_types_supported; - /** - * supported ID Token signing Algorithms. - * - * Generated from protobuf field repeated string id_token_signing_alg_values_supported = 5; - */ - private $id_token_signing_alg_values_supported; - /** - * Supported claims. - * - * Generated from protobuf field repeated string claims_supported = 6; - */ - private $claims_supported; - /** - * Supported grant types. - * - * Generated from protobuf field repeated string grant_types = 7; - */ - private $grant_types; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $issuer - * OIDC Issuer. - * @type string $jwks_uri - * JSON Web Key uri. - * @type array|\Google\Protobuf\Internal\RepeatedField $response_types_supported - * Supported response types. - * @type array|\Google\Protobuf\Internal\RepeatedField $subject_types_supported - * Supported subject types. - * @type array|\Google\Protobuf\Internal\RepeatedField $id_token_signing_alg_values_supported - * supported ID Token signing Algorithms. - * @type array|\Google\Protobuf\Internal\RepeatedField $claims_supported - * Supported claims. - * @type array|\Google\Protobuf\Internal\RepeatedField $grant_types - * Supported grant types. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * OIDC Issuer. - * - * Generated from protobuf field string issuer = 1; - * @return string - */ - public function getIssuer() - { - return $this->issuer; - } - - /** - * OIDC Issuer. - * - * Generated from protobuf field string issuer = 1; - * @param string $var - * @return $this - */ - public function setIssuer($var) - { - GPBUtil::checkString($var, True); - $this->issuer = $var; - - return $this; - } - - /** - * JSON Web Key uri. - * - * Generated from protobuf field string jwks_uri = 2; - * @return string - */ - public function getJwksUri() - { - return $this->jwks_uri; - } - - /** - * JSON Web Key uri. - * - * Generated from protobuf field string jwks_uri = 2; - * @param string $var - * @return $this - */ - public function setJwksUri($var) - { - GPBUtil::checkString($var, True); - $this->jwks_uri = $var; - - return $this; - } - - /** - * Supported response types. - * - * Generated from protobuf field repeated string response_types_supported = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResponseTypesSupported() - { - return $this->response_types_supported; - } - - /** - * Supported response types. - * - * Generated from protobuf field repeated string response_types_supported = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResponseTypesSupported($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->response_types_supported = $arr; - - return $this; - } - - /** - * Supported subject types. - * - * Generated from protobuf field repeated string subject_types_supported = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSubjectTypesSupported() - { - return $this->subject_types_supported; - } - - /** - * Supported subject types. - * - * Generated from protobuf field repeated string subject_types_supported = 4; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSubjectTypesSupported($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->subject_types_supported = $arr; - - return $this; - } - - /** - * supported ID Token signing Algorithms. - * - * Generated from protobuf field repeated string id_token_signing_alg_values_supported = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIdTokenSigningAlgValuesSupported() - { - return $this->id_token_signing_alg_values_supported; - } - - /** - * supported ID Token signing Algorithms. - * - * Generated from protobuf field repeated string id_token_signing_alg_values_supported = 5; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIdTokenSigningAlgValuesSupported($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->id_token_signing_alg_values_supported = $arr; - - return $this; - } - - /** - * Supported claims. - * - * Generated from protobuf field repeated string claims_supported = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getClaimsSupported() - { - return $this->claims_supported; - } - - /** - * Supported claims. - * - * Generated from protobuf field repeated string claims_supported = 6; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setClaimsSupported($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->claims_supported = $arr; - - return $this; - } - - /** - * Supported grant types. - * - * Generated from protobuf field repeated string grant_types = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getGrantTypes() - { - return $this->grant_types; - } - - /** - * Supported grant types. - * - * Generated from protobuf field repeated string grant_types = 7; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setGrantTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->grant_types = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOperationRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOperationRequest.php deleted file mode 100644 index 63dbda7fefac..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://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The server-assigned `name` of the operation. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string operation_id = 3 [deprecated = true]; - * @deprecated - */ - protected $operation_id = ''; - /** - * The name (project, location, operation id) of the operation to get. - * Specified in the format `projects/*/locations/*/operations/*`. - * - * Generated from protobuf field string name = 5; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $operation_id - * Deprecated. The server-assigned `name` of the operation. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, operation id) of the operation to get. - * Specified in the format `projects/*/locations/*/operations/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The server-assigned `name` of the operation. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string operation_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getOperationId() - { - @trigger_error('operation_id is deprecated.', E_USER_DEPRECATED); - return $this->operation_id; - } - - /** - * Deprecated. The server-assigned `name` of the operation. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string operation_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setOperationId($var) - { - @trigger_error('operation_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->operation_id = $var; - - return $this; - } - - /** - * The name (project, location, operation id) of the operation to get. - * Specified in the format `projects/*/locations/*/operations/*`. - * - * Generated from protobuf field string name = 5; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, operation id) of the operation to get. - * Specified in the format `projects/*/locations/*/operations/*`. - * - * Generated from protobuf field string name = 5; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetServerConfigRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetServerConfigRequest.php deleted file mode 100644 index 4ad94c25ddd0..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://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) to return - * operations for. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * The name (project and location) of the server config to get, - * specified in the format `projects/*/locations/*`. - * - * Generated from protobuf field string name = 4; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) to return - * operations for. This field has been deprecated and replaced by the name - * field. - * @type string $name - * The name (project and location) of the server config to get, - * specified in the format `projects/*/locations/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) to return - * operations for. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) to return - * operations for. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * The name (project and location) of the server config to get, - * specified in the format `projects/*/locations/*`. - * - * Generated from protobuf field string name = 4; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project and location) of the server config to get, - * specified in the format `projects/*/locations/*`. - * - * Generated from protobuf field string name = 4; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GkeBackupAgentConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GkeBackupAgentConfig.php deleted file mode 100644 index de7ae1b5392b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GkeBackupAgentConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.GkeBackupAgentConfig - */ -class GkeBackupAgentConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether the Backup for GKE agent is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether the Backup for GKE agent is enabled for this cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether the Backup for GKE agent is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether the Backup for GKE agent is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HorizontalPodAutoscaling.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HorizontalPodAutoscaling.php deleted file mode 100644 index 0e904a7e225a..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HorizontalPodAutoscaling.php +++ /dev/null @@ -1,77 +0,0 @@ -google.container.v1.HorizontalPodAutoscaling - */ -class HorizontalPodAutoscaling extends \Google\Protobuf\Internal\Message -{ - /** - * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. - * When enabled, it ensures that metrics are collected into Stackdriver - * Monitoring. - * - * Generated from protobuf field bool disabled = 1; - */ - protected $disabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $disabled - * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. - * When enabled, it ensures that metrics are collected into Stackdriver - * Monitoring. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. - * When enabled, it ensures that metrics are collected into Stackdriver - * Monitoring. - * - * Generated from protobuf field bool disabled = 1; - * @return bool - */ - public function getDisabled() - { - return $this->disabled; - } - - /** - * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. - * When enabled, it ensures that metrics are collected into Stackdriver - * Monitoring. - * - * Generated from protobuf field bool disabled = 1; - * @param bool $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkBool($var); - $this->disabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HttpLoadBalancing.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HttpLoadBalancing.php deleted file mode 100644 index abe2b7c900b2..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HttpLoadBalancing.php +++ /dev/null @@ -1,76 +0,0 @@ -google.container.v1.HttpLoadBalancing - */ -class HttpLoadBalancing extends \Google\Protobuf\Internal\Message -{ - /** - * Whether the HTTP Load Balancing controller is enabled in the cluster. - * When enabled, it runs a small pod in the cluster that manages the load - * balancers. - * - * Generated from protobuf field bool disabled = 1; - */ - protected $disabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $disabled - * Whether the HTTP Load Balancing controller is enabled in the cluster. - * When enabled, it runs a small pod in the cluster that manages the load - * balancers. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether the HTTP Load Balancing controller is enabled in the cluster. - * When enabled, it runs a small pod in the cluster that manages the load - * balancers. - * - * Generated from protobuf field bool disabled = 1; - * @return bool - */ - public function getDisabled() - { - return $this->disabled; - } - - /** - * Whether the HTTP Load Balancing controller is enabled in the cluster. - * When enabled, it runs a small pod in the cluster that manages the load - * balancers. - * - * Generated from protobuf field bool disabled = 1; - * @param bool $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkBool($var); - $this->disabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ILBSubsettingConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ILBSubsettingConfig.php deleted file mode 100644 index 64b0d8c63670..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ILBSubsettingConfig.php +++ /dev/null @@ -1,68 +0,0 @@ -google.container.v1.ILBSubsettingConfig - */ -class ILBSubsettingConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Enables l4 ILB subsetting for this cluster. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Enables l4 ILB subsetting for this cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Enables l4 ILB subsetting for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Enables l4 ILB subsetting for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPAllocationPolicy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPAllocationPolicy.php deleted file mode 100644 index c32df13f6d83..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPAllocationPolicy.php +++ /dev/null @@ -1,862 +0,0 @@ -google.container.v1.IPAllocationPolicy - */ -class IPAllocationPolicy extends \Google\Protobuf\Internal\Message -{ - /** - * Whether alias IPs will be used for pod IPs in the cluster. - * This is used in conjunction with use_routes. It cannot - * be true if use_routes is true. If both use_ip_aliases and use_routes are - * false, then the server picks the default IP allocation mode - * - * Generated from protobuf field bool use_ip_aliases = 1; - */ - protected $use_ip_aliases = false; - /** - * Whether a new subnetwork will be created automatically for the cluster. - * This field is only applicable when `use_ip_aliases` is true. - * - * Generated from protobuf field bool create_subnetwork = 2; - */ - protected $create_subnetwork = false; - /** - * A custom subnetwork name to be used if `create_subnetwork` is true. If - * this field is empty, then an automatic name will be chosen for the new - * subnetwork. - * - * Generated from protobuf field string subnetwork_name = 3; - */ - protected $subnetwork_name = ''; - /** - * This field is deprecated, use cluster_ipv4_cidr_block. - * - * Generated from protobuf field string cluster_ipv4_cidr = 4 [deprecated = true]; - * @deprecated - */ - protected $cluster_ipv4_cidr = ''; - /** - * This field is deprecated, use node_ipv4_cidr_block. - * - * Generated from protobuf field string node_ipv4_cidr = 5 [deprecated = true]; - * @deprecated - */ - protected $node_ipv4_cidr = ''; - /** - * This field is deprecated, use services_ipv4_cidr_block. - * - * Generated from protobuf field string services_ipv4_cidr = 6 [deprecated = true]; - * @deprecated - */ - protected $services_ipv4_cidr = ''; - /** - * The name of the secondary range to be used for the cluster CIDR - * block. The secondary range will be used for pod IP - * addresses. This must be an existing secondary range associated - * with the cluster subnetwork. - * This field is only applicable with use_ip_aliases is true and - * create_subnetwork is false. - * - * Generated from protobuf field string cluster_secondary_range_name = 7; - */ - protected $cluster_secondary_range_name = ''; - /** - * The name of the secondary range to be used as for the services - * CIDR block. The secondary range will be used for service - * ClusterIPs. This must be an existing secondary range associated - * with the cluster subnetwork. - * This field is only applicable with use_ip_aliases is true and - * create_subnetwork is false. - * - * Generated from protobuf field string services_secondary_range_name = 8; - */ - protected $services_secondary_range_name = ''; - /** - * The IP address range for the cluster pod IPs. If this field is set, then - * `cluster.cluster_ipv4_cidr` must be left blank. - * This field is only applicable when `use_ip_aliases` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * Generated from protobuf field string cluster_ipv4_cidr_block = 9; - */ - protected $cluster_ipv4_cidr_block = ''; - /** - * The IP address range of the instance IPs in this cluster. - * This is applicable only if `create_subnetwork` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * Generated from protobuf field string node_ipv4_cidr_block = 10; - */ - protected $node_ipv4_cidr_block = ''; - /** - * The IP address range of the services IPs in this cluster. If blank, a range - * will be automatically chosen with the default size. - * This field is only applicable when `use_ip_aliases` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * Generated from protobuf field string services_ipv4_cidr_block = 11; - */ - protected $services_ipv4_cidr_block = ''; - /** - * The IP address range of the Cloud TPUs in this cluster. If unspecified, a - * range will be automatically chosen with the default size. - * This field is only applicable when `use_ip_aliases` is true. - * If unspecified, the range will use the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * Generated from protobuf field string tpu_ipv4_cidr_block = 13; - */ - protected $tpu_ipv4_cidr_block = ''; - /** - * Whether routes will be used for pod IPs in the cluster. - * This is used in conjunction with use_ip_aliases. It cannot be true if - * use_ip_aliases is true. If both use_ip_aliases and use_routes are false, - * then the server picks the default IP allocation mode - * - * Generated from protobuf field bool use_routes = 15; - */ - protected $use_routes = false; - /** - * The IP stack type of the cluster - * - * Generated from protobuf field .google.container.v1.StackType stack_type = 16; - */ - protected $stack_type = 0; - /** - * The ipv6 access type (internal or external) when create_subnetwork is true - * - * Generated from protobuf field .google.container.v1.IPv6AccessType ipv6_access_type = 17; - */ - protected $ipv6_access_type = 0; - /** - * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and - * pods. - * - * Generated from protobuf field string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $subnet_ipv6_cidr_block = ''; - /** - * Output only. [Output only] The services IPv6 CIDR block for the cluster. - * - * Generated from protobuf field string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $services_ipv6_cidr_block = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $use_ip_aliases - * Whether alias IPs will be used for pod IPs in the cluster. - * This is used in conjunction with use_routes. It cannot - * be true if use_routes is true. If both use_ip_aliases and use_routes are - * false, then the server picks the default IP allocation mode - * @type bool $create_subnetwork - * Whether a new subnetwork will be created automatically for the cluster. - * This field is only applicable when `use_ip_aliases` is true. - * @type string $subnetwork_name - * A custom subnetwork name to be used if `create_subnetwork` is true. If - * this field is empty, then an automatic name will be chosen for the new - * subnetwork. - * @type string $cluster_ipv4_cidr - * This field is deprecated, use cluster_ipv4_cidr_block. - * @type string $node_ipv4_cidr - * This field is deprecated, use node_ipv4_cidr_block. - * @type string $services_ipv4_cidr - * This field is deprecated, use services_ipv4_cidr_block. - * @type string $cluster_secondary_range_name - * The name of the secondary range to be used for the cluster CIDR - * block. The secondary range will be used for pod IP - * addresses. This must be an existing secondary range associated - * with the cluster subnetwork. - * This field is only applicable with use_ip_aliases is true and - * create_subnetwork is false. - * @type string $services_secondary_range_name - * The name of the secondary range to be used as for the services - * CIDR block. The secondary range will be used for service - * ClusterIPs. This must be an existing secondary range associated - * with the cluster subnetwork. - * This field is only applicable with use_ip_aliases is true and - * create_subnetwork is false. - * @type string $cluster_ipv4_cidr_block - * The IP address range for the cluster pod IPs. If this field is set, then - * `cluster.cluster_ipv4_cidr` must be left blank. - * This field is only applicable when `use_ip_aliases` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * @type string $node_ipv4_cidr_block - * The IP address range of the instance IPs in this cluster. - * This is applicable only if `create_subnetwork` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * @type string $services_ipv4_cidr_block - * The IP address range of the services IPs in this cluster. If blank, a range - * will be automatically chosen with the default size. - * This field is only applicable when `use_ip_aliases` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * @type string $tpu_ipv4_cidr_block - * The IP address range of the Cloud TPUs in this cluster. If unspecified, a - * range will be automatically chosen with the default size. - * This field is only applicable when `use_ip_aliases` is true. - * If unspecified, the range will use the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * @type bool $use_routes - * Whether routes will be used for pod IPs in the cluster. - * This is used in conjunction with use_ip_aliases. It cannot be true if - * use_ip_aliases is true. If both use_ip_aliases and use_routes are false, - * then the server picks the default IP allocation mode - * @type int $stack_type - * The IP stack type of the cluster - * @type int $ipv6_access_type - * The ipv6 access type (internal or external) when create_subnetwork is true - * @type string $subnet_ipv6_cidr_block - * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and - * pods. - * @type string $services_ipv6_cidr_block - * Output only. [Output only] The services IPv6 CIDR block for the cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether alias IPs will be used for pod IPs in the cluster. - * This is used in conjunction with use_routes. It cannot - * be true if use_routes is true. If both use_ip_aliases and use_routes are - * false, then the server picks the default IP allocation mode - * - * Generated from protobuf field bool use_ip_aliases = 1; - * @return bool - */ - public function getUseIpAliases() - { - return $this->use_ip_aliases; - } - - /** - * Whether alias IPs will be used for pod IPs in the cluster. - * This is used in conjunction with use_routes. It cannot - * be true if use_routes is true. If both use_ip_aliases and use_routes are - * false, then the server picks the default IP allocation mode - * - * Generated from protobuf field bool use_ip_aliases = 1; - * @param bool $var - * @return $this - */ - public function setUseIpAliases($var) - { - GPBUtil::checkBool($var); - $this->use_ip_aliases = $var; - - return $this; - } - - /** - * Whether a new subnetwork will be created automatically for the cluster. - * This field is only applicable when `use_ip_aliases` is true. - * - * Generated from protobuf field bool create_subnetwork = 2; - * @return bool - */ - public function getCreateSubnetwork() - { - return $this->create_subnetwork; - } - - /** - * Whether a new subnetwork will be created automatically for the cluster. - * This field is only applicable when `use_ip_aliases` is true. - * - * Generated from protobuf field bool create_subnetwork = 2; - * @param bool $var - * @return $this - */ - public function setCreateSubnetwork($var) - { - GPBUtil::checkBool($var); - $this->create_subnetwork = $var; - - return $this; - } - - /** - * A custom subnetwork name to be used if `create_subnetwork` is true. If - * this field is empty, then an automatic name will be chosen for the new - * subnetwork. - * - * Generated from protobuf field string subnetwork_name = 3; - * @return string - */ - public function getSubnetworkName() - { - return $this->subnetwork_name; - } - - /** - * A custom subnetwork name to be used if `create_subnetwork` is true. If - * this field is empty, then an automatic name will be chosen for the new - * subnetwork. - * - * Generated from protobuf field string subnetwork_name = 3; - * @param string $var - * @return $this - */ - public function setSubnetworkName($var) - { - GPBUtil::checkString($var, True); - $this->subnetwork_name = $var; - - return $this; - } - - /** - * This field is deprecated, use cluster_ipv4_cidr_block. - * - * Generated from protobuf field string cluster_ipv4_cidr = 4 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterIpv4Cidr() - { - @trigger_error('cluster_ipv4_cidr is deprecated.', E_USER_DEPRECATED); - return $this->cluster_ipv4_cidr; - } - - /** - * This field is deprecated, use cluster_ipv4_cidr_block. - * - * Generated from protobuf field string cluster_ipv4_cidr = 4 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterIpv4Cidr($var) - { - @trigger_error('cluster_ipv4_cidr is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_ipv4_cidr = $var; - - return $this; - } - - /** - * This field is deprecated, use node_ipv4_cidr_block. - * - * Generated from protobuf field string node_ipv4_cidr = 5 [deprecated = true]; - * @return string - * @deprecated - */ - public function getNodeIpv4Cidr() - { - @trigger_error('node_ipv4_cidr is deprecated.', E_USER_DEPRECATED); - return $this->node_ipv4_cidr; - } - - /** - * This field is deprecated, use node_ipv4_cidr_block. - * - * Generated from protobuf field string node_ipv4_cidr = 5 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setNodeIpv4Cidr($var) - { - @trigger_error('node_ipv4_cidr is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->node_ipv4_cidr = $var; - - return $this; - } - - /** - * This field is deprecated, use services_ipv4_cidr_block. - * - * Generated from protobuf field string services_ipv4_cidr = 6 [deprecated = true]; - * @return string - * @deprecated - */ - public function getServicesIpv4Cidr() - { - @trigger_error('services_ipv4_cidr is deprecated.', E_USER_DEPRECATED); - return $this->services_ipv4_cidr; - } - - /** - * This field is deprecated, use services_ipv4_cidr_block. - * - * Generated from protobuf field string services_ipv4_cidr = 6 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setServicesIpv4Cidr($var) - { - @trigger_error('services_ipv4_cidr is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->services_ipv4_cidr = $var; - - return $this; - } - - /** - * The name of the secondary range to be used for the cluster CIDR - * block. The secondary range will be used for pod IP - * addresses. This must be an existing secondary range associated - * with the cluster subnetwork. - * This field is only applicable with use_ip_aliases is true and - * create_subnetwork is false. - * - * Generated from protobuf field string cluster_secondary_range_name = 7; - * @return string - */ - public function getClusterSecondaryRangeName() - { - return $this->cluster_secondary_range_name; - } - - /** - * The name of the secondary range to be used for the cluster CIDR - * block. The secondary range will be used for pod IP - * addresses. This must be an existing secondary range associated - * with the cluster subnetwork. - * This field is only applicable with use_ip_aliases is true and - * create_subnetwork is false. - * - * Generated from protobuf field string cluster_secondary_range_name = 7; - * @param string $var - * @return $this - */ - public function setClusterSecondaryRangeName($var) - { - GPBUtil::checkString($var, True); - $this->cluster_secondary_range_name = $var; - - return $this; - } - - /** - * The name of the secondary range to be used as for the services - * CIDR block. The secondary range will be used for service - * ClusterIPs. This must be an existing secondary range associated - * with the cluster subnetwork. - * This field is only applicable with use_ip_aliases is true and - * create_subnetwork is false. - * - * Generated from protobuf field string services_secondary_range_name = 8; - * @return string - */ - public function getServicesSecondaryRangeName() - { - return $this->services_secondary_range_name; - } - - /** - * The name of the secondary range to be used as for the services - * CIDR block. The secondary range will be used for service - * ClusterIPs. This must be an existing secondary range associated - * with the cluster subnetwork. - * This field is only applicable with use_ip_aliases is true and - * create_subnetwork is false. - * - * Generated from protobuf field string services_secondary_range_name = 8; - * @param string $var - * @return $this - */ - public function setServicesSecondaryRangeName($var) - { - GPBUtil::checkString($var, True); - $this->services_secondary_range_name = $var; - - return $this; - } - - /** - * The IP address range for the cluster pod IPs. If this field is set, then - * `cluster.cluster_ipv4_cidr` must be left blank. - * This field is only applicable when `use_ip_aliases` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * Generated from protobuf field string cluster_ipv4_cidr_block = 9; - * @return string - */ - public function getClusterIpv4CidrBlock() - { - return $this->cluster_ipv4_cidr_block; - } - - /** - * The IP address range for the cluster pod IPs. If this field is set, then - * `cluster.cluster_ipv4_cidr` must be left blank. - * This field is only applicable when `use_ip_aliases` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * Generated from protobuf field string cluster_ipv4_cidr_block = 9; - * @param string $var - * @return $this - */ - public function setClusterIpv4CidrBlock($var) - { - GPBUtil::checkString($var, True); - $this->cluster_ipv4_cidr_block = $var; - - return $this; - } - - /** - * The IP address range of the instance IPs in this cluster. - * This is applicable only if `create_subnetwork` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * Generated from protobuf field string node_ipv4_cidr_block = 10; - * @return string - */ - public function getNodeIpv4CidrBlock() - { - return $this->node_ipv4_cidr_block; - } - - /** - * The IP address range of the instance IPs in this cluster. - * This is applicable only if `create_subnetwork` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * Generated from protobuf field string node_ipv4_cidr_block = 10; - * @param string $var - * @return $this - */ - public function setNodeIpv4CidrBlock($var) - { - GPBUtil::checkString($var, True); - $this->node_ipv4_cidr_block = $var; - - return $this; - } - - /** - * The IP address range of the services IPs in this cluster. If blank, a range - * will be automatically chosen with the default size. - * This field is only applicable when `use_ip_aliases` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * Generated from protobuf field string services_ipv4_cidr_block = 11; - * @return string - */ - public function getServicesIpv4CidrBlock() - { - return $this->services_ipv4_cidr_block; - } - - /** - * The IP address range of the services IPs in this cluster. If blank, a range - * will be automatically chosen with the default size. - * This field is only applicable when `use_ip_aliases` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * Generated from protobuf field string services_ipv4_cidr_block = 11; - * @param string $var - * @return $this - */ - public function setServicesIpv4CidrBlock($var) - { - GPBUtil::checkString($var, True); - $this->services_ipv4_cidr_block = $var; - - return $this; - } - - /** - * The IP address range of the Cloud TPUs in this cluster. If unspecified, a - * range will be automatically chosen with the default size. - * This field is only applicable when `use_ip_aliases` is true. - * If unspecified, the range will use the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * Generated from protobuf field string tpu_ipv4_cidr_block = 13; - * @return string - */ - public function getTpuIpv4CidrBlock() - { - return $this->tpu_ipv4_cidr_block; - } - - /** - * The IP address range of the Cloud TPUs in this cluster. If unspecified, a - * range will be automatically chosen with the default size. - * This field is only applicable when `use_ip_aliases` is true. - * If unspecified, the range will use the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * Generated from protobuf field string tpu_ipv4_cidr_block = 13; - * @param string $var - * @return $this - */ - public function setTpuIpv4CidrBlock($var) - { - GPBUtil::checkString($var, True); - $this->tpu_ipv4_cidr_block = $var; - - return $this; - } - - /** - * Whether routes will be used for pod IPs in the cluster. - * This is used in conjunction with use_ip_aliases. It cannot be true if - * use_ip_aliases is true. If both use_ip_aliases and use_routes are false, - * then the server picks the default IP allocation mode - * - * Generated from protobuf field bool use_routes = 15; - * @return bool - */ - public function getUseRoutes() - { - return $this->use_routes; - } - - /** - * Whether routes will be used for pod IPs in the cluster. - * This is used in conjunction with use_ip_aliases. It cannot be true if - * use_ip_aliases is true. If both use_ip_aliases and use_routes are false, - * then the server picks the default IP allocation mode - * - * Generated from protobuf field bool use_routes = 15; - * @param bool $var - * @return $this - */ - public function setUseRoutes($var) - { - GPBUtil::checkBool($var); - $this->use_routes = $var; - - return $this; - } - - /** - * The IP stack type of the cluster - * - * Generated from protobuf field .google.container.v1.StackType stack_type = 16; - * @return int - */ - public function getStackType() - { - return $this->stack_type; - } - - /** - * The IP stack type of the cluster - * - * Generated from protobuf field .google.container.v1.StackType stack_type = 16; - * @param int $var - * @return $this - */ - public function setStackType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\StackType::class); - $this->stack_type = $var; - - return $this; - } - - /** - * The ipv6 access type (internal or external) when create_subnetwork is true - * - * Generated from protobuf field .google.container.v1.IPv6AccessType ipv6_access_type = 17; - * @return int - */ - public function getIpv6AccessType() - { - return $this->ipv6_access_type; - } - - /** - * The ipv6 access type (internal or external) when create_subnetwork is true - * - * Generated from protobuf field .google.container.v1.IPv6AccessType ipv6_access_type = 17; - * @param int $var - * @return $this - */ - public function setIpv6AccessType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\IPv6AccessType::class); - $this->ipv6_access_type = $var; - - return $this; - } - - /** - * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and - * pods. - * - * Generated from protobuf field string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getSubnetIpv6CidrBlock() - { - return $this->subnet_ipv6_cidr_block; - } - - /** - * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and - * pods. - * - * Generated from protobuf field string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setSubnetIpv6CidrBlock($var) - { - GPBUtil::checkString($var, True); - $this->subnet_ipv6_cidr_block = $var; - - return $this; - } - - /** - * Output only. [Output only] The services IPv6 CIDR block for the cluster. - * - * Generated from protobuf field string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getServicesIpv6CidrBlock() - { - return $this->services_ipv6_cidr_block; - } - - /** - * Output only. [Output only] The services IPv6 CIDR block for the cluster. - * - * Generated from protobuf field string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setServicesIpv6CidrBlock($var) - { - GPBUtil::checkString($var, True); - $this->services_ipv6_cidr_block = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPv6AccessType.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPv6AccessType.php deleted file mode 100644 index 1b4be8e42d32..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPv6AccessType.php +++ /dev/null @@ -1,61 +0,0 @@ -google.container.v1.IPv6AccessType - */ -class IPv6AccessType -{ - /** - * Default value, will be defaulted as type external. - * - * Generated from protobuf enum IPV6_ACCESS_TYPE_UNSPECIFIED = 0; - */ - const IPV6_ACCESS_TYPE_UNSPECIFIED = 0; - /** - * Access type internal (all v6 addresses are internal IPs) - * - * Generated from protobuf enum INTERNAL = 1; - */ - const INTERNAL = 1; - /** - * Access type external (all v6 addresses are external IPs) - * - * Generated from protobuf enum EXTERNAL = 2; - */ - const EXTERNAL = 2; - - private static $valueToName = [ - self::IPV6_ACCESS_TYPE_UNSPECIFIED => 'IPV6_ACCESS_TYPE_UNSPECIFIED', - self::INTERNAL => 'INTERNAL', - self::EXTERNAL => 'EXTERNAL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IdentityServiceConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IdentityServiceConfig.php deleted file mode 100644 index 61767b760f86..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IdentityServiceConfig.php +++ /dev/null @@ -1,68 +0,0 @@ -google.container.v1.IdentityServiceConfig - */ -class IdentityServiceConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether to enable the Identity Service component - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether to enable the Identity Service component - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether to enable the Identity Service component - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether to enable the Identity Service component - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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 523e5541d78d..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig.php +++ /dev/null @@ -1,153 +0,0 @@ -google.container.v1.LinuxNodeConfig - */ -class LinuxNodeConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The Linux kernel parameters to be applied to the nodes and all pods running - * on the nodes. - * The following parameters are supported. - * net.core.busy_poll - * net.core.busy_read - * net.core.netdev_max_backlog - * net.core.rmem_max - * net.core.wmem_default - * net.core.wmem_max - * net.core.optmem_max - * net.core.somaxconn - * net.ipv4.tcp_rmem - * net.ipv4.tcp_wmem - * net.ipv4.tcp_tw_reuse - * - * Generated from protobuf field map sysctls = 1; - */ - private $sysctls; - /** - * cgroup_mode specifies the cgroup mode to be used on the node. - * - * Generated from protobuf field .google.container.v1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; - */ - protected $cgroup_mode = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\MapField $sysctls - * The Linux kernel parameters to be applied to the nodes and all pods running - * on the nodes. - * The following parameters are supported. - * net.core.busy_poll - * net.core.busy_read - * net.core.netdev_max_backlog - * net.core.rmem_max - * net.core.wmem_default - * net.core.wmem_max - * net.core.optmem_max - * net.core.somaxconn - * net.ipv4.tcp_rmem - * net.ipv4.tcp_wmem - * net.ipv4.tcp_tw_reuse - * @type int $cgroup_mode - * cgroup_mode specifies the cgroup mode to be used on the node. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The Linux kernel parameters to be applied to the nodes and all pods running - * on the nodes. - * The following parameters are supported. - * net.core.busy_poll - * net.core.busy_read - * net.core.netdev_max_backlog - * net.core.rmem_max - * net.core.wmem_default - * net.core.wmem_max - * net.core.optmem_max - * net.core.somaxconn - * net.ipv4.tcp_rmem - * net.ipv4.tcp_wmem - * net.ipv4.tcp_tw_reuse - * - * Generated from protobuf field map sysctls = 1; - * @return \Google\Protobuf\Internal\MapField - */ - public function getSysctls() - { - return $this->sysctls; - } - - /** - * The Linux kernel parameters to be applied to the nodes and all pods running - * on the nodes. - * The following parameters are supported. - * net.core.busy_poll - * net.core.busy_read - * net.core.netdev_max_backlog - * net.core.rmem_max - * net.core.wmem_default - * net.core.wmem_max - * net.core.optmem_max - * net.core.somaxconn - * net.ipv4.tcp_rmem - * net.ipv4.tcp_wmem - * net.ipv4.tcp_tw_reuse - * - * Generated from protobuf field map sysctls = 1; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setSysctls($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->sysctls = $arr; - - return $this; - } - - /** - * cgroup_mode specifies the cgroup mode to be used on the node. - * - * Generated from protobuf field .google.container.v1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; - * @return int - */ - public function getCgroupMode() - { - return $this->cgroup_mode; - } - - /** - * cgroup_mode specifies the cgroup mode to be used on the node. - * - * Generated from protobuf field .google.container.v1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; - * @param int $var - * @return $this - */ - public function setCgroupMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\LinuxNodeConfig\CgroupMode::class); - $this->cgroup_mode = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig/CgroupMode.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig/CgroupMode.php deleted file mode 100644 index 677f044abfac..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig/CgroupMode.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.LinuxNodeConfig.CgroupMode - */ -class CgroupMode -{ - /** - * CGROUP_MODE_UNSPECIFIED is when unspecified cgroup configuration is used. - * The default for the GKE node OS image will be used. - * - * Generated from protobuf enum CGROUP_MODE_UNSPECIFIED = 0; - */ - const CGROUP_MODE_UNSPECIFIED = 0; - /** - * CGROUP_MODE_V1 specifies to use cgroupv1 for the cgroup configuration on - * the node image. - * - * Generated from protobuf enum CGROUP_MODE_V1 = 1; - */ - const CGROUP_MODE_V1 = 1; - /** - * CGROUP_MODE_V2 specifies to use cgroupv2 for the cgroup configuration on - * the node image. - * - * Generated from protobuf enum CGROUP_MODE_V2 = 2; - */ - const CGROUP_MODE_V2 = 2; - - private static $valueToName = [ - self::CGROUP_MODE_UNSPECIFIED => 'CGROUP_MODE_UNSPECIFIED', - self::CGROUP_MODE_V1 => 'CGROUP_MODE_V1', - self::CGROUP_MODE_V2 => 'CGROUP_MODE_V2', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CgroupMode::class, \Google\Cloud\Container\V1\LinuxNodeConfig_CgroupMode::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig_CgroupMode.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig_CgroupMode.php deleted file mode 100644 index bf3fc32cde9b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig_CgroupMode.php +++ /dev/null @@ -1,16 +0,0 @@ -google.container.v1.ListClustersRequest - */ -class ListClustersRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides, or "-" for all zones. This field has been deprecated and - * replaced by the parent field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * The parent (project and location) where the clusters will be listed. - * Specified in the format `projects/*/locations/*`. - * Location "-" matches all zones and all regions. - * - * Generated from protobuf field string parent = 4; - */ - protected $parent = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides, or "-" for all zones. This field has been deprecated and - * replaced by the parent field. - * @type string $parent - * The parent (project and location) where the clusters will be listed. - * Specified in the format `projects/*/locations/*`. - * Location "-" matches all zones and all regions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides, or "-" for all zones. This field has been deprecated and - * replaced by the parent field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides, or "-" for all zones. This field has been deprecated and - * replaced by the parent field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * The parent (project and location) where the clusters will be listed. - * Specified in the format `projects/*/locations/*`. - * Location "-" matches all zones and all regions. - * - * Generated from protobuf field string parent = 4; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The parent (project and location) where the clusters will be listed. - * Specified in the format `projects/*/locations/*`. - * Location "-" matches all zones and all regions. - * - * Generated from protobuf field string parent = 4; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListClustersResponse.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListClustersResponse.php deleted file mode 100644 index 4d8a2365a5c0..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListClustersResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -google.container.v1.ListClustersResponse - */ -class ListClustersResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of clusters in the project in the specified zone, or - * across all ones. - * - * Generated from protobuf field repeated .google.container.v1.Cluster clusters = 1; - */ - private $clusters; - /** - * If any zones are listed here, the list of clusters returned - * may be missing those zones. - * - * Generated from protobuf field repeated string missing_zones = 2; - */ - private $missing_zones; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Container\V1\Cluster>|\Google\Protobuf\Internal\RepeatedField $clusters - * A list of clusters in the project in the specified zone, or - * across all ones. - * @type array|\Google\Protobuf\Internal\RepeatedField $missing_zones - * If any zones are listed here, the list of clusters returned - * may be missing those zones. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * A list of clusters in the project in the specified zone, or - * across all ones. - * - * Generated from protobuf field repeated .google.container.v1.Cluster clusters = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getClusters() - { - return $this->clusters; - } - - /** - * A list of clusters in the project in the specified zone, or - * across all ones. - * - * Generated from protobuf field repeated .google.container.v1.Cluster clusters = 1; - * @param array<\Google\Cloud\Container\V1\Cluster>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setClusters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\Cluster::class); - $this->clusters = $arr; - - return $this; - } - - /** - * If any zones are listed here, the list of clusters returned - * may be missing those zones. - * - * Generated from protobuf field repeated string missing_zones = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMissingZones() - { - return $this->missing_zones; - } - - /** - * If any zones are listed here, the list of clusters returned - * may be missing those zones. - * - * Generated from protobuf field repeated string missing_zones = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMissingZones($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->missing_zones = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsRequest.php deleted file mode 100644 index 5351aed6faf8..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://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * The parent (project, location, cluster name) where the node pools will be - * listed. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string parent = 5; - */ - protected $parent = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the parent field. - * @type string $parent - * The parent (project, location, cluster name) where the node pools will be - * listed. Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * The parent (project, location, cluster name) where the node pools will be - * listed. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string parent = 5; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The parent (project, location, cluster name) where the node pools will be - * listed. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string parent = 5; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsResponse.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsResponse.php deleted file mode 100644 index abf30ec49198..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.ListNodePoolsResponse - */ -class ListNodePoolsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of node pools for a cluster. - * - * Generated from protobuf field repeated .google.container.v1.NodePool node_pools = 1; - */ - private $node_pools; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Container\V1\NodePool>|\Google\Protobuf\Internal\RepeatedField $node_pools - * A list of node pools for a cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * A list of node pools for a cluster. - * - * Generated from protobuf field repeated .google.container.v1.NodePool node_pools = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNodePools() - { - return $this->node_pools; - } - - /** - * A list of node pools for a cluster. - * - * Generated from protobuf field repeated .google.container.v1.NodePool node_pools = 1; - * @param array<\Google\Cloud\Container\V1\NodePool>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNodePools($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\NodePool::class); - $this->node_pools = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsRequest.php deleted file mode 100644 index 3f8e5caef677..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://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) to return - * operations for, or `-` for all zones. This field has been deprecated and - * replaced by the parent field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * The parent (project and location) where the operations will be listed. - * Specified in the format `projects/*/locations/*`. - * Location "-" matches all zones and all regions. - * - * Generated from protobuf field string parent = 4; - */ - protected $parent = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) to return - * operations for, or `-` for all zones. This field has been deprecated and - * replaced by the parent field. - * @type string $parent - * The parent (project and location) where the operations will be listed. - * Specified in the format `projects/*/locations/*`. - * Location "-" matches all zones and all regions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) to return - * operations for, or `-` for all zones. This field has been deprecated and - * replaced by the parent field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) to return - * operations for, or `-` for all zones. This field has been deprecated and - * replaced by the parent field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * The parent (project and location) where the operations will be listed. - * Specified in the format `projects/*/locations/*`. - * Location "-" matches all zones and all regions. - * - * Generated from protobuf field string parent = 4; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The parent (project and location) where the operations will be listed. - * Specified in the format `projects/*/locations/*`. - * Location "-" matches all zones and all regions. - * - * Generated from protobuf field string parent = 4; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsResponse.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsResponse.php deleted file mode 100644 index 82eb8e28098f..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.container.v1.ListOperationsResponse - */ -class ListOperationsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of operations in the project in the specified zone. - * - * Generated from protobuf field repeated .google.container.v1.Operation operations = 1; - */ - private $operations; - /** - * If any zones are listed here, the list of operations returned - * may be missing the operations from those zones. - * - * Generated from protobuf field repeated string missing_zones = 2; - */ - private $missing_zones; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Container\V1\Operation>|\Google\Protobuf\Internal\RepeatedField $operations - * A list of operations in the project in the specified zone. - * @type array|\Google\Protobuf\Internal\RepeatedField $missing_zones - * If any zones are listed here, the list of operations returned - * may be missing the operations from those zones. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * A list of operations in the project in the specified zone. - * - * Generated from protobuf field repeated .google.container.v1.Operation operations = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOperations() - { - return $this->operations; - } - - /** - * A list of operations in the project in the specified zone. - * - * Generated from protobuf field repeated .google.container.v1.Operation operations = 1; - * @param array<\Google\Cloud\Container\V1\Operation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOperations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\Operation::class); - $this->operations = $arr; - - return $this; - } - - /** - * If any zones are listed here, the list of operations returned - * may be missing the operations from those zones. - * - * Generated from protobuf field repeated string missing_zones = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMissingZones() - { - return $this->missing_zones; - } - - /** - * If any zones are listed here, the list of operations returned - * may be missing the operations from those zones. - * - * Generated from protobuf field repeated string missing_zones = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMissingZones($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->missing_zones = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksRequest.php deleted file mode 100644 index bae700cc3b00..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksRequest.php +++ /dev/null @@ -1,202 +0,0 @@ -google.container.v1.ListUsableSubnetworksRequest - */ -class ListUsableSubnetworksRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The parent project where subnetworks are usable. - * Specified in the format `projects/*`. - * - * Generated from protobuf field string parent = 1; - */ - protected $parent = ''; - /** - * Filtering currently only supports equality on the networkProjectId and must - * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` - * is the project which owns the listed subnetworks. This defaults to the - * parent project ID. - * - * Generated from protobuf field string filter = 2; - */ - protected $filter = ''; - /** - * The max number of results per page that should be returned. If the number - * of available results is larger than `page_size`, a `next_page_token` is - * returned which can be used to get the next page of results in subsequent - * requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - * - * Generated from protobuf field int32 page_size = 3; - */ - protected $page_size = 0; - /** - * Specifies a page token to use. Set this to the nextPageToken returned by - * previous list requests to get the next page of results. - * - * Generated from protobuf field string page_token = 4; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * The parent project where subnetworks are usable. - * Specified in the format `projects/*`. - * @type string $filter - * Filtering currently only supports equality on the networkProjectId and must - * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` - * is the project which owns the listed subnetworks. This defaults to the - * parent project ID. - * @type int $page_size - * The max number of results per page that should be returned. If the number - * of available results is larger than `page_size`, a `next_page_token` is - * returned which can be used to get the next page of results in subsequent - * requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - * @type string $page_token - * Specifies a page token to use. Set this to the nextPageToken returned by - * previous list requests to get the next page of results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The parent project where subnetworks are usable. - * Specified in the format `projects/*`. - * - * Generated from protobuf field string parent = 1; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The parent project where subnetworks are usable. - * Specified in the format `projects/*`. - * - * Generated from protobuf field string parent = 1; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Filtering currently only supports equality on the networkProjectId and must - * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` - * is the project which owns the listed subnetworks. This defaults to the - * parent project ID. - * - * Generated from protobuf field string filter = 2; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Filtering currently only supports equality on the networkProjectId and must - * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` - * is the project which owns the listed subnetworks. This defaults to the - * parent project ID. - * - * Generated from protobuf field string filter = 2; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * The max number of results per page that should be returned. If the number - * of available results is larger than `page_size`, a `next_page_token` is - * returned which can be used to get the next page of results in subsequent - * requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - * - * Generated from protobuf field int32 page_size = 3; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The max number of results per page that should be returned. If the number - * of available results is larger than `page_size`, a `next_page_token` is - * returned which can be used to get the next page of results in subsequent - * requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - * - * Generated from protobuf field int32 page_size = 3; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Specifies a page token to use. Set this to the nextPageToken returned by - * previous list requests to get the next page of results. - * - * Generated from protobuf field string page_token = 4; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Specifies a page token to use. Set this to the nextPageToken returned by - * previous list requests to get the next page of results. - * - * Generated from protobuf field string page_token = 4; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksResponse.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksResponse.php deleted file mode 100644 index 73913d380a2a..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -google.container.v1.ListUsableSubnetworksResponse - */ -class ListUsableSubnetworksResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of usable subnetworks in the specified network project. - * - * Generated from protobuf field repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - private $subnetworks; - /** - * This token allows you to get the next page of results for list requests. - * If the number of results is larger than `page_size`, use the - * `next_page_token` as a value for the query parameter `page_token` in the - * next request. The value will become empty when there are no more pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Container\V1\UsableSubnetwork>|\Google\Protobuf\Internal\RepeatedField $subnetworks - * A list of usable subnetworks in the specified network project. - * @type string $next_page_token - * This token allows you to get the next page of results for list requests. - * If the number of results is larger than `page_size`, use the - * `next_page_token` as a value for the query parameter `page_token` in the - * next request. The value will become empty when there are no more pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * A list of usable subnetworks in the specified network project. - * - * Generated from protobuf field repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSubnetworks() - { - return $this->subnetworks; - } - - /** - * A list of usable subnetworks in the specified network project. - * - * Generated from protobuf field repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - * @param array<\Google\Cloud\Container\V1\UsableSubnetwork>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSubnetworks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\UsableSubnetwork::class); - $this->subnetworks = $arr; - - return $this; - } - - /** - * This token allows you to get the next page of results for list requests. - * If the number of results is larger than `page_size`, use the - * `next_page_token` as a value for the query parameter `page_token` in the - * next request. The value will become empty when there are no more pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * This token allows you to get the next page of results for list requests. - * If the number of results is larger than `page_size`, use the - * `next_page_token` as a value for the query parameter `page_token` in the - * next request. The value will become empty when there are no more pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LocalNvmeSsdBlockConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LocalNvmeSsdBlockConfig.php deleted file mode 100644 index 746eefad3d03..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LocalNvmeSsdBlockConfig.php +++ /dev/null @@ -1,92 +0,0 @@ -google.container.v1.LocalNvmeSsdBlockConfig - */ -class LocalNvmeSsdBlockConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The number of raw-block local NVMe SSD disks to be attached to the node. - * Each local SSD is 375 GB in size. If zero, it means no raw-block local NVMe - * 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 = 1; - */ - protected $local_ssd_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $local_ssd_count - * The number of raw-block local NVMe SSD disks to be attached to the node. - * Each local SSD is 375 GB in size. If zero, it means no raw-block local NVMe - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The number of raw-block local NVMe SSD disks to be attached to the node. - * Each local SSD is 375 GB in size. If zero, it means no raw-block local NVMe - * 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 = 1; - * @return int - */ - public function getLocalSsdCount() - { - return $this->local_ssd_count; - } - - /** - * The number of raw-block local NVMe SSD disks to be attached to the node. - * Each local SSD is 375 GB in size. If zero, it means no raw-block local NVMe - * 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 = 1; - * @param int $var - * @return $this - */ - public function setLocalSsdCount($var) - { - GPBUtil::checkInt32($var); - $this->local_ssd_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig.php deleted file mode 100644 index 30537335ecb7..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.LoggingComponentConfig - */ -class LoggingComponentConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Select components to collect logs. An empty set would disable all logging. - * - * Generated from protobuf field repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - */ - private $enable_components; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $enable_components - * Select components to collect logs. An empty set would disable all logging. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Select components to collect logs. An empty set would disable all logging. - * - * Generated from protobuf field repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEnableComponents() - { - return $this->enable_components; - } - - /** - * Select components to collect logs. An empty set would disable all logging. - * - * Generated from protobuf field repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEnableComponents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Container\V1\LoggingComponentConfig\Component::class); - $this->enable_components = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig/Component.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig/Component.php deleted file mode 100644 index b8e91d33ba74..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig/Component.php +++ /dev/null @@ -1,85 +0,0 @@ -google.container.v1.LoggingComponentConfig.Component - */ -class Component -{ - /** - * Default value. This shouldn't be used. - * - * Generated from protobuf enum COMPONENT_UNSPECIFIED = 0; - */ - const COMPONENT_UNSPECIFIED = 0; - /** - * system components - * - * Generated from protobuf enum SYSTEM_COMPONENTS = 1; - */ - const SYSTEM_COMPONENTS = 1; - /** - * workloads - * - * Generated from protobuf enum WORKLOADS = 2; - */ - const WORKLOADS = 2; - /** - * kube-apiserver - * - * Generated from protobuf enum APISERVER = 3; - */ - const APISERVER = 3; - /** - * kube-scheduler - * - * Generated from protobuf enum SCHEDULER = 4; - */ - const SCHEDULER = 4; - /** - * kube-controller-manager - * - * Generated from protobuf enum CONTROLLER_MANAGER = 5; - */ - const CONTROLLER_MANAGER = 5; - - private static $valueToName = [ - self::COMPONENT_UNSPECIFIED => 'COMPONENT_UNSPECIFIED', - self::SYSTEM_COMPONENTS => 'SYSTEM_COMPONENTS', - self::WORKLOADS => 'WORKLOADS', - self::APISERVER => 'APISERVER', - self::SCHEDULER => 'SCHEDULER', - self::CONTROLLER_MANAGER => 'CONTROLLER_MANAGER', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Component::class, \Google\Cloud\Container\V1\LoggingComponentConfig_Component::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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/LoggingVariantConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig.php deleted file mode 100644 index 1121954e01e5..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.LoggingVariantConfig - */ -class LoggingVariantConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Logging variant deployed on nodes. - * - * Generated from protobuf field .google.container.v1.LoggingVariantConfig.Variant variant = 1; - */ - protected $variant = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $variant - * Logging variant deployed on nodes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Logging variant deployed on nodes. - * - * Generated from protobuf field .google.container.v1.LoggingVariantConfig.Variant variant = 1; - * @return int - */ - public function getVariant() - { - return $this->variant; - } - - /** - * Logging variant deployed on nodes. - * - * Generated from protobuf field .google.container.v1.LoggingVariantConfig.Variant variant = 1; - * @param int $var - * @return $this - */ - public function setVariant($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\LoggingVariantConfig\Variant::class); - $this->variant = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig/Variant.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig/Variant.php deleted file mode 100644 index dbff8651edd2..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig/Variant.php +++ /dev/null @@ -1,68 +0,0 @@ -google.container.v1.LoggingVariantConfig.Variant - */ -class Variant -{ - /** - * Default value. This shouldn't be used. - * - * Generated from protobuf enum VARIANT_UNSPECIFIED = 0; - */ - const VARIANT_UNSPECIFIED = 0; - /** - * default logging variant. - * - * Generated from protobuf enum DEFAULT = 1; - */ - const PBDEFAULT = 1; - /** - * maximum logging throughput variant. - * - * Generated from protobuf enum MAX_THROUGHPUT = 2; - */ - const MAX_THROUGHPUT = 2; - - private static $valueToName = [ - self::VARIANT_UNSPECIFIED => 'VARIANT_UNSPECIFIED', - self::PBDEFAULT => 'DEFAULT', - self::MAX_THROUGHPUT => 'MAX_THROUGHPUT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - $pbconst = __CLASS__. '::PB' . strtoupper($name); - if (!defined($pbconst)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($pbconst); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Variant::class, \Google\Cloud\Container\V1\LoggingVariantConfig_Variant::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig_Variant.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig_Variant.php deleted file mode 100644 index 1ecc371fa21c..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig_Variant.php +++ /dev/null @@ -1,16 +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/ManagedPrometheusConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ManagedPrometheusConfig.php deleted file mode 100644 index f4876f921559..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ManagedPrometheusConfig.php +++ /dev/null @@ -1,68 +0,0 @@ -google.container.v1.ManagedPrometheusConfig - */ -class ManagedPrometheusConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Enable Managed Collection. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Enable Managed Collection. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Enable Managed Collection. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Enable Managed Collection. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuth.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuth.php deleted file mode 100644 index c00aa522ff6a..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuth.php +++ /dev/null @@ -1,331 +0,0 @@ -google.container.v1.MasterAuth - */ -class MasterAuth extends \Google\Protobuf\Internal\Message -{ - /** - * The username to use for HTTP basic authentication to the master endpoint. - * For clusters v1.6.0 and later, basic authentication can be disabled by - * leaving username unspecified (or setting it to the empty string). - * Warning: basic authentication is deprecated, and will be removed in GKE - * control plane versions 1.19 and newer. For a list of recommended - * authentication methods, see: - * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication - * - * Generated from protobuf field string username = 1 [deprecated = true]; - * @deprecated - */ - protected $username = ''; - /** - * The password to use for HTTP basic authentication to the master endpoint. - * Because the master endpoint is open to the Internet, you should create a - * strong password. If a password is provided for cluster creation, username - * must be non-empty. - * Warning: basic authentication is deprecated, and will be removed in GKE - * control plane versions 1.19 and newer. For a list of recommended - * authentication methods, see: - * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication - * - * Generated from protobuf field string password = 2 [deprecated = true]; - * @deprecated - */ - protected $password = ''; - /** - * Configuration for client certificate authentication on the cluster. For - * clusters before v1.12, if no configuration is specified, a client - * certificate is issued. - * - * Generated from protobuf field .google.container.v1.ClientCertificateConfig client_certificate_config = 3; - */ - protected $client_certificate_config = null; - /** - * [Output only] Base64-encoded public certificate that is the root of - * trust for the cluster. - * - * Generated from protobuf field string cluster_ca_certificate = 100; - */ - protected $cluster_ca_certificate = ''; - /** - * [Output only] Base64-encoded public certificate used by clients to - * authenticate to the cluster endpoint. - * - * Generated from protobuf field string client_certificate = 101; - */ - protected $client_certificate = ''; - /** - * [Output only] Base64-encoded private key used by clients to authenticate - * to the cluster endpoint. - * - * Generated from protobuf field string client_key = 102; - */ - protected $client_key = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $username - * The username to use for HTTP basic authentication to the master endpoint. - * For clusters v1.6.0 and later, basic authentication can be disabled by - * leaving username unspecified (or setting it to the empty string). - * Warning: basic authentication is deprecated, and will be removed in GKE - * control plane versions 1.19 and newer. For a list of recommended - * authentication methods, see: - * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication - * @type string $password - * The password to use for HTTP basic authentication to the master endpoint. - * Because the master endpoint is open to the Internet, you should create a - * strong password. If a password is provided for cluster creation, username - * must be non-empty. - * Warning: basic authentication is deprecated, and will be removed in GKE - * control plane versions 1.19 and newer. For a list of recommended - * authentication methods, see: - * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication - * @type \Google\Cloud\Container\V1\ClientCertificateConfig $client_certificate_config - * Configuration for client certificate authentication on the cluster. For - * clusters before v1.12, if no configuration is specified, a client - * certificate is issued. - * @type string $cluster_ca_certificate - * [Output only] Base64-encoded public certificate that is the root of - * trust for the cluster. - * @type string $client_certificate - * [Output only] Base64-encoded public certificate used by clients to - * authenticate to the cluster endpoint. - * @type string $client_key - * [Output only] Base64-encoded private key used by clients to authenticate - * to the cluster endpoint. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The username to use for HTTP basic authentication to the master endpoint. - * For clusters v1.6.0 and later, basic authentication can be disabled by - * leaving username unspecified (or setting it to the empty string). - * Warning: basic authentication is deprecated, and will be removed in GKE - * control plane versions 1.19 and newer. For a list of recommended - * authentication methods, see: - * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication - * - * Generated from protobuf field string username = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getUsername() - { - @trigger_error('username is deprecated.', E_USER_DEPRECATED); - return $this->username; - } - - /** - * The username to use for HTTP basic authentication to the master endpoint. - * For clusters v1.6.0 and later, basic authentication can be disabled by - * leaving username unspecified (or setting it to the empty string). - * Warning: basic authentication is deprecated, and will be removed in GKE - * control plane versions 1.19 and newer. For a list of recommended - * authentication methods, see: - * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication - * - * Generated from protobuf field string username = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setUsername($var) - { - @trigger_error('username is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->username = $var; - - return $this; - } - - /** - * The password to use for HTTP basic authentication to the master endpoint. - * Because the master endpoint is open to the Internet, you should create a - * strong password. If a password is provided for cluster creation, username - * must be non-empty. - * Warning: basic authentication is deprecated, and will be removed in GKE - * control plane versions 1.19 and newer. For a list of recommended - * authentication methods, see: - * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication - * - * Generated from protobuf field string password = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getPassword() - { - @trigger_error('password is deprecated.', E_USER_DEPRECATED); - return $this->password; - } - - /** - * The password to use for HTTP basic authentication to the master endpoint. - * Because the master endpoint is open to the Internet, you should create a - * strong password. If a password is provided for cluster creation, username - * must be non-empty. - * Warning: basic authentication is deprecated, and will be removed in GKE - * control plane versions 1.19 and newer. For a list of recommended - * authentication methods, see: - * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication - * - * Generated from protobuf field string password = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setPassword($var) - { - @trigger_error('password is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->password = $var; - - return $this; - } - - /** - * Configuration for client certificate authentication on the cluster. For - * clusters before v1.12, if no configuration is specified, a client - * certificate is issued. - * - * Generated from protobuf field .google.container.v1.ClientCertificateConfig client_certificate_config = 3; - * @return \Google\Cloud\Container\V1\ClientCertificateConfig|null - */ - public function getClientCertificateConfig() - { - return $this->client_certificate_config; - } - - public function hasClientCertificateConfig() - { - return isset($this->client_certificate_config); - } - - public function clearClientCertificateConfig() - { - unset($this->client_certificate_config); - } - - /** - * Configuration for client certificate authentication on the cluster. For - * clusters before v1.12, if no configuration is specified, a client - * certificate is issued. - * - * Generated from protobuf field .google.container.v1.ClientCertificateConfig client_certificate_config = 3; - * @param \Google\Cloud\Container\V1\ClientCertificateConfig $var - * @return $this - */ - public function setClientCertificateConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ClientCertificateConfig::class); - $this->client_certificate_config = $var; - - return $this; - } - - /** - * [Output only] Base64-encoded public certificate that is the root of - * trust for the cluster. - * - * Generated from protobuf field string cluster_ca_certificate = 100; - * @return string - */ - public function getClusterCaCertificate() - { - return $this->cluster_ca_certificate; - } - - /** - * [Output only] Base64-encoded public certificate that is the root of - * trust for the cluster. - * - * Generated from protobuf field string cluster_ca_certificate = 100; - * @param string $var - * @return $this - */ - public function setClusterCaCertificate($var) - { - GPBUtil::checkString($var, True); - $this->cluster_ca_certificate = $var; - - return $this; - } - - /** - * [Output only] Base64-encoded public certificate used by clients to - * authenticate to the cluster endpoint. - * - * Generated from protobuf field string client_certificate = 101; - * @return string - */ - public function getClientCertificate() - { - return $this->client_certificate; - } - - /** - * [Output only] Base64-encoded public certificate used by clients to - * authenticate to the cluster endpoint. - * - * Generated from protobuf field string client_certificate = 101; - * @param string $var - * @return $this - */ - public function setClientCertificate($var) - { - GPBUtil::checkString($var, True); - $this->client_certificate = $var; - - return $this; - } - - /** - * [Output only] Base64-encoded private key used by clients to authenticate - * to the cluster endpoint. - * - * Generated from protobuf field string client_key = 102; - * @return string - */ - public function getClientKey() - { - return $this->client_key; - } - - /** - * [Output only] Base64-encoded private key used by clients to authenticate - * to the cluster endpoint. - * - * Generated from protobuf field string client_key = 102; - * @param string $var - * @return $this - */ - public function setClientKey($var) - { - GPBUtil::checkString($var, True); - $this->client_key = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig.php deleted file mode 100644 index f2d4ee45311c..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig.php +++ /dev/null @@ -1,152 +0,0 @@ -google.container.v1.MasterAuthorizedNetworksConfig - */ -class MasterAuthorizedNetworksConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether or not master authorized networks is enabled. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - /** - * cidr_blocks define up to 50 external networks that could access - * Kubernetes master through HTTPS. - * - * Generated from protobuf field repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - */ - private $cidr_blocks; - /** - * Whether master is accessbile via Google Compute Engine Public IP addresses. - * - * Generated from protobuf field optional bool gcp_public_cidrs_access_enabled = 3; - */ - protected $gcp_public_cidrs_access_enabled = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether or not master authorized networks is enabled. - * @type array<\Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig\CidrBlock>|\Google\Protobuf\Internal\RepeatedField $cidr_blocks - * cidr_blocks define up to 50 external networks that could access - * Kubernetes master through HTTPS. - * @type bool $gcp_public_cidrs_access_enabled - * Whether master is accessbile via Google Compute Engine Public IP addresses. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether or not master authorized networks is enabled. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether or not master authorized networks is enabled. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - - /** - * cidr_blocks define up to 50 external networks that could access - * Kubernetes master through HTTPS. - * - * Generated from protobuf field repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCidrBlocks() - { - return $this->cidr_blocks; - } - - /** - * cidr_blocks define up to 50 external networks that could access - * Kubernetes master through HTTPS. - * - * Generated from protobuf field repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * @param array<\Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig\CidrBlock>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCidrBlocks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig\CidrBlock::class); - $this->cidr_blocks = $arr; - - return $this; - } - - /** - * Whether master is accessbile via Google Compute Engine Public IP addresses. - * - * Generated from protobuf field optional bool gcp_public_cidrs_access_enabled = 3; - * @return bool - */ - public function getGcpPublicCidrsAccessEnabled() - { - return isset($this->gcp_public_cidrs_access_enabled) ? $this->gcp_public_cidrs_access_enabled : false; - } - - public function hasGcpPublicCidrsAccessEnabled() - { - return isset($this->gcp_public_cidrs_access_enabled); - } - - public function clearGcpPublicCidrsAccessEnabled() - { - unset($this->gcp_public_cidrs_access_enabled); - } - - /** - * Whether master is accessbile via Google Compute Engine Public IP addresses. - * - * Generated from protobuf field optional bool gcp_public_cidrs_access_enabled = 3; - * @param bool $var - * @return $this - */ - public function setGcpPublicCidrsAccessEnabled($var) - { - GPBUtil::checkBool($var); - $this->gcp_public_cidrs_access_enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig/CidrBlock.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig/CidrBlock.php deleted file mode 100644 index 8ab57c26dfce..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig/CidrBlock.php +++ /dev/null @@ -1,104 +0,0 @@ -google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock - */ -class CidrBlock extends \Google\Protobuf\Internal\Message -{ - /** - * display_name is an optional field for users to identify CIDR blocks. - * - * Generated from protobuf field string display_name = 1; - */ - protected $display_name = ''; - /** - * cidr_block must be specified in CIDR notation. - * - * Generated from protobuf field string cidr_block = 2; - */ - protected $cidr_block = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * display_name is an optional field for users to identify CIDR blocks. - * @type string $cidr_block - * cidr_block must be specified in CIDR notation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * display_name is an optional field for users to identify CIDR blocks. - * - * Generated from protobuf field string display_name = 1; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * display_name is an optional field for users to identify CIDR blocks. - * - * Generated from protobuf field string display_name = 1; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * cidr_block must be specified in CIDR notation. - * - * Generated from protobuf field string cidr_block = 2; - * @return string - */ - public function getCidrBlock() - { - return $this->cidr_block; - } - - /** - * cidr_block must be specified in CIDR notation. - * - * Generated from protobuf field string cidr_block = 2; - * @param string $var - * @return $this - */ - public function setCidrBlock($var) - { - GPBUtil::checkString($var, True); - $this->cidr_block = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CidrBlock::class, \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig_CidrBlock::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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 38e5ca512685..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringComponentConfig.php +++ /dev/null @@ -1,71 +0,0 @@ -google.container.v1.MonitoringComponentConfig - */ -class MonitoringComponentConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Select components to collect metrics. An empty set would disable all - * monitoring. - * - * Generated from protobuf field repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - */ - private $enable_components; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $enable_components - * Select components to collect metrics. An empty set would disable all - * monitoring. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Select components to collect metrics. An empty set would disable all - * monitoring. - * - * Generated from protobuf field repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEnableComponents() - { - return $this->enable_components; - } - - /** - * Select components to collect metrics. An empty set would disable all - * monitoring. - * - * Generated from protobuf field repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEnableComponents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Container\V1\MonitoringComponentConfig\Component::class); - $this->enable_components = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringComponentConfig/Component.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringComponentConfig/Component.php deleted file mode 100644 index 8498ebe76dea..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringComponentConfig/Component.php +++ /dev/null @@ -1,78 +0,0 @@ -google.container.v1.MonitoringComponentConfig.Component - */ -class Component -{ - /** - * Default value. This shouldn't be used. - * - * Generated from protobuf enum COMPONENT_UNSPECIFIED = 0; - */ - const COMPONENT_UNSPECIFIED = 0; - /** - * system components - * - * Generated from protobuf enum SYSTEM_COMPONENTS = 1; - */ - const SYSTEM_COMPONENTS = 1; - /** - * kube-apiserver - * - * Generated from protobuf enum APISERVER = 3; - */ - const APISERVER = 3; - /** - * kube-scheduler - * - * Generated from protobuf enum SCHEDULER = 4; - */ - const SCHEDULER = 4; - /** - * kube-controller-manager - * - * Generated from protobuf enum CONTROLLER_MANAGER = 5; - */ - const CONTROLLER_MANAGER = 5; - - private static $valueToName = [ - self::COMPONENT_UNSPECIFIED => 'COMPONENT_UNSPECIFIED', - self::SYSTEM_COMPONENTS => 'SYSTEM_COMPONENTS', - self::APISERVER => 'APISERVER', - self::SCHEDULER => 'SCHEDULER', - self::CONTROLLER_MANAGER => 'CONTROLLER_MANAGER', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Component::class, \Google\Cloud\Container\V1\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; - /** - * Enable Google Cloud Managed Service for Prometheus - * in the cluster. - * - * Generated from protobuf field .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; - */ - protected $managed_prometheus_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\MonitoringComponentConfig $component_config - * Monitoring components configuration - * @type \Google\Cloud\Container\V1\ManagedPrometheusConfig $managed_prometheus_config - * Enable Google Cloud Managed Service for Prometheus - * in the cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Monitoring components configuration - * - * Generated from protobuf field .google.container.v1.MonitoringComponentConfig component_config = 1; - * @return \Google\Cloud\Container\V1\MonitoringComponentConfig|null - */ - public function getComponentConfig() - { - return $this->component_config; - } - - public function hasComponentConfig() - { - return isset($this->component_config); - } - - public function clearComponentConfig() - { - unset($this->component_config); - } - - /** - * Monitoring components configuration - * - * Generated from protobuf field .google.container.v1.MonitoringComponentConfig component_config = 1; - * @param \Google\Cloud\Container\V1\MonitoringComponentConfig $var - * @return $this - */ - public function setComponentConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MonitoringComponentConfig::class); - $this->component_config = $var; - - return $this; - } - - /** - * Enable Google Cloud Managed Service for Prometheus - * in the cluster. - * - * Generated from protobuf field .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; - * @return \Google\Cloud\Container\V1\ManagedPrometheusConfig|null - */ - public function getManagedPrometheusConfig() - { - return $this->managed_prometheus_config; - } - - public function hasManagedPrometheusConfig() - { - return isset($this->managed_prometheus_config); - } - - public function clearManagedPrometheusConfig() - { - unset($this->managed_prometheus_config); - } - - /** - * Enable Google Cloud Managed Service for Prometheus - * in the cluster. - * - * Generated from protobuf field .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; - * @param \Google\Cloud\Container\V1\ManagedPrometheusConfig $var - * @return $this - */ - public function setManagedPrometheusConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ManagedPrometheusConfig::class); - $this->managed_prometheus_config = $var; - - return $this; - } - -} - 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 e7efa5e746e0..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig.php +++ /dev/null @@ -1,473 +0,0 @@ -google.container.v1.NetworkConfig - */ -class NetworkConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The relative name of the Google Compute Engine - * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) - * to which the cluster is connected. Example: - * projects/my-project/global/networks/my-network - * - * Generated from protobuf field string network = 1; - */ - protected $network = ''; - /** - * Output only. The relative name of the Google Compute Engine - * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the - * cluster is connected. Example: - * projects/my-project/regions/us-central1/subnetworks/my-subnet - * - * Generated from protobuf field string subnetwork = 2; - */ - protected $subnetwork = ''; - /** - * Whether Intra-node visibility is enabled for this cluster. - * This makes same node pod to pod traffic visible for VPC network. - * - * Generated from protobuf field bool enable_intra_node_visibility = 5; - */ - protected $enable_intra_node_visibility = false; - /** - * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules - * will be disabled when default_snat_status is disabled. When disabled is set - * to false, default IP masquerade rules will be applied to the nodes to - * prevent sNAT on cluster internal traffic. - * - * Generated from protobuf field .google.container.v1.DefaultSnatStatus default_snat_status = 7; - */ - protected $default_snat_status = null; - /** - * Whether L4ILB Subsetting is enabled for this cluster. - * - * Generated from protobuf field bool enable_l4ilb_subsetting = 10; - */ - protected $enable_l4ilb_subsetting = false; - /** - * The desired datapath provider for this cluster. By default, uses the - * IPTables-based kube-proxy implementation. - * - * Generated from protobuf field .google.container.v1.DatapathProvider datapath_provider = 11; - */ - protected $datapath_provider = 0; - /** - * The desired state of IPv6 connectivity to Google Services. - * By default, no private IPv6 access to or from Google Services (all access - * will be via IPv4) - * - * Generated from protobuf field .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; - */ - protected $private_ipv6_google_access = 0; - /** - * DNSConfig contains clusterDNS config for this cluster. - * - * Generated from protobuf field .google.container.v1.DNSConfig dns_config = 13; - */ - protected $dns_config = null; - /** - * ServiceExternalIPsConfig specifies if services with externalIPs field are - * blocked or not. - * - * Generated from protobuf field .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; - */ - protected $service_external_ips_config = null; - /** - * GatewayAPIConfig contains the desired config of Gateway API on this - * cluster. - * - * Generated from protobuf field .google.container.v1.GatewayAPIConfig gateway_api_config = 16; - */ - protected $gateway_api_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $network - * Output only. The relative name of the Google Compute Engine - * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) - * to which the cluster is connected. Example: - * projects/my-project/global/networks/my-network - * @type string $subnetwork - * Output only. The relative name of the Google Compute Engine - * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the - * cluster is connected. Example: - * projects/my-project/regions/us-central1/subnetworks/my-subnet - * @type bool $enable_intra_node_visibility - * Whether Intra-node visibility is enabled for this cluster. - * This makes same node pod to pod traffic visible for VPC network. - * @type \Google\Cloud\Container\V1\DefaultSnatStatus $default_snat_status - * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules - * will be disabled when default_snat_status is disabled. When disabled is set - * to false, default IP masquerade rules will be applied to the nodes to - * prevent sNAT on cluster internal traffic. - * @type bool $enable_l4ilb_subsetting - * Whether L4ILB Subsetting is enabled for this cluster. - * @type int $datapath_provider - * The desired datapath provider for this cluster. By default, uses the - * IPTables-based kube-proxy implementation. - * @type int $private_ipv6_google_access - * The desired state of IPv6 connectivity to Google Services. - * By default, no private IPv6 access to or from Google Services (all access - * will be via IPv4) - * @type \Google\Cloud\Container\V1\DNSConfig $dns_config - * DNSConfig contains clusterDNS config for this cluster. - * @type \Google\Cloud\Container\V1\ServiceExternalIPsConfig $service_external_ips_config - * ServiceExternalIPsConfig specifies if services with externalIPs field are - * blocked or not. - * @type \Google\Cloud\Container\V1\GatewayAPIConfig $gateway_api_config - * GatewayAPIConfig contains the desired config of Gateway API on this - * cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The relative name of the Google Compute Engine - * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) - * to which the cluster is connected. Example: - * projects/my-project/global/networks/my-network - * - * Generated from protobuf field string network = 1; - * @return string - */ - public function getNetwork() - { - return $this->network; - } - - /** - * Output only. The relative name of the Google Compute Engine - * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) - * to which the cluster is connected. Example: - * projects/my-project/global/networks/my-network - * - * Generated from protobuf field string network = 1; - * @param string $var - * @return $this - */ - public function setNetwork($var) - { - GPBUtil::checkString($var, True); - $this->network = $var; - - return $this; - } - - /** - * Output only. The relative name of the Google Compute Engine - * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the - * cluster is connected. Example: - * projects/my-project/regions/us-central1/subnetworks/my-subnet - * - * Generated from protobuf field string subnetwork = 2; - * @return string - */ - public function getSubnetwork() - { - return $this->subnetwork; - } - - /** - * Output only. The relative name of the Google Compute Engine - * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the - * cluster is connected. Example: - * projects/my-project/regions/us-central1/subnetworks/my-subnet - * - * Generated from protobuf field string subnetwork = 2; - * @param string $var - * @return $this - */ - public function setSubnetwork($var) - { - GPBUtil::checkString($var, True); - $this->subnetwork = $var; - - return $this; - } - - /** - * Whether Intra-node visibility is enabled for this cluster. - * This makes same node pod to pod traffic visible for VPC network. - * - * Generated from protobuf field bool enable_intra_node_visibility = 5; - * @return bool - */ - public function getEnableIntraNodeVisibility() - { - return $this->enable_intra_node_visibility; - } - - /** - * Whether Intra-node visibility is enabled for this cluster. - * This makes same node pod to pod traffic visible for VPC network. - * - * Generated from protobuf field bool enable_intra_node_visibility = 5; - * @param bool $var - * @return $this - */ - public function setEnableIntraNodeVisibility($var) - { - GPBUtil::checkBool($var); - $this->enable_intra_node_visibility = $var; - - return $this; - } - - /** - * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules - * will be disabled when default_snat_status is disabled. When disabled is set - * to false, default IP masquerade rules will be applied to the nodes to - * prevent sNAT on cluster internal traffic. - * - * Generated from protobuf field .google.container.v1.DefaultSnatStatus default_snat_status = 7; - * @return \Google\Cloud\Container\V1\DefaultSnatStatus|null - */ - public function getDefaultSnatStatus() - { - return $this->default_snat_status; - } - - public function hasDefaultSnatStatus() - { - return isset($this->default_snat_status); - } - - public function clearDefaultSnatStatus() - { - unset($this->default_snat_status); - } - - /** - * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules - * will be disabled when default_snat_status is disabled. When disabled is set - * to false, default IP masquerade rules will be applied to the nodes to - * prevent sNAT on cluster internal traffic. - * - * Generated from protobuf field .google.container.v1.DefaultSnatStatus default_snat_status = 7; - * @param \Google\Cloud\Container\V1\DefaultSnatStatus $var - * @return $this - */ - public function setDefaultSnatStatus($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\DefaultSnatStatus::class); - $this->default_snat_status = $var; - - return $this; - } - - /** - * Whether L4ILB Subsetting is enabled for this cluster. - * - * Generated from protobuf field bool enable_l4ilb_subsetting = 10; - * @return bool - */ - public function getEnableL4IlbSubsetting() - { - return $this->enable_l4ilb_subsetting; - } - - /** - * Whether L4ILB Subsetting is enabled for this cluster. - * - * Generated from protobuf field bool enable_l4ilb_subsetting = 10; - * @param bool $var - * @return $this - */ - public function setEnableL4IlbSubsetting($var) - { - GPBUtil::checkBool($var); - $this->enable_l4ilb_subsetting = $var; - - return $this; - } - - /** - * The desired datapath provider for this cluster. By default, uses the - * IPTables-based kube-proxy implementation. - * - * Generated from protobuf field .google.container.v1.DatapathProvider datapath_provider = 11; - * @return int - */ - public function getDatapathProvider() - { - return $this->datapath_provider; - } - - /** - * The desired datapath provider for this cluster. By default, uses the - * IPTables-based kube-proxy implementation. - * - * Generated from protobuf field .google.container.v1.DatapathProvider datapath_provider = 11; - * @param int $var - * @return $this - */ - public function setDatapathProvider($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\DatapathProvider::class); - $this->datapath_provider = $var; - - return $this; - } - - /** - * The desired state of IPv6 connectivity to Google Services. - * By default, no private IPv6 access to or from Google Services (all access - * will be via IPv4) - * - * Generated from protobuf field .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; - * @return int - */ - public function getPrivateIpv6GoogleAccess() - { - return $this->private_ipv6_google_access; - } - - /** - * The desired state of IPv6 connectivity to Google Services. - * By default, no private IPv6 access to or from Google Services (all access - * will be via IPv4) - * - * Generated from protobuf field .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; - * @param int $var - * @return $this - */ - public function setPrivateIpv6GoogleAccess($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\PrivateIPv6GoogleAccess::class); - $this->private_ipv6_google_access = $var; - - return $this; - } - - /** - * DNSConfig contains clusterDNS config for this cluster. - * - * Generated from protobuf field .google.container.v1.DNSConfig dns_config = 13; - * @return \Google\Cloud\Container\V1\DNSConfig|null - */ - public function getDnsConfig() - { - return $this->dns_config; - } - - public function hasDnsConfig() - { - return isset($this->dns_config); - } - - public function clearDnsConfig() - { - unset($this->dns_config); - } - - /** - * DNSConfig contains clusterDNS config for this cluster. - * - * Generated from protobuf field .google.container.v1.DNSConfig dns_config = 13; - * @param \Google\Cloud\Container\V1\DNSConfig $var - * @return $this - */ - public function setDnsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\DNSConfig::class); - $this->dns_config = $var; - - return $this; - } - - /** - * ServiceExternalIPsConfig specifies if services with externalIPs field are - * blocked or not. - * - * Generated from protobuf field .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; - * @return \Google\Cloud\Container\V1\ServiceExternalIPsConfig|null - */ - public function getServiceExternalIpsConfig() - { - return $this->service_external_ips_config; - } - - public function hasServiceExternalIpsConfig() - { - return isset($this->service_external_ips_config); - } - - public function clearServiceExternalIpsConfig() - { - unset($this->service_external_ips_config); - } - - /** - * ServiceExternalIPsConfig specifies if services with externalIPs field are - * blocked or not. - * - * Generated from protobuf field .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; - * @param \Google\Cloud\Container\V1\ServiceExternalIPsConfig $var - * @return $this - */ - public function setServiceExternalIpsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ServiceExternalIPsConfig::class); - $this->service_external_ips_config = $var; - - return $this; - } - - /** - * GatewayAPIConfig contains the desired config of Gateway API on this - * cluster. - * - * Generated from protobuf field .google.container.v1.GatewayAPIConfig gateway_api_config = 16; - * @return \Google\Cloud\Container\V1\GatewayAPIConfig|null - */ - public function getGatewayApiConfig() - { - return $this->gateway_api_config; - } - - public function hasGatewayApiConfig() - { - return isset($this->gateway_api_config); - } - - public function clearGatewayApiConfig() - { - unset($this->gateway_api_config); - } - - /** - * GatewayAPIConfig contains the desired config of Gateway API on this - * cluster. - * - * Generated from protobuf field .google.container.v1.GatewayAPIConfig gateway_api_config = 16; - * @param \Google\Cloud\Container\V1\GatewayAPIConfig $var - * @return $this - */ - public function setGatewayApiConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GatewayAPIConfig::class); - $this->gateway_api_config = $var; - - return $this; - } - -} - 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.NetworkTags - */ -class NetworkTags extends \Google\Protobuf\Internal\Message -{ - /** - * List of network tags. - * - * Generated from protobuf field repeated string tags = 1; - */ - private $tags; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $tags - * List of network tags. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * List of network tags. - * - * Generated from protobuf field repeated string tags = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTags() - { - return $this->tags; - } - - /** - * List of network tags. - * - * Generated from protobuf field repeated string tags = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfig.php deleted file mode 100644 index 0489d96cbf8e..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfig.php +++ /dev/null @@ -1,1669 +0,0 @@ -google.container.v1.NodeConfig - */ -class NodeConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The name of a Google Compute Engine [machine - * type](https://cloud.google.com/compute/docs/machine-types) - * If unspecified, the default machine type is `e2-medium`. - * - * Generated from protobuf field string machine_type = 1; - */ - protected $machine_type = ''; - /** - * Size of the disk attached to each node, specified in GB. - * The smallest allowed disk size is 10GB. - * If unspecified, the default disk size is 100GB. - * - * Generated from protobuf field int32 disk_size_gb = 2; - */ - protected $disk_size_gb = 0; - /** - * The set of Google API scopes to be made available on all of the - * node VMs under the "default" service account. - * The following scopes are recommended, but not required, and by default are - * not included: - * * `https://www.googleapis.com/auth/compute` is required for mounting - * persistent storage on your nodes. - * * `https://www.googleapis.com/auth/devstorage.read_only` is required for - * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). - * If unspecified, no scopes are added, unless Cloud Logging or Cloud - * Monitoring are enabled, in which case their required scopes will be added. - * - * Generated from protobuf field repeated string oauth_scopes = 3; - */ - private $oauth_scopes; - /** - * The Google Cloud Platform Service Account to be used by the node VMs. - * Specify the email address of the Service Account; otherwise, if no Service - * Account is specified, the "default" service account is used. - * - * Generated from protobuf field string service_account = 9; - */ - protected $service_account = ''; - /** - * The metadata key/value pairs assigned to instances in the cluster. - * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes - * in length. These are reflected as part of a URL in the metadata server. - * Additionally, to avoid ambiguity, keys must not conflict with any other - * metadata keys for the project or be one of the reserved keys: - * - "cluster-location" - * - "cluster-name" - * - "cluster-uid" - * - "configure-sh" - * - "containerd-configure-sh" - * - "enable-os-login" - * - "gci-ensure-gke-docker" - * - "gci-metrics-enabled" - * - "gci-update-strategy" - * - "instance-template" - * - "kube-env" - * - "startup-script" - * - "user-data" - * - "disable-address-manager" - * - "windows-startup-script-ps1" - * - "common-psm1" - * - "k8s-node-setup-psm1" - * - "install-ssh-psm1" - * - "user-profile-psm1" - * Values are free-form strings, and only have meaning as interpreted by - * the image running in the instance. The only restriction placed on them is - * that each value's size must be less than or equal to 32 KB. - * The total size of all keys and values must be less than 512 KB. - * - * Generated from protobuf field map metadata = 4; - */ - private $metadata; - /** - * The image type to use for this node. Note that for a given image type, - * the latest version of it will be used. Please see - * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for - * available image types. - * - * Generated from protobuf field string image_type = 5; - */ - protected $image_type = ''; - /** - * The map of Kubernetes labels (key/value pairs) to be applied to each node. - * These will added in addition to any default label(s) that - * Kubernetes may apply to the node. - * In case of conflict in label keys, the applied set may differ depending on - * the Kubernetes version -- it's best to assume the behavior is undefined - * and conflicts should be avoided. - * For more information, including usage and the valid values, see: - * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - * - * Generated from protobuf field map labels = 6; - */ - private $labels; - /** - * The number of local SSD disks to be attached to the node. - * The limit for this value is dependent upon the maximum number of - * disks available on a machine per zone. See: - * https://cloud.google.com/compute/docs/disks/local-ssd - * for more information. - * - * Generated from protobuf field int32 local_ssd_count = 7; - */ - protected $local_ssd_count = 0; - /** - * The list of instance tags applied to all nodes. Tags are used to identify - * valid sources or targets for network firewalls and are specified by - * the client during cluster or node pool creation. Each tag within the list - * must comply with RFC1035. - * - * Generated from protobuf field repeated string tags = 8; - */ - private $tags; - /** - * Whether the nodes are created as preemptible VM instances. See: - * https://cloud.google.com/compute/docs/instances/preemptible for more - * information about preemptible VM instances. - * - * Generated from protobuf field bool preemptible = 10; - */ - protected $preemptible = false; - /** - * A list of hardware accelerators to be attached to each node. - * See https://cloud.google.com/compute/docs/gpus for more information about - * support for GPUs. - * - * Generated from protobuf field repeated .google.container.v1.AcceleratorConfig accelerators = 11; - */ - private $accelerators; - /** - * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or - * 'pd-balanced') - * If unspecified, the default disk type is 'pd-standard' - * - * Generated from protobuf field string disk_type = 12; - */ - protected $disk_type = ''; - /** - * Minimum CPU platform to be used by this instance. The instance may be - * scheduled on the specified or newer CPU platform. Applicable values are the - * friendly names of CPU platforms, such as - * `minCpuPlatform: "Intel Haswell"` or - * `minCpuPlatform: "Intel Sandy Bridge"`. For more - * information, read [how to specify min CPU - * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) - * - * Generated from protobuf field string min_cpu_platform = 13; - */ - protected $min_cpu_platform = ''; - /** - * The workload metadata configuration for this node. - * - * Generated from protobuf field .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - protected $workload_metadata_config = null; - /** - * List of kubernetes taints to be applied to each node. - * For more information, including usage and the valid values, see: - * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ - * - * Generated from protobuf field repeated .google.container.v1.NodeTaint taints = 15; - */ - private $taints; - /** - * Sandbox configuration for this node. - * - * Generated from protobuf field .google.container.v1.SandboxConfig sandbox_config = 17; - */ - protected $sandbox_config = null; - /** - * Setting this field will assign instances of this - * pool to run on the specified node group. This is useful for running - * workloads on [sole tenant - * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes). - * - * Generated from protobuf field string node_group = 18; - */ - protected $node_group = ''; - /** - * The optional reservation affinity. Setting this field will apply - * the specified [Zonal Compute - * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) - * to this node pool. - * - * Generated from protobuf field .google.container.v1.ReservationAffinity reservation_affinity = 19; - */ - protected $reservation_affinity = null; - /** - * Shielded Instance options. - * - * Generated from protobuf field .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - */ - protected $shielded_instance_config = null; - /** - * Parameters that can be configured on Linux nodes. - * - * Generated from protobuf field .google.container.v1.LinuxNodeConfig linux_node_config = 21; - */ - protected $linux_node_config = null; - /** - * Node kubelet configs. - * - * Generated from protobuf field .google.container.v1.NodeKubeletConfig kubelet_config = 22; - */ - protected $kubelet_config = null; - /** - * The Customer Managed Encryption Key used to encrypt the boot disk attached - * to each node in the node pool. This should be of the form - * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. - * For more information about protecting resources with Cloud KMS Keys please - * see: - * https://cloud.google.com/compute/docs/disks/customer-managed-encryption - * - * Generated from protobuf field string boot_disk_kms_key = 23; - */ - protected $boot_disk_kms_key = ''; - /** - * Google Container File System (image streaming) configs. - * - * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 25; - */ - protected $gcfs_config = null; - /** - * Advanced features for the Compute Engine VM. - * - * Generated from protobuf field .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; - */ - protected $advanced_machine_features = null; - /** - * Enable or disable gvnic in the node pool. - * - * Generated from protobuf field .google.container.v1.VirtualNIC gvnic = 29; - */ - protected $gvnic = null; - /** - * Spot flag for enabling Spot VM, which is a rebrand of - * the existing preemptible flag. - * - * Generated from protobuf field bool spot = 32; - */ - protected $spot = false; - /** - * Confidential nodes config. - * All the nodes in the node pool will be Confidential VM once enabled. - * - * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 35; - */ - protected $confidential_nodes = null; - /** - * Enable or disable NCCL fast socket for the node pool. - * - * Generated from protobuf field optional .google.container.v1.FastSocket fast_socket = 36; - */ - protected $fast_socket = null; - /** - * The resource labels for the node pool to use to annotate any related - * Google Compute Engine resources. - * - * Generated from protobuf field map resource_labels = 37; - */ - private $resource_labels; - /** - * Logging configuration. - * - * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 38; - */ - protected $logging_config = null; - /** - * Parameters that can be configured on Windows nodes. - * - * Generated from protobuf field .google.container.v1.WindowsNodeConfig windows_node_config = 39; - */ - protected $windows_node_config = null; - /** - * Parameters for using raw-block Local NVMe SSDs. - * - * Generated from protobuf field .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; - */ - protected $local_nvme_ssd_block_config = null; - /** - * Parameters for the node ephemeral storage using Local SSDs. - * If unspecified, ephemeral storage is backed by the boot disk. - * - * Generated from protobuf field .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; - */ - protected $ephemeral_storage_local_ssd_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $machine_type - * The name of a Google Compute Engine [machine - * type](https://cloud.google.com/compute/docs/machine-types) - * If unspecified, the default machine type is `e2-medium`. - * @type int $disk_size_gb - * Size of the disk attached to each node, specified in GB. - * The smallest allowed disk size is 10GB. - * If unspecified, the default disk size is 100GB. - * @type array|\Google\Protobuf\Internal\RepeatedField $oauth_scopes - * The set of Google API scopes to be made available on all of the - * node VMs under the "default" service account. - * The following scopes are recommended, but not required, and by default are - * not included: - * * `https://www.googleapis.com/auth/compute` is required for mounting - * persistent storage on your nodes. - * * `https://www.googleapis.com/auth/devstorage.read_only` is required for - * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). - * If unspecified, no scopes are added, unless Cloud Logging or Cloud - * Monitoring are enabled, in which case their required scopes will be added. - * @type string $service_account - * The Google Cloud Platform Service Account to be used by the node VMs. - * Specify the email address of the Service Account; otherwise, if no Service - * Account is specified, the "default" service account is used. - * @type array|\Google\Protobuf\Internal\MapField $metadata - * The metadata key/value pairs assigned to instances in the cluster. - * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes - * in length. These are reflected as part of a URL in the metadata server. - * Additionally, to avoid ambiguity, keys must not conflict with any other - * metadata keys for the project or be one of the reserved keys: - * - "cluster-location" - * - "cluster-name" - * - "cluster-uid" - * - "configure-sh" - * - "containerd-configure-sh" - * - "enable-os-login" - * - "gci-ensure-gke-docker" - * - "gci-metrics-enabled" - * - "gci-update-strategy" - * - "instance-template" - * - "kube-env" - * - "startup-script" - * - "user-data" - * - "disable-address-manager" - * - "windows-startup-script-ps1" - * - "common-psm1" - * - "k8s-node-setup-psm1" - * - "install-ssh-psm1" - * - "user-profile-psm1" - * Values are free-form strings, and only have meaning as interpreted by - * the image running in the instance. The only restriction placed on them is - * that each value's size must be less than or equal to 32 KB. - * The total size of all keys and values must be less than 512 KB. - * @type string $image_type - * The image type to use for this node. Note that for a given image type, - * the latest version of it will be used. Please see - * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for - * available image types. - * @type array|\Google\Protobuf\Internal\MapField $labels - * The map of Kubernetes labels (key/value pairs) to be applied to each node. - * These will added in addition to any default label(s) that - * Kubernetes may apply to the node. - * In case of conflict in label keys, the applied set may differ depending on - * the Kubernetes version -- it's best to assume the behavior is undefined - * and conflicts should be avoided. - * For more information, including usage and the valid values, see: - * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - * @type int $local_ssd_count - * The number of local SSD disks to be attached to the node. - * The limit for this value is dependent upon the maximum number of - * disks available on a machine per zone. See: - * https://cloud.google.com/compute/docs/disks/local-ssd - * for more information. - * @type array|\Google\Protobuf\Internal\RepeatedField $tags - * The list of instance tags applied to all nodes. Tags are used to identify - * valid sources or targets for network firewalls and are specified by - * the client during cluster or node pool creation. Each tag within the list - * must comply with RFC1035. - * @type bool $preemptible - * Whether the nodes are created as preemptible VM instances. See: - * https://cloud.google.com/compute/docs/instances/preemptible for more - * information about preemptible VM instances. - * @type array<\Google\Cloud\Container\V1\AcceleratorConfig>|\Google\Protobuf\Internal\RepeatedField $accelerators - * A list of hardware accelerators to be attached to each node. - * See https://cloud.google.com/compute/docs/gpus for more information about - * support for GPUs. - * @type string $disk_type - * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or - * 'pd-balanced') - * If unspecified, the default disk type is 'pd-standard' - * @type string $min_cpu_platform - * Minimum CPU platform to be used by this instance. The instance may be - * scheduled on the specified or newer CPU platform. Applicable values are the - * friendly names of CPU platforms, such as - * `minCpuPlatform: "Intel Haswell"` or - * `minCpuPlatform: "Intel Sandy Bridge"`. For more - * information, read [how to specify min CPU - * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) - * @type \Google\Cloud\Container\V1\WorkloadMetadataConfig $workload_metadata_config - * The workload metadata configuration for this node. - * @type array<\Google\Cloud\Container\V1\NodeTaint>|\Google\Protobuf\Internal\RepeatedField $taints - * List of kubernetes taints to be applied to each node. - * For more information, including usage and the valid values, see: - * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ - * @type \Google\Cloud\Container\V1\SandboxConfig $sandbox_config - * Sandbox configuration for this node. - * @type string $node_group - * Setting this field will assign instances of this - * pool to run on the specified node group. This is useful for running - * workloads on [sole tenant - * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes). - * @type \Google\Cloud\Container\V1\ReservationAffinity $reservation_affinity - * The optional reservation affinity. Setting this field will apply - * the specified [Zonal Compute - * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) - * to this node pool. - * @type \Google\Cloud\Container\V1\ShieldedInstanceConfig $shielded_instance_config - * Shielded Instance options. - * @type \Google\Cloud\Container\V1\LinuxNodeConfig $linux_node_config - * Parameters that can be configured on Linux nodes. - * @type \Google\Cloud\Container\V1\NodeKubeletConfig $kubelet_config - * Node kubelet configs. - * @type string $boot_disk_kms_key - * The Customer Managed Encryption Key used to encrypt the boot disk attached - * to each node in the node pool. This should be of the form - * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. - * For more information about protecting resources with Cloud KMS Keys please - * see: - * https://cloud.google.com/compute/docs/disks/customer-managed-encryption - * @type \Google\Cloud\Container\V1\GcfsConfig $gcfs_config - * Google Container File System (image streaming) configs. - * @type \Google\Cloud\Container\V1\AdvancedMachineFeatures $advanced_machine_features - * Advanced features for the Compute Engine VM. - * @type \Google\Cloud\Container\V1\VirtualNIC $gvnic - * Enable or disable gvnic in the node pool. - * @type bool $spot - * Spot flag for enabling Spot VM, which is a rebrand of - * the existing preemptible flag. - * @type \Google\Cloud\Container\V1\ConfidentialNodes $confidential_nodes - * Confidential nodes config. - * All the nodes in the node pool will be Confidential VM once enabled. - * @type \Google\Cloud\Container\V1\FastSocket $fast_socket - * Enable or disable NCCL fast socket for the node pool. - * @type array|\Google\Protobuf\Internal\MapField $resource_labels - * The resource labels for the node pool to use to annotate any related - * Google Compute Engine resources. - * @type \Google\Cloud\Container\V1\NodePoolLoggingConfig $logging_config - * Logging configuration. - * @type \Google\Cloud\Container\V1\WindowsNodeConfig $windows_node_config - * Parameters that can be configured on Windows nodes. - * @type \Google\Cloud\Container\V1\LocalNvmeSsdBlockConfig $local_nvme_ssd_block_config - * Parameters for using raw-block Local NVMe SSDs. - * @type \Google\Cloud\Container\V1\EphemeralStorageLocalSsdConfig $ephemeral_storage_local_ssd_config - * Parameters for the node ephemeral storage using Local SSDs. - * If unspecified, ephemeral storage is backed by the boot disk. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The name of a Google Compute Engine [machine - * type](https://cloud.google.com/compute/docs/machine-types) - * If unspecified, the default machine type is `e2-medium`. - * - * Generated from protobuf field string machine_type = 1; - * @return string - */ - public function getMachineType() - { - return $this->machine_type; - } - - /** - * The name of a Google Compute Engine [machine - * type](https://cloud.google.com/compute/docs/machine-types) - * If unspecified, the default machine type is `e2-medium`. - * - * Generated from protobuf field string machine_type = 1; - * @param string $var - * @return $this - */ - public function setMachineType($var) - { - GPBUtil::checkString($var, True); - $this->machine_type = $var; - - return $this; - } - - /** - * Size of the disk attached to each node, specified in GB. - * The smallest allowed disk size is 10GB. - * If unspecified, the default disk size is 100GB. - * - * Generated from protobuf field int32 disk_size_gb = 2; - * @return int - */ - public function getDiskSizeGb() - { - return $this->disk_size_gb; - } - - /** - * Size of the disk attached to each node, specified in GB. - * The smallest allowed disk size is 10GB. - * If unspecified, the default disk size is 100GB. - * - * Generated from protobuf field int32 disk_size_gb = 2; - * @param int $var - * @return $this - */ - public function setDiskSizeGb($var) - { - GPBUtil::checkInt32($var); - $this->disk_size_gb = $var; - - return $this; - } - - /** - * The set of Google API scopes to be made available on all of the - * node VMs under the "default" service account. - * The following scopes are recommended, but not required, and by default are - * not included: - * * `https://www.googleapis.com/auth/compute` is required for mounting - * persistent storage on your nodes. - * * `https://www.googleapis.com/auth/devstorage.read_only` is required for - * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). - * If unspecified, no scopes are added, unless Cloud Logging or Cloud - * Monitoring are enabled, in which case their required scopes will be added. - * - * Generated from protobuf field repeated string oauth_scopes = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOauthScopes() - { - return $this->oauth_scopes; - } - - /** - * The set of Google API scopes to be made available on all of the - * node VMs under the "default" service account. - * The following scopes are recommended, but not required, and by default are - * not included: - * * `https://www.googleapis.com/auth/compute` is required for mounting - * persistent storage on your nodes. - * * `https://www.googleapis.com/auth/devstorage.read_only` is required for - * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). - * If unspecified, no scopes are added, unless Cloud Logging or Cloud - * Monitoring are enabled, in which case their required scopes will be added. - * - * Generated from protobuf field repeated string oauth_scopes = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOauthScopes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->oauth_scopes = $arr; - - return $this; - } - - /** - * The Google Cloud Platform Service Account to be used by the node VMs. - * Specify the email address of the Service Account; otherwise, if no Service - * Account is specified, the "default" service account is used. - * - * Generated from protobuf field string service_account = 9; - * @return string - */ - public function getServiceAccount() - { - return $this->service_account; - } - - /** - * The Google Cloud Platform Service Account to be used by the node VMs. - * Specify the email address of the Service Account; otherwise, if no Service - * Account is specified, the "default" service account is used. - * - * Generated from protobuf field string service_account = 9; - * @param string $var - * @return $this - */ - public function setServiceAccount($var) - { - GPBUtil::checkString($var, True); - $this->service_account = $var; - - return $this; - } - - /** - * The metadata key/value pairs assigned to instances in the cluster. - * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes - * in length. These are reflected as part of a URL in the metadata server. - * Additionally, to avoid ambiguity, keys must not conflict with any other - * metadata keys for the project or be one of the reserved keys: - * - "cluster-location" - * - "cluster-name" - * - "cluster-uid" - * - "configure-sh" - * - "containerd-configure-sh" - * - "enable-os-login" - * - "gci-ensure-gke-docker" - * - "gci-metrics-enabled" - * - "gci-update-strategy" - * - "instance-template" - * - "kube-env" - * - "startup-script" - * - "user-data" - * - "disable-address-manager" - * - "windows-startup-script-ps1" - * - "common-psm1" - * - "k8s-node-setup-psm1" - * - "install-ssh-psm1" - * - "user-profile-psm1" - * Values are free-form strings, and only have meaning as interpreted by - * the image running in the instance. The only restriction placed on them is - * that each value's size must be less than or equal to 32 KB. - * The total size of all keys and values must be less than 512 KB. - * - * Generated from protobuf field map metadata = 4; - * @return \Google\Protobuf\Internal\MapField - */ - public function getMetadata() - { - return $this->metadata; - } - - /** - * The metadata key/value pairs assigned to instances in the cluster. - * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes - * in length. These are reflected as part of a URL in the metadata server. - * Additionally, to avoid ambiguity, keys must not conflict with any other - * metadata keys for the project or be one of the reserved keys: - * - "cluster-location" - * - "cluster-name" - * - "cluster-uid" - * - "configure-sh" - * - "containerd-configure-sh" - * - "enable-os-login" - * - "gci-ensure-gke-docker" - * - "gci-metrics-enabled" - * - "gci-update-strategy" - * - "instance-template" - * - "kube-env" - * - "startup-script" - * - "user-data" - * - "disable-address-manager" - * - "windows-startup-script-ps1" - * - "common-psm1" - * - "k8s-node-setup-psm1" - * - "install-ssh-psm1" - * - "user-profile-psm1" - * Values are free-form strings, and only have meaning as interpreted by - * the image running in the instance. The only restriction placed on them is - * that each value's size must be less than or equal to 32 KB. - * The total size of all keys and values must be less than 512 KB. - * - * Generated from protobuf field map metadata = 4; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setMetadata($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->metadata = $arr; - - return $this; - } - - /** - * The image type to use for this node. Note that for a given image type, - * the latest version of it will be used. Please see - * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for - * available image types. - * - * Generated from protobuf field string image_type = 5; - * @return string - */ - public function getImageType() - { - return $this->image_type; - } - - /** - * The image type to use for this node. Note that for a given image type, - * the latest version of it will be used. Please see - * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for - * available image types. - * - * Generated from protobuf field string image_type = 5; - * @param string $var - * @return $this - */ - public function setImageType($var) - { - GPBUtil::checkString($var, True); - $this->image_type = $var; - - return $this; - } - - /** - * The map of Kubernetes labels (key/value pairs) to be applied to each node. - * These will added in addition to any default label(s) that - * Kubernetes may apply to the node. - * In case of conflict in label keys, the applied set may differ depending on - * the Kubernetes version -- it's best to assume the behavior is undefined - * and conflicts should be avoided. - * For more information, including usage and the valid values, see: - * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - * - * Generated from protobuf field map labels = 6; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * The map of Kubernetes labels (key/value pairs) to be applied to each node. - * These will added in addition to any default label(s) that - * Kubernetes may apply to the node. - * In case of conflict in label keys, the applied set may differ depending on - * the Kubernetes version -- it's best to assume the behavior is undefined - * and conflicts should be avoided. - * For more information, including usage and the valid values, see: - * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - * - * Generated from protobuf field map labels = 6; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * The number of local SSD disks to be attached to the node. - * The limit for this value is dependent upon the maximum number of - * disks available on a machine per zone. See: - * https://cloud.google.com/compute/docs/disks/local-ssd - * for more information. - * - * Generated from protobuf field int32 local_ssd_count = 7; - * @return int - */ - public function getLocalSsdCount() - { - return $this->local_ssd_count; - } - - /** - * The number of local SSD disks to be attached to the node. - * The limit for this value is dependent upon the maximum number of - * disks available on a machine per zone. See: - * https://cloud.google.com/compute/docs/disks/local-ssd - * for more information. - * - * Generated from protobuf field int32 local_ssd_count = 7; - * @param int $var - * @return $this - */ - public function setLocalSsdCount($var) - { - GPBUtil::checkInt32($var); - $this->local_ssd_count = $var; - - return $this; - } - - /** - * The list of instance tags applied to all nodes. Tags are used to identify - * valid sources or targets for network firewalls and are specified by - * the client during cluster or node pool creation. Each tag within the list - * must comply with RFC1035. - * - * Generated from protobuf field repeated string tags = 8; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTags() - { - return $this->tags; - } - - /** - * The list of instance tags applied to all nodes. Tags are used to identify - * valid sources or targets for network firewalls and are specified by - * the client during cluster or node pool creation. Each tag within the list - * must comply with RFC1035. - * - * Generated from protobuf field repeated string tags = 8; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - - /** - * Whether the nodes are created as preemptible VM instances. See: - * https://cloud.google.com/compute/docs/instances/preemptible for more - * information about preemptible VM instances. - * - * Generated from protobuf field bool preemptible = 10; - * @return bool - */ - public function getPreemptible() - { - return $this->preemptible; - } - - /** - * Whether the nodes are created as preemptible VM instances. See: - * https://cloud.google.com/compute/docs/instances/preemptible for more - * information about preemptible VM instances. - * - * Generated from protobuf field bool preemptible = 10; - * @param bool $var - * @return $this - */ - public function setPreemptible($var) - { - GPBUtil::checkBool($var); - $this->preemptible = $var; - - return $this; - } - - /** - * A list of hardware accelerators to be attached to each node. - * See https://cloud.google.com/compute/docs/gpus for more information about - * support for GPUs. - * - * Generated from protobuf field repeated .google.container.v1.AcceleratorConfig accelerators = 11; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAccelerators() - { - return $this->accelerators; - } - - /** - * A list of hardware accelerators to be attached to each node. - * See https://cloud.google.com/compute/docs/gpus for more information about - * support for GPUs. - * - * Generated from protobuf field repeated .google.container.v1.AcceleratorConfig accelerators = 11; - * @param array<\Google\Cloud\Container\V1\AcceleratorConfig>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAccelerators($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\AcceleratorConfig::class); - $this->accelerators = $arr; - - return $this; - } - - /** - * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or - * 'pd-balanced') - * If unspecified, the default disk type is 'pd-standard' - * - * Generated from protobuf field string disk_type = 12; - * @return string - */ - public function getDiskType() - { - return $this->disk_type; - } - - /** - * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or - * 'pd-balanced') - * If unspecified, the default disk type is 'pd-standard' - * - * Generated from protobuf field string disk_type = 12; - * @param string $var - * @return $this - */ - public function setDiskType($var) - { - GPBUtil::checkString($var, True); - $this->disk_type = $var; - - return $this; - } - - /** - * Minimum CPU platform to be used by this instance. The instance may be - * scheduled on the specified or newer CPU platform. Applicable values are the - * friendly names of CPU platforms, such as - * `minCpuPlatform: "Intel Haswell"` or - * `minCpuPlatform: "Intel Sandy Bridge"`. For more - * information, read [how to specify min CPU - * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) - * - * Generated from protobuf field string min_cpu_platform = 13; - * @return string - */ - public function getMinCpuPlatform() - { - return $this->min_cpu_platform; - } - - /** - * Minimum CPU platform to be used by this instance. The instance may be - * scheduled on the specified or newer CPU platform. Applicable values are the - * friendly names of CPU platforms, such as - * `minCpuPlatform: "Intel Haswell"` or - * `minCpuPlatform: "Intel Sandy Bridge"`. For more - * information, read [how to specify min CPU - * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) - * - * Generated from protobuf field string min_cpu_platform = 13; - * @param string $var - * @return $this - */ - public function setMinCpuPlatform($var) - { - GPBUtil::checkString($var, True); - $this->min_cpu_platform = $var; - - return $this; - } - - /** - * The workload metadata configuration for this node. - * - * Generated from protobuf field .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * @return \Google\Cloud\Container\V1\WorkloadMetadataConfig|null - */ - public function getWorkloadMetadataConfig() - { - return $this->workload_metadata_config; - } - - public function hasWorkloadMetadataConfig() - { - return isset($this->workload_metadata_config); - } - - public function clearWorkloadMetadataConfig() - { - unset($this->workload_metadata_config); - } - - /** - * The workload metadata configuration for this node. - * - * Generated from protobuf field .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * @param \Google\Cloud\Container\V1\WorkloadMetadataConfig $var - * @return $this - */ - public function setWorkloadMetadataConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\WorkloadMetadataConfig::class); - $this->workload_metadata_config = $var; - - return $this; - } - - /** - * List of kubernetes taints to be applied to each node. - * For more information, including usage and the valid values, see: - * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ - * - * Generated from protobuf field repeated .google.container.v1.NodeTaint taints = 15; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTaints() - { - return $this->taints; - } - - /** - * List of kubernetes taints to be applied to each node. - * For more information, including usage and the valid values, see: - * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ - * - * Generated from protobuf field repeated .google.container.v1.NodeTaint taints = 15; - * @param array<\Google\Cloud\Container\V1\NodeTaint>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTaints($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\NodeTaint::class); - $this->taints = $arr; - - return $this; - } - - /** - * Sandbox configuration for this node. - * - * Generated from protobuf field .google.container.v1.SandboxConfig sandbox_config = 17; - * @return \Google\Cloud\Container\V1\SandboxConfig|null - */ - public function getSandboxConfig() - { - return $this->sandbox_config; - } - - public function hasSandboxConfig() - { - return isset($this->sandbox_config); - } - - public function clearSandboxConfig() - { - unset($this->sandbox_config); - } - - /** - * Sandbox configuration for this node. - * - * Generated from protobuf field .google.container.v1.SandboxConfig sandbox_config = 17; - * @param \Google\Cloud\Container\V1\SandboxConfig $var - * @return $this - */ - public function setSandboxConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\SandboxConfig::class); - $this->sandbox_config = $var; - - return $this; - } - - /** - * Setting this field will assign instances of this - * pool to run on the specified node group. This is useful for running - * workloads on [sole tenant - * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes). - * - * Generated from protobuf field string node_group = 18; - * @return string - */ - public function getNodeGroup() - { - return $this->node_group; - } - - /** - * Setting this field will assign instances of this - * pool to run on the specified node group. This is useful for running - * workloads on [sole tenant - * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes). - * - * Generated from protobuf field string node_group = 18; - * @param string $var - * @return $this - */ - public function setNodeGroup($var) - { - GPBUtil::checkString($var, True); - $this->node_group = $var; - - return $this; - } - - /** - * The optional reservation affinity. Setting this field will apply - * the specified [Zonal Compute - * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) - * to this node pool. - * - * Generated from protobuf field .google.container.v1.ReservationAffinity reservation_affinity = 19; - * @return \Google\Cloud\Container\V1\ReservationAffinity|null - */ - public function getReservationAffinity() - { - return $this->reservation_affinity; - } - - public function hasReservationAffinity() - { - return isset($this->reservation_affinity); - } - - public function clearReservationAffinity() - { - unset($this->reservation_affinity); - } - - /** - * The optional reservation affinity. Setting this field will apply - * the specified [Zonal Compute - * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) - * to this node pool. - * - * Generated from protobuf field .google.container.v1.ReservationAffinity reservation_affinity = 19; - * @param \Google\Cloud\Container\V1\ReservationAffinity $var - * @return $this - */ - public function setReservationAffinity($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ReservationAffinity::class); - $this->reservation_affinity = $var; - - return $this; - } - - /** - * Shielded Instance options. - * - * Generated from protobuf field .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - * @return \Google\Cloud\Container\V1\ShieldedInstanceConfig|null - */ - public function getShieldedInstanceConfig() - { - return $this->shielded_instance_config; - } - - public function hasShieldedInstanceConfig() - { - return isset($this->shielded_instance_config); - } - - public function clearShieldedInstanceConfig() - { - unset($this->shielded_instance_config); - } - - /** - * Shielded Instance options. - * - * Generated from protobuf field .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - * @param \Google\Cloud\Container\V1\ShieldedInstanceConfig $var - * @return $this - */ - public function setShieldedInstanceConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ShieldedInstanceConfig::class); - $this->shielded_instance_config = $var; - - return $this; - } - - /** - * Parameters that can be configured on Linux nodes. - * - * Generated from protobuf field .google.container.v1.LinuxNodeConfig linux_node_config = 21; - * @return \Google\Cloud\Container\V1\LinuxNodeConfig|null - */ - public function getLinuxNodeConfig() - { - return $this->linux_node_config; - } - - public function hasLinuxNodeConfig() - { - return isset($this->linux_node_config); - } - - public function clearLinuxNodeConfig() - { - unset($this->linux_node_config); - } - - /** - * Parameters that can be configured on Linux nodes. - * - * Generated from protobuf field .google.container.v1.LinuxNodeConfig linux_node_config = 21; - * @param \Google\Cloud\Container\V1\LinuxNodeConfig $var - * @return $this - */ - public function setLinuxNodeConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LinuxNodeConfig::class); - $this->linux_node_config = $var; - - return $this; - } - - /** - * Node kubelet configs. - * - * Generated from protobuf field .google.container.v1.NodeKubeletConfig kubelet_config = 22; - * @return \Google\Cloud\Container\V1\NodeKubeletConfig|null - */ - public function getKubeletConfig() - { - return $this->kubelet_config; - } - - public function hasKubeletConfig() - { - return isset($this->kubelet_config); - } - - public function clearKubeletConfig() - { - unset($this->kubelet_config); - } - - /** - * Node kubelet configs. - * - * Generated from protobuf field .google.container.v1.NodeKubeletConfig kubelet_config = 22; - * @param \Google\Cloud\Container\V1\NodeKubeletConfig $var - * @return $this - */ - public function setKubeletConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeKubeletConfig::class); - $this->kubelet_config = $var; - - return $this; - } - - /** - * The Customer Managed Encryption Key used to encrypt the boot disk attached - * to each node in the node pool. This should be of the form - * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. - * For more information about protecting resources with Cloud KMS Keys please - * see: - * https://cloud.google.com/compute/docs/disks/customer-managed-encryption - * - * Generated from protobuf field string boot_disk_kms_key = 23; - * @return string - */ - public function getBootDiskKmsKey() - { - return $this->boot_disk_kms_key; - } - - /** - * The Customer Managed Encryption Key used to encrypt the boot disk attached - * to each node in the node pool. This should be of the form - * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. - * For more information about protecting resources with Cloud KMS Keys please - * see: - * https://cloud.google.com/compute/docs/disks/customer-managed-encryption - * - * Generated from protobuf field string boot_disk_kms_key = 23; - * @param string $var - * @return $this - */ - public function setBootDiskKmsKey($var) - { - GPBUtil::checkString($var, True); - $this->boot_disk_kms_key = $var; - - return $this; - } - - /** - * Google Container File System (image streaming) configs. - * - * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 25; - * @return \Google\Cloud\Container\V1\GcfsConfig|null - */ - public function getGcfsConfig() - { - return $this->gcfs_config; - } - - public function hasGcfsConfig() - { - return isset($this->gcfs_config); - } - - public function clearGcfsConfig() - { - unset($this->gcfs_config); - } - - /** - * Google Container File System (image streaming) configs. - * - * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 25; - * @param \Google\Cloud\Container\V1\GcfsConfig $var - * @return $this - */ - public function setGcfsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GcfsConfig::class); - $this->gcfs_config = $var; - - return $this; - } - - /** - * Advanced features for the Compute Engine VM. - * - * Generated from protobuf field .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; - * @return \Google\Cloud\Container\V1\AdvancedMachineFeatures|null - */ - public function getAdvancedMachineFeatures() - { - return $this->advanced_machine_features; - } - - public function hasAdvancedMachineFeatures() - { - return isset($this->advanced_machine_features); - } - - public function clearAdvancedMachineFeatures() - { - unset($this->advanced_machine_features); - } - - /** - * Advanced features for the Compute Engine VM. - * - * Generated from protobuf field .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; - * @param \Google\Cloud\Container\V1\AdvancedMachineFeatures $var - * @return $this - */ - public function setAdvancedMachineFeatures($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AdvancedMachineFeatures::class); - $this->advanced_machine_features = $var; - - return $this; - } - - /** - * Enable or disable gvnic in the node pool. - * - * Generated from protobuf field .google.container.v1.VirtualNIC gvnic = 29; - * @return \Google\Cloud\Container\V1\VirtualNIC|null - */ - public function getGvnic() - { - return $this->gvnic; - } - - public function hasGvnic() - { - return isset($this->gvnic); - } - - public function clearGvnic() - { - unset($this->gvnic); - } - - /** - * Enable or disable gvnic in the node pool. - * - * Generated from protobuf field .google.container.v1.VirtualNIC gvnic = 29; - * @param \Google\Cloud\Container\V1\VirtualNIC $var - * @return $this - */ - public function setGvnic($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\VirtualNIC::class); - $this->gvnic = $var; - - return $this; - } - - /** - * Spot flag for enabling Spot VM, which is a rebrand of - * the existing preemptible flag. - * - * Generated from protobuf field bool spot = 32; - * @return bool - */ - public function getSpot() - { - return $this->spot; - } - - /** - * Spot flag for enabling Spot VM, which is a rebrand of - * the existing preemptible flag. - * - * Generated from protobuf field bool spot = 32; - * @param bool $var - * @return $this - */ - public function setSpot($var) - { - GPBUtil::checkBool($var); - $this->spot = $var; - - return $this; - } - - /** - * Confidential nodes config. - * All the nodes in the node pool will be Confidential VM once enabled. - * - * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 35; - * @return \Google\Cloud\Container\V1\ConfidentialNodes|null - */ - public function getConfidentialNodes() - { - return $this->confidential_nodes; - } - - public function hasConfidentialNodes() - { - return isset($this->confidential_nodes); - } - - public function clearConfidentialNodes() - { - unset($this->confidential_nodes); - } - - /** - * Confidential nodes config. - * All the nodes in the node pool will be Confidential VM once enabled. - * - * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 35; - * @param \Google\Cloud\Container\V1\ConfidentialNodes $var - * @return $this - */ - public function setConfidentialNodes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ConfidentialNodes::class); - $this->confidential_nodes = $var; - - return $this; - } - - /** - * Enable or disable NCCL fast socket for the node pool. - * - * Generated from protobuf field optional .google.container.v1.FastSocket fast_socket = 36; - * @return \Google\Cloud\Container\V1\FastSocket|null - */ - public function getFastSocket() - { - return $this->fast_socket; - } - - public function hasFastSocket() - { - return isset($this->fast_socket); - } - - public function clearFastSocket() - { - unset($this->fast_socket); - } - - /** - * Enable or disable NCCL fast socket for the node pool. - * - * Generated from protobuf field optional .google.container.v1.FastSocket fast_socket = 36; - * @param \Google\Cloud\Container\V1\FastSocket $var - * @return $this - */ - public function setFastSocket($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\FastSocket::class); - $this->fast_socket = $var; - - return $this; - } - - /** - * The resource labels for the node pool to use to annotate any related - * Google Compute Engine resources. - * - * Generated from protobuf field map resource_labels = 37; - * @return \Google\Protobuf\Internal\MapField - */ - public function getResourceLabels() - { - return $this->resource_labels; - } - - /** - * The resource labels for the node pool to use to annotate any related - * Google Compute Engine resources. - * - * Generated from protobuf field map resource_labels = 37; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setResourceLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->resource_labels = $arr; - - return $this; - } - - /** - * Logging configuration. - * - * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 38; - * @return \Google\Cloud\Container\V1\NodePoolLoggingConfig|null - */ - public function getLoggingConfig() - { - return $this->logging_config; - } - - public function hasLoggingConfig() - { - return isset($this->logging_config); - } - - public function clearLoggingConfig() - { - unset($this->logging_config); - } - - /** - * Logging configuration. - * - * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 38; - * @param \Google\Cloud\Container\V1\NodePoolLoggingConfig $var - * @return $this - */ - public function setLoggingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolLoggingConfig::class); - $this->logging_config = $var; - - return $this; - } - - /** - * Parameters that can be configured on Windows nodes. - * - * Generated from protobuf field .google.container.v1.WindowsNodeConfig windows_node_config = 39; - * @return \Google\Cloud\Container\V1\WindowsNodeConfig|null - */ - public function getWindowsNodeConfig() - { - return $this->windows_node_config; - } - - public function hasWindowsNodeConfig() - { - return isset($this->windows_node_config); - } - - public function clearWindowsNodeConfig() - { - unset($this->windows_node_config); - } - - /** - * Parameters that can be configured on Windows nodes. - * - * Generated from protobuf field .google.container.v1.WindowsNodeConfig windows_node_config = 39; - * @param \Google\Cloud\Container\V1\WindowsNodeConfig $var - * @return $this - */ - public function setWindowsNodeConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\WindowsNodeConfig::class); - $this->windows_node_config = $var; - - return $this; - } - - /** - * Parameters for using raw-block Local NVMe SSDs. - * - * Generated from protobuf field .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; - * @return \Google\Cloud\Container\V1\LocalNvmeSsdBlockConfig|null - */ - public function getLocalNvmeSsdBlockConfig() - { - return $this->local_nvme_ssd_block_config; - } - - public function hasLocalNvmeSsdBlockConfig() - { - return isset($this->local_nvme_ssd_block_config); - } - - public function clearLocalNvmeSsdBlockConfig() - { - unset($this->local_nvme_ssd_block_config); - } - - /** - * Parameters for using raw-block Local NVMe SSDs. - * - * Generated from protobuf field .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; - * @param \Google\Cloud\Container\V1\LocalNvmeSsdBlockConfig $var - * @return $this - */ - public function setLocalNvmeSsdBlockConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LocalNvmeSsdBlockConfig::class); - $this->local_nvme_ssd_block_config = $var; - - return $this; - } - - /** - * Parameters for the node ephemeral storage using Local SSDs. - * If unspecified, ephemeral storage is backed by the boot disk. - * - * Generated from protobuf field .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; - * @return \Google\Cloud\Container\V1\EphemeralStorageLocalSsdConfig|null - */ - public function getEphemeralStorageLocalSsdConfig() - { - return $this->ephemeral_storage_local_ssd_config; - } - - public function hasEphemeralStorageLocalSsdConfig() - { - return isset($this->ephemeral_storage_local_ssd_config); - } - - public function clearEphemeralStorageLocalSsdConfig() - { - unset($this->ephemeral_storage_local_ssd_config); - } - - /** - * Parameters for the node ephemeral storage using Local SSDs. - * If unspecified, ephemeral storage is backed by the boot disk. - * - * Generated from protobuf field .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; - * @param \Google\Cloud\Container\V1\EphemeralStorageLocalSsdConfig $var - * @return $this - */ - public function setEphemeralStorageLocalSsdConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\EphemeralStorageLocalSsdConfig::class); - $this->ephemeral_storage_local_ssd_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfigDefaults.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfigDefaults.php deleted file mode 100644 index c217054480c1..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfigDefaults.php +++ /dev/null @@ -1,121 +0,0 @@ -google.container.v1.NodeConfigDefaults - */ -class NodeConfigDefaults extends \Google\Protobuf\Internal\Message -{ - /** - * GCFS (Google Container File System, also known as Riptide) options. - * - * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 1; - */ - protected $gcfs_config = null; - /** - * Logging configuration for node pools. - * - * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 3; - */ - protected $logging_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\GcfsConfig $gcfs_config - * GCFS (Google Container File System, also known as Riptide) options. - * @type \Google\Cloud\Container\V1\NodePoolLoggingConfig $logging_config - * Logging configuration for node pools. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * GCFS (Google Container File System, also known as Riptide) options. - * - * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 1; - * @return \Google\Cloud\Container\V1\GcfsConfig|null - */ - public function getGcfsConfig() - { - return $this->gcfs_config; - } - - public function hasGcfsConfig() - { - return isset($this->gcfs_config); - } - - public function clearGcfsConfig() - { - unset($this->gcfs_config); - } - - /** - * GCFS (Google Container File System, also known as Riptide) options. - * - * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 1; - * @param \Google\Cloud\Container\V1\GcfsConfig $var - * @return $this - */ - public function setGcfsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GcfsConfig::class); - $this->gcfs_config = $var; - - return $this; - } - - /** - * Logging configuration for node pools. - * - * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 3; - * @return \Google\Cloud\Container\V1\NodePoolLoggingConfig|null - */ - public function getLoggingConfig() - { - return $this->logging_config; - } - - public function hasLoggingConfig() - { - return isset($this->logging_config); - } - - public function clearLoggingConfig() - { - unset($this->logging_config); - } - - /** - * Logging configuration for node pools. - * - * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 3; - * @param \Google\Cloud\Container\V1\NodePoolLoggingConfig $var - * @return $this - */ - public function setLoggingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolLoggingConfig::class); - $this->logging_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeKubeletConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeKubeletConfig.php deleted file mode 100644 index 8686d91cec92..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeKubeletConfig.php +++ /dev/null @@ -1,304 +0,0 @@ -google.container.v1.NodeKubeletConfig - */ -class NodeKubeletConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Control the CPU management policy on the node. - * See - * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ - * The following values are allowed. - * * "none": the default, which represents the existing scheduling behavior. - * * "static": allows pods with certain resource characteristics to be granted - * increased CPU affinity and exclusivity on the node. - * The default value is 'none' if unspecified. - * - * Generated from protobuf field string cpu_manager_policy = 1; - */ - protected $cpu_manager_policy = ''; - /** - * Enable CPU CFS quota enforcement for containers that specify CPU limits. - * This option is enabled by default which makes kubelet use CFS quota - * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to - * enforce container CPU limits. Otherwise, CPU limits will not be enforced at - * all. - * Disable this option to mitigate CPU throttling problems while still having - * your pods to be in Guaranteed QoS class by specifying the CPU limits. - * The default value is 'true' if unspecified. - * - * Generated from protobuf field .google.protobuf.BoolValue cpu_cfs_quota = 2; - */ - protected $cpu_cfs_quota = null; - /** - * Set the CPU CFS quota period value 'cpu.cfs_period_us'. - * The string must be a sequence of decimal numbers, each with optional - * fraction and a unit suffix, such as "300ms". - * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". - * The value must be a positive duration. - * - * Generated from protobuf field string cpu_cfs_quota_period = 3; - */ - protected $cpu_cfs_quota_period = ''; - /** - * Set the Pod PID limits. See - * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits - * Controls the maximum number of processes allowed to run in a pod. The value - * must be greater than or equal to 1024 and less than 4194304. - * - * Generated from protobuf field int64 pod_pids_limit = 4; - */ - protected $pod_pids_limit = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $cpu_manager_policy - * Control the CPU management policy on the node. - * See - * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ - * The following values are allowed. - * * "none": the default, which represents the existing scheduling behavior. - * * "static": allows pods with certain resource characteristics to be granted - * increased CPU affinity and exclusivity on the node. - * The default value is 'none' if unspecified. - * @type \Google\Protobuf\BoolValue $cpu_cfs_quota - * Enable CPU CFS quota enforcement for containers that specify CPU limits. - * This option is enabled by default which makes kubelet use CFS quota - * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to - * enforce container CPU limits. Otherwise, CPU limits will not be enforced at - * all. - * Disable this option to mitigate CPU throttling problems while still having - * your pods to be in Guaranteed QoS class by specifying the CPU limits. - * The default value is 'true' if unspecified. - * @type string $cpu_cfs_quota_period - * Set the CPU CFS quota period value 'cpu.cfs_period_us'. - * The string must be a sequence of decimal numbers, each with optional - * fraction and a unit suffix, such as "300ms". - * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". - * The value must be a positive duration. - * @type int|string $pod_pids_limit - * Set the Pod PID limits. See - * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits - * Controls the maximum number of processes allowed to run in a pod. The value - * must be greater than or equal to 1024 and less than 4194304. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Control the CPU management policy on the node. - * See - * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ - * The following values are allowed. - * * "none": the default, which represents the existing scheduling behavior. - * * "static": allows pods with certain resource characteristics to be granted - * increased CPU affinity and exclusivity on the node. - * The default value is 'none' if unspecified. - * - * Generated from protobuf field string cpu_manager_policy = 1; - * @return string - */ - public function getCpuManagerPolicy() - { - return $this->cpu_manager_policy; - } - - /** - * Control the CPU management policy on the node. - * See - * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ - * The following values are allowed. - * * "none": the default, which represents the existing scheduling behavior. - * * "static": allows pods with certain resource characteristics to be granted - * increased CPU affinity and exclusivity on the node. - * The default value is 'none' if unspecified. - * - * Generated from protobuf field string cpu_manager_policy = 1; - * @param string $var - * @return $this - */ - public function setCpuManagerPolicy($var) - { - GPBUtil::checkString($var, True); - $this->cpu_manager_policy = $var; - - return $this; - } - - /** - * Enable CPU CFS quota enforcement for containers that specify CPU limits. - * This option is enabled by default which makes kubelet use CFS quota - * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to - * enforce container CPU limits. Otherwise, CPU limits will not be enforced at - * all. - * Disable this option to mitigate CPU throttling problems while still having - * your pods to be in Guaranteed QoS class by specifying the CPU limits. - * The default value is 'true' if unspecified. - * - * Generated from protobuf field .google.protobuf.BoolValue cpu_cfs_quota = 2; - * @return \Google\Protobuf\BoolValue|null - */ - public function getCpuCfsQuota() - { - return $this->cpu_cfs_quota; - } - - public function hasCpuCfsQuota() - { - return isset($this->cpu_cfs_quota); - } - - public function clearCpuCfsQuota() - { - unset($this->cpu_cfs_quota); - } - - /** - * Returns the unboxed value from getCpuCfsQuota() - - * Enable CPU CFS quota enforcement for containers that specify CPU limits. - * This option is enabled by default which makes kubelet use CFS quota - * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to - * enforce container CPU limits. Otherwise, CPU limits will not be enforced at - * all. - * Disable this option to mitigate CPU throttling problems while still having - * your pods to be in Guaranteed QoS class by specifying the CPU limits. - * The default value is 'true' if unspecified. - * - * Generated from protobuf field .google.protobuf.BoolValue cpu_cfs_quota = 2; - * @return bool|null - */ - public function getCpuCfsQuotaUnwrapped() - { - return $this->readWrapperValue("cpu_cfs_quota"); - } - - /** - * Enable CPU CFS quota enforcement for containers that specify CPU limits. - * This option is enabled by default which makes kubelet use CFS quota - * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to - * enforce container CPU limits. Otherwise, CPU limits will not be enforced at - * all. - * Disable this option to mitigate CPU throttling problems while still having - * your pods to be in Guaranteed QoS class by specifying the CPU limits. - * The default value is 'true' if unspecified. - * - * Generated from protobuf field .google.protobuf.BoolValue cpu_cfs_quota = 2; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setCpuCfsQuota($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->cpu_cfs_quota = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * Enable CPU CFS quota enforcement for containers that specify CPU limits. - * This option is enabled by default which makes kubelet use CFS quota - * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to - * enforce container CPU limits. Otherwise, CPU limits will not be enforced at - * all. - * Disable this option to mitigate CPU throttling problems while still having - * your pods to be in Guaranteed QoS class by specifying the CPU limits. - * The default value is 'true' if unspecified. - * - * Generated from protobuf field .google.protobuf.BoolValue cpu_cfs_quota = 2; - * @param bool|null $var - * @return $this - */ - public function setCpuCfsQuotaUnwrapped($var) - { - $this->writeWrapperValue("cpu_cfs_quota", $var); - return $this;} - - /** - * Set the CPU CFS quota period value 'cpu.cfs_period_us'. - * The string must be a sequence of decimal numbers, each with optional - * fraction and a unit suffix, such as "300ms". - * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". - * The value must be a positive duration. - * - * Generated from protobuf field string cpu_cfs_quota_period = 3; - * @return string - */ - public function getCpuCfsQuotaPeriod() - { - return $this->cpu_cfs_quota_period; - } - - /** - * Set the CPU CFS quota period value 'cpu.cfs_period_us'. - * The string must be a sequence of decimal numbers, each with optional - * fraction and a unit suffix, such as "300ms". - * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". - * The value must be a positive duration. - * - * Generated from protobuf field string cpu_cfs_quota_period = 3; - * @param string $var - * @return $this - */ - public function setCpuCfsQuotaPeriod($var) - { - GPBUtil::checkString($var, True); - $this->cpu_cfs_quota_period = $var; - - return $this; - } - - /** - * Set the Pod PID limits. See - * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits - * Controls the maximum number of processes allowed to run in a pod. The value - * must be greater than or equal to 1024 and less than 4194304. - * - * Generated from protobuf field int64 pod_pids_limit = 4; - * @return int|string - */ - public function getPodPidsLimit() - { - return $this->pod_pids_limit; - } - - /** - * Set the Pod PID limits. See - * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits - * Controls the maximum number of processes allowed to run in a pod. The value - * must be greater than or equal to 1024 and less than 4194304. - * - * Generated from protobuf field int64 pod_pids_limit = 4; - * @param int|string $var - * @return $this - */ - public function setPodPidsLimit($var) - { - GPBUtil::checkInt64($var); - $this->pod_pids_limit = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeLabels.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeLabels.php deleted file mode 100644 index c358a5fd2b22..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeLabels.php +++ /dev/null @@ -1,68 +0,0 @@ -google.container.v1.NodeLabels - */ -class NodeLabels extends \Google\Protobuf\Internal\Message -{ - /** - * Map of node label keys and node label values. - * - * Generated from protobuf field map labels = 1; - */ - private $labels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\MapField $labels - * Map of node label keys and node label values. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Map of node label keys and node label values. - * - * Generated from protobuf field map labels = 1; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Map of node label keys and node label values. - * - * Generated from protobuf field map labels = 1; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeManagement.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeManagement.php deleted file mode 100644 index a915f86917fc..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeManagement.php +++ /dev/null @@ -1,166 +0,0 @@ -google.container.v1.NodeManagement - */ -class NodeManagement extends \Google\Protobuf\Internal\Message -{ - /** - * A flag that specifies whether node auto-upgrade is enabled for the node - * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool - * up to date with the latest release version of Kubernetes. - * - * Generated from protobuf field bool auto_upgrade = 1; - */ - protected $auto_upgrade = false; - /** - * A flag that specifies whether the node auto-repair is enabled for the node - * pool. If enabled, the nodes in this node pool will be monitored and, if - * they fail health checks too many times, an automatic repair action will be - * triggered. - * - * Generated from protobuf field bool auto_repair = 2; - */ - protected $auto_repair = false; - /** - * Specifies the Auto Upgrade knobs for the node pool. - * - * Generated from protobuf field .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - */ - protected $upgrade_options = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $auto_upgrade - * A flag that specifies whether node auto-upgrade is enabled for the node - * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool - * up to date with the latest release version of Kubernetes. - * @type bool $auto_repair - * A flag that specifies whether the node auto-repair is enabled for the node - * pool. If enabled, the nodes in this node pool will be monitored and, if - * they fail health checks too many times, an automatic repair action will be - * triggered. - * @type \Google\Cloud\Container\V1\AutoUpgradeOptions $upgrade_options - * Specifies the Auto Upgrade knobs for the node pool. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * A flag that specifies whether node auto-upgrade is enabled for the node - * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool - * up to date with the latest release version of Kubernetes. - * - * Generated from protobuf field bool auto_upgrade = 1; - * @return bool - */ - public function getAutoUpgrade() - { - return $this->auto_upgrade; - } - - /** - * A flag that specifies whether node auto-upgrade is enabled for the node - * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool - * up to date with the latest release version of Kubernetes. - * - * Generated from protobuf field bool auto_upgrade = 1; - * @param bool $var - * @return $this - */ - public function setAutoUpgrade($var) - { - GPBUtil::checkBool($var); - $this->auto_upgrade = $var; - - return $this; - } - - /** - * A flag that specifies whether the node auto-repair is enabled for the node - * pool. If enabled, the nodes in this node pool will be monitored and, if - * they fail health checks too many times, an automatic repair action will be - * triggered. - * - * Generated from protobuf field bool auto_repair = 2; - * @return bool - */ - public function getAutoRepair() - { - return $this->auto_repair; - } - - /** - * A flag that specifies whether the node auto-repair is enabled for the node - * pool. If enabled, the nodes in this node pool will be monitored and, if - * they fail health checks too many times, an automatic repair action will be - * triggered. - * - * Generated from protobuf field bool auto_repair = 2; - * @param bool $var - * @return $this - */ - public function setAutoRepair($var) - { - GPBUtil::checkBool($var); - $this->auto_repair = $var; - - return $this; - } - - /** - * Specifies the Auto Upgrade knobs for the node pool. - * - * Generated from protobuf field .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - * @return \Google\Cloud\Container\V1\AutoUpgradeOptions|null - */ - public function getUpgradeOptions() - { - return $this->upgrade_options; - } - - public function hasUpgradeOptions() - { - return isset($this->upgrade_options); - } - - public function clearUpgradeOptions() - { - unset($this->upgrade_options); - } - - /** - * Specifies the Auto Upgrade knobs for the node pool. - * - * Generated from protobuf field .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - * @param \Google\Cloud\Container\V1\AutoUpgradeOptions $var - * @return $this - */ - public function setUpgradeOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AutoUpgradeOptions::class); - $this->upgrade_options = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig.php deleted file mode 100644 index 9684c54a93b5..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig.php +++ /dev/null @@ -1,315 +0,0 @@ -google.container.v1.NodeNetworkConfig - */ -class NodeNetworkConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Input only. Whether to create a new range for pod IPs in this node pool. - * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they - * are not specified. - * If neither `create_pod_range` or `pod_range` are specified, the - * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is - * used. - * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. - * This field cannot be changed after the node pool has been created. - * - * Generated from protobuf field bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $create_pod_range = false; - /** - * The ID of the secondary range for pod IPs. - * If `create_pod_range` is true, this ID is used for the new range. - * If `create_pod_range` is false, uses an existing secondary range with this - * ID. - * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. - * This field cannot be changed after the node pool has been created. - * - * Generated from protobuf field string pod_range = 5; - */ - protected $pod_range = ''; - /** - * The IP address range for pod IPs in this node pool. - * Only applicable if `create_pod_range` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) to pick a specific range to use. - * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. - * This field cannot be changed after the node pool has been created. - * - * Generated from protobuf field string pod_ipv4_cidr_block = 6; - */ - protected $pod_ipv4_cidr_block = ''; - /** - * Whether nodes have internal IP addresses only. - * If enable_private_nodes is not specified, then the value is derived from - * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes] - * - * Generated from protobuf field optional bool enable_private_nodes = 9; - */ - protected $enable_private_nodes = null; - /** - * Network bandwidth tier configuration. - * - * Generated from protobuf field optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - */ - protected $network_performance_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $create_pod_range - * Input only. Whether to create a new range for pod IPs in this node pool. - * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they - * are not specified. - * If neither `create_pod_range` or `pod_range` are specified, the - * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is - * used. - * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. - * This field cannot be changed after the node pool has been created. - * @type string $pod_range - * The ID of the secondary range for pod IPs. - * If `create_pod_range` is true, this ID is used for the new range. - * If `create_pod_range` is false, uses an existing secondary range with this - * ID. - * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. - * This field cannot be changed after the node pool has been created. - * @type string $pod_ipv4_cidr_block - * The IP address range for pod IPs in this node pool. - * Only applicable if `create_pod_range` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) to pick a specific range to use. - * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. - * This field cannot be changed after the node pool has been created. - * @type bool $enable_private_nodes - * Whether nodes have internal IP addresses only. - * If enable_private_nodes is not specified, then the value is derived from - * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes] - * @type \Google\Cloud\Container\V1\NodeNetworkConfig\NetworkPerformanceConfig $network_performance_config - * Network bandwidth tier configuration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Input only. Whether to create a new range for pod IPs in this node pool. - * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they - * are not specified. - * If neither `create_pod_range` or `pod_range` are specified, the - * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is - * used. - * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. - * This field cannot be changed after the node pool has been created. - * - * Generated from protobuf field bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return bool - */ - public function getCreatePodRange() - { - return $this->create_pod_range; - } - - /** - * Input only. Whether to create a new range for pod IPs in this node pool. - * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they - * are not specified. - * If neither `create_pod_range` or `pod_range` are specified, the - * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is - * used. - * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. - * This field cannot be changed after the node pool has been created. - * - * Generated from protobuf field bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setCreatePodRange($var) - { - GPBUtil::checkBool($var); - $this->create_pod_range = $var; - - return $this; - } - - /** - * The ID of the secondary range for pod IPs. - * If `create_pod_range` is true, this ID is used for the new range. - * If `create_pod_range` is false, uses an existing secondary range with this - * ID. - * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. - * This field cannot be changed after the node pool has been created. - * - * Generated from protobuf field string pod_range = 5; - * @return string - */ - public function getPodRange() - { - return $this->pod_range; - } - - /** - * The ID of the secondary range for pod IPs. - * If `create_pod_range` is true, this ID is used for the new range. - * If `create_pod_range` is false, uses an existing secondary range with this - * ID. - * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. - * This field cannot be changed after the node pool has been created. - * - * Generated from protobuf field string pod_range = 5; - * @param string $var - * @return $this - */ - public function setPodRange($var) - { - GPBUtil::checkString($var, True); - $this->pod_range = $var; - - return $this; - } - - /** - * The IP address range for pod IPs in this node pool. - * Only applicable if `create_pod_range` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) to pick a specific range to use. - * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. - * This field cannot be changed after the node pool has been created. - * - * Generated from protobuf field string pod_ipv4_cidr_block = 6; - * @return string - */ - public function getPodIpv4CidrBlock() - { - return $this->pod_ipv4_cidr_block; - } - - /** - * The IP address range for pod IPs in this node pool. - * Only applicable if `create_pod_range` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) to pick a specific range to use. - * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. - * This field cannot be changed after the node pool has been created. - * - * Generated from protobuf field string pod_ipv4_cidr_block = 6; - * @param string $var - * @return $this - */ - public function setPodIpv4CidrBlock($var) - { - GPBUtil::checkString($var, True); - $this->pod_ipv4_cidr_block = $var; - - return $this; - } - - /** - * Whether nodes have internal IP addresses only. - * If enable_private_nodes is not specified, then the value is derived from - * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes] - * - * Generated from protobuf field optional bool enable_private_nodes = 9; - * @return bool - */ - public function getEnablePrivateNodes() - { - return isset($this->enable_private_nodes) ? $this->enable_private_nodes : false; - } - - public function hasEnablePrivateNodes() - { - return isset($this->enable_private_nodes); - } - - public function clearEnablePrivateNodes() - { - unset($this->enable_private_nodes); - } - - /** - * Whether nodes have internal IP addresses only. - * If enable_private_nodes is not specified, then the value is derived from - * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes] - * - * Generated from protobuf field optional bool enable_private_nodes = 9; - * @param bool $var - * @return $this - */ - public function setEnablePrivateNodes($var) - { - GPBUtil::checkBool($var); - $this->enable_private_nodes = $var; - - return $this; - } - - /** - * Network bandwidth tier configuration. - * - * Generated from protobuf field optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - * @return \Google\Cloud\Container\V1\NodeNetworkConfig\NetworkPerformanceConfig|null - */ - public function getNetworkPerformanceConfig() - { - return $this->network_performance_config; - } - - public function hasNetworkPerformanceConfig() - { - return isset($this->network_performance_config); - } - - public function clearNetworkPerformanceConfig() - { - unset($this->network_performance_config); - } - - /** - * Network bandwidth tier configuration. - * - * Generated from protobuf field optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - * @param \Google\Cloud\Container\V1\NodeNetworkConfig\NetworkPerformanceConfig $var - * @return $this - */ - public function setNetworkPerformanceConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeNetworkConfig\NetworkPerformanceConfig::class); - $this->network_performance_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig.php deleted file mode 100644 index 171177950b7c..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig.php +++ /dev/null @@ -1,80 +0,0 @@ -google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig - */ -class NetworkPerformanceConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Specifies the total network bandwidth tier for the NodePool. - * - * Generated from protobuf field optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - */ - protected $total_egress_bandwidth_tier = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $total_egress_bandwidth_tier - * Specifies the total network bandwidth tier for the NodePool. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Specifies the total network bandwidth tier for the NodePool. - * - * Generated from protobuf field optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * @return int - */ - public function getTotalEgressBandwidthTier() - { - return isset($this->total_egress_bandwidth_tier) ? $this->total_egress_bandwidth_tier : 0; - } - - public function hasTotalEgressBandwidthTier() - { - return isset($this->total_egress_bandwidth_tier); - } - - public function clearTotalEgressBandwidthTier() - { - unset($this->total_egress_bandwidth_tier); - } - - /** - * Specifies the total network bandwidth tier for the NodePool. - * - * Generated from protobuf field optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * @param int $var - * @return $this - */ - public function setTotalEgressBandwidthTier($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NodeNetworkConfig\NetworkPerformanceConfig\Tier::class); - $this->total_egress_bandwidth_tier = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(NetworkPerformanceConfig::class, \Google\Cloud\Container\V1\NodeNetworkConfig_NetworkPerformanceConfig::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig/Tier.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig/Tier.php deleted file mode 100644 index 7101c3334fff..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig/Tier.php +++ /dev/null @@ -1,57 +0,0 @@ -google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier - */ -class Tier -{ - /** - * Default value - * - * Generated from protobuf enum TIER_UNSPECIFIED = 0; - */ - const TIER_UNSPECIFIED = 0; - /** - * Higher bandwidth, actual values based on VM size. - * - * Generated from protobuf enum TIER_1 = 1; - */ - const TIER_1 = 1; - - private static $valueToName = [ - self::TIER_UNSPECIFIED => 'TIER_UNSPECIFIED', - self::TIER_1 => 'TIER_1', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Tier::class, \Google\Cloud\Container\V1\NodeNetworkConfig_NetworkPerformanceConfig_Tier::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig_NetworkPerformanceConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig_NetworkPerformanceConfig.php deleted file mode 100644 index 124bdec1caf8..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig_NetworkPerformanceConfig.php +++ /dev/null @@ -1,16 +0,0 @@ -google.container.v1.NodePool - */ -class NodePool extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the node pool. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The node configuration of the pool. - * - * Generated from protobuf field .google.container.v1.NodeConfig config = 2; - */ - protected $config = null; - /** - * The initial node count for the pool. You must ensure that your - * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) - * is sufficient for this number of instances. You must also have available - * firewall and routes quota. - * - * Generated from protobuf field int32 initial_node_count = 3; - */ - protected $initial_node_count = 0; - /** - * The list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * NodePool's nodes should be located. - * If this value is unspecified during node pool creation, the - * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) - * value will be used, instead. - * Warning: changing node pool locations will result in nodes being added - * and/or removed. - * - * Generated from protobuf field repeated string locations = 13; - */ - private $locations; - /** - * Networking configuration for this NodePool. If specified, it overrides the - * cluster-level defaults. - * - * Generated from protobuf field .google.container.v1.NodeNetworkConfig network_config = 14; - */ - protected $network_config = null; - /** - * [Output only] Server-defined URL for the resource. - * - * Generated from protobuf field string self_link = 100; - */ - protected $self_link = ''; - /** - * The version of Kubernetes running on this NodePool's nodes. If unspecified, - * it defaults as described - * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version). - * - * Generated from protobuf field string version = 101; - */ - protected $version = ''; - /** - * [Output only] The resource URLs of the [managed instance - * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) - * associated with this node pool. - * During the node pool blue-green upgrade operation, the URLs contain both - * blue and green resources. - * - * Generated from protobuf field repeated string instance_group_urls = 102; - */ - private $instance_group_urls; - /** - * [Output only] The status of the nodes in this pool instance. - * - * Generated from protobuf field .google.container.v1.NodePool.Status status = 103; - */ - protected $status = 0; - /** - * [Output only] Deprecated. Use conditions instead. - * Additional information about the current status of this - * node pool instance, if available. - * - * Generated from protobuf field string status_message = 104 [deprecated = true]; - * @deprecated - */ - protected $status_message = ''; - /** - * Autoscaler configuration for this NodePool. Autoscaler is enabled - * only if a valid configuration is present. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoscaling autoscaling = 4; - */ - protected $autoscaling = null; - /** - * NodeManagement configuration for this NodePool. - * - * Generated from protobuf field .google.container.v1.NodeManagement management = 5; - */ - protected $management = null; - /** - * The constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool. - * - * Generated from protobuf field .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; - */ - protected $max_pods_constraint = null; - /** - * Which conditions caused the current node pool state. - * - * Generated from protobuf field repeated .google.container.v1.StatusCondition conditions = 105; - */ - private $conditions; - /** - * [Output only] The pod CIDR block size per node in this node pool. - * - * Generated from protobuf field int32 pod_ipv4_cidr_size = 7; - */ - protected $pod_ipv4_cidr_size = 0; - /** - * Upgrade settings control disruption and speed of the upgrade. - * - * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - */ - protected $upgrade_settings = null; - /** - * Specifies the node placement policy. - * - * Generated from protobuf field .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; - */ - protected $placement_policy = null; - /** - * Output only. [Output only] Update info contains relevant information during - * a node pool update. - * - * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_info = null; - /** - * This checksum is computed by the server based on the value of node pool - * fields, and may be sent on update requests to ensure the client has an - * up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 110; - */ - protected $etag = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the node pool. - * @type \Google\Cloud\Container\V1\NodeConfig $config - * The node configuration of the pool. - * @type int $initial_node_count - * The initial node count for the pool. You must ensure that your - * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) - * is sufficient for this number of instances. You must also have available - * firewall and routes quota. - * @type array|\Google\Protobuf\Internal\RepeatedField $locations - * The list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * NodePool's nodes should be located. - * If this value is unspecified during node pool creation, the - * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) - * value will be used, instead. - * Warning: changing node pool locations will result in nodes being added - * and/or removed. - * @type \Google\Cloud\Container\V1\NodeNetworkConfig $network_config - * Networking configuration for this NodePool. If specified, it overrides the - * cluster-level defaults. - * @type string $self_link - * [Output only] Server-defined URL for the resource. - * @type string $version - * The version of Kubernetes running on this NodePool's nodes. If unspecified, - * it defaults as described - * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version). - * @type array|\Google\Protobuf\Internal\RepeatedField $instance_group_urls - * [Output only] The resource URLs of the [managed instance - * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) - * associated with this node pool. - * During the node pool blue-green upgrade operation, the URLs contain both - * blue and green resources. - * @type int $status - * [Output only] The status of the nodes in this pool instance. - * @type string $status_message - * [Output only] Deprecated. Use conditions instead. - * Additional information about the current status of this - * node pool instance, if available. - * @type \Google\Cloud\Container\V1\NodePoolAutoscaling $autoscaling - * Autoscaler configuration for this NodePool. Autoscaler is enabled - * only if a valid configuration is present. - * @type \Google\Cloud\Container\V1\NodeManagement $management - * NodeManagement configuration for this NodePool. - * @type \Google\Cloud\Container\V1\MaxPodsConstraint $max_pods_constraint - * The constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool. - * @type array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $conditions - * Which conditions caused the current node pool state. - * @type int $pod_ipv4_cidr_size - * [Output only] The pod CIDR block size per node in this node pool. - * @type \Google\Cloud\Container\V1\NodePool\UpgradeSettings $upgrade_settings - * Upgrade settings control disruption and speed of the upgrade. - * @type \Google\Cloud\Container\V1\NodePool\PlacementPolicy $placement_policy - * Specifies the node placement policy. - * @type \Google\Cloud\Container\V1\NodePool\UpdateInfo $update_info - * Output only. [Output only] Update info contains relevant information during - * a node pool update. - * @type string $etag - * This checksum is computed by the server based on the value of node pool - * fields, and may be sent on update requests to ensure the client has an - * up-to-date value before proceeding. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The name of the node pool. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the node pool. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The node configuration of the pool. - * - * Generated from protobuf field .google.container.v1.NodeConfig config = 2; - * @return \Google\Cloud\Container\V1\NodeConfig|null - */ - public function getConfig() - { - return $this->config; - } - - public function hasConfig() - { - return isset($this->config); - } - - public function clearConfig() - { - unset($this->config); - } - - /** - * The node configuration of the pool. - * - * Generated from protobuf field .google.container.v1.NodeConfig config = 2; - * @param \Google\Cloud\Container\V1\NodeConfig $var - * @return $this - */ - public function setConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeConfig::class); - $this->config = $var; - - return $this; - } - - /** - * The initial node count for the pool. You must ensure that your - * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) - * is sufficient for this number of instances. You must also have available - * firewall and routes quota. - * - * Generated from protobuf field int32 initial_node_count = 3; - * @return int - */ - public function getInitialNodeCount() - { - return $this->initial_node_count; - } - - /** - * The initial node count for the pool. You must ensure that your - * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) - * is sufficient for this number of instances. You must also have available - * firewall and routes quota. - * - * Generated from protobuf field int32 initial_node_count = 3; - * @param int $var - * @return $this - */ - public function setInitialNodeCount($var) - { - GPBUtil::checkInt32($var); - $this->initial_node_count = $var; - - return $this; - } - - /** - * The list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * NodePool's nodes should be located. - * If this value is unspecified during node pool creation, the - * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) - * value will be used, instead. - * Warning: changing node pool locations will result in nodes being added - * and/or removed. - * - * Generated from protobuf field repeated string locations = 13; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getLocations() - { - return $this->locations; - } - - /** - * The list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * NodePool's nodes should be located. - * If this value is unspecified during node pool creation, the - * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) - * value will be used, instead. - * Warning: changing node pool locations will result in nodes being added - * and/or removed. - * - * Generated from protobuf field repeated string locations = 13; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->locations = $arr; - - return $this; - } - - /** - * Networking configuration for this NodePool. If specified, it overrides the - * cluster-level defaults. - * - * Generated from protobuf field .google.container.v1.NodeNetworkConfig network_config = 14; - * @return \Google\Cloud\Container\V1\NodeNetworkConfig|null - */ - public function getNetworkConfig() - { - return $this->network_config; - } - - public function hasNetworkConfig() - { - return isset($this->network_config); - } - - public function clearNetworkConfig() - { - unset($this->network_config); - } - - /** - * Networking configuration for this NodePool. If specified, it overrides the - * cluster-level defaults. - * - * Generated from protobuf field .google.container.v1.NodeNetworkConfig network_config = 14; - * @param \Google\Cloud\Container\V1\NodeNetworkConfig $var - * @return $this - */ - public function setNetworkConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeNetworkConfig::class); - $this->network_config = $var; - - return $this; - } - - /** - * [Output only] Server-defined URL for the resource. - * - * Generated from protobuf field string self_link = 100; - * @return string - */ - public function getSelfLink() - { - return $this->self_link; - } - - /** - * [Output only] Server-defined URL for the resource. - * - * Generated from protobuf field string self_link = 100; - * @param string $var - * @return $this - */ - public function setSelfLink($var) - { - GPBUtil::checkString($var, True); - $this->self_link = $var; - - return $this; - } - - /** - * The version of Kubernetes running on this NodePool's nodes. If unspecified, - * it defaults as described - * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version). - * - * Generated from protobuf field string version = 101; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * The version of Kubernetes running on this NodePool's nodes. If unspecified, - * it defaults as described - * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version). - * - * Generated from protobuf field string version = 101; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * [Output only] The resource URLs of the [managed instance - * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) - * associated with this node pool. - * During the node pool blue-green upgrade operation, the URLs contain both - * blue and green resources. - * - * Generated from protobuf field repeated string instance_group_urls = 102; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getInstanceGroupUrls() - { - return $this->instance_group_urls; - } - - /** - * [Output only] The resource URLs of the [managed instance - * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) - * associated with this node pool. - * During the node pool blue-green upgrade operation, the URLs contain both - * blue and green resources. - * - * Generated from protobuf field repeated string instance_group_urls = 102; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setInstanceGroupUrls($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->instance_group_urls = $arr; - - return $this; - } - - /** - * [Output only] The status of the nodes in this pool instance. - * - * Generated from protobuf field .google.container.v1.NodePool.Status status = 103; - * @return int - */ - public function getStatus() - { - return $this->status; - } - - /** - * [Output only] The status of the nodes in this pool instance. - * - * Generated from protobuf field .google.container.v1.NodePool.Status status = 103; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NodePool\Status::class); - $this->status = $var; - - return $this; - } - - /** - * [Output only] Deprecated. Use conditions instead. - * Additional information about the current status of this - * node pool instance, if available. - * - * Generated from protobuf field string status_message = 104 [deprecated = true]; - * @return string - * @deprecated - */ - public function getStatusMessage() - { - @trigger_error('status_message is deprecated.', E_USER_DEPRECATED); - return $this->status_message; - } - - /** - * [Output only] Deprecated. Use conditions instead. - * Additional information about the current status of this - * node pool instance, if available. - * - * Generated from protobuf field string status_message = 104 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setStatusMessage($var) - { - @trigger_error('status_message is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->status_message = $var; - - return $this; - } - - /** - * Autoscaler configuration for this NodePool. Autoscaler is enabled - * only if a valid configuration is present. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoscaling autoscaling = 4; - * @return \Google\Cloud\Container\V1\NodePoolAutoscaling|null - */ - public function getAutoscaling() - { - return $this->autoscaling; - } - - public function hasAutoscaling() - { - return isset($this->autoscaling); - } - - public function clearAutoscaling() - { - unset($this->autoscaling); - } - - /** - * Autoscaler configuration for this NodePool. Autoscaler is enabled - * only if a valid configuration is present. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoscaling autoscaling = 4; - * @param \Google\Cloud\Container\V1\NodePoolAutoscaling $var - * @return $this - */ - public function setAutoscaling($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolAutoscaling::class); - $this->autoscaling = $var; - - return $this; - } - - /** - * NodeManagement configuration for this NodePool. - * - * Generated from protobuf field .google.container.v1.NodeManagement management = 5; - * @return \Google\Cloud\Container\V1\NodeManagement|null - */ - public function getManagement() - { - return $this->management; - } - - public function hasManagement() - { - return isset($this->management); - } - - public function clearManagement() - { - unset($this->management); - } - - /** - * NodeManagement configuration for this NodePool. - * - * Generated from protobuf field .google.container.v1.NodeManagement management = 5; - * @param \Google\Cloud\Container\V1\NodeManagement $var - * @return $this - */ - public function setManagement($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeManagement::class); - $this->management = $var; - - return $this; - } - - /** - * The constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool. - * - * Generated from protobuf field .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; - * @return \Google\Cloud\Container\V1\MaxPodsConstraint|null - */ - public function getMaxPodsConstraint() - { - return $this->max_pods_constraint; - } - - public function hasMaxPodsConstraint() - { - return isset($this->max_pods_constraint); - } - - public function clearMaxPodsConstraint() - { - unset($this->max_pods_constraint); - } - - /** - * The constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool. - * - * Generated from protobuf field .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; - * @param \Google\Cloud\Container\V1\MaxPodsConstraint $var - * @return $this - */ - public function setMaxPodsConstraint($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MaxPodsConstraint::class); - $this->max_pods_constraint = $var; - - return $this; - } - - /** - * Which conditions caused the current node pool state. - * - * Generated from protobuf field repeated .google.container.v1.StatusCondition conditions = 105; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getConditions() - { - return $this->conditions; - } - - /** - * Which conditions caused the current node pool state. - * - * Generated from protobuf field repeated .google.container.v1.StatusCondition conditions = 105; - * @param array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setConditions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\StatusCondition::class); - $this->conditions = $arr; - - return $this; - } - - /** - * [Output only] The pod CIDR block size per node in this node pool. - * - * Generated from protobuf field int32 pod_ipv4_cidr_size = 7; - * @return int - */ - public function getPodIpv4CidrSize() - { - return $this->pod_ipv4_cidr_size; - } - - /** - * [Output only] The pod CIDR block size per node in this node pool. - * - * Generated from protobuf field int32 pod_ipv4_cidr_size = 7; - * @param int $var - * @return $this - */ - public function setPodIpv4CidrSize($var) - { - GPBUtil::checkInt32($var); - $this->pod_ipv4_cidr_size = $var; - - return $this; - } - - /** - * Upgrade settings control disruption and speed of the upgrade. - * - * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - * @return \Google\Cloud\Container\V1\NodePool\UpgradeSettings|null - */ - public function getUpgradeSettings() - { - return $this->upgrade_settings; - } - - public function hasUpgradeSettings() - { - return isset($this->upgrade_settings); - } - - public function clearUpgradeSettings() - { - unset($this->upgrade_settings); - } - - /** - * Upgrade settings control disruption and speed of the upgrade. - * - * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - * @param \Google\Cloud\Container\V1\NodePool\UpgradeSettings $var - * @return $this - */ - public function setUpgradeSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool\UpgradeSettings::class); - $this->upgrade_settings = $var; - - return $this; - } - - /** - * Specifies the node placement policy. - * - * Generated from protobuf field .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; - * @return \Google\Cloud\Container\V1\NodePool\PlacementPolicy|null - */ - public function getPlacementPolicy() - { - return $this->placement_policy; - } - - public function hasPlacementPolicy() - { - return isset($this->placement_policy); - } - - public function clearPlacementPolicy() - { - unset($this->placement_policy); - } - - /** - * Specifies the node placement policy. - * - * Generated from protobuf field .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; - * @param \Google\Cloud\Container\V1\NodePool\PlacementPolicy $var - * @return $this - */ - public function setPlacementPolicy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool\PlacementPolicy::class); - $this->placement_policy = $var; - - return $this; - } - - /** - * Output only. [Output only] Update info contains relevant information during - * a node pool update. - * - * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Container\V1\NodePool\UpdateInfo|null - */ - public function getUpdateInfo() - { - return $this->update_info; - } - - public function hasUpdateInfo() - { - return isset($this->update_info); - } - - public function clearUpdateInfo() - { - unset($this->update_info); - } - - /** - * Output only. [Output only] Update info contains relevant information during - * a node pool update. - * - * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Container\V1\NodePool\UpdateInfo $var - * @return $this - */ - public function setUpdateInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool\UpdateInfo::class); - $this->update_info = $var; - - return $this; - } - - /** - * This checksum is computed by the server based on the value of node pool - * fields, and may be sent on update requests to ensure the client has an - * up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 110; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * This checksum is computed by the server based on the value of node pool - * fields, and may be sent on update requests to ensure the client has an - * up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 110; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy.php deleted file mode 100644 index 55e898c7a72b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy.php +++ /dev/null @@ -1,70 +0,0 @@ -google.container.v1.NodePool.PlacementPolicy - */ -class PlacementPolicy extends \Google\Protobuf\Internal\Message -{ - /** - * The type of placement. - * - * Generated from protobuf field .google.container.v1.NodePool.PlacementPolicy.Type type = 1; - */ - protected $type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * The type of placement. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The type of placement. - * - * Generated from protobuf field .google.container.v1.NodePool.PlacementPolicy.Type type = 1; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The type of placement. - * - * Generated from protobuf field .google.container.v1.NodePool.PlacementPolicy.Type type = 1; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NodePool\PlacementPolicy\Type::class); - $this->type = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PlacementPolicy::class, \Google\Cloud\Container\V1\NodePool_PlacementPolicy::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy/Type.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy/Type.php deleted file mode 100644 index feb385c477d5..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy/Type.php +++ /dev/null @@ -1,59 +0,0 @@ -google.container.v1.NodePool.PlacementPolicy.Type - */ -class Type -{ - /** - * TYPE_UNSPECIFIED specifies no requirements on nodes - * placement. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * COMPACT specifies node placement in the same availability domain to - * ensure low communication latency. - * - * Generated from protobuf enum COMPACT = 1; - */ - const COMPACT = 1; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::COMPACT => 'COMPACT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Type::class, \Google\Cloud\Container\V1\NodePool_PlacementPolicy_Type::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/Status.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/Status.php deleted file mode 100644 index 76d3391edf7d..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/Status.php +++ /dev/null @@ -1,99 +0,0 @@ -google.container.v1.NodePool.Status - */ -class Status -{ - /** - * Not set. - * - * Generated from protobuf enum STATUS_UNSPECIFIED = 0; - */ - const STATUS_UNSPECIFIED = 0; - /** - * The PROVISIONING state indicates the node pool is being created. - * - * Generated from protobuf enum PROVISIONING = 1; - */ - const PROVISIONING = 1; - /** - * The RUNNING state indicates the node pool has been created - * and is fully usable. - * - * Generated from protobuf enum RUNNING = 2; - */ - const RUNNING = 2; - /** - * The RUNNING_WITH_ERROR state indicates the node pool has been created - * and is partially usable. Some error state has occurred and some - * functionality may be impaired. Customer may need to reissue a request - * or trigger a new update. - * - * Generated from protobuf enum RUNNING_WITH_ERROR = 3; - */ - const RUNNING_WITH_ERROR = 3; - /** - * The RECONCILING state indicates that some work is actively being done on - * the node pool, such as upgrading node software. Details can - * be found in the `statusMessage` field. - * - * Generated from protobuf enum RECONCILING = 4; - */ - const RECONCILING = 4; - /** - * The STOPPING state indicates the node pool is being deleted. - * - * Generated from protobuf enum STOPPING = 5; - */ - const STOPPING = 5; - /** - * The ERROR state indicates the node pool may be unusable. Details - * can be found in the `statusMessage` field. - * - * Generated from protobuf enum ERROR = 6; - */ - const ERROR = 6; - - private static $valueToName = [ - self::STATUS_UNSPECIFIED => 'STATUS_UNSPECIFIED', - self::PROVISIONING => 'PROVISIONING', - self::RUNNING => 'RUNNING', - self::RUNNING_WITH_ERROR => 'RUNNING_WITH_ERROR', - self::RECONCILING => 'RECONCILING', - self::STOPPING => 'STOPPING', - self::ERROR => 'ERROR', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Status::class, \Google\Cloud\Container\V1\NodePool_Status::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo.php deleted file mode 100644 index 051fb577f24d..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo.php +++ /dev/null @@ -1,81 +0,0 @@ -google.container.v1.NodePool.UpdateInfo - */ -class UpdateInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Information of a blue-green upgrade. - * - * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - */ - protected $blue_green_info = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\NodePool\UpdateInfo\BlueGreenInfo $blue_green_info - * Information of a blue-green upgrade. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Information of a blue-green upgrade. - * - * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - * @return \Google\Cloud\Container\V1\NodePool\UpdateInfo\BlueGreenInfo|null - */ - public function getBlueGreenInfo() - { - return $this->blue_green_info; - } - - public function hasBlueGreenInfo() - { - return isset($this->blue_green_info); - } - - public function clearBlueGreenInfo() - { - unset($this->blue_green_info); - } - - /** - * Information of a blue-green upgrade. - * - * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - * @param \Google\Cloud\Container\V1\NodePool\UpdateInfo\BlueGreenInfo $var - * @return $this - */ - public function setBlueGreenInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool\UpdateInfo\BlueGreenInfo::class); - $this->blue_green_info = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(UpdateInfo::class, \Google\Cloud\Container\V1\NodePool_UpdateInfo::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo.php deleted file mode 100644 index 5a4d73eb77af..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo.php +++ /dev/null @@ -1,226 +0,0 @@ -google.container.v1.NodePool.UpdateInfo.BlueGreenInfo - */ -class BlueGreenInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Current blue-green upgrade phase. - * - * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; - */ - protected $phase = 0; - /** - * The resource URLs of the [managed instance groups] - * (/compute/docs/instance-groups/creating-groups-of-managed-instances) - * associated with blue pool. - * - * Generated from protobuf field repeated string blue_instance_group_urls = 2; - */ - private $blue_instance_group_urls; - /** - * The resource URLs of the [managed instance groups] - * (/compute/docs/instance-groups/creating-groups-of-managed-instances) - * associated with green pool. - * - * Generated from protobuf field repeated string green_instance_group_urls = 3; - */ - private $green_instance_group_urls; - /** - * Time to start deleting blue pool to complete blue-green upgrade, - * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string blue_pool_deletion_start_time = 4; - */ - protected $blue_pool_deletion_start_time = ''; - /** - * Version of green pool. - * - * Generated from protobuf field string green_pool_version = 5; - */ - protected $green_pool_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $phase - * Current blue-green upgrade phase. - * @type array|\Google\Protobuf\Internal\RepeatedField $blue_instance_group_urls - * The resource URLs of the [managed instance groups] - * (/compute/docs/instance-groups/creating-groups-of-managed-instances) - * associated with blue pool. - * @type array|\Google\Protobuf\Internal\RepeatedField $green_instance_group_urls - * The resource URLs of the [managed instance groups] - * (/compute/docs/instance-groups/creating-groups-of-managed-instances) - * associated with green pool. - * @type string $blue_pool_deletion_start_time - * Time to start deleting blue pool to complete blue-green upgrade, - * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * @type string $green_pool_version - * Version of green pool. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Current blue-green upgrade phase. - * - * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; - * @return int - */ - public function getPhase() - { - return $this->phase; - } - - /** - * Current blue-green upgrade phase. - * - * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; - * @param int $var - * @return $this - */ - public function setPhase($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NodePool\UpdateInfo\BlueGreenInfo\Phase::class); - $this->phase = $var; - - return $this; - } - - /** - * The resource URLs of the [managed instance groups] - * (/compute/docs/instance-groups/creating-groups-of-managed-instances) - * associated with blue pool. - * - * Generated from protobuf field repeated string blue_instance_group_urls = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBlueInstanceGroupUrls() - { - return $this->blue_instance_group_urls; - } - - /** - * The resource URLs of the [managed instance groups] - * (/compute/docs/instance-groups/creating-groups-of-managed-instances) - * associated with blue pool. - * - * Generated from protobuf field repeated string blue_instance_group_urls = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBlueInstanceGroupUrls($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->blue_instance_group_urls = $arr; - - return $this; - } - - /** - * The resource URLs of the [managed instance groups] - * (/compute/docs/instance-groups/creating-groups-of-managed-instances) - * associated with green pool. - * - * Generated from protobuf field repeated string green_instance_group_urls = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getGreenInstanceGroupUrls() - { - return $this->green_instance_group_urls; - } - - /** - * The resource URLs of the [managed instance groups] - * (/compute/docs/instance-groups/creating-groups-of-managed-instances) - * associated with green pool. - * - * Generated from protobuf field repeated string green_instance_group_urls = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setGreenInstanceGroupUrls($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->green_instance_group_urls = $arr; - - return $this; - } - - /** - * Time to start deleting blue pool to complete blue-green upgrade, - * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string blue_pool_deletion_start_time = 4; - * @return string - */ - public function getBluePoolDeletionStartTime() - { - return $this->blue_pool_deletion_start_time; - } - - /** - * Time to start deleting blue pool to complete blue-green upgrade, - * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string blue_pool_deletion_start_time = 4; - * @param string $var - * @return $this - */ - public function setBluePoolDeletionStartTime($var) - { - GPBUtil::checkString($var, True); - $this->blue_pool_deletion_start_time = $var; - - return $this; - } - - /** - * Version of green pool. - * - * Generated from protobuf field string green_pool_version = 5; - * @return string - */ - public function getGreenPoolVersion() - { - return $this->green_pool_version; - } - - /** - * Version of green pool. - * - * Generated from protobuf field string green_pool_version = 5; - * @param string $var - * @return $this - */ - public function setGreenPoolVersion($var) - { - GPBUtil::checkString($var, True); - $this->green_pool_version = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(BlueGreenInfo::class, \Google\Cloud\Container\V1\NodePool_UpdateInfo_BlueGreenInfo::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo/Phase.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo/Phase.php deleted file mode 100644 index f47b3342f3ef..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo/Phase.php +++ /dev/null @@ -1,99 +0,0 @@ -google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase - */ -class Phase -{ - /** - * Unspecified phase. - * - * Generated from protobuf enum PHASE_UNSPECIFIED = 0; - */ - const PHASE_UNSPECIFIED = 0; - /** - * blue-green upgrade has been initiated. - * - * Generated from protobuf enum UPDATE_STARTED = 1; - */ - const UPDATE_STARTED = 1; - /** - * Start creating green pool nodes. - * - * Generated from protobuf enum CREATING_GREEN_POOL = 2; - */ - const CREATING_GREEN_POOL = 2; - /** - * Start cordoning blue pool nodes. - * - * Generated from protobuf enum CORDONING_BLUE_POOL = 3; - */ - const CORDONING_BLUE_POOL = 3; - /** - * Start draining blue pool nodes. - * - * Generated from protobuf enum DRAINING_BLUE_POOL = 4; - */ - const DRAINING_BLUE_POOL = 4; - /** - * Start soaking time after draining entire blue pool. - * - * Generated from protobuf enum NODE_POOL_SOAKING = 5; - */ - const NODE_POOL_SOAKING = 5; - /** - * Start deleting blue nodes. - * - * Generated from protobuf enum DELETING_BLUE_POOL = 6; - */ - const DELETING_BLUE_POOL = 6; - /** - * Rollback has been initiated. - * - * Generated from protobuf enum ROLLBACK_STARTED = 7; - */ - const ROLLBACK_STARTED = 7; - - private static $valueToName = [ - self::PHASE_UNSPECIFIED => 'PHASE_UNSPECIFIED', - self::UPDATE_STARTED => 'UPDATE_STARTED', - self::CREATING_GREEN_POOL => 'CREATING_GREEN_POOL', - self::CORDONING_BLUE_POOL => 'CORDONING_BLUE_POOL', - self::DRAINING_BLUE_POOL => 'DRAINING_BLUE_POOL', - self::NODE_POOL_SOAKING => 'NODE_POOL_SOAKING', - self::DELETING_BLUE_POOL => 'DELETING_BLUE_POOL', - self::ROLLBACK_STARTED => 'ROLLBACK_STARTED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Phase::class, \Google\Cloud\Container\V1\NodePool_UpdateInfo_BlueGreenInfo_Phase::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpgradeSettings.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpgradeSettings.php deleted file mode 100644 index 7fea002183a1..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpgradeSettings.php +++ /dev/null @@ -1,241 +0,0 @@ -google.container.v1.NodePool.UpgradeSettings - */ -class UpgradeSettings extends \Google\Protobuf\Internal\Message -{ - /** - * The maximum number of nodes that can be created beyond the current size - * of the node pool during the upgrade process. - * - * Generated from protobuf field int32 max_surge = 1; - */ - protected $max_surge = 0; - /** - * The maximum number of nodes that can be simultaneously unavailable during - * the upgrade process. A node is considered available if its status is - * Ready. - * - * Generated from protobuf field int32 max_unavailable = 2; - */ - protected $max_unavailable = 0; - /** - * Update strategy of the node pool. - * - * Generated from protobuf field optional .google.container.v1.NodePoolUpdateStrategy strategy = 3; - */ - protected $strategy = null; - /** - * Settings for blue-green upgrade strategy. - * - * Generated from protobuf field optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; - */ - protected $blue_green_settings = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $max_surge - * The maximum number of nodes that can be created beyond the current size - * of the node pool during the upgrade process. - * @type int $max_unavailable - * The maximum number of nodes that can be simultaneously unavailable during - * the upgrade process. A node is considered available if its status is - * Ready. - * @type int $strategy - * Update strategy of the node pool. - * @type \Google\Cloud\Container\V1\BlueGreenSettings $blue_green_settings - * Settings for blue-green upgrade strategy. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The maximum number of nodes that can be created beyond the current size - * of the node pool during the upgrade process. - * - * Generated from protobuf field int32 max_surge = 1; - * @return int - */ - public function getMaxSurge() - { - return $this->max_surge; - } - - /** - * The maximum number of nodes that can be created beyond the current size - * of the node pool during the upgrade process. - * - * Generated from protobuf field int32 max_surge = 1; - * @param int $var - * @return $this - */ - public function setMaxSurge($var) - { - GPBUtil::checkInt32($var); - $this->max_surge = $var; - - return $this; - } - - /** - * The maximum number of nodes that can be simultaneously unavailable during - * the upgrade process. A node is considered available if its status is - * Ready. - * - * Generated from protobuf field int32 max_unavailable = 2; - * @return int - */ - public function getMaxUnavailable() - { - return $this->max_unavailable; - } - - /** - * The maximum number of nodes that can be simultaneously unavailable during - * the upgrade process. A node is considered available if its status is - * Ready. - * - * Generated from protobuf field int32 max_unavailable = 2; - * @param int $var - * @return $this - */ - public function setMaxUnavailable($var) - { - GPBUtil::checkInt32($var); - $this->max_unavailable = $var; - - return $this; - } - - /** - * Update strategy of the node pool. - * - * Generated from protobuf field optional .google.container.v1.NodePoolUpdateStrategy strategy = 3; - * @return int - */ - public function getStrategy() - { - return isset($this->strategy) ? $this->strategy : 0; - } - - public function hasStrategy() - { - return isset($this->strategy); - } - - public function clearStrategy() - { - unset($this->strategy); - } - - /** - * Update strategy of the node pool. - * - * Generated from protobuf field optional .google.container.v1.NodePoolUpdateStrategy strategy = 3; - * @param int $var - * @return $this - */ - public function setStrategy($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NodePoolUpdateStrategy::class); - $this->strategy = $var; - - return $this; - } - - /** - * Settings for blue-green upgrade strategy. - * - * Generated from protobuf field optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; - * @return \Google\Cloud\Container\V1\BlueGreenSettings|null - */ - public function getBlueGreenSettings() - { - return $this->blue_green_settings; - } - - public function hasBlueGreenSettings() - { - return isset($this->blue_green_settings); - } - - public function clearBlueGreenSettings() - { - unset($this->blue_green_settings); - } - - /** - * Settings for blue-green upgrade strategy. - * - * Generated from protobuf field optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; - * @param \Google\Cloud\Container\V1\BlueGreenSettings $var - * @return $this - */ - public function setBlueGreenSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\BlueGreenSettings::class); - $this->blue_green_settings = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(UpgradeSettings::class, \Google\Cloud\Container\V1\NodePool_UpgradeSettings::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoConfig.php deleted file mode 100644 index eaf3c54734fb..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoConfig.php +++ /dev/null @@ -1,90 +0,0 @@ -google.container.v1.NodePoolAutoConfig - */ -class NodePoolAutoConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The list of instance tags applied to all nodes. Tags are used to identify - * valid sources or targets for network firewalls and are specified by - * the client during cluster creation. Each tag within the list - * must comply with RFC1035. - * - * Generated from protobuf field .google.container.v1.NetworkTags network_tags = 1; - */ - protected $network_tags = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\NetworkTags $network_tags - * The list of instance tags applied to all nodes. Tags are used to identify - * valid sources or targets for network firewalls and are specified by - * the client during cluster creation. Each tag within the list - * must comply with RFC1035. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The list of instance tags applied to all nodes. Tags are used to identify - * valid sources or targets for network firewalls and are specified by - * the client during cluster creation. Each tag within the list - * must comply with RFC1035. - * - * Generated from protobuf field .google.container.v1.NetworkTags network_tags = 1; - * @return \Google\Cloud\Container\V1\NetworkTags|null - */ - public function getNetworkTags() - { - return $this->network_tags; - } - - public function hasNetworkTags() - { - return isset($this->network_tags); - } - - public function clearNetworkTags() - { - unset($this->network_tags); - } - - /** - * The list of instance tags applied to all nodes. Tags are used to identify - * valid sources or targets for network firewalls and are specified by - * the client during cluster creation. Each tag within the list - * must comply with RFC1035. - * - * Generated from protobuf field .google.container.v1.NetworkTags network_tags = 1; - * @param \Google\Cloud\Container\V1\NetworkTags $var - * @return $this - */ - public function setNetworkTags($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkTags::class); - $this->network_tags = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling.php deleted file mode 100644 index 6f5f3887bcfe..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling.php +++ /dev/null @@ -1,304 +0,0 @@ -google.container.v1.NodePoolAutoscaling - */ -class NodePoolAutoscaling extends \Google\Protobuf\Internal\Message -{ - /** - * Is autoscaling enabled for this node pool. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - /** - * Minimum number of nodes for one location in the NodePool. Must be >= 1 and - * <= max_node_count. - * - * Generated from protobuf field int32 min_node_count = 2; - */ - protected $min_node_count = 0; - /** - * Maximum number of nodes for one location in the NodePool. Must be >= - * min_node_count. There has to be enough quota to scale up the cluster. - * - * Generated from protobuf field int32 max_node_count = 3; - */ - protected $max_node_count = 0; - /** - * Can this node pool be deleted automatically. - * - * Generated from protobuf field bool autoprovisioned = 4; - */ - protected $autoprovisioned = false; - /** - * Location policy used when scaling up a nodepool. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5; - */ - protected $location_policy = 0; - /** - * Minimum number of nodes in the node pool. Must be greater than 1 less than - * total_max_node_count. - * The total_*_node_count fields are mutually exclusive with the *_node_count - * fields. - * - * Generated from protobuf field int32 total_min_node_count = 6; - */ - protected $total_min_node_count = 0; - /** - * Maximum number of nodes in the node pool. Must be greater than - * total_min_node_count. There has to be enough quota to scale up the cluster. - * The total_*_node_count fields are mutually exclusive with the *_node_count - * fields. - * - * Generated from protobuf field int32 total_max_node_count = 7; - */ - protected $total_max_node_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Is autoscaling enabled for this node pool. - * @type int $min_node_count - * Minimum number of nodes for one location in the NodePool. Must be >= 1 and - * <= max_node_count. - * @type int $max_node_count - * Maximum number of nodes for one location in the NodePool. Must be >= - * min_node_count. There has to be enough quota to scale up the cluster. - * @type bool $autoprovisioned - * Can this node pool be deleted automatically. - * @type int $location_policy - * Location policy used when scaling up a nodepool. - * @type int $total_min_node_count - * Minimum number of nodes in the node pool. Must be greater than 1 less than - * total_max_node_count. - * The total_*_node_count fields are mutually exclusive with the *_node_count - * fields. - * @type int $total_max_node_count - * Maximum number of nodes in the node pool. Must be greater than - * total_min_node_count. There has to be enough quota to scale up the cluster. - * The total_*_node_count fields are mutually exclusive with the *_node_count - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Is autoscaling enabled for this node pool. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Is autoscaling enabled for this node pool. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - - /** - * Minimum number of nodes for one location in the NodePool. Must be >= 1 and - * <= max_node_count. - * - * Generated from protobuf field int32 min_node_count = 2; - * @return int - */ - public function getMinNodeCount() - { - return $this->min_node_count; - } - - /** - * Minimum number of nodes for one location in the NodePool. Must be >= 1 and - * <= max_node_count. - * - * Generated from protobuf field int32 min_node_count = 2; - * @param int $var - * @return $this - */ - public function setMinNodeCount($var) - { - GPBUtil::checkInt32($var); - $this->min_node_count = $var; - - return $this; - } - - /** - * Maximum number of nodes for one location in the NodePool. Must be >= - * min_node_count. There has to be enough quota to scale up the cluster. - * - * Generated from protobuf field int32 max_node_count = 3; - * @return int - */ - public function getMaxNodeCount() - { - return $this->max_node_count; - } - - /** - * Maximum number of nodes for one location in the NodePool. Must be >= - * min_node_count. There has to be enough quota to scale up the cluster. - * - * Generated from protobuf field int32 max_node_count = 3; - * @param int $var - * @return $this - */ - public function setMaxNodeCount($var) - { - GPBUtil::checkInt32($var); - $this->max_node_count = $var; - - return $this; - } - - /** - * Can this node pool be deleted automatically. - * - * Generated from protobuf field bool autoprovisioned = 4; - * @return bool - */ - public function getAutoprovisioned() - { - return $this->autoprovisioned; - } - - /** - * Can this node pool be deleted automatically. - * - * Generated from protobuf field bool autoprovisioned = 4; - * @param bool $var - * @return $this - */ - public function setAutoprovisioned($var) - { - GPBUtil::checkBool($var); - $this->autoprovisioned = $var; - - return $this; - } - - /** - * Location policy used when scaling up a nodepool. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5; - * @return int - */ - public function getLocationPolicy() - { - return $this->location_policy; - } - - /** - * Location policy used when scaling up a nodepool. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5; - * @param int $var - * @return $this - */ - public function setLocationPolicy($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NodePoolAutoscaling\LocationPolicy::class); - $this->location_policy = $var; - - return $this; - } - - /** - * Minimum number of nodes in the node pool. Must be greater than 1 less than - * total_max_node_count. - * The total_*_node_count fields are mutually exclusive with the *_node_count - * fields. - * - * Generated from protobuf field int32 total_min_node_count = 6; - * @return int - */ - public function getTotalMinNodeCount() - { - return $this->total_min_node_count; - } - - /** - * Minimum number of nodes in the node pool. Must be greater than 1 less than - * total_max_node_count. - * The total_*_node_count fields are mutually exclusive with the *_node_count - * fields. - * - * Generated from protobuf field int32 total_min_node_count = 6; - * @param int $var - * @return $this - */ - public function setTotalMinNodeCount($var) - { - GPBUtil::checkInt32($var); - $this->total_min_node_count = $var; - - return $this; - } - - /** - * Maximum number of nodes in the node pool. Must be greater than - * total_min_node_count. There has to be enough quota to scale up the cluster. - * The total_*_node_count fields are mutually exclusive with the *_node_count - * fields. - * - * Generated from protobuf field int32 total_max_node_count = 7; - * @return int - */ - public function getTotalMaxNodeCount() - { - return $this->total_max_node_count; - } - - /** - * Maximum number of nodes in the node pool. Must be greater than - * total_min_node_count. There has to be enough quota to scale up the cluster. - * The total_*_node_count fields are mutually exclusive with the *_node_count - * fields. - * - * Generated from protobuf field int32 total_max_node_count = 7; - * @param int $var - * @return $this - */ - public function setTotalMaxNodeCount($var) - { - GPBUtil::checkInt32($var); - $this->total_max_node_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling/LocationPolicy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling/LocationPolicy.php deleted file mode 100644 index 1a3cea48b398..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling/LocationPolicy.php +++ /dev/null @@ -1,66 +0,0 @@ -google.container.v1.NodePoolAutoscaling.LocationPolicy - */ -class LocationPolicy -{ - /** - * Not set. - * - * Generated from protobuf enum LOCATION_POLICY_UNSPECIFIED = 0; - */ - const LOCATION_POLICY_UNSPECIFIED = 0; - /** - * BALANCED is a best effort policy that aims to balance the sizes of - * different zones. - * - * Generated from protobuf enum BALANCED = 1; - */ - const BALANCED = 1; - /** - * ANY policy picks zones that have the highest capacity available. - * - * Generated from protobuf enum ANY = 2; - */ - const ANY = 2; - - private static $valueToName = [ - self::LOCATION_POLICY_UNSPECIFIED => 'LOCATION_POLICY_UNSPECIFIED', - self::BALANCED => 'BALANCED', - self::ANY => 'ANY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(LocationPolicy::class, \Google\Cloud\Container\V1\NodePoolAutoscaling_LocationPolicy::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling_LocationPolicy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling_LocationPolicy.php deleted file mode 100644 index b1681bcd2517..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling_LocationPolicy.php +++ /dev/null @@ -1,16 +0,0 @@ -google.container.v1.NodePoolDefaults - */ -class NodePoolDefaults extends \Google\Protobuf\Internal\Message -{ - /** - * Subset of NodeConfig message that has defaults. - * - * Generated from protobuf field .google.container.v1.NodeConfigDefaults node_config_defaults = 1; - */ - protected $node_config_defaults = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\NodeConfigDefaults $node_config_defaults - * Subset of NodeConfig message that has defaults. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Subset of NodeConfig message that has defaults. - * - * Generated from protobuf field .google.container.v1.NodeConfigDefaults node_config_defaults = 1; - * @return \Google\Cloud\Container\V1\NodeConfigDefaults|null - */ - public function getNodeConfigDefaults() - { - return $this->node_config_defaults; - } - - public function hasNodeConfigDefaults() - { - return isset($this->node_config_defaults); - } - - public function clearNodeConfigDefaults() - { - unset($this->node_config_defaults); - } - - /** - * Subset of NodeConfig message that has defaults. - * - * Generated from protobuf field .google.container.v1.NodeConfigDefaults node_config_defaults = 1; - * @param \Google\Cloud\Container\V1\NodeConfigDefaults $var - * @return $this - */ - public function setNodeConfigDefaults($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeConfigDefaults::class); - $this->node_config_defaults = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolLoggingConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolLoggingConfig.php deleted file mode 100644 index 3b1a6d619f08..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolLoggingConfig.php +++ /dev/null @@ -1,77 +0,0 @@ -google.container.v1.NodePoolLoggingConfig - */ -class NodePoolLoggingConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Logging variant configuration. - * - * Generated from protobuf field .google.container.v1.LoggingVariantConfig variant_config = 1; - */ - protected $variant_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\LoggingVariantConfig $variant_config - * Logging variant configuration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Logging variant configuration. - * - * Generated from protobuf field .google.container.v1.LoggingVariantConfig variant_config = 1; - * @return \Google\Cloud\Container\V1\LoggingVariantConfig|null - */ - public function getVariantConfig() - { - return $this->variant_config; - } - - public function hasVariantConfig() - { - return isset($this->variant_config); - } - - public function clearVariantConfig() - { - unset($this->variant_config); - } - - /** - * Logging variant configuration. - * - * Generated from protobuf field .google.container.v1.LoggingVariantConfig variant_config = 1; - * @param \Google\Cloud\Container\V1\LoggingVariantConfig $var - * @return $this - */ - public function setVariantConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LoggingVariantConfig::class); - $this->variant_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolUpdateStrategy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolUpdateStrategy.php deleted file mode 100644 index 0879bfb66d87..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolUpdateStrategy.php +++ /dev/null @@ -1,63 +0,0 @@ -google.container.v1.NodePoolUpdateStrategy - */ -class NodePoolUpdateStrategy -{ - /** - * Default value if unset. GKE internally defaults the update strategy to - * SURGE for unspecified strategies. - * - * Generated from protobuf enum NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED = 0; - */ - const NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED = 0; - /** - * blue-green upgrade. - * - * Generated from protobuf enum BLUE_GREEN = 2; - */ - const BLUE_GREEN = 2; - /** - * SURGE is the traditional way of upgrade a node pool. - * max_surge and max_unavailable determines the level of upgrade parallelism. - * - * Generated from protobuf enum SURGE = 3; - */ - const SURGE = 3; - - private static $valueToName = [ - self::NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED => 'NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED', - self::BLUE_GREEN => 'BLUE_GREEN', - self::SURGE => 'SURGE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool_PlacementPolicy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool_PlacementPolicy.php deleted file mode 100644 index 5b1484223c34..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool_PlacementPolicy.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.NodeTaints - */ -class NodeTaints extends \Google\Protobuf\Internal\Message -{ - /** - * List of node taints. - * - * Generated from protobuf field repeated .google.container.v1.NodeTaint taints = 1; - */ - private $taints; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Container\V1\NodeTaint>|\Google\Protobuf\Internal\RepeatedField $taints - * List of node taints. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * List of node taints. - * - * Generated from protobuf field repeated .google.container.v1.NodeTaint taints = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTaints() - { - return $this->taints; - } - - /** - * List of node taints. - * - * Generated from protobuf field repeated .google.container.v1.NodeTaint taints = 1; - * @param array<\Google\Cloud\Container\V1\NodeTaint>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTaints($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\NodeTaint::class); - $this->taints = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig.php deleted file mode 100644 index e478d70b2638..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig.php +++ /dev/null @@ -1,77 +0,0 @@ -google.container.v1.NotificationConfig - */ -class NotificationConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Notification config for Pub/Sub. - * - * Generated from protobuf field .google.container.v1.NotificationConfig.PubSub pubsub = 1; - */ - protected $pubsub = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\NotificationConfig\PubSub $pubsub - * Notification config for Pub/Sub. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Notification config for Pub/Sub. - * - * Generated from protobuf field .google.container.v1.NotificationConfig.PubSub pubsub = 1; - * @return \Google\Cloud\Container\V1\NotificationConfig\PubSub|null - */ - public function getPubsub() - { - return $this->pubsub; - } - - public function hasPubsub() - { - return isset($this->pubsub); - } - - public function clearPubsub() - { - unset($this->pubsub); - } - - /** - * Notification config for Pub/Sub. - * - * Generated from protobuf field .google.container.v1.NotificationConfig.PubSub pubsub = 1; - * @param \Google\Cloud\Container\V1\NotificationConfig\PubSub $var - * @return $this - */ - public function setPubsub($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NotificationConfig\PubSub::class); - $this->pubsub = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/EventType.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/EventType.php deleted file mode 100644 index 7489b2c7e292..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/EventType.php +++ /dev/null @@ -1,72 +0,0 @@ -google.container.v1.NotificationConfig.EventType - */ -class EventType -{ - /** - * Not set, will be ignored. - * - * Generated from protobuf enum EVENT_TYPE_UNSPECIFIED = 0; - */ - const EVENT_TYPE_UNSPECIFIED = 0; - /** - * Corresponds with UpgradeAvailableEvent. - * - * Generated from protobuf enum UPGRADE_AVAILABLE_EVENT = 1; - */ - const UPGRADE_AVAILABLE_EVENT = 1; - /** - * Corresponds with UpgradeEvent. - * - * Generated from protobuf enum UPGRADE_EVENT = 2; - */ - const UPGRADE_EVENT = 2; - /** - * Corresponds with SecurityBulletinEvent. - * - * Generated from protobuf enum SECURITY_BULLETIN_EVENT = 3; - */ - const SECURITY_BULLETIN_EVENT = 3; - - private static $valueToName = [ - self::EVENT_TYPE_UNSPECIFIED => 'EVENT_TYPE_UNSPECIFIED', - self::UPGRADE_AVAILABLE_EVENT => 'UPGRADE_AVAILABLE_EVENT', - self::UPGRADE_EVENT => 'UPGRADE_EVENT', - self::SECURITY_BULLETIN_EVENT => 'SECURITY_BULLETIN_EVENT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(EventType::class, \Google\Cloud\Container\V1\NotificationConfig_EventType::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/Filter.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/Filter.php deleted file mode 100644 index cdeb11220ad9..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/Filter.php +++ /dev/null @@ -1,73 +0,0 @@ -google.container.v1.NotificationConfig.Filter - */ -class Filter extends \Google\Protobuf\Internal\Message -{ - /** - * Event types to allowlist. - * - * Generated from protobuf field repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - */ - private $event_type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $event_type - * Event types to allowlist. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Event types to allowlist. - * - * Generated from protobuf field repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEventType() - { - return $this->event_type; - } - - /** - * Event types to allowlist. - * - * Generated from protobuf field repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEventType($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Container\V1\NotificationConfig\EventType::class); - $this->event_type = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Filter::class, \Google\Cloud\Container\V1\NotificationConfig_Filter::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/PubSub.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/PubSub.php deleted file mode 100644 index 21ded6c6c98a..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/PubSub.php +++ /dev/null @@ -1,160 +0,0 @@ -google.container.v1.NotificationConfig.PubSub - */ -class PubSub extends \Google\Protobuf\Internal\Message -{ - /** - * Enable notifications for Pub/Sub. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - /** - * The desired Pub/Sub topic to which notifications will be - * sent by GKE. Format is `projects/{project}/topics/{topic}`. - * - * Generated from protobuf field string topic = 2 [(.google.api.resource_reference) = { - */ - protected $topic = ''; - /** - * Allows filtering to one or more specific event types. If no filter is - * specified, or if a filter is specified with no event types, all event - * types will be sent - * - * Generated from protobuf field .google.container.v1.NotificationConfig.Filter filter = 3; - */ - protected $filter = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Enable notifications for Pub/Sub. - * @type string $topic - * The desired Pub/Sub topic to which notifications will be - * sent by GKE. Format is `projects/{project}/topics/{topic}`. - * @type \Google\Cloud\Container\V1\NotificationConfig\Filter $filter - * Allows filtering to one or more specific event types. If no filter is - * specified, or if a filter is specified with no event types, all event - * types will be sent - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Enable notifications for Pub/Sub. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Enable notifications for Pub/Sub. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - - /** - * The desired Pub/Sub topic to which notifications will be - * sent by GKE. Format is `projects/{project}/topics/{topic}`. - * - * Generated from protobuf field string topic = 2 [(.google.api.resource_reference) = { - * @return string - */ - public function getTopic() - { - return $this->topic; - } - - /** - * The desired Pub/Sub topic to which notifications will be - * sent by GKE. Format is `projects/{project}/topics/{topic}`. - * - * Generated from protobuf field string topic = 2 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setTopic($var) - { - GPBUtil::checkString($var, True); - $this->topic = $var; - - return $this; - } - - /** - * Allows filtering to one or more specific event types. If no filter is - * specified, or if a filter is specified with no event types, all event - * types will be sent - * - * Generated from protobuf field .google.container.v1.NotificationConfig.Filter filter = 3; - * @return \Google\Cloud\Container\V1\NotificationConfig\Filter|null - */ - public function getFilter() - { - return $this->filter; - } - - public function hasFilter() - { - return isset($this->filter); - } - - public function clearFilter() - { - unset($this->filter); - } - - /** - * Allows filtering to one or more specific event types. If no filter is - * specified, or if a filter is specified with no event types, all event - * types will be sent - * - * Generated from protobuf field .google.container.v1.NotificationConfig.Filter filter = 3; - * @param \Google\Cloud\Container\V1\NotificationConfig\Filter $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NotificationConfig\Filter::class); - $this->filter = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PubSub::class, \Google\Cloud\Container\V1\NotificationConfig_PubSub::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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 array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $cluster_conditions - * Which conditions caused the current cluster state. - * Deprecated. Use field error instead. - * @type array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $nodepool_conditions - * Which conditions caused the current node pool state. - * Deprecated. Use field error instead. - * @type \Google\Rpc\Status $error - * The error result of the operation in case of failure. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The server-assigned ID for the operation. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The server-assigned ID for the operation. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * operation is taking place. This field is deprecated, use location instead. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * operation is taking place. This field is deprecated, use location instead. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * The operation type. - * - * Generated from protobuf field .google.container.v1.Operation.Type operation_type = 3; - * @return int - */ - public function getOperationType() - { - return $this->operation_type; - } - - /** - * The operation type. - * - * Generated from protobuf field .google.container.v1.Operation.Type operation_type = 3; - * @param int $var - * @return $this - */ - public function setOperationType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\Operation\Type::class); - $this->operation_type = $var; - - return $this; - } - - /** - * The current status of the operation. - * - * Generated from protobuf field .google.container.v1.Operation.Status status = 4; - * @return int - */ - public function getStatus() - { - return $this->status; - } - - /** - * The current status of the operation. - * - * Generated from protobuf field .google.container.v1.Operation.Status status = 4; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\Operation\Status::class); - $this->status = $var; - - return $this; - } - - /** - * Detailed operation progress, if available. - * - * Generated from protobuf field string detail = 8; - * @return string - */ - public function getDetail() - { - return $this->detail; - } - - /** - * Detailed operation progress, if available. - * - * Generated from protobuf field string detail = 8; - * @param string $var - * @return $this - */ - public function setDetail($var) - { - GPBUtil::checkString($var, True); - $this->detail = $var; - - return $this; - } - - /** - * Output only. If an error has occurred, a textual description of the error. - * Deprecated. Use the field error instead. - * - * Generated from protobuf field string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - * @deprecated - */ - public function getStatusMessage() - { - @trigger_error('status_message is deprecated.', E_USER_DEPRECATED); - return $this->status_message; - } - - /** - * Output only. If an error has occurred, a textual description of the error. - * Deprecated. Use the field error instead. - * - * Generated from protobuf field string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - * @deprecated - */ - public function setStatusMessage($var) - { - @trigger_error('status_message is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->status_message = $var; - - return $this; - } - - /** - * Server-defined 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 array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - * @deprecated - */ - public function setClusterConditions($var) - { - @trigger_error('cluster_conditions is deprecated.', E_USER_DEPRECATED); - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\StatusCondition::class); - $this->cluster_conditions = $arr; - - return $this; - } - - /** - * Which conditions caused the current node pool state. - * Deprecated. Use field error instead. - * - * Generated from protobuf field repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - * @return \Google\Protobuf\Internal\RepeatedField - * @deprecated - */ - public function getNodepoolConditions() - { - @trigger_error('nodepool_conditions is deprecated.', E_USER_DEPRECATED); - return $this->nodepool_conditions; - } - - /** - * Which conditions caused the current node pool state. - * Deprecated. Use field error instead. - * - * Generated from protobuf field repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - * @param array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - * @deprecated - */ - public function setNodepoolConditions($var) - { - @trigger_error('nodepool_conditions is deprecated.', E_USER_DEPRECATED); - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\StatusCondition::class); - $this->nodepool_conditions = $arr; - - return $this; - } - - /** - * The error result of the operation in case of failure. - * - * Generated from protobuf field .google.rpc.Status error = 15; - * @return \Google\Rpc\Status|null - */ - public function getError() - { - return $this->error; - } - - public function hasError() - { - return isset($this->error); - } - - public function clearError() - { - unset($this->error); - } - - /** - * The error result of the operation in case of failure. - * - * Generated from protobuf field .google.rpc.Status error = 15; - * @param \Google\Rpc\Status $var - * @return $this - */ - public function setError($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Status::class); - $this->error = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation/Status.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation/Status.php deleted file mode 100644 index 49c8585d1851..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation/Status.php +++ /dev/null @@ -1,78 +0,0 @@ -google.container.v1.Operation.Status - */ -class Status -{ - /** - * Not set. - * - * Generated from protobuf enum STATUS_UNSPECIFIED = 0; - */ - const STATUS_UNSPECIFIED = 0; - /** - * The operation has been created. - * - * Generated from protobuf enum PENDING = 1; - */ - const PENDING = 1; - /** - * The operation is currently running. - * - * Generated from protobuf enum RUNNING = 2; - */ - const RUNNING = 2; - /** - * The operation is done, either cancelled or completed. - * - * Generated from protobuf enum DONE = 3; - */ - const DONE = 3; - /** - * The operation is aborting. - * - * Generated from protobuf enum ABORTING = 4; - */ - const ABORTING = 4; - - private static $valueToName = [ - self::STATUS_UNSPECIFIED => 'STATUS_UNSPECIFIED', - self::PENDING => 'PENDING', - self::RUNNING => 'RUNNING', - self::DONE => 'DONE', - self::ABORTING => 'ABORTING', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Status::class, \Google\Cloud\Container\V1\Operation_Status::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation/Type.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation/Type.php deleted file mode 100644 index 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 533975905024..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/OperationProgress.php +++ /dev/null @@ -1,197 +0,0 @@ -google.container.v1.OperationProgress - */ -class OperationProgress extends \Google\Protobuf\Internal\Message -{ - /** - * A non-parameterized string describing an operation stage. - * Unset for single-stage operations. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Status of an operation stage. - * Unset for single-stage operations. - * - * Generated from protobuf field .google.container.v1.Operation.Status status = 2; - */ - protected $status = 0; - /** - * Progress metric bundle, for example: - * metrics: [{name: "nodes done", int_value: 15}, - * {name: "nodes total", int_value: 32}] - * or - * metrics: [{name: "progress", double_value: 0.56}, - * {name: "progress scale", double_value: 1.0}] - * - * Generated from protobuf field repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - private $metrics; - /** - * Substages of an operation or a stage. - * - * Generated from protobuf field repeated .google.container.v1.OperationProgress stages = 4; - */ - private $stages; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * A non-parameterized string describing an operation stage. - * Unset for single-stage operations. - * @type int $status - * Status of an operation stage. - * Unset for single-stage operations. - * @type array<\Google\Cloud\Container\V1\OperationProgress\Metric>|\Google\Protobuf\Internal\RepeatedField $metrics - * Progress metric bundle, for example: - * metrics: [{name: "nodes done", int_value: 15}, - * {name: "nodes total", int_value: 32}] - * or - * metrics: [{name: "progress", double_value: 0.56}, - * {name: "progress scale", double_value: 1.0}] - * @type array<\Google\Cloud\Container\V1\OperationProgress>|\Google\Protobuf\Internal\RepeatedField $stages - * Substages of an operation or a stage. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * A non-parameterized string describing an operation stage. - * Unset for single-stage operations. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * A non-parameterized string describing an operation stage. - * Unset for single-stage operations. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Status of an operation stage. - * Unset for single-stage operations. - * - * Generated from protobuf field .google.container.v1.Operation.Status status = 2; - * @return int - */ - public function getStatus() - { - return $this->status; - } - - /** - * Status of an operation stage. - * Unset for single-stage operations. - * - * Generated from protobuf field .google.container.v1.Operation.Status status = 2; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\Operation\Status::class); - $this->status = $var; - - return $this; - } - - /** - * Progress metric bundle, for example: - * metrics: [{name: "nodes done", int_value: 15}, - * {name: "nodes total", int_value: 32}] - * or - * metrics: [{name: "progress", double_value: 0.56}, - * {name: "progress scale", double_value: 1.0}] - * - * Generated from protobuf field repeated .google.container.v1.OperationProgress.Metric metrics = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetrics() - { - return $this->metrics; - } - - /** - * Progress metric bundle, for example: - * metrics: [{name: "nodes done", int_value: 15}, - * {name: "nodes total", int_value: 32}] - * or - * metrics: [{name: "progress", double_value: 0.56}, - * {name: "progress scale", double_value: 1.0}] - * - * Generated from protobuf field repeated .google.container.v1.OperationProgress.Metric metrics = 3; - * @param array<\Google\Cloud\Container\V1\OperationProgress\Metric>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetrics($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\OperationProgress\Metric::class); - $this->metrics = $arr; - - return $this; - } - - /** - * Substages of an operation or a stage. - * - * Generated from protobuf field repeated .google.container.v1.OperationProgress stages = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getStages() - { - return $this->stages; - } - - /** - * Substages of an operation or a stage. - * - * Generated from protobuf field repeated .google.container.v1.OperationProgress stages = 4; - * @param array<\Google\Cloud\Container\V1\OperationProgress>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setStages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\OperationProgress::class); - $this->stages = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/OperationProgress/Metric.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/OperationProgress/Metric.php deleted file mode 100644 index 6c134eae0fd1..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/OperationProgress/Metric.php +++ /dev/null @@ -1,178 +0,0 @@ -google.container.v1.OperationProgress.Metric - */ -class Metric extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Metric name, e.g., "nodes total", "percent done". - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - protected $value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Metric name, e.g., "nodes total", "percent done". - * @type int|string $int_value - * For metrics with integer value. - * @type float $double_value - * For metrics with floating point value. - * @type string $string_value - * For metrics with custom values (ratios, visual progress, etc.). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Metric name, e.g., "nodes total", "percent done". - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Metric name, e.g., "nodes total", "percent done". - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * For metrics with integer value. - * - * Generated from protobuf field int64 int_value = 2; - * @return int|string - */ - public function getIntValue() - { - return $this->readOneof(2); - } - - public function hasIntValue() - { - return $this->hasOneof(2); - } - - /** - * For metrics with integer value. - * - * Generated from protobuf field int64 int_value = 2; - * @param int|string $var - * @return $this - */ - public function setIntValue($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * For metrics with floating point value. - * - * Generated from protobuf field double double_value = 3; - * @return float - */ - public function getDoubleValue() - { - return $this->readOneof(3); - } - - public function hasDoubleValue() - { - return $this->hasOneof(3); - } - - /** - * For metrics with floating point value. - * - * Generated from protobuf field double double_value = 3; - * @param float $var - * @return $this - */ - public function setDoubleValue($var) - { - GPBUtil::checkDouble($var); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * For metrics with custom values (ratios, visual progress, etc.). - * - * Generated from protobuf field string string_value = 4; - * @return string - */ - public function getStringValue() - { - return $this->readOneof(4); - } - - public function hasStringValue() - { - return $this->hasOneof(4); - } - - /** - * For metrics with custom values (ratios, visual progress, etc.). - * - * Generated from protobuf field string string_value = 4; - * @param string $var - * @return $this - */ - public function setStringValue($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getValue() - { - return $this->whichOneof("value"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Metric::class, \Google\Cloud\Container\V1\OperationProgress_Metric::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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; - /** - * Subnet to provision the master's private endpoint during cluster creation. - * Specified in projects/*/regions/*/subnetworks/* format. - * - * Generated from protobuf field string private_endpoint_subnetwork = 10; - */ - protected $private_endpoint_subnetwork = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enable_private_nodes - * Whether nodes have internal IP addresses only. If enabled, all nodes are - * given only RFC 1918 private addresses and communicate with the master via - * private networking. - * @type bool $enable_private_endpoint - * Whether the master's internal IP address is used as the cluster endpoint. - * @type string $master_ipv4_cidr_block - * The IP range in CIDR notation to use for the hosted master network. This - * range will be used for assigning internal IP addresses to the master or - * set of masters, as well as the ILB VIP. This range must not overlap with - * any other ranges in use within the cluster's network. - * @type string $private_endpoint - * Output only. The internal IP address of this cluster's master endpoint. - * @type string $public_endpoint - * Output only. The external IP address of this cluster's master endpoint. - * @type string $peering_name - * Output only. The peering name in the customer VPC used by this cluster. - * @type \Google\Cloud\Container\V1\PrivateClusterMasterGlobalAccessConfig $master_global_access_config - * Controls master global access settings. - * @type string $private_endpoint_subnetwork - * Subnet to provision the master's private endpoint during cluster creation. - * Specified in projects/*/regions/*/subnetworks/* format. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether nodes have internal IP addresses only. If enabled, all nodes are - * given only RFC 1918 private addresses and communicate with the master via - * private networking. - * - * Generated from protobuf field bool enable_private_nodes = 1; - * @return bool - */ - public function getEnablePrivateNodes() - { - return $this->enable_private_nodes; - } - - /** - * Whether nodes have internal IP addresses only. If enabled, all nodes are - * given only RFC 1918 private addresses and communicate with the master via - * private networking. - * - * Generated from protobuf field bool enable_private_nodes = 1; - * @param bool $var - * @return $this - */ - public function setEnablePrivateNodes($var) - { - GPBUtil::checkBool($var); - $this->enable_private_nodes = $var; - - return $this; - } - - /** - * Whether the master's internal IP address is used as the cluster endpoint. - * - * Generated from protobuf field bool enable_private_endpoint = 2; - * @return bool - */ - public function getEnablePrivateEndpoint() - { - return $this->enable_private_endpoint; - } - - /** - * Whether the master's internal IP address is used as the cluster endpoint. - * - * Generated from protobuf field bool enable_private_endpoint = 2; - * @param bool $var - * @return $this - */ - public function setEnablePrivateEndpoint($var) - { - GPBUtil::checkBool($var); - $this->enable_private_endpoint = $var; - - return $this; - } - - /** - * The IP range in CIDR notation to use for the hosted master network. This - * range will be used for assigning internal IP addresses to the master or - * set of masters, as well as the ILB VIP. This range must not overlap with - * any other ranges in use within the cluster's network. - * - * Generated from protobuf field string master_ipv4_cidr_block = 3; - * @return string - */ - public function getMasterIpv4CidrBlock() - { - return $this->master_ipv4_cidr_block; - } - - /** - * The IP range in CIDR notation to use for the hosted master network. This - * range will be used for assigning internal IP addresses to the master or - * set of masters, as well as the ILB VIP. This range must not overlap with - * any other ranges in use within the cluster's network. - * - * Generated from protobuf field string master_ipv4_cidr_block = 3; - * @param string $var - * @return $this - */ - public function setMasterIpv4CidrBlock($var) - { - GPBUtil::checkString($var, True); - $this->master_ipv4_cidr_block = $var; - - return $this; - } - - /** - * Output only. The internal IP address of this cluster's master endpoint. - * - * Generated from protobuf field string private_endpoint = 4; - * @return string - */ - public function getPrivateEndpoint() - { - return $this->private_endpoint; - } - - /** - * Output only. The internal IP address of this cluster's master endpoint. - * - * Generated from protobuf field string private_endpoint = 4; - * @param string $var - * @return $this - */ - public function setPrivateEndpoint($var) - { - GPBUtil::checkString($var, True); - $this->private_endpoint = $var; - - return $this; - } - - /** - * Output only. The external IP address of this cluster's master endpoint. - * - * Generated from protobuf field string public_endpoint = 5; - * @return string - */ - public function getPublicEndpoint() - { - return $this->public_endpoint; - } - - /** - * Output only. The external IP address of this cluster's master endpoint. - * - * Generated from protobuf field string public_endpoint = 5; - * @param string $var - * @return $this - */ - public function setPublicEndpoint($var) - { - GPBUtil::checkString($var, True); - $this->public_endpoint = $var; - - return $this; - } - - /** - * Output only. The peering name in the customer VPC used by this cluster. - * - * Generated from protobuf field string peering_name = 7; - * @return string - */ - public function getPeeringName() - { - return $this->peering_name; - } - - /** - * Output only. The peering name in the customer VPC used by this cluster. - * - * Generated from protobuf field string peering_name = 7; - * @param string $var - * @return $this - */ - public function setPeeringName($var) - { - GPBUtil::checkString($var, True); - $this->peering_name = $var; - - return $this; - } - - /** - * Controls master global access settings. - * - * Generated from protobuf field .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * @return \Google\Cloud\Container\V1\PrivateClusterMasterGlobalAccessConfig|null - */ - public function getMasterGlobalAccessConfig() - { - return $this->master_global_access_config; - } - - public function hasMasterGlobalAccessConfig() - { - return isset($this->master_global_access_config); - } - - public function clearMasterGlobalAccessConfig() - { - unset($this->master_global_access_config); - } - - /** - * Controls master global access settings. - * - * Generated from protobuf field .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * @param \Google\Cloud\Container\V1\PrivateClusterMasterGlobalAccessConfig $var - * @return $this - */ - public function setMasterGlobalAccessConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\PrivateClusterMasterGlobalAccessConfig::class); - $this->master_global_access_config = $var; - - return $this; - } - - /** - * Subnet to provision the master's private endpoint during cluster creation. - * Specified in projects/*/regions/*/subnetworks/* format. - * - * Generated from protobuf field string private_endpoint_subnetwork = 10; - * @return string - */ - public function getPrivateEndpointSubnetwork() - { - return $this->private_endpoint_subnetwork; - } - - /** - * Subnet to provision the master's private endpoint during cluster creation. - * Specified in projects/*/regions/*/subnetworks/* format. - * - * Generated from protobuf field string private_endpoint_subnetwork = 10; - * @param string $var - * @return $this - */ - public function setPrivateEndpointSubnetwork($var) - { - GPBUtil::checkString($var, True); - $this->private_endpoint_subnetwork = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateClusterMasterGlobalAccessConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateClusterMasterGlobalAccessConfig.php deleted file mode 100644 index 0bfb60386807..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateClusterMasterGlobalAccessConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.PrivateClusterMasterGlobalAccessConfig - */ -class PrivateClusterMasterGlobalAccessConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whenever master is accessible globally or not. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whenever master is accessible globally or not. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whenever master is accessible globally or not. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whenever master is accessible globally or not. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateIPv6GoogleAccess.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateIPv6GoogleAccess.php deleted file mode 100644 index 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 - * "compute.googleapis.com/reservation-name" as the key and specify the name - * of your reservation as its value. - * - * Generated from protobuf field string key = 2; - */ - protected $key = ''; - /** - * Corresponds to the label value(s) of reservation resource(s). - * - * Generated from protobuf field repeated string values = 3; - */ - private $values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $consume_reservation_type - * Corresponds to the type of reservation consumption. - * @type string $key - * Corresponds to the label key of a reservation resource. To target a - * SPECIFIC_RESERVATION by name, specify - * "compute.googleapis.com/reservation-name" as the key and specify the name - * of your reservation as its value. - * @type array|\Google\Protobuf\Internal\RepeatedField $values - * Corresponds to the label value(s) of reservation resource(s). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Corresponds to the type of reservation consumption. - * - * Generated from protobuf field .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; - * @return int - */ - public function getConsumeReservationType() - { - return $this->consume_reservation_type; - } - - /** - * Corresponds to the type of reservation consumption. - * - * Generated from protobuf field .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; - * @param int $var - * @return $this - */ - public function setConsumeReservationType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\ReservationAffinity\Type::class); - $this->consume_reservation_type = $var; - - return $this; - } - - /** - * Corresponds to the label key of a reservation resource. To target a - * SPECIFIC_RESERVATION by name, specify - * "compute.googleapis.com/reservation-name" as the key and specify the name - * of your reservation as its value. - * - * Generated from protobuf field string key = 2; - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * Corresponds to the label key of a reservation resource. To target a - * SPECIFIC_RESERVATION by name, specify - * "compute.googleapis.com/reservation-name" as the key and specify the name - * of your reservation as its value. - * - * Generated from protobuf field string key = 2; - * @param string $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkString($var, True); - $this->key = $var; - - return $this; - } - - /** - * Corresponds to the label value(s) of reservation resource(s). - * - * Generated from protobuf field repeated string values = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValues() - { - return $this->values; - } - - /** - * Corresponds to the label value(s) of reservation resource(s). - * - * Generated from protobuf field repeated string values = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->values = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReservationAffinity/Type.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReservationAffinity/Type.php deleted file mode 100644 index 3c29ed5934e3..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReservationAffinity/Type.php +++ /dev/null @@ -1,72 +0,0 @@ -google.container.v1.ReservationAffinity.Type - */ -class Type -{ - /** - * Default value. This should not be used. - * - * Generated from protobuf enum UNSPECIFIED = 0; - */ - const UNSPECIFIED = 0; - /** - * Do not consume from any reserved capacity. - * - * Generated from protobuf enum NO_RESERVATION = 1; - */ - const NO_RESERVATION = 1; - /** - * Consume any reservation available. - * - * Generated from protobuf enum ANY_RESERVATION = 2; - */ - const ANY_RESERVATION = 2; - /** - * Must consume from a specific reservation. Must specify key value fields - * for specifying the reservations. - * - * Generated from protobuf enum SPECIFIC_RESERVATION = 3; - */ - const SPECIFIC_RESERVATION = 3; - - private static $valueToName = [ - self::UNSPECIFIED => 'UNSPECIFIED', - self::NO_RESERVATION => 'NO_RESERVATION', - self::ANY_RESERVATION => 'ANY_RESERVATION', - self::SPECIFIC_RESERVATION => 'SPECIFIC_RESERVATION', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Type::class, \Google\Cloud\Container\V1\ReservationAffinity_Type::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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.ResourceLabels - */ -class ResourceLabels extends \Google\Protobuf\Internal\Message -{ - /** - * Map of node label keys and node label values. - * - * Generated from protobuf field map labels = 1; - */ - private $labels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\MapField $labels - * Map of node label keys and node label values. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Map of node label keys and node label values. - * - * Generated from protobuf field map labels = 1; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Map of node label keys and node label values. - * - * Generated from protobuf field map labels = 1; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceLimit.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceLimit.php deleted file mode 100644 index 9b37f1e58826..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceLimit.php +++ /dev/null @@ -1,136 +0,0 @@ -google.container.v1.ResourceLimit - */ -class ResourceLimit extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name "cpu", "memory" or gpu-specific string. - * - * Generated from protobuf field string resource_type = 1; - */ - protected $resource_type = ''; - /** - * Minimum amount of the resource in the cluster. - * - * Generated from protobuf field int64 minimum = 2; - */ - protected $minimum = 0; - /** - * Maximum amount of the resource in the cluster. - * - * Generated from protobuf field int64 maximum = 3; - */ - protected $maximum = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $resource_type - * Resource name "cpu", "memory" or gpu-specific string. - * @type int|string $minimum - * Minimum amount of the resource in the cluster. - * @type int|string $maximum - * Maximum amount of the resource in the cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Resource name "cpu", "memory" or gpu-specific string. - * - * Generated from protobuf field string resource_type = 1; - * @return string - */ - public function getResourceType() - { - return $this->resource_type; - } - - /** - * Resource name "cpu", "memory" or gpu-specific string. - * - * Generated from protobuf field string resource_type = 1; - * @param string $var - * @return $this - */ - public function setResourceType($var) - { - GPBUtil::checkString($var, True); - $this->resource_type = $var; - - return $this; - } - - /** - * Minimum amount of the resource in the cluster. - * - * Generated from protobuf field int64 minimum = 2; - * @return int|string - */ - public function getMinimum() - { - return $this->minimum; - } - - /** - * Minimum amount of the resource in the cluster. - * - * Generated from protobuf field int64 minimum = 2; - * @param int|string $var - * @return $this - */ - public function setMinimum($var) - { - GPBUtil::checkInt64($var); - $this->minimum = $var; - - return $this; - } - - /** - * Maximum amount of the resource in the cluster. - * - * Generated from protobuf field int64 maximum = 3; - * @return int|string - */ - public function getMaximum() - { - return $this->maximum; - } - - /** - * Maximum amount of the resource in the cluster. - * - * Generated from protobuf field int64 maximum = 3; - * @param int|string $var - * @return $this - */ - public function setMaximum($var) - { - GPBUtil::checkInt64($var); - $this->maximum = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to rollback. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Deprecated. The name of the node pool to rollback. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @deprecated - */ - protected $node_pool_id = ''; - /** - * The name (project, location, cluster, node pool id) of the node poll to - * rollback upgrade. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 6; - */ - protected $name = ''; - /** - * Option for rollback to ignore the PodDisruptionBudget. - * Default value is false. - * - * Generated from protobuf field bool respect_pdb = 7; - */ - protected $respect_pdb = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to rollback. - * This field has been deprecated and replaced by the name field. - * @type string $node_pool_id - * Deprecated. The name of the node pool to rollback. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster, node pool id) of the node poll to - * rollback upgrade. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * @type bool $respect_pdb - * Option for rollback to ignore the PodDisruptionBudget. - * Default value is false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to rollback. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to rollback. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the node pool to rollback. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @return string - * @deprecated - */ - public function getNodePoolId() - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - return $this->node_pool_id; - } - - /** - * Deprecated. The name of the node pool to rollback. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setNodePoolId($var) - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->node_pool_id = $var; - - return $this; - } - - /** - * The name (project, location, cluster, node pool id) of the node poll to - * rollback upgrade. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 6; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster, node pool id) of the node poll to - * rollback upgrade. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 6; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Option for rollback to ignore the PodDisruptionBudget. - * Default value is false. - * - * Generated from protobuf field bool respect_pdb = 7; - * @return bool - */ - public function getRespectPdb() - { - return $this->respect_pdb; - } - - /** - * Option for rollback to ignore the PodDisruptionBudget. - * Default value is false. - * - * Generated from protobuf field bool respect_pdb = 7; - * @param bool $var - * @return $this - */ - public function setRespectPdb($var) - { - GPBUtil::checkBool($var); - $this->respect_pdb = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig.php deleted file mode 100644 index edad92dc8d78..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.SandboxConfig - */ -class SandboxConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Type of the sandbox to use for the node. - * - * Generated from protobuf field .google.container.v1.SandboxConfig.Type type = 2; - */ - protected $type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * Type of the sandbox to use for the node. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Type of the sandbox to use for the node. - * - * Generated from protobuf field .google.container.v1.SandboxConfig.Type type = 2; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Type of the sandbox to use for the node. - * - * Generated from protobuf field .google.container.v1.SandboxConfig.Type type = 2; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\SandboxConfig\Type::class); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig/Type.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig/Type.php deleted file mode 100644 index 824af0ee6238..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig/Type.php +++ /dev/null @@ -1,57 +0,0 @@ -google.container.v1.SandboxConfig.Type - */ -class Type -{ - /** - * Default value. This should not be used. - * - * Generated from protobuf enum UNSPECIFIED = 0; - */ - const UNSPECIFIED = 0; - /** - * Run sandbox using gvisor. - * - * Generated from protobuf enum GVISOR = 1; - */ - const GVISOR = 1; - - private static $valueToName = [ - self::UNSPECIFIED => 'UNSPECIFIED', - self::GVISOR => 'GVISOR', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Type::class, \Google\Cloud\Container\V1\SandboxConfig_Type::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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 array|\Google\Protobuf\Internal\RepeatedField $cve_ids - * The CVEs associated with this bulletin. - * @type string $severity - * The severity of this bulletin as it relates to GKE. - * @type string $bulletin_uri - * The URI link to the bulletin on the website for more information. - * @type string $brief_description - * A brief description of the bulletin. See the bulletin pointed to by the - * bulletin_uri field for an expanded description. - * @type array|\Google\Protobuf\Internal\RepeatedField $affected_supported_minors - * The GKE minor versions affected by this vulnerability. - * @type array|\Google\Protobuf\Internal\RepeatedField $patched_versions - * The GKE versions where this vulnerability is patched. - * @type string $suggested_upgrade_target - * This represents a version selected from the patched_versions field that - * the cluster receiving this notification should most likely want to upgrade - * to based on its current version. Note that if this notification is being - * received by a given cluster, it means that this version is currently - * available as an upgrade target in that cluster's location. - * @type bool $manual_steps_required - * If this field is specified, it means there are manual steps that the user - * must take to make their clusters safe. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The resource type (node/control plane) that has the vulnerability. Multiple - * notifications (1 notification per resource type) will be sent for a - * vulnerability that affects > 1 resource type. - * - * Generated from protobuf field string resource_type_affected = 1; - * @return string - */ - public function getResourceTypeAffected() - { - return $this->resource_type_affected; - } - - /** - * The resource type (node/control plane) that has the vulnerability. Multiple - * notifications (1 notification per resource type) will be sent for a - * vulnerability that affects > 1 resource type. - * - * Generated from protobuf field string resource_type_affected = 1; - * @param string $var - * @return $this - */ - public function setResourceTypeAffected($var) - { - GPBUtil::checkString($var, True); - $this->resource_type_affected = $var; - - return $this; - } - - /** - * The ID of the bulletin corresponding to the vulnerability. - * - * Generated from protobuf field string bulletin_id = 2; - * @return string - */ - public function getBulletinId() - { - return $this->bulletin_id; - } - - /** - * The ID of the bulletin corresponding to the vulnerability. - * - * Generated from protobuf field string bulletin_id = 2; - * @param string $var - * @return $this - */ - public function setBulletinId($var) - { - GPBUtil::checkString($var, True); - $this->bulletin_id = $var; - - return $this; - } - - /** - * The CVEs associated with this bulletin. - * - * Generated from protobuf field repeated string cve_ids = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCveIds() - { - return $this->cve_ids; - } - - /** - * The CVEs associated with this bulletin. - * - * Generated from protobuf field repeated string cve_ids = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCveIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->cve_ids = $arr; - - return $this; - } - - /** - * The severity of this bulletin as it relates to GKE. - * - * Generated from protobuf field string severity = 4; - * @return string - */ - public function getSeverity() - { - return $this->severity; - } - - /** - * The severity of this bulletin as it relates to GKE. - * - * Generated from protobuf field string severity = 4; - * @param string $var - * @return $this - */ - public function setSeverity($var) - { - GPBUtil::checkString($var, True); - $this->severity = $var; - - return $this; - } - - /** - * The URI link to the bulletin on the website for more information. - * - * Generated from protobuf field string bulletin_uri = 5; - * @return string - */ - public function getBulletinUri() - { - return $this->bulletin_uri; - } - - /** - * The URI link to the bulletin on the website for more information. - * - * Generated from protobuf field string bulletin_uri = 5; - * @param string $var - * @return $this - */ - public function setBulletinUri($var) - { - GPBUtil::checkString($var, True); - $this->bulletin_uri = $var; - - return $this; - } - - /** - * A brief description of the bulletin. See the bulletin pointed to by the - * bulletin_uri field for an expanded description. - * - * Generated from protobuf field string brief_description = 6; - * @return string - */ - public function getBriefDescription() - { - return $this->brief_description; - } - - /** - * A brief description of the bulletin. See the bulletin pointed to by the - * bulletin_uri field for an expanded description. - * - * Generated from protobuf field string brief_description = 6; - * @param string $var - * @return $this - */ - public function setBriefDescription($var) - { - GPBUtil::checkString($var, True); - $this->brief_description = $var; - - return $this; - } - - /** - * The GKE minor versions affected by this vulnerability. - * - * Generated from protobuf field repeated string affected_supported_minors = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAffectedSupportedMinors() - { - return $this->affected_supported_minors; - } - - /** - * The GKE minor versions affected by this vulnerability. - * - * Generated from protobuf field repeated string affected_supported_minors = 7; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAffectedSupportedMinors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->affected_supported_minors = $arr; - - return $this; - } - - /** - * The GKE versions where this vulnerability is patched. - * - * Generated from protobuf field repeated string patched_versions = 8; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPatchedVersions() - { - return $this->patched_versions; - } - - /** - * The GKE versions where this vulnerability is patched. - * - * Generated from protobuf field repeated string patched_versions = 8; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPatchedVersions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->patched_versions = $arr; - - return $this; - } - - /** - * This represents a version selected from the patched_versions field that - * the cluster receiving this notification should most likely want to upgrade - * to based on its current version. Note that if this notification is being - * received by a given cluster, it means that this version is currently - * available as an upgrade target in that cluster's location. - * - * Generated from protobuf field string suggested_upgrade_target = 9; - * @return string - */ - public function getSuggestedUpgradeTarget() - { - return $this->suggested_upgrade_target; - } - - /** - * This represents a version selected from the patched_versions field that - * the cluster receiving this notification should most likely want to upgrade - * to based on its current version. Note that if this notification is being - * received by a given cluster, it means that this version is currently - * available as an upgrade target in that cluster's location. - * - * Generated from protobuf field string suggested_upgrade_target = 9; - * @param string $var - * @return $this - */ - public function setSuggestedUpgradeTarget($var) - { - GPBUtil::checkString($var, True); - $this->suggested_upgrade_target = $var; - - return $this; - } - - /** - * If this field is specified, it means there are manual steps that the user - * must take to make their clusters safe. - * - * Generated from protobuf field bool manual_steps_required = 10; - * @return bool - */ - public function getManualStepsRequired() - { - return $this->manual_steps_required; - } - - /** - * If this field is specified, it means there are manual steps that the user - * must take to make their clusters safe. - * - * Generated from protobuf field bool manual_steps_required = 10; - * @param bool $var - * @return $this - */ - public function setManualStepsRequired($var) - { - GPBUtil::checkBool($var); - $this->manual_steps_required = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig.php deleted file mode 100644 index 939a53c55648..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig.php +++ /dev/null @@ -1,237 +0,0 @@ -google.container.v1.ServerConfig - */ -class ServerConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Version of Kubernetes the service deploys by default. - * - * Generated from protobuf field string default_cluster_version = 1; - */ - protected $default_cluster_version = ''; - /** - * List of valid node upgrade target versions, in descending order. - * - * Generated from protobuf field repeated string valid_node_versions = 3; - */ - private $valid_node_versions; - /** - * Default image type. - * - * Generated from protobuf field string default_image_type = 4; - */ - protected $default_image_type = ''; - /** - * List of valid image types. - * - * Generated from protobuf field repeated string valid_image_types = 5; - */ - private $valid_image_types; - /** - * List of valid master versions, in descending order. - * - * Generated from protobuf field repeated string valid_master_versions = 6; - */ - private $valid_master_versions; - /** - * List of release channel configurations. - * - * Generated from protobuf field repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - private $channels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $default_cluster_version - * Version of Kubernetes the service deploys by default. - * @type array|\Google\Protobuf\Internal\RepeatedField $valid_node_versions - * List of valid node upgrade target versions, in descending order. - * @type string $default_image_type - * Default image type. - * @type array|\Google\Protobuf\Internal\RepeatedField $valid_image_types - * List of valid image types. - * @type array|\Google\Protobuf\Internal\RepeatedField $valid_master_versions - * List of valid master versions, in descending order. - * @type array<\Google\Cloud\Container\V1\ServerConfig\ReleaseChannelConfig>|\Google\Protobuf\Internal\RepeatedField $channels - * List of release channel configurations. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Version of Kubernetes the service deploys by default. - * - * Generated from protobuf field string default_cluster_version = 1; - * @return string - */ - public function getDefaultClusterVersion() - { - return $this->default_cluster_version; - } - - /** - * Version of Kubernetes the service deploys by default. - * - * Generated from protobuf field string default_cluster_version = 1; - * @param string $var - * @return $this - */ - public function setDefaultClusterVersion($var) - { - GPBUtil::checkString($var, True); - $this->default_cluster_version = $var; - - return $this; - } - - /** - * List of valid node upgrade target versions, in descending order. - * - * Generated from protobuf field repeated string valid_node_versions = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValidNodeVersions() - { - return $this->valid_node_versions; - } - - /** - * List of valid node upgrade target versions, in descending order. - * - * Generated from protobuf field repeated string valid_node_versions = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValidNodeVersions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->valid_node_versions = $arr; - - return $this; - } - - /** - * Default image type. - * - * Generated from protobuf field string default_image_type = 4; - * @return string - */ - public function getDefaultImageType() - { - return $this->default_image_type; - } - - /** - * Default image type. - * - * Generated from protobuf field string default_image_type = 4; - * @param string $var - * @return $this - */ - public function setDefaultImageType($var) - { - GPBUtil::checkString($var, True); - $this->default_image_type = $var; - - return $this; - } - - /** - * List of valid image types. - * - * Generated from protobuf field repeated string valid_image_types = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValidImageTypes() - { - return $this->valid_image_types; - } - - /** - * List of valid image types. - * - * Generated from protobuf field repeated string valid_image_types = 5; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValidImageTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->valid_image_types = $arr; - - return $this; - } - - /** - * List of valid master versions, in descending order. - * - * Generated from protobuf field repeated string valid_master_versions = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValidMasterVersions() - { - return $this->valid_master_versions; - } - - /** - * List of valid master versions, in descending order. - * - * Generated from protobuf field repeated string valid_master_versions = 6; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValidMasterVersions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->valid_master_versions = $arr; - - return $this; - } - - /** - * List of release channel configurations. - * - * Generated from protobuf field repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getChannels() - { - return $this->channels; - } - - /** - * List of release channel configurations. - * - * Generated from protobuf field repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - * @param array<\Google\Cloud\Container\V1\ServerConfig\ReleaseChannelConfig>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setChannels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\ServerConfig\ReleaseChannelConfig::class); - $this->channels = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig/ReleaseChannelConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig/ReleaseChannelConfig.php deleted file mode 100644 index e363702da1e6..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig/ReleaseChannelConfig.php +++ /dev/null @@ -1,138 +0,0 @@ -google.container.v1.ServerConfig.ReleaseChannelConfig - */ -class ReleaseChannelConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The release channel this configuration applies to. - * - * Generated from protobuf field .google.container.v1.ReleaseChannel.Channel channel = 1; - */ - protected $channel = 0; - /** - * The default version for newly created clusters on the channel. - * - * Generated from protobuf field string default_version = 2; - */ - protected $default_version = ''; - /** - * List of valid versions for the channel. - * - * Generated from protobuf field repeated string valid_versions = 4; - */ - private $valid_versions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $channel - * The release channel this configuration applies to. - * @type string $default_version - * The default version for newly created clusters on the channel. - * @type array|\Google\Protobuf\Internal\RepeatedField $valid_versions - * List of valid versions for the channel. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The release channel this configuration applies to. - * - * Generated from protobuf field .google.container.v1.ReleaseChannel.Channel channel = 1; - * @return int - */ - public function getChannel() - { - return $this->channel; - } - - /** - * The release channel this configuration applies to. - * - * Generated from protobuf field .google.container.v1.ReleaseChannel.Channel channel = 1; - * @param int $var - * @return $this - */ - public function setChannel($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\ReleaseChannel\Channel::class); - $this->channel = $var; - - return $this; - } - - /** - * The default version for newly created clusters on the channel. - * - * Generated from protobuf field string default_version = 2; - * @return string - */ - public function getDefaultVersion() - { - return $this->default_version; - } - - /** - * The default version for newly created clusters on the channel. - * - * Generated from protobuf field string default_version = 2; - * @param string $var - * @return $this - */ - public function setDefaultVersion($var) - { - GPBUtil::checkString($var, True); - $this->default_version = $var; - - return $this; - } - - /** - * List of valid versions for the channel. - * - * Generated from protobuf field repeated string valid_versions = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValidVersions() - { - return $this->valid_versions; - } - - /** - * List of valid versions for the channel. - * - * Generated from protobuf field repeated string valid_versions = 4; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValidVersions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->valid_versions = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ReleaseChannelConfig::class, \Google\Cloud\Container\V1\ServerConfig_ReleaseChannelConfig::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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 44cdc8ed9270..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://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Required. The desired configurations for the various addons available to - * run in the cluster. - * - * Generated from protobuf field .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $addons_config = null; - /** - * The name (project, location, cluster) of the cluster to set addons. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type \Google\Cloud\Container\V1\AddonsConfig $addons_config - * Required. The desired configurations for the various addons available to - * run in the cluster. - * @type string $name - * The name (project, location, cluster) of the cluster to set addons. - * Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. The desired configurations for the various addons available to - * run in the cluster. - * - * Generated from protobuf field .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Container\V1\AddonsConfig|null - */ - public function getAddonsConfig() - { - return $this->addons_config; - } - - public function hasAddonsConfig() - { - return isset($this->addons_config); - } - - public function clearAddonsConfig() - { - unset($this->addons_config); - } - - /** - * Required. The desired configurations for the various addons available to - * run in the cluster. - * - * Generated from protobuf field .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Container\V1\AddonsConfig $var - * @return $this - */ - public function setAddonsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AddonsConfig::class); - $this->addons_config = $var; - - return $this; - } - - /** - * The name (project, location, cluster) of the cluster to set addons. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster) of the cluster to set addons. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLabelsRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLabelsRequest.php deleted file mode 100644 index 32b166e06b98..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLabelsRequest.php +++ /dev/null @@ -1,302 +0,0 @@ -google.container.v1.SetLabelsRequest - */ -class SetLabelsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Required. The labels to set for that cluster. - * - * Generated from protobuf field map resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - private $resource_labels; - /** - * Required. The fingerprint of the previous set of labels for this resource, - * used to detect conflicts. The fingerprint is initially generated by - * Kubernetes Engine and changes after every request to modify or update - * labels. You must always provide an up-to-date fingerprint hash when - * updating or changing labels. Make a `get()` request to the - * resource to get the latest fingerprint. - * - * Generated from protobuf field string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $label_fingerprint = ''; - /** - * The name (project, location, cluster name) of the cluster to set labels. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 7; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @type array|\Google\Protobuf\Internal\MapField $resource_labels - * Required. The labels to set for that cluster. - * @type string $label_fingerprint - * Required. The fingerprint of the previous set of labels for this resource, - * used to detect conflicts. The fingerprint is initially generated by - * Kubernetes Engine and changes after every request to modify or update - * labels. You must always provide an up-to-date fingerprint hash when - * updating or changing labels. Make a `get()` request to the - * resource to get the latest fingerprint. - * @type string $name - * The name (project, location, cluster name) of the cluster to set labels. - * Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. The labels to set for that cluster. - * - * Generated from protobuf field map resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getResourceLabels() - { - return $this->resource_labels; - } - - /** - * Required. The labels to set for that cluster. - * - * Generated from protobuf field map resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setResourceLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->resource_labels = $arr; - - return $this; - } - - /** - * Required. The fingerprint of the previous set of labels for this resource, - * used to detect conflicts. The fingerprint is initially generated by - * Kubernetes Engine and changes after every request to modify or update - * labels. You must always provide an up-to-date fingerprint hash when - * updating or changing labels. Make a `get()` request to the - * resource to get the latest fingerprint. - * - * Generated from protobuf field string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getLabelFingerprint() - { - return $this->label_fingerprint; - } - - /** - * Required. The fingerprint of the previous set of labels for this resource, - * used to detect conflicts. The fingerprint is initially generated by - * Kubernetes Engine and changes after every request to modify or update - * labels. You must always provide an up-to-date fingerprint hash when - * updating or changing labels. Make a `get()` request to the - * resource to get the latest fingerprint. - * - * Generated from protobuf field string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setLabelFingerprint($var) - { - GPBUtil::checkString($var, True); - $this->label_fingerprint = $var; - - return $this; - } - - /** - * The name (project, location, cluster name) of the cluster to set labels. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 7; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster name) of the cluster to set labels. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 7; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLegacyAbacRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLegacyAbacRequest.php deleted file mode 100644 index df7838ce93ef..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://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Required. Whether ABAC authorization will be enabled in the cluster. - * - * Generated from protobuf field bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $enabled = false; - /** - * The name (project, location, cluster name) of the cluster to set legacy - * abac. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * @type bool $enabled - * Required. Whether ABAC authorization will be enabled in the cluster. - * @type string $name - * The name (project, location, cluster name) of the cluster to set legacy - * abac. Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. Whether ABAC authorization will be enabled in the cluster. - * - * Generated from protobuf field bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Required. Whether ABAC authorization will be enabled in the cluster. - * - * Generated from protobuf field bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - - /** - * The name (project, location, cluster name) of the cluster to set legacy - * abac. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster name) of the cluster to set legacy - * abac. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLocationsRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLocationsRequest.php deleted file mode 100644 index e9844fee5d7c..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://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Required. The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. Changing the locations a cluster is in - * will result in nodes being either created or removed from the cluster, - * depending on whether locations are being added or removed. - * This list must always include the cluster's primary zone. - * - * Generated from protobuf field repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - private $locations; - /** - * The name (project, location, cluster) of the cluster to set locations. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type array|\Google\Protobuf\Internal\RepeatedField $locations - * Required. The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. Changing the locations a cluster is in - * will result in nodes being either created or removed from the cluster, - * depending on whether locations are being added or removed. - * This list must always include the cluster's primary zone. - * @type string $name - * The name (project, location, cluster) of the cluster to set locations. - * Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. Changing the locations a cluster is in - * will result in nodes being either created or removed from the cluster, - * depending on whether locations are being added or removed. - * This list must always include the cluster's primary zone. - * - * Generated from protobuf field repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getLocations() - { - return $this->locations; - } - - /** - * Required. The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. Changing the locations a cluster is in - * will result in nodes being either created or removed from the cluster, - * depending on whether locations are being added or removed. - * This list must always include the cluster's primary zone. - * - * Generated from protobuf field repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->locations = $arr; - - return $this; - } - - /** - * The name (project, location, cluster) of the cluster to set locations. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster) of the cluster to set locations. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLoggingServiceRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLoggingServiceRequest.php deleted file mode 100644 index 1007f3009a10..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://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Required. The logging service the cluster should use to write logs. - * Currently available options: - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * - * Generated from protobuf field string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $logging_service = ''; - /** - * The name (project, location, cluster) of the cluster to set logging. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 5; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $logging_service - * Required. The logging service the cluster should use to write logs. - * Currently available options: - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * @type string $name - * The name (project, location, cluster) of the cluster to set logging. - * Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. The logging service the cluster should use to write logs. - * Currently available options: - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * - * Generated from protobuf field string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getLoggingService() - { - return $this->logging_service; - } - - /** - * Required. The logging service the cluster should use to write logs. - * Currently available options: - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * - * Generated from protobuf field string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setLoggingService($var) - { - GPBUtil::checkString($var, True); - $this->logging_service = $var; - - return $this; - } - - /** - * The name (project, location, cluster) of the cluster to set logging. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 5; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster) of the cluster to set logging. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 5; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMaintenancePolicyRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMaintenancePolicyRequest.php deleted file mode 100644 index a81c862869b6..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://cloud.google.com/resource-manager/docs/creating-managing-projects). - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $project_id = ''; - /** - * Required. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. - * - * Generated from protobuf field string zone = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $zone = ''; - /** - * Required. The name of the cluster to update. - * - * Generated from protobuf field string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $cluster_id = ''; - /** - * Required. The maintenance policy to be set for the cluster. An empty field - * clears the existing maintenance policy. - * - * Generated from protobuf field .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $maintenance_policy = null; - /** - * The name (project, location, cluster name) of the cluster to set - * maintenance policy. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 5; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Required. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * @type string $zone - * Required. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. - * @type string $cluster_id - * Required. The name of the cluster to update. - * @type \Google\Cloud\Container\V1\MaintenancePolicy $maintenance_policy - * Required. The maintenance policy to be set for the cluster. An empty field - * clears the existing maintenance policy. - * @type string $name - * The name (project, location, cluster name) of the cluster to set - * maintenance policy. - * Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Required. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Required. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. - * - * Generated from protobuf field string zone = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getZone() - { - return $this->zone; - } - - /** - * Required. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. - * - * Generated from protobuf field string zone = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setZone($var) - { - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Required. The name of the cluster to update. - * - * Generated from protobuf field string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getClusterId() - { - return $this->cluster_id; - } - - /** - * Required. The name of the cluster to update. - * - * Generated from protobuf field string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setClusterId($var) - { - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. The maintenance policy to be set for the cluster. An empty field - * clears the existing maintenance policy. - * - * Generated from protobuf field .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Container\V1\MaintenancePolicy|null - */ - public function getMaintenancePolicy() - { - return $this->maintenance_policy; - } - - public function hasMaintenancePolicy() - { - return isset($this->maintenance_policy); - } - - public function clearMaintenancePolicy() - { - unset($this->maintenance_policy); - } - - /** - * Required. The maintenance policy to be set for the cluster. An empty field - * clears the existing maintenance policy. - * - * Generated from protobuf field .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Container\V1\MaintenancePolicy $var - * @return $this - */ - public function setMaintenancePolicy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MaintenancePolicy::class); - $this->maintenance_policy = $var; - - return $this; - } - - /** - * The name (project, location, cluster name) of the cluster to set - * maintenance policy. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 5; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster name) of the cluster to set - * maintenance policy. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 5; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest.php deleted file mode 100644 index 9f9c4bb4de29..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest.php +++ /dev/null @@ -1,290 +0,0 @@ -google.container.v1.SetMasterAuthRequest - */ -class SetMasterAuthRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Required. The exact form of action to be taken on the master auth. - * - * Generated from protobuf field .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $action = 0; - /** - * Required. A description of the update. - * - * Generated from protobuf field .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update = null; - /** - * The name (project, location, cluster) of the cluster to set auth. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 7; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type int $action - * Required. The exact form of action to be taken on the master auth. - * @type \Google\Cloud\Container\V1\MasterAuth $update - * Required. A description of the update. - * @type string $name - * The name (project, location, cluster) of the cluster to set auth. - * Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. The exact form of action to be taken on the master auth. - * - * Generated from protobuf field .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getAction() - { - return $this->action; - } - - /** - * Required. The exact form of action to be taken on the master auth. - * - * Generated from protobuf field .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setAction($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\SetMasterAuthRequest\Action::class); - $this->action = $var; - - return $this; - } - - /** - * Required. A description of the update. - * - * Generated from protobuf field .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Container\V1\MasterAuth|null - */ - public function getUpdate() - { - return $this->update; - } - - public function hasUpdate() - { - return isset($this->update); - } - - public function clearUpdate() - { - unset($this->update); - } - - /** - * Required. A description of the update. - * - * Generated from protobuf field .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Container\V1\MasterAuth $var - * @return $this - */ - public function setUpdate($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MasterAuth::class); - $this->update = $var; - - return $this; - } - - /** - * The name (project, location, cluster) of the cluster to set auth. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 7; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster) of the cluster to set auth. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 7; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest/Action.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest/Action.php deleted file mode 100644 index f05c2c752248..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest/Action.php +++ /dev/null @@ -1,74 +0,0 @@ -google.container.v1.SetMasterAuthRequest.Action - */ -class Action -{ - /** - * Operation is unknown and will error out. - * - * Generated from protobuf enum UNKNOWN = 0; - */ - const UNKNOWN = 0; - /** - * Set the password to a user generated value. - * - * Generated from protobuf enum SET_PASSWORD = 1; - */ - const SET_PASSWORD = 1; - /** - * Generate a new password and set it to that. - * - * Generated from protobuf enum GENERATE_PASSWORD = 2; - */ - const GENERATE_PASSWORD = 2; - /** - * Set the username. If an empty username is provided, basic authentication - * is disabled for the cluster. If a non-empty username is provided, basic - * authentication is enabled, with either a provided password or a generated - * one. - * - * Generated from protobuf enum SET_USERNAME = 3; - */ - const SET_USERNAME = 3; - - private static $valueToName = [ - self::UNKNOWN => 'UNKNOWN', - self::SET_PASSWORD => 'SET_PASSWORD', - self::GENERATE_PASSWORD => 'GENERATE_PASSWORD', - self::SET_USERNAME => 'SET_USERNAME', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Action::class, \Google\Cloud\Container\V1\SetMasterAuthRequest_Action::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Required. The monitoring service the cluster should use to write metrics. - * Currently available options: - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * - * Generated from protobuf field string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $monitoring_service = ''; - /** - * The name (project, location, cluster) of the cluster to set monitoring. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $monitoring_service - * Required. The monitoring service the cluster should use to write metrics. - * Currently available options: - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * @type string $name - * The name (project, location, cluster) of the cluster to set monitoring. - * Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. The monitoring service the cluster should use to write metrics. - * Currently available options: - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * - * Generated from protobuf field string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getMonitoringService() - { - return $this->monitoring_service; - } - - /** - * Required. The monitoring service the cluster should use to write metrics. - * Currently available options: - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * - * Generated from protobuf field string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setMonitoringService($var) - { - GPBUtil::checkString($var, True); - $this->monitoring_service = $var; - - return $this; - } - - /** - * The name (project, location, cluster) of the cluster to set monitoring. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster) of the cluster to set monitoring. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNetworkPolicyRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNetworkPolicyRequest.php deleted file mode 100644 index 6e26c1651163..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://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Required. Configuration options for the NetworkPolicy feature. - * - * Generated from protobuf field .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $network_policy = null; - /** - * The name (project, location, cluster name) of the cluster to set networking - * policy. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @type \Google\Cloud\Container\V1\NetworkPolicy $network_policy - * Required. Configuration options for the NetworkPolicy feature. - * @type string $name - * The name (project, location, cluster name) of the cluster to set networking - * policy. Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. Configuration options for the NetworkPolicy feature. - * - * Generated from protobuf field .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Container\V1\NetworkPolicy|null - */ - public function getNetworkPolicy() - { - return $this->network_policy; - } - - public function hasNetworkPolicy() - { - return isset($this->network_policy); - } - - public function clearNetworkPolicy() - { - unset($this->network_policy); - } - - /** - * Required. Configuration options for the NetworkPolicy feature. - * - * Generated from protobuf field .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Container\V1\NetworkPolicy $var - * @return $this - */ - public function setNetworkPolicy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkPolicy::class); - $this->network_policy = $var; - - return $this; - } - - /** - * The name (project, location, cluster name) of the cluster to set networking - * policy. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster name) of the cluster to set networking - * policy. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolAutoscalingRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolAutoscalingRequest.php deleted file mode 100644 index a9884dd31f6b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolAutoscalingRequest.php +++ /dev/null @@ -1,303 +0,0 @@ -google.container.v1.SetNodePoolAutoscalingRequest - */ -class SetNodePoolAutoscalingRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Deprecated. The name of the node pool to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @deprecated - */ - protected $node_pool_id = ''; - /** - * Required. Autoscaling configuration for the node pool. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $autoscaling = null; - /** - * The name (project, location, cluster, node pool) of the node pool to set - * autoscaler settings. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 6; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $node_pool_id - * Deprecated. The name of the node pool to upgrade. - * This field has been deprecated and replaced by the name field. - * @type \Google\Cloud\Container\V1\NodePoolAutoscaling $autoscaling - * Required. Autoscaling configuration for the node pool. - * @type string $name - * The name (project, location, cluster, node pool) of the node pool to set - * autoscaler settings. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the node pool to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @return string - * @deprecated - */ - public function getNodePoolId() - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - return $this->node_pool_id; - } - - /** - * Deprecated. The name of the node pool to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setNodePoolId($var) - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->node_pool_id = $var; - - return $this; - } - - /** - * Required. Autoscaling configuration for the node pool. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Container\V1\NodePoolAutoscaling|null - */ - public function getAutoscaling() - { - return $this->autoscaling; - } - - public function hasAutoscaling() - { - return isset($this->autoscaling); - } - - public function clearAutoscaling() - { - unset($this->autoscaling); - } - - /** - * Required. Autoscaling configuration for the node pool. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Container\V1\NodePoolAutoscaling $var - * @return $this - */ - public function setAutoscaling($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolAutoscaling::class); - $this->autoscaling = $var; - - return $this; - } - - /** - * The name (project, location, cluster, node pool) of the node pool to set - * autoscaler settings. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 6; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster, node pool) of the node pool to set - * autoscaler settings. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 6; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolManagementRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolManagementRequest.php deleted file mode 100644 index f1807940a3ff..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolManagementRequest.php +++ /dev/null @@ -1,304 +0,0 @@ -google.container.v1.SetNodePoolManagementRequest - */ -class SetNodePoolManagementRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Deprecated. The name of the node pool to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @deprecated - */ - protected $node_pool_id = ''; - /** - * Required. NodeManagement configuration for the node pool. - * - * Generated from protobuf field .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $management = null; - /** - * The name (project, location, cluster, node pool id) of the node pool to set - * management properties. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 7; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * @type string $node_pool_id - * Deprecated. The name of the node pool to update. - * This field has been deprecated and replaced by the name field. - * @type \Google\Cloud\Container\V1\NodeManagement $management - * Required. NodeManagement configuration for the node pool. - * @type string $name - * The name (project, location, cluster, node pool id) of the node pool to set - * management properties. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the node pool to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @return string - * @deprecated - */ - public function getNodePoolId() - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - return $this->node_pool_id; - } - - /** - * Deprecated. The name of the node pool to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setNodePoolId($var) - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->node_pool_id = $var; - - return $this; - } - - /** - * Required. NodeManagement configuration for the node pool. - * - * Generated from protobuf field .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Container\V1\NodeManagement|null - */ - public function getManagement() - { - return $this->management; - } - - public function hasManagement() - { - return isset($this->management); - } - - public function clearManagement() - { - unset($this->management); - } - - /** - * Required. NodeManagement configuration for the node pool. - * - * Generated from protobuf field .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Container\V1\NodeManagement $var - * @return $this - */ - public function setManagement($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeManagement::class); - $this->management = $var; - - return $this; - } - - /** - * The name (project, location, cluster, node pool id) of the node pool to set - * management properties. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 7; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster, node pool id) of the node pool to set - * management properties. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 7; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolSizeRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolSizeRequest.php deleted file mode 100644 index 56d25d6e8e81..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolSizeRequest.php +++ /dev/null @@ -1,293 +0,0 @@ -google.container.v1.SetNodePoolSizeRequest - */ -class SetNodePoolSizeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Deprecated. The name of the node pool to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @deprecated - */ - protected $node_pool_id = ''; - /** - * Required. The desired node count for the pool. - * - * Generated from protobuf field int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $node_count = 0; - /** - * The name (project, location, cluster, node pool id) of the node pool to set - * size. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 7; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * @type string $node_pool_id - * Deprecated. The name of the node pool to update. - * This field has been deprecated and replaced by the name field. - * @type int $node_count - * Required. The desired node count for the pool. - * @type string $name - * The name (project, location, cluster, node pool id) of the node pool to set - * size. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the node pool to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @return string - * @deprecated - */ - public function getNodePoolId() - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - return $this->node_pool_id; - } - - /** - * Deprecated. The name of the node pool to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setNodePoolId($var) - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->node_pool_id = $var; - - return $this; - } - - /** - * Required. The desired node count for the pool. - * - * Generated from protobuf field int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getNodeCount() - { - return $this->node_count; - } - - /** - * Required. The desired node count for the pool. - * - * Generated from protobuf field int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setNodeCount($var) - { - GPBUtil::checkInt32($var); - $this->node_count = $var; - - return $this; - } - - /** - * The name (project, location, cluster, node pool id) of the node pool to set - * size. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 7; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster, node pool id) of the node pool to set - * size. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 7; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ShieldedInstanceConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ShieldedInstanceConfig.php deleted file mode 100644 index c711d0be5048..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ShieldedInstanceConfig.php +++ /dev/null @@ -1,129 +0,0 @@ -google.container.v1.ShieldedInstanceConfig - */ -class ShieldedInstanceConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Defines whether the instance has Secure Boot enabled. - * Secure Boot helps ensure that the system only runs authentic software by - * verifying the digital signature of all boot components, and halting the - * boot process if signature verification fails. - * - * Generated from protobuf field bool enable_secure_boot = 1; - */ - protected $enable_secure_boot = false; - /** - * Defines whether the instance has integrity monitoring enabled. - * Enables monitoring and attestation of the boot integrity of the instance. - * The attestation is performed against the integrity policy baseline. This - * baseline is initially derived from the implicitly trusted boot image when - * the instance is created. - * - * Generated from protobuf field bool enable_integrity_monitoring = 2; - */ - protected $enable_integrity_monitoring = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enable_secure_boot - * Defines whether the instance has Secure Boot enabled. - * Secure Boot helps ensure that the system only runs authentic software by - * verifying the digital signature of all boot components, and halting the - * boot process if signature verification fails. - * @type bool $enable_integrity_monitoring - * Defines whether the instance has integrity monitoring enabled. - * Enables monitoring and attestation of the boot integrity of the instance. - * The attestation is performed against the integrity policy baseline. This - * baseline is initially derived from the implicitly trusted boot image when - * the instance is created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Defines whether the instance has Secure Boot enabled. - * Secure Boot helps ensure that the system only runs authentic software by - * verifying the digital signature of all boot components, and halting the - * boot process if signature verification fails. - * - * Generated from protobuf field bool enable_secure_boot = 1; - * @return bool - */ - public function getEnableSecureBoot() - { - return $this->enable_secure_boot; - } - - /** - * Defines whether the instance has Secure Boot enabled. - * Secure Boot helps ensure that the system only runs authentic software by - * verifying the digital signature of all boot components, and halting the - * boot process if signature verification fails. - * - * Generated from protobuf field bool enable_secure_boot = 1; - * @param bool $var - * @return $this - */ - public function setEnableSecureBoot($var) - { - GPBUtil::checkBool($var); - $this->enable_secure_boot = $var; - - return $this; - } - - /** - * Defines whether the instance has integrity monitoring enabled. - * Enables monitoring and attestation of the boot integrity of the instance. - * The attestation is performed against the integrity policy baseline. This - * baseline is initially derived from the implicitly trusted boot image when - * the instance is created. - * - * Generated from protobuf field bool enable_integrity_monitoring = 2; - * @return bool - */ - public function getEnableIntegrityMonitoring() - { - return $this->enable_integrity_monitoring; - } - - /** - * Defines whether the instance has integrity monitoring enabled. - * Enables monitoring and attestation of the boot integrity of the instance. - * The attestation is performed against the integrity policy baseline. This - * baseline is initially derived from the implicitly trusted boot image when - * the instance is created. - * - * Generated from protobuf field bool enable_integrity_monitoring = 2; - * @param bool $var - * @return $this - */ - public function setEnableIntegrityMonitoring($var) - { - GPBUtil::checkBool($var); - $this->enable_integrity_monitoring = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ShieldedNodes.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ShieldedNodes.php deleted file mode 100644 index 09b61f99c881..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ShieldedNodes.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.ShieldedNodes - */ -class ShieldedNodes extends \Google\Protobuf\Internal\Message -{ - /** - * Whether Shielded Nodes features are enabled on all nodes in this cluster. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether Shielded Nodes features are enabled on all nodes in this cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether Shielded Nodes features are enabled on all nodes in this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether Shielded Nodes features are enabled on all nodes in this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StackType.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StackType.php deleted file mode 100644 index ce1f1c6c392b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StackType.php +++ /dev/null @@ -1,61 +0,0 @@ -google.container.v1.StackType - */ -class StackType -{ - /** - * Default value, will be defaulted as IPV4 only - * - * Generated from protobuf enum STACK_TYPE_UNSPECIFIED = 0; - */ - const STACK_TYPE_UNSPECIFIED = 0; - /** - * Cluster is IPV4 only - * - * Generated from protobuf enum IPV4 = 1; - */ - const IPV4 = 1; - /** - * Cluster can use both IPv4 and IPv6 - * - * Generated from protobuf enum IPV4_IPV6 = 2; - */ - const IPV4_IPV6 = 2; - - private static $valueToName = [ - self::STACK_TYPE_UNSPECIFIED => 'STACK_TYPE_UNSPECIFIED', - self::IPV4 => 'IPV4', - self::IPV4_IPV6 => 'IPV4_IPV6', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StartIPRotationRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StartIPRotationRequest.php deleted file mode 100644 index 8c4ac087d5b1..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://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * The name (project, location, cluster name) of the cluster to start IP - * rotation. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - */ - protected $name = ''; - /** - * Whether to rotate credentials during IP rotation. - * - * Generated from protobuf field bool rotate_credentials = 7; - */ - protected $rotate_credentials = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster name) of the cluster to start IP - * rotation. Specified in the format `projects/*/locations/*/clusters/*`. - * @type bool $rotate_credentials - * Whether to rotate credentials during IP rotation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * The name (project, location, cluster name) of the cluster to start IP - * rotation. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster name) of the cluster to start IP - * rotation. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Whether to rotate credentials during IP rotation. - * - * Generated from protobuf field bool rotate_credentials = 7; - * @return bool - */ - public function getRotateCredentials() - { - return $this->rotate_credentials; - } - - /** - * Whether to rotate credentials during IP rotation. - * - * Generated from protobuf field bool rotate_credentials = 7; - * @param bool $var - * @return $this - */ - public function setRotateCredentials($var) - { - GPBUtil::checkBool($var); - $this->rotate_credentials = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/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 eec471ed2251..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://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Required. A description of the update. - * - * Generated from protobuf field .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update = null; - /** - * The name (project, location, cluster) of the cluster to update. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 5; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type \Google\Cloud\Container\V1\ClusterUpdate $update - * Required. A description of the update. - * @type string $name - * The name (project, location, cluster) of the cluster to update. - * Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. A description of the update. - * - * Generated from protobuf field .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Container\V1\ClusterUpdate|null - */ - public function getUpdate() - { - return $this->update; - } - - public function hasUpdate() - { - return isset($this->update); - } - - public function clearUpdate() - { - unset($this->update); - } - - /** - * Required. A description of the update. - * - * Generated from protobuf field .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Container\V1\ClusterUpdate $var - * @return $this - */ - public function setUpdate($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ClusterUpdate::class); - $this->update = $var; - - return $this; - } - - /** - * The name (project, location, cluster) of the cluster to update. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 5; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster) of the cluster to update. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 5; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateMasterRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateMasterRequest.php deleted file mode 100644 index 221e9f4f33a2..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://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Required. The Kubernetes version to change the master to. - * Users may specify either explicit versions offered by Kubernetes Engine or - * version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the default Kubernetes version - * - * Generated from protobuf field string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $master_version = ''; - /** - * The name (project, location, cluster) of the cluster to update. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 7; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $master_version - * Required. The Kubernetes version to change the master to. - * Users may specify either explicit versions offered by Kubernetes Engine or - * version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the default Kubernetes version - * @type string $name - * The name (project, location, cluster) of the cluster to update. - * Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. The Kubernetes version to change the master to. - * Users may specify either explicit versions offered by Kubernetes Engine or - * version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the default Kubernetes version - * - * Generated from protobuf field string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getMasterVersion() - { - return $this->master_version; - } - - /** - * Required. The Kubernetes version to change the master to. - * Users may specify either explicit versions offered by Kubernetes Engine or - * version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the default Kubernetes version - * - * Generated from protobuf field string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setMasterVersion($var) - { - GPBUtil::checkString($var, True); - $this->master_version = $var; - - return $this; - } - - /** - * The name (project, location, cluster) of the cluster to update. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 7; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster) of the cluster to update. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 7; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateNodePoolRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateNodePoolRequest.php deleted file mode 100644 index ad1a43a34a87..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateNodePoolRequest.php +++ /dev/null @@ -1,1151 +0,0 @@ -google.container.v1.UpdateNodePoolRequest - */ -class UpdateNodePoolRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Deprecated. The name of the node pool to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @deprecated - */ - protected $node_pool_id = ''; - /** - * Required. The Kubernetes version to change the nodes to (typically an - * upgrade). - * Users may specify either explicit versions offered by Kubernetes Engine or - * version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the Kubernetes master version - * - * Generated from protobuf field string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $node_version = ''; - /** - * Required. The desired image type for the node pool. Please see - * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for - * available image types. - * - * Generated from protobuf field string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $image_type = ''; - /** - * The name (project, location, cluster, node pool) of the node pool to - * update. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 8; - */ - protected $name = ''; - /** - * The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * node pool's nodes should be located. Changing the locations for a node pool - * will result in nodes being either created or removed from the node pool, - * depending on whether locations are being added or removed. - * - * Generated from protobuf field repeated string locations = 13; - */ - private $locations; - /** - * The desired workload metadata config for the node pool. - * - * Generated from protobuf field .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - protected $workload_metadata_config = null; - /** - * Upgrade settings control disruption and speed of the upgrade. - * - * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - */ - protected $upgrade_settings = null; - /** - * The desired network tags to be applied to all nodes in the node pool. - * If this field is not present, the tags will not be changed. Otherwise, - * the existing network tags will be *replaced* with the provided tags. - * - * Generated from protobuf field .google.container.v1.NetworkTags tags = 16; - */ - protected $tags = null; - /** - * The desired node taints to be applied to all nodes in the node pool. - * If this field is not present, the taints will not be changed. Otherwise, - * the existing node taints will be *replaced* with the provided taints. - * - * Generated from protobuf field .google.container.v1.NodeTaints taints = 17; - */ - protected $taints = null; - /** - * The desired node labels to be applied to all nodes in the node pool. - * If this field is not present, the labels will not be changed. Otherwise, - * the existing node labels will be *replaced* with the provided labels. - * - * Generated from protobuf field .google.container.v1.NodeLabels labels = 18; - */ - protected $labels = null; - /** - * Parameters that can be configured on Linux nodes. - * - * Generated from protobuf field .google.container.v1.LinuxNodeConfig linux_node_config = 19; - */ - protected $linux_node_config = null; - /** - * Node kubelet configs. - * - * Generated from protobuf field .google.container.v1.NodeKubeletConfig kubelet_config = 20; - */ - protected $kubelet_config = null; - /** - * Node network config. - * - * Generated from protobuf field .google.container.v1.NodeNetworkConfig node_network_config = 21; - */ - protected $node_network_config = null; - /** - * GCFS config. - * - * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 22; - */ - protected $gcfs_config = null; - /** - * Confidential nodes config. - * All the nodes in the node pool will be Confidential VM once enabled. - * - * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 23; - */ - protected $confidential_nodes = null; - /** - * Enable or disable gvnic on the node pool. - * - * Generated from protobuf field .google.container.v1.VirtualNIC gvnic = 29; - */ - protected $gvnic = null; - /** - * The current etag of the node pool. - * If an etag is provided and does not match the current etag of the node - * pool, update will be blocked and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 30; - */ - protected $etag = ''; - /** - * Enable or disable NCCL fast socket for the node pool. - * - * Generated from protobuf field .google.container.v1.FastSocket fast_socket = 31; - */ - protected $fast_socket = null; - /** - * Logging configuration. - * - * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 32; - */ - protected $logging_config = null; - /** - * The resource labels for the node pool to use to annotate any related - * Google Compute Engine resources. - * - * Generated from protobuf field .google.container.v1.ResourceLabels resource_labels = 33; - */ - protected $resource_labels = null; - /** - * Parameters that can be configured on Windows nodes. - * - * Generated from protobuf field .google.container.v1.WindowsNodeConfig windows_node_config = 34; - */ - protected $windows_node_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $node_pool_id - * Deprecated. The name of the node pool to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $node_version - * Required. The Kubernetes version to change the nodes to (typically an - * upgrade). - * Users may specify either explicit versions offered by Kubernetes Engine or - * version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the Kubernetes master version - * @type string $image_type - * Required. The desired image type for the node pool. Please see - * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for - * available image types. - * @type string $name - * The name (project, location, cluster, node pool) of the node pool to - * update. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * @type array|\Google\Protobuf\Internal\RepeatedField $locations - * The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * node pool's nodes should be located. Changing the locations for a node pool - * will result in nodes being either created or removed from the node pool, - * depending on whether locations are being added or removed. - * @type \Google\Cloud\Container\V1\WorkloadMetadataConfig $workload_metadata_config - * The desired workload metadata config for the node pool. - * @type \Google\Cloud\Container\V1\NodePool\UpgradeSettings $upgrade_settings - * Upgrade settings control disruption and speed of the upgrade. - * @type \Google\Cloud\Container\V1\NetworkTags $tags - * The desired network tags to be applied to all nodes in the node pool. - * If this field is not present, the tags will not be changed. Otherwise, - * the existing network tags will be *replaced* with the provided tags. - * @type \Google\Cloud\Container\V1\NodeTaints $taints - * The desired node taints to be applied to all nodes in the node pool. - * If this field is not present, the taints will not be changed. Otherwise, - * the existing node taints will be *replaced* with the provided taints. - * @type \Google\Cloud\Container\V1\NodeLabels $labels - * The desired node labels to be applied to all nodes in the node pool. - * If this field is not present, the labels will not be changed. Otherwise, - * the existing node labels will be *replaced* with the provided labels. - * @type \Google\Cloud\Container\V1\LinuxNodeConfig $linux_node_config - * Parameters that can be configured on Linux nodes. - * @type \Google\Cloud\Container\V1\NodeKubeletConfig $kubelet_config - * Node kubelet configs. - * @type \Google\Cloud\Container\V1\NodeNetworkConfig $node_network_config - * Node network config. - * @type \Google\Cloud\Container\V1\GcfsConfig $gcfs_config - * GCFS config. - * @type \Google\Cloud\Container\V1\ConfidentialNodes $confidential_nodes - * Confidential nodes config. - * All the nodes in the node pool will be Confidential VM once enabled. - * @type \Google\Cloud\Container\V1\VirtualNIC $gvnic - * Enable or disable gvnic on the node pool. - * @type string $etag - * The current etag of the node pool. - * If an etag is provided and does not match the current etag of the node - * pool, update will be blocked and an ABORTED error will be returned. - * @type \Google\Cloud\Container\V1\FastSocket $fast_socket - * Enable or disable NCCL fast socket for the node pool. - * @type \Google\Cloud\Container\V1\NodePoolLoggingConfig $logging_config - * Logging configuration. - * @type \Google\Cloud\Container\V1\ResourceLabels $resource_labels - * The resource labels for the node pool to use to annotate any related - * Google Compute Engine resources. - * @type \Google\Cloud\Container\V1\WindowsNodeConfig $windows_node_config - * Parameters that can be configured on Windows nodes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the node pool to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @return string - * @deprecated - */ - public function getNodePoolId() - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - return $this->node_pool_id; - } - - /** - * Deprecated. The name of the node pool to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setNodePoolId($var) - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->node_pool_id = $var; - - return $this; - } - - /** - * Required. The Kubernetes version to change the nodes to (typically an - * upgrade). - * Users may specify either explicit versions offered by Kubernetes Engine or - * version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the Kubernetes master version - * - * Generated from protobuf field string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getNodeVersion() - { - return $this->node_version; - } - - /** - * Required. The Kubernetes version to change the nodes to (typically an - * upgrade). - * Users may specify either explicit versions offered by Kubernetes Engine or - * version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the Kubernetes master version - * - * Generated from protobuf field string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setNodeVersion($var) - { - GPBUtil::checkString($var, True); - $this->node_version = $var; - - return $this; - } - - /** - * Required. The desired image type for the node pool. Please see - * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for - * available image types. - * - * Generated from protobuf field string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getImageType() - { - return $this->image_type; - } - - /** - * Required. The desired image type for the node pool. Please see - * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for - * available image types. - * - * Generated from protobuf field string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setImageType($var) - { - GPBUtil::checkString($var, True); - $this->image_type = $var; - - return $this; - } - - /** - * The name (project, location, cluster, node pool) of the node pool to - * update. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 8; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster, node pool) of the node pool to - * update. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 8; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * node pool's nodes should be located. Changing the locations for a node pool - * will result in nodes being either created or removed from the node pool, - * depending on whether locations are being added or removed. - * - * Generated from protobuf field repeated string locations = 13; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getLocations() - { - return $this->locations; - } - - /** - * The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * node pool's nodes should be located. Changing the locations for a node pool - * will result in nodes being either created or removed from the node pool, - * depending on whether locations are being added or removed. - * - * Generated from protobuf field repeated string locations = 13; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->locations = $arr; - - return $this; - } - - /** - * The desired workload metadata config for the node pool. - * - * Generated from protobuf field .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * @return \Google\Cloud\Container\V1\WorkloadMetadataConfig|null - */ - public function getWorkloadMetadataConfig() - { - return $this->workload_metadata_config; - } - - public function hasWorkloadMetadataConfig() - { - return isset($this->workload_metadata_config); - } - - public function clearWorkloadMetadataConfig() - { - unset($this->workload_metadata_config); - } - - /** - * The desired workload metadata config for the node pool. - * - * Generated from protobuf field .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * @param \Google\Cloud\Container\V1\WorkloadMetadataConfig $var - * @return $this - */ - public function setWorkloadMetadataConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\WorkloadMetadataConfig::class); - $this->workload_metadata_config = $var; - - return $this; - } - - /** - * Upgrade settings control disruption and speed of the upgrade. - * - * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - * @return \Google\Cloud\Container\V1\NodePool\UpgradeSettings|null - */ - public function getUpgradeSettings() - { - return $this->upgrade_settings; - } - - public function hasUpgradeSettings() - { - return isset($this->upgrade_settings); - } - - public function clearUpgradeSettings() - { - unset($this->upgrade_settings); - } - - /** - * Upgrade settings control disruption and speed of the upgrade. - * - * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - * @param \Google\Cloud\Container\V1\NodePool\UpgradeSettings $var - * @return $this - */ - public function setUpgradeSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool\UpgradeSettings::class); - $this->upgrade_settings = $var; - - return $this; - } - - /** - * The desired network tags to be applied to all nodes in the node pool. - * If this field is not present, the tags will not be changed. Otherwise, - * the existing network tags will be *replaced* with the provided tags. - * - * Generated from protobuf field .google.container.v1.NetworkTags tags = 16; - * @return \Google\Cloud\Container\V1\NetworkTags|null - */ - public function getTags() - { - return $this->tags; - } - - public function hasTags() - { - return isset($this->tags); - } - - public function clearTags() - { - unset($this->tags); - } - - /** - * The desired network tags to be applied to all nodes in the node pool. - * If this field is not present, the tags will not be changed. Otherwise, - * the existing network tags will be *replaced* with the provided tags. - * - * Generated from protobuf field .google.container.v1.NetworkTags tags = 16; - * @param \Google\Cloud\Container\V1\NetworkTags $var - * @return $this - */ - public function setTags($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkTags::class); - $this->tags = $var; - - return $this; - } - - /** - * The desired node taints to be applied to all nodes in the node pool. - * If this field is not present, the taints will not be changed. Otherwise, - * the existing node taints will be *replaced* with the provided taints. - * - * Generated from protobuf field .google.container.v1.NodeTaints taints = 17; - * @return \Google\Cloud\Container\V1\NodeTaints|null - */ - public function getTaints() - { - return $this->taints; - } - - public function hasTaints() - { - return isset($this->taints); - } - - public function clearTaints() - { - unset($this->taints); - } - - /** - * The desired node taints to be applied to all nodes in the node pool. - * If this field is not present, the taints will not be changed. Otherwise, - * the existing node taints will be *replaced* with the provided taints. - * - * Generated from protobuf field .google.container.v1.NodeTaints taints = 17; - * @param \Google\Cloud\Container\V1\NodeTaints $var - * @return $this - */ - public function setTaints($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeTaints::class); - $this->taints = $var; - - return $this; - } - - /** - * The desired node labels to be applied to all nodes in the node pool. - * If this field is not present, the labels will not be changed. Otherwise, - * the existing node labels will be *replaced* with the provided labels. - * - * Generated from protobuf field .google.container.v1.NodeLabels labels = 18; - * @return \Google\Cloud\Container\V1\NodeLabels|null - */ - public function getLabels() - { - return $this->labels; - } - - public function hasLabels() - { - return isset($this->labels); - } - - public function clearLabels() - { - unset($this->labels); - } - - /** - * The desired node labels to be applied to all nodes in the node pool. - * If this field is not present, the labels will not be changed. Otherwise, - * the existing node labels will be *replaced* with the provided labels. - * - * Generated from protobuf field .google.container.v1.NodeLabels labels = 18; - * @param \Google\Cloud\Container\V1\NodeLabels $var - * @return $this - */ - public function setLabels($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeLabels::class); - $this->labels = $var; - - return $this; - } - - /** - * Parameters that can be configured on Linux nodes. - * - * Generated from protobuf field .google.container.v1.LinuxNodeConfig linux_node_config = 19; - * @return \Google\Cloud\Container\V1\LinuxNodeConfig|null - */ - public function getLinuxNodeConfig() - { - return $this->linux_node_config; - } - - public function hasLinuxNodeConfig() - { - return isset($this->linux_node_config); - } - - public function clearLinuxNodeConfig() - { - unset($this->linux_node_config); - } - - /** - * Parameters that can be configured on Linux nodes. - * - * Generated from protobuf field .google.container.v1.LinuxNodeConfig linux_node_config = 19; - * @param \Google\Cloud\Container\V1\LinuxNodeConfig $var - * @return $this - */ - public function setLinuxNodeConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LinuxNodeConfig::class); - $this->linux_node_config = $var; - - return $this; - } - - /** - * Node kubelet configs. - * - * Generated from protobuf field .google.container.v1.NodeKubeletConfig kubelet_config = 20; - * @return \Google\Cloud\Container\V1\NodeKubeletConfig|null - */ - public function getKubeletConfig() - { - return $this->kubelet_config; - } - - public function hasKubeletConfig() - { - return isset($this->kubelet_config); - } - - public function clearKubeletConfig() - { - unset($this->kubelet_config); - } - - /** - * Node kubelet configs. - * - * Generated from protobuf field .google.container.v1.NodeKubeletConfig kubelet_config = 20; - * @param \Google\Cloud\Container\V1\NodeKubeletConfig $var - * @return $this - */ - public function setKubeletConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeKubeletConfig::class); - $this->kubelet_config = $var; - - return $this; - } - - /** - * Node network config. - * - * Generated from protobuf field .google.container.v1.NodeNetworkConfig node_network_config = 21; - * @return \Google\Cloud\Container\V1\NodeNetworkConfig|null - */ - public function getNodeNetworkConfig() - { - return $this->node_network_config; - } - - public function hasNodeNetworkConfig() - { - return isset($this->node_network_config); - } - - public function clearNodeNetworkConfig() - { - unset($this->node_network_config); - } - - /** - * Node network config. - * - * Generated from protobuf field .google.container.v1.NodeNetworkConfig node_network_config = 21; - * @param \Google\Cloud\Container\V1\NodeNetworkConfig $var - * @return $this - */ - public function setNodeNetworkConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeNetworkConfig::class); - $this->node_network_config = $var; - - return $this; - } - - /** - * GCFS config. - * - * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 22; - * @return \Google\Cloud\Container\V1\GcfsConfig|null - */ - public function getGcfsConfig() - { - return $this->gcfs_config; - } - - public function hasGcfsConfig() - { - return isset($this->gcfs_config); - } - - public function clearGcfsConfig() - { - unset($this->gcfs_config); - } - - /** - * GCFS config. - * - * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 22; - * @param \Google\Cloud\Container\V1\GcfsConfig $var - * @return $this - */ - public function setGcfsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GcfsConfig::class); - $this->gcfs_config = $var; - - return $this; - } - - /** - * Confidential nodes config. - * All the nodes in the node pool will be Confidential VM once enabled. - * - * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 23; - * @return \Google\Cloud\Container\V1\ConfidentialNodes|null - */ - public function getConfidentialNodes() - { - return $this->confidential_nodes; - } - - public function hasConfidentialNodes() - { - return isset($this->confidential_nodes); - } - - public function clearConfidentialNodes() - { - unset($this->confidential_nodes); - } - - /** - * Confidential nodes config. - * All the nodes in the node pool will be Confidential VM once enabled. - * - * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 23; - * @param \Google\Cloud\Container\V1\ConfidentialNodes $var - * @return $this - */ - public function setConfidentialNodes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ConfidentialNodes::class); - $this->confidential_nodes = $var; - - return $this; - } - - /** - * Enable or disable gvnic on the node pool. - * - * Generated from protobuf field .google.container.v1.VirtualNIC gvnic = 29; - * @return \Google\Cloud\Container\V1\VirtualNIC|null - */ - public function getGvnic() - { - return $this->gvnic; - } - - public function hasGvnic() - { - return isset($this->gvnic); - } - - public function clearGvnic() - { - unset($this->gvnic); - } - - /** - * Enable or disable gvnic on the node pool. - * - * Generated from protobuf field .google.container.v1.VirtualNIC gvnic = 29; - * @param \Google\Cloud\Container\V1\VirtualNIC $var - * @return $this - */ - public function setGvnic($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\VirtualNIC::class); - $this->gvnic = $var; - - return $this; - } - - /** - * The current etag of the node pool. - * If an etag is provided and does not match the current etag of the node - * pool, update will be blocked and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 30; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * The current etag of the node pool. - * If an etag is provided and does not match the current etag of the node - * pool, update will be blocked and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 30; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Enable or disable NCCL fast socket for the node pool. - * - * Generated from protobuf field .google.container.v1.FastSocket fast_socket = 31; - * @return \Google\Cloud\Container\V1\FastSocket|null - */ - public function getFastSocket() - { - return $this->fast_socket; - } - - public function hasFastSocket() - { - return isset($this->fast_socket); - } - - public function clearFastSocket() - { - unset($this->fast_socket); - } - - /** - * Enable or disable NCCL fast socket for the node pool. - * - * Generated from protobuf field .google.container.v1.FastSocket fast_socket = 31; - * @param \Google\Cloud\Container\V1\FastSocket $var - * @return $this - */ - public function setFastSocket($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\FastSocket::class); - $this->fast_socket = $var; - - return $this; - } - - /** - * Logging configuration. - * - * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 32; - * @return \Google\Cloud\Container\V1\NodePoolLoggingConfig|null - */ - public function getLoggingConfig() - { - return $this->logging_config; - } - - public function hasLoggingConfig() - { - return isset($this->logging_config); - } - - public function clearLoggingConfig() - { - unset($this->logging_config); - } - - /** - * Logging configuration. - * - * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 32; - * @param \Google\Cloud\Container\V1\NodePoolLoggingConfig $var - * @return $this - */ - public function setLoggingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolLoggingConfig::class); - $this->logging_config = $var; - - return $this; - } - - /** - * The resource labels for the node pool to use to annotate any related - * Google Compute Engine resources. - * - * Generated from protobuf field .google.container.v1.ResourceLabels resource_labels = 33; - * @return \Google\Cloud\Container\V1\ResourceLabels|null - */ - public function getResourceLabels() - { - return $this->resource_labels; - } - - public function hasResourceLabels() - { - return isset($this->resource_labels); - } - - public function clearResourceLabels() - { - unset($this->resource_labels); - } - - /** - * The resource labels for the node pool to use to annotate any related - * Google Compute Engine resources. - * - * Generated from protobuf field .google.container.v1.ResourceLabels resource_labels = 33; - * @param \Google\Cloud\Container\V1\ResourceLabels $var - * @return $this - */ - public function setResourceLabels($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ResourceLabels::class); - $this->resource_labels = $var; - - return $this; - } - - /** - * Parameters that can be configured on Windows nodes. - * - * Generated from protobuf field .google.container.v1.WindowsNodeConfig windows_node_config = 34; - * @return \Google\Cloud\Container\V1\WindowsNodeConfig|null - */ - public function getWindowsNodeConfig() - { - return $this->windows_node_config; - } - - public function hasWindowsNodeConfig() - { - return isset($this->windows_node_config); - } - - public function clearWindowsNodeConfig() - { - unset($this->windows_node_config); - } - - /** - * Parameters that can be configured on Windows nodes. - * - * Generated from protobuf field .google.container.v1.WindowsNodeConfig windows_node_config = 34; - * @param \Google\Cloud\Container\V1\WindowsNodeConfig $var - * @return $this - */ - public function setWindowsNodeConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\WindowsNodeConfig::class); - $this->windows_node_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeAvailableEvent.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeAvailableEvent.php deleted file mode 100644 index fa7673b4da19..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeAvailableEvent.php +++ /dev/null @@ -1,188 +0,0 @@ -google.container.v1.UpgradeAvailableEvent - */ -class UpgradeAvailableEvent extends \Google\Protobuf\Internal\Message -{ - /** - * The release version available for upgrade. - * - * Generated from protobuf field string version = 1; - */ - protected $version = ''; - /** - * The resource type of the release version. - * - * Generated from protobuf field .google.container.v1.UpgradeResourceType resource_type = 2; - */ - protected $resource_type = 0; - /** - * The release channel of the version. If empty, it means a non-channel - * release. - * - * Generated from protobuf field .google.container.v1.ReleaseChannel release_channel = 3; - */ - protected $release_channel = null; - /** - * Optional relative path to the resource. For example, the relative path of - * the node pool. - * - * Generated from protobuf field string resource = 4; - */ - protected $resource = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $version - * The release version available for upgrade. - * @type int $resource_type - * The resource type of the release version. - * @type \Google\Cloud\Container\V1\ReleaseChannel $release_channel - * The release channel of the version. If empty, it means a non-channel - * release. - * @type string $resource - * Optional relative path to the resource. For example, the relative path of - * the node pool. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The release version available for upgrade. - * - * Generated from protobuf field string version = 1; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * The release version available for upgrade. - * - * Generated from protobuf field string version = 1; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * The resource type of the release version. - * - * Generated from protobuf field .google.container.v1.UpgradeResourceType resource_type = 2; - * @return int - */ - public function getResourceType() - { - return $this->resource_type; - } - - /** - * The resource type of the release version. - * - * Generated from protobuf field .google.container.v1.UpgradeResourceType resource_type = 2; - * @param int $var - * @return $this - */ - public function setResourceType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\UpgradeResourceType::class); - $this->resource_type = $var; - - return $this; - } - - /** - * The release channel of the version. If empty, it means a non-channel - * release. - * - * Generated from protobuf field .google.container.v1.ReleaseChannel release_channel = 3; - * @return \Google\Cloud\Container\V1\ReleaseChannel|null - */ - public function getReleaseChannel() - { - return $this->release_channel; - } - - public function hasReleaseChannel() - { - return isset($this->release_channel); - } - - public function clearReleaseChannel() - { - unset($this->release_channel); - } - - /** - * The release channel of the version. If empty, it means a non-channel - * release. - * - * Generated from protobuf field .google.container.v1.ReleaseChannel release_channel = 3; - * @param \Google\Cloud\Container\V1\ReleaseChannel $var - * @return $this - */ - public function setReleaseChannel($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ReleaseChannel::class); - $this->release_channel = $var; - - return $this; - } - - /** - * Optional relative path to the resource. For example, the relative path of - * the node pool. - * - * Generated from protobuf field string resource = 4; - * @return string - */ - public function getResource() - { - return $this->resource; - } - - /** - * Optional relative path to the resource. For example, the relative path of - * the node pool. - * - * Generated from protobuf field string resource = 4; - * @param string $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkString($var, True); - $this->resource = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeEvent.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeEvent.php deleted file mode 100644 index 373792fc7920..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeEvent.php +++ /dev/null @@ -1,252 +0,0 @@ -google.container.v1.UpgradeEvent - */ -class UpgradeEvent extends \Google\Protobuf\Internal\Message -{ - /** - * The resource type that is upgrading. - * - * Generated from protobuf field .google.container.v1.UpgradeResourceType resource_type = 1; - */ - protected $resource_type = 0; - /** - * The operation associated with this upgrade. - * - * Generated from protobuf field string operation = 2; - */ - protected $operation = ''; - /** - * The time when the operation was started. - * - * Generated from protobuf field .google.protobuf.Timestamp operation_start_time = 3; - */ - protected $operation_start_time = null; - /** - * The current version before the upgrade. - * - * Generated from protobuf field string current_version = 4; - */ - protected $current_version = ''; - /** - * The target version for the upgrade. - * - * Generated from protobuf field string target_version = 5; - */ - protected $target_version = ''; - /** - * Optional relative path to the resource. For example in node pool upgrades, - * the relative path of the node pool. - * - * Generated from protobuf field string resource = 6; - */ - protected $resource = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $resource_type - * The resource type that is upgrading. - * @type string $operation - * The operation associated with this upgrade. - * @type \Google\Protobuf\Timestamp $operation_start_time - * The time when the operation was started. - * @type string $current_version - * The current version before the upgrade. - * @type string $target_version - * The target version for the upgrade. - * @type string $resource - * Optional relative path to the resource. For example in node pool upgrades, - * the relative path of the node pool. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The resource type that is upgrading. - * - * Generated from protobuf field .google.container.v1.UpgradeResourceType resource_type = 1; - * @return int - */ - public function getResourceType() - { - return $this->resource_type; - } - - /** - * The resource type that is upgrading. - * - * Generated from protobuf field .google.container.v1.UpgradeResourceType resource_type = 1; - * @param int $var - * @return $this - */ - public function setResourceType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\UpgradeResourceType::class); - $this->resource_type = $var; - - return $this; - } - - /** - * The operation associated with this upgrade. - * - * Generated from protobuf field string operation = 2; - * @return string - */ - public function getOperation() - { - return $this->operation; - } - - /** - * The operation associated with this upgrade. - * - * Generated from protobuf field string operation = 2; - * @param string $var - * @return $this - */ - public function setOperation($var) - { - GPBUtil::checkString($var, True); - $this->operation = $var; - - return $this; - } - - /** - * The time when the operation was started. - * - * Generated from protobuf field .google.protobuf.Timestamp operation_start_time = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getOperationStartTime() - { - return $this->operation_start_time; - } - - public function hasOperationStartTime() - { - return isset($this->operation_start_time); - } - - public function clearOperationStartTime() - { - unset($this->operation_start_time); - } - - /** - * The time when the operation was started. - * - * Generated from protobuf field .google.protobuf.Timestamp operation_start_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setOperationStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->operation_start_time = $var; - - return $this; - } - - /** - * The current version before the upgrade. - * - * Generated from protobuf field string current_version = 4; - * @return string - */ - public function getCurrentVersion() - { - return $this->current_version; - } - - /** - * The current version before the upgrade. - * - * Generated from protobuf field string current_version = 4; - * @param string $var - * @return $this - */ - public function setCurrentVersion($var) - { - GPBUtil::checkString($var, True); - $this->current_version = $var; - - return $this; - } - - /** - * The target version for the upgrade. - * - * Generated from protobuf field string target_version = 5; - * @return string - */ - public function getTargetVersion() - { - return $this->target_version; - } - - /** - * The target version for the upgrade. - * - * Generated from protobuf field string target_version = 5; - * @param string $var - * @return $this - */ - public function setTargetVersion($var) - { - GPBUtil::checkString($var, True); - $this->target_version = $var; - - return $this; - } - - /** - * Optional relative path to the resource. For example in node pool upgrades, - * the relative path of the node pool. - * - * Generated from protobuf field string resource = 6; - * @return string - */ - public function getResource() - { - return $this->resource; - } - - /** - * Optional relative path to the resource. For example in node pool upgrades, - * the relative path of the node pool. - * - * Generated from protobuf field string resource = 6; - * @param string $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkString($var, True); - $this->resource = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeResourceType.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeResourceType.php deleted file mode 100644 index 53f1f2370b97..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeResourceType.php +++ /dev/null @@ -1,62 +0,0 @@ -google.container.v1.UpgradeResourceType - */ -class UpgradeResourceType -{ - /** - * Default value. This shouldn't be used. - * - * Generated from protobuf enum UPGRADE_RESOURCE_TYPE_UNSPECIFIED = 0; - */ - const UPGRADE_RESOURCE_TYPE_UNSPECIFIED = 0; - /** - * Master / control plane - * - * Generated from protobuf enum MASTER = 1; - */ - const MASTER = 1; - /** - * Node pool - * - * Generated from protobuf enum NODE_POOL = 2; - */ - const NODE_POOL = 2; - - private static $valueToName = [ - self::UPGRADE_RESOURCE_TYPE_UNSPECIFIED => 'UPGRADE_RESOURCE_TYPE_UNSPECIFIED', - self::MASTER => 'MASTER', - self::NODE_POOL => 'NODE_POOL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetwork.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetwork.php deleted file mode 100644 index 64579e77c1be..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetwork.php +++ /dev/null @@ -1,224 +0,0 @@ -google.container.v1.UsableSubnetwork - */ -class UsableSubnetwork extends \Google\Protobuf\Internal\Message -{ - /** - * Subnetwork Name. - * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet - * - * Generated from protobuf field string subnetwork = 1; - */ - protected $subnetwork = ''; - /** - * Network Name. - * Example: projects/my-project/global/networks/my-network - * - * Generated from protobuf field string network = 2; - */ - protected $network = ''; - /** - * The range of internal addresses that are owned by this subnetwork. - * - * Generated from protobuf field string ip_cidr_range = 3; - */ - protected $ip_cidr_range = ''; - /** - * Secondary IP ranges. - * - * Generated from protobuf field repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - */ - private $secondary_ip_ranges; - /** - * A human readable status message representing the reasons for cases where - * the caller cannot use the secondary ranges under the subnet. For example if - * the secondary_ip_ranges is empty due to a permission issue, an insufficient - * permission message will be given by status_message. - * - * Generated from protobuf field string status_message = 5; - */ - protected $status_message = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $subnetwork - * Subnetwork Name. - * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet - * @type string $network - * Network Name. - * Example: projects/my-project/global/networks/my-network - * @type string $ip_cidr_range - * The range of internal addresses that are owned by this subnetwork. - * @type array<\Google\Cloud\Container\V1\UsableSubnetworkSecondaryRange>|\Google\Protobuf\Internal\RepeatedField $secondary_ip_ranges - * Secondary IP ranges. - * @type string $status_message - * A human readable status message representing the reasons for cases where - * the caller cannot use the secondary ranges under the subnet. For example if - * the secondary_ip_ranges is empty due to a permission issue, an insufficient - * permission message will be given by status_message. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Subnetwork Name. - * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet - * - * Generated from protobuf field string subnetwork = 1; - * @return string - */ - public function getSubnetwork() - { - return $this->subnetwork; - } - - /** - * Subnetwork Name. - * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet - * - * Generated from protobuf field string subnetwork = 1; - * @param string $var - * @return $this - */ - public function setSubnetwork($var) - { - GPBUtil::checkString($var, True); - $this->subnetwork = $var; - - return $this; - } - - /** - * Network Name. - * Example: projects/my-project/global/networks/my-network - * - * Generated from protobuf field string network = 2; - * @return string - */ - public function getNetwork() - { - return $this->network; - } - - /** - * Network Name. - * Example: projects/my-project/global/networks/my-network - * - * Generated from protobuf field string network = 2; - * @param string $var - * @return $this - */ - public function setNetwork($var) - { - GPBUtil::checkString($var, True); - $this->network = $var; - - return $this; - } - - /** - * The range of internal addresses that are owned by this subnetwork. - * - * Generated from protobuf field string ip_cidr_range = 3; - * @return string - */ - public function getIpCidrRange() - { - return $this->ip_cidr_range; - } - - /** - * The range of internal addresses that are owned by this subnetwork. - * - * Generated from protobuf field string ip_cidr_range = 3; - * @param string $var - * @return $this - */ - public function setIpCidrRange($var) - { - GPBUtil::checkString($var, True); - $this->ip_cidr_range = $var; - - return $this; - } - - /** - * Secondary IP ranges. - * - * Generated from protobuf field repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSecondaryIpRanges() - { - return $this->secondary_ip_ranges; - } - - /** - * Secondary IP ranges. - * - * Generated from protobuf field repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * @param array<\Google\Cloud\Container\V1\UsableSubnetworkSecondaryRange>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSecondaryIpRanges($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\UsableSubnetworkSecondaryRange::class); - $this->secondary_ip_ranges = $arr; - - return $this; - } - - /** - * A human readable status message representing the reasons for cases where - * the caller cannot use the secondary ranges under the subnet. For example if - * the secondary_ip_ranges is empty due to a permission issue, an insufficient - * permission message will be given by status_message. - * - * Generated from protobuf field string status_message = 5; - * @return string - */ - public function getStatusMessage() - { - return $this->status_message; - } - - /** - * A human readable status message representing the reasons for cases where - * the caller cannot use the secondary ranges under the subnet. For example if - * the secondary_ip_ranges is empty due to a permission issue, an insufficient - * permission message will be given by status_message. - * - * Generated from protobuf field string status_message = 5; - * @param string $var - * @return $this - */ - public function setStatusMessage($var) - { - GPBUtil::checkString($var, True); - $this->status_message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange.php deleted file mode 100644 index d66bb1a9839e..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange.php +++ /dev/null @@ -1,139 +0,0 @@ -google.container.v1.UsableSubnetworkSecondaryRange - */ -class UsableSubnetworkSecondaryRange extends \Google\Protobuf\Internal\Message -{ - /** - * The name associated with this subnetwork secondary range, used when adding - * an alias IP range to a VM instance. - * - * Generated from protobuf field string range_name = 1; - */ - protected $range_name = ''; - /** - * The range of IP addresses belonging to this subnetwork secondary range. - * - * Generated from protobuf field string ip_cidr_range = 2; - */ - protected $ip_cidr_range = ''; - /** - * This field is to determine the status of the secondary range programmably. - * - * Generated from protobuf field .google.container.v1.UsableSubnetworkSecondaryRange.Status status = 3; - */ - protected $status = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $range_name - * The name associated with this subnetwork secondary range, used when adding - * an alias IP range to a VM instance. - * @type string $ip_cidr_range - * The range of IP addresses belonging to this subnetwork secondary range. - * @type int $status - * This field is to determine the status of the secondary range programmably. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The name associated with this subnetwork secondary range, used when adding - * an alias IP range to a VM instance. - * - * Generated from protobuf field string range_name = 1; - * @return string - */ - public function getRangeName() - { - return $this->range_name; - } - - /** - * The name associated with this subnetwork secondary range, used when adding - * an alias IP range to a VM instance. - * - * Generated from protobuf field string range_name = 1; - * @param string $var - * @return $this - */ - public function setRangeName($var) - { - GPBUtil::checkString($var, True); - $this->range_name = $var; - - return $this; - } - - /** - * The range of IP addresses belonging to this subnetwork secondary range. - * - * Generated from protobuf field string ip_cidr_range = 2; - * @return string - */ - public function getIpCidrRange() - { - return $this->ip_cidr_range; - } - - /** - * The range of IP addresses belonging to this subnetwork secondary range. - * - * Generated from protobuf field string ip_cidr_range = 2; - * @param string $var - * @return $this - */ - public function setIpCidrRange($var) - { - GPBUtil::checkString($var, True); - $this->ip_cidr_range = $var; - - return $this; - } - - /** - * This field is to determine the status of the secondary range programmably. - * - * Generated from protobuf field .google.container.v1.UsableSubnetworkSecondaryRange.Status status = 3; - * @return int - */ - public function getStatus() - { - return $this->status; - } - - /** - * This field is to determine the status of the secondary range programmably. - * - * Generated from protobuf field .google.container.v1.UsableSubnetworkSecondaryRange.Status status = 3; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\UsableSubnetworkSecondaryRange\Status::class); - $this->status = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange/Status.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange/Status.php deleted file mode 100644 index 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/WindowsNodeConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig.php deleted file mode 100644 index 33744a598dae..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig.php +++ /dev/null @@ -1,69 +0,0 @@ -google.container.v1.WindowsNodeConfig - */ -class WindowsNodeConfig extends \Google\Protobuf\Internal\Message -{ - /** - * OSVersion specifies the Windows node config to be used on the node - * - * Generated from protobuf field .google.container.v1.WindowsNodeConfig.OSVersion os_version = 1; - */ - protected $os_version = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $os_version - * OSVersion specifies the Windows node config to be used on the node - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * OSVersion specifies the Windows node config to be used on the node - * - * Generated from protobuf field .google.container.v1.WindowsNodeConfig.OSVersion os_version = 1; - * @return int - */ - public function getOsVersion() - { - return $this->os_version; - } - - /** - * OSVersion specifies the Windows node config to be used on the node - * - * Generated from protobuf field .google.container.v1.WindowsNodeConfig.OSVersion os_version = 1; - * @param int $var - * @return $this - */ - public function setOsVersion($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\WindowsNodeConfig\OSVersion::class); - $this->os_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig/OSVersion.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig/OSVersion.php deleted file mode 100644 index 3e27aee4f517..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig/OSVersion.php +++ /dev/null @@ -1,64 +0,0 @@ -google.container.v1.WindowsNodeConfig.OSVersion - */ -class OSVersion -{ - /** - * When OSVersion is not specified - * - * Generated from protobuf enum OS_VERSION_UNSPECIFIED = 0; - */ - const OS_VERSION_UNSPECIFIED = 0; - /** - * LTSC2019 specifies to use LTSC2019 as the Windows Servercore Base Image - * - * Generated from protobuf enum OS_VERSION_LTSC2019 = 1; - */ - const OS_VERSION_LTSC2019 = 1; - /** - * LTSC2022 specifies to use LTSC2022 as the Windows Servercore Base Image - * - * Generated from protobuf enum OS_VERSION_LTSC2022 = 2; - */ - const OS_VERSION_LTSC2022 = 2; - - private static $valueToName = [ - self::OS_VERSION_UNSPECIFIED => 'OS_VERSION_UNSPECIFIED', - self::OS_VERSION_LTSC2019 => 'OS_VERSION_LTSC2019', - self::OS_VERSION_LTSC2022 => 'OS_VERSION_LTSC2022', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(OSVersion::class, \Google\Cloud\Container\V1\WindowsNodeConfig_OSVersion::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig_OSVersion.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig_OSVersion.php deleted file mode 100644 index 034c9d0e56fa..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig_OSVersion.php +++ /dev/null @@ -1,16 +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(); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_CancelOperation_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_ip_rotation.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_ip_rotation.php deleted file mode 100644 index f53f033c88c3..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_ip_rotation.php +++ /dev/null @@ -1,53 +0,0 @@ -completeIPRotation(); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_CompleteIPRotation_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_node_pool_upgrade.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_node_pool_upgrade.php deleted file mode 100644 index 71e41d36e387..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_node_pool_upgrade.php +++ /dev/null @@ -1,52 +0,0 @@ -completeNodePoolUpgrade(); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_CompleteNodePoolUpgrade_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_cluster.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_cluster.php deleted file mode 100644 index bae93761d98f..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_cluster.php +++ /dev/null @@ -1,70 +0,0 @@ -createCluster($cluster); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_CreateCluster_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_node_pool.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_node_pool.php deleted file mode 100644 index ec47b25cca9a..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_node_pool.php +++ /dev/null @@ -1,57 +0,0 @@ -createNodePool($nodePool); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_CreateNodePool_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_cluster.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_cluster.php deleted file mode 100644 index 628f86b7d6e9..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_cluster.php +++ /dev/null @@ -1,61 +0,0 @@ -deleteCluster(); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_DeleteCluster_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_node_pool.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_node_pool.php deleted file mode 100644 index e6cfb1970afe..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_node_pool.php +++ /dev/null @@ -1,53 +0,0 @@ -deleteNodePool(); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_DeleteNodePool_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_cluster.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_cluster.php deleted file mode 100644 index 53c275133a3a..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_cluster.php +++ /dev/null @@ -1,53 +0,0 @@ -getCluster(); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_GetCluster_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_json_web_keys.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_json_web_keys.php deleted file mode 100644 index b3e7d2ba2569..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_json_web_keys.php +++ /dev/null @@ -1,56 +0,0 @@ -getJSONWebKeys(); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_GetJSONWebKeys_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_node_pool.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_node_pool.php deleted file mode 100644 index 624fb2baccca..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_node_pool.php +++ /dev/null @@ -1,53 +0,0 @@ -getNodePool(); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_GetNodePool_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_operation.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_operation.php deleted file mode 100644 index 5a9048aff8f7..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_operation.php +++ /dev/null @@ -1,53 +0,0 @@ -getOperation(); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_GetOperation_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_server_config.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_server_config.php deleted file mode 100644 index 91e9aff9b10e..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_server_config.php +++ /dev/null @@ -1,53 +0,0 @@ -getServerConfig(); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_GetServerConfig_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_clusters.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_clusters.php deleted file mode 100644 index a0bc7cf8f5c4..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_clusters.php +++ /dev/null @@ -1,54 +0,0 @@ -listClusters(); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_ListClusters_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_node_pools.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_node_pools.php deleted file mode 100644 index 644ffa779f06..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_node_pools.php +++ /dev/null @@ -1,53 +0,0 @@ -listNodePools(); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_ListNodePools_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_operations.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_operations.php deleted file mode 100644 index 3daf5842276c..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_operations.php +++ /dev/null @@ -1,53 +0,0 @@ -listOperations(); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_ListOperations_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_usable_subnetworks.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_usable_subnetworks.php deleted file mode 100644 index f7b57665077c..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_usable_subnetworks.php +++ /dev/null @@ -1,58 +0,0 @@ -listUsableSubnetworks(); - - /** @var UsableSubnetwork $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_ListUsableSubnetworks_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/rollback_node_pool_upgrade.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/rollback_node_pool_upgrade.php deleted file mode 100644 index bf55bcd9d498..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/rollback_node_pool_upgrade.php +++ /dev/null @@ -1,54 +0,0 @@ -rollbackNodePoolUpgrade(); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_RollbackNodePoolUpgrade_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_addons_config.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_addons_config.php deleted file mode 100644 index 8fdde179f0eb..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_addons_config.php +++ /dev/null @@ -1,57 +0,0 @@ -setAddonsConfig($addonsConfig); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_SetAddonsConfig_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_labels.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_labels.php deleted file mode 100644 index 1817f6c7f5fe..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_labels.php +++ /dev/null @@ -1,73 +0,0 @@ -setLabels($resourceLabels, $labelFingerprint); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $labelFingerprint = '[LABEL_FINGERPRINT]'; - - set_labels_sample($labelFingerprint); -} -// [END container_v1_generated_ClusterManager_SetLabels_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_legacy_abac.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_legacy_abac.php deleted file mode 100644 index a97d789070f0..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_legacy_abac.php +++ /dev/null @@ -1,65 +0,0 @@ -setLegacyAbac($enabled); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $enabled = false; - - set_legacy_abac_sample($enabled); -} -// [END container_v1_generated_ClusterManager_SetLegacyAbac_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_locations.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_locations.php deleted file mode 100644 index e83210da5538..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_locations.php +++ /dev/null @@ -1,77 +0,0 @@ -setLocations($locations); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $locationsElement = '[LOCATIONS]'; - - set_locations_sample($locationsElement); -} -// [END container_v1_generated_ClusterManager_SetLocations_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_logging_service.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_logging_service.php deleted file mode 100644 index 266beda820ba..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_logging_service.php +++ /dev/null @@ -1,75 +0,0 @@ -setLoggingService($loggingService); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $loggingService = '[LOGGING_SERVICE]'; - - set_logging_service_sample($loggingService); -} -// [END container_v1_generated_ClusterManager_SetLoggingService_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_maintenance_policy.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_maintenance_policy.php deleted file mode 100644 index 7c267904de58..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_maintenance_policy.php +++ /dev/null @@ -1,81 +0,0 @@ -setMaintenancePolicy( - $projectId, - $zone, - $clusterId, - $maintenancePolicy - ); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $projectId = '[PROJECT_ID]'; - $zone = '[ZONE]'; - $clusterId = '[CLUSTER_ID]'; - - set_maintenance_policy_sample($projectId, $zone, $clusterId); -} -// [END container_v1_generated_ClusterManager_SetMaintenancePolicy_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_master_auth.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_master_auth.php deleted file mode 100644 index 03aaa103e441..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_master_auth.php +++ /dev/null @@ -1,72 +0,0 @@ -setMasterAuth($action, $update); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $action = Action::UNKNOWN; - - set_master_auth_sample($action); -} -// [END container_v1_generated_ClusterManager_SetMasterAuth_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_monitoring_service.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_monitoring_service.php deleted file mode 100644 index 03e8cab20ce6..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_monitoring_service.php +++ /dev/null @@ -1,75 +0,0 @@ -setMonitoringService($monitoringService); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $monitoringService = '[MONITORING_SERVICE]'; - - set_monitoring_service_sample($monitoringService); -} -// [END container_v1_generated_ClusterManager_SetMonitoringService_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_network_policy.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_network_policy.php deleted file mode 100644 index 84c18b4d5983..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_network_policy.php +++ /dev/null @@ -1,57 +0,0 @@ -setNetworkPolicy($networkPolicy); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_SetNetworkPolicy_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_autoscaling.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_autoscaling.php deleted file mode 100644 index b03ab267efe6..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_autoscaling.php +++ /dev/null @@ -1,57 +0,0 @@ -setNodePoolAutoscaling($autoscaling); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_SetNodePoolAutoscaling_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_management.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_management.php deleted file mode 100644 index 24a9a7206978..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_management.php +++ /dev/null @@ -1,57 +0,0 @@ -setNodePoolManagement($management); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_SetNodePoolManagement_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_size.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_size.php deleted file mode 100644 index f6db7a220391..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_size.php +++ /dev/null @@ -1,67 +0,0 @@ -setNodePoolSize($nodeCount); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $nodeCount = 0; - - set_node_pool_size_sample($nodeCount); -} -// [END container_v1_generated_ClusterManager_SetNodePoolSize_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/start_ip_rotation.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/start_ip_rotation.php deleted file mode 100644 index eca0e46ff123..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/start_ip_rotation.php +++ /dev/null @@ -1,53 +0,0 @@ -startIPRotation(); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_StartIPRotation_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_cluster.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_cluster.php deleted file mode 100644 index 8430a0e5db80..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_cluster.php +++ /dev/null @@ -1,57 +0,0 @@ -updateCluster($update); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_UpdateCluster_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_master.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_master.php deleted file mode 100644 index 3ed039dad8a3..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_master.php +++ /dev/null @@ -1,74 +0,0 @@ -updateMaster($masterVersion); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $masterVersion = '[MASTER_VERSION]'; - - update_master_sample($masterVersion); -} -// [END container_v1_generated_ClusterManager_UpdateMaster_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_node_pool.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_node_pool.php deleted file mode 100644 index 8b7bf433555e..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_node_pool.php +++ /dev/null @@ -1,79 +0,0 @@ -updateNodePool($nodeVersion, $imageType); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $nodeVersion = '[NODE_VERSION]'; - $imageType = '[IMAGE_TYPE]'; - - update_node_pool_sample($nodeVersion, $imageType); -} -// [END container_v1_generated_ClusterManager_UpdateNodePool_sync] diff --git a/owl-bot-staging/Container/v1/src/V1/ClusterManagerClient.php b/owl-bot-staging/Container/v1/src/V1/ClusterManagerClient.php deleted file mode 100644 index 86841f67ee6e..000000000000 --- a/owl-bot-staging/Container/v1/src/V1/ClusterManagerClient.php +++ /dev/null @@ -1,34 +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, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/cluster_manager_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/cluster_manager_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/cluster_manager_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/cluster_manager_rest_client_config.php', - ], - ], - ]; - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'container.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** - * Cancels the specified operation. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $clusterManagerClient->cancelOperation(); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * operation resides. This field has been deprecated and replaced by the name - * field. - * @type string $operationId - * Deprecated. The server-assigned `name` of the operation. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, operation id) of the operation to cancel. - * Specified in the format `projects/*/locations/*/operations/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - */ - public function cancelOperation(array $optionalArgs = []) - { - $request = new CancelOperationRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['operationId'])) { - $request->setOperationId($optionalArgs['operationId']); - $requestParamHeaders['operation_id'] = $optionalArgs['operationId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CancelOperation', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Completes master IP rotation. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $response = $clusterManagerClient->completeIPRotation(); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster name) of the cluster to complete IP - * rotation. Specified in the format `projects/*/locations/*/clusters/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function completeIPRotation(array $optionalArgs = []) - { - $request = new CompleteIPRotationRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CompleteIPRotation', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * CompleteNodePoolUpgrade will signal an on-going node pool upgrade to - * complete. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $clusterManagerClient->completeNodePoolUpgrade(); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $name - * The name (project, location, cluster, node pool id) of the node pool to - * complete upgrade. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - */ - public function completeNodePoolUpgrade(array $optionalArgs = []) - { - $request = new CompleteNodePoolUpgradeRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CompleteNodePoolUpgrade', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a cluster, consisting of the specified number and type of Google - * Compute Engine instances. - * - * By default, the cluster is created in the project's - * [default - * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). - * - * One firewall is added for the cluster. After cluster creation, - * the Kubelet creates routes for each node to allow the containers - * on that node to communicate with all other instances in the - * cluster. - * - * Finally, an entry is added to the project's global metadata indicating - * which CIDR range the cluster is using. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $cluster = new Cluster(); - * $response = $clusterManagerClient->createCluster($cluster); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param Cluster $cluster Required. A [cluster - * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * @type string $parent - * The parent (project and location) where the cluster will be created. - * Specified in the format `projects/*/locations/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function createCluster($cluster, array $optionalArgs = []) - { - $request = new CreateClusterRequest(); - $requestParamHeaders = []; - $request->setCluster($cluster); - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['parent'])) { - $request->setParent($optionalArgs['parent']); - $requestParamHeaders['parent'] = $optionalArgs['parent']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateCluster', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a node pool for a cluster. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $nodePool = new NodePool(); - * $response = $clusterManagerClient->createNodePool($nodePool); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param NodePool $nodePool Required. The node pool to create. - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * @type string $clusterId - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the parent field. - * @type string $parent - * The parent (project, location, cluster name) where the node pool will be - * created. Specified in the format - * `projects/*/locations/*/clusters/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function createNodePool($nodePool, array $optionalArgs = []) - { - $request = new CreateNodePoolRequest(); - $requestParamHeaders = []; - $request->setNodePool($nodePool); - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['parent'])) { - $request->setParent($optionalArgs['parent']); - $requestParamHeaders['parent'] = $optionalArgs['parent']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateNodePool', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes the cluster, including the Kubernetes endpoint and all worker - * nodes. - * - * Firewalls and routes that were configured during cluster creation - * are also deleted. - * - * Other Google Compute Engine resources that might be in use by the cluster, - * such as load balancer resources, are not deleted if they weren't present - * when the cluster was initially created. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $response = $clusterManagerClient->deleteCluster(); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster to delete. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster) of the cluster to delete. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function deleteCluster(array $optionalArgs = []) - { - $request = new DeleteClusterRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteCluster', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Deletes a node pool from a cluster. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $response = $clusterManagerClient->deleteNodePool(); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @type string $nodePoolId - * Deprecated. The name of the node pool to delete. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster, node pool id) of the node pool to - * delete. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function deleteNodePool(array $optionalArgs = []) - { - $request = new DeleteNodePoolRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['nodePoolId'])) { - $request->setNodePoolId($optionalArgs['nodePoolId']); - $requestParamHeaders['node_pool_id'] = $optionalArgs['nodePoolId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteNodePool', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Gets the details of a specific cluster. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $response = $clusterManagerClient->getCluster(); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster to retrieve. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster) of the cluster to retrieve. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Cluster - * - * @throws ApiException if the remote call fails - */ - public function getCluster(array $optionalArgs = []) - { - $request = new GetClusterRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetCluster', Cluster::class, $optionalArgs, $request)->wait(); - } - - /** - * Gets the public component of the cluster signing keys in - * JSON Web Key format. - * 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 name) to get keys for. Specified in - * the format `projects/*/locations/*/clusters/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\GetJSONWebKeysResponse - * - * @throws ApiException if the remote call fails - */ - public function getJSONWebKeys(array $optionalArgs = []) - { - $request = new GetJSONWebKeysRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['parent'])) { - $request->setParent($optionalArgs['parent']); - $requestParamHeaders['parent'] = $optionalArgs['parent']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetJSONWebKeys', GetJSONWebKeysResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Retrieves the requested node pool. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $response = $clusterManagerClient->getNodePool(); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @type string $nodePoolId - * Deprecated. The name of the node pool. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster, node pool id) of the node pool to - * get. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\NodePool - * - * @throws ApiException if the remote call fails - */ - public function getNodePool(array $optionalArgs = []) - { - $request = new GetNodePoolRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['nodePoolId'])) { - $request->setNodePoolId($optionalArgs['nodePoolId']); - $requestParamHeaders['node_pool_id'] = $optionalArgs['nodePoolId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetNodePool', NodePool::class, $optionalArgs, $request)->wait(); - } - - /** - * Gets the specified operation. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $response = $clusterManagerClient->getOperation(); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $operationId - * Deprecated. The server-assigned `name` of the operation. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, operation id) of the operation to get. - * Specified in the format `projects/*/locations/*/operations/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function getOperation(array $optionalArgs = []) - { - $request = new GetOperationRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['operationId'])) { - $request->setOperationId($optionalArgs['operationId']); - $requestParamHeaders['operation_id'] = $optionalArgs['operationId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetOperation', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Returns configuration info about the Google Kubernetes Engine service. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $response = $clusterManagerClient->getServerConfig(); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) to return - * operations for. This field has been deprecated and replaced by the name - * field. - * @type string $name - * The name (project and location) of the server config to get, - * specified in the format `projects/*/locations/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\ServerConfig - * - * @throws ApiException if the remote call fails - */ - public function getServerConfig(array $optionalArgs = []) - { - $request = new GetServerConfigRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetServerConfig', ServerConfig::class, $optionalArgs, $request)->wait(); - } - - /** - * Lists all clusters owned by a project in either the specified zone or all - * zones. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $response = $clusterManagerClient->listClusters(); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides, or "-" for all zones. This field has been deprecated and - * replaced by the parent field. - * @type string $parent - * The parent (project and location) where the clusters will be listed. - * Specified in the format `projects/*/locations/*`. - * Location "-" matches all zones and all regions. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\ListClustersResponse - * - * @throws ApiException if the remote call fails - */ - public function listClusters(array $optionalArgs = []) - { - $request = new ListClustersRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['parent'])) { - $request->setParent($optionalArgs['parent']); - $requestParamHeaders['parent'] = $optionalArgs['parent']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('ListClusters', ListClustersResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Lists the node pools for a cluster. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $response = $clusterManagerClient->listNodePools(); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * @type string $clusterId - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the parent field. - * @type string $parent - * The parent (project, location, cluster name) where the node pools will be - * listed. Specified in the format `projects/*/locations/*/clusters/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\ListNodePoolsResponse - * - * @throws ApiException if the remote call fails - */ - public function listNodePools(array $optionalArgs = []) - { - $request = new ListNodePoolsRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['parent'])) { - $request->setParent($optionalArgs['parent']); - $requestParamHeaders['parent'] = $optionalArgs['parent']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('ListNodePools', ListNodePoolsResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Lists all operations in a project in a specific zone or all zones. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $response = $clusterManagerClient->listOperations(); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) to return - * operations for, or `-` for all zones. This field has been deprecated and - * replaced by the parent field. - * @type string $parent - * The parent (project and location) where the operations will be listed. - * Specified in the format `projects/*/locations/*`. - * Location "-" matches all zones and all regions. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\ListOperationsResponse - * - * @throws ApiException if the remote call fails - */ - public function listOperations(array $optionalArgs = []) - { - $request = new ListOperationsRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['parent'])) { - $request->setParent($optionalArgs['parent']); - $requestParamHeaders['parent'] = $optionalArgs['parent']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('ListOperations', ListOperationsResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Lists subnetworks that are usable for creating clusters in a project. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * // Iterate over pages of elements - * $pagedResponse = $clusterManagerClient->listUsableSubnetworks(); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $clusterManagerClient->listUsableSubnetworks(); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $parent - * The parent project where subnetworks are usable. - * Specified in the format `projects/*`. - * @type string $filter - * Filtering currently only supports equality on the networkProjectId and must - * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` - * is the project which owns the listed subnetworks. This defaults to the - * parent project ID. - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - */ - public function listUsableSubnetworks(array $optionalArgs = []) - { - $request = new ListUsableSubnetworksRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['parent'])) { - $request->setParent($optionalArgs['parent']); - $requestParamHeaders['parent'] = $optionalArgs['parent']; - } - - if (isset($optionalArgs['filter'])) { - $request->setFilter($optionalArgs['filter']); - } - - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListUsableSubnetworks', $optionalArgs, ListUsableSubnetworksResponse::class, $request); - } - - /** - * Rolls back a previously Aborted or Failed NodePool upgrade. - * This makes no changes if the last upgrade successfully completed. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $response = $clusterManagerClient->rollbackNodePoolUpgrade(); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster to rollback. - * This field has been deprecated and replaced by the name field. - * @type string $nodePoolId - * Deprecated. The name of the node pool to rollback. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster, node pool id) of the node poll to - * rollback upgrade. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * @type bool $respectPdb - * Option for rollback to ignore the PodDisruptionBudget. - * Default value is false. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function rollbackNodePoolUpgrade(array $optionalArgs = []) - { - $request = new RollbackNodePoolUpgradeRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['nodePoolId'])) { - $request->setNodePoolId($optionalArgs['nodePoolId']); - $requestParamHeaders['node_pool_id'] = $optionalArgs['nodePoolId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - if (isset($optionalArgs['respectPdb'])) { - $request->setRespectPdb($optionalArgs['respectPdb']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('RollbackNodePoolUpgrade', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Sets the addons for a specific cluster. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $addonsConfig = new AddonsConfig(); - * $response = $clusterManagerClient->setAddonsConfig($addonsConfig); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param AddonsConfig $addonsConfig Required. The desired configurations for the various addons available to - * run in the cluster. - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster) of the cluster to set addons. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function setAddonsConfig($addonsConfig, array $optionalArgs = []) - { - $request = new SetAddonsConfigRequest(); - $requestParamHeaders = []; - $request->setAddonsConfig($addonsConfig); - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('SetAddonsConfig', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Sets labels on a cluster. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $resourceLabels = []; - * $labelFingerprint = 'label_fingerprint'; - * $response = $clusterManagerClient->setLabels($resourceLabels, $labelFingerprint); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param array $resourceLabels Required. The labels to set for that cluster. - * @param string $labelFingerprint Required. The fingerprint of the previous set of labels for this resource, - * used to detect conflicts. The fingerprint is initially generated by - * Kubernetes Engine and changes after every request to modify or update - * labels. You must always provide an up-to-date fingerprint hash when - * updating or changing labels. Make a `get()` request to the - * resource to get the latest fingerprint. - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster name) of the cluster to set labels. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function setLabels($resourceLabels, $labelFingerprint, array $optionalArgs = []) - { - $request = new SetLabelsRequest(); - $requestParamHeaders = []; - $request->setResourceLabels($resourceLabels); - $request->setLabelFingerprint($labelFingerprint); - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('SetLabels', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Enables or disables the ABAC authorization mechanism on a cluster. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $enabled = false; - * $response = $clusterManagerClient->setLegacyAbac($enabled); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param bool $enabled Required. Whether ABAC authorization will be enabled in the cluster. - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster name) of the cluster to set legacy - * abac. Specified in the format `projects/*/locations/*/clusters/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function setLegacyAbac($enabled, array $optionalArgs = []) - { - $request = new SetLegacyAbacRequest(); - $requestParamHeaders = []; - $request->setEnabled($enabled); - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('SetLegacyAbac', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Sets the locations for a specific cluster. - * Deprecated. Use - * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update) - * instead. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $locations = []; - * $response = $clusterManagerClient->setLocations($locations); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param string[] $locations Required. The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. Changing the locations a cluster is in - * will result in nodes being either created or removed from the cluster, - * depending on whether locations are being added or removed. - * - * This list must always include the cluster's primary zone. - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster) of the cluster to set locations. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - * - * @deprecated This method will be removed in the next major version update. - */ - public function setLocations($locations, array $optionalArgs = []) - { - $request = new SetLocationsRequest(); - $requestParamHeaders = []; - $request->setLocations($locations); - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('SetLocations', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Sets the logging service for a specific cluster. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $loggingService = 'logging_service'; - * $response = $clusterManagerClient->setLoggingService($loggingService); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param string $loggingService Required. The logging service the cluster should use to write logs. - * Currently available options: - * - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster) of the cluster to set logging. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function setLoggingService($loggingService, array $optionalArgs = []) - { - $request = new SetLoggingServiceRequest(); - $requestParamHeaders = []; - $request->setLoggingService($loggingService); - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('SetLoggingService', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Sets the maintenance policy for a cluster. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $projectId = 'project_id'; - * $zone = 'zone'; - * $clusterId = 'cluster_id'; - * $maintenancePolicy = new MaintenancePolicy(); - * $response = $clusterManagerClient->setMaintenancePolicy($projectId, $zone, $clusterId, $maintenancePolicy); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param string $projectId Required. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * @param string $zone Required. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. - * @param string $clusterId Required. The name of the cluster to update. - * @param MaintenancePolicy $maintenancePolicy Required. The maintenance policy to be set for the cluster. An empty field - * clears the existing maintenance policy. - * @param array $optionalArgs { - * Optional. - * - * @type string $name - * The name (project, location, cluster name) of the cluster to set - * maintenance policy. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function setMaintenancePolicy($projectId, $zone, $clusterId, $maintenancePolicy, array $optionalArgs = []) - { - $request = new SetMaintenancePolicyRequest(); - $requestParamHeaders = []; - $request->setProjectId($projectId); - $request->setZone($zone); - $request->setClusterId($clusterId); - $request->setMaintenancePolicy($maintenancePolicy); - $requestParamHeaders['project_id'] = $projectId; - $requestParamHeaders['zone'] = $zone; - $requestParamHeaders['cluster_id'] = $clusterId; - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('SetMaintenancePolicy', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Sets master auth materials. Currently supports changing the admin password - * or a specific cluster, either via password generation or explicitly setting - * the password. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $action = Action::UNKNOWN; - * $update = new MasterAuth(); - * $response = $clusterManagerClient->setMasterAuth($action, $update); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param int $action Required. The exact form of action to be taken on the master auth. - * For allowed values, use constants defined on {@see \Google\Cloud\Container\V1\SetMasterAuthRequest\Action} - * @param MasterAuth $update Required. A description of the update. - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster) of the cluster to set auth. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function setMasterAuth($action, $update, array $optionalArgs = []) - { - $request = new SetMasterAuthRequest(); - $requestParamHeaders = []; - $request->setAction($action); - $request->setUpdate($update); - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('SetMasterAuth', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Sets the monitoring service for a specific cluster. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $monitoringService = 'monitoring_service'; - * $response = $clusterManagerClient->setMonitoringService($monitoringService); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param string $monitoringService Required. The monitoring service the cluster should use to write metrics. - * Currently available options: - * - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster) of the cluster to set monitoring. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function setMonitoringService($monitoringService, array $optionalArgs = []) - { - $request = new SetMonitoringServiceRequest(); - $requestParamHeaders = []; - $request->setMonitoringService($monitoringService); - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('SetMonitoringService', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Enables or disables Network Policy for a cluster. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $networkPolicy = new NetworkPolicy(); - * $response = $clusterManagerClient->setNetworkPolicy($networkPolicy); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param NetworkPolicy $networkPolicy Required. Configuration options for the NetworkPolicy feature. - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster name) of the cluster to set networking - * policy. Specified in the format `projects/*/locations/*/clusters/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function setNetworkPolicy($networkPolicy, array $optionalArgs = []) - { - $request = new SetNetworkPolicyRequest(); - $requestParamHeaders = []; - $request->setNetworkPolicy($networkPolicy); - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('SetNetworkPolicy', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Sets the autoscaling settings for the specified node pool. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $autoscaling = new NodePoolAutoscaling(); - * $response = $clusterManagerClient->setNodePoolAutoscaling($autoscaling); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param NodePoolAutoscaling $autoscaling Required. Autoscaling configuration for the node pool. - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $nodePoolId - * Deprecated. The name of the node pool to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster, node pool) of the node pool to set - * autoscaler settings. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function setNodePoolAutoscaling($autoscaling, array $optionalArgs = []) - { - $request = new SetNodePoolAutoscalingRequest(); - $requestParamHeaders = []; - $request->setAutoscaling($autoscaling); - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['nodePoolId'])) { - $request->setNodePoolId($optionalArgs['nodePoolId']); - $requestParamHeaders['node_pool_id'] = $optionalArgs['nodePoolId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('SetNodePoolAutoscaling', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Sets the NodeManagement options for a node pool. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $management = new NodeManagement(); - * $response = $clusterManagerClient->setNodePoolManagement($management); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param NodeManagement $management Required. NodeManagement configuration for the node pool. - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * @type string $nodePoolId - * Deprecated. The name of the node pool to update. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster, node pool id) of the node pool to set - * management properties. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function setNodePoolManagement($management, array $optionalArgs = []) - { - $request = new SetNodePoolManagementRequest(); - $requestParamHeaders = []; - $request->setManagement($management); - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['nodePoolId'])) { - $request->setNodePoolId($optionalArgs['nodePoolId']); - $requestParamHeaders['node_pool_id'] = $optionalArgs['nodePoolId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('SetNodePoolManagement', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Sets the size for a specific node pool. The new size will be used for all - * replicas, including future replicas created by modifying - * [NodePool.locations][google.container.v1.NodePool.locations]. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $nodeCount = 0; - * $response = $clusterManagerClient->setNodePoolSize($nodeCount); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param int $nodeCount Required. The desired node count for the pool. - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * @type string $nodePoolId - * Deprecated. The name of the node pool to update. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster, node pool id) of the node pool to set - * size. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function setNodePoolSize($nodeCount, array $optionalArgs = []) - { - $request = new SetNodePoolSizeRequest(); - $requestParamHeaders = []; - $request->setNodeCount($nodeCount); - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['nodePoolId'])) { - $request->setNodePoolId($optionalArgs['nodePoolId']); - $requestParamHeaders['node_pool_id'] = $optionalArgs['nodePoolId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('SetNodePoolSize', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Starts master IP rotation. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $response = $clusterManagerClient->startIPRotation(); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster name) of the cluster to start IP - * rotation. Specified in the format `projects/*/locations/*/clusters/*`. - * @type bool $rotateCredentials - * Whether to rotate credentials during IP rotation. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function startIPRotation(array $optionalArgs = []) - { - $request = new StartIPRotationRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - if (isset($optionalArgs['rotateCredentials'])) { - $request->setRotateCredentials($optionalArgs['rotateCredentials']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('StartIPRotation', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates the settings of a specific cluster. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $update = new ClusterUpdate(); - * $response = $clusterManagerClient->updateCluster($update); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param ClusterUpdate $update Required. A description of the update. - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster) of the cluster to update. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function updateCluster($update, array $optionalArgs = []) - { - $request = new UpdateClusterRequest(); - $requestParamHeaders = []; - $request->setUpdate($update); - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateCluster', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates the master for a specific cluster. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $masterVersion = 'master_version'; - * $response = $clusterManagerClient->updateMaster($masterVersion); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param string $masterVersion Required. The Kubernetes version to change the master to. - * - * Users may specify either explicit versions offered by Kubernetes Engine or - * version aliases, which have the following behavior: - * - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the default Kubernetes version - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster) of the cluster to update. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function updateMaster($masterVersion, array $optionalArgs = []) - { - $request = new UpdateMasterRequest(); - $requestParamHeaders = []; - $request->setMasterVersion($masterVersion); - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateMaster', Operation::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates the version and/or image type for the specified node pool. - * - * Sample code: - * ``` - * $clusterManagerClient = new ClusterManagerClient(); - * try { - * $nodeVersion = 'node_version'; - * $imageType = 'image_type'; - * $response = $clusterManagerClient->updateNodePool($nodeVersion, $imageType); - * } finally { - * $clusterManagerClient->close(); - * } - * ``` - * - * @param string $nodeVersion Required. The Kubernetes version to change the nodes to (typically an - * upgrade). - * - * Users may specify either explicit versions offered by Kubernetes Engine or - * version aliases, which have the following behavior: - * - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the Kubernetes master version - * @param string $imageType Required. The desired image type for the node pool. Please see - * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for - * available image types. - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $clusterId - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $nodePoolId - * Deprecated. The name of the node pool to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster, node pool) of the node pool to - * update. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * @type string[] $locations - * The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * node pool's nodes should be located. Changing the locations for a node pool - * will result in nodes being either created or removed from the node pool, - * depending on whether locations are being added or removed. - * @type WorkloadMetadataConfig $workloadMetadataConfig - * The desired workload metadata config for the node pool. - * @type UpgradeSettings $upgradeSettings - * Upgrade settings control disruption and speed of the upgrade. - * @type NetworkTags $tags - * The desired network tags to be applied to all nodes in the node pool. - * If this field is not present, the tags will not be changed. Otherwise, - * the existing network tags will be *replaced* with the provided tags. - * @type NodeTaints $taints - * The desired node taints to be applied to all nodes in the node pool. - * If this field is not present, the taints will not be changed. Otherwise, - * the existing node taints will be *replaced* with the provided taints. - * @type NodeLabels $labels - * The desired node labels to be applied to all nodes in the node pool. - * If this field is not present, the labels will not be changed. Otherwise, - * the existing node labels will be *replaced* with the provided labels. - * @type LinuxNodeConfig $linuxNodeConfig - * Parameters that can be configured on Linux nodes. - * @type NodeKubeletConfig $kubeletConfig - * Node kubelet configs. - * @type NodeNetworkConfig $nodeNetworkConfig - * Node network config. - * @type GcfsConfig $gcfsConfig - * GCFS config. - * @type ConfidentialNodes $confidentialNodes - * Confidential nodes config. - * All the nodes in the node pool will be Confidential VM once enabled. - * @type VirtualNIC $gvnic - * Enable or disable gvnic on the node pool. - * @type string $etag - * The current etag of the node pool. - * If an etag is provided and does not match the current etag of the node - * pool, update will be blocked and an ABORTED error will be returned. - * @type FastSocket $fastSocket - * Enable or disable NCCL fast socket for the node pool. - * @type NodePoolLoggingConfig $loggingConfig - * Logging configuration. - * @type ResourceLabels $resourceLabels - * The resource labels for the node pool to use to annotate any related - * Google Compute Engine resources. - * @type WindowsNodeConfig $windowsNodeConfig - * Parameters that can be configured on Windows nodes. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Container\V1\Operation - * - * @throws ApiException if the remote call fails - */ - public function updateNodePool($nodeVersion, $imageType, array $optionalArgs = []) - { - $request = new UpdateNodePoolRequest(); - $requestParamHeaders = []; - $request->setNodeVersion($nodeVersion); - $request->setImageType($imageType); - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['zone'])) { - $request->setZone($optionalArgs['zone']); - $requestParamHeaders['zone'] = $optionalArgs['zone']; - } - - if (isset($optionalArgs['clusterId'])) { - $request->setClusterId($optionalArgs['clusterId']); - $requestParamHeaders['cluster_id'] = $optionalArgs['clusterId']; - } - - if (isset($optionalArgs['nodePoolId'])) { - $request->setNodePoolId($optionalArgs['nodePoolId']); - $requestParamHeaders['node_pool_id'] = $optionalArgs['nodePoolId']; - } - - if (isset($optionalArgs['name'])) { - $request->setName($optionalArgs['name']); - $requestParamHeaders['name'] = $optionalArgs['name']; - } - - if (isset($optionalArgs['locations'])) { - $request->setLocations($optionalArgs['locations']); - } - - if (isset($optionalArgs['workloadMetadataConfig'])) { - $request->setWorkloadMetadataConfig($optionalArgs['workloadMetadataConfig']); - } - - if (isset($optionalArgs['upgradeSettings'])) { - $request->setUpgradeSettings($optionalArgs['upgradeSettings']); - } - - if (isset($optionalArgs['tags'])) { - $request->setTags($optionalArgs['tags']); - } - - if (isset($optionalArgs['taints'])) { - $request->setTaints($optionalArgs['taints']); - } - - if (isset($optionalArgs['labels'])) { - $request->setLabels($optionalArgs['labels']); - } - - if (isset($optionalArgs['linuxNodeConfig'])) { - $request->setLinuxNodeConfig($optionalArgs['linuxNodeConfig']); - } - - if (isset($optionalArgs['kubeletConfig'])) { - $request->setKubeletConfig($optionalArgs['kubeletConfig']); - } - - if (isset($optionalArgs['nodeNetworkConfig'])) { - $request->setNodeNetworkConfig($optionalArgs['nodeNetworkConfig']); - } - - if (isset($optionalArgs['gcfsConfig'])) { - $request->setGcfsConfig($optionalArgs['gcfsConfig']); - } - - if (isset($optionalArgs['confidentialNodes'])) { - $request->setConfidentialNodes($optionalArgs['confidentialNodes']); - } - - if (isset($optionalArgs['gvnic'])) { - $request->setGvnic($optionalArgs['gvnic']); - } - - if (isset($optionalArgs['etag'])) { - $request->setEtag($optionalArgs['etag']); - } - - if (isset($optionalArgs['fastSocket'])) { - $request->setFastSocket($optionalArgs['fastSocket']); - } - - if (isset($optionalArgs['loggingConfig'])) { - $request->setLoggingConfig($optionalArgs['loggingConfig']); - } - - if (isset($optionalArgs['resourceLabels'])) { - $request->setResourceLabels($optionalArgs['resourceLabels']); - } - - if (isset($optionalArgs['windowsNodeConfig'])) { - $request->setWindowsNodeConfig($optionalArgs['windowsNodeConfig']); - } - - $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 b4b2e167b1b0..000000000000 --- a/owl-bot-staging/Container/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,183 +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" - ] - }, - "CompleteNodePoolUpgrade": { - "methods": [ - "completeNodePoolUpgrade" - ] - }, - "CreateCluster": { - "methods": [ - "createCluster" - ] - }, - "CreateNodePool": { - "methods": [ - "createNodePool" - ] - }, - "DeleteCluster": { - "methods": [ - "deleteCluster" - ] - }, - "DeleteNodePool": { - "methods": [ - "deleteNodePool" - ] - }, - "GetCluster": { - "methods": [ - "getCluster" - ] - }, - "GetJSONWebKeys": { - "methods": [ - "getJSONWebKeys" - ] - }, - "GetNodePool": { - "methods": [ - "getNodePool" - ] - }, - "GetOperation": { - "methods": [ - "getOperation" - ] - }, - "GetServerConfig": { - "methods": [ - "getServerConfig" - ] - }, - "ListClusters": { - "methods": [ - "listClusters" - ] - }, - "ListNodePools": { - "methods": [ - "listNodePools" - ] - }, - "ListOperations": { - "methods": [ - "listOperations" - ] - }, - "ListUsableSubnetworks": { - "methods": [ - "listUsableSubnetworks" - ] - }, - "RollbackNodePoolUpgrade": { - "methods": [ - "rollbackNodePoolUpgrade" - ] - }, - "SetAddonsConfig": { - "methods": [ - "setAddonsConfig" - ] - }, - "SetLabels": { - "methods": [ - "setLabels" - ] - }, - "SetLegacyAbac": { - "methods": [ - "setLegacyAbac" - ] - }, - "SetLocations": { - "methods": [ - "setLocations" - ] - }, - "SetLoggingService": { - "methods": [ - "setLoggingService" - ] - }, - "SetMaintenancePolicy": { - "methods": [ - "setMaintenancePolicy" - ] - }, - "SetMasterAuth": { - "methods": [ - "setMasterAuth" - ] - }, - "SetMonitoringService": { - "methods": [ - "setMonitoringService" - ] - }, - "SetNetworkPolicy": { - "methods": [ - "setNetworkPolicy" - ] - }, - "SetNodePoolAutoscaling": { - "methods": [ - "setNodePoolAutoscaling" - ] - }, - "SetNodePoolManagement": { - "methods": [ - "setNodePoolManagement" - ] - }, - "SetNodePoolSize": { - "methods": [ - "setNodePoolSize" - ] - }, - "StartIPRotation": { - "methods": [ - "startIPRotation" - ] - }, - "UpdateCluster": { - "methods": [ - "updateCluster" - ] - }, - "UpdateMaster": { - "methods": [ - "updateMaster" - ] - }, - "UpdateNodePool": { - "methods": [ - "updateNodePool" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_client_config.json b/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_client_config.json deleted file mode 100644 index 28e413277317..000000000000 --- a/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_client_config.json +++ /dev/null @@ -1,210 +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" - }, - "CompleteNodePoolUpgrade": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CreateCluster": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateNodePool": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteCluster": { - "timeout_millis": 20000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteNodePool": { - "timeout_millis": 20000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetCluster": { - "timeout_millis": 20000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetJSONWebKeys": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetNodePool": { - "timeout_millis": 20000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetOperation": { - "timeout_millis": 20000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetServerConfig": { - "timeout_millis": 20000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListClusters": { - "timeout_millis": 20000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListNodePools": { - "timeout_millis": 20000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListOperations": { - "timeout_millis": 20000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListUsableSubnetworks": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "RollbackNodePoolUpgrade": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SetAddonsConfig": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SetLabels": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SetLegacyAbac": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SetLocations": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SetLoggingService": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SetMaintenancePolicy": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SetMasterAuth": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SetMonitoringService": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SetNetworkPolicy": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SetNodePoolAutoscaling": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SetNodePoolManagement": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SetNodePoolSize": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "StartIPRotation": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateCluster": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateMaster": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateNodePool": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_descriptor_config.php b/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_descriptor_config.php deleted file mode 100644 index 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 3e6acc6bc7f6..000000000000 --- a/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_rest_client_config.php +++ /dev/null @@ -1,1060 +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', - ], - ], - ], - ], - 'CompleteNodePoolUpgrade' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:completeUpgrade', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'CreateCluster' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/clusters', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'CreateNodePool' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/clusters/*}/nodePools', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'DeleteCluster' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'DeleteNodePool' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'node_pool_id' => [ - 'getters' => [ - 'getNodePoolId', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'GetCluster' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'GetJSONWebKeys' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/clusters/*}/jwks', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'GetNodePool' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'node_pool_id' => [ - 'getters' => [ - 'getNodePoolId', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/operations/{operation_id}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'operation_id' => [ - 'getters' => [ - 'getOperationId', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'GetServerConfig' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/serverConfig', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/serverconfig', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'ListClusters' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/clusters', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'ListNodePools' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/clusters/*}/nodePools', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/operations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/operations', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'ListUsableSubnetworks' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*}/aggregated/usableSubnetworks', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'RollbackNodePoolUpgrade' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:rollback', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}:rollback', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'node_pool_id' => [ - 'getters' => [ - 'getNodePoolId', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'SetAddonsConfig' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setAddons', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/addons', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'SetLabels' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setResourceLabels', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/resourceLabels', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'SetLegacyAbac' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setLegacyAbac', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/legacyAbac', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'SetLocations' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setLocations', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/locations', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'SetLoggingService' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setLogging', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/logging', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'SetMaintenancePolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setMaintenancePolicy', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMaintenancePolicy', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'SetMasterAuth' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setMasterAuth', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMasterAuth', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'SetMonitoringService' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setMonitoring', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/monitoring', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'SetNetworkPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setNetworkPolicy', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setNetworkPolicy', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'SetNodePoolAutoscaling' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setAutoscaling', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/autoscaling', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'node_pool_id' => [ - 'getters' => [ - 'getNodePoolId', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'SetNodePoolManagement' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setManagement', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/setManagement', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'node_pool_id' => [ - 'getters' => [ - 'getNodePoolId', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'SetNodePoolSize' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setSize', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/setSize', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'node_pool_id' => [ - 'getters' => [ - 'getNodePoolId', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'StartIPRotation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:startIpRotation', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:startIpRotation', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'UpdateCluster' => [ - 'method' => 'put', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'put', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'UpdateMaster' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:updateMaster', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/master', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'UpdateNodePool' => [ - 'method' => 'put', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/update', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'node_pool_id' => [ - 'getters' => [ - 'getNodePoolId', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Container/v1/tests/Unit/V1/ClusterManagerClientTest.php b/owl-bot-staging/Container/v1/tests/Unit/V1/ClusterManagerClientTest.php deleted file mode 100644 index c469859d1ed1..000000000000 --- a/owl-bot-staging/Container/v1/tests/Unit/V1/ClusterManagerClientTest.php +++ /dev/null @@ -1,2421 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return ClusterManagerClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ClusterManagerClient($options); - } - - /** @test */ - public function cancelOperationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - $gapicClient->cancelOperation(); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/CancelOperation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function cancelOperationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->cancelOperation(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function completeIPRotationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - $response = $gapicClient->completeIPRotation(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/CompleteIPRotation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function completeIPRotationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->completeIPRotation(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function completeNodePoolUpgradeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - $gapicClient->completeNodePoolUpgrade(); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/CompleteNodePoolUpgrade', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function completeNodePoolUpgradeExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->completeNodePoolUpgrade(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createClusterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $cluster = new Cluster(); - $response = $gapicClient->createCluster($cluster); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/CreateCluster', $actualFuncCall); - $actualValue = $actualRequestObject->getCluster(); - $this->assertProtobufEquals($cluster, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createClusterExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $cluster = new Cluster(); - try { - $gapicClient->createCluster($cluster); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createNodePoolTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $nodePool = new NodePool(); - $response = $gapicClient->createNodePool($nodePool); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/CreateNodePool', $actualFuncCall); - $actualValue = $actualRequestObject->getNodePool(); - $this->assertProtobufEquals($nodePool, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createNodePoolExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $nodePool = new NodePool(); - try { - $gapicClient->createNodePool($nodePool); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteClusterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - $response = $gapicClient->deleteCluster(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/DeleteCluster', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteClusterExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->deleteCluster(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteNodePoolTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - $response = $gapicClient->deleteNodePool(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/DeleteNodePool', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteNodePoolExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->deleteNodePool(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getClusterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $initialNodeCount = 1682564205; - $loggingService = 'loggingService-1700501035'; - $monitoringService = 'monitoringService1469270462'; - $network = 'network1843485230'; - $clusterIpv4Cidr = 'clusterIpv4Cidr-141875831'; - $subnetwork = 'subnetwork-1302785042'; - $enableKubernetesAlpha = false; - $labelFingerprint = 'labelFingerprint714995737'; - $selfLink = 'selfLink-1691268851'; - $zone2 = 'zone2-696322977'; - $endpoint = 'endpoint1741102485'; - $initialClusterVersion = 'initialClusterVersion-276373352'; - $currentMasterVersion = 'currentMasterVersion-920953983'; - $currentNodeVersion = 'currentNodeVersion-407476063'; - $createTime = 'createTime-493574096'; - $statusMessage = 'statusMessage-239442758'; - $nodeIpv4CidrSize = 1181176815; - $servicesIpv4Cidr = 'servicesIpv4Cidr1966438125'; - $currentNodeCount = 178977560; - $expireTime = 'expireTime-96179731'; - $location = 'location1901043637'; - $enableTpu = false; - $tpuIpv4CidrBlock = 'tpuIpv4CidrBlock1137906646'; - $id = 'id3355'; - $etag = 'etag3123477'; - $expectedResponse = new Cluster(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $expectedResponse->setInitialNodeCount($initialNodeCount); - $expectedResponse->setLoggingService($loggingService); - $expectedResponse->setMonitoringService($monitoringService); - $expectedResponse->setNetwork($network); - $expectedResponse->setClusterIpv4Cidr($clusterIpv4Cidr); - $expectedResponse->setSubnetwork($subnetwork); - $expectedResponse->setEnableKubernetesAlpha($enableKubernetesAlpha); - $expectedResponse->setLabelFingerprint($labelFingerprint); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setZone($zone2); - $expectedResponse->setEndpoint($endpoint); - $expectedResponse->setInitialClusterVersion($initialClusterVersion); - $expectedResponse->setCurrentMasterVersion($currentMasterVersion); - $expectedResponse->setCurrentNodeVersion($currentNodeVersion); - $expectedResponse->setCreateTime($createTime); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setNodeIpv4CidrSize($nodeIpv4CidrSize); - $expectedResponse->setServicesIpv4Cidr($servicesIpv4Cidr); - $expectedResponse->setCurrentNodeCount($currentNodeCount); - $expectedResponse->setExpireTime($expireTime); - $expectedResponse->setLocation($location); - $expectedResponse->setEnableTpu($enableTpu); - $expectedResponse->setTpuIpv4CidrBlock($tpuIpv4CidrBlock); - $expectedResponse->setId($id); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - $response = $gapicClient->getCluster(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/GetCluster', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getClusterExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->getCluster(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getJSONWebKeysTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GetJSONWebKeysResponse(); - $transport->addResponse($expectedResponse); - $response = $gapicClient->getJSONWebKeys(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/GetJSONWebKeys', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getJSONWebKeysExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->getJSONWebKeys(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getNodePoolTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $initialNodeCount = 1682564205; - $selfLink = 'selfLink-1691268851'; - $version = 'version351608024'; - $statusMessage = 'statusMessage-239442758'; - $podIpv4CidrSize = 1098768716; - $etag = 'etag3123477'; - $expectedResponse = new NodePool(); - $expectedResponse->setName($name2); - $expectedResponse->setInitialNodeCount($initialNodeCount); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setVersion($version); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setPodIpv4CidrSize($podIpv4CidrSize); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - $response = $gapicClient->getNodePool(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/GetNodePool', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getNodePoolExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->getNodePool(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getOperationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - $response = $gapicClient->getOperation(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/GetOperation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getOperationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->getOperation(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getServerConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $defaultClusterVersion = 'defaultClusterVersion111003029'; - $defaultImageType = 'defaultImageType-918225828'; - $expectedResponse = new ServerConfig(); - $expectedResponse->setDefaultClusterVersion($defaultClusterVersion); - $expectedResponse->setDefaultImageType($defaultImageType); - $transport->addResponse($expectedResponse); - $response = $gapicClient->getServerConfig(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/GetServerConfig', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getServerConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->getServerConfig(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listClustersTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ListClustersResponse(); - $transport->addResponse($expectedResponse); - $response = $gapicClient->listClusters(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/ListClusters', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listClustersExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->listClusters(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listNodePoolsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ListNodePoolsResponse(); - $transport->addResponse($expectedResponse); - $response = $gapicClient->listNodePools(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/ListNodePools', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listNodePoolsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->listNodePools(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listOperationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ListOperationsResponse(); - $transport->addResponse($expectedResponse); - $response = $gapicClient->listOperations(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/ListOperations', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listOperationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->listOperations(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listUsableSubnetworksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $subnetworksElement = new UsableSubnetwork(); - $subnetworks = [ - $subnetworksElement, - ]; - $expectedResponse = new ListUsableSubnetworksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setSubnetworks($subnetworks); - $transport->addResponse($expectedResponse); - $response = $gapicClient->listUsableSubnetworks(); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getSubnetworks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/ListUsableSubnetworks', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listUsableSubnetworksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->listUsableSubnetworks(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function rollbackNodePoolUpgradeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - $response = $gapicClient->rollbackNodePoolUpgrade(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/RollbackNodePoolUpgrade', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function rollbackNodePoolUpgradeExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->rollbackNodePoolUpgrade(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setAddonsConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $addonsConfig = new AddonsConfig(); - $response = $gapicClient->setAddonsConfig($addonsConfig); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetAddonsConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getAddonsConfig(); - $this->assertProtobufEquals($addonsConfig, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setAddonsConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $addonsConfig = new AddonsConfig(); - try { - $gapicClient->setAddonsConfig($addonsConfig); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setLabelsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $resourceLabelsValue = 'resourceLabelsValue-1244473404'; - $resourceLabels = [ - 'resourceLabelsKey' => $resourceLabelsValue, - ]; - $labelFingerprint = 'labelFingerprint714995737'; - $response = $gapicClient->setLabels($resourceLabels, $labelFingerprint); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetLabels', $actualFuncCall); - $actualValue = $actualRequestObject->getResourceLabels(); - $this->assertProtobufEquals($resourceLabels, $actualValue); - $actualValue = $actualRequestObject->getLabelFingerprint(); - $this->assertProtobufEquals($labelFingerprint, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setLabelsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $resourceLabelsValue = 'resourceLabelsValue-1244473404'; - $resourceLabels = [ - 'resourceLabelsKey' => $resourceLabelsValue, - ]; - $labelFingerprint = 'labelFingerprint714995737'; - try { - $gapicClient->setLabels($resourceLabels, $labelFingerprint); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setLegacyAbacTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $enabled = false; - $response = $gapicClient->setLegacyAbac($enabled); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetLegacyAbac', $actualFuncCall); - $actualValue = $actualRequestObject->getEnabled(); - $this->assertProtobufEquals($enabled, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setLegacyAbacExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $enabled = false; - try { - $gapicClient->setLegacyAbac($enabled); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setLocationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $locations = []; - $response = $gapicClient->setLocations($locations); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetLocations', $actualFuncCall); - $actualValue = $actualRequestObject->getLocations(); - $this->assertProtobufEquals($locations, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setLocationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $locations = []; - try { - $gapicClient->setLocations($locations); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setLoggingServiceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $loggingService = 'loggingService-1700501035'; - $response = $gapicClient->setLoggingService($loggingService); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetLoggingService', $actualFuncCall); - $actualValue = $actualRequestObject->getLoggingService(); - $this->assertProtobufEquals($loggingService, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setLoggingServiceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $loggingService = 'loggingService-1700501035'; - try { - $gapicClient->setLoggingService($loggingService); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setMaintenancePolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $projectId = 'projectId-1969970175'; - $zone = 'zone3744684'; - $clusterId = 'clusterId240280960'; - $maintenancePolicy = new MaintenancePolicy(); - $response = $gapicClient->setMaintenancePolicy($projectId, $zone, $clusterId, $maintenancePolicy); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetMaintenancePolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getProjectId(); - $this->assertProtobufEquals($projectId, $actualValue); - $actualValue = $actualRequestObject->getZone(); - $this->assertProtobufEquals($zone, $actualValue); - $actualValue = $actualRequestObject->getClusterId(); - $this->assertProtobufEquals($clusterId, $actualValue); - $actualValue = $actualRequestObject->getMaintenancePolicy(); - $this->assertProtobufEquals($maintenancePolicy, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setMaintenancePolicyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $projectId = 'projectId-1969970175'; - $zone = 'zone3744684'; - $clusterId = 'clusterId240280960'; - $maintenancePolicy = new MaintenancePolicy(); - try { - $gapicClient->setMaintenancePolicy($projectId, $zone, $clusterId, $maintenancePolicy); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setMasterAuthTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $action = Action::UNKNOWN; - $update = new MasterAuth(); - $response = $gapicClient->setMasterAuth($action, $update); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetMasterAuth', $actualFuncCall); - $actualValue = $actualRequestObject->getAction(); - $this->assertProtobufEquals($action, $actualValue); - $actualValue = $actualRequestObject->getUpdate(); - $this->assertProtobufEquals($update, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setMasterAuthExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $action = Action::UNKNOWN; - $update = new MasterAuth(); - try { - $gapicClient->setMasterAuth($action, $update); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setMonitoringServiceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $monitoringService = 'monitoringService1469270462'; - $response = $gapicClient->setMonitoringService($monitoringService); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetMonitoringService', $actualFuncCall); - $actualValue = $actualRequestObject->getMonitoringService(); - $this->assertProtobufEquals($monitoringService, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setMonitoringServiceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $monitoringService = 'monitoringService1469270462'; - try { - $gapicClient->setMonitoringService($monitoringService); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setNetworkPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $networkPolicy = new NetworkPolicy(); - $response = $gapicClient->setNetworkPolicy($networkPolicy); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetNetworkPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getNetworkPolicy(); - $this->assertProtobufEquals($networkPolicy, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setNetworkPolicyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $networkPolicy = new NetworkPolicy(); - try { - $gapicClient->setNetworkPolicy($networkPolicy); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setNodePoolAutoscalingTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $autoscaling = new NodePoolAutoscaling(); - $response = $gapicClient->setNodePoolAutoscaling($autoscaling); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetNodePoolAutoscaling', $actualFuncCall); - $actualValue = $actualRequestObject->getAutoscaling(); - $this->assertProtobufEquals($autoscaling, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setNodePoolAutoscalingExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $autoscaling = new NodePoolAutoscaling(); - try { - $gapicClient->setNodePoolAutoscaling($autoscaling); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setNodePoolManagementTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $management = new NodeManagement(); - $response = $gapicClient->setNodePoolManagement($management); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetNodePoolManagement', $actualFuncCall); - $actualValue = $actualRequestObject->getManagement(); - $this->assertProtobufEquals($management, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setNodePoolManagementExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $management = new NodeManagement(); - try { - $gapicClient->setNodePoolManagement($management); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setNodePoolSizeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $nodeCount = 1539922066; - $response = $gapicClient->setNodePoolSize($nodeCount); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetNodePoolSize', $actualFuncCall); - $actualValue = $actualRequestObject->getNodeCount(); - $this->assertProtobufEquals($nodeCount, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setNodePoolSizeExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $nodeCount = 1539922066; - try { - $gapicClient->setNodePoolSize($nodeCount); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function startIPRotationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - $response = $gapicClient->startIPRotation(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/StartIPRotation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function startIPRotationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->startIPRotation(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateClusterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $update = new ClusterUpdate(); - $response = $gapicClient->updateCluster($update); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/UpdateCluster', $actualFuncCall); - $actualValue = $actualRequestObject->getUpdate(); - $this->assertProtobufEquals($update, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateClusterExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $update = new ClusterUpdate(); - try { - $gapicClient->updateCluster($update); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateMasterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $masterVersion = 'masterVersion-2139460613'; - $response = $gapicClient->updateMaster($masterVersion); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/UpdateMaster', $actualFuncCall); - $actualValue = $actualRequestObject->getMasterVersion(); - $this->assertProtobufEquals($masterVersion, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateMasterExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $masterVersion = 'masterVersion-2139460613'; - try { - $gapicClient->updateMaster($masterVersion); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateNodePoolTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $nodeVersion = 'nodeVersion1790136219'; - $imageType = 'imageType-1442758754'; - $response = $gapicClient->updateNodePool($nodeVersion, $imageType); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/UpdateNodePool', $actualFuncCall); - $actualValue = $actualRequestObject->getNodeVersion(); - $this->assertProtobufEquals($nodeVersion, $actualValue); - $actualValue = $actualRequestObject->getImageType(); - $this->assertProtobufEquals($imageType, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateNodePoolExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $nodeVersion = 'nodeVersion1790136219'; - $imageType = 'imageType-1442758754'; - try { - $gapicClient->updateNodePool($nodeVersion, $imageType); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } -}