View Source GoogleApi.ArtifactRegistry.V1beta1.Api.Projects (google_api_artifact_registry v0.21.0)

API calls for all endpoints tagged Projects.

Summary

Functions

Lists information about the supported locations for this service.

Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

Creates a repository. The returned Operation will finish once the repository has been created. Its response will be the created Repository.

Deletes a repository and all of its contents. The returned Operation will finish once the repository has been deleted. It will not have any Operation metadata and will return a google.protobuf.Empty response.

Deletes a package and all of its versions and tags. The returned operation will complete once the package has been deleted.

Deletes a version and all of its content. The returned operation will complete once the version has been deleted.

Functions

Link to this function

artifactregistry_projects_locations_get(connection, name, optional_params \\ [], opts \\ [])

View Source
@spec artifactregistry_projects_locations_get(
  Tesla.Env.client(),
  String.t(),
  keyword(),
  keyword()
) ::
  {:ok, GoogleApi.ArtifactRegistry.V1beta1.Model.Location.t()}
  | {:ok, Tesla.Env.t()}
  | {:ok, list()}
  | {:error, any()}

Gets information about a location.

Parameters

  • connection (type: GoogleApi.ArtifactRegistry.V1beta1.Connection.t) - Connection to server
  • name (type: String.t) - Resource name for the location.
  • optional_params (type: keyword()) - Optional parameters
    • :"$.xgafv" (type: String.t) - V1 error format.
    • :access_token (type: String.t) - OAuth access token.
    • :alt (type: String.t) - Data format for response.
    • :callback (type: String.t) - JSONP
    • :fields (type: String.t) - Selector specifying which fields to include in a partial response.
    • :key (type: String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • :oauth_token (type: String.t) - OAuth 2.0 token for the current user.
    • :prettyPrint (type: boolean()) - Returns response with indentations and line breaks.
    • :quotaUser (type: String.t) - 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.
    • :uploadType (type: String.t) - Legacy upload protocol for media (e.g. "media", "multipart").
    • :upload_protocol (type: String.t) - Upload protocol for media (e.g. "raw", "multipart").
  • opts (type: keyword()) - Call options

Returns

  • {:ok, %GoogleApi.ArtifactRegistry.V1beta1.Model.Location{}} on success
  • {:error, info} on failure
Link to this function

artifactregistry_projects_locations_list(connection, name, optional_params \\ [], opts \\ [])

View Source
@spec artifactregistry_projects_locations_list(
  Tesla.Env.client(),
  String.t(),
  keyword(),
  keyword()
) ::
  {:ok, GoogleApi.ArtifactRegistry.V1beta1.Model.ListLocationsResponse.t()}
  | {:ok, Tesla.Env.t()}
  | {:ok, list()}
  | {:error, any()}

Lists information about the supported locations for this service.

Parameters

  • connection (type: GoogleApi.ArtifactRegistry.V1beta1.Connection.t) - Connection to server
  • name (type: String.t) - The resource that owns the locations collection, if applicable.
  • optional_params (type: keyword()) - Optional parameters
    • :"$.xgafv" (type: String.t) - V1 error format.
    • :access_token (type: String.t) - OAuth access token.
    • :alt (type: String.t) - Data format for response.
    • :callback (type: String.t) - JSONP
    • :fields (type: String.t) - Selector specifying which fields to include in a partial response.
    • :key (type: String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • :oauth_token (type: String.t) - OAuth 2.0 token for the current user.
    • :prettyPrint (type: boolean()) - Returns response with indentations and line breaks.
    • :quotaUser (type: String.t) - 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.
    • :uploadType (type: String.t) - Legacy upload protocol for media (e.g. "media", "multipart").
    • :upload_protocol (type: String.t) - Upload protocol for media (e.g. "raw", "multipart").
    • :filter (type: String.t) - A filter to narrow down results to a preferred subset. The filtering language accepts strings like "displayName=tokyo", and is documented in more detail in AIP-160.
    • :pageSize (type: integer()) - The maximum number of results to return. If not set, the service selects a default.
    • :pageToken (type: String.t) - A page token received from the next_page_token field in the response. Send that page token to receive the subsequent page.
  • opts (type: keyword()) - Call options

Returns

  • {:ok, %GoogleApi.ArtifactRegistry.V1beta1.Model.ListLocationsResponse{}} on success
  • {:error, info} on failure
Link to this function

artifactregistry_projects_locations_operations_get(connection, name, optional_params \\ [], opts \\ [])

View Source
@spec artifactregistry_projects_locations_operations_get(
  Tesla.Env.client(),
  String.t(),
  keyword(),
  keyword()
) ::
  {:ok, GoogleApi.ArtifactRegistry.V1beta1.Model.Operation.t()}
  | {:ok, Tesla.Env.t()}
  | {:ok, list()}
  | {:error, any()}

Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

Parameters

  • connection (type: GoogleApi.ArtifactRegistry.V1beta1.Connection.t) - Connection to server
  • name (type: String.t) - The name of the operation resource.
  • optional_params (type: keyword()) - Optional parameters
    • :"$.xgafv" (type: String.t) - V1 error format.
    • :access_token (type: String.t) - OAuth access token.
    • :alt (type: String.t) - Data format for response.
    • :callback (type: String.t) - JSONP
    • :fields (type: String.t) - Selector specifying which fields to include in a partial response.
    • :key (type: String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • :oauth_token (type: String.t) - OAuth 2.0 token for the current user.
    • :prettyPrint (type: boolean()) - Returns response with indentations and line breaks.
    • :quotaUser (type: String.t) - 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.
    • :uploadType (type: String.t) - Legacy upload protocol for media (e.g. "media", "multipart").
    • :upload_protocol (type: String.t) - Upload protocol for media (e.g. "raw", "multipart").
  • opts (type: keyword()) - Call options

Returns

  • {:ok, %GoogleApi.ArtifactRegistry.V1beta1.Model.Operation{}} on success
  • {:error, info} on failure
Link to this function

artifactregistry_projects_locations_repositories_create(connection, parent, optional_params \\ [], opts \\ [])

View Source
@spec artifactregistry_projects_locations_repositories_create(
  Tesla.Env.client(),
  String.t(),
  keyword(),
  keyword()
) ::
  {:ok, GoogleApi.ArtifactRegistry.V1beta1.Model.Operation.t()}
  | {:ok, Tesla.Env.t()}
  | {:ok, list()}
  | {:error, any()}

Creates a repository. The returned Operation will finish once the repository has been created. Its response will be the created Repository.

Parameters

  • connection (type: GoogleApi.ArtifactRegistry.V1beta1.Connection.t) - Connection to server
  • parent (type: String.t) - Required. The name of the parent resource where the repository will be created.
  • optional_params (type: keyword()) - Optional parameters
    • :"$.xgafv" (type: String.t) - V1 error format.
    • :access_token (type: String.t) - OAuth access token.
    • :alt (type: String.t) - Data format for response.
    • :callback (type: String.t) - JSONP
    • :fields (type: String.t) - Selector specifying which fields to include in a partial response.
    • :key (type: String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • :oauth_token (type: String.t) - OAuth 2.0 token for the current user.
    • :prettyPrint (type: boolean()) - Returns response with indentations and line breaks.
    • :quotaUser (type: String.t) - 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.
    • :uploadType (type: String.t) - Legacy upload protocol for media (e.g. "media", "multipart").
    • :upload_protocol (type: String.t) - Upload protocol for media (e.g. "raw", "multipart").
    • :repositoryId (type: String.t) - Required. The repository id to use for this repository.
    • :body (type: GoogleApi.ArtifactRegistry.V1beta1.Model.Repository.t) -
  • opts (type: keyword()) - Call options

Returns

  • {:ok, %GoogleApi.ArtifactRegistry.V1beta1.Model.Operation{}} on success
  • {:error, info} on failure
Link to this function

artifactregistry_projects_locations_repositories_delete(connection, name, optional_params \\ [], opts \\ [])

View Source
@spec artifactregistry_projects_locations_repositories_delete(
  Tesla.Env.client(),
  String.t(),
  keyword(),
  keyword()
) ::
  {:ok, GoogleApi.ArtifactRegistry.V1beta1.Model.Operation.t()}
  | {:ok, Tesla.Env.t()}
  | {:ok, list()}
  | {:error, any()}

Deletes a repository and all of its contents. The returned Operation will finish once the repository has been deleted. It will not have any Operation metadata and will return a google.protobuf.Empty response.

Parameters

  • connection (type: GoogleApi.ArtifactRegistry.V1beta1.Connection.t) - Connection to server
  • name (type: String.t) - Required. The name of the repository to delete.
  • optional_params (type: keyword()) - Optional parameters
    • :"$.xgafv" (type: String.t) - V1 error format.
    • :access_token (type: String.t) - OAuth access token.
    • :alt (type: String.t) - Data format for response.
    • :callback (type: String.t) - JSONP
    • :fields (type: String.t) - Selector specifying which fields to include in a partial response.
    • :key (type: String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • :oauth_token (type: String.t) - OAuth 2.0 token for the current user.
    • :prettyPrint (type: boolean()) - Returns response with indentations and line breaks.
    • :quotaUser (type: String.t) - 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.
    • :uploadType (type: String.t) - Legacy upload protocol for media (e.g. "media", "multipart").
    • :upload_protocol (type: String.t) - Upload protocol for media (e.g. "raw", "multipart").
  • opts (type: keyword()) - Call options

Returns

  • {:ok, %GoogleApi.ArtifactRegistry.V1beta1.Model.Operation{}} on success
  • {:error, info} on failure
Link to this function

artifactregistry_projects_locations_repositories_files_get(connection, name, optional_params \\ [], opts \\ [])

View Source
@spec artifactregistry_projects_locations_repositories_files_get(
  Tesla.Env.client(),
  String.t(),
  keyword(),
  keyword()
) ::
  {:ok, GoogleApi.ArtifactRegistry.V1beta1.Model.File.t()}
  | {:ok, Tesla.Env.t()}
  | {:ok, list()}
  | {:error, any()}

Gets a file.

Parameters

  • connection (type: GoogleApi.ArtifactRegistry.V1beta1.Connection.t) - Connection to server
  • name (type: String.t) - Required. The name of the file to retrieve.
  • optional_params (type: keyword()) - Optional parameters
    • :"$.xgafv" (type: String.t) - V1 error format.
    • :access_token (type: String.t) - OAuth access token.
    • :alt (type: String.t) - Data format for response.
    • :callback (type: String.t) - JSONP
    • :fields (type: String.t) - Selector specifying which fields to include in a partial response.
    • :key (type: String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • :oauth_token (type: String.t) - OAuth 2.0 token for the current user.
    • :prettyPrint (type: boolean()) - Returns response with indentations and line breaks.
    • :quotaUser (type: String.t) - 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.
    • :uploadType (type: String.t) - Legacy upload protocol for media (e.g. "media", "multipart").
    • :upload_protocol (type: String.t) - Upload protocol for media (e.g. "raw", "multipart").
  • opts (type: keyword()) - Call options

Returns

  • {:ok, %GoogleApi.ArtifactRegistry.V1beta1.Model.File{}} on success
  • {:error, info} on failure
Link to this function

artifactregistry_projects_locations_repositories_files_list(connection, parent, optional_params \\ [], opts \\ [])

View Source
@spec artifactregistry_projects_locations_repositories_files_list(
  Tesla.Env.client(),
  String.t(),
  keyword(),
  keyword()
) ::
  {:ok, GoogleApi.ArtifactRegistry.V1beta1.Model.ListFilesResponse.t()}
  | {:ok, Tesla.Env.t()}
  | {:ok, list()}
  | {:error, any()}

Lists files.

Parameters

  • connection (type: GoogleApi.ArtifactRegistry.V1beta1.Connection.t) - Connection to server
  • parent (type: String.t) - Required. The name of the repository whose files will be listed. For example: "projects/p1/locations/us-central1/repositories/repo1
  • optional_params (type: keyword()) - Optional parameters
    • :"$.xgafv" (type: String.t) - V1 error format.
    • :access_token (type: String.t) - OAuth access token.
    • :alt (type: String.t) - Data format for response.
    • :callback (type: String.t) - JSONP
    • :fields (type: String.t) - Selector specifying which fields to include in a partial response.
    • :key (type: String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • :oauth_token (type: String.t) - OAuth 2.0 token for the current user.
    • :prettyPrint (type: boolean()) - Returns response with indentations and line breaks.
    • :quotaUser (type: String.t) - 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.
    • :uploadType (type: String.t) - Legacy upload protocol for media (e.g. "media", "multipart").
    • :upload_protocol (type: String.t) - Upload protocol for media (e.g. "raw", "multipart").
    • :filter (type: String.t) - An expression for filtering the results of the request. Filter rules are case insensitive. The fields eligible for filtering are: name owner annotations Examples of using a filter: To filter the results of your request to files with the name my_file.txt in project my-project in the us-central region, in repository my-repo, append the following filter expression to your request: name="projects/my-project/locations/us-central1/repositories/my-repo/files/my-file.txt" You can also use wildcards to match any number of characters before or after the value: `name="projects/my-project/locations/us-central1/repositories/my-repo/files/my-"*name="projects/my-project/locations/us-central1/repositories/my-repo/files/file.txt"` name="projects/my-project/locations/us-central1/repositories/my-repo/files/*file*" To filter the results of your request to files owned by the version 1.0 in package pkg1, append the following filter expression to your request: owner="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/1.0" To filter the results of your request to files with the annotation key-value pair [external_link: external_link_value], append the following filter expression to your request: "annotations.external_link:external_link_value" To filter just for a specific annotation key external_link, append the following filter expression to your request: "annotations.external_link" If the annotation key or value contains special characters, you can escape them by surrounding the value with backticks. For example, to filter the results of your request to files with the annotation key-value pair [external.link:https://example.com/my-file], append the following filter expression to your request: "annotations.`external.link`:`https://example.com/my-file`" You can also filter with annotations with a wildcard to match any number of characters before or after the value: `` "annotations._link:*example.com*" ``
    • :pageSize (type: integer()) - The maximum number of files to return. Maximum page size is 1,000.
    • :pageToken (type: String.t) - The next_page_token value returned from a previous list request, if any.
  • opts (type: keyword()) - Call options

Returns

  • {:ok, %GoogleApi.ArtifactRegistry.V1beta1.Model.ListFilesResponse{}} on success
  • {:error, info} on failure
Link to this function

artifactregistry_projects_locations_repositories_get(connection, name, optional_params \\ [], opts \\ [])

View Source
@spec artifactregistry_projects_locations_repositories_get(
  Tesla.Env.client(),
  String.t(),
  keyword(),
  keyword()
) ::
  {:ok, GoogleApi.ArtifactRegistry.V1beta1.Model.Repository.t()}
  | {:ok, Tesla.Env.t()}
  | {:ok, list()}
  | {:error, any()}

Gets a repository.

Parameters

  • connection (type: GoogleApi.ArtifactRegistry.V1beta1.Connection.t) - Connection to server
  • name (type: String.t) - Required. The name of the repository to retrieve.
  • optional_params (type: keyword()) - Optional parameters
    • :"$.xgafv" (type: String.t) - V1 error format.
    • :access_token (type: String.t) - OAuth access token.
    • :alt (type: String.t) - Data format for response.
    • :callback (type: String.t) - JSONP
    • :fields (type: String.t) - Selector specifying which fields to include in a partial response.
    • :key (type: String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • :oauth_token (type: String.t) - OAuth 2.0 token for the current user.
    • :prettyPrint (type: boolean()) - Returns response with indentations and line breaks.
    • :quotaUser (type: String.t) - 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.
    • :uploadType (type: String.t) - Legacy upload protocol for media (e.g. "media", "multipart").
    • :upload_protocol (type: String.t) - Upload protocol for media (e.g. "raw", "multipart").
  • opts (type: keyword()) - Call options

Returns

  • {:ok, %GoogleApi.ArtifactRegistry.V1beta1.Model.Repository{}} on success
  • {:error, info} on failure
Link to this function

artifactregistry_projects_locations_repositories_get_iam_policy(connection, resource, optional_params \\ [], opts \\ [])

View Source
@spec artifactregistry_projects_locations_repositories_get_iam_policy(
  Tesla.Env.client(),
  String.t(),
  keyword(),
  keyword()
) ::
  {:ok, GoogleApi.ArtifactRegistry.V1beta1.Model.Policy.t()}
  | {:ok, Tesla.Env.t()}
  | {:ok, list()}
  | {:error, any()}

Gets the IAM policy for a given resource.

Parameters

  • connection (type: GoogleApi.ArtifactRegistry.V1beta1.Connection.t) - Connection to server
  • resource (type: String.t) - REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
  • optional_params (type: keyword()) - Optional parameters
    • :"$.xgafv" (type: String.t) - V1 error format.
    • :access_token (type: String.t) - OAuth access token.
    • :alt (type: String.t) - Data format for response.
    • :callback (type: String.t) - JSONP
    • :fields (type: String.t) - Selector specifying which fields to include in a partial response.
    • :key (type: String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • :oauth_token (type: String.t) - OAuth 2.0 token for the current user.
    • :prettyPrint (type: boolean()) - Returns response with indentations and line breaks.
    • :quotaUser (type: String.t) - 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.
    • :uploadType (type: String.t) - Legacy upload protocol for media (e.g. "media", "multipart").
    • :upload_protocol (type: String.t) - Upload protocol for media (e.g. "raw", "multipart").
    • :"options.requestedPolicyVersion" (type: integer()) - Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the IAM documentation.
  • opts (type: keyword()) - Call options

Returns

  • {:ok, %GoogleApi.ArtifactRegistry.V1beta1.Model.Policy{}} on success
  • {:error, info} on failure
Link to this function

artifactregistry_projects_locations_repositories_list(connection, parent, optional_params \\ [], opts \\ [])

View Source
@spec artifactregistry_projects_locations_repositories_list(
  Tesla.Env.client(),
  String.t(),
  keyword(),
  keyword()
) ::
  {:ok, GoogleApi.ArtifactRegistry.V1beta1.Model.ListRepositoriesResponse.t()}
  | {:ok, Tesla.Env.t()}
  | {:ok, list()}
  | {:error, any()}

Lists repositories.

Parameters

  • connection (type: GoogleApi.ArtifactRegistry.V1beta1.Connection.t) - Connection to server
  • parent (type: String.t) - Required. The name of the parent resource whose repositories will be listed.
  • optional_params (type: keyword()) - Optional parameters
    • :"$.xgafv" (type: String.t) - V1 error format.
    • :access_token (type: String.t) - OAuth access token.
    • :alt (type: String.t) - Data format for response.
    • :callback (type: String.t) - JSONP
    • :fields (type: String.t) - Selector specifying which fields to include in a partial response.
    • :key (type: String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • :oauth_token (type: String.t) - OAuth 2.0 token for the current user.
    • :prettyPrint (type: boolean()) - Returns response with indentations and line breaks.
    • :quotaUser (type: String.t) - 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.
    • :uploadType (type: String.t) - Legacy upload protocol for media (e.g. "media", "multipart").
    • :upload_protocol (type: String.t) - Upload protocol for media (e.g. "raw", "multipart").
    • :orderBy (type: String.t) - Optional. The field to order the results by.
    • :pageSize (type: integer()) - The maximum number of repositories to return. Maximum page size is 1,000.
    • :pageToken (type: String.t) - The next_page_token value returned from a previous list request, if any.
  • opts (type: keyword()) - Call options

Returns

  • {:ok, %GoogleApi.ArtifactRegistry.V1beta1.Model.ListRepositoriesResponse{}} on success
  • {:error, info} on failure
Link to this function

artifactregistry_projects_locations_repositories_packages_delete(connection, name, optional_params \\ [], opts \\ [])

View Source
@spec artifactregistry_projects_locations_repositories_packages_delete(
  Tesla.Env.client(),
  String.t(),
  keyword(),
  keyword()
) ::
  {:ok, GoogleApi.ArtifactRegistry.V1beta1.Model.Operation.t()}
  | {:ok, Tesla.Env.t()}
  | {:ok, list()}
  | {:error, any()}

Deletes a package and all of its versions and tags. The returned operation will complete once the package has been deleted.

Parameters

  • connection (type: GoogleApi.ArtifactRegistry.V1beta1.Connection.t) - Connection to server
  • name (type: String.t) - Required. The name of the package to delete.
  • optional_params (type: keyword()) - Optional parameters
    • :"$.xgafv" (type: String.t) - V1 error format.
    • :access_token (type: String.t) - OAuth access token.
    • :alt (type: String.t) - Data format for response.
    • :callback (type: String.t) - JSONP
    • :fields (type: String.t) - Selector specifying which fields to include in a partial response.
    • :key (type: String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • :oauth_token (type: String.t) - OAuth 2.0 token for the current user.
    • :prettyPrint (type: boolean()) - Returns response with indentations and line breaks.
    • :quotaUser (type: String.t) - 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.
    • :uploadType (type: String.t) - Legacy upload protocol for media (e.g. "media", "multipart").
    • :upload_protocol (type: String.t) - Upload protocol for media (e.g. "raw", "multipart").
  • opts (type: keyword()) - Call options

Returns

  • {:ok, %GoogleApi.ArtifactRegistry.V1beta1.Model.Operation{}} on success
  • {:error, info} on failure
Link to this function

artifactregistry_projects_locations_repositories_packages_get(connection, name, optional_params \\ [], opts \\ [])

View Source
@spec artifactregistry_projects_locations_repositories_packages_get(
  Tesla.Env.client(),
  String.t(),
  keyword(),
  keyword()
) ::
  {:ok, GoogleApi.ArtifactRegistry.V1beta1.Model.Package.t()}
  | {:ok, Tesla.Env.t()}
  | {:ok, list()}
  | {:error, any()}

Gets a package.

Parameters

  • connection (type: GoogleApi.ArtifactRegistry.V1beta1.Connection.t) - Connection to server
  • name (type: String.t) - Required. The name of the package to retrieve.
  • optional_params (type: keyword()) - Optional parameters
    • :"$.xgafv" (type: String.t) - V1 error format.
    • :access_token (type: String.t) - OAuth access token.
    • :alt (type: String.t) - Data format for response.
    • :callback (type: String.t) - JSONP
    • :fields (type: String.t) - Selector specifying which fields to include in a partial response.
    • :key (type: String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • :oauth_token (type: String.t) - OAuth 2.0 token for the current user.
    • :prettyPrint (type: boolean()) - Returns response with indentations and line breaks.
    • :quotaUser (type: String.t) - 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.
    • :uploadType (type: String.t) - Legacy upload protocol for media (e.g. "media", "multipart").
    • :upload_protocol (type: String.t) - Upload protocol for media (e.g. "raw", "multipart").
  • opts (type: keyword()) - Call options

Returns

  • {:ok, %GoogleApi.ArtifactRegistry.V1beta1.Model.Package{}} on success
  • {:error, info} on failure
Link to this function

artifactregistry_projects_locations_repositories_packages_list(connection, parent, optional_params \\ [], opts \\ [])

View Source
@spec artifactregistry_projects_locations_repositories_packages_list(
  Tesla.Env.client(),
  String.t(),
  keyword(),
  keyword()
) ::
  {:ok, GoogleApi.ArtifactRegistry.V1beta1.Model.ListPackagesResponse.t()}
  | {:ok, Tesla.Env.t()}
  | {:ok, list()}
  | {:error, any()}

Lists packages.

Parameters

  • connection (type: GoogleApi.ArtifactRegistry.V1beta1.Connection.t) - Connection to server
  • parent (type: String.t) - Required. The name of the parent resource whose packages will be listed.
  • optional_params (type: keyword()) - Optional parameters
    • :"$.xgafv" (type: String.t) - V1 error format.
    • :access_token (type: String.t) - OAuth access token.
    • :alt (type: String.t) - Data format for response.
    • :callback (type: String.t) - JSONP
    • :fields (type: String.t) - Selector specifying which fields to include in a partial response.
    • :key (type: String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • :oauth_token (type: String.t) - OAuth 2.0 token for the current user.
    • :prettyPrint (type: boolean()) - Returns response with indentations and line breaks.
    • :quotaUser (type: String.t) - 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.
    • :uploadType (type: String.t) - Legacy upload protocol for media (e.g. "media", "multipart").
    • :upload_protocol (type: String.t) - Upload protocol for media (e.g. "raw", "multipart").
    • :orderBy (type: String.t) - Optional. The field to order the results by.
    • :pageSize (type: integer()) - The maximum number of packages to return. Maximum page size is 1,000.
    • :pageToken (type: String.t) - The next_page_token value returned from a previous list request, if any.
  • opts (type: keyword()) - Call options

Returns

  • {:ok, %GoogleApi.ArtifactRegistry.V1beta1.Model.ListPackagesResponse{}} on success
  • {:error, info} on failure
Link to this function

artifactregistry_projects_locations_repositories_packages_tags_create(connection, parent, optional_params \\ [], opts \\ [])

View Source
@spec artifactregistry_projects_locations_repositories_packages_tags_create(
  Tesla.Env.client(),
  String.t(),
  keyword(),
  keyword()
) ::
  {:ok, GoogleApi.ArtifactRegistry.V1beta1.Model.Tag.t()}
  | {:ok, Tesla.Env.t()}
  | {:ok, list()}
  | {:error, any()}

Creates a tag.

Parameters

  • connection (type: GoogleApi.ArtifactRegistry.V1beta1.Connection.t) - Connection to server
  • parent (type: String.t) - The name of the parent resource where the tag will be created.
  • optional_params (type: keyword()) - Optional parameters
    • :"$.xgafv" (type: String.t) - V1 error format.
    • :access_token (type: String.t) - OAuth access token.
    • :alt (type: String.t) - Data format for response.
    • :callback (type: String.t) - JSONP
    • :fields (type: String.t) - Selector specifying which fields to include in a partial response.
    • :key (type: String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • :oauth_token (type: String.t) - OAuth 2.0 token for the current user.
    • :prettyPrint (type: boolean()) - Returns response with indentations and line breaks.
    • :quotaUser (type: String.t) - 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.
    • :uploadType (type: String.t) - Legacy upload protocol for media (e.g. "media", "multipart").
    • :upload_protocol (type: String.t) - Upload protocol for media (e.g. "raw", "multipart").
    • :tagId (type: String.t) - The tag id to use for this repository.
    • :body (type: GoogleApi.ArtifactRegistry.V1beta1.Model.Tag.t) -
  • opts (type: keyword()) - Call options

Returns

  • {:ok, %GoogleApi.ArtifactRegistry.V1beta1.Model.Tag{}} on success
  • {:error, info} on failure
Link to this function

artifactregistry_projects_locations_repositories_packages_tags_delete(connection, name, optional_params \\ [], opts \\ [])

View Source
@spec artifactregistry_projects_locations_repositories_packages_tags_delete(
  Tesla.Env.client(),
  String.t(),
  keyword(),
  keyword()
) ::
  {:ok, GoogleApi.ArtifactRegistry.V1beta1.Model.Empty.t()}
  | {:ok, Tesla.Env.t()}
  | {:ok, list()}
  | {:error, any()}

Deletes a tag.

Parameters

  • connection (type: GoogleApi.ArtifactRegistry.V1beta1.Connection.t) - Connection to server
  • name (type: String.t) - The name of the tag to delete.
  • optional_params (type: keyword()) - Optional parameters
    • :"$.xgafv" (type: String.t) - V1 error format.
    • :access_token (type: String.t) - OAuth access token.
    • :alt (type: String.t) - Data format for response.
    • :callback (type: String.t) - JSONP
    • :fields (type: String.t) - Selector specifying which fields to include in a partial response.
    • :key (type: String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • :oauth_token (type: String.t) - OAuth 2.0 token for the current user.
    • :prettyPrint (type: boolean()) - Returns response with indentations and line breaks.
    • :quotaUser (type: String.t) - 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.
    • :uploadType (type: String.t) - Legacy upload protocol for media (e.g. "media", "multipart").
    • :upload_protocol (type: String.t) - Upload protocol for media (e.g. "raw", "multipart").
  • opts (type: keyword()) - Call options

Returns

  • {:ok, %GoogleApi.ArtifactRegistry.V1beta1.Model.Empty{}} on success
  • {:error, info} on failure
Link to this function

artifactregistry_projects_locations_repositories_packages_tags_get(connection, name, optional_params \\ [], opts \\ [])

View Source
@spec artifactregistry_projects_locations_repositories_packages_tags_get(
  Tesla.Env.client(),
  String.t(),
  keyword(),
  keyword()
) ::
  {:ok, GoogleApi.ArtifactRegistry.V1beta1.Model.Tag.t()}
  | {:ok, Tesla.Env.t()}
  | {:ok, list()}
  | {:error, any()}

Gets a tag.

Parameters

  • connection (type: GoogleApi.ArtifactRegistry.V1beta1.Connection.t) - Connection to server
  • name (type: String.t) - The name of the tag to retrieve.
  • optional_params (type: keyword()) - Optional parameters
    • :"$.xgafv" (type: String.t) - V1 error format.
    • :access_token (type: String.t) - OAuth access token.
    • :alt (type: String.t) - Data format for response.
    • :callback (type: String.t) - JSONP
    • :fields (type: String.t) - Selector specifying which fields to include in a partial response.
    • :key (type: String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • :oauth_token (type: String.t) - OAuth 2.0 token for the current user.
    • :prettyPrint (type: boolean()) - Returns response with indentations and line breaks.
    • :quotaUser (type: String.t) - 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.
    • :uploadType (type: String.t) - Legacy upload protocol for media (e.g. "media", "multipart").
    • :upload_protocol (type: String.t) - Upload protocol for media (e.g. "raw", "multipart").
  • opts (type: keyword()) - Call options

Returns

  • {:ok, %GoogleApi.ArtifactRegistry.V1beta1.Model.Tag{}} on success
  • {:error, info} on failure
Link to this function

artifactregistry_projects_locations_repositories_packages_tags_list(connection, parent, optional_params \\ [], opts \\ [])

View Source
@spec artifactregistry_projects_locations_repositories_packages_tags_list(
  Tesla.Env.client(),
  String.t(),
  keyword(),
  keyword()
) ::
  {:ok, GoogleApi.ArtifactRegistry.V1beta1.Model.ListTagsResponse.t()}
  | {:ok, Tesla.Env.t()}
  | {:ok, list()}
  | {:error, any()}

Lists tags.

Parameters

  • connection (type: GoogleApi.ArtifactRegistry.V1beta1.Connection.t) - Connection to server
  • parent (type: String.t) - The name of the parent package whose tags will be listed. For example: projects/p1/locations/us-central1/repositories/repo1/packages/pkg1.
  • optional_params (type: keyword()) - Optional parameters
    • :"$.xgafv" (type: String.t) - V1 error format.
    • :access_token (type: String.t) - OAuth access token.
    • :alt (type: String.t) - Data format for response.
    • :callback (type: String.t) - JSONP
    • :fields (type: String.t) - Selector specifying which fields to include in a partial response.
    • :key (type: String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • :oauth_token (type: String.t) - OAuth 2.0 token for the current user.
    • :prettyPrint (type: boolean()) - Returns response with indentations and line breaks.
    • :quotaUser (type: String.t) - 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.
    • :uploadType (type: String.t) - Legacy upload protocol for media (e.g. "media", "multipart").
    • :upload_protocol (type: String.t) - Upload protocol for media (e.g. "raw", "multipart").
    • :filter (type: String.t) - An expression for filtering the results of the request. Filter rules are case insensitive. The fields eligible for filtering are: name version Examples of using a filter: To filter the results of your request to tags with the name my-tag in package my-package in repository my-repo in project "y-project in the us-central region, append the following filter expression to your request: name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/my-tag" You can also use wildcards to match any number of characters before or after the value: name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/my*" `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/tag"*name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/tag"To filter the results of your request to tags applied to the version1.0in packagemy-package, append the following filter expression to your request: *version="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/1.0"`
    • :pageSize (type: integer()) - The maximum number of tags to return. Maximum page size is 1,000.
    • :pageToken (type: String.t) - The next_page_token value returned from a previous list request, if any.
  • opts (type: keyword()) - Call options

Returns

  • {:ok, %GoogleApi.ArtifactRegistry.V1beta1.Model.ListTagsResponse{}} on success
  • {:error, info} on failure
Link to this function

artifactregistry_projects_locations_repositories_packages_tags_patch(connection, name, optional_params \\ [], opts \\ [])

View Source
@spec artifactregistry_projects_locations_repositories_packages_tags_patch(
  Tesla.Env.client(),
  String.t(),
  keyword(),
  keyword()
) ::
  {:ok, GoogleApi.ArtifactRegistry.V1beta1.Model.Tag.t()}
  | {:ok, Tesla.Env.t()}
  | {:ok, list()}
  | {:error, any()}

Updates a tag.

Parameters

  • connection (type: GoogleApi.ArtifactRegistry.V1beta1.Connection.t) - Connection to server
  • name (type: String.t) - The name of the tag, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/tag1". If the package part contains slashes, the slashes are escaped. The tag part can only have characters in [a-zA-Z0-9-._~:@], anything else must be URL encoded.
  • optional_params (type: keyword()) - Optional parameters
    • :"$.xgafv" (type: String.t) - V1 error format.
    • :access_token (type: String.t) - OAuth access token.
    • :alt (type: String.t) - Data format for response.
    • :callback (type: String.t) - JSONP
    • :fields (type: String.t) - Selector specifying which fields to include in a partial response.
    • :key (type: String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • :oauth_token (type: String.t) - OAuth 2.0 token for the current user.
    • :prettyPrint (type: boolean()) - Returns response with indentations and line breaks.
    • :quotaUser (type: String.t) - 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.
    • :uploadType (type: String.t) - Legacy upload protocol for media (e.g. "media", "multipart").
    • :upload_protocol (type: String.t) - Upload protocol for media (e.g. "raw", "multipart").
    • :updateMask (type: String.t) - The update mask applies to the resource. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    • :body (type: GoogleApi.ArtifactRegistry.V1beta1.Model.Tag.t) -
  • opts (type: keyword()) - Call options

Returns

  • {:ok, %GoogleApi.ArtifactRegistry.V1beta1.Model.Tag{}} on success
  • {:error, info} on failure
Link to this function

artifactregistry_projects_locations_repositories_packages_versions_delete(connection, name, optional_params \\ [], opts \\ [])

View Source
@spec artifactregistry_projects_locations_repositories_packages_versions_delete(
  Tesla.Env.client(),
  String.t(),
  keyword(),
  keyword()
) ::
  {:ok, GoogleApi.ArtifactRegistry.V1beta1.Model.Operation.t()}
  | {:ok, Tesla.Env.t()}
  | {:ok, list()}
  | {:error, any()}

Deletes a version and all of its content. The returned operation will complete once the version has been deleted.

Parameters

  • connection (type: GoogleApi.ArtifactRegistry.V1beta1.Connection.t) - Connection to server
  • name (type: String.t) - The name of the version to delete.
  • optional_params (type: keyword()) - Optional parameters
    • :"$.xgafv" (type: String.t) - V1 error format.
    • :access_token (type: String.t) - OAuth access token.
    • :alt (type: String.t) - Data format for response.
    • :callback (type: String.t) - JSONP
    • :fields (type: String.t) - Selector specifying which fields to include in a partial response.
    • :key (type: String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • :oauth_token (type: String.t) - OAuth 2.0 token for the current user.
    • :prettyPrint (type: boolean()) - Returns response with indentations and line breaks.
    • :quotaUser (type: String.t) - 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.
    • :uploadType (type: String.t) - Legacy upload protocol for media (e.g. "media", "multipart").
    • :upload_protocol (type: String.t) - Upload protocol for media (e.g. "raw", "multipart").
    • :force (type: boolean()) - By default, a version that is tagged may not be deleted. If force=true, the version and any tags pointing to the version are deleted.
  • opts (type: keyword()) - Call options

Returns

  • {:ok, %GoogleApi.ArtifactRegistry.V1beta1.Model.Operation{}} on success
  • {:error, info} on failure
Link to this function

artifactregistry_projects_locations_repositories_packages_versions_get(connection, name, optional_params \\ [], opts \\ [])

View Source
@spec artifactregistry_projects_locations_repositories_packages_versions_get(
  Tesla.Env.client(),
  String.t(),
  keyword(),
  keyword()
) ::
  {:ok, GoogleApi.ArtifactRegistry.V1beta1.Model.Version.t()}
  | {:ok, Tesla.Env.t()}
  | {:ok, list()}
  | {:error, any()}

Gets a version

Parameters

  • connection (type: GoogleApi.ArtifactRegistry.V1beta1.Connection.t) - Connection to server
  • name (type: String.t) - The name of the version to retrieve.
  • optional_params (type: keyword()) - Optional parameters
    • :"$.xgafv" (type: String.t) - V1 error format.
    • :access_token (type: String.t) - OAuth access token.
    • :alt (type: String.t) - Data format for response.
    • :callback (type: String.t) - JSONP
    • :fields (type: String.t) - Selector specifying which fields to include in a partial response.
    • :key (type: String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • :oauth_token (type: String.t) - OAuth 2.0 token for the current user.
    • :prettyPrint (type: boolean()) - Returns response with indentations and line breaks.
    • :quotaUser (type: String.t) - 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.
    • :uploadType (type: String.t) - Legacy upload protocol for media (e.g. "media", "multipart").
    • :upload_protocol (type: String.t) - Upload protocol for media (e.g. "raw", "multipart").
    • :view (type: String.t) - The view that should be returned in the response.
  • opts (type: keyword()) - Call options

Returns

  • {:ok, %GoogleApi.ArtifactRegistry.V1beta1.Model.Version{}} on success
  • {:error, info} on failure
Link to this function

artifactregistry_projects_locations_repositories_packages_versions_list(connection, parent, optional_params \\ [], opts \\ [])

View Source
@spec artifactregistry_projects_locations_repositories_packages_versions_list(
  Tesla.Env.client(),
  String.t(),
  keyword(),
  keyword()
) ::
  {:ok, GoogleApi.ArtifactRegistry.V1beta1.Model.ListVersionsResponse.t()}
  | {:ok, Tesla.Env.t()}
  | {:ok, list()}
  | {:error, any()}

Lists versions.

Parameters

  • connection (type: GoogleApi.ArtifactRegistry.V1beta1.Connection.t) - Connection to server
  • parent (type: String.t) - The name of the parent resource whose versions will be listed.
  • optional_params (type: keyword()) - Optional parameters
    • :"$.xgafv" (type: String.t) - V1 error format.
    • :access_token (type: String.t) - OAuth access token.
    • :alt (type: String.t) - Data format for response.
    • :callback (type: String.t) - JSONP
    • :fields (type: String.t) - Selector specifying which fields to include in a partial response.
    • :key (type: String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • :oauth_token (type: String.t) - OAuth 2.0 token for the current user.
    • :prettyPrint (type: boolean()) - Returns response with indentations and line breaks.
    • :quotaUser (type: String.t) - 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.
    • :uploadType (type: String.t) - Legacy upload protocol for media (e.g. "media", "multipart").
    • :upload_protocol (type: String.t) - Upload protocol for media (e.g. "raw", "multipart").
    • :orderBy (type: String.t) - Optional. The field to order the results by.
    • :pageSize (type: integer()) - The maximum number of versions to return. Maximum page size is 1,000.
    • :pageToken (type: String.t) - The next_page_token value returned from a previous list request, if any.
    • :view (type: String.t) - The view that should be returned in the response.
  • opts (type: keyword()) - Call options

Returns

  • {:ok, %GoogleApi.ArtifactRegistry.V1beta1.Model.ListVersionsResponse{}} on success
  • {:error, info} on failure
Link to this function

artifactregistry_projects_locations_repositories_patch(connection, name, optional_params \\ [], opts \\ [])

View Source
@spec artifactregistry_projects_locations_repositories_patch(
  Tesla.Env.client(),
  String.t(),
  keyword(),
  keyword()
) ::
  {:ok, GoogleApi.ArtifactRegistry.V1beta1.Model.Repository.t()}
  | {:ok, Tesla.Env.t()}
  | {:ok, list()}
  | {:error, any()}

Updates a repository.

Parameters

  • connection (type: GoogleApi.ArtifactRegistry.V1beta1.Connection.t) - Connection to server
  • name (type: String.t) - The name of the repository, for example: projects/p1/locations/us-central1/repositories/repo1. For each location in a project, repository names must be unique.
  • optional_params (type: keyword()) - Optional parameters
    • :"$.xgafv" (type: String.t) - V1 error format.
    • :access_token (type: String.t) - OAuth access token.
    • :alt (type: String.t) - Data format for response.
    • :callback (type: String.t) - JSONP
    • :fields (type: String.t) - Selector specifying which fields to include in a partial response.
    • :key (type: String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • :oauth_token (type: String.t) - OAuth 2.0 token for the current user.
    • :prettyPrint (type: boolean()) - Returns response with indentations and line breaks.
    • :quotaUser (type: String.t) - 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.
    • :uploadType (type: String.t) - Legacy upload protocol for media (e.g. "media", "multipart").
    • :upload_protocol (type: String.t) - Upload protocol for media (e.g. "raw", "multipart").
    • :updateMask (type: String.t) - The update mask applies to the resource. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    • :body (type: GoogleApi.ArtifactRegistry.V1beta1.Model.Repository.t) -
  • opts (type: keyword()) - Call options

Returns

  • {:ok, %GoogleApi.ArtifactRegistry.V1beta1.Model.Repository{}} on success
  • {:error, info} on failure
Link to this function

artifactregistry_projects_locations_repositories_set_iam_policy(connection, resource, optional_params \\ [], opts \\ [])

View Source
@spec artifactregistry_projects_locations_repositories_set_iam_policy(
  Tesla.Env.client(),
  String.t(),
  keyword(),
  keyword()
) ::
  {:ok, GoogleApi.ArtifactRegistry.V1beta1.Model.Policy.t()}
  | {:ok, Tesla.Env.t()}
  | {:ok, list()}
  | {:error, any()}

Updates the IAM policy for a given resource.

Parameters

  • connection (type: GoogleApi.ArtifactRegistry.V1beta1.Connection.t) - Connection to server
  • resource (type: String.t) - REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.
  • optional_params (type: keyword()) - Optional parameters
    • :"$.xgafv" (type: String.t) - V1 error format.
    • :access_token (type: String.t) - OAuth access token.
    • :alt (type: String.t) - Data format for response.
    • :callback (type: String.t) - JSONP
    • :fields (type: String.t) - Selector specifying which fields to include in a partial response.
    • :key (type: String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • :oauth_token (type: String.t) - OAuth 2.0 token for the current user.
    • :prettyPrint (type: boolean()) - Returns response with indentations and line breaks.
    • :quotaUser (type: String.t) - 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.
    • :uploadType (type: String.t) - Legacy upload protocol for media (e.g. "media", "multipart").
    • :upload_protocol (type: String.t) - Upload protocol for media (e.g. "raw", "multipart").
    • :body (type: GoogleApi.ArtifactRegistry.V1beta1.Model.SetIamPolicyRequest.t) -
  • opts (type: keyword()) - Call options

Returns

  • {:ok, %GoogleApi.ArtifactRegistry.V1beta1.Model.Policy{}} on success
  • {:error, info} on failure
Link to this function

artifactregistry_projects_locations_repositories_test_iam_permissions(connection, resource, optional_params \\ [], opts \\ [])

View Source
@spec artifactregistry_projects_locations_repositories_test_iam_permissions(
  Tesla.Env.client(),
  String.t(),
  keyword(),
  keyword()
) ::
  {:ok, GoogleApi.ArtifactRegistry.V1beta1.Model.TestIamPermissionsResponse.t()}
  | {:ok, Tesla.Env.t()}
  | {:ok, list()}
  | {:error, any()}

Tests if the caller has a list of permissions on a resource.

Parameters

  • connection (type: GoogleApi.ArtifactRegistry.V1beta1.Connection.t) - Connection to server
  • resource (type: String.t) - REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.
  • optional_params (type: keyword()) - Optional parameters
    • :"$.xgafv" (type: String.t) - V1 error format.
    • :access_token (type: String.t) - OAuth access token.
    • :alt (type: String.t) - Data format for response.
    • :callback (type: String.t) - JSONP
    • :fields (type: String.t) - Selector specifying which fields to include in a partial response.
    • :key (type: String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • :oauth_token (type: String.t) - OAuth 2.0 token for the current user.
    • :prettyPrint (type: boolean()) - Returns response with indentations and line breaks.
    • :quotaUser (type: String.t) - 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.
    • :uploadType (type: String.t) - Legacy upload protocol for media (e.g. "media", "multipart").
    • :upload_protocol (type: String.t) - Upload protocol for media (e.g. "raw", "multipart").
    • :body (type: GoogleApi.ArtifactRegistry.V1beta1.Model.TestIamPermissionsRequest.t) -
  • opts (type: keyword()) - Call options

Returns

  • {:ok, %GoogleApi.ArtifactRegistry.V1beta1.Model.TestIamPermissionsResponse{}} on success
  • {:error, info} on failure