Documentation ¶
Index ¶
- func RegisterAssetServiceServer(s *grpc.Server, srv AssetServiceServer)
- type AssetServiceClient
- type AssetServiceServer
- type IamPolicySearchResult
- func (*IamPolicySearchResult) Descriptor() ([]byte, []int)
- func (m *IamPolicySearchResult) GetExplanation() *IamPolicySearchResult_Explanation
- func (m *IamPolicySearchResult) GetPolicy() *v1.Policy
- func (m *IamPolicySearchResult) GetProject() string
- func (m *IamPolicySearchResult) GetResource() string
- func (*IamPolicySearchResult) ProtoMessage()
- func (m *IamPolicySearchResult) Reset()
- func (m *IamPolicySearchResult) String() string
- func (m *IamPolicySearchResult) XXX_DiscardUnknown()
- func (m *IamPolicySearchResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IamPolicySearchResult) XXX_Merge(src proto.Message)
- func (m *IamPolicySearchResult) XXX_Size() int
- func (m *IamPolicySearchResult) XXX_Unmarshal(b []byte) error
- type IamPolicySearchResult_Explanation
- func (*IamPolicySearchResult_Explanation) Descriptor() ([]byte, []int)
- func (m *IamPolicySearchResult_Explanation) GetMatchedPermissions() map[string]*Permissions
- func (*IamPolicySearchResult_Explanation) ProtoMessage()
- func (m *IamPolicySearchResult_Explanation) Reset()
- func (m *IamPolicySearchResult_Explanation) String() string
- func (m *IamPolicySearchResult_Explanation) XXX_DiscardUnknown()
- func (m *IamPolicySearchResult_Explanation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IamPolicySearchResult_Explanation) XXX_Merge(src proto.Message)
- func (m *IamPolicySearchResult_Explanation) XXX_Size() int
- func (m *IamPolicySearchResult_Explanation) XXX_Unmarshal(b []byte) error
- type Permissions
- func (*Permissions) Descriptor() ([]byte, []int)
- func (m *Permissions) GetPermissions() []string
- func (*Permissions) ProtoMessage()
- func (m *Permissions) Reset()
- func (m *Permissions) String() string
- func (m *Permissions) XXX_DiscardUnknown()
- func (m *Permissions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Permissions) XXX_Merge(src proto.Message)
- func (m *Permissions) XXX_Size() int
- func (m *Permissions) XXX_Unmarshal(b []byte) error
- type SearchAllIamPoliciesRequest
- func (*SearchAllIamPoliciesRequest) Descriptor() ([]byte, []int)
- func (m *SearchAllIamPoliciesRequest) GetPageSize() int32
- func (m *SearchAllIamPoliciesRequest) GetPageToken() string
- func (m *SearchAllIamPoliciesRequest) GetQuery() string
- func (m *SearchAllIamPoliciesRequest) GetScope() string
- func (*SearchAllIamPoliciesRequest) ProtoMessage()
- func (m *SearchAllIamPoliciesRequest) Reset()
- func (m *SearchAllIamPoliciesRequest) String() string
- func (m *SearchAllIamPoliciesRequest) XXX_DiscardUnknown()
- func (m *SearchAllIamPoliciesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SearchAllIamPoliciesRequest) XXX_Merge(src proto.Message)
- func (m *SearchAllIamPoliciesRequest) XXX_Size() int
- func (m *SearchAllIamPoliciesRequest) XXX_Unmarshal(b []byte) error
- type SearchAllIamPoliciesResponse
- func (*SearchAllIamPoliciesResponse) Descriptor() ([]byte, []int)
- func (m *SearchAllIamPoliciesResponse) GetNextPageToken() string
- func (m *SearchAllIamPoliciesResponse) GetResults() []*IamPolicySearchResult
- func (*SearchAllIamPoliciesResponse) ProtoMessage()
- func (m *SearchAllIamPoliciesResponse) Reset()
- func (m *SearchAllIamPoliciesResponse) String() string
- func (m *SearchAllIamPoliciesResponse) XXX_DiscardUnknown()
- func (m *SearchAllIamPoliciesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SearchAllIamPoliciesResponse) XXX_Merge(src proto.Message)
- func (m *SearchAllIamPoliciesResponse) XXX_Size() int
- func (m *SearchAllIamPoliciesResponse) XXX_Unmarshal(b []byte) error
- type SearchAllResourcesRequest
- func (*SearchAllResourcesRequest) Descriptor() ([]byte, []int)
- func (m *SearchAllResourcesRequest) GetAssetTypes() []string
- func (m *SearchAllResourcesRequest) GetOrderBy() string
- func (m *SearchAllResourcesRequest) GetPageSize() int32
- func (m *SearchAllResourcesRequest) GetPageToken() string
- func (m *SearchAllResourcesRequest) GetQuery() string
- func (m *SearchAllResourcesRequest) GetScope() string
- func (*SearchAllResourcesRequest) ProtoMessage()
- func (m *SearchAllResourcesRequest) Reset()
- func (m *SearchAllResourcesRequest) String() string
- func (m *SearchAllResourcesRequest) XXX_DiscardUnknown()
- func (m *SearchAllResourcesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SearchAllResourcesRequest) XXX_Merge(src proto.Message)
- func (m *SearchAllResourcesRequest) XXX_Size() int
- func (m *SearchAllResourcesRequest) XXX_Unmarshal(b []byte) error
- type SearchAllResourcesResponse
- func (*SearchAllResourcesResponse) Descriptor() ([]byte, []int)
- func (m *SearchAllResourcesResponse) GetNextPageToken() string
- func (m *SearchAllResourcesResponse) GetResults() []*StandardResourceMetadata
- func (*SearchAllResourcesResponse) ProtoMessage()
- func (m *SearchAllResourcesResponse) Reset()
- func (m *SearchAllResourcesResponse) String() string
- func (m *SearchAllResourcesResponse) XXX_DiscardUnknown()
- func (m *SearchAllResourcesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SearchAllResourcesResponse) XXX_Merge(src proto.Message)
- func (m *SearchAllResourcesResponse) XXX_Size() int
- func (m *SearchAllResourcesResponse) XXX_Unmarshal(b []byte) error
- type StandardResourceMetadata
- func (*StandardResourceMetadata) Descriptor() ([]byte, []int)
- func (m *StandardResourceMetadata) GetAdditionalAttributes() []string
- func (m *StandardResourceMetadata) GetAssetType() string
- func (m *StandardResourceMetadata) GetDescription() string
- func (m *StandardResourceMetadata) GetDisplayName() string
- func (m *StandardResourceMetadata) GetLabels() map[string]string
- func (m *StandardResourceMetadata) GetLocation() string
- func (m *StandardResourceMetadata) GetName() string
- func (m *StandardResourceMetadata) GetNetworkTags() []string
- func (m *StandardResourceMetadata) GetProject() string
- func (*StandardResourceMetadata) ProtoMessage()
- func (m *StandardResourceMetadata) Reset()
- func (m *StandardResourceMetadata) String() string
- func (m *StandardResourceMetadata) XXX_DiscardUnknown()
- func (m *StandardResourceMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StandardResourceMetadata) XXX_Merge(src proto.Message)
- func (m *StandardResourceMetadata) XXX_Size() int
- func (m *StandardResourceMetadata) XXX_Unmarshal(b []byte) error
- type UnimplementedAssetServiceServer
- func (*UnimplementedAssetServiceServer) SearchAllIamPolicies(ctx context.Context, req *SearchAllIamPoliciesRequest) (*SearchAllIamPoliciesResponse, error)
- func (*UnimplementedAssetServiceServer) SearchAllResources(ctx context.Context, req *SearchAllResourcesRequest) (*SearchAllResourcesResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAssetServiceServer ¶
func RegisterAssetServiceServer(s *grpc.Server, srv AssetServiceServer)
Types ¶
type AssetServiceClient ¶
type AssetServiceClient interface { // Searches all the resources under a given accessible CRM scope // (project/folder/organization). This RPC gives callers // especially admins the ability to search all the resources under a scope, // even if they don't have .get permission of all the resources. Callers // should have cloud.assets.SearchAllResources permission on the requested // scope, otherwise it will be rejected. SearchAllResources(ctx context.Context, in *SearchAllResourcesRequest, opts ...grpc.CallOption) (*SearchAllResourcesResponse, error) // Searches all the IAM policies under a given accessible CRM scope // (project/folder/organization). This RPC gives callers // especially admins the ability to search all the IAM policies under a scope, // even if they don't have .getIamPolicy permission of all the IAM policies. // Callers should have cloud.assets.SearchAllIamPolicies permission on the // requested scope, otherwise it will be rejected. SearchAllIamPolicies(ctx context.Context, in *SearchAllIamPoliciesRequest, opts ...grpc.CallOption) (*SearchAllIamPoliciesResponse, error) }
AssetServiceClient is the client API for AssetService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAssetServiceClient ¶
func NewAssetServiceClient(cc grpc.ClientConnInterface) AssetServiceClient
type AssetServiceServer ¶
type AssetServiceServer interface { // Searches all the resources under a given accessible CRM scope // (project/folder/organization). This RPC gives callers // especially admins the ability to search all the resources under a scope, // even if they don't have .get permission of all the resources. Callers // should have cloud.assets.SearchAllResources permission on the requested // scope, otherwise it will be rejected. SearchAllResources(context.Context, *SearchAllResourcesRequest) (*SearchAllResourcesResponse, error) // Searches all the IAM policies under a given accessible CRM scope // (project/folder/organization). This RPC gives callers // especially admins the ability to search all the IAM policies under a scope, // even if they don't have .getIamPolicy permission of all the IAM policies. // Callers should have cloud.assets.SearchAllIamPolicies permission on the // requested scope, otherwise it will be rejected. SearchAllIamPolicies(context.Context, *SearchAllIamPoliciesRequest) (*SearchAllIamPoliciesResponse, error) }
AssetServiceServer is the server API for AssetService service.
type IamPolicySearchResult ¶
type IamPolicySearchResult struct { // The [full resource // name](https://cloud.google.com/apis/design/resource_names#full_resource_name) // of the resource associated with this IAM policy. Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` // The project that the associated GCP resource belongs to, in the form of // `projects/{project_number}`. If an IAM policy is set on a resource (like VM // instance, Cloud Storage bucket), the project field will indicate the // project that contains the resource. If an IAM policy is set on a folder or // orgnization, the project field will be empty. Project string `protobuf:"bytes,3,opt,name=project,proto3" json:"project,omitempty"` // The IAM policy directly set on the given resource. Note that the original // IAM policy can contain multiple bindings. This only contains the bindings // that match the given query. For queries that don't contain a constrain on // policies (e.g. an empty query), this contains all the bindings. Policy *v1.Policy `protobuf:"bytes,4,opt,name=policy,proto3" json:"policy,omitempty"` // Explanation about the IAM policy search result. It contains additional // information to explain why the search result matches the query. Explanation *IamPolicySearchResult_Explanation `protobuf:"bytes,5,opt,name=explanation,proto3" json:"explanation,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The result for a IAM Policy search.
func (*IamPolicySearchResult) Descriptor ¶
func (*IamPolicySearchResult) Descriptor() ([]byte, []int)
func (*IamPolicySearchResult) GetExplanation ¶
func (m *IamPolicySearchResult) GetExplanation() *IamPolicySearchResult_Explanation
func (*IamPolicySearchResult) GetPolicy ¶
func (m *IamPolicySearchResult) GetPolicy() *v1.Policy
func (*IamPolicySearchResult) GetProject ¶
func (m *IamPolicySearchResult) GetProject() string
func (*IamPolicySearchResult) GetResource ¶
func (m *IamPolicySearchResult) GetResource() string
func (*IamPolicySearchResult) ProtoMessage ¶
func (*IamPolicySearchResult) ProtoMessage()
func (*IamPolicySearchResult) Reset ¶
func (m *IamPolicySearchResult) Reset()
func (*IamPolicySearchResult) String ¶
func (m *IamPolicySearchResult) String() string
func (*IamPolicySearchResult) XXX_DiscardUnknown ¶
func (m *IamPolicySearchResult) XXX_DiscardUnknown()
func (*IamPolicySearchResult) XXX_Marshal ¶
func (m *IamPolicySearchResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IamPolicySearchResult) XXX_Merge ¶
func (m *IamPolicySearchResult) XXX_Merge(src proto.Message)
func (*IamPolicySearchResult) XXX_Size ¶
func (m *IamPolicySearchResult) XXX_Size() int
func (*IamPolicySearchResult) XXX_Unmarshal ¶
func (m *IamPolicySearchResult) XXX_Unmarshal(b []byte) error
type IamPolicySearchResult_Explanation ¶
type IamPolicySearchResult_Explanation struct { // The map from roles to their included permission matching the permission // query (e.g. containing `policy.role.permissions:`). A sample role string: // "roles/compute.instanceAdmin". The roles can also be found in the // returned `policy` bindings. Note that the map is populated only if // requesting with a permission query. MatchedPermissions map[string]*Permissions `` /* 203-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Explanation about the IAM policy search result.
func (*IamPolicySearchResult_Explanation) Descriptor ¶
func (*IamPolicySearchResult_Explanation) Descriptor() ([]byte, []int)
func (*IamPolicySearchResult_Explanation) GetMatchedPermissions ¶
func (m *IamPolicySearchResult_Explanation) GetMatchedPermissions() map[string]*Permissions
func (*IamPolicySearchResult_Explanation) ProtoMessage ¶
func (*IamPolicySearchResult_Explanation) ProtoMessage()
func (*IamPolicySearchResult_Explanation) Reset ¶
func (m *IamPolicySearchResult_Explanation) Reset()
func (*IamPolicySearchResult_Explanation) String ¶
func (m *IamPolicySearchResult_Explanation) String() string
func (*IamPolicySearchResult_Explanation) XXX_DiscardUnknown ¶
func (m *IamPolicySearchResult_Explanation) XXX_DiscardUnknown()
func (*IamPolicySearchResult_Explanation) XXX_Marshal ¶
func (m *IamPolicySearchResult_Explanation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IamPolicySearchResult_Explanation) XXX_Merge ¶
func (m *IamPolicySearchResult_Explanation) XXX_Merge(src proto.Message)
func (*IamPolicySearchResult_Explanation) XXX_Size ¶
func (m *IamPolicySearchResult_Explanation) XXX_Size() int
func (*IamPolicySearchResult_Explanation) XXX_Unmarshal ¶
func (m *IamPolicySearchResult_Explanation) XXX_Unmarshal(b []byte) error
type Permissions ¶
type Permissions struct { // A list of permissions. A sample permission string: "compute.disk.get". Permissions []string `protobuf:"bytes,1,rep,name=permissions,proto3" json:"permissions,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
IAM permissions
func (*Permissions) Descriptor ¶
func (*Permissions) Descriptor() ([]byte, []int)
func (*Permissions) GetPermissions ¶
func (m *Permissions) GetPermissions() []string
func (*Permissions) ProtoMessage ¶
func (*Permissions) ProtoMessage()
func (*Permissions) Reset ¶
func (m *Permissions) Reset()
func (*Permissions) String ¶
func (m *Permissions) String() string
func (*Permissions) XXX_DiscardUnknown ¶
func (m *Permissions) XXX_DiscardUnknown()
func (*Permissions) XXX_Marshal ¶
func (m *Permissions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Permissions) XXX_Merge ¶
func (m *Permissions) XXX_Merge(src proto.Message)
func (*Permissions) XXX_Size ¶
func (m *Permissions) XXX_Size() int
func (*Permissions) XXX_Unmarshal ¶
func (m *Permissions) XXX_Unmarshal(b []byte) error
type SearchAllIamPoliciesRequest ¶
type SearchAllIamPoliciesRequest struct { // Required. The relative name of an asset. The search is limited to the resources // within the `scope`. The allowed value must be: // * Organization number (such as "organizations/123") // * Folder number(such as "folders/1234") // * Project number (such as "projects/12345") // * Project id (such as "projects/abc") Scope string `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"` // Optional. The query statement. // Examples: // * "policy:myuser@mydomain.com" // * "policy:(myuser@mydomain.com viewer)" Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` // Optional. The page size for search result pagination. Page size is capped at 500 even // if a larger value is given. If set to zero, server will pick an appropriate // default. Returned results may be fewer than requested. When this happens, // there could be more results as long as `next_page_token` is returned. PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // Optional. If present, retrieve the next batch of results from the preceding call to // this method. `page_token` must be the value of `next_page_token` from the // previous response. The values of all other method parameters must be // identical to those in the previous call. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Search all IAM policies request.
func (*SearchAllIamPoliciesRequest) Descriptor ¶
func (*SearchAllIamPoliciesRequest) Descriptor() ([]byte, []int)
func (*SearchAllIamPoliciesRequest) GetPageSize ¶
func (m *SearchAllIamPoliciesRequest) GetPageSize() int32
func (*SearchAllIamPoliciesRequest) GetPageToken ¶
func (m *SearchAllIamPoliciesRequest) GetPageToken() string
func (*SearchAllIamPoliciesRequest) GetQuery ¶
func (m *SearchAllIamPoliciesRequest) GetQuery() string
func (*SearchAllIamPoliciesRequest) GetScope ¶
func (m *SearchAllIamPoliciesRequest) GetScope() string
func (*SearchAllIamPoliciesRequest) ProtoMessage ¶
func (*SearchAllIamPoliciesRequest) ProtoMessage()
func (*SearchAllIamPoliciesRequest) Reset ¶
func (m *SearchAllIamPoliciesRequest) Reset()
func (*SearchAllIamPoliciesRequest) String ¶
func (m *SearchAllIamPoliciesRequest) String() string
func (*SearchAllIamPoliciesRequest) XXX_DiscardUnknown ¶
func (m *SearchAllIamPoliciesRequest) XXX_DiscardUnknown()
func (*SearchAllIamPoliciesRequest) XXX_Marshal ¶
func (m *SearchAllIamPoliciesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SearchAllIamPoliciesRequest) XXX_Merge ¶
func (m *SearchAllIamPoliciesRequest) XXX_Merge(src proto.Message)
func (*SearchAllIamPoliciesRequest) XXX_Size ¶
func (m *SearchAllIamPoliciesRequest) XXX_Size() int
func (*SearchAllIamPoliciesRequest) XXX_Unmarshal ¶
func (m *SearchAllIamPoliciesRequest) XXX_Unmarshal(b []byte) error
type SearchAllIamPoliciesResponse ¶
type SearchAllIamPoliciesResponse struct { // A list of IamPolicy that match the search query. Related information such // as the associated resource is returned along with the policy. Results []*IamPolicySearchResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // Set if there are more results than those appearing in this response; to get // the next set of results, call this method again, using this value as the // `page_token`. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Search all IAM policies response.
func (*SearchAllIamPoliciesResponse) Descriptor ¶
func (*SearchAllIamPoliciesResponse) Descriptor() ([]byte, []int)
func (*SearchAllIamPoliciesResponse) GetNextPageToken ¶
func (m *SearchAllIamPoliciesResponse) GetNextPageToken() string
func (*SearchAllIamPoliciesResponse) GetResults ¶
func (m *SearchAllIamPoliciesResponse) GetResults() []*IamPolicySearchResult
func (*SearchAllIamPoliciesResponse) ProtoMessage ¶
func (*SearchAllIamPoliciesResponse) ProtoMessage()
func (*SearchAllIamPoliciesResponse) Reset ¶
func (m *SearchAllIamPoliciesResponse) Reset()
func (*SearchAllIamPoliciesResponse) String ¶
func (m *SearchAllIamPoliciesResponse) String() string
func (*SearchAllIamPoliciesResponse) XXX_DiscardUnknown ¶
func (m *SearchAllIamPoliciesResponse) XXX_DiscardUnknown()
func (*SearchAllIamPoliciesResponse) XXX_Marshal ¶
func (m *SearchAllIamPoliciesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SearchAllIamPoliciesResponse) XXX_Merge ¶
func (m *SearchAllIamPoliciesResponse) XXX_Merge(src proto.Message)
func (*SearchAllIamPoliciesResponse) XXX_Size ¶
func (m *SearchAllIamPoliciesResponse) XXX_Size() int
func (*SearchAllIamPoliciesResponse) XXX_Unmarshal ¶
func (m *SearchAllIamPoliciesResponse) XXX_Unmarshal(b []byte) error
type SearchAllResourcesRequest ¶
type SearchAllResourcesRequest struct { // Required. The relative name of an asset. The search is limited to the resources // within the `scope`. The allowed value must be: // * Organization number (such as "organizations/123") // * Folder number(such as "folders/1234") // * Project number (such as "projects/12345") // * Project id (such as "projects/abc") Scope string `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"` // Optional. The query statement. Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` // Optional. A list of asset types that this request searches for. If empty, it will // search all the supported asset types. AssetTypes []string `protobuf:"bytes,3,rep,name=asset_types,json=assetTypes,proto3" json:"asset_types,omitempty"` // Optional. The page size for search result pagination. Page size is capped at 500 even // if a larger value is given. If set to zero, server will pick an appropriate // default. Returned results may be fewer than requested. When this happens, // there could be more results as long as `next_page_token` is returned. PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // Optional. If present, then retrieve the next batch of results from the preceding call // to this method. `page_token` must be the value of `next_page_token` from // the previous response. The values of all other method parameters, must be // identical to those in the previous call. PageToken string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Optional. A comma separated list of fields specifying the sorting order of the // results. The default order is ascending. Add " desc" after the field name // to indicate descending order. Redundant space characters are ignored. For // example, " foo , bar desc ". OrderBy string `protobuf:"bytes,10,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Search all resources request.
func (*SearchAllResourcesRequest) Descriptor ¶
func (*SearchAllResourcesRequest) Descriptor() ([]byte, []int)
func (*SearchAllResourcesRequest) GetAssetTypes ¶
func (m *SearchAllResourcesRequest) GetAssetTypes() []string
func (*SearchAllResourcesRequest) GetOrderBy ¶
func (m *SearchAllResourcesRequest) GetOrderBy() string
func (*SearchAllResourcesRequest) GetPageSize ¶
func (m *SearchAllResourcesRequest) GetPageSize() int32
func (*SearchAllResourcesRequest) GetPageToken ¶
func (m *SearchAllResourcesRequest) GetPageToken() string
func (*SearchAllResourcesRequest) GetQuery ¶
func (m *SearchAllResourcesRequest) GetQuery() string
func (*SearchAllResourcesRequest) GetScope ¶
func (m *SearchAllResourcesRequest) GetScope() string
func (*SearchAllResourcesRequest) ProtoMessage ¶
func (*SearchAllResourcesRequest) ProtoMessage()
func (*SearchAllResourcesRequest) Reset ¶
func (m *SearchAllResourcesRequest) Reset()
func (*SearchAllResourcesRequest) String ¶
func (m *SearchAllResourcesRequest) String() string
func (*SearchAllResourcesRequest) XXX_DiscardUnknown ¶
func (m *SearchAllResourcesRequest) XXX_DiscardUnknown()
func (*SearchAllResourcesRequest) XXX_Marshal ¶
func (m *SearchAllResourcesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SearchAllResourcesRequest) XXX_Merge ¶
func (m *SearchAllResourcesRequest) XXX_Merge(src proto.Message)
func (*SearchAllResourcesRequest) XXX_Size ¶
func (m *SearchAllResourcesRequest) XXX_Size() int
func (*SearchAllResourcesRequest) XXX_Unmarshal ¶
func (m *SearchAllResourcesRequest) XXX_Unmarshal(b []byte) error
type SearchAllResourcesResponse ¶
type SearchAllResourcesResponse struct { // A list of resource that match the search query. Results []*StandardResourceMetadata `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // If there are more results than those appearing in this response, then // `next_page_token` is included. To get the next set of results, call this // method again using the value of `next_page_token` as `page_token`. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Search all resources response.
func (*SearchAllResourcesResponse) Descriptor ¶
func (*SearchAllResourcesResponse) Descriptor() ([]byte, []int)
func (*SearchAllResourcesResponse) GetNextPageToken ¶
func (m *SearchAllResourcesResponse) GetNextPageToken() string
func (*SearchAllResourcesResponse) GetResults ¶
func (m *SearchAllResourcesResponse) GetResults() []*StandardResourceMetadata
func (*SearchAllResourcesResponse) ProtoMessage ¶
func (*SearchAllResourcesResponse) ProtoMessage()
func (*SearchAllResourcesResponse) Reset ¶
func (m *SearchAllResourcesResponse) Reset()
func (*SearchAllResourcesResponse) String ¶
func (m *SearchAllResourcesResponse) String() string
func (*SearchAllResourcesResponse) XXX_DiscardUnknown ¶
func (m *SearchAllResourcesResponse) XXX_DiscardUnknown()
func (*SearchAllResourcesResponse) XXX_Marshal ¶
func (m *SearchAllResourcesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SearchAllResourcesResponse) XXX_Merge ¶
func (m *SearchAllResourcesResponse) XXX_Merge(src proto.Message)
func (*SearchAllResourcesResponse) XXX_Size ¶
func (m *SearchAllResourcesResponse) XXX_Size() int
func (*SearchAllResourcesResponse) XXX_Unmarshal ¶
func (m *SearchAllResourcesResponse) XXX_Unmarshal(b []byte) error
type StandardResourceMetadata ¶
type StandardResourceMetadata struct { // The full resource name. For example: // `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. // See [Resource // Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) // for more information. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The type of this resource. // For example: "compute.googleapis.com/Disk". AssetType string `protobuf:"bytes,2,opt,name=asset_type,json=assetType,proto3" json:"asset_type,omitempty"` // The project that this resource belongs to, in the form of // `projects/{project_number}`. Project string `protobuf:"bytes,3,opt,name=project,proto3" json:"project,omitempty"` // The display name of this resource. DisplayName string `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // One or more paragraphs of text description of this resource. Maximum length // could be up to 1M bytes. Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` // Additional searchable attributes of this resource. // Informational only. The exact set of attributes is subject to change. // For example: project id, DNS name etc. AdditionalAttributes []string `protobuf:"bytes,10,rep,name=additional_attributes,json=additionalAttributes,proto3" json:"additional_attributes,omitempty"` // Location can be "global", regional like "us-east1", or zonal like // "us-west1-b". Location string `protobuf:"bytes,11,opt,name=location,proto3" json:"location,omitempty"` // Labels associated with this resource. See [Labelling and grouping GCP // resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) // for more information. Labels map[string]string `` /* 154-byte string literal not displayed */ // Network tags associated with this resource. Like labels, network tags are a // type of annotations used to group GCP resources. See [Labelling GCP // resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) // for more information. NetworkTags []string `protobuf:"bytes,13,rep,name=network_tags,json=networkTags,proto3" json:"network_tags,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The standard metadata of a cloud resource.
func (*StandardResourceMetadata) Descriptor ¶
func (*StandardResourceMetadata) Descriptor() ([]byte, []int)
func (*StandardResourceMetadata) GetAdditionalAttributes ¶
func (m *StandardResourceMetadata) GetAdditionalAttributes() []string
func (*StandardResourceMetadata) GetAssetType ¶
func (m *StandardResourceMetadata) GetAssetType() string
func (*StandardResourceMetadata) GetDescription ¶
func (m *StandardResourceMetadata) GetDescription() string
func (*StandardResourceMetadata) GetDisplayName ¶
func (m *StandardResourceMetadata) GetDisplayName() string
func (*StandardResourceMetadata) GetLabels ¶
func (m *StandardResourceMetadata) GetLabels() map[string]string
func (*StandardResourceMetadata) GetLocation ¶
func (m *StandardResourceMetadata) GetLocation() string
func (*StandardResourceMetadata) GetName ¶
func (m *StandardResourceMetadata) GetName() string
func (*StandardResourceMetadata) GetNetworkTags ¶
func (m *StandardResourceMetadata) GetNetworkTags() []string
func (*StandardResourceMetadata) GetProject ¶
func (m *StandardResourceMetadata) GetProject() string
func (*StandardResourceMetadata) ProtoMessage ¶
func (*StandardResourceMetadata) ProtoMessage()
func (*StandardResourceMetadata) Reset ¶
func (m *StandardResourceMetadata) Reset()
func (*StandardResourceMetadata) String ¶
func (m *StandardResourceMetadata) String() string
func (*StandardResourceMetadata) XXX_DiscardUnknown ¶
func (m *StandardResourceMetadata) XXX_DiscardUnknown()
func (*StandardResourceMetadata) XXX_Marshal ¶
func (m *StandardResourceMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StandardResourceMetadata) XXX_Merge ¶
func (m *StandardResourceMetadata) XXX_Merge(src proto.Message)
func (*StandardResourceMetadata) XXX_Size ¶
func (m *StandardResourceMetadata) XXX_Size() int
func (*StandardResourceMetadata) XXX_Unmarshal ¶
func (m *StandardResourceMetadata) XXX_Unmarshal(b []byte) error
type UnimplementedAssetServiceServer ¶
type UnimplementedAssetServiceServer struct { }
UnimplementedAssetServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedAssetServiceServer) SearchAllIamPolicies ¶
func (*UnimplementedAssetServiceServer) SearchAllIamPolicies(ctx context.Context, req *SearchAllIamPoliciesRequest) (*SearchAllIamPoliciesResponse, error)
func (*UnimplementedAssetServiceServer) SearchAllResources ¶
func (*UnimplementedAssetServiceServer) SearchAllResources(ctx context.Context, req *SearchAllResourcesRequest) (*SearchAllResourcesResponse, error)
Click to show internal directories.
Click to hide internal directories.