Skip to content

Commit

Permalink
feat: [google-cloud-container] A new message HugepagesConfig is add…
Browse files Browse the repository at this point in the history
…ed (#12785)

BEGIN_COMMIT_OVERRIDE
feat: A new message `HugepagesConfig` is added
feat: A new field `hugepages` is added to message
`.google.container.v1.LinuxNodeConfig`
feat: A new field `containerd_config` is added to message
`.google.container.v1.NodeConfig`
feat: A new field `enable_nested_virtualization` is added to message
`.google.container.v1.AdvancedMachineFeatures`
feat: A new message `ContainerdConfig` is added
feat: A new field `satisfies_pzs` is added to message
`.google.container.v1.Cluster`
feat: A new field `satisfies_pzi` is added to message
`.google.container.v1.Cluster`
feat: A new value `ENTERPRISE` is added to enum `Mode`
feat: A new field `node_kubelet_config` is added to message
`.google.container.v1.NodePoolAutoConfig`
feat: A new field `containerd_config` is added to message
`.google.container.v1.NodeConfigDefaults`
feat: A new field `node_kubelet_config` is added to message
`.google.container.v1.NodeConfigDefaults`
feat: A new field `desired_containerd_config` is added to message
`.google.container.v1.ClusterUpdate`
feat: A new field `desired_node_kubelet_config` is added to message
`.google.container.v1.ClusterUpdate`
feat: A new field `desired_node_pool_auto_config_kubelet_config` is
added to message `.google.container.v1.ClusterUpdate`
feat: A new field `accelerators` is added to message
`.google.container.v1.UpdateNodePoolRequest`
feat: A new field `containerd_config` is added to message
`.google.container.v1.UpdateNodePoolRequest`
feat: A new value `MPS` is added to enum `GPUSharingStrategy`
feat: A new field `additive_vpc_scope_dns_domain` is added to message
`.google.container.v1.DNSConfig`
feat: A new value `CADVISOR` is added to enum `Component`
feat: A new value `KUBELET` is added to enum `Component`
docs: A comment for field `desired_private_cluster_config` in message
`.google.container.v1.ClusterUpdate` is changed
docs: A comment for field `in_transit_encryption_config` in message
`.google.container.v1.NetworkConfig` is changed
END_COMMIT_OVERRIDE

- [ ] Regenerate this pull request now.

feat: A new field `hugepages` is added to message
`.google.container.v1.LinuxNodeConfig`
feat: A new field `containerd_config` is added to message
`.google.container.v1.NodeConfig`
feat: A new field `enable_nested_virtualization` is added to message
`.google.container.v1.AdvancedMachineFeatures`
feat: A new message `ContainerdConfig` is added
feat: A new field `satisfies_pzs` is added to message
`.google.container.v1.Cluster`
feat: A new field `satisfies_pzi` is added to message
`.google.container.v1.Cluster`
feat: A new value `ENTERPRISE` is added to enum `Mode`
feat: A new field `node_kubelet_config` is added to message
`.google.container.v1.NodePoolAutoConfig`
feat: A new field `containerd_config` is added to message
`.google.container.v1.NodeConfigDefaults`
feat: A new field `node_kubelet_config` is added to message
`.google.container.v1.NodeConfigDefaults`
feat: A new field `desired_containerd_config` is added to message
`.google.container.v1.ClusterUpdate`
feat: A new field `desired_node_kubelet_config` is added to message
`.google.container.v1.ClusterUpdate`
feat: A new field `desired_node_pool_auto_config_kubelet_config` is
added to message `.google.container.v1.ClusterUpdate`
feat: A new field `accelerators` is added to message
`.google.container.v1.UpdateNodePoolRequest`
feat: A new field `containerd_config` is added to message
`.google.container.v1.UpdateNodePoolRequest`
feat: A new value `MPS` is added to enum `GPUSharingStrategy`
feat: A new field `additive_vpc_scope_dns_domain` is added to message
`.google.container.v1.DNSConfig`
feat: A new value `CADVISOR` is added to enum `Component`
feat: A new value `KUBELET` is added to enum `Component`
docs: A comment for field `desired_private_cluster_config` in message
`.google.container.v1.ClusterUpdate` is changed
docs: A comment for field `in_transit_encryption_config` in message
`.google.container.v1.NetworkConfig` is changed

PiperOrigin-RevId: 641308642

Source-Link:
googleapis/googleapis@9516e70

Source-Link:
googleapis/googleapis-gen@83800e1
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbnRhaW5lci8uT3dsQm90LnlhbWwiLCJoIjoiODM4MDBlMWZmZmQ4Nzc0MjU5ZWE5MWI5Mzc5ZjllNWEzMTZkMjNlNCJ9

BEGIN_NESTED_COMMIT
feat: [google-cloud-container] Enable REST transport for
google/container/v1
PiperOrigin-RevId: 641268437

Source-Link:
googleapis/googleapis@5ccf43c

Source-Link:
googleapis/googleapis-gen@652eedb
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbnRhaW5lci8uT3dsQm90LnlhbWwiLCJoIjoiNjUyZWVkYmM0ODJkNmM1MDkwNmFhOWQ1ZTgyMDhlOGRkYmFmYmI1MSJ9
END_NESTED_COMMIT
BEGIN_NESTED_COMMIT
feat: [google-cloud-container] A new method_signature `parent` is added
to method `ListOperations` in service `ClusterManager`
PiperOrigin-RevId: 641218734

Source-Link:
googleapis/googleapis@067ac21

Source-Link:
googleapis/googleapis-gen@2b38d68
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbnRhaW5lci8uT3dsQm90LnlhbWwiLCJoIjoiMmIzOGQ2OGNmZDc1NzM1ZGY2OWQ2MDRkMDg0ZDk2OTFkMjBmMjAzYiJ9
END_NESTED_COMMIT

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: ohmayr <[email protected]>
  • Loading branch information
3 people authored Jun 10, 2024
1 parent 01e36a7 commit 0d738fa
Show file tree
Hide file tree
Showing 12 changed files with 14,715 additions and 124 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
CompleteNodePoolUpgradeRequest,
ConfidentialNodes,
ConfigConnectorConfig,
ContainerdConfig,
CostManagementConfig,
CreateClusterRequest,
CreateNodePoolRequest,
Expand Down Expand Up @@ -225,6 +226,7 @@
"CompleteNodePoolUpgradeRequest",
"ConfidentialNodes",
"ConfigConnectorConfig",
"ContainerdConfig",
"CostManagementConfig",
"CreateClusterRequest",
"CreateNodePoolRequest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
CompleteNodePoolUpgradeRequest,
ConfidentialNodes,
ConfigConnectorConfig,
ContainerdConfig,
CostManagementConfig,
CreateClusterRequest,
CreateNodePoolRequest,
Expand Down Expand Up @@ -220,6 +221,7 @@
"CompleteNodePoolUpgradeRequest",
"ConfidentialNodes",
"ConfigConnectorConfig",
"ContainerdConfig",
"CostManagementConfig",
"CreateClusterRequest",
"CreateNodePoolRequest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,181 @@
]
}
}
},
"rest": {
"libraryClient": "ClusterManagerClient",
"rpcs": {
"CancelOperation": {
"methods": [
"cancel_operation"
]
},
"CheckAutopilotCompatibility": {
"methods": [
"check_autopilot_compatibility"
]
},
"CompleteIPRotation": {
"methods": [
"complete_ip_rotation"
]
},
"CompleteNodePoolUpgrade": {
"methods": [
"complete_node_pool_upgrade"
]
},
"CreateCluster": {
"methods": [
"create_cluster"
]
},
"CreateNodePool": {
"methods": [
"create_node_pool"
]
},
"DeleteCluster": {
"methods": [
"delete_cluster"
]
},
"DeleteNodePool": {
"methods": [
"delete_node_pool"
]
},
"GetCluster": {
"methods": [
"get_cluster"
]
},
"GetJSONWebKeys": {
"methods": [
"get_json_web_keys"
]
},
"GetNodePool": {
"methods": [
"get_node_pool"
]
},
"GetOperation": {
"methods": [
"get_operation"
]
},
"GetServerConfig": {
"methods": [
"get_server_config"
]
},
"ListClusters": {
"methods": [
"list_clusters"
]
},
"ListNodePools": {
"methods": [
"list_node_pools"
]
},
"ListOperations": {
"methods": [
"list_operations"
]
},
"ListUsableSubnetworks": {
"methods": [
"list_usable_subnetworks"
]
},
"RollbackNodePoolUpgrade": {
"methods": [
"rollback_node_pool_upgrade"
]
},
"SetAddonsConfig": {
"methods": [
"set_addons_config"
]
},
"SetLabels": {
"methods": [
"set_labels"
]
},
"SetLegacyAbac": {
"methods": [
"set_legacy_abac"
]
},
"SetLocations": {
"methods": [
"set_locations"
]
},
"SetLoggingService": {
"methods": [
"set_logging_service"
]
},
"SetMaintenancePolicy": {
"methods": [
"set_maintenance_policy"
]
},
"SetMasterAuth": {
"methods": [
"set_master_auth"
]
},
"SetMonitoringService": {
"methods": [
"set_monitoring_service"
]
},
"SetNetworkPolicy": {
"methods": [
"set_network_policy"
]
},
"SetNodePoolAutoscaling": {
"methods": [
"set_node_pool_autoscaling"
]
},
"SetNodePoolManagement": {
"methods": [
"set_node_pool_management"
]
},
"SetNodePoolSize": {
"methods": [
"set_node_pool_size"
]
},
"StartIPRotation": {
"methods": [
"start_ip_rotation"
]
},
"UpdateCluster": {
"methods": [
"update_cluster"
]
},
"UpdateMaster": {
"methods": [
"update_master"
]
},
"UpdateNodePool": {
"methods": [
"update_node_pool"
]
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2109,6 +2109,7 @@ async def list_operations(
*,
project_id: Optional[str] = None,
zone: Optional[str] = None,
parent: Optional[str] = None,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
metadata: Sequence[Tuple[str, str]] = (),
Expand Down Expand Up @@ -2165,6 +2166,15 @@ async def sample_list_operations():
This corresponds to the ``zone`` field
on the ``request`` instance; if ``request`` is provided, this
should not be set.
parent (:class:`str`):
The parent (project and location) where the operations
will be listed. Specified in the format
``projects/*/locations/*``. Location "-" matches all
zones and all regions.
This corresponds to the ``parent`` field
on the ``request`` instance; if ``request`` is provided, this
should not be set.
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand All @@ -2180,7 +2190,7 @@ async def sample_list_operations():
# Create or coerce a protobuf request object.
# - Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([project_id, zone])
has_flattened_params = any([project_id, zone, parent])
if request is not None and has_flattened_params:
raise ValueError(
"If the `request` argument is set, then none of "
Expand All @@ -2198,6 +2208,8 @@ async def sample_list_operations():
request.project_id = project_id
if zone is not None:
request.zone = zone
if parent is not None:
request.parent = parent

# Wrap the RPC method; this adds retry and timeout information,
# and friendly error handling.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
from .transports.base import DEFAULT_CLIENT_INFO, ClusterManagerTransport
from .transports.grpc import ClusterManagerGrpcTransport
from .transports.grpc_asyncio import ClusterManagerGrpcAsyncIOTransport
from .transports.rest import ClusterManagerRestTransport


class ClusterManagerClientMeta(type):
Expand All @@ -71,6 +72,7 @@ class ClusterManagerClientMeta(type):
) # type: Dict[str, Type[ClusterManagerTransport]]
_transport_registry["grpc"] = ClusterManagerGrpcTransport
_transport_registry["grpc_asyncio"] = ClusterManagerGrpcAsyncIOTransport
_transport_registry["rest"] = ClusterManagerRestTransport

def get_transport_class(
cls,
Expand Down Expand Up @@ -2487,6 +2489,7 @@ def list_operations(
*,
project_id: Optional[str] = None,
zone: Optional[str] = None,
parent: Optional[str] = None,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
metadata: Sequence[Tuple[str, str]] = (),
Expand Down Expand Up @@ -2543,6 +2546,15 @@ def sample_list_operations():
This corresponds to the ``zone`` field
on the ``request`` instance; if ``request`` is provided, this
should not be set.
parent (str):
The parent (project and location) where the operations
will be listed. Specified in the format
``projects/*/locations/*``. Location "-" matches all
zones and all regions.
This corresponds to the ``parent`` field
on the ``request`` instance; if ``request`` is provided, this
should not be set.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand All @@ -2558,7 +2570,7 @@ def sample_list_operations():
# Create or coerce a protobuf request object.
# - Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([project_id, zone])
has_flattened_params = any([project_id, zone, parent])
if request is not None and has_flattened_params:
raise ValueError(
"If the `request` argument is set, then none of "
Expand All @@ -2575,6 +2587,8 @@ def sample_list_operations():
request.project_id = project_id
if zone is not None:
request.zone = zone
if parent is not None:
request.parent = parent

# Wrap the RPC method; this adds retry and timeout information,
# and friendly error handling.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,18 @@
from .base import ClusterManagerTransport
from .grpc import ClusterManagerGrpcTransport
from .grpc_asyncio import ClusterManagerGrpcAsyncIOTransport
from .rest import ClusterManagerRestInterceptor, ClusterManagerRestTransport

# Compile a registry of transports.
_transport_registry = OrderedDict() # type: Dict[str, Type[ClusterManagerTransport]]
_transport_registry["grpc"] = ClusterManagerGrpcTransport
_transport_registry["grpc_asyncio"] = ClusterManagerGrpcAsyncIOTransport
_transport_registry["rest"] = ClusterManagerRestTransport

__all__ = (
"ClusterManagerTransport",
"ClusterManagerGrpcTransport",
"ClusterManagerGrpcAsyncIOTransport",
"ClusterManagerRestTransport",
"ClusterManagerRestInterceptor",
)
Loading

0 comments on commit 0d738fa

Please sign in to comment.