| 1 | // Copyright 2022 Google LLC |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| 15 | // Code generated by aliasgen. DO NOT EDIT. |
| 16 | |
| 17 | // Package asset aliases all exported identifiers in package |
| 18 | // "cloud.google.com/go/asset/apiv1p2beta1/assetpb". |
| 19 | // |
| 20 | // Deprecated: Please use types in: cloud.google.com/go/asset/apiv1p2beta1/assetpb. |
| 21 | // Please read https://github.com/googleapis/google-cloud-go/blob/main/migration.md |
| 22 | // for more details. |
| 23 | package asset |
| 24 | |
| 25 | import ( |
| 26 | src "cloud.google.com/go/asset/apiv1p2beta1/assetpb" |
| 27 | grpc "google.golang.org/grpc" |
| 28 | ) |
| 29 | |
| 30 | // Deprecated: Please use consts in: cloud.google.com/go/asset/apiv1p2beta1/assetpb |
| 31 | const ( |
| 32 | ContentType_CONTENT_TYPE_UNSPECIFIED = src.ContentType_CONTENT_TYPE_UNSPECIFIED |
| 33 | ContentType_IAM_POLICY = src.ContentType_IAM_POLICY |
| 34 | ContentType_RESOURCE = src.ContentType_RESOURCE |
| 35 | ) |
| 36 | |
| 37 | // Deprecated: Please use vars in: cloud.google.com/go/asset/apiv1p2beta1/assetpb |
| 38 | var ( |
| 39 | ContentType_name = src.ContentType_name |
| 40 | ContentType_value = src.ContentType_value |
| 41 | File_google_cloud_asset_v1p2beta1_asset_service_proto = src.File_google_cloud_asset_v1p2beta1_asset_service_proto |
| 42 | File_google_cloud_asset_v1p2beta1_assets_proto = src.File_google_cloud_asset_v1p2beta1_assets_proto |
| 43 | ) |
| 44 | |
| 45 | // Cloud asset. This includes all Google Cloud Platform resources, Cloud IAM |
| 46 | // policies, and other non-GCP assets. |
| 47 | // |
| 48 | // Deprecated: Please use types in: cloud.google.com/go/asset/apiv1p2beta1/assetpb |
| 49 | type Asset = src.Asset |
| 50 | |
| 51 | // AssetServiceClient is the client API for AssetService service. For |
| 52 | // semantics around ctx use and closing/ending streaming RPCs, please refer to |
| 53 | // https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 54 | // |
| 55 | // Deprecated: Please use types in: cloud.google.com/go/asset/apiv1p2beta1/assetpb |
| 56 | type AssetServiceClient = src.AssetServiceClient |
| 57 | |
| 58 | // AssetServiceServer is the server API for AssetService service. |
| 59 | // |
| 60 | // Deprecated: Please use types in: cloud.google.com/go/asset/apiv1p2beta1/assetpb |
| 61 | type AssetServiceServer = src.AssetServiceServer |
| 62 | |
| 63 | // Asset content type. |
| 64 | // |
| 65 | // Deprecated: Please use types in: cloud.google.com/go/asset/apiv1p2beta1/assetpb |
| 66 | type ContentType = src.ContentType |
| 67 | |
| 68 | // Create asset feed request. |
| 69 | // |
| 70 | // Deprecated: Please use types in: cloud.google.com/go/asset/apiv1p2beta1/assetpb |
| 71 | type CreateFeedRequest = src.CreateFeedRequest |
| 72 | type DeleteFeedRequest = src.DeleteFeedRequest |
| 73 | |
| 74 | // An asset feed used to export asset updates to a destinations. An asset feed |
| 75 | // filter controls what updates are exported. The asset feed must be created |
| 76 | // within a project, organization, or folder. Supported destinations are: Cloud |
| 77 | // Pub/Sub topics. |
| 78 | // |
| 79 | // Deprecated: Please use types in: cloud.google.com/go/asset/apiv1p2beta1/assetpb |
| 80 | type Feed = src.Feed |
| 81 | |
| 82 | // Output configuration for asset feed destination. |
| 83 | // |
| 84 | // Deprecated: Please use types in: cloud.google.com/go/asset/apiv1p2beta1/assetpb |
| 85 | type FeedOutputConfig = src.FeedOutputConfig |
| 86 | type FeedOutputConfig_PubsubDestination = src.FeedOutputConfig_PubsubDestination |
| 87 | |
| 88 | // A Cloud Storage location. |
| 89 | // |
| 90 | // Deprecated: Please use types in: cloud.google.com/go/asset/apiv1p2beta1/assetpb |
| 91 | type GcsDestination = src.GcsDestination |
| 92 | type GcsDestination_Uri = src.GcsDestination_Uri |
| 93 | |
| 94 | // Get asset feed request. |
| 95 | // |
| 96 | // Deprecated: Please use types in: cloud.google.com/go/asset/apiv1p2beta1/assetpb |
| 97 | type GetFeedRequest = src.GetFeedRequest |
| 98 | |
| 99 | // List asset feeds request. |
| 100 | // |
| 101 | // Deprecated: Please use types in: cloud.google.com/go/asset/apiv1p2beta1/assetpb |
| 102 | type ListFeedsRequest = src.ListFeedsRequest |
| 103 | type ListFeedsResponse = src.ListFeedsResponse |
| 104 | |
| 105 | // Output configuration for export assets destination. |
| 106 | // |
| 107 | // Deprecated: Please use types in: cloud.google.com/go/asset/apiv1p2beta1/assetpb |
| 108 | type OutputConfig = src.OutputConfig |
| 109 | type OutputConfig_GcsDestination = src.OutputConfig_GcsDestination |
| 110 | |
| 111 | // A Cloud Pubsub destination. |
| 112 | // |
| 113 | // Deprecated: Please use types in: cloud.google.com/go/asset/apiv1p2beta1/assetpb |
| 114 | type PubsubDestination = src.PubsubDestination |
| 115 | |
| 116 | // Representation of a cloud resource. |
| 117 | // |
| 118 | // Deprecated: Please use types in: cloud.google.com/go/asset/apiv1p2beta1/assetpb |
| 119 | type Resource = src.Resource |
| 120 | |
| 121 | // Temporal asset. In addition to the asset, the temporal asset includes the |
| 122 | // status of the asset and valid from and to time of it. |
| 123 | // |
| 124 | // Deprecated: Please use types in: cloud.google.com/go/asset/apiv1p2beta1/assetpb |
| 125 | type TemporalAsset = src.TemporalAsset |
| 126 | |
| 127 | // A time window of (start_time, end_time]. |
| 128 | // |
| 129 | // Deprecated: Please use types in: cloud.google.com/go/asset/apiv1p2beta1/assetpb |
| 130 | type TimeWindow = src.TimeWindow |
| 131 | |
| 132 | // UnimplementedAssetServiceServer can be embedded to have forward compatible |
| 133 | // implementations. |
| 134 | // |
| 135 | // Deprecated: Please use types in: cloud.google.com/go/asset/apiv1p2beta1/assetpb |
| 136 | type UnimplementedAssetServiceServer = src.UnimplementedAssetServiceServer |
| 137 | |
| 138 | // Update asset feed request. |
| 139 | // |
| 140 | // Deprecated: Please use types in: cloud.google.com/go/asset/apiv1p2beta1/assetpb |
| 141 | type UpdateFeedRequest = src.UpdateFeedRequest |
| 142 | |
| 143 | // Deprecated: Please use funcs in: cloud.google.com/go/asset/apiv1p2beta1/assetpb |
| 144 | func NewAssetServiceClient(cc grpc.ClientConnInterface) AssetServiceClient { |
| 145 | return src.NewAssetServiceClient(cc) |
| 146 | } |
| 147 | |
| 148 | // Deprecated: Please use funcs in: cloud.google.com/go/asset/apiv1p2beta1/assetpb |
| 149 | func RegisterAssetServiceServer(s *grpc.Server, srv AssetServiceServer) { |
| 150 | src.RegisterAssetServiceServer(s, srv) |
| 151 | } |