Skip to content

Commit

Permalink
feat: Add client library support for AssetService v1 SavedQuery APIs
Browse files Browse the repository at this point in the history
Committer: jeffreyai@

PiperOrigin-RevId: 475366952

Source-Link: googleapis/googleapis@7428dad

Source-Link: https://github.com/googleapis/googleapis-gen/commit/5629e2ab728443a1a6abb03f34f925d5cd4e0c47
Copy-Tag: eyJwIjoiamF2YS1hc3NldC8uT3dsQm90LnlhbWwiLCJoIjoiNTYyOWUyYWI3Mjg0NDNhMWE2YWJiMDNmMzRmOTI1ZDVjZDRlMGM0NyJ9
  • Loading branch information
gcf-owl-bot[bot] committed Sep 20, 2022
1 parent 419fd18 commit f70f032
Show file tree
Hide file tree
Showing 434 changed files with 216,524 additions and 0 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"schema": "1.0",
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "java",
"protoPackage": "google.cloud.asset.v1",
"libraryPackage": "com.google.cloud.asset.v1",
"services": {
"AssetService": {
"clients": {
"grpc": {
"libraryClient": "AssetServiceClient",
"rpcs": {
"AnalyzeIamPolicy": {
"methods": ["analyzeIamPolicy", "analyzeIamPolicyCallable"]
},
"AnalyzeIamPolicyLongrunning": {
"methods": ["analyzeIamPolicyLongrunningAsync", "analyzeIamPolicyLongrunningOperationCallable", "analyzeIamPolicyLongrunningCallable"]
},
"AnalyzeMove": {
"methods": ["analyzeMove", "analyzeMoveCallable"]
},
"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"]
},
"QueryAssets": {
"methods": ["queryAssets", "queryAssetsCallable"]
},
"SearchAllIamPolicies": {
"methods": ["searchAllIamPolicies", "searchAllIamPolicies", "searchAllIamPoliciesPagedCallable", "searchAllIamPoliciesCallable"]
},
"SearchAllResources": {
"methods": ["searchAllResources", "searchAllResources", "searchAllResourcesPagedCallable", "searchAllResourcesCallable"]
},
"UpdateFeed": {
"methods": ["updateFeed", "updateFeed", "updateFeedCallable"]
},
"UpdateSavedQuery": {
"methods": ["updateSavedQuery", "updateSavedQuery", "updateSavedQueryCallable"]
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/*
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/**
* The interfaces provided are listed below, along with usage samples.
*
* <p>======================= AssetServiceClient =======================
*
* <p>Service Description: Asset service definition.
*
* <p>Sample for AssetServiceClient:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
* BatchGetAssetsHistoryRequest request =
* BatchGetAssetsHistoryRequest.newBuilder()
* .setParent(BillingAccountName.of("[BILLING_ACCOUNT]").toString())
* .addAllAssetNames(new ArrayList<String>())
* .setContentType(ContentType.forNumber(0))
* .setReadTimeWindow(TimeWindow.newBuilder().build())
* .addAllRelationshipTypes(new ArrayList<String>())
* .build();
* BatchGetAssetsHistoryResponse response = assetServiceClient.batchGetAssetsHistory(request);
* }
* }</pre>
*/
@Generated("by gapic-generator-java")
package com.google.cloud.asset.v1;

import javax.annotation.Generated;
Original file line number Diff line number Diff line change
@@ -0,0 +1,208 @@
/*
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

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;

import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata;
import com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest;
import com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse;
import com.google.cloud.asset.v1.AnalyzeIamPolicyRequest;
import com.google.cloud.asset.v1.AnalyzeIamPolicyResponse;
import com.google.cloud.asset.v1.AnalyzeMoveRequest;
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.QueryAssetsRequest;
import com.google.cloud.asset.v1.QueryAssetsResponse;
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;
import javax.annotation.Generated;

// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
* Base stub class for the AssetService service API.
*
* <p>This class is for advanced usage and reflects the underlying API directly.
*/
@Generated("by gapic-generator-java")
public abstract class AssetServiceStub implements BackgroundResource {

public OperationsStub getOperationsStub() {
return null;
}

public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() {
return null;
}

public OperationCallable<ExportAssetsRequest, ExportAssetsResponse, ExportAssetsRequest>
exportAssetsOperationCallable() {
throw new UnsupportedOperationException("Not implemented: exportAssetsOperationCallable()");
}

public UnaryCallable<ExportAssetsRequest, Operation> exportAssetsCallable() {
throw new UnsupportedOperationException("Not implemented: exportAssetsCallable()");
}

public UnaryCallable<ListAssetsRequest, ListAssetsPagedResponse> listAssetsPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listAssetsPagedCallable()");
}

public UnaryCallable<ListAssetsRequest, ListAssetsResponse> listAssetsCallable() {
throw new UnsupportedOperationException("Not implemented: listAssetsCallable()");
}

public UnaryCallable<BatchGetAssetsHistoryRequest, BatchGetAssetsHistoryResponse>
batchGetAssetsHistoryCallable() {
throw new UnsupportedOperationException("Not implemented: batchGetAssetsHistoryCallable()");
}

public UnaryCallable<CreateFeedRequest, Feed> createFeedCallable() {
throw new UnsupportedOperationException("Not implemented: createFeedCallable()");
}

public UnaryCallable<GetFeedRequest, Feed> getFeedCallable() {
throw new UnsupportedOperationException("Not implemented: getFeedCallable()");
}

public UnaryCallable<ListFeedsRequest, ListFeedsResponse> listFeedsCallable() {
throw new UnsupportedOperationException("Not implemented: listFeedsCallable()");
}

public UnaryCallable<UpdateFeedRequest, Feed> updateFeedCallable() {
throw new UnsupportedOperationException("Not implemented: updateFeedCallable()");
}

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

public UnaryCallable<SearchAllResourcesRequest, SearchAllResourcesPagedResponse>
searchAllResourcesPagedCallable() {
throw new UnsupportedOperationException("Not implemented: searchAllResourcesPagedCallable()");
}

public UnaryCallable<SearchAllResourcesRequest, SearchAllResourcesResponse>
searchAllResourcesCallable() {
throw new UnsupportedOperationException("Not implemented: searchAllResourcesCallable()");
}

public UnaryCallable<SearchAllIamPoliciesRequest, SearchAllIamPoliciesPagedResponse>
searchAllIamPoliciesPagedCallable() {
throw new UnsupportedOperationException("Not implemented: searchAllIamPoliciesPagedCallable()");
}

public UnaryCallable<SearchAllIamPoliciesRequest, SearchAllIamPoliciesResponse>
searchAllIamPoliciesCallable() {
throw new UnsupportedOperationException("Not implemented: searchAllIamPoliciesCallable()");
}

public UnaryCallable<AnalyzeIamPolicyRequest, AnalyzeIamPolicyResponse>
analyzeIamPolicyCallable() {
throw new UnsupportedOperationException("Not implemented: analyzeIamPolicyCallable()");
}

public OperationCallable<
AnalyzeIamPolicyLongrunningRequest,
AnalyzeIamPolicyLongrunningResponse,
AnalyzeIamPolicyLongrunningMetadata>
analyzeIamPolicyLongrunningOperationCallable() {
throw new UnsupportedOperationException(
"Not implemented: analyzeIamPolicyLongrunningOperationCallable()");
}

public UnaryCallable<AnalyzeIamPolicyLongrunningRequest, Operation>
analyzeIamPolicyLongrunningCallable() {
throw new UnsupportedOperationException(
"Not implemented: analyzeIamPolicyLongrunningCallable()");
}

public UnaryCallable<AnalyzeMoveRequest, AnalyzeMoveResponse> analyzeMoveCallable() {
throw new UnsupportedOperationException("Not implemented: analyzeMoveCallable()");
}

public UnaryCallable<QueryAssetsRequest, QueryAssetsResponse> queryAssetsCallable() {
throw new UnsupportedOperationException("Not implemented: queryAssetsCallable()");
}

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 f70f032

Please sign in to comment.