Skip to content

Commit

Permalink
feat: [artifactregistry] add format-specific resources `MavenArtifact…
Browse files Browse the repository at this point in the history
…`, `NpmPackage`, `KfpArtifact` and `PythonPackage` (#9080)

* feat: add format-specific resources `MavenArtifact`, `NpmPackage`, `KfpArtifact` and `PythonPackage`
feat: add `order_by` to `ListDockerImages`
feat: add an API to get and update VPCSC config
feat: add `BatchDeleteVersionMetadata` to return version that failed to delete
fix!: make `GetFileRequest.name` and `ListFilesRequest.parent` required
fix: make `Package` a resource
fix: deprecate `REDIRECTION_FROM_GCR_IO_FINALIZED`

PiperOrigin-RevId: 506935629

Source-Link: googleapis/googleapis@c807b74

Source-Link: googleapis/googleapis-gen@d43260c
Copy-Tag: eyJwIjoiamF2YS1hcnRpZmFjdC1yZWdpc3RyeS8uT3dsQm90LnlhbWwiLCJoIjoiZDQzMjYwY2FiZWVjZWViMDZmYjlmMjc1ZDkwNzQ1NGE2Nzk0NTQ4NiJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Feb 15, 2023
1 parent eaef8f9 commit 6e35902
Show file tree
Hide file tree
Showing 145 changed files with 30,876 additions and 677 deletions.
6 changes: 3 additions & 3 deletions java-artifact-registry/README.md
Expand Up @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-artifact-registry</artifactId>
<version>1.7.0</version>
<version>1.8.0</version>
</dependency>
```

If you are using Gradle without BOM, add this to your dependencies:

```Groovy
implementation 'com.google.cloud:google-cloud-artifact-registry:1.7.0'
implementation 'com.google.cloud:google-cloud-artifact-registry:1.8.0'
```

If you are using SBT, add this to your dependencies:

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.7.0"
libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.8.0"
```

## Authentication
Expand Down

Large diffs are not rendered by default.

Expand Up @@ -19,7 +19,10 @@
import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListDockerImagesPagedResponse;
import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListFilesPagedResponse;
import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListLocationsPagedResponse;
import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListMavenArtifactsPagedResponse;
import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListNpmPackagesPagedResponse;
import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListPackagesPagedResponse;
import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListPythonPackagesPagedResponse;
import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListRepositoriesPagedResponse;
import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListTagsPagedResponse;
import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListVersionsPagedResponse;
Expand Down Expand Up @@ -106,6 +109,42 @@ public UnaryCallSettings<GetDockerImageRequest, DockerImage> getDockerImageSetti
return ((ArtifactRegistryStubSettings) getStubSettings()).getDockerImageSettings();
}

/** Returns the object with the settings used for calls to listMavenArtifacts. */
public PagedCallSettings<
ListMavenArtifactsRequest, ListMavenArtifactsResponse, ListMavenArtifactsPagedResponse>
listMavenArtifactsSettings() {
return ((ArtifactRegistryStubSettings) getStubSettings()).listMavenArtifactsSettings();
}

/** Returns the object with the settings used for calls to getMavenArtifact. */
public UnaryCallSettings<GetMavenArtifactRequest, MavenArtifact> getMavenArtifactSettings() {
return ((ArtifactRegistryStubSettings) getStubSettings()).getMavenArtifactSettings();
}

/** Returns the object with the settings used for calls to listNpmPackages. */
public PagedCallSettings<
ListNpmPackagesRequest, ListNpmPackagesResponse, ListNpmPackagesPagedResponse>
listNpmPackagesSettings() {
return ((ArtifactRegistryStubSettings) getStubSettings()).listNpmPackagesSettings();
}

/** Returns the object with the settings used for calls to getNpmPackage. */
public UnaryCallSettings<GetNpmPackageRequest, NpmPackage> getNpmPackageSettings() {
return ((ArtifactRegistryStubSettings) getStubSettings()).getNpmPackageSettings();
}

/** Returns the object with the settings used for calls to listPythonPackages. */
public PagedCallSettings<
ListPythonPackagesRequest, ListPythonPackagesResponse, ListPythonPackagesPagedResponse>
listPythonPackagesSettings() {
return ((ArtifactRegistryStubSettings) getStubSettings()).listPythonPackagesSettings();
}

/** Returns the object with the settings used for calls to getPythonPackage. */
public UnaryCallSettings<GetPythonPackageRequest, PythonPackage> getPythonPackageSettings() {
return ((ArtifactRegistryStubSettings) getStubSettings()).getPythonPackageSettings();
}

/** Returns the object with the settings used for calls to importAptArtifacts. */
public UnaryCallSettings<ImportAptArtifactsRequest, Operation> importAptArtifactsSettings() {
return ((ArtifactRegistryStubSettings) getStubSettings()).importAptArtifactsSettings();
Expand Down Expand Up @@ -278,6 +317,16 @@ public UnaryCallSettings<GetIamPolicyRequest, Policy> getIamPolicySettings() {
return ((ArtifactRegistryStubSettings) getStubSettings()).updateProjectSettingsSettings();
}

/** Returns the object with the settings used for calls to getVPCSCConfig. */
public UnaryCallSettings<GetVPCSCConfigRequest, VPCSCConfig> getVPCSCConfigSettings() {
return ((ArtifactRegistryStubSettings) getStubSettings()).getVPCSCConfigSettings();
}

/** Returns the object with the settings used for calls to updateVPCSCConfig. */
public UnaryCallSettings<UpdateVPCSCConfigRequest, VPCSCConfig> updateVPCSCConfigSettings() {
return ((ArtifactRegistryStubSettings) getStubSettings()).updateVPCSCConfigSettings();
}

/** Returns the object with the settings used for calls to listLocations. */
public PagedCallSettings<ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
listLocationsSettings() {
Expand Down Expand Up @@ -416,6 +465,44 @@ public UnaryCallSettings.Builder<GetDockerImageRequest, DockerImage> getDockerIm
return getStubSettingsBuilder().getDockerImageSettings();
}

/** Returns the builder for the settings used for calls to listMavenArtifacts. */
public PagedCallSettings.Builder<
ListMavenArtifactsRequest, ListMavenArtifactsResponse, ListMavenArtifactsPagedResponse>
listMavenArtifactsSettings() {
return getStubSettingsBuilder().listMavenArtifactsSettings();
}

/** Returns the builder for the settings used for calls to getMavenArtifact. */
public UnaryCallSettings.Builder<GetMavenArtifactRequest, MavenArtifact>
getMavenArtifactSettings() {
return getStubSettingsBuilder().getMavenArtifactSettings();
}

/** Returns the builder for the settings used for calls to listNpmPackages. */
public PagedCallSettings.Builder<
ListNpmPackagesRequest, ListNpmPackagesResponse, ListNpmPackagesPagedResponse>
listNpmPackagesSettings() {
return getStubSettingsBuilder().listNpmPackagesSettings();
}

/** Returns the builder for the settings used for calls to getNpmPackage. */
public UnaryCallSettings.Builder<GetNpmPackageRequest, NpmPackage> getNpmPackageSettings() {
return getStubSettingsBuilder().getNpmPackageSettings();
}

/** Returns the builder for the settings used for calls to listPythonPackages. */
public PagedCallSettings.Builder<
ListPythonPackagesRequest, ListPythonPackagesResponse, ListPythonPackagesPagedResponse>
listPythonPackagesSettings() {
return getStubSettingsBuilder().listPythonPackagesSettings();
}

/** Returns the builder for the settings used for calls to getPythonPackage. */
public UnaryCallSettings.Builder<GetPythonPackageRequest, PythonPackage>
getPythonPackageSettings() {
return getStubSettingsBuilder().getPythonPackageSettings();
}

/** Returns the builder for the settings used for calls to importAptArtifacts. */
public UnaryCallSettings.Builder<ImportAptArtifactsRequest, Operation>
importAptArtifactsSettings() {
Expand Down Expand Up @@ -595,6 +682,17 @@ public UnaryCallSettings.Builder<GetIamPolicyRequest, Policy> getIamPolicySettin
return getStubSettingsBuilder().updateProjectSettingsSettings();
}

/** Returns the builder for the settings used for calls to getVPCSCConfig. */
public UnaryCallSettings.Builder<GetVPCSCConfigRequest, VPCSCConfig> getVPCSCConfigSettings() {
return getStubSettingsBuilder().getVPCSCConfigSettings();
}

/** Returns the builder for the settings used for calls to updateVPCSCConfig. */
public UnaryCallSettings.Builder<UpdateVPCSCConfigRequest, VPCSCConfig>
updateVPCSCConfigSettings() {
return getStubSettingsBuilder().updateVPCSCConfigSettings();
}

/** Returns the builder for the settings used for calls to listLocations. */
public PagedCallSettings.Builder<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
Expand Down
Expand Up @@ -17,7 +17,7 @@
"methods": ["createTag", "createTag", "createTagCallable"]
},
"DeletePackage": {
"methods": ["deletePackageAsync", "deletePackageAsync", "deletePackageOperationCallable", "deletePackageCallable"]
"methods": ["deletePackageAsync", "deletePackageAsync", "deletePackageAsync", "deletePackageOperationCallable", "deletePackageCallable"]
},
"DeleteRepository": {
"methods": ["deleteRepositoryAsync", "deleteRepositoryAsync", "deleteRepositoryAsync", "deleteRepositoryOperationCallable", "deleteRepositoryCallable"]
Expand All @@ -32,26 +32,38 @@
"methods": ["getDockerImage", "getDockerImage", "getDockerImage", "getDockerImageCallable"]
},
"GetFile": {
"methods": ["getFile", "getFile", "getFileCallable"]
"methods": ["getFile", "getFile", "getFile", "getFileCallable"]
},
"GetIamPolicy": {
"methods": ["getIamPolicy", "getIamPolicyCallable"]
},
"GetLocation": {
"methods": ["getLocation", "getLocationCallable"]
},
"GetMavenArtifact": {
"methods": ["getMavenArtifact", "getMavenArtifact", "getMavenArtifact", "getMavenArtifactCallable"]
},
"GetNpmPackage": {
"methods": ["getNpmPackage", "getNpmPackage", "getNpmPackage", "getNpmPackageCallable"]
},
"GetPackage": {
"methods": ["getPackage", "getPackage", "getPackageCallable"]
"methods": ["getPackage", "getPackage", "getPackage", "getPackageCallable"]
},
"GetProjectSettings": {
"methods": ["getProjectSettings", "getProjectSettings", "getProjectSettings", "getProjectSettingsCallable"]
},
"GetPythonPackage": {
"methods": ["getPythonPackage", "getPythonPackage", "getPythonPackage", "getPythonPackageCallable"]
},
"GetRepository": {
"methods": ["getRepository", "getRepository", "getRepository", "getRepositoryCallable"]
},
"GetTag": {
"methods": ["getTag", "getTag", "getTagCallable"]
},
"GetVPCSCConfig": {
"methods": ["getVPCSCConfig", "getVPCSCConfig", "getVPCSCConfig", "getVPCSCConfigCallable"]
},
"GetVersion": {
"methods": ["getVersion", "getVersion", "getVersionCallable"]
},
Expand All @@ -65,13 +77,22 @@
"methods": ["listDockerImages", "listDockerImages", "listDockerImagesPagedCallable", "listDockerImagesCallable"]
},
"ListFiles": {
"methods": ["listFiles", "listFiles", "listFilesPagedCallable", "listFilesCallable"]
"methods": ["listFiles", "listFiles", "listFiles", "listFilesPagedCallable", "listFilesCallable"]
},
"ListLocations": {
"methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
},
"ListMavenArtifacts": {
"methods": ["listMavenArtifacts", "listMavenArtifacts", "listMavenArtifacts", "listMavenArtifactsPagedCallable", "listMavenArtifactsCallable"]
},
"ListNpmPackages": {
"methods": ["listNpmPackages", "listNpmPackages", "listNpmPackages", "listNpmPackagesPagedCallable", "listNpmPackagesCallable"]
},
"ListPackages": {
"methods": ["listPackages", "listPackages", "listPackagesPagedCallable", "listPackagesCallable"]
"methods": ["listPackages", "listPackages", "listPackages", "listPackagesPagedCallable", "listPackagesCallable"]
},
"ListPythonPackages": {
"methods": ["listPythonPackages", "listPythonPackages", "listPythonPackages", "listPythonPackagesPagedCallable", "listPythonPackagesCallable"]
},
"ListRepositories": {
"methods": ["listRepositories", "listRepositories", "listRepositories", "listRepositoriesPagedCallable", "listRepositoriesCallable"]
Expand All @@ -96,6 +117,9 @@
},
"UpdateTag": {
"methods": ["updateTag", "updateTag", "updateTagCallable"]
},
"UpdateVPCSCConfig": {
"methods": ["updateVPCSCConfig", "updateVPCSCConfig", "updateVPCSCConfigCallable"]
}
}
}
Expand Down
Expand Up @@ -19,7 +19,10 @@
import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListDockerImagesPagedResponse;
import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListFilesPagedResponse;
import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListLocationsPagedResponse;
import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListMavenArtifactsPagedResponse;
import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListNpmPackagesPagedResponse;
import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListPackagesPagedResponse;
import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListPythonPackagesPagedResponse;
import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListRepositoriesPagedResponse;
import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListTagsPagedResponse;
import static com.google.devtools.artifactregistry.v1.ArtifactRegistryClient.ListVersionsPagedResponse;
Expand All @@ -41,10 +44,14 @@
import com.google.devtools.artifactregistry.v1.File;
import com.google.devtools.artifactregistry.v1.GetDockerImageRequest;
import com.google.devtools.artifactregistry.v1.GetFileRequest;
import com.google.devtools.artifactregistry.v1.GetMavenArtifactRequest;
import com.google.devtools.artifactregistry.v1.GetNpmPackageRequest;
import com.google.devtools.artifactregistry.v1.GetPackageRequest;
import com.google.devtools.artifactregistry.v1.GetProjectSettingsRequest;
import com.google.devtools.artifactregistry.v1.GetPythonPackageRequest;
import com.google.devtools.artifactregistry.v1.GetRepositoryRequest;
import com.google.devtools.artifactregistry.v1.GetTagRequest;
import com.google.devtools.artifactregistry.v1.GetVPCSCConfigRequest;
import com.google.devtools.artifactregistry.v1.GetVersionRequest;
import com.google.devtools.artifactregistry.v1.ImportAptArtifactsMetadata;
import com.google.devtools.artifactregistry.v1.ImportAptArtifactsRequest;
Expand All @@ -56,22 +63,33 @@
import com.google.devtools.artifactregistry.v1.ListDockerImagesResponse;
import com.google.devtools.artifactregistry.v1.ListFilesRequest;
import com.google.devtools.artifactregistry.v1.ListFilesResponse;
import com.google.devtools.artifactregistry.v1.ListMavenArtifactsRequest;
import com.google.devtools.artifactregistry.v1.ListMavenArtifactsResponse;
import com.google.devtools.artifactregistry.v1.ListNpmPackagesRequest;
import com.google.devtools.artifactregistry.v1.ListNpmPackagesResponse;
import com.google.devtools.artifactregistry.v1.ListPackagesRequest;
import com.google.devtools.artifactregistry.v1.ListPackagesResponse;
import com.google.devtools.artifactregistry.v1.ListPythonPackagesRequest;
import com.google.devtools.artifactregistry.v1.ListPythonPackagesResponse;
import com.google.devtools.artifactregistry.v1.ListRepositoriesRequest;
import com.google.devtools.artifactregistry.v1.ListRepositoriesResponse;
import com.google.devtools.artifactregistry.v1.ListTagsRequest;
import com.google.devtools.artifactregistry.v1.ListTagsResponse;
import com.google.devtools.artifactregistry.v1.ListVersionsRequest;
import com.google.devtools.artifactregistry.v1.ListVersionsResponse;
import com.google.devtools.artifactregistry.v1.MavenArtifact;
import com.google.devtools.artifactregistry.v1.NpmPackage;
import com.google.devtools.artifactregistry.v1.OperationMetadata;
import com.google.devtools.artifactregistry.v1.Package;
import com.google.devtools.artifactregistry.v1.ProjectSettings;
import com.google.devtools.artifactregistry.v1.PythonPackage;
import com.google.devtools.artifactregistry.v1.Repository;
import com.google.devtools.artifactregistry.v1.Tag;
import com.google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest;
import com.google.devtools.artifactregistry.v1.UpdateRepositoryRequest;
import com.google.devtools.artifactregistry.v1.UpdateTagRequest;
import com.google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest;
import com.google.devtools.artifactregistry.v1.VPCSCConfig;
import com.google.devtools.artifactregistry.v1.Version;
import com.google.iam.v1.GetIamPolicyRequest;
import com.google.iam.v1.Policy;
Expand Down Expand Up @@ -114,6 +132,47 @@ public UnaryCallable<GetDockerImageRequest, DockerImage> getDockerImageCallable(
throw new UnsupportedOperationException("Not implemented: getDockerImageCallable()");
}

public UnaryCallable<ListMavenArtifactsRequest, ListMavenArtifactsPagedResponse>
listMavenArtifactsPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listMavenArtifactsPagedCallable()");
}

public UnaryCallable<ListMavenArtifactsRequest, ListMavenArtifactsResponse>
listMavenArtifactsCallable() {
throw new UnsupportedOperationException("Not implemented: listMavenArtifactsCallable()");
}

public UnaryCallable<GetMavenArtifactRequest, MavenArtifact> getMavenArtifactCallable() {
throw new UnsupportedOperationException("Not implemented: getMavenArtifactCallable()");
}

public UnaryCallable<ListNpmPackagesRequest, ListNpmPackagesPagedResponse>
listNpmPackagesPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listNpmPackagesPagedCallable()");
}

public UnaryCallable<ListNpmPackagesRequest, ListNpmPackagesResponse> listNpmPackagesCallable() {
throw new UnsupportedOperationException("Not implemented: listNpmPackagesCallable()");
}

public UnaryCallable<GetNpmPackageRequest, NpmPackage> getNpmPackageCallable() {
throw new UnsupportedOperationException("Not implemented: getNpmPackageCallable()");
}

public UnaryCallable<ListPythonPackagesRequest, ListPythonPackagesPagedResponse>
listPythonPackagesPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listPythonPackagesPagedCallable()");
}

public UnaryCallable<ListPythonPackagesRequest, ListPythonPackagesResponse>
listPythonPackagesCallable() {
throw new UnsupportedOperationException("Not implemented: listPythonPackagesCallable()");
}

public UnaryCallable<GetPythonPackageRequest, PythonPackage> getPythonPackageCallable() {
throw new UnsupportedOperationException("Not implemented: getPythonPackageCallable()");
}

public OperationCallable<
ImportAptArtifactsRequest, ImportAptArtifactsResponse, ImportAptArtifactsMetadata>
importAptArtifactsOperationCallable() {
Expand Down Expand Up @@ -272,6 +331,14 @@ public UnaryCallable<GetProjectSettingsRequest, ProjectSettings> getProjectSetti
throw new UnsupportedOperationException("Not implemented: updateProjectSettingsCallable()");
}

public UnaryCallable<GetVPCSCConfigRequest, VPCSCConfig> getVPCSCConfigCallable() {
throw new UnsupportedOperationException("Not implemented: getVPCSCConfigCallable()");
}

public UnaryCallable<UpdateVPCSCConfigRequest, VPCSCConfig> updateVPCSCConfigCallable() {
throw new UnsupportedOperationException("Not implemented: updateVPCSCConfigCallable()");
}

public UnaryCallable<ListLocationsRequest, ListLocationsPagedResponse>
listLocationsPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
Expand Down

0 comments on commit 6e35902

Please sign in to comment.