Module: Google::Cloud::GkeMultiCloud::V1::AwsClusters::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/gke_multi_cloud/v1/aws_clusters/paths.rb
Overview
Path helper methods for the AwsClusters API.
Instance Method Summary collapse
-
#aws_cluster_path(project:, location:, aws_cluster:) ⇒ ::String
Create a fully-qualified AwsCluster resource string.
-
#aws_node_pool_path(project:, location:, aws_cluster:, aws_node_pool:) ⇒ ::String
Create a fully-qualified AwsNodePool resource string.
-
#aws_server_config_path(project:, location:) ⇒ ::String
Create a fully-qualified AwsServerConfig resource string.
-
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
Instance Method Details
#aws_cluster_path(project:, location:, aws_cluster:) ⇒ ::String
Create a fully-qualified AwsCluster resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/awsClusters/{aws_cluster}
39 40 41 42 43 44 |
# File 'lib/google/cloud/gke_multi_cloud/v1/aws_clusters/paths.rb', line 39 def aws_cluster_path project:, location:, aws_cluster: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/awsClusters/#{aws_cluster}" end |
#aws_node_pool_path(project:, location:, aws_cluster:, aws_node_pool:) ⇒ ::String
Create a fully-qualified AwsNodePool resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/awsClusters/{aws_cluster}/awsNodePools/{aws_node_pool}
59 60 61 62 63 64 65 |
# File 'lib/google/cloud/gke_multi_cloud/v1/aws_clusters/paths.rb', line 59 def aws_node_pool_path project:, location:, aws_cluster:, aws_node_pool: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "aws_cluster cannot contain /" if aws_cluster.to_s.include? "/" "projects/#{project}/locations/#{location}/awsClusters/#{aws_cluster}/awsNodePools/#{aws_node_pool}" end |
#aws_server_config_path(project:, location:) ⇒ ::String
Create a fully-qualified AwsServerConfig resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/awsServerConfig
78 79 80 81 82 |
# File 'lib/google/cloud/gke_multi_cloud/v1/aws_clusters/paths.rb', line 78 def aws_server_config_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}/awsServerConfig" end |
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
The resource will be in the following format:
projects/{project}/locations/{location}
95 96 97 98 99 |
# File 'lib/google/cloud/gke_multi_cloud/v1/aws_clusters/paths.rb', line 95 def location_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}" end |