Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
feat: Add SavedQuery CURD support (#1211)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

feat: Add tags support
feat!:*Add RelatedAsset and deprecate RelatedAssets for relationship GA

*The previous representation of the relationship feature is deprecated and unimplemented. The RelatedAsset message represents the new stable format.

PiperOrigin-RevId: 449306805

Source-Link: googleapis/googleapis@3d7bd9d

Source-Link: googleapis/googleapis-gen@71a93d0
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzFhOTNkMDVkNjA3NjI3MWQwNGI3NTkyZjdmYWQwZDNmMGM3YTA0MCJ9
  • Loading branch information
gcf-owl-bot[bot] committed May 18, 2022
1 parent efccf59 commit 0ddf192
Show file tree
Hide file tree
Showing 76 changed files with 25,438 additions and 2,142 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package com.google.cloud.asset.v1;

import static com.google.cloud.asset.v1.AssetServiceClient.ListAssetsPagedResponse;
import static com.google.cloud.asset.v1.AssetServiceClient.ListSavedQueriesPagedResponse;
import static com.google.cloud.asset.v1.AssetServiceClient.SearchAllIamPoliciesPagedResponse;
import static com.google.cloud.asset.v1.AssetServiceClient.SearchAllResourcesPagedResponse;

Expand Down Expand Up @@ -166,6 +167,40 @@ public UnaryCallSettings<AnalyzeMoveRequest, AnalyzeMoveResponse> analyzeMoveSet
return ((AssetServiceStubSettings) getStubSettings()).analyzeMoveSettings();
}

/** Returns the object with the settings used for calls to createSavedQuery. */
public UnaryCallSettings<CreateSavedQueryRequest, SavedQuery> createSavedQuerySettings() {
return ((AssetServiceStubSettings) getStubSettings()).createSavedQuerySettings();
}

/** Returns the object with the settings used for calls to getSavedQuery. */
public UnaryCallSettings<GetSavedQueryRequest, SavedQuery> getSavedQuerySettings() {
return ((AssetServiceStubSettings) getStubSettings()).getSavedQuerySettings();
}

/** Returns the object with the settings used for calls to listSavedQueries. */
public PagedCallSettings<
ListSavedQueriesRequest, ListSavedQueriesResponse, ListSavedQueriesPagedResponse>
listSavedQueriesSettings() {
return ((AssetServiceStubSettings) getStubSettings()).listSavedQueriesSettings();
}

/** Returns the object with the settings used for calls to updateSavedQuery. */
public UnaryCallSettings<UpdateSavedQueryRequest, SavedQuery> updateSavedQuerySettings() {
return ((AssetServiceStubSettings) getStubSettings()).updateSavedQuerySettings();
}

/** Returns the object with the settings used for calls to deleteSavedQuery. */
public UnaryCallSettings<DeleteSavedQueryRequest, Empty> deleteSavedQuerySettings() {
return ((AssetServiceStubSettings) getStubSettings()).deleteSavedQuerySettings();
}

/** Returns the object with the settings used for calls to batchGetEffectiveIamPolicies. */
public UnaryCallSettings<
BatchGetEffectiveIamPoliciesRequest, BatchGetEffectiveIamPoliciesResponse>
batchGetEffectiveIamPoliciesSettings() {
return ((AssetServiceStubSettings) getStubSettings()).batchGetEffectiveIamPoliciesSettings();
}

public static final AssetServiceSettings create(AssetServiceStubSettings stub)
throws IOException {
return new AssetServiceSettings.Builder(stub.toBuilder()).build();
Expand Down Expand Up @@ -355,6 +390,42 @@ public UnaryCallSettings.Builder<DeleteFeedRequest, Empty> deleteFeedSettings()
return getStubSettingsBuilder().analyzeMoveSettings();
}

/** Returns the builder for the settings used for calls to createSavedQuery. */
public UnaryCallSettings.Builder<CreateSavedQueryRequest, SavedQuery>
createSavedQuerySettings() {
return getStubSettingsBuilder().createSavedQuerySettings();
}

/** Returns the builder for the settings used for calls to getSavedQuery. */
public UnaryCallSettings.Builder<GetSavedQueryRequest, SavedQuery> getSavedQuerySettings() {
return getStubSettingsBuilder().getSavedQuerySettings();
}

/** Returns the builder for the settings used for calls to listSavedQueries. */
public PagedCallSettings.Builder<
ListSavedQueriesRequest, ListSavedQueriesResponse, ListSavedQueriesPagedResponse>
listSavedQueriesSettings() {
return getStubSettingsBuilder().listSavedQueriesSettings();
}

/** Returns the builder for the settings used for calls to updateSavedQuery. */
public UnaryCallSettings.Builder<UpdateSavedQueryRequest, SavedQuery>
updateSavedQuerySettings() {
return getStubSettingsBuilder().updateSavedQuerySettings();
}

/** Returns the builder for the settings used for calls to deleteSavedQuery. */
public UnaryCallSettings.Builder<DeleteSavedQueryRequest, Empty> deleteSavedQuerySettings() {
return getStubSettingsBuilder().deleteSavedQuerySettings();
}

/** Returns the builder for the settings used for calls to batchGetEffectiveIamPolicies. */
public UnaryCallSettings.Builder<
BatchGetEffectiveIamPoliciesRequest, BatchGetEffectiveIamPoliciesResponse>
batchGetEffectiveIamPoliciesSettings() {
return getStubSettingsBuilder().batchGetEffectiveIamPoliciesSettings();
}

@Override
public AssetServiceSettings build() throws IOException {
return new AssetServiceSettings(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,39 @@
"BatchGetAssetsHistory": {
"methods": ["batchGetAssetsHistory", "batchGetAssetsHistoryCallable"]
},
"BatchGetEffectiveIamPolicies": {
"methods": ["batchGetEffectiveIamPolicies", "batchGetEffectiveIamPoliciesCallable"]
},
"CreateFeed": {
"methods": ["createFeed", "createFeed", "createFeedCallable"]
},
"CreateSavedQuery": {
"methods": ["createSavedQuery", "createSavedQuery", "createSavedQuery", "createSavedQuery", "createSavedQuery", "createSavedQueryCallable"]
},
"DeleteFeed": {
"methods": ["deleteFeed", "deleteFeed", "deleteFeed", "deleteFeedCallable"]
},
"DeleteSavedQuery": {
"methods": ["deleteSavedQuery", "deleteSavedQuery", "deleteSavedQuery", "deleteSavedQueryCallable"]
},
"ExportAssets": {
"methods": ["exportAssetsAsync", "exportAssetsOperationCallable", "exportAssetsCallable"]
},
"GetFeed": {
"methods": ["getFeed", "getFeed", "getFeed", "getFeedCallable"]
},
"GetSavedQuery": {
"methods": ["getSavedQuery", "getSavedQuery", "getSavedQuery", "getSavedQueryCallable"]
},
"ListAssets": {
"methods": ["listAssets", "listAssets", "listAssets", "listAssetsPagedCallable", "listAssetsCallable"]
},
"ListFeeds": {
"methods": ["listFeeds", "listFeeds", "listFeedsCallable"]
},
"ListSavedQueries": {
"methods": ["listSavedQueries", "listSavedQueries", "listSavedQueries", "listSavedQueries", "listSavedQueries", "listSavedQueriesPagedCallable", "listSavedQueriesCallable"]
},
"SearchAllIamPolicies": {
"methods": ["searchAllIamPolicies", "searchAllIamPolicies", "searchAllIamPoliciesPagedCallable", "searchAllIamPoliciesCallable"]
},
Expand All @@ -48,6 +63,9 @@
},
"UpdateFeed": {
"methods": ["updateFeed", "updateFeed", "updateFeedCallable"]
},
"UpdateSavedQuery": {
"methods": ["updateSavedQuery", "updateSavedQuery", "updateSavedQueryCallable"]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package com.google.cloud.asset.v1.stub;

import static com.google.cloud.asset.v1.AssetServiceClient.ListAssetsPagedResponse;
import static com.google.cloud.asset.v1.AssetServiceClient.ListSavedQueriesPagedResponse;
import static com.google.cloud.asset.v1.AssetServiceClient.SearchAllIamPoliciesPagedResponse;
import static com.google.cloud.asset.v1.AssetServiceClient.SearchAllResourcesPagedResponse;

Expand All @@ -32,21 +33,30 @@
import com.google.cloud.asset.v1.AnalyzeMoveResponse;
import com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest;
import com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse;
import com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest;
import com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse;
import com.google.cloud.asset.v1.CreateFeedRequest;
import com.google.cloud.asset.v1.CreateSavedQueryRequest;
import com.google.cloud.asset.v1.DeleteFeedRequest;
import com.google.cloud.asset.v1.DeleteSavedQueryRequest;
import com.google.cloud.asset.v1.ExportAssetsRequest;
import com.google.cloud.asset.v1.ExportAssetsResponse;
import com.google.cloud.asset.v1.Feed;
import com.google.cloud.asset.v1.GetFeedRequest;
import com.google.cloud.asset.v1.GetSavedQueryRequest;
import com.google.cloud.asset.v1.ListAssetsRequest;
import com.google.cloud.asset.v1.ListAssetsResponse;
import com.google.cloud.asset.v1.ListFeedsRequest;
import com.google.cloud.asset.v1.ListFeedsResponse;
import com.google.cloud.asset.v1.ListSavedQueriesRequest;
import com.google.cloud.asset.v1.ListSavedQueriesResponse;
import com.google.cloud.asset.v1.SavedQuery;
import com.google.cloud.asset.v1.SearchAllIamPoliciesRequest;
import com.google.cloud.asset.v1.SearchAllIamPoliciesResponse;
import com.google.cloud.asset.v1.SearchAllResourcesRequest;
import com.google.cloud.asset.v1.SearchAllResourcesResponse;
import com.google.cloud.asset.v1.UpdateFeedRequest;
import com.google.cloud.asset.v1.UpdateSavedQueryRequest;
import com.google.longrunning.Operation;
import com.google.longrunning.stub.OperationsStub;
import com.google.protobuf.Empty;
Expand Down Expand Up @@ -151,6 +161,38 @@ public UnaryCallable<AnalyzeMoveRequest, AnalyzeMoveResponse> analyzeMoveCallabl
throw new UnsupportedOperationException("Not implemented: analyzeMoveCallable()");
}

public UnaryCallable<CreateSavedQueryRequest, SavedQuery> createSavedQueryCallable() {
throw new UnsupportedOperationException("Not implemented: createSavedQueryCallable()");
}

public UnaryCallable<GetSavedQueryRequest, SavedQuery> getSavedQueryCallable() {
throw new UnsupportedOperationException("Not implemented: getSavedQueryCallable()");
}

public UnaryCallable<ListSavedQueriesRequest, ListSavedQueriesPagedResponse>
listSavedQueriesPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listSavedQueriesPagedCallable()");
}

public UnaryCallable<ListSavedQueriesRequest, ListSavedQueriesResponse>
listSavedQueriesCallable() {
throw new UnsupportedOperationException("Not implemented: listSavedQueriesCallable()");
}

public UnaryCallable<UpdateSavedQueryRequest, SavedQuery> updateSavedQueryCallable() {
throw new UnsupportedOperationException("Not implemented: updateSavedQueryCallable()");
}

public UnaryCallable<DeleteSavedQueryRequest, Empty> deleteSavedQueryCallable() {
throw new UnsupportedOperationException("Not implemented: deleteSavedQueryCallable()");
}

public UnaryCallable<BatchGetEffectiveIamPoliciesRequest, BatchGetEffectiveIamPoliciesResponse>
batchGetEffectiveIamPoliciesCallable() {
throw new UnsupportedOperationException(
"Not implemented: batchGetEffectiveIamPoliciesCallable()");
}

@Override
public abstract void close();
}
Loading

0 comments on commit 0ddf192

Please sign in to comment.