Documentation ¶
Overview ¶
Package datacatalog provides access to the Google Cloud Data Catalog API.
For product documentation, see: https://cloud.google.com/data-catalog/docs/
Creating a client ¶
Usage example:
import "google.golang.org/api/datacatalog/v1beta1" ... ctx := context.Background() datacatalogService, err := datacatalog.NewService(ctx)
In this example, Google Application Default Credentials are used for authentication.
For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options ¶
To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
datacatalogService, err := datacatalog.NewService(ctx, option.WithAPIKey("AIza..."))
To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:
config := &oauth2.Config{...} // ... token, err := config.Exchange(ctx, ...) datacatalogService, err := datacatalog.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
See https://godoc.org/google.golang.org/api/option/ for details on options.
Index ¶
- Constants
- type Binding
- type CatalogSearchCall
- func (c *CatalogSearchCall) Context(ctx context.Context) *CatalogSearchCall
- func (c *CatalogSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1beta1SearchCatalogResponse, error)
- func (c *CatalogSearchCall) Fields(s ...googleapi.Field) *CatalogSearchCall
- func (c *CatalogSearchCall) Header() http.Header
- func (c *CatalogSearchCall) Pages(ctx context.Context, ...) error
- type CatalogService
- type Empty
- type EntriesLookupCall
- func (c *EntriesLookupCall) Context(ctx context.Context) *EntriesLookupCall
- func (c *EntriesLookupCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1beta1Entry, error)
- func (c *EntriesLookupCall) Fields(s ...googleapi.Field) *EntriesLookupCall
- func (c *EntriesLookupCall) Header() http.Header
- func (c *EntriesLookupCall) IfNoneMatch(entityTag string) *EntriesLookupCall
- func (c *EntriesLookupCall) LinkedResource(linkedResource string) *EntriesLookupCall
- func (c *EntriesLookupCall) SqlResource(sqlResource string) *EntriesLookupCall
- type EntriesService
- type Expr
- type GetIamPolicyRequest
- type GetPolicyOptions
- type GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec
- type GoogleCloudDatacatalogV1beta1BigQueryTableSpec
- type GoogleCloudDatacatalogV1beta1ColumnSchema
- type GoogleCloudDatacatalogV1beta1Entry
- type GoogleCloudDatacatalogV1beta1EntryGroup
- type GoogleCloudDatacatalogV1beta1FieldType
- type GoogleCloudDatacatalogV1beta1FieldTypeEnumType
- type GoogleCloudDatacatalogV1beta1FieldTypeEnumTypeEnumValue
- type GoogleCloudDatacatalogV1beta1GcsFileSpec
- type GoogleCloudDatacatalogV1beta1GcsFilesetSpec
- type GoogleCloudDatacatalogV1beta1ListTagsResponse
- type GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldRequest
- type GoogleCloudDatacatalogV1beta1Schema
- type GoogleCloudDatacatalogV1beta1SearchCatalogRequest
- type GoogleCloudDatacatalogV1beta1SearchCatalogRequestScope
- type GoogleCloudDatacatalogV1beta1SearchCatalogResponse
- type GoogleCloudDatacatalogV1beta1SearchCatalogResult
- type GoogleCloudDatacatalogV1beta1SystemTimestamps
- type GoogleCloudDatacatalogV1beta1TableSpec
- type GoogleCloudDatacatalogV1beta1Tag
- type GoogleCloudDatacatalogV1beta1TagField
- type GoogleCloudDatacatalogV1beta1TagFieldEnumValue
- type GoogleCloudDatacatalogV1beta1TagTemplate
- type GoogleCloudDatacatalogV1beta1TagTemplateField
- type GoogleCloudDatacatalogV1beta1ViewSpec
- type Policy
- type ProjectsLocationsEntryGroupsCreateCall
- func (c *ProjectsLocationsEntryGroupsCreateCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsCreateCall
- func (c *ProjectsLocationsEntryGroupsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1beta1EntryGroup, error)
- func (c *ProjectsLocationsEntryGroupsCreateCall) EntryGroupId(entryGroupId string) *ProjectsLocationsEntryGroupsCreateCall
- func (c *ProjectsLocationsEntryGroupsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsCreateCall
- func (c *ProjectsLocationsEntryGroupsCreateCall) Header() http.Header
- type ProjectsLocationsEntryGroupsDeleteCall
- func (c *ProjectsLocationsEntryGroupsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsDeleteCall
- func (c *ProjectsLocationsEntryGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsEntryGroupsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsDeleteCall
- func (c *ProjectsLocationsEntryGroupsDeleteCall) Header() http.Header
- type ProjectsLocationsEntryGroupsEntriesCreateCall
- func (c *ProjectsLocationsEntryGroupsEntriesCreateCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesCreateCall
- func (c *ProjectsLocationsEntryGroupsEntriesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1beta1Entry, error)
- func (c *ProjectsLocationsEntryGroupsEntriesCreateCall) EntryId(entryId string) *ProjectsLocationsEntryGroupsEntriesCreateCall
- func (c *ProjectsLocationsEntryGroupsEntriesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesCreateCall
- func (c *ProjectsLocationsEntryGroupsEntriesCreateCall) Header() http.Header
- type ProjectsLocationsEntryGroupsEntriesDeleteCall
- func (c *ProjectsLocationsEntryGroupsEntriesDeleteCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesDeleteCall
- func (c *ProjectsLocationsEntryGroupsEntriesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsEntryGroupsEntriesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesDeleteCall
- func (c *ProjectsLocationsEntryGroupsEntriesDeleteCall) Header() http.Header
- type ProjectsLocationsEntryGroupsEntriesGetCall
- func (c *ProjectsLocationsEntryGroupsEntriesGetCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesGetCall
- func (c *ProjectsLocationsEntryGroupsEntriesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1beta1Entry, error)
- func (c *ProjectsLocationsEntryGroupsEntriesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesGetCall
- func (c *ProjectsLocationsEntryGroupsEntriesGetCall) Header() http.Header
- func (c *ProjectsLocationsEntryGroupsEntriesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEntryGroupsEntriesGetCall
- type ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall
- func (c *ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall
- func (c *ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall
- func (c *ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall) Header() http.Header
- type ProjectsLocationsEntryGroupsEntriesPatchCall
- func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesPatchCall
- func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1beta1Entry, error)
- func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesPatchCall
- func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) Header() http.Header
- func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsEntryGroupsEntriesPatchCall
- type ProjectsLocationsEntryGroupsEntriesService
- func (r *ProjectsLocationsEntryGroupsEntriesService) Create(parent string, ...) *ProjectsLocationsEntryGroupsEntriesCreateCall
- func (r *ProjectsLocationsEntryGroupsEntriesService) Delete(name string) *ProjectsLocationsEntryGroupsEntriesDeleteCall
- func (r *ProjectsLocationsEntryGroupsEntriesService) Get(name string) *ProjectsLocationsEntryGroupsEntriesGetCall
- func (r *ProjectsLocationsEntryGroupsEntriesService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall
- func (r *ProjectsLocationsEntryGroupsEntriesService) Patch(name string, ...) *ProjectsLocationsEntryGroupsEntriesPatchCall
- func (r *ProjectsLocationsEntryGroupsEntriesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsEntryGroupsEntriesSetIamPolicyCall
- func (r *ProjectsLocationsEntryGroupsEntriesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall
- type ProjectsLocationsEntryGroupsEntriesSetIamPolicyCall
- func (c *ProjectsLocationsEntryGroupsEntriesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesSetIamPolicyCall
- func (c *ProjectsLocationsEntryGroupsEntriesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsLocationsEntryGroupsEntriesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesSetIamPolicyCall
- func (c *ProjectsLocationsEntryGroupsEntriesSetIamPolicyCall) Header() http.Header
- type ProjectsLocationsEntryGroupsEntriesTagsCreateCall
- func (c *ProjectsLocationsEntryGroupsEntriesTagsCreateCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesTagsCreateCall
- func (c *ProjectsLocationsEntryGroupsEntriesTagsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1beta1Tag, error)
- func (c *ProjectsLocationsEntryGroupsEntriesTagsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesTagsCreateCall
- func (c *ProjectsLocationsEntryGroupsEntriesTagsCreateCall) Header() http.Header
- type ProjectsLocationsEntryGroupsEntriesTagsDeleteCall
- func (c *ProjectsLocationsEntryGroupsEntriesTagsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesTagsDeleteCall
- func (c *ProjectsLocationsEntryGroupsEntriesTagsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsEntryGroupsEntriesTagsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesTagsDeleteCall
- func (c *ProjectsLocationsEntryGroupsEntriesTagsDeleteCall) Header() http.Header
- type ProjectsLocationsEntryGroupsEntriesTagsListCall
- func (c *ProjectsLocationsEntryGroupsEntriesTagsListCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesTagsListCall
- func (c *ProjectsLocationsEntryGroupsEntriesTagsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1beta1ListTagsResponse, error)
- func (c *ProjectsLocationsEntryGroupsEntriesTagsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesTagsListCall
- func (c *ProjectsLocationsEntryGroupsEntriesTagsListCall) Header() http.Header
- func (c *ProjectsLocationsEntryGroupsEntriesTagsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEntryGroupsEntriesTagsListCall
- func (c *ProjectsLocationsEntryGroupsEntriesTagsListCall) PageSize(pageSize int64) *ProjectsLocationsEntryGroupsEntriesTagsListCall
- func (c *ProjectsLocationsEntryGroupsEntriesTagsListCall) PageToken(pageToken string) *ProjectsLocationsEntryGroupsEntriesTagsListCall
- func (c *ProjectsLocationsEntryGroupsEntriesTagsListCall) Pages(ctx context.Context, ...) error
- type ProjectsLocationsEntryGroupsEntriesTagsPatchCall
- func (c *ProjectsLocationsEntryGroupsEntriesTagsPatchCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesTagsPatchCall
- func (c *ProjectsLocationsEntryGroupsEntriesTagsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1beta1Tag, error)
- func (c *ProjectsLocationsEntryGroupsEntriesTagsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesTagsPatchCall
- func (c *ProjectsLocationsEntryGroupsEntriesTagsPatchCall) Header() http.Header
- func (c *ProjectsLocationsEntryGroupsEntriesTagsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsEntryGroupsEntriesTagsPatchCall
- type ProjectsLocationsEntryGroupsEntriesTagsService
- func (r *ProjectsLocationsEntryGroupsEntriesTagsService) Create(parent string, ...) *ProjectsLocationsEntryGroupsEntriesTagsCreateCall
- func (r *ProjectsLocationsEntryGroupsEntriesTagsService) Delete(name string) *ProjectsLocationsEntryGroupsEntriesTagsDeleteCall
- func (r *ProjectsLocationsEntryGroupsEntriesTagsService) List(parent string) *ProjectsLocationsEntryGroupsEntriesTagsListCall
- func (r *ProjectsLocationsEntryGroupsEntriesTagsService) Patch(nameid string, ...) *ProjectsLocationsEntryGroupsEntriesTagsPatchCall
- type ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall
- func (c *ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall
- func (c *ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
- func (c *ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall
- func (c *ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall) Header() http.Header
- type ProjectsLocationsEntryGroupsGetCall
- func (c *ProjectsLocationsEntryGroupsGetCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsGetCall
- func (c *ProjectsLocationsEntryGroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1beta1EntryGroup, error)
- func (c *ProjectsLocationsEntryGroupsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsGetCall
- func (c *ProjectsLocationsEntryGroupsGetCall) Header() http.Header
- func (c *ProjectsLocationsEntryGroupsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEntryGroupsGetCall
- func (c *ProjectsLocationsEntryGroupsGetCall) ReadMask(readMask string) *ProjectsLocationsEntryGroupsGetCall
- type ProjectsLocationsEntryGroupsGetIamPolicyCall
- func (c *ProjectsLocationsEntryGroupsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsGetIamPolicyCall
- func (c *ProjectsLocationsEntryGroupsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsLocationsEntryGroupsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsGetIamPolicyCall
- func (c *ProjectsLocationsEntryGroupsGetIamPolicyCall) Header() http.Header
- type ProjectsLocationsEntryGroupsService
- func (r *ProjectsLocationsEntryGroupsService) Create(parent string, ...) *ProjectsLocationsEntryGroupsCreateCall
- func (r *ProjectsLocationsEntryGroupsService) Delete(name string) *ProjectsLocationsEntryGroupsDeleteCall
- func (r *ProjectsLocationsEntryGroupsService) Get(name string) *ProjectsLocationsEntryGroupsGetCall
- func (r *ProjectsLocationsEntryGroupsService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsLocationsEntryGroupsGetIamPolicyCall
- func (r *ProjectsLocationsEntryGroupsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsEntryGroupsSetIamPolicyCall
- func (r *ProjectsLocationsEntryGroupsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsEntryGroupsTestIamPermissionsCall
- type ProjectsLocationsEntryGroupsSetIamPolicyCall
- func (c *ProjectsLocationsEntryGroupsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsSetIamPolicyCall
- func (c *ProjectsLocationsEntryGroupsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsLocationsEntryGroupsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsSetIamPolicyCall
- func (c *ProjectsLocationsEntryGroupsSetIamPolicyCall) Header() http.Header
- type ProjectsLocationsEntryGroupsTestIamPermissionsCall
- func (c *ProjectsLocationsEntryGroupsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsTestIamPermissionsCall
- func (c *ProjectsLocationsEntryGroupsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
- func (c *ProjectsLocationsEntryGroupsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsTestIamPermissionsCall
- func (c *ProjectsLocationsEntryGroupsTestIamPermissionsCall) Header() http.Header
- type ProjectsLocationsService
- type ProjectsLocationsTagTemplatesCreateCall
- func (c *ProjectsLocationsTagTemplatesCreateCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesCreateCall
- func (c *ProjectsLocationsTagTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1beta1TagTemplate, error)
- func (c *ProjectsLocationsTagTemplatesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesCreateCall
- func (c *ProjectsLocationsTagTemplatesCreateCall) Header() http.Header
- func (c *ProjectsLocationsTagTemplatesCreateCall) TagTemplateId(tagTemplateId string) *ProjectsLocationsTagTemplatesCreateCall
- type ProjectsLocationsTagTemplatesDeleteCall
- func (c *ProjectsLocationsTagTemplatesDeleteCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesDeleteCall
- func (c *ProjectsLocationsTagTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsTagTemplatesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesDeleteCall
- func (c *ProjectsLocationsTagTemplatesDeleteCall) Force(force bool) *ProjectsLocationsTagTemplatesDeleteCall
- func (c *ProjectsLocationsTagTemplatesDeleteCall) Header() http.Header
- type ProjectsLocationsTagTemplatesFieldsCreateCall
- func (c *ProjectsLocationsTagTemplatesFieldsCreateCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesFieldsCreateCall
- func (c *ProjectsLocationsTagTemplatesFieldsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1beta1TagTemplateField, error)
- func (c *ProjectsLocationsTagTemplatesFieldsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesFieldsCreateCall
- func (c *ProjectsLocationsTagTemplatesFieldsCreateCall) Header() http.Header
- func (c *ProjectsLocationsTagTemplatesFieldsCreateCall) TagTemplateFieldId(tagTemplateFieldId string) *ProjectsLocationsTagTemplatesFieldsCreateCall
- type ProjectsLocationsTagTemplatesFieldsDeleteCall
- func (c *ProjectsLocationsTagTemplatesFieldsDeleteCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesFieldsDeleteCall
- func (c *ProjectsLocationsTagTemplatesFieldsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsTagTemplatesFieldsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesFieldsDeleteCall
- func (c *ProjectsLocationsTagTemplatesFieldsDeleteCall) Force(force bool) *ProjectsLocationsTagTemplatesFieldsDeleteCall
- func (c *ProjectsLocationsTagTemplatesFieldsDeleteCall) Header() http.Header
- type ProjectsLocationsTagTemplatesFieldsPatchCall
- func (c *ProjectsLocationsTagTemplatesFieldsPatchCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesFieldsPatchCall
- func (c *ProjectsLocationsTagTemplatesFieldsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1beta1TagTemplateField, error)
- func (c *ProjectsLocationsTagTemplatesFieldsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesFieldsPatchCall
- func (c *ProjectsLocationsTagTemplatesFieldsPatchCall) Header() http.Header
- func (c *ProjectsLocationsTagTemplatesFieldsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsTagTemplatesFieldsPatchCall
- type ProjectsLocationsTagTemplatesFieldsRenameCall
- func (c *ProjectsLocationsTagTemplatesFieldsRenameCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesFieldsRenameCall
- func (c *ProjectsLocationsTagTemplatesFieldsRenameCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1beta1TagTemplateField, error)
- func (c *ProjectsLocationsTagTemplatesFieldsRenameCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesFieldsRenameCall
- func (c *ProjectsLocationsTagTemplatesFieldsRenameCall) Header() http.Header
- type ProjectsLocationsTagTemplatesFieldsService
- func (r *ProjectsLocationsTagTemplatesFieldsService) Create(parent string, ...) *ProjectsLocationsTagTemplatesFieldsCreateCall
- func (r *ProjectsLocationsTagTemplatesFieldsService) Delete(name string) *ProjectsLocationsTagTemplatesFieldsDeleteCall
- func (r *ProjectsLocationsTagTemplatesFieldsService) Patch(name string, ...) *ProjectsLocationsTagTemplatesFieldsPatchCall
- func (r *ProjectsLocationsTagTemplatesFieldsService) Rename(name string, ...) *ProjectsLocationsTagTemplatesFieldsRenameCall
- type ProjectsLocationsTagTemplatesGetCall
- func (c *ProjectsLocationsTagTemplatesGetCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesGetCall
- func (c *ProjectsLocationsTagTemplatesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1beta1TagTemplate, error)
- func (c *ProjectsLocationsTagTemplatesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesGetCall
- func (c *ProjectsLocationsTagTemplatesGetCall) Header() http.Header
- func (c *ProjectsLocationsTagTemplatesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsTagTemplatesGetCall
- type ProjectsLocationsTagTemplatesGetIamPolicyCall
- func (c *ProjectsLocationsTagTemplatesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesGetIamPolicyCall
- func (c *ProjectsLocationsTagTemplatesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsLocationsTagTemplatesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesGetIamPolicyCall
- func (c *ProjectsLocationsTagTemplatesGetIamPolicyCall) Header() http.Header
- type ProjectsLocationsTagTemplatesPatchCall
- func (c *ProjectsLocationsTagTemplatesPatchCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesPatchCall
- func (c *ProjectsLocationsTagTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1beta1TagTemplate, error)
- func (c *ProjectsLocationsTagTemplatesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesPatchCall
- func (c *ProjectsLocationsTagTemplatesPatchCall) Header() http.Header
- func (c *ProjectsLocationsTagTemplatesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsTagTemplatesPatchCall
- type ProjectsLocationsTagTemplatesService
- func (r *ProjectsLocationsTagTemplatesService) Create(parent string, ...) *ProjectsLocationsTagTemplatesCreateCall
- func (r *ProjectsLocationsTagTemplatesService) Delete(name string) *ProjectsLocationsTagTemplatesDeleteCall
- func (r *ProjectsLocationsTagTemplatesService) Get(name string) *ProjectsLocationsTagTemplatesGetCall
- func (r *ProjectsLocationsTagTemplatesService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsLocationsTagTemplatesGetIamPolicyCall
- func (r *ProjectsLocationsTagTemplatesService) Patch(name string, ...) *ProjectsLocationsTagTemplatesPatchCall
- func (r *ProjectsLocationsTagTemplatesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsTagTemplatesSetIamPolicyCall
- func (r *ProjectsLocationsTagTemplatesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsTagTemplatesTestIamPermissionsCall
- type ProjectsLocationsTagTemplatesSetIamPolicyCall
- func (c *ProjectsLocationsTagTemplatesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesSetIamPolicyCall
- func (c *ProjectsLocationsTagTemplatesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsLocationsTagTemplatesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesSetIamPolicyCall
- func (c *ProjectsLocationsTagTemplatesSetIamPolicyCall) Header() http.Header
- type ProjectsLocationsTagTemplatesTestIamPermissionsCall
- func (c *ProjectsLocationsTagTemplatesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesTestIamPermissionsCall
- func (c *ProjectsLocationsTagTemplatesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
- func (c *ProjectsLocationsTagTemplatesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesTestIamPermissionsCall
- func (c *ProjectsLocationsTagTemplatesTestIamPermissionsCall) Header() http.Header
- type ProjectsService
- type Service
- type SetIamPolicyRequest
- type TestIamPermissionsRequest
- type TestIamPermissionsResponse
Constants ¶
const (
// View and manage your data across Google Cloud Platform services
CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
)
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Binding ¶
type Binding struct { // Condition: The condition that is associated with this binding. // NOTE: An unsatisfied condition will not allow user access via // current // binding. Different bindings, including their conditions, are // examined // independently. Condition *Expr `json:"condition,omitempty"` // Members: Specifies the identities requesting access for a Cloud // Platform resource. // `members` can have the following values: // // * `allUsers`: A special identifier that represents anyone who is // on the internet; with or without a Google account. // // * `allAuthenticatedUsers`: A special identifier that represents // anyone // who is authenticated with a Google account or a service // account. // // * `user:{emailid}`: An email address that represents a specific // Google // account. For example, `alice@example.com` . // // // * `serviceAccount:{emailid}`: An email address that represents a // service // account. For example, // `my-other-app@appspot.gserviceaccount.com`. // // * `group:{emailid}`: An email address that represents a Google // group. // For example, `admins@example.com`. // // // * `domain:{domain}`: The G Suite domain (primary) that represents all // the // users of that domain. For example, `google.com` or // `example.com`. // // Members []string `json:"members,omitempty"` // Role: Role that is assigned to `members`. // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` // ForceSendFields is a list of field names (e.g. "Condition") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Condition") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Binding: Associates `members` with a `role`.
func (*Binding) MarshalJSON ¶
type CatalogSearchCall ¶
type CatalogSearchCall struct {
// contains filtered or unexported fields
}
func (*CatalogSearchCall) Context ¶
func (c *CatalogSearchCall) Context(ctx context.Context) *CatalogSearchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*CatalogSearchCall) Do ¶
func (c *CatalogSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1beta1SearchCatalogResponse, error)
Do executes the "datacatalog.catalog.search" call. Exactly one of *GoogleCloudDatacatalogV1beta1SearchCatalogResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDatacatalogV1beta1SearchCatalogResponse.ServerResponse.Hea der or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*CatalogSearchCall) Fields ¶
func (c *CatalogSearchCall) Fields(s ...googleapi.Field) *CatalogSearchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*CatalogSearchCall) Header ¶
func (c *CatalogSearchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*CatalogSearchCall) Pages ¶
func (c *CatalogSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDatacatalogV1beta1SearchCatalogResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type CatalogService ¶
type CatalogService struct {
// contains filtered or unexported fields
}
func NewCatalogService ¶
func NewCatalogService(s *Service) *CatalogService
func (*CatalogService) Search ¶
func (r *CatalogService) Search(googleclouddatacatalogv1beta1searchcatalogrequest *GoogleCloudDatacatalogV1beta1SearchCatalogRequest) *CatalogSearchCall
Search: Searches Data Catalog for multiple resources like entries, tags that match a query.
This is a custom method (https://cloud.google.com/apis/design/custom_methods) and does not return the complete resource, only the resource identifier and high level fields. Clients can subsequentally call `Get` methods.
Note that searches do not have full recall. There may be results that match your query but are not returned, even in subsequent pages of results. These missing results may vary across repeated calls to search. Do not rely on this method if you need to guarantee full recall.
See [Data Catalog Search Syntax](/data-catalog/docs/how-to/search-reference) for more information.
type Empty ¶
type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` }
Empty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance:
service Foo { rpc Bar(google.protobuf.Empty) returns
(google.protobuf.Empty);
}
The JSON representation for `Empty` is empty JSON object `{}`.
type EntriesLookupCall ¶
type EntriesLookupCall struct {
// contains filtered or unexported fields
}
func (*EntriesLookupCall) Context ¶
func (c *EntriesLookupCall) Context(ctx context.Context) *EntriesLookupCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*EntriesLookupCall) Do ¶
func (c *EntriesLookupCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1beta1Entry, error)
Do executes the "datacatalog.entries.lookup" call. Exactly one of *GoogleCloudDatacatalogV1beta1Entry or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDatacatalogV1beta1Entry.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*EntriesLookupCall) Fields ¶
func (c *EntriesLookupCall) Fields(s ...googleapi.Field) *EntriesLookupCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*EntriesLookupCall) Header ¶
func (c *EntriesLookupCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*EntriesLookupCall) IfNoneMatch ¶
func (c *EntriesLookupCall) IfNoneMatch(entityTag string) *EntriesLookupCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*EntriesLookupCall) LinkedResource ¶
func (c *EntriesLookupCall) LinkedResource(linkedResource string) *EntriesLookupCall
LinkedResource sets the optional parameter "linkedResource": The full name of the Google Cloud Platform resource the Data Catalog entry represents. See: https://cloud.google.com/apis/design/resource_names#full_resource _name. Full names are case-sensitive.
Examples:
*
//bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables /tableId
- //pubsub.googleapis.com/projects/projectId/topics/topicId
func (*EntriesLookupCall) SqlResource ¶
func (c *EntriesLookupCall) SqlResource(sqlResource string) *EntriesLookupCall
SqlResource sets the optional parameter "sqlResource": The SQL name of the entry. SQL names are case-sensitive.
Examples:
- `cloud_pubsub.project_id.topic_id`
- “pubsub.project_id.`topic.id.with.dots` “
- `bigquery.project_id.dataset_id.table_id` *
`datacatalog.project_id.location_id.entry_group_id.entry_id`
`*_id`s shoud satisfy the standard SQL rules for identifiers. https://cloud.google.com/bigquery/docs/reference/standard -sql/lexical.
type EntriesService ¶
type EntriesService struct {
// contains filtered or unexported fields
}
func NewEntriesService ¶
func NewEntriesService(s *Service) *EntriesService
func (*EntriesService) Lookup ¶
func (r *EntriesService) Lookup() *EntriesLookupCall
Lookup: Get an entry by target resource name. This method allows clients to use the resource name from the source Google Cloud Platform service to get the Data Catalog Entry.
type Expr ¶
type Expr struct { // Description: An optional description of the expression. This is a // longer text which // describes the expression, e.g. when hovered over it in a UI. Description string `json:"description,omitempty"` // Expression: Textual representation of an expression in // Common Expression Language syntax. // // The application context of the containing message determines // which // well-known feature set of CEL is supported. Expression string `json:"expression,omitempty"` // Location: An optional string indicating the location of the // expression for error // reporting, e.g. a file name and a position in the file. Location string `json:"location,omitempty"` // Title: An optional title for the expression, i.e. a short string // describing // its purpose. This can be used e.g. in UIs which allow to enter // the // expression. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Description") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Expr: Represents an expression text. Example:
title: "User account presence" description: "Determines whether the request has a user account" expression: "size(request.user) > 0"
func (*Expr) MarshalJSON ¶
type GetIamPolicyRequest ¶
type GetIamPolicyRequest struct { // Options: OPTIONAL: A `GetPolicyOptions` object for specifying options // to // `GetIamPolicy`. This field is only used by Cloud IAM. Options *GetPolicyOptions `json:"options,omitempty"` // ForceSendFields is a list of field names (e.g. "Options") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Options") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GetIamPolicyRequest: Request message for `GetIamPolicy` method.
func (*GetIamPolicyRequest) MarshalJSON ¶
func (s *GetIamPolicyRequest) MarshalJSON() ([]byte, error)
type GetPolicyOptions ¶
type GetPolicyOptions struct { // RequestedPolicyVersion: Optional. The policy format version to be // returned. // // Valid values are 0, 1, and 3. Requests specifying an invalid value // will be // rejected. // // Requests for policies with any conditional bindings must specify // version 3. // Policies without any conditional bindings may specify any valid value // or // leave the field unset. RequestedPolicyVersion int64 `json:"requestedPolicyVersion,omitempty"` // ForceSendFields is a list of field names (e.g. // "RequestedPolicyVersion") to unconditionally include in API requests. // By default, fields with empty values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "RequestedPolicyVersion") // to include in API requests with the JSON null value. By default, // fields with empty values are omitted from API requests. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GetPolicyOptions: Encapsulates settings provided to GetIamPolicy.
func (*GetPolicyOptions) MarshalJSON ¶
func (s *GetPolicyOptions) MarshalJSON() ([]byte, error)
type GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec ¶
type GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec struct { // Dataset: Output only. The Data Catalog resource name of the dataset // entry the current table // belongs to, for // example, // `projects/{project_id}/locations/{location}/entrygroups/{entr // y_group_id}/entries/{entry_id}`. Dataset string `json:"dataset,omitempty"` // ShardCount: Output only. Total number of shards. ShardCount int64 `json:"shardCount,omitempty,string"` // TablePrefix: Output only. The table name prefix of the shards. The // name of any given shard is // `[table_prefix]YYYYMMDD`, for example, for shard `MyTable20180101`, // the // `table_prefix` is `MyTable`. TablePrefix string `json:"tablePrefix,omitempty"` // ForceSendFields is a list of field names (e.g. "Dataset") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Dataset") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec: Spec for a group of BigQuery tables with name pattern `[prefix]YYYYMMDD`. Context: https://cloud.google.com/bigquery/docs/pa rtitioned-tables#partitioning_versus_sharding
func (*GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec) MarshalJSON ¶
func (s *GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec) MarshalJSON() ([]byte, error)
type GoogleCloudDatacatalogV1beta1BigQueryTableSpec ¶
type GoogleCloudDatacatalogV1beta1BigQueryTableSpec struct { // TableSourceType: Output only. The table source type. // // Possible values: // "TABLE_SOURCE_TYPE_UNSPECIFIED" - Default unknown type. // "BIGQUERY_VIEW" - Table view. // "BIGQUERY_TABLE" - BigQuery native table. TableSourceType string `json:"tableSourceType,omitempty"` // TableSpec: Spec of a BigQuery table. This field should only be // populated if // `table_source_type` is `BIGQUERY_TABLE`. TableSpec *GoogleCloudDatacatalogV1beta1TableSpec `json:"tableSpec,omitempty"` // ViewSpec: Table view specification. This field should only be // populated if // `table_source_type` is `BIGQUERY_VIEW`. ViewSpec *GoogleCloudDatacatalogV1beta1ViewSpec `json:"viewSpec,omitempty"` // ForceSendFields is a list of field names (e.g. "TableSourceType") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "TableSourceType") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudDatacatalogV1beta1BigQueryTableSpec: Describes a BigQuery table.
func (*GoogleCloudDatacatalogV1beta1BigQueryTableSpec) MarshalJSON ¶
func (s *GoogleCloudDatacatalogV1beta1BigQueryTableSpec) MarshalJSON() ([]byte, error)
type GoogleCloudDatacatalogV1beta1ColumnSchema ¶
type GoogleCloudDatacatalogV1beta1ColumnSchema struct { // Column: Required. Name of the column. Column string `json:"column,omitempty"` // Description: Optional. Description of the column. Default value is an // empty string. Description string `json:"description,omitempty"` // Mode: Optional. A column's mode indicates whether the values in this // column are required, // nullable, etc. Only `NULLABLE`, `REQUIRED` and `REPEATED` are // supported. // Default mode is `NULLABLE`. Mode string `json:"mode,omitempty"` // Subcolumns: Optional. Schema of sub-columns. A column can have zero // or more sub-columns. Subcolumns []*GoogleCloudDatacatalogV1beta1ColumnSchema `json:"subcolumns,omitempty"` // Type: Required. Type of the column. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Column") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Column") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDatacatalogV1beta1ColumnSchema: Representation of a column within a schema. Columns could be nested inside other columns.
func (*GoogleCloudDatacatalogV1beta1ColumnSchema) MarshalJSON ¶
func (s *GoogleCloudDatacatalogV1beta1ColumnSchema) MarshalJSON() ([]byte, error)
type GoogleCloudDatacatalogV1beta1Entry ¶
type GoogleCloudDatacatalogV1beta1Entry struct { // BigqueryDateShardedSpec: Specification for a group of BigQuery tables // with name pattern // `[prefix]YYYYMMDD`. // Context: // https://cloud.google.com/bigquery/docs/partitioned-tables#par // titioning_versus_sharding. BigqueryDateShardedSpec *GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec `json:"bigqueryDateShardedSpec,omitempty"` // BigqueryTableSpec: Specification that applies to a BigQuery table. // This is only valid on // entries of type `TABLE`. BigqueryTableSpec *GoogleCloudDatacatalogV1beta1BigQueryTableSpec `json:"bigqueryTableSpec,omitempty"` // Description: Entry description, which can consist of several // sentences or paragraphs // that describe entry contents. Default value is an empty string. Description string `json:"description,omitempty"` // DisplayName: Display information such as title and description. A // short name to identify // the entry, for example, "Analytics Data - Jan 2011". Default value is // an // empty string. DisplayName string `json:"displayName,omitempty"` // GcsFilesetSpec: Specification that applies to a Cloud Storage // fileset. This is only valid // on entries of type FILESET. GcsFilesetSpec *GoogleCloudDatacatalogV1beta1GcsFilesetSpec `json:"gcsFilesetSpec,omitempty"` // LinkedResource: Output only. The resource this metadata entry refers // to. // // For Google Cloud Platform resources, `linked_resource` is the [full // name // of // the // resource](https://cloud.google.com/apis/design/resource_names#f // ull_resource_name). // For example, the `linked_resource` for a table resource from BigQuery // is: // // * // //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables // /tableId LinkedResource string `json:"linkedResource,omitempty"` // Name: The Data Catalog resource name of the entry in URL format. // Example: // // * // projects/{project_id}/locations/{location}/entryGroups/{entry_group_id // }/entries/{entry_id} // // Note that this Entry and its child resources may not actually be // stored in // the location in this name. Name string `json:"name,omitempty"` // Schema: Schema of the entry. An entry might not have any schema // attached to it. Schema *GoogleCloudDatacatalogV1beta1Schema `json:"schema,omitempty"` // SourceSystemTimestamps: Output only. Timestamps about the underlying // Google Cloud Platform // resource, not about this Data Catalog Entry. SourceSystemTimestamps *GoogleCloudDatacatalogV1beta1SystemTimestamps `json:"sourceSystemTimestamps,omitempty"` // Type: The type of the entry. // // Possible values: // "ENTRY_TYPE_UNSPECIFIED" - Default unknown type // "TABLE" - Output only. The type of entry that has a GoogleSQL // schema, including // logical views. // "DATA_STREAM" - Output only. An entry type which is used for // streaming entries. Example: // Cloud Pub/Sub topic. // "FILESET" - Alpha feature. An entry type which is a set of files or // objects. Example: // Cloud Storage fileset. Type string `json:"type,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. // "BigqueryDateShardedSpec") to unconditionally include in API // requests. By default, fields with empty values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "BigqueryDateShardedSpec") // to include in API requests with the JSON null value. By default, // fields with empty values are omitted from API requests. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudDatacatalogV1beta1Entry: Entry Metadata. A Data Catalog Entry resource represents another resource in Google Cloud Platform, such as a BigQuery dataset or a Cloud Pub/Sub topic. Clients can use the `linked_resource` field in the Entry resource to refer to the original resource ID of the source system.
An Entry resource contains resource details, such as its schema. An Entry can also be used to attach flexible metadata, such as a Tag.
func (*GoogleCloudDatacatalogV1beta1Entry) MarshalJSON ¶
func (s *GoogleCloudDatacatalogV1beta1Entry) MarshalJSON() ([]byte, error)
type GoogleCloudDatacatalogV1beta1EntryGroup ¶
type GoogleCloudDatacatalogV1beta1EntryGroup struct { // DataCatalogTimestamps: Output only. Timestamps about this EntryGroup. // Default value is empty timestamps. DataCatalogTimestamps *GoogleCloudDatacatalogV1beta1SystemTimestamps `json:"dataCatalogTimestamps,omitempty"` // Description: Entry group description, which can consist of several // sentences or // paragraphs that describe entry group contents. Default value is an // empty // string. Description string `json:"description,omitempty"` // DisplayName: A short name to identify the entry group, for // example, // "analytics data - jan 2011". Default value is an empty string. DisplayName string `json:"displayName,omitempty"` // Name: The resource name of the entry group in URL format. Example: // // * // projects/{project_id}/locations/{location}/entryGroups/{entry_group_id // } // // Note that this EntryGroup and its child resources may not actually // be // stored in the location in this name. Name string `json:"name,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. // "DataCatalogTimestamps") to unconditionally include in API requests. // By default, fields with empty values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DataCatalogTimestamps") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudDatacatalogV1beta1EntryGroup: EntryGroup Metadata. An EntryGroup resource represents a logical grouping of zero or more Data Catalog Entry resources.
func (*GoogleCloudDatacatalogV1beta1EntryGroup) MarshalJSON ¶
func (s *GoogleCloudDatacatalogV1beta1EntryGroup) MarshalJSON() ([]byte, error)
type GoogleCloudDatacatalogV1beta1FieldType ¶
type GoogleCloudDatacatalogV1beta1FieldType struct { // EnumType: Represents an enum type. EnumType *GoogleCloudDatacatalogV1beta1FieldTypeEnumType `json:"enumType,omitempty"` // PrimitiveType: Represents primitive types - string, bool etc. // // Possible values: // "PRIMITIVE_TYPE_UNSPECIFIED" - This is the default invalid value // for a type. // "DOUBLE" - A double precision number. // "STRING" - An UTF-8 string. // "BOOL" - A boolean value. // "TIMESTAMP" - A timestamp. PrimitiveType string `json:"primitiveType,omitempty"` // ForceSendFields is a list of field names (e.g. "EnumType") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "EnumType") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*GoogleCloudDatacatalogV1beta1FieldType) MarshalJSON ¶
func (s *GoogleCloudDatacatalogV1beta1FieldType) MarshalJSON() ([]byte, error)
type GoogleCloudDatacatalogV1beta1FieldTypeEnumType ¶
type GoogleCloudDatacatalogV1beta1FieldTypeEnumType struct { // AllowedValues: Required on create; optional on update. The set of // allowed values for // this enum. This set must not be empty, the display names of the // values in // this set must not be empty and the display names of the values must // be // case-insensitively unique within this set. Currently, enum values // can // only be added to the list of allowed values. Deletion and renaming // of // enum values are not supported. Can have up to 500 allowed values. AllowedValues []*GoogleCloudDatacatalogV1beta1FieldTypeEnumTypeEnumValue `json:"allowedValues,omitempty"` // ForceSendFields is a list of field names (e.g. "AllowedValues") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AllowedValues") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*GoogleCloudDatacatalogV1beta1FieldTypeEnumType) MarshalJSON ¶
func (s *GoogleCloudDatacatalogV1beta1FieldTypeEnumType) MarshalJSON() ([]byte, error)
type GoogleCloudDatacatalogV1beta1FieldTypeEnumTypeEnumValue ¶
type GoogleCloudDatacatalogV1beta1FieldTypeEnumTypeEnumValue struct { // DisplayName: Required. The display name of the enum value. Must not // be an empty string. DisplayName string `json:"displayName,omitempty"` // ForceSendFields is a list of field names (e.g. "DisplayName") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DisplayName") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*GoogleCloudDatacatalogV1beta1FieldTypeEnumTypeEnumValue) MarshalJSON ¶
func (s *GoogleCloudDatacatalogV1beta1FieldTypeEnumTypeEnumValue) MarshalJSON() ([]byte, error)
type GoogleCloudDatacatalogV1beta1GcsFileSpec ¶
type GoogleCloudDatacatalogV1beta1GcsFileSpec struct { // FilePath: Required. The full file path. Example: // `gs://bucket_name/a/b.txt`. FilePath string `json:"filePath,omitempty"` // GcsTimestamps: Output only. Timestamps about the Cloud Storage file. GcsTimestamps *GoogleCloudDatacatalogV1beta1SystemTimestamps `json:"gcsTimestamps,omitempty"` // SizeBytes: Output only. The size of the file, in bytes. SizeBytes int64 `json:"sizeBytes,omitempty,string"` // ForceSendFields is a list of field names (e.g. "FilePath") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "FilePath") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDatacatalogV1beta1GcsFileSpec: Specifications of a single file in Cloud Storage.
func (*GoogleCloudDatacatalogV1beta1GcsFileSpec) MarshalJSON ¶
func (s *GoogleCloudDatacatalogV1beta1GcsFileSpec) MarshalJSON() ([]byte, error)
type GoogleCloudDatacatalogV1beta1GcsFilesetSpec ¶
type GoogleCloudDatacatalogV1beta1GcsFilesetSpec struct { // FilePatterns: Required. Patterns to identify a set of files in Google // Cloud Storage. // // Examples of valid file_patterns: // // * `gs://bucket_name/*`: matches all files in `bucket_name` // * `gs://bucket_name/file*`: matches files prefixed by `file` in // `bucket_name` // * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that // match // `a/*/b` pattern, such as `a/c/b`, // `a/d/b` // * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt` FilePatterns []string `json:"filePatterns,omitempty"` // SampleGcsFileSpecs: Output only. Sample files contained in this // fileset, not all files contained in this // fileset are represented here. SampleGcsFileSpecs []*GoogleCloudDatacatalogV1beta1GcsFileSpec `json:"sampleGcsFileSpecs,omitempty"` // ForceSendFields is a list of field names (e.g. "FilePatterns") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "FilePatterns") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDatacatalogV1beta1GcsFilesetSpec: Describes a Cloud Storage fileset entry.
func (*GoogleCloudDatacatalogV1beta1GcsFilesetSpec) MarshalJSON ¶
func (s *GoogleCloudDatacatalogV1beta1GcsFilesetSpec) MarshalJSON() ([]byte, error)
type GoogleCloudDatacatalogV1beta1ListTagsResponse ¶
type GoogleCloudDatacatalogV1beta1ListTagsResponse struct { // NextPageToken: Token to retrieve the next page of results. It is set // to empty if no items // remain in results. NextPageToken string `json:"nextPageToken,omitempty"` // Tags: Tag details. Tags []*GoogleCloudDatacatalogV1beta1Tag `json:"tags,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDatacatalogV1beta1ListTagsResponse: Response message for ListTags.
func (*GoogleCloudDatacatalogV1beta1ListTagsResponse) MarshalJSON ¶
func (s *GoogleCloudDatacatalogV1beta1ListTagsResponse) MarshalJSON() ([]byte, error)
type GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldRequest ¶
type GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldRequest struct { // NewTagTemplateFieldId: Required. The new ID of this tag template // field. For example, `my_new_field`. NewTagTemplateFieldId string `json:"newTagTemplateFieldId,omitempty"` // ForceSendFields is a list of field names (e.g. // "NewTagTemplateFieldId") to unconditionally include in API requests. // By default, fields with empty values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NewTagTemplateFieldId") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldRequest: Request message for RenameTagTemplateField.
func (*GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldRequest) MarshalJSON ¶
func (s *GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldRequest) MarshalJSON() ([]byte, error)
type GoogleCloudDatacatalogV1beta1Schema ¶
type GoogleCloudDatacatalogV1beta1Schema struct { // Columns: Required. Schema of columns. A maximum of 10,000 columns and // sub-columns can be // specified. Columns []*GoogleCloudDatacatalogV1beta1ColumnSchema `json:"columns,omitempty"` // ForceSendFields is a list of field names (e.g. "Columns") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Columns") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDatacatalogV1beta1Schema: Represents a schema (e.g. BigQuery, GoogleSQL, Avro schema).
func (*GoogleCloudDatacatalogV1beta1Schema) MarshalJSON ¶
func (s *GoogleCloudDatacatalogV1beta1Schema) MarshalJSON() ([]byte, error)
type GoogleCloudDatacatalogV1beta1SearchCatalogRequest ¶
type GoogleCloudDatacatalogV1beta1SearchCatalogRequest struct { // OrderBy: Specifies the ordering of results, currently supported // case-sensitive // choices are: // // * `relevance`, only supports desecending // * `last_access_timestamp [asc|desc]`, defaults to descending if // not // specified // * `last_modified_timestamp [asc|desc]`, defaults to descending if // not // specified // // If not specified, defaults to `relevance` descending. OrderBy string `json:"orderBy,omitempty"` // PageSize: Number of results in the search page. If <=0 then defaults // to 10. Max limit // for page_size is 1000. Throws an invalid argument for page_size > // 1000. PageSize int64 `json:"pageSize,omitempty"` // PageToken: Optional. Pagination token returned in an // earlier // SearchCatalogResponse.next_page_token, which // indicates that this is a continuation of a // prior // SearchCatalogRequest // call, and that the system should return the next page of data. If // empty, // the first page is returned. PageToken string `json:"pageToken,omitempty"` // Query: Required. The query string in search query syntax. The query // must be non-empty. // // Query strings can be simple as "x" or more qualified as: // // * name:x // * column:x // * description:y // // Note: Query tokens need to have a minimum of 3 characters for // substring // matching to work correctly. See [Data Catalog // Search // Syntax](/data-catalog/docs/how-to/search-reference) for more // information. Query string `json:"query,omitempty"` // Scope: Required. The scope of this search request. Scope *GoogleCloudDatacatalogV1beta1SearchCatalogRequestScope `json:"scope,omitempty"` // ForceSendFields is a list of field names (e.g. "OrderBy") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "OrderBy") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDatacatalogV1beta1SearchCatalogRequest: Request message for SearchCatalog.
func (*GoogleCloudDatacatalogV1beta1SearchCatalogRequest) MarshalJSON ¶
func (s *GoogleCloudDatacatalogV1beta1SearchCatalogRequest) MarshalJSON() ([]byte, error)
type GoogleCloudDatacatalogV1beta1SearchCatalogRequestScope ¶
type GoogleCloudDatacatalogV1beta1SearchCatalogRequestScope struct { // IncludeGcpPublicDatasets: If `true`, include Google Cloud Platform // (GCP) public datasets in the // search results. Info on GCP public datasets is available // at // https://cloud.google.com/public-datasets/. By default, GCP // public // datasets are excluded. IncludeGcpPublicDatasets bool `json:"includeGcpPublicDatasets,omitempty"` // IncludeOrgIds: Data Catalog tries to automatically choose the right // corpus of data to // search through. You can ensure an organization is included by adding // it // to `include_org_ids`. You can ensure a project's org is included // with // `include_project_ids`. You must specify at least one // organization // using `include_org_ids` or `include_project_ids` in all search // requests. // // List of organization IDs to search within. To find your organization // ID, // follow instructions // in // https://cloud.google.com/resource-manager/docs/creating-managing-or // ganization. IncludeOrgIds []string `json:"includeOrgIds,omitempty"` // IncludeProjectIds: List of project IDs to search within. To learn // more about the // distinction between project names/IDs/numbers, go // to // https://cloud.google.com/docs/overview/#projects. IncludeProjectIds []string `json:"includeProjectIds,omitempty"` // ForceSendFields is a list of field names (e.g. // "IncludeGcpPublicDatasets") to unconditionally include in API // requests. By default, fields with empty values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "IncludeGcpPublicDatasets") // to include in API requests with the JSON null value. By default, // fields with empty values are omitted from API requests. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*GoogleCloudDatacatalogV1beta1SearchCatalogRequestScope) MarshalJSON ¶
func (s *GoogleCloudDatacatalogV1beta1SearchCatalogRequestScope) MarshalJSON() ([]byte, error)
type GoogleCloudDatacatalogV1beta1SearchCatalogResponse ¶
type GoogleCloudDatacatalogV1beta1SearchCatalogResponse struct { // NextPageToken: The token that can be used to retrieve the next page // of results. NextPageToken string `json:"nextPageToken,omitempty"` // Results: Search results. Results []*GoogleCloudDatacatalogV1beta1SearchCatalogResult `json:"results,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDatacatalogV1beta1SearchCatalogResponse: Response message for SearchCatalog.
func (*GoogleCloudDatacatalogV1beta1SearchCatalogResponse) MarshalJSON ¶
func (s *GoogleCloudDatacatalogV1beta1SearchCatalogResponse) MarshalJSON() ([]byte, error)
type GoogleCloudDatacatalogV1beta1SearchCatalogResult ¶
type GoogleCloudDatacatalogV1beta1SearchCatalogResult struct { // LinkedResource: The full name of the cloud resource the entry belongs // to. // See: // https://cloud.google.com/apis/design/resource_names#full_resource // _name. // Example: // // * // `//bigquery.googleapis.com/projects/projectId/datasets/datasetId/table // s/tableId` LinkedResource string `json:"linkedResource,omitempty"` // RelativeResourceName: The relative resource name of the resource in // URL format. // Examples: // // * // `projects/{project_id}/locations/{location_id}/entryGroups/{entry_grou // p_id}/entries/{entry_id}` // * `projects/{project_id}/tagTemplates/{tag_template_id}` RelativeResourceName string `json:"relativeResourceName,omitempty"` // SearchResultSubtype: Sub-type of the search result. This is a // dot-delimited description of the // resource's full type, and is the same as the value callers would // provide in // the "type" search facet. Examples: `entry.table`, // `entry.dataStream`, // `tagTemplate`. SearchResultSubtype string `json:"searchResultSubtype,omitempty"` // SearchResultType: Type of the search result. This field can be used // to determine which Get // method to call to fetch the full resource. // // Possible values: // "SEARCH_RESULT_TYPE_UNSPECIFIED" - Default unknown type. // "ENTRY" - An Entry. // "TAG_TEMPLATE" - A TagTemplate. // "ENTRY_GROUP" - An EntryGroup. SearchResultType string `json:"searchResultType,omitempty"` // ForceSendFields is a list of field names (e.g. "LinkedResource") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "LinkedResource") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudDatacatalogV1beta1SearchCatalogResult: A result that appears in the response of a search request. Each result captures details of one entry that matches the search.
func (*GoogleCloudDatacatalogV1beta1SearchCatalogResult) MarshalJSON ¶
func (s *GoogleCloudDatacatalogV1beta1SearchCatalogResult) MarshalJSON() ([]byte, error)
type GoogleCloudDatacatalogV1beta1SystemTimestamps ¶
type GoogleCloudDatacatalogV1beta1SystemTimestamps struct { // CreateTime: The creation time of the resource within the given // system. CreateTime string `json:"createTime,omitempty"` // ExpireTime: Output only. The expiration time of the resource within // the given system. // Currently only apllicable to BigQuery resources. ExpireTime string `json:"expireTime,omitempty"` // UpdateTime: The last-modified time of the resource within the given // system. UpdateTime string `json:"updateTime,omitempty"` // ForceSendFields is a list of field names (e.g. "CreateTime") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CreateTime") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDatacatalogV1beta1SystemTimestamps: Timestamps about this resource according to a particular system.
func (*GoogleCloudDatacatalogV1beta1SystemTimestamps) MarshalJSON ¶
func (s *GoogleCloudDatacatalogV1beta1SystemTimestamps) MarshalJSON() ([]byte, error)
type GoogleCloudDatacatalogV1beta1TableSpec ¶
type GoogleCloudDatacatalogV1beta1TableSpec struct { // GroupedEntry: Output only. If the table is a dated shard, i.e., with // name pattern `[prefix]YYYYMMDD`, // `grouped_entry` is the Data Catalog resource name of the date // sharded // grouped entry, for // example, // `projects/{project_id}/locations/{location}/entrygroups/{entr // y_group_id}/entries/{entry_id}`. // Otherwise, `grouped_entry` is empty. GroupedEntry string `json:"groupedEntry,omitempty"` // ForceSendFields is a list of field names (e.g. "GroupedEntry") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "GroupedEntry") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDatacatalogV1beta1TableSpec: Normal BigQuery table spec.
func (*GoogleCloudDatacatalogV1beta1TableSpec) MarshalJSON ¶
func (s *GoogleCloudDatacatalogV1beta1TableSpec) MarshalJSON() ([]byte, error)
type GoogleCloudDatacatalogV1beta1Tag ¶
type GoogleCloudDatacatalogV1beta1Tag struct { // Column: Resources like Entry can have schemas associated with them. // This scope // allows users to attach tags to an individual column based on that // schema. // // For attaching a tag to a nested column, use `.` to separate the // column // names. Example: // // * `outer_column.inner_column` Column string `json:"column,omitempty"` // Fields: Required. This maps the ID of a tag field to the value of and // additional information // about that field. Valid field IDs are defined by the tag's template. // A tag // must have at least 1 field and at most 500 fields. Fields map[string]GoogleCloudDatacatalogV1beta1TagField `json:"fields,omitempty"` // Name: The resource name of the tag in URL format. Example: // // * // projects/{project_id}/locations/{location}/entrygroups/{entry_group_id // }/entries/{entry_id}/tags/{tag_id} // // where `tag_id` is a system-generated identifier. // Note that this Tag may not actually be stored in the location in this // name. Name string `json:"name,omitempty"` // Template: Required. The resource name of the tag template that this // tag uses. Example: // // * // projects/{project_id}/locations/{location}/tagTemplates/{tag_template_ // id} // // This field cannot be modified after creation. Template string `json:"template,omitempty"` // TemplateDisplayName: Output only. The display name of the tag // template. TemplateDisplayName string `json:"templateDisplayName,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Column") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Column") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDatacatalogV1beta1Tag: Tags are used to attach custom metadata to Data Catalog resources. Tags conform to the specifications within their tag template.
See [Data Catalog IAM](/data-catalog/docs/concepts/iam) for information on the permissions needed to create or view tags.
func (*GoogleCloudDatacatalogV1beta1Tag) MarshalJSON ¶
func (s *GoogleCloudDatacatalogV1beta1Tag) MarshalJSON() ([]byte, error)
type GoogleCloudDatacatalogV1beta1TagField ¶
type GoogleCloudDatacatalogV1beta1TagField struct { // BoolValue: Holds the value for a tag field with boolean type. BoolValue bool `json:"boolValue,omitempty"` // DisplayName: Output only. The display name of this field. DisplayName string `json:"displayName,omitempty"` // DoubleValue: Holds the value for a tag field with double type. DoubleValue float64 `json:"doubleValue,omitempty"` // EnumValue: Holds the value for a tag field with enum type. This value // must be // one of the allowed values in the definition of this enum. EnumValue *GoogleCloudDatacatalogV1beta1TagFieldEnumValue `json:"enumValue,omitempty"` // StringValue: Holds the value for a tag field with string type. StringValue string `json:"stringValue,omitempty"` // TimestampValue: Holds the value for a tag field with timestamp type. TimestampValue string `json:"timestampValue,omitempty"` // ForceSendFields is a list of field names (e.g. "BoolValue") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "BoolValue") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDatacatalogV1beta1TagField: Contains the value and supporting information for a field within a Tag.
func (*GoogleCloudDatacatalogV1beta1TagField) MarshalJSON ¶
func (s *GoogleCloudDatacatalogV1beta1TagField) MarshalJSON() ([]byte, error)
func (*GoogleCloudDatacatalogV1beta1TagField) UnmarshalJSON ¶
func (s *GoogleCloudDatacatalogV1beta1TagField) UnmarshalJSON(data []byte) error
type GoogleCloudDatacatalogV1beta1TagFieldEnumValue ¶
type GoogleCloudDatacatalogV1beta1TagFieldEnumValue struct { // DisplayName: The display name of the enum value. DisplayName string `json:"displayName,omitempty"` // ForceSendFields is a list of field names (e.g. "DisplayName") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DisplayName") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDatacatalogV1beta1TagFieldEnumValue: Holds an enum value.
func (*GoogleCloudDatacatalogV1beta1TagFieldEnumValue) MarshalJSON ¶
func (s *GoogleCloudDatacatalogV1beta1TagFieldEnumValue) MarshalJSON() ([]byte, error)
type GoogleCloudDatacatalogV1beta1TagTemplate ¶
type GoogleCloudDatacatalogV1beta1TagTemplate struct { // DisplayName: The display name for this template. Defaults to an empty // string. DisplayName string `json:"displayName,omitempty"` // Fields: Required. Map of tag template field IDs to the settings for // the field. // This map is an exhaustive list of the allowed fields. This map must // contain // at least one field and at most 500 fields. // // The keys to this map are tag template field IDs. Field IDs can // contain // letters (both uppercase and lowercase), numbers (0-9) and underscores // (_). // Field IDs must be at least 1 character long and at most // 64 characters long. Field IDs must start with a letter or underscore. Fields map[string]GoogleCloudDatacatalogV1beta1TagTemplateField `json:"fields,omitempty"` // Name: The resource name of the tag template in URL format. // Example: // // * // projects/{project_id}/locations/{location}/tagTemplates/{tag_template_ // id} // // Note that this TagTemplate and its child resources may not actually // be // stored in the location in this name. Name string `json:"name,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "DisplayName") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DisplayName") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDatacatalogV1beta1TagTemplate: A tag template defines the schema of the tags used to attach to Data Catalog resources. It defines the mapping of accepted field names and types that can be used within the tag. The tag template also controls the access to the tag.
func (*GoogleCloudDatacatalogV1beta1TagTemplate) MarshalJSON ¶
func (s *GoogleCloudDatacatalogV1beta1TagTemplate) MarshalJSON() ([]byte, error)
type GoogleCloudDatacatalogV1beta1TagTemplateField ¶
type GoogleCloudDatacatalogV1beta1TagTemplateField struct { // DisplayName: The display name for this field. Defaults to an empty // string. DisplayName string `json:"displayName,omitempty"` // Name: Output only. The resource name of the tag template field in URL // format. Example: // // * // projects/{project_id}/locations/{location}/tagTemplates/{tag_template} // /fields/{field} // // Note that this TagTemplateField may not actually be stored in the // location // in this name. Name string `json:"name,omitempty"` // Type: Required. The type of value this tag field can contain. Type *GoogleCloudDatacatalogV1beta1FieldType `json:"type,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "DisplayName") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DisplayName") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDatacatalogV1beta1TagTemplateField: The template for an individual field within a tag template.
func (*GoogleCloudDatacatalogV1beta1TagTemplateField) MarshalJSON ¶
func (s *GoogleCloudDatacatalogV1beta1TagTemplateField) MarshalJSON() ([]byte, error)
type GoogleCloudDatacatalogV1beta1ViewSpec ¶
type GoogleCloudDatacatalogV1beta1ViewSpec struct { // ViewQuery: Output only. The query that defines the table view. ViewQuery string `json:"viewQuery,omitempty"` // ForceSendFields is a list of field names (e.g. "ViewQuery") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ViewQuery") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDatacatalogV1beta1ViewSpec: Table view specification.
func (*GoogleCloudDatacatalogV1beta1ViewSpec) MarshalJSON ¶
func (s *GoogleCloudDatacatalogV1beta1ViewSpec) MarshalJSON() ([]byte, error)
type Policy ¶
type Policy struct { // Bindings: Associates a list of `members` to a `role`. Optionally may // specify a // `condition` that determines when binding is in effect. // `bindings` with no members will result in an error. Bindings []*Binding `json:"bindings,omitempty"` // Etag: `etag` is used for optimistic concurrency control as a way to // help // prevent simultaneous updates of a policy from overwriting each // other. // It is strongly suggested that systems make use of the `etag` in // the // read-modify-write cycle to perform policy updates in order to avoid // race // conditions: An `etag` is returned in the response to `getIamPolicy`, // and // systems are expected to put that etag in the request to // `setIamPolicy` to // ensure that their change will be applied to the same version of the // policy. // // If no `etag` is provided in the call to `setIamPolicy`, then the // existing // policy is overwritten. Due to blind-set semantics of an etag-less // policy, // 'setIamPolicy' will not fail even if either of incoming or stored // policy // does not meet the version requirements. Etag string `json:"etag,omitempty"` // Version: Specifies the format of the policy. // // Valid values are 0, 1, and 3. Requests specifying an invalid value // will be // rejected. // // Operations affecting conditional bindings must specify version 3. // This can // be either setting a conditional policy, modifying a conditional // binding, // or removing a conditional binding from the stored conditional // policy. // Operations on non-conditional policies may specify any valid value // or // leave the field unset. // // If no etag is provided in the call to `setIamPolicy`, any // version // compliance checks on the incoming and/or stored policy is skipped. Version int64 `json:"version,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Bindings") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Bindings") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Policy: Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources.
A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions (defined by IAM or configured by users). A `binding` can optionally specify a `condition`, which is a logic expression that further constrains the role binding based on attributes about the request and/or target resource.
**JSON Example**
{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com",
"serviceAccount:my-project-id@appspot.gserviceaccount.com"
] }, { "role": "roles/resourcemanager.organizationViewer", "members": ["user:eve@example.com"], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ] }
**YAML Example**
bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time <
timestamp('2020-10-01T00:00:00.000Z')
For a description of IAM and its features, see the [IAM developer's guide](https://cloud.google.com/iam/docs).
func (*Policy) MarshalJSON ¶
type ProjectsLocationsEntryGroupsCreateCall ¶
type ProjectsLocationsEntryGroupsCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsEntryGroupsCreateCall) Context ¶
func (c *ProjectsLocationsEntryGroupsCreateCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsEntryGroupsCreateCall) Do ¶
func (c *ProjectsLocationsEntryGroupsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1beta1EntryGroup, error)
Do executes the "datacatalog.projects.locations.entryGroups.create" call. Exactly one of *GoogleCloudDatacatalogV1beta1EntryGroup or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDatacatalogV1beta1EntryGroup.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsEntryGroupsCreateCall) EntryGroupId ¶
func (c *ProjectsLocationsEntryGroupsCreateCall) EntryGroupId(entryGroupId string) *ProjectsLocationsEntryGroupsCreateCall
EntryGroupId sets the optional parameter "entryGroupId": Required. The id of the entry group to create. The id must begin with a letter or underscore, contain only English letters, numbers and underscores, and be at most 64 characters.
func (*ProjectsLocationsEntryGroupsCreateCall) Fields ¶
func (c *ProjectsLocationsEntryGroupsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsEntryGroupsCreateCall) Header ¶
func (c *ProjectsLocationsEntryGroupsCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsEntryGroupsDeleteCall ¶
type ProjectsLocationsEntryGroupsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsEntryGroupsDeleteCall) Context ¶
func (c *ProjectsLocationsEntryGroupsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsEntryGroupsDeleteCall) Do ¶
func (c *ProjectsLocationsEntryGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "datacatalog.projects.locations.entryGroups.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsEntryGroupsDeleteCall) Fields ¶
func (c *ProjectsLocationsEntryGroupsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsEntryGroupsDeleteCall) Header ¶
func (c *ProjectsLocationsEntryGroupsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsEntryGroupsEntriesCreateCall ¶
type ProjectsLocationsEntryGroupsEntriesCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsEntryGroupsEntriesCreateCall) Context ¶
func (c *ProjectsLocationsEntryGroupsEntriesCreateCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsEntryGroupsEntriesCreateCall) Do ¶
func (c *ProjectsLocationsEntryGroupsEntriesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1beta1Entry, error)
Do executes the "datacatalog.projects.locations.entryGroups.entries.create" call. Exactly one of *GoogleCloudDatacatalogV1beta1Entry or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDatacatalogV1beta1Entry.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsEntryGroupsEntriesCreateCall) EntryId ¶
func (c *ProjectsLocationsEntryGroupsEntriesCreateCall) EntryId(entryId string) *ProjectsLocationsEntryGroupsEntriesCreateCall
EntryId sets the optional parameter "entryId": Required. The id of the entry to create.
func (*ProjectsLocationsEntryGroupsEntriesCreateCall) Fields ¶
func (c *ProjectsLocationsEntryGroupsEntriesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsEntryGroupsEntriesCreateCall) Header ¶
func (c *ProjectsLocationsEntryGroupsEntriesCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsEntryGroupsEntriesDeleteCall ¶
type ProjectsLocationsEntryGroupsEntriesDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsEntryGroupsEntriesDeleteCall) Context ¶
func (c *ProjectsLocationsEntryGroupsEntriesDeleteCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsEntryGroupsEntriesDeleteCall) Do ¶
func (c *ProjectsLocationsEntryGroupsEntriesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "datacatalog.projects.locations.entryGroups.entries.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsEntryGroupsEntriesDeleteCall) Fields ¶
func (c *ProjectsLocationsEntryGroupsEntriesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsEntryGroupsEntriesDeleteCall) Header ¶
func (c *ProjectsLocationsEntryGroupsEntriesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsEntryGroupsEntriesGetCall ¶
type ProjectsLocationsEntryGroupsEntriesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsEntryGroupsEntriesGetCall) Context ¶
func (c *ProjectsLocationsEntryGroupsEntriesGetCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsEntryGroupsEntriesGetCall) Do ¶
func (c *ProjectsLocationsEntryGroupsEntriesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1beta1Entry, error)
Do executes the "datacatalog.projects.locations.entryGroups.entries.get" call. Exactly one of *GoogleCloudDatacatalogV1beta1Entry or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDatacatalogV1beta1Entry.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsEntryGroupsEntriesGetCall) Fields ¶
func (c *ProjectsLocationsEntryGroupsEntriesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsEntryGroupsEntriesGetCall) Header ¶
func (c *ProjectsLocationsEntryGroupsEntriesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsEntryGroupsEntriesGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsEntryGroupsEntriesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEntryGroupsEntriesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall ¶
type ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall) Context ¶
func (c *ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall) Do ¶
func (c *ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "datacatalog.projects.locations.entryGroups.entries.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall) Fields ¶
func (c *ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall) Header ¶
func (c *ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsEntryGroupsEntriesPatchCall ¶
type ProjectsLocationsEntryGroupsEntriesPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsEntryGroupsEntriesPatchCall) Context ¶
func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsEntryGroupsEntriesPatchCall) Do ¶
func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1beta1Entry, error)
Do executes the "datacatalog.projects.locations.entryGroups.entries.patch" call. Exactly one of *GoogleCloudDatacatalogV1beta1Entry or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDatacatalogV1beta1Entry.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsEntryGroupsEntriesPatchCall) Fields ¶
func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsEntryGroupsEntriesPatchCall) Header ¶
func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsEntryGroupsEntriesPatchCall) UpdateMask ¶
func (c *ProjectsLocationsEntryGroupsEntriesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsEntryGroupsEntriesPatchCall
UpdateMask sets the optional parameter "updateMask": The fields to update on the entry. If absent or empty, all modifiable fields are updated.
The following fields are modifiable: * For entries with type `DATA_STREAM`:
- `schema`
* For entries with type `FILESET`
- `schema`
- `display_name`
- `description`
- `gcs_fileset_spec`
- `gcs_fileset_spec.file_patterns`
type ProjectsLocationsEntryGroupsEntriesService ¶
type ProjectsLocationsEntryGroupsEntriesService struct { Tags *ProjectsLocationsEntryGroupsEntriesTagsService // contains filtered or unexported fields }
func NewProjectsLocationsEntryGroupsEntriesService ¶
func NewProjectsLocationsEntryGroupsEntriesService(s *Service) *ProjectsLocationsEntryGroupsEntriesService
func (*ProjectsLocationsEntryGroupsEntriesService) Create ¶
func (r *ProjectsLocationsEntryGroupsEntriesService) Create(parent string, googleclouddatacatalogv1beta1entry *GoogleCloudDatacatalogV1beta1Entry) *ProjectsLocationsEntryGroupsEntriesCreateCall
Create: Alpha feature. Creates an entry. Currently only entries of 'FILESET' type can be created. The user should enable the Data Catalog API in the project identified by the `parent` parameter (see [Data Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) for more information).
func (*ProjectsLocationsEntryGroupsEntriesService) Delete ¶
func (r *ProjectsLocationsEntryGroupsEntriesService) Delete(name string) *ProjectsLocationsEntryGroupsEntriesDeleteCall
Delete: Alpha feature. Deletes an existing entry. Only entries created through CreateEntry method can be deleted. The user should enable the Data Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) for more information).
func (*ProjectsLocationsEntryGroupsEntriesService) Get ¶
func (r *ProjectsLocationsEntryGroupsEntriesService) Get(name string) *ProjectsLocationsEntryGroupsEntriesGetCall
Get: Gets an entry.
func (*ProjectsLocationsEntryGroupsEntriesService) GetIamPolicy ¶
func (r *ProjectsLocationsEntryGroupsEntriesService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsLocationsEntryGroupsEntriesGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. A `NOT_FOUND` error is returned if the resource does not exist. An empty policy is returned if the resource exists but does not have a policy set on it.
Supported resources are:
- Tag templates.
- Entries.
- Entry groups.
Note, this method cannot be used to manage policies for BigQuery, Cloud Pub/Sub and any external Google Cloud Platform resources synced to Cloud Data Catalog.
Callers must have following Google IAM permission
- `datacatalog.tagTemplates.getIamPolicy` to get policies on tag templates.
- `datacatalog.entries.getIamPolicy` to get policies on entries.
- `datacatalog.entryGroups.getIamPolicy` to get policies on entry
groups.
func (*ProjectsLocationsEntryGroupsEntriesService) Patch ¶
func (r *ProjectsLocationsEntryGroupsEntriesService) Patch(name string, googleclouddatacatalogv1beta1entry *GoogleCloudDatacatalogV1beta1Entry) *ProjectsLocationsEntryGroupsEntriesPatchCall
Patch: Updates an existing entry. The user should enable the Data Catalog API in the project identified by the `entry.name` parameter (see [Data Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) for more information).
func (*ProjectsLocationsEntryGroupsEntriesService) SetIamPolicy ¶
func (r *ProjectsLocationsEntryGroupsEntriesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsEntryGroupsEntriesSetIamPolicyCall
SetIamPolicy: Sets the access control policy for a resource. Replaces any existing policy. Supported resources are:
- Tag templates.
- Entries.
- Entry groups.
Note, this method cannot be used to manage policies for BigQuery, Cloud Pub/Sub and any external Google Cloud Platform resources synced to Cloud Data Catalog.
Callers must have following Google IAM permission
- `datacatalog.tagTemplates.setIamPolicy` to set policies on tag templates.
- `datacatalog.entries.setIamPolicy` to set policies on entries.
- `datacatalog.entryGroups.setIamPolicy` to set policies on entry
groups.
func (*ProjectsLocationsEntryGroupsEntriesService) TestIamPermissions ¶
func (r *ProjectsLocationsEntryGroupsEntriesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall
TestIamPermissions: Returns the caller's permissions on a resource. If the resource does not exist, an empty set of permissions is returned (We don't return a `NOT_FOUND` error).
Supported resources are:
- Tag templates.
- Entries.
- Entry groups.
Note, this method cannot be used to manage policies for BigQuery, Cloud Pub/Sub and any external Google Cloud Platform resources synced to Cloud Data Catalog.
A caller is not required to have Google IAM permission to make this request.
type ProjectsLocationsEntryGroupsEntriesSetIamPolicyCall ¶
type ProjectsLocationsEntryGroupsEntriesSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsEntryGroupsEntriesSetIamPolicyCall) Context ¶
func (c *ProjectsLocationsEntryGroupsEntriesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesSetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsEntryGroupsEntriesSetIamPolicyCall) Do ¶
func (c *ProjectsLocationsEntryGroupsEntriesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "datacatalog.projects.locations.entryGroups.entries.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsEntryGroupsEntriesSetIamPolicyCall) Fields ¶
func (c *ProjectsLocationsEntryGroupsEntriesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsEntryGroupsEntriesSetIamPolicyCall) Header ¶
func (c *ProjectsLocationsEntryGroupsEntriesSetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsEntryGroupsEntriesTagsCreateCall ¶
type ProjectsLocationsEntryGroupsEntriesTagsCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsEntryGroupsEntriesTagsCreateCall) Context ¶
func (c *ProjectsLocationsEntryGroupsEntriesTagsCreateCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesTagsCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsEntryGroupsEntriesTagsCreateCall) Do ¶
func (c *ProjectsLocationsEntryGroupsEntriesTagsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1beta1Tag, error)
Do executes the "datacatalog.projects.locations.entryGroups.entries.tags.create" call. Exactly one of *GoogleCloudDatacatalogV1beta1Tag or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDatacatalogV1beta1Tag.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsEntryGroupsEntriesTagsCreateCall) Fields ¶
func (c *ProjectsLocationsEntryGroupsEntriesTagsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesTagsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsEntryGroupsEntriesTagsCreateCall) Header ¶
func (c *ProjectsLocationsEntryGroupsEntriesTagsCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsEntryGroupsEntriesTagsDeleteCall ¶
type ProjectsLocationsEntryGroupsEntriesTagsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsEntryGroupsEntriesTagsDeleteCall) Context ¶
func (c *ProjectsLocationsEntryGroupsEntriesTagsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesTagsDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsEntryGroupsEntriesTagsDeleteCall) Do ¶
func (c *ProjectsLocationsEntryGroupsEntriesTagsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "datacatalog.projects.locations.entryGroups.entries.tags.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsEntryGroupsEntriesTagsDeleteCall) Fields ¶
func (c *ProjectsLocationsEntryGroupsEntriesTagsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesTagsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsEntryGroupsEntriesTagsDeleteCall) Header ¶
func (c *ProjectsLocationsEntryGroupsEntriesTagsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsEntryGroupsEntriesTagsListCall ¶
type ProjectsLocationsEntryGroupsEntriesTagsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsEntryGroupsEntriesTagsListCall) Context ¶
func (c *ProjectsLocationsEntryGroupsEntriesTagsListCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesTagsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsEntryGroupsEntriesTagsListCall) Do ¶
func (c *ProjectsLocationsEntryGroupsEntriesTagsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1beta1ListTagsResponse, error)
Do executes the "datacatalog.projects.locations.entryGroups.entries.tags.list" call. Exactly one of *GoogleCloudDatacatalogV1beta1ListTagsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDatacatalogV1beta1ListTagsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsEntryGroupsEntriesTagsListCall) Fields ¶
func (c *ProjectsLocationsEntryGroupsEntriesTagsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesTagsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsEntryGroupsEntriesTagsListCall) Header ¶
func (c *ProjectsLocationsEntryGroupsEntriesTagsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsEntryGroupsEntriesTagsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsEntryGroupsEntriesTagsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEntryGroupsEntriesTagsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsEntryGroupsEntriesTagsListCall) PageSize ¶
func (c *ProjectsLocationsEntryGroupsEntriesTagsListCall) PageSize(pageSize int64) *ProjectsLocationsEntryGroupsEntriesTagsListCall
PageSize sets the optional parameter "pageSize": The maximum number of tags to return. Default is 10. Max limit is 1000.
func (*ProjectsLocationsEntryGroupsEntriesTagsListCall) PageToken ¶
func (c *ProjectsLocationsEntryGroupsEntriesTagsListCall) PageToken(pageToken string) *ProjectsLocationsEntryGroupsEntriesTagsListCall
PageToken sets the optional parameter "pageToken": Token that specifies which page is requested. If empty, the first page is returned.
func (*ProjectsLocationsEntryGroupsEntriesTagsListCall) Pages ¶
func (c *ProjectsLocationsEntryGroupsEntriesTagsListCall) Pages(ctx context.Context, f func(*GoogleCloudDatacatalogV1beta1ListTagsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsEntryGroupsEntriesTagsPatchCall ¶
type ProjectsLocationsEntryGroupsEntriesTagsPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsEntryGroupsEntriesTagsPatchCall) Context ¶
func (c *ProjectsLocationsEntryGroupsEntriesTagsPatchCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesTagsPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsEntryGroupsEntriesTagsPatchCall) Do ¶
func (c *ProjectsLocationsEntryGroupsEntriesTagsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1beta1Tag, error)
Do executes the "datacatalog.projects.locations.entryGroups.entries.tags.patch" call. Exactly one of *GoogleCloudDatacatalogV1beta1Tag or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDatacatalogV1beta1Tag.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsEntryGroupsEntriesTagsPatchCall) Fields ¶
func (c *ProjectsLocationsEntryGroupsEntriesTagsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesTagsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsEntryGroupsEntriesTagsPatchCall) Header ¶
func (c *ProjectsLocationsEntryGroupsEntriesTagsPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsEntryGroupsEntriesTagsPatchCall) UpdateMask ¶
func (c *ProjectsLocationsEntryGroupsEntriesTagsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsEntryGroupsEntriesTagsPatchCall
UpdateMask sets the optional parameter "updateMask": The fields to update on the Tag. If absent or empty, all modifiable fields are updated. Currently the only modifiable field is the field `fields`.
type ProjectsLocationsEntryGroupsEntriesTagsService ¶
type ProjectsLocationsEntryGroupsEntriesTagsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsEntryGroupsEntriesTagsService ¶
func NewProjectsLocationsEntryGroupsEntriesTagsService(s *Service) *ProjectsLocationsEntryGroupsEntriesTagsService
func (*ProjectsLocationsEntryGroupsEntriesTagsService) Create ¶
func (r *ProjectsLocationsEntryGroupsEntriesTagsService) Create(parent string, googleclouddatacatalogv1beta1tag *GoogleCloudDatacatalogV1beta1Tag) *ProjectsLocationsEntryGroupsEntriesTagsCreateCall
Create: Creates a tag on an Entry. Note: The project identified by the `parent` parameter for the [tag](/data-catalog/docs/reference/rest/v1beta1/projects.locations .entryGroups.entries.tags/create#path-parameters) and the [tag template](/data-catalog/docs/reference/rest/v1beta1/projects. locations.tagTemplates/create#path-parameters) used to create the tag must be from the same organization.
func (*ProjectsLocationsEntryGroupsEntriesTagsService) Delete ¶
func (r *ProjectsLocationsEntryGroupsEntriesTagsService) Delete(name string) *ProjectsLocationsEntryGroupsEntriesTagsDeleteCall
Delete: Deletes a tag.
func (*ProjectsLocationsEntryGroupsEntriesTagsService) List ¶
func (r *ProjectsLocationsEntryGroupsEntriesTagsService) List(parent string) *ProjectsLocationsEntryGroupsEntriesTagsListCall
List: Lists the tags on an Entry.
func (*ProjectsLocationsEntryGroupsEntriesTagsService) Patch ¶
func (r *ProjectsLocationsEntryGroupsEntriesTagsService) Patch(nameid string, googleclouddatacatalogv1beta1tag *GoogleCloudDatacatalogV1beta1Tag) *ProjectsLocationsEntryGroupsEntriesTagsPatchCall
Patch: Updates an existing tag.
type ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall ¶
type ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall) Context ¶
func (c *ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall) Do ¶
func (c *ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
Do executes the "datacatalog.projects.locations.entryGroups.entries.testIamPermissions" call. Exactly one of *TestIamPermissionsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *TestIamPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall) Fields ¶
func (c *ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall) Header ¶
func (c *ProjectsLocationsEntryGroupsEntriesTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsEntryGroupsGetCall ¶
type ProjectsLocationsEntryGroupsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsEntryGroupsGetCall) Context ¶
func (c *ProjectsLocationsEntryGroupsGetCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsEntryGroupsGetCall) Do ¶
func (c *ProjectsLocationsEntryGroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1beta1EntryGroup, error)
Do executes the "datacatalog.projects.locations.entryGroups.get" call. Exactly one of *GoogleCloudDatacatalogV1beta1EntryGroup or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDatacatalogV1beta1EntryGroup.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsEntryGroupsGetCall) Fields ¶
func (c *ProjectsLocationsEntryGroupsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsEntryGroupsGetCall) Header ¶
func (c *ProjectsLocationsEntryGroupsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsEntryGroupsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsEntryGroupsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEntryGroupsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsEntryGroupsGetCall) ReadMask ¶
func (c *ProjectsLocationsEntryGroupsGetCall) ReadMask(readMask string) *ProjectsLocationsEntryGroupsGetCall
ReadMask sets the optional parameter "readMask": The fields to return. If not set or empty, all fields are returned.
type ProjectsLocationsEntryGroupsGetIamPolicyCall ¶
type ProjectsLocationsEntryGroupsGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsEntryGroupsGetIamPolicyCall) Context ¶
func (c *ProjectsLocationsEntryGroupsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsGetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsEntryGroupsGetIamPolicyCall) Do ¶
func (c *ProjectsLocationsEntryGroupsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "datacatalog.projects.locations.entryGroups.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsEntryGroupsGetIamPolicyCall) Fields ¶
func (c *ProjectsLocationsEntryGroupsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsEntryGroupsGetIamPolicyCall) Header ¶
func (c *ProjectsLocationsEntryGroupsGetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsEntryGroupsService ¶
type ProjectsLocationsEntryGroupsService struct { Entries *ProjectsLocationsEntryGroupsEntriesService // contains filtered or unexported fields }
func NewProjectsLocationsEntryGroupsService ¶
func NewProjectsLocationsEntryGroupsService(s *Service) *ProjectsLocationsEntryGroupsService
func (*ProjectsLocationsEntryGroupsService) Create ¶
func (r *ProjectsLocationsEntryGroupsService) Create(parent string, googleclouddatacatalogv1beta1entrygroup *GoogleCloudDatacatalogV1beta1EntryGroup) *ProjectsLocationsEntryGroupsCreateCall
Create: Alpha feature. Creates an EntryGroup. The user should enable the Data Catalog API in the project identified by the `parent` parameter (see [Data Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) for more information).
func (*ProjectsLocationsEntryGroupsService) Delete ¶
func (r *ProjectsLocationsEntryGroupsService) Delete(name string) *ProjectsLocationsEntryGroupsDeleteCall
Delete: Alpha feature. Deletes an EntryGroup. Only entry groups that do not contain entries can be deleted. The user should enable the Data Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) for more information).
func (*ProjectsLocationsEntryGroupsService) Get ¶
func (r *ProjectsLocationsEntryGroupsService) Get(name string) *ProjectsLocationsEntryGroupsGetCall
Get: Alpha feature. Gets an EntryGroup.
func (*ProjectsLocationsEntryGroupsService) GetIamPolicy ¶
func (r *ProjectsLocationsEntryGroupsService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsLocationsEntryGroupsGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. A `NOT_FOUND` error is returned if the resource does not exist. An empty policy is returned if the resource exists but does not have a policy set on it.
Supported resources are:
- Tag templates.
- Entries.
- Entry groups.
Note, this method cannot be used to manage policies for BigQuery, Cloud Pub/Sub and any external Google Cloud Platform resources synced to Cloud Data Catalog.
Callers must have following Google IAM permission
- `datacatalog.tagTemplates.getIamPolicy` to get policies on tag templates.
- `datacatalog.entries.getIamPolicy` to get policies on entries.
- `datacatalog.entryGroups.getIamPolicy` to get policies on entry
groups.
func (*ProjectsLocationsEntryGroupsService) SetIamPolicy ¶
func (r *ProjectsLocationsEntryGroupsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsEntryGroupsSetIamPolicyCall
SetIamPolicy: Sets the access control policy for a resource. Replaces any existing policy. Supported resources are:
- Tag templates.
- Entries.
- Entry groups.
Note, this method cannot be used to manage policies for BigQuery, Cloud Pub/Sub and any external Google Cloud Platform resources synced to Cloud Data Catalog.
Callers must have following Google IAM permission
- `datacatalog.tagTemplates.setIamPolicy` to set policies on tag templates.
- `datacatalog.entries.setIamPolicy` to set policies on entries.
- `datacatalog.entryGroups.setIamPolicy` to set policies on entry
groups.
func (*ProjectsLocationsEntryGroupsService) TestIamPermissions ¶
func (r *ProjectsLocationsEntryGroupsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsEntryGroupsTestIamPermissionsCall
TestIamPermissions: Returns the caller's permissions on a resource. If the resource does not exist, an empty set of permissions is returned (We don't return a `NOT_FOUND` error).
Supported resources are:
- Tag templates.
- Entries.
- Entry groups.
Note, this method cannot be used to manage policies for BigQuery, Cloud Pub/Sub and any external Google Cloud Platform resources synced to Cloud Data Catalog.
A caller is not required to have Google IAM permission to make this request.
type ProjectsLocationsEntryGroupsSetIamPolicyCall ¶
type ProjectsLocationsEntryGroupsSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsEntryGroupsSetIamPolicyCall) Context ¶
func (c *ProjectsLocationsEntryGroupsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsSetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsEntryGroupsSetIamPolicyCall) Do ¶
func (c *ProjectsLocationsEntryGroupsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "datacatalog.projects.locations.entryGroups.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsEntryGroupsSetIamPolicyCall) Fields ¶
func (c *ProjectsLocationsEntryGroupsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsEntryGroupsSetIamPolicyCall) Header ¶
func (c *ProjectsLocationsEntryGroupsSetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsEntryGroupsTestIamPermissionsCall ¶
type ProjectsLocationsEntryGroupsTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsEntryGroupsTestIamPermissionsCall) Context ¶
func (c *ProjectsLocationsEntryGroupsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsEntryGroupsTestIamPermissionsCall) Do ¶
func (c *ProjectsLocationsEntryGroupsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
Do executes the "datacatalog.projects.locations.entryGroups.testIamPermissions" call. Exactly one of *TestIamPermissionsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *TestIamPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsEntryGroupsTestIamPermissionsCall) Fields ¶
func (c *ProjectsLocationsEntryGroupsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsEntryGroupsTestIamPermissionsCall) Header ¶
func (c *ProjectsLocationsEntryGroupsTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsService ¶
type ProjectsLocationsService struct { EntryGroups *ProjectsLocationsEntryGroupsService TagTemplates *ProjectsLocationsTagTemplatesService // contains filtered or unexported fields }
func NewProjectsLocationsService ¶
func NewProjectsLocationsService(s *Service) *ProjectsLocationsService
type ProjectsLocationsTagTemplatesCreateCall ¶
type ProjectsLocationsTagTemplatesCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsTagTemplatesCreateCall) Context ¶
func (c *ProjectsLocationsTagTemplatesCreateCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsTagTemplatesCreateCall) Do ¶
func (c *ProjectsLocationsTagTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1beta1TagTemplate, error)
Do executes the "datacatalog.projects.locations.tagTemplates.create" call. Exactly one of *GoogleCloudDatacatalogV1beta1TagTemplate or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDatacatalogV1beta1TagTemplate.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsTagTemplatesCreateCall) Fields ¶
func (c *ProjectsLocationsTagTemplatesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsTagTemplatesCreateCall) Header ¶
func (c *ProjectsLocationsTagTemplatesCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsTagTemplatesCreateCall) TagTemplateId ¶
func (c *ProjectsLocationsTagTemplatesCreateCall) TagTemplateId(tagTemplateId string) *ProjectsLocationsTagTemplatesCreateCall
TagTemplateId sets the optional parameter "tagTemplateId": Required. The id of the tag template to create.
type ProjectsLocationsTagTemplatesDeleteCall ¶
type ProjectsLocationsTagTemplatesDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsTagTemplatesDeleteCall) Context ¶
func (c *ProjectsLocationsTagTemplatesDeleteCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsTagTemplatesDeleteCall) Do ¶
func (c *ProjectsLocationsTagTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "datacatalog.projects.locations.tagTemplates.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsTagTemplatesDeleteCall) Fields ¶
func (c *ProjectsLocationsTagTemplatesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsTagTemplatesDeleteCall) Force ¶
func (c *ProjectsLocationsTagTemplatesDeleteCall) Force(force bool) *ProjectsLocationsTagTemplatesDeleteCall
Force sets the optional parameter "force": Required. Currently, this field must always be set to `true`. This confirms the deletion of any possible tags using this template. `force = false` will be supported in the future.
func (*ProjectsLocationsTagTemplatesDeleteCall) Header ¶
func (c *ProjectsLocationsTagTemplatesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsTagTemplatesFieldsCreateCall ¶
type ProjectsLocationsTagTemplatesFieldsCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsTagTemplatesFieldsCreateCall) Context ¶
func (c *ProjectsLocationsTagTemplatesFieldsCreateCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesFieldsCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsTagTemplatesFieldsCreateCall) Do ¶
func (c *ProjectsLocationsTagTemplatesFieldsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1beta1TagTemplateField, error)
Do executes the "datacatalog.projects.locations.tagTemplates.fields.create" call. Exactly one of *GoogleCloudDatacatalogV1beta1TagTemplateField or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDatacatalogV1beta1TagTemplateField.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsTagTemplatesFieldsCreateCall) Fields ¶
func (c *ProjectsLocationsTagTemplatesFieldsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesFieldsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsTagTemplatesFieldsCreateCall) Header ¶
func (c *ProjectsLocationsTagTemplatesFieldsCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsTagTemplatesFieldsCreateCall) TagTemplateFieldId ¶
func (c *ProjectsLocationsTagTemplatesFieldsCreateCall) TagTemplateFieldId(tagTemplateFieldId string) *ProjectsLocationsTagTemplatesFieldsCreateCall
TagTemplateFieldId sets the optional parameter "tagTemplateFieldId": Required. The ID of the tag template field to create. Field ids can contain letters (both uppercase and lowercase), numbers (0-9), underscores (_) and dashes (-). Field IDs must be at least 1 character long and at most 128 characters long. Field IDs must also be unique within their template.
type ProjectsLocationsTagTemplatesFieldsDeleteCall ¶
type ProjectsLocationsTagTemplatesFieldsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsTagTemplatesFieldsDeleteCall) Context ¶
func (c *ProjectsLocationsTagTemplatesFieldsDeleteCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesFieldsDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsTagTemplatesFieldsDeleteCall) Do ¶
func (c *ProjectsLocationsTagTemplatesFieldsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "datacatalog.projects.locations.tagTemplates.fields.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsTagTemplatesFieldsDeleteCall) Fields ¶
func (c *ProjectsLocationsTagTemplatesFieldsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesFieldsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsTagTemplatesFieldsDeleteCall) Force ¶
func (c *ProjectsLocationsTagTemplatesFieldsDeleteCall) Force(force bool) *ProjectsLocationsTagTemplatesFieldsDeleteCall
Force sets the optional parameter "force": Required. Currently, this field must always be set to `true`. This confirms the deletion of this field from any tags using this field. `force = false` will be supported in the future.
func (*ProjectsLocationsTagTemplatesFieldsDeleteCall) Header ¶
func (c *ProjectsLocationsTagTemplatesFieldsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsTagTemplatesFieldsPatchCall ¶
type ProjectsLocationsTagTemplatesFieldsPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsTagTemplatesFieldsPatchCall) Context ¶
func (c *ProjectsLocationsTagTemplatesFieldsPatchCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesFieldsPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsTagTemplatesFieldsPatchCall) Do ¶
func (c *ProjectsLocationsTagTemplatesFieldsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1beta1TagTemplateField, error)
Do executes the "datacatalog.projects.locations.tagTemplates.fields.patch" call. Exactly one of *GoogleCloudDatacatalogV1beta1TagTemplateField or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDatacatalogV1beta1TagTemplateField.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsTagTemplatesFieldsPatchCall) Fields ¶
func (c *ProjectsLocationsTagTemplatesFieldsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesFieldsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsTagTemplatesFieldsPatchCall) Header ¶
func (c *ProjectsLocationsTagTemplatesFieldsPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsTagTemplatesFieldsPatchCall) UpdateMask ¶
func (c *ProjectsLocationsTagTemplatesFieldsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsTagTemplatesFieldsPatchCall
UpdateMask sets the optional parameter "updateMask": The field mask specifies the parts of the template to be updated. Allowed fields:
- `display_name`
- `type.enum_type`
If `update_mask` is not set or empty, all of the allowed fields above will be updated.
When updating an enum type, the provided values will be merged with the existing values. Therefore, enum values can only be added, existing enum values cannot be deleted nor renamed.
type ProjectsLocationsTagTemplatesFieldsRenameCall ¶
type ProjectsLocationsTagTemplatesFieldsRenameCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsTagTemplatesFieldsRenameCall) Context ¶
func (c *ProjectsLocationsTagTemplatesFieldsRenameCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesFieldsRenameCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsTagTemplatesFieldsRenameCall) Do ¶
func (c *ProjectsLocationsTagTemplatesFieldsRenameCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1beta1TagTemplateField, error)
Do executes the "datacatalog.projects.locations.tagTemplates.fields.rename" call. Exactly one of *GoogleCloudDatacatalogV1beta1TagTemplateField or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDatacatalogV1beta1TagTemplateField.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsTagTemplatesFieldsRenameCall) Fields ¶
func (c *ProjectsLocationsTagTemplatesFieldsRenameCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesFieldsRenameCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsTagTemplatesFieldsRenameCall) Header ¶
func (c *ProjectsLocationsTagTemplatesFieldsRenameCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsTagTemplatesFieldsService ¶
type ProjectsLocationsTagTemplatesFieldsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsTagTemplatesFieldsService ¶
func NewProjectsLocationsTagTemplatesFieldsService(s *Service) *ProjectsLocationsTagTemplatesFieldsService
func (*ProjectsLocationsTagTemplatesFieldsService) Create ¶
func (r *ProjectsLocationsTagTemplatesFieldsService) Create(parent string, googleclouddatacatalogv1beta1tagtemplatefield *GoogleCloudDatacatalogV1beta1TagTemplateField) *ProjectsLocationsTagTemplatesFieldsCreateCall
Create: Creates a field in a tag template. The user should enable the Data Catalog API in the project identified by the `parent` parameter (see [Data Catalog Resource Project](/data-catalog/docs/concepts/resource-project) for more information).
func (*ProjectsLocationsTagTemplatesFieldsService) Delete ¶
func (r *ProjectsLocationsTagTemplatesFieldsService) Delete(name string) *ProjectsLocationsTagTemplatesFieldsDeleteCall
Delete: Deletes a field in a tag template and all uses of that field. The user should enable the Data Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) for more information).
func (*ProjectsLocationsTagTemplatesFieldsService) Patch ¶
func (r *ProjectsLocationsTagTemplatesFieldsService) Patch(name string, googleclouddatacatalogv1beta1tagtemplatefield *GoogleCloudDatacatalogV1beta1TagTemplateField) *ProjectsLocationsTagTemplatesFieldsPatchCall
Patch: Updates a field in a tag template. This method cannot be used to update the field type. The user should enable the Data Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) for more information).
func (*ProjectsLocationsTagTemplatesFieldsService) Rename ¶
func (r *ProjectsLocationsTagTemplatesFieldsService) Rename(name string, googleclouddatacatalogv1beta1renametagtemplatefieldrequest *GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldRequest) *ProjectsLocationsTagTemplatesFieldsRenameCall
Rename: Renames a field in a tag template. The user should enable the Data Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource Project](/data-catalog/docs/concepts/resource-project) for more information).
type ProjectsLocationsTagTemplatesGetCall ¶
type ProjectsLocationsTagTemplatesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsTagTemplatesGetCall) Context ¶
func (c *ProjectsLocationsTagTemplatesGetCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsTagTemplatesGetCall) Do ¶
func (c *ProjectsLocationsTagTemplatesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1beta1TagTemplate, error)
Do executes the "datacatalog.projects.locations.tagTemplates.get" call. Exactly one of *GoogleCloudDatacatalogV1beta1TagTemplate or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDatacatalogV1beta1TagTemplate.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsTagTemplatesGetCall) Fields ¶
func (c *ProjectsLocationsTagTemplatesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsTagTemplatesGetCall) Header ¶
func (c *ProjectsLocationsTagTemplatesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsTagTemplatesGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsTagTemplatesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsTagTemplatesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsTagTemplatesGetIamPolicyCall ¶
type ProjectsLocationsTagTemplatesGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsTagTemplatesGetIamPolicyCall) Context ¶
func (c *ProjectsLocationsTagTemplatesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesGetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsTagTemplatesGetIamPolicyCall) Do ¶
func (c *ProjectsLocationsTagTemplatesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "datacatalog.projects.locations.tagTemplates.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsTagTemplatesGetIamPolicyCall) Fields ¶
func (c *ProjectsLocationsTagTemplatesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsTagTemplatesGetIamPolicyCall) Header ¶
func (c *ProjectsLocationsTagTemplatesGetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsTagTemplatesPatchCall ¶
type ProjectsLocationsTagTemplatesPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsTagTemplatesPatchCall) Context ¶
func (c *ProjectsLocationsTagTemplatesPatchCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsTagTemplatesPatchCall) Do ¶
func (c *ProjectsLocationsTagTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogV1beta1TagTemplate, error)
Do executes the "datacatalog.projects.locations.tagTemplates.patch" call. Exactly one of *GoogleCloudDatacatalogV1beta1TagTemplate or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDatacatalogV1beta1TagTemplate.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsTagTemplatesPatchCall) Fields ¶
func (c *ProjectsLocationsTagTemplatesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsTagTemplatesPatchCall) Header ¶
func (c *ProjectsLocationsTagTemplatesPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsTagTemplatesPatchCall) UpdateMask ¶
func (c *ProjectsLocationsTagTemplatesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsTagTemplatesPatchCall
UpdateMask sets the optional parameter "updateMask": The field mask specifies the parts of the template to overwrite.
Allowed fields:
- `display_name`
If absent or empty, all of the allowed fields above will be updated.
type ProjectsLocationsTagTemplatesService ¶
type ProjectsLocationsTagTemplatesService struct { Fields *ProjectsLocationsTagTemplatesFieldsService // contains filtered or unexported fields }
func NewProjectsLocationsTagTemplatesService ¶
func NewProjectsLocationsTagTemplatesService(s *Service) *ProjectsLocationsTagTemplatesService
func (*ProjectsLocationsTagTemplatesService) Create ¶
func (r *ProjectsLocationsTagTemplatesService) Create(parent string, googleclouddatacatalogv1beta1tagtemplate *GoogleCloudDatacatalogV1beta1TagTemplate) *ProjectsLocationsTagTemplatesCreateCall
Create: Creates a tag template. The user should enable the Data Catalog API in the project identified by the `parent` parameter (see [Data Catalog Resource Project](/data-catalog/docs/concepts/resource-project) for more information).
func (*ProjectsLocationsTagTemplatesService) Delete ¶
func (r *ProjectsLocationsTagTemplatesService) Delete(name string) *ProjectsLocationsTagTemplatesDeleteCall
Delete: Deletes a tag template and all tags using the template. The user should enable the Data Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) for more information).
func (*ProjectsLocationsTagTemplatesService) Get ¶
func (r *ProjectsLocationsTagTemplatesService) Get(name string) *ProjectsLocationsTagTemplatesGetCall
Get: Gets a tag template.
func (*ProjectsLocationsTagTemplatesService) GetIamPolicy ¶
func (r *ProjectsLocationsTagTemplatesService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsLocationsTagTemplatesGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. A `NOT_FOUND` error is returned if the resource does not exist. An empty policy is returned if the resource exists but does not have a policy set on it.
Supported resources are:
- Tag templates.
- Entries.
- Entry groups.
Note, this method cannot be used to manage policies for BigQuery, Cloud Pub/Sub and any external Google Cloud Platform resources synced to Cloud Data Catalog.
Callers must have following Google IAM permission
- `datacatalog.tagTemplates.getIamPolicy` to get policies on tag templates.
- `datacatalog.entries.getIamPolicy` to get policies on entries.
- `datacatalog.entryGroups.getIamPolicy` to get policies on entry
groups.
func (*ProjectsLocationsTagTemplatesService) Patch ¶
func (r *ProjectsLocationsTagTemplatesService) Patch(name string, googleclouddatacatalogv1beta1tagtemplate *GoogleCloudDatacatalogV1beta1TagTemplate) *ProjectsLocationsTagTemplatesPatchCall
Patch: Updates a tag template. This method cannot be used to update the fields of a template. The tag template fields are represented as separate resources and should be updated using their own create/update/delete methods. The user should enable the Data Catalog API in the project identified by the `tag_template.name` parameter (see [Data Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) for more information).
func (*ProjectsLocationsTagTemplatesService) SetIamPolicy ¶
func (r *ProjectsLocationsTagTemplatesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsTagTemplatesSetIamPolicyCall
SetIamPolicy: Sets the access control policy for a resource. Replaces any existing policy. Supported resources are:
- Tag templates.
- Entries.
- Entry groups.
Note, this method cannot be used to manage policies for BigQuery, Cloud Pub/Sub and any external Google Cloud Platform resources synced to Cloud Data Catalog.
Callers must have following Google IAM permission
- `datacatalog.tagTemplates.setIamPolicy` to set policies on tag templates.
- `datacatalog.entries.setIamPolicy` to set policies on entries.
- `datacatalog.entryGroups.setIamPolicy` to set policies on entry
groups.
func (*ProjectsLocationsTagTemplatesService) TestIamPermissions ¶
func (r *ProjectsLocationsTagTemplatesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsTagTemplatesTestIamPermissionsCall
TestIamPermissions: Returns the caller's permissions on a resource. If the resource does not exist, an empty set of permissions is returned (We don't return a `NOT_FOUND` error).
Supported resources are:
- Tag templates.
- Entries.
- Entry groups.
Note, this method cannot be used to manage policies for BigQuery, Cloud Pub/Sub and any external Google Cloud Platform resources synced to Cloud Data Catalog.
A caller is not required to have Google IAM permission to make this request.
type ProjectsLocationsTagTemplatesSetIamPolicyCall ¶
type ProjectsLocationsTagTemplatesSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsTagTemplatesSetIamPolicyCall) Context ¶
func (c *ProjectsLocationsTagTemplatesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesSetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsTagTemplatesSetIamPolicyCall) Do ¶
func (c *ProjectsLocationsTagTemplatesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "datacatalog.projects.locations.tagTemplates.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsTagTemplatesSetIamPolicyCall) Fields ¶
func (c *ProjectsLocationsTagTemplatesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsTagTemplatesSetIamPolicyCall) Header ¶
func (c *ProjectsLocationsTagTemplatesSetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsTagTemplatesTestIamPermissionsCall ¶
type ProjectsLocationsTagTemplatesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsTagTemplatesTestIamPermissionsCall) Context ¶
func (c *ProjectsLocationsTagTemplatesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsTagTemplatesTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsTagTemplatesTestIamPermissionsCall) Do ¶
func (c *ProjectsLocationsTagTemplatesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
Do executes the "datacatalog.projects.locations.tagTemplates.testIamPermissions" call. Exactly one of *TestIamPermissionsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *TestIamPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsTagTemplatesTestIamPermissionsCall) Fields ¶
func (c *ProjectsLocationsTagTemplatesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsTagTemplatesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsTagTemplatesTestIamPermissionsCall) Header ¶
func (c *ProjectsLocationsTagTemplatesTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsService ¶
type ProjectsService struct { Locations *ProjectsLocationsService // contains filtered or unexported fields }
func NewProjectsService ¶
func NewProjectsService(s *Service) *ProjectsService
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment Catalog *CatalogService Entries *EntriesService Projects *ProjectsService // contains filtered or unexported fields }
func New
deprecated
New creates a new Service. It uses the provided http.Client for requests.
Deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
func NewService ¶
NewService creates a new Service.
type SetIamPolicyRequest ¶
type SetIamPolicyRequest struct { // Policy: REQUIRED: The complete policy to be applied to the // `resource`. The size of // the policy is limited to a few 10s of KB. An empty policy is a // valid policy but certain Cloud Platform services (such as // Projects) // might reject them. Policy *Policy `json:"policy,omitempty"` // ForceSendFields is a list of field names (e.g. "Policy") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Policy") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
SetIamPolicyRequest: Request message for `SetIamPolicy` method.
func (*SetIamPolicyRequest) MarshalJSON ¶
func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error)
type TestIamPermissionsRequest ¶
type TestIamPermissionsRequest struct { // Permissions: The set of permissions to check for the `resource`. // Permissions with // wildcards (such as '*' or 'storage.*') are not allowed. For // more // information see // [IAM // Overview](https://cloud.google.com/iam/docs/overview#permissions). Permissions []string `json:"permissions,omitempty"` // ForceSendFields is a list of field names (e.g. "Permissions") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Permissions") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
TestIamPermissionsRequest: Request message for `TestIamPermissions` method.
func (*TestIamPermissionsRequest) MarshalJSON ¶
func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error)
type TestIamPermissionsResponse ¶
type TestIamPermissionsResponse struct { // Permissions: A subset of `TestPermissionsRequest.permissions` that // the caller is // allowed. Permissions []string `json:"permissions,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Permissions") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Permissions") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
TestIamPermissionsResponse: Response message for `TestIamPermissions` method.
func (*TestIamPermissionsResponse) MarshalJSON ¶
func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error)