generated/google-apis-dataproc_v1beta2/lib/google/apis/dataproc_v1beta2/service.rb
def create_project_region_cluster(project_id, region, cluster_object = nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1beta2/projects/{projectId}/regions/{region}/clusters', options)
          command.request_representation = Google::Apis::DataprocV1beta2::Cluster::Representation
          command.request_object = cluster_object
          command.response_representation = Google::Apis::DataprocV1beta2::Operation::Representation
          command.response_class = Google::Apis::DataprocV1beta2::Operation
          command.params['projectId'] = project_id unless project_id.nil?
          command.params['region'] = region unless region.nil?
          command.query['requestId'] = request_id unless request_id.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
# Creates a cluster in a project. The returned Operation.metadata will be
# ClusterOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/
# google.cloud.dataproc.v1beta2#clusteroperationmetadata).
# @param [String] project_id
#   Required. The ID of the Google Cloud Platform project that the cluster belongs
#   to.
# @param [String] region
#   Required. The Dataproc region in which to handle the request.
# @param [Google::Apis::DataprocV1beta2::Cluster] cluster_object
# @param [String] request_id
#   Optional. A unique id used to identify the request. If the server receives two
#   CreateClusterRequest (https://cloud.google.com/dataproc/docs/reference/rpc/
#   google.cloud.dataproc.v1beta2#google.cloud.dataproc.v1beta2.
#   CreateClusterRequest)s with the same id, then the second request will be
#   ignored and the first google.longrunning.Operation created and stored in the
#   backend is returned.It is recommended to always set this value to a UUID (
#   https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must
#   contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-
#   ). The maximum length is 40 characters.
# @param [String] fields
#   Selector specifying which fields to include in a partial response.
# @param [String] quota_user
#   Available to use for quota purposes for server-side applications. Can be any
#   arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
#   Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DataprocV1beta2::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1beta2::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
Creates a cluster in a project.
Creates a cluster in a project .
def create_project_region_cluster(project_id, region, cluster_object = nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1beta2/projects/{projectId}/regions/{region}/clusters', options)
          command.request_representation = Google::Apis::DataprocV1beta2::Cluster::Representation
          command.request_object = cluster_object
          command.response_representation = Google::Apis::DataprocV1beta2::Operation::Representation
          command.response_class = Google::Apis::DataprocV1beta2::Operation
          command.params['projectId'] = project_id unless project_id.nil?
          command.params['region'] = region unless region.nil?
          command.query['requestId'] = request_id unless request_id.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
def create_project_region_cluster ( project_id , region , cluster_object = nil , request_id : nil , fields : nil , quota_user : nil , options : nil , & block ) command = make_simple_command ( :post , 'v1beta2/projects/{projectId}/regions/{region}/clusters' , options ) command . request_representation = Google :: Apis :: DataprocV1beta2 :: Cluster :: Representation command . request_object = cluster_object command . response_representation = Google :: Apis :: DataprocV1beta2 :: Operation :: Representation command . response_class = Google :: Apis :: DataprocV1beta2 :: Operation command . params [ 'projectId' ] = project_id unless project_id . nil? command . params [ 'region' ] = region unless region . nil? command . query [ 'requestId' ] = request_id unless request_id . nil? command . query [ 'fields' ] = fields unless fields . nil? command . query [ 'quotaUser' ] = quota_user unless quota_user . nil? execute_or_queue_command ( command , & block ) end
Creates a cluster in a project.
Creates a cluster in a project .
None
Google::Apis::DataprocV1beta2::Operation
[Google::Apis::ServerError] An error occurred on the server and the request can be retried
[ Google :: Apis :: ServerError ] An error occurred on the server and the request can be retried
[Google::Apis::ClientError] The request is invalid and should not be retried without modification
[ Google :: Apis :: ClientError ] The request is invalid and should not be retried without modification
[Google::Apis::AuthorizationError] Authorization is required
[ Google :: Apis :: AuthorizationError ] Authorization is required
project_id
region
cluster_object
request_id
fields
quota_user
options
block
options Request-specific options
options Request - specific options
]
Result & error if block supplied
Result & error if block supplied
result
parsed result object
parsed result object
err
error object if request failed
error object if request failed