original_docstring: r"""Creates a bucket that can be used to store log
          entries. Once a bucket has been created, the region
          cannot be changed.
  
          Args:
              request (Union[google.cloud.logging_v2.types.CreateBucketRequest, dict]):
                  The request object. The parameters to `CreateBucket`.
              retry (google.api_core.retry.Retry): Designation of what errors, if any,
                  should be retried.
              timeout (float): The timeout for this request.
              metadata (Sequence[Tuple[str, str]]): Strings which should be
                  sent along with the request as metadata.
  
          Returns:
              google.cloud.logging_v2.types.LogBucket:
                  Describes a repository of logs.
          
docstring: r"""Creates a bucket that can be used to store log
  entries. Once a bucket has been created, the region
  cannot be changed.
docstring_tokens: r " " " Creates a bucket that can be used to store log entries . Once a bucket has been created the region cannot be changed .
code: async def create_bucket(self,
              request: Union[logging_config.CreateBucketRequest, dict] = None,
              *,
              retry: OptionalRetry = gapic_v1.method.DEFAULT,
              timeout: float = None,
              metadata: Sequence[Tuple[str, str]] = (),
              ) -> logging_config.LogBucket:
          r"""Creates a bucket that can be used to store log
          entries. Once a bucket has been created, the region
          cannot be changed.
  
          Args:
              request (Union[google.cloud.logging_v2.types.CreateBucketRequest, dict]):
                  The request object. The parameters to `CreateBucket`.
              retry (google.api_core.retry.Retry): Designation of what errors, if any,
                  should be retried.
              timeout (float): The timeout for this request.
              metadata (Sequence[Tuple[str, str]]): Strings which should be
                  sent along with the request as metadata.
  
          Returns:
              google.cloud.logging_v2.types.LogBucket:
                  Describes a repository of logs.
          """
          # Create or coerce a protobuf request object.
          request = logging_config.CreateBucketRequest(request)
  
          # Wrap the RPC method; this adds retry and timeout information,
          # and friendly error handling.
          rpc = gapic_v1.method_async.wrap_method(
              self._client._transport.create_bucket,
              default_timeout=None,
              client_info=DEFAULT_CLIENT_INFO,
          )
  
          # Certain fields should be provided within the metadata header;
          # add these here.
          metadata = tuple(metadata) + (
              gapic_v1.routing_header.to_grpc_metadata((
                  ("parent", request.parent),
              )),
          )
  
          # Send the request.
          response = await rpc(
              request,
              retry=retry,
              timeout=timeout,
              metadata=metadata,
          )
  
          # Done; return the response.
          return response
code_tokens: async def create_bucket ( self , request : Union [ logging_config . CreateBucketRequest , dict ] = None , * , retry : OptionalRetry = gapic_v1 . method . DEFAULT , timeout : float = None , metadata : Sequence [ Tuple [ str , str ] ] = ( ) , ) -> logging_config . LogBucket : request = logging_config . CreateBucketRequest ( request ) rpc = gapic_v1 . method_async . wrap_method ( self . _client . _transport . create_bucket , default_timeout = None , client_info = DEFAULT_CLIENT_INFO , ) metadata = tuple ( metadata ) + ( gapic_v1 . routing_header . to_grpc_metadata ( ( ( "parent" , request . parent ) , ) ) , ) response = await rpc ( request , retry = retry , timeout = timeout , metadata = metadata , ) return response
short_docstring: r"""Creates a bucket that can be used to store log
  entries.
short_docstring_tokens: r " " " Creates a bucket that can be used to store log entries .
comment: r"""Creates a bucket that can be used to store log
          entries. Once a bucket has been created, the region
          cannot be changed.
  
          Args:
              request (Union[google.cloud.logging_v2.types.CreateBucketRequest, dict]):
                  The request object. The parameters to `CreateBucket`.
              retry (google.api_core.retry.Retry): Designation of what errors, if any,
                  should be retried.
              timeout (float): The timeout for this request.
              metadata (Sequence[Tuple[str, str]]): Strings which should be
                  sent along with the request as metadata.
  
          Returns:
              google.cloud.logging_v2.types.LogBucket:
                  Describes a repository of logs.
          """$SEP$# Create or coerce a protobuf request object.$SEP$# Wrap the RPC method; this adds retry and timeout information,$SEP$# and friendly error handling.$SEP$# Certain fields should be provided within the metadata header;$SEP$# add these here.$SEP$# Send the request.$SEP$# Done; return the response.