Documentation
¶
Overview ¶
Package drivelabels provides access to the Drive Labels API.
For product documentation, see: https://developers.google.com/workspace/drive/labels
Library status ¶
These client libraries are officially supported by Google. However, this library is considered complete and is in maintenance mode. This means that we will address critical bugs and security issues but will not add any new features.
When possible, we recommend using our newer [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) that are still actively being worked and iterated on.
Creating a client ¶
Usage example:
import "google.golang.org/api/drivelabels/v2" ... ctx := context.Background() drivelabelsService, err := drivelabels.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 ¶
By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use google.golang.org/api/option.WithScopes:
drivelabelsService, err := drivelabels.NewService(ctx, option.WithScopes(drivelabels.DriveLabelsReadonlyScope))
To use an API key for authentication (note: some APIs do not support API keys), use google.golang.org/api/option.WithAPIKey:
drivelabelsService, err := drivelabels.NewService(ctx, option.WithAPIKey("AIza..."))
To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow, use google.golang.org/api/option.WithTokenSource:
config := &oauth2.Config{...}
// ...
token, err := config.Exchange(ctx, ...)
drivelabelsService, err := drivelabels.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
See google.golang.org/api/option.ClientOption for details on options.
Index ¶
- Constants
- type GoogleAppsDriveLabelsV2BadgeColors
- type GoogleAppsDriveLabelsV2BadgeConfig
- type GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest
- type GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest
- type GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse
- type GoogleAppsDriveLabelsV2DateLimits
- type GoogleAppsDriveLabelsV2DeleteLabelPermissionRequest
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequest
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateFieldRequest
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateSelectionChoiceRequest
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteFieldRequest
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteSelectionChoiceRequest
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableFieldRequest
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableSelectionChoiceRequest
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableFieldRequest
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableSelectionChoiceRequest
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestRequest
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldPropertiesRequest
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldTypeRequest
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateLabelPropertiesRequest
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponse
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateFieldResponse
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateSelectionChoiceResponse
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteFieldResponse
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteSelectionChoiceResponse
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableFieldResponse
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableSelectionChoiceResponse
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableFieldResponse
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableSelectionChoiceResponse
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseResponse
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldPropertiesResponse
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldTypeResponse
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateLabelPropertiesResponse
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse
- type GoogleAppsDriveLabelsV2DisableLabelRequest
- type GoogleAppsDriveLabelsV2EnableLabelRequest
- type GoogleAppsDriveLabelsV2Field
- type GoogleAppsDriveLabelsV2FieldAppliedCapabilities
- type GoogleAppsDriveLabelsV2FieldDateOptions
- type GoogleAppsDriveLabelsV2FieldDisplayHints
- type GoogleAppsDriveLabelsV2FieldIntegerOptions
- type GoogleAppsDriveLabelsV2FieldLimits
- type GoogleAppsDriveLabelsV2FieldListOptions
- type GoogleAppsDriveLabelsV2FieldProperties
- type GoogleAppsDriveLabelsV2FieldSchemaCapabilities
- type GoogleAppsDriveLabelsV2FieldSelectionOptions
- type GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice
- type GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceAppliedCapabilities
- type GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceDisplayHints
- type GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties
- type GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceSchemaCapabilities
- type GoogleAppsDriveLabelsV2FieldTextOptions
- type GoogleAppsDriveLabelsV2FieldUserOptions
- type GoogleAppsDriveLabelsV2IntegerLimits
- type GoogleAppsDriveLabelsV2Label
- type GoogleAppsDriveLabelsV2LabelAppliedCapabilities
- type GoogleAppsDriveLabelsV2LabelAppliedLabelPolicy
- type GoogleAppsDriveLabelsV2LabelDisplayHints
- type GoogleAppsDriveLabelsV2LabelEnabledAppSettings
- type GoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp
- type GoogleAppsDriveLabelsV2LabelLimits
- type GoogleAppsDriveLabelsV2LabelLock
- type GoogleAppsDriveLabelsV2LabelLockCapabilities
- type GoogleAppsDriveLabelsV2LabelPermission
- type GoogleAppsDriveLabelsV2LabelProperties
- type GoogleAppsDriveLabelsV2LabelSchemaCapabilities
- type GoogleAppsDriveLabelsV2Lifecycle
- type GoogleAppsDriveLabelsV2LifecycleDisabledPolicy
- type GoogleAppsDriveLabelsV2ListLabelLocksResponse
- type GoogleAppsDriveLabelsV2ListLabelPermissionsResponse
- type GoogleAppsDriveLabelsV2ListLabelsResponse
- type GoogleAppsDriveLabelsV2ListLimits
- type GoogleAppsDriveLabelsV2LockStatus
- type GoogleAppsDriveLabelsV2LongTextLimits
- type GoogleAppsDriveLabelsV2PublishLabelRequest
- type GoogleAppsDriveLabelsV2SelectionLimits
- type GoogleAppsDriveLabelsV2TextLimits
- type GoogleAppsDriveLabelsV2UpdateLabelCopyModeRequest
- type GoogleAppsDriveLabelsV2UpdateLabelEnabledAppSettingsRequest
- type GoogleAppsDriveLabelsV2UpdateLabelPermissionRequest
- type GoogleAppsDriveLabelsV2UserCapabilities
- type GoogleAppsDriveLabelsV2UserInfo
- type GoogleAppsDriveLabelsV2UserLimits
- type GoogleAppsDriveLabelsV2WriteControl
- type GoogleProtobufEmpty
- type GoogleTypeColor
- type GoogleTypeDate
- type LabelsCreateCall
- func (c *LabelsCreateCall) Context(ctx context.Context) *LabelsCreateCall
- func (c *LabelsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2Label, error)
- func (c *LabelsCreateCall) Fields(s ...googleapi.Field) *LabelsCreateCall
- func (c *LabelsCreateCall) Header() http.Header
- func (c *LabelsCreateCall) LanguageCode(languageCode string) *LabelsCreateCall
- func (c *LabelsCreateCall) UseAdminAccess(useAdminAccess bool) *LabelsCreateCall
- type LabelsDeleteCall
- func (c *LabelsDeleteCall) Context(ctx context.Context) *LabelsDeleteCall
- func (c *LabelsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
- func (c *LabelsDeleteCall) Fields(s ...googleapi.Field) *LabelsDeleteCall
- func (c *LabelsDeleteCall) Header() http.Header
- func (c *LabelsDeleteCall) UseAdminAccess(useAdminAccess bool) *LabelsDeleteCall
- func (c *LabelsDeleteCall) WriteControlRequiredRevisionId(writeControlRequiredRevisionId string) *LabelsDeleteCall
- type LabelsDeltaCall
- func (c *LabelsDeltaCall) Context(ctx context.Context) *LabelsDeltaCall
- func (c *LabelsDeltaCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2DeltaUpdateLabelResponse, error)
- func (c *LabelsDeltaCall) Fields(s ...googleapi.Field) *LabelsDeltaCall
- func (c *LabelsDeltaCall) Header() http.Header
- type LabelsDisableCall
- func (c *LabelsDisableCall) Context(ctx context.Context) *LabelsDisableCall
- func (c *LabelsDisableCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2Label, error)
- func (c *LabelsDisableCall) Fields(s ...googleapi.Field) *LabelsDisableCall
- func (c *LabelsDisableCall) Header() http.Header
- type LabelsEnableCall
- type LabelsGetCall
- func (c *LabelsGetCall) Context(ctx context.Context) *LabelsGetCall
- func (c *LabelsGetCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2Label, error)
- func (c *LabelsGetCall) Fields(s ...googleapi.Field) *LabelsGetCall
- func (c *LabelsGetCall) Header() http.Header
- func (c *LabelsGetCall) IfNoneMatch(entityTag string) *LabelsGetCall
- func (c *LabelsGetCall) LanguageCode(languageCode string) *LabelsGetCall
- func (c *LabelsGetCall) UseAdminAccess(useAdminAccess bool) *LabelsGetCall
- func (c *LabelsGetCall) View(view string) *LabelsGetCall
- type LabelsListCall
- func (c *LabelsListCall) Context(ctx context.Context) *LabelsListCall
- func (c *LabelsListCall) Customer(customer string) *LabelsListCall
- func (c *LabelsListCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2ListLabelsResponse, error)
- func (c *LabelsListCall) Fields(s ...googleapi.Field) *LabelsListCall
- func (c *LabelsListCall) Header() http.Header
- func (c *LabelsListCall) IfNoneMatch(entityTag string) *LabelsListCall
- func (c *LabelsListCall) LanguageCode(languageCode string) *LabelsListCall
- func (c *LabelsListCall) MinimumRole(minimumRole string) *LabelsListCall
- func (c *LabelsListCall) PageSize(pageSize int64) *LabelsListCall
- func (c *LabelsListCall) PageToken(pageToken string) *LabelsListCall
- func (c *LabelsListCall) Pages(ctx context.Context, f func(*GoogleAppsDriveLabelsV2ListLabelsResponse) error) error
- func (c *LabelsListCall) PublishedOnly(publishedOnly bool) *LabelsListCall
- func (c *LabelsListCall) UseAdminAccess(useAdminAccess bool) *LabelsListCall
- func (c *LabelsListCall) View(view string) *LabelsListCall
- type LabelsLocksListCall
- func (c *LabelsLocksListCall) Context(ctx context.Context) *LabelsLocksListCall
- func (c *LabelsLocksListCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2ListLabelLocksResponse, error)
- func (c *LabelsLocksListCall) Fields(s ...googleapi.Field) *LabelsLocksListCall
- func (c *LabelsLocksListCall) Header() http.Header
- func (c *LabelsLocksListCall) IfNoneMatch(entityTag string) *LabelsLocksListCall
- func (c *LabelsLocksListCall) PageSize(pageSize int64) *LabelsLocksListCall
- func (c *LabelsLocksListCall) PageToken(pageToken string) *LabelsLocksListCall
- func (c *LabelsLocksListCall) Pages(ctx context.Context, ...) error
- type LabelsLocksService
- type LabelsPermissionsBatchDeleteCall
- func (c *LabelsPermissionsBatchDeleteCall) Context(ctx context.Context) *LabelsPermissionsBatchDeleteCall
- func (c *LabelsPermissionsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
- func (c *LabelsPermissionsBatchDeleteCall) Fields(s ...googleapi.Field) *LabelsPermissionsBatchDeleteCall
- func (c *LabelsPermissionsBatchDeleteCall) Header() http.Header
- type LabelsPermissionsBatchUpdateCall
- func (c *LabelsPermissionsBatchUpdateCall) Context(ctx context.Context) *LabelsPermissionsBatchUpdateCall
- func (c *LabelsPermissionsBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse, error)
- func (c *LabelsPermissionsBatchUpdateCall) Fields(s ...googleapi.Field) *LabelsPermissionsBatchUpdateCall
- func (c *LabelsPermissionsBatchUpdateCall) Header() http.Header
- type LabelsPermissionsCreateCall
- func (c *LabelsPermissionsCreateCall) Context(ctx context.Context) *LabelsPermissionsCreateCall
- func (c *LabelsPermissionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2LabelPermission, error)
- func (c *LabelsPermissionsCreateCall) Fields(s ...googleapi.Field) *LabelsPermissionsCreateCall
- func (c *LabelsPermissionsCreateCall) Header() http.Header
- func (c *LabelsPermissionsCreateCall) UseAdminAccess(useAdminAccess bool) *LabelsPermissionsCreateCall
- type LabelsPermissionsDeleteCall
- func (c *LabelsPermissionsDeleteCall) Context(ctx context.Context) *LabelsPermissionsDeleteCall
- func (c *LabelsPermissionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
- func (c *LabelsPermissionsDeleteCall) Fields(s ...googleapi.Field) *LabelsPermissionsDeleteCall
- func (c *LabelsPermissionsDeleteCall) Header() http.Header
- func (c *LabelsPermissionsDeleteCall) UseAdminAccess(useAdminAccess bool) *LabelsPermissionsDeleteCall
- type LabelsPermissionsListCall
- func (c *LabelsPermissionsListCall) Context(ctx context.Context) *LabelsPermissionsListCall
- func (c *LabelsPermissionsListCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2ListLabelPermissionsResponse, error)
- func (c *LabelsPermissionsListCall) Fields(s ...googleapi.Field) *LabelsPermissionsListCall
- func (c *LabelsPermissionsListCall) Header() http.Header
- func (c *LabelsPermissionsListCall) IfNoneMatch(entityTag string) *LabelsPermissionsListCall
- func (c *LabelsPermissionsListCall) PageSize(pageSize int64) *LabelsPermissionsListCall
- func (c *LabelsPermissionsListCall) PageToken(pageToken string) *LabelsPermissionsListCall
- func (c *LabelsPermissionsListCall) Pages(ctx context.Context, ...) error
- func (c *LabelsPermissionsListCall) UseAdminAccess(useAdminAccess bool) *LabelsPermissionsListCall
- type LabelsPermissionsService
- func (r *LabelsPermissionsService) BatchDelete(parent string, ...) *LabelsPermissionsBatchDeleteCall
- func (r *LabelsPermissionsService) BatchUpdate(parent string, ...) *LabelsPermissionsBatchUpdateCall
- func (r *LabelsPermissionsService) Create(parent string, ...) *LabelsPermissionsCreateCall
- func (r *LabelsPermissionsService) Delete(name string) *LabelsPermissionsDeleteCall
- func (r *LabelsPermissionsService) List(parent string) *LabelsPermissionsListCall
- type LabelsPublishCall
- func (c *LabelsPublishCall) Context(ctx context.Context) *LabelsPublishCall
- func (c *LabelsPublishCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2Label, error)
- func (c *LabelsPublishCall) Fields(s ...googleapi.Field) *LabelsPublishCall
- func (c *LabelsPublishCall) Header() http.Header
- type LabelsRevisionsLocksListCall
- func (c *LabelsRevisionsLocksListCall) Context(ctx context.Context) *LabelsRevisionsLocksListCall
- func (c *LabelsRevisionsLocksListCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2ListLabelLocksResponse, error)
- func (c *LabelsRevisionsLocksListCall) Fields(s ...googleapi.Field) *LabelsRevisionsLocksListCall
- func (c *LabelsRevisionsLocksListCall) Header() http.Header
- func (c *LabelsRevisionsLocksListCall) IfNoneMatch(entityTag string) *LabelsRevisionsLocksListCall
- func (c *LabelsRevisionsLocksListCall) PageSize(pageSize int64) *LabelsRevisionsLocksListCall
- func (c *LabelsRevisionsLocksListCall) PageToken(pageToken string) *LabelsRevisionsLocksListCall
- func (c *LabelsRevisionsLocksListCall) Pages(ctx context.Context, ...) error
- type LabelsRevisionsLocksService
- type LabelsRevisionsPermissionsBatchDeleteCall
- func (c *LabelsRevisionsPermissionsBatchDeleteCall) Context(ctx context.Context) *LabelsRevisionsPermissionsBatchDeleteCall
- func (c *LabelsRevisionsPermissionsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
- func (c *LabelsRevisionsPermissionsBatchDeleteCall) Fields(s ...googleapi.Field) *LabelsRevisionsPermissionsBatchDeleteCall
- func (c *LabelsRevisionsPermissionsBatchDeleteCall) Header() http.Header
- type LabelsRevisionsPermissionsBatchUpdateCall
- func (c *LabelsRevisionsPermissionsBatchUpdateCall) Context(ctx context.Context) *LabelsRevisionsPermissionsBatchUpdateCall
- func (c *LabelsRevisionsPermissionsBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse, error)
- func (c *LabelsRevisionsPermissionsBatchUpdateCall) Fields(s ...googleapi.Field) *LabelsRevisionsPermissionsBatchUpdateCall
- func (c *LabelsRevisionsPermissionsBatchUpdateCall) Header() http.Header
- type LabelsRevisionsPermissionsCreateCall
- func (c *LabelsRevisionsPermissionsCreateCall) Context(ctx context.Context) *LabelsRevisionsPermissionsCreateCall
- func (c *LabelsRevisionsPermissionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2LabelPermission, error)
- func (c *LabelsRevisionsPermissionsCreateCall) Fields(s ...googleapi.Field) *LabelsRevisionsPermissionsCreateCall
- func (c *LabelsRevisionsPermissionsCreateCall) Header() http.Header
- func (c *LabelsRevisionsPermissionsCreateCall) UseAdminAccess(useAdminAccess bool) *LabelsRevisionsPermissionsCreateCall
- type LabelsRevisionsPermissionsDeleteCall
- func (c *LabelsRevisionsPermissionsDeleteCall) Context(ctx context.Context) *LabelsRevisionsPermissionsDeleteCall
- func (c *LabelsRevisionsPermissionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
- func (c *LabelsRevisionsPermissionsDeleteCall) Fields(s ...googleapi.Field) *LabelsRevisionsPermissionsDeleteCall
- func (c *LabelsRevisionsPermissionsDeleteCall) Header() http.Header
- func (c *LabelsRevisionsPermissionsDeleteCall) UseAdminAccess(useAdminAccess bool) *LabelsRevisionsPermissionsDeleteCall
- type LabelsRevisionsPermissionsListCall
- func (c *LabelsRevisionsPermissionsListCall) Context(ctx context.Context) *LabelsRevisionsPermissionsListCall
- func (c *LabelsRevisionsPermissionsListCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2ListLabelPermissionsResponse, error)
- func (c *LabelsRevisionsPermissionsListCall) Fields(s ...googleapi.Field) *LabelsRevisionsPermissionsListCall
- func (c *LabelsRevisionsPermissionsListCall) Header() http.Header
- func (c *LabelsRevisionsPermissionsListCall) IfNoneMatch(entityTag string) *LabelsRevisionsPermissionsListCall
- func (c *LabelsRevisionsPermissionsListCall) PageSize(pageSize int64) *LabelsRevisionsPermissionsListCall
- func (c *LabelsRevisionsPermissionsListCall) PageToken(pageToken string) *LabelsRevisionsPermissionsListCall
- func (c *LabelsRevisionsPermissionsListCall) Pages(ctx context.Context, ...) error
- func (c *LabelsRevisionsPermissionsListCall) UseAdminAccess(useAdminAccess bool) *LabelsRevisionsPermissionsListCall
- type LabelsRevisionsPermissionsService
- func (r *LabelsRevisionsPermissionsService) BatchDelete(parent string, ...) *LabelsRevisionsPermissionsBatchDeleteCall
- func (r *LabelsRevisionsPermissionsService) BatchUpdate(parent string, ...) *LabelsRevisionsPermissionsBatchUpdateCall
- func (r *LabelsRevisionsPermissionsService) Create(parent string, ...) *LabelsRevisionsPermissionsCreateCall
- func (r *LabelsRevisionsPermissionsService) Delete(name string) *LabelsRevisionsPermissionsDeleteCall
- func (r *LabelsRevisionsPermissionsService) List(parent string) *LabelsRevisionsPermissionsListCall
- type LabelsRevisionsService
- type LabelsRevisionsUpdatePermissionsCall
- func (c *LabelsRevisionsUpdatePermissionsCall) Context(ctx context.Context) *LabelsRevisionsUpdatePermissionsCall
- func (c *LabelsRevisionsUpdatePermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2LabelPermission, error)
- func (c *LabelsRevisionsUpdatePermissionsCall) Fields(s ...googleapi.Field) *LabelsRevisionsUpdatePermissionsCall
- func (c *LabelsRevisionsUpdatePermissionsCall) Header() http.Header
- func (c *LabelsRevisionsUpdatePermissionsCall) UseAdminAccess(useAdminAccess bool) *LabelsRevisionsUpdatePermissionsCall
- type LabelsService
- func (r *LabelsService) Create(googleappsdrivelabelsv2label *GoogleAppsDriveLabelsV2Label) *LabelsCreateCall
- func (r *LabelsService) Delete(name string) *LabelsDeleteCall
- func (r *LabelsService) Delta(name string, ...) *LabelsDeltaCall
- func (r *LabelsService) Disable(name string, ...) *LabelsDisableCall
- func (r *LabelsService) Enable(name string, ...) *LabelsEnableCall
- func (r *LabelsService) Get(name string) *LabelsGetCall
- func (r *LabelsService) List() *LabelsListCall
- func (r *LabelsService) Publish(name string, ...) *LabelsPublishCall
- func (r *LabelsService) UpdateLabelCopyMode(name string, ...) *LabelsUpdateLabelCopyModeCall
- func (r *LabelsService) UpdateLabelEnabledAppSettings(name string, ...) *LabelsUpdateLabelEnabledAppSettingsCall
- func (r *LabelsService) UpdatePermissions(parent string, ...) *LabelsUpdatePermissionsCall
- type LabelsUpdateLabelCopyModeCall
- func (c *LabelsUpdateLabelCopyModeCall) Context(ctx context.Context) *LabelsUpdateLabelCopyModeCall
- func (c *LabelsUpdateLabelCopyModeCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2Label, error)
- func (c *LabelsUpdateLabelCopyModeCall) Fields(s ...googleapi.Field) *LabelsUpdateLabelCopyModeCall
- func (c *LabelsUpdateLabelCopyModeCall) Header() http.Header
- type LabelsUpdateLabelEnabledAppSettingsCall
- func (c *LabelsUpdateLabelEnabledAppSettingsCall) Context(ctx context.Context) *LabelsUpdateLabelEnabledAppSettingsCall
- func (c *LabelsUpdateLabelEnabledAppSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2Label, error)
- func (c *LabelsUpdateLabelEnabledAppSettingsCall) Fields(s ...googleapi.Field) *LabelsUpdateLabelEnabledAppSettingsCall
- func (c *LabelsUpdateLabelEnabledAppSettingsCall) Header() http.Header
- type LabelsUpdatePermissionsCall
- func (c *LabelsUpdatePermissionsCall) Context(ctx context.Context) *LabelsUpdatePermissionsCall
- func (c *LabelsUpdatePermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2LabelPermission, error)
- func (c *LabelsUpdatePermissionsCall) Fields(s ...googleapi.Field) *LabelsUpdatePermissionsCall
- func (c *LabelsUpdatePermissionsCall) Header() http.Header
- func (c *LabelsUpdatePermissionsCall) UseAdminAccess(useAdminAccess bool) *LabelsUpdatePermissionsCall
- type LimitsGetLabelCall
- func (c *LimitsGetLabelCall) Context(ctx context.Context) *LimitsGetLabelCall
- func (c *LimitsGetLabelCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2LabelLimits, error)
- func (c *LimitsGetLabelCall) Fields(s ...googleapi.Field) *LimitsGetLabelCall
- func (c *LimitsGetLabelCall) Header() http.Header
- func (c *LimitsGetLabelCall) IfNoneMatch(entityTag string) *LimitsGetLabelCall
- func (c *LimitsGetLabelCall) Name(name string) *LimitsGetLabelCall
- type LimitsService
- type Service
- type UsersGetCapabilitiesCall
- func (c *UsersGetCapabilitiesCall) Context(ctx context.Context) *UsersGetCapabilitiesCall
- func (c *UsersGetCapabilitiesCall) Customer(customer string) *UsersGetCapabilitiesCall
- func (c *UsersGetCapabilitiesCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2UserCapabilities, error)
- func (c *UsersGetCapabilitiesCall) Fields(s ...googleapi.Field) *UsersGetCapabilitiesCall
- func (c *UsersGetCapabilitiesCall) Header() http.Header
- func (c *UsersGetCapabilitiesCall) IfNoneMatch(entityTag string) *UsersGetCapabilitiesCall
- type UsersService
Constants ¶
const ( // See, edit, create, and delete all Google Drive labels in your organization, // and see your organization's label-related admin policies DriveAdminLabelsScope = "https://www.googleapis.com/auth/drive.admin.labels" // See all Google Drive labels and label-related admin policies in your // organization DriveAdminLabelsReadonlyScope = "https://www.googleapis.com/auth/drive.admin.labels.readonly" // See, edit, create, and delete your Google Drive labels DriveLabelsScope = "https://www.googleapis.com/auth/drive.labels" // See your Google Drive labels DriveLabelsReadonlyScope = "https://www.googleapis.com/auth/drive.labels.readonly" )
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoogleAppsDriveLabelsV2BadgeColors ¶
type GoogleAppsDriveLabelsV2BadgeColors struct {
// BackgroundColor: Output only. Badge background that pairs with the
// foreground.
BackgroundColor *GoogleTypeColor `json:"backgroundColor,omitempty"`
// ForegroundColor: Output only. Badge foreground that pairs with the
// background.
ForegroundColor *GoogleTypeColor `json:"foregroundColor,omitempty"`
// SoloColor: Output only. Color that can be used for text without a
// background.
SoloColor *GoogleTypeColor `json:"soloColor,omitempty"`
// ForceSendFields is a list of field names (e.g. "BackgroundColor") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "BackgroundColor") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
GoogleAppsDriveLabelsV2BadgeColors: The color derived from BadgeConfig and changed to the closest recommended supported color.
func (GoogleAppsDriveLabelsV2BadgeColors) MarshalJSON ¶
func (s GoogleAppsDriveLabelsV2BadgeColors) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2BadgeConfig ¶
type GoogleAppsDriveLabelsV2BadgeConfig struct {
// Color: The color of the badge. When not specified, no badge is rendered. The
// background, foreground, and solo (light and dark mode) colors set here are
// changed in the Drive UI into the closest recommended supported color.
Color *GoogleTypeColor `json:"color,omitempty"`
// PriorityOverride: Override the default global priority of this badge. When
// set to 0, the default priority heuristic is used.
PriorityOverride int64 `json:"priorityOverride,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "Color") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Color") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
GoogleAppsDriveLabelsV2BadgeConfig: Badge status of the label.
func (GoogleAppsDriveLabelsV2BadgeConfig) MarshalJSON ¶
func (s GoogleAppsDriveLabelsV2BadgeConfig) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest ¶ added in v0.112.0
type GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest struct {
// Requests: Required. The request message specifying the resources to update.
Requests []*GoogleAppsDriveLabelsV2DeleteLabelPermissionRequest `json:"requests,omitempty"`
// UseAdminAccess: Set to `true` in order to use the user's admin credentials.
// The server will verify the user is an admin for the label before allowing
// access. If this is set, the `use_admin_access` field in the
// `DeleteLabelPermissionRequest` messages must either be empty or match this
// field.
UseAdminAccess bool `json:"useAdminAccess,omitempty"`
// ForceSendFields is a list of field names (e.g. "Requests") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Requests") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest: Deletes one or more label permissions.
func (GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest) MarshalJSON ¶ added in v0.112.0
func (s GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest ¶ added in v0.112.0
type GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest struct {
// Requests: Required. The request message specifying the resources to update.
Requests []*GoogleAppsDriveLabelsV2UpdateLabelPermissionRequest `json:"requests,omitempty"`
// UseAdminAccess: Set to `true` in order to use the user's admin credentials.
// The server will verify the user is an admin for the label before allowing
// access. If this is set, the `use_admin_access` field in the
// `UpdateLabelPermissionRequest` messages must either be empty or match this
// field.
UseAdminAccess bool `json:"useAdminAccess,omitempty"`
// ForceSendFields is a list of field names (e.g. "Requests") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Requests") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest: Updates one or more label permissions.
func (GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest) MarshalJSON ¶ added in v0.112.0
func (s GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse ¶ added in v0.112.0
type GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse struct {
// Permissions: Required. Permissions updated.
Permissions []*GoogleAppsDriveLabelsV2LabelPermission `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 or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
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. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse: Response for updating one or more label permissions.
func (GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse) MarshalJSON ¶ added in v0.112.0
func (s GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2DateLimits ¶ added in v0.112.0
type GoogleAppsDriveLabelsV2DateLimits struct {
// MaxValue: Maximum value for the date field type.
MaxValue *GoogleTypeDate `json:"maxValue,omitempty"`
// MinValue: Minimum value for the date field type.
MinValue *GoogleTypeDate `json:"minValue,omitempty"`
// ForceSendFields is a list of field names (e.g. "MaxValue") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "MaxValue") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
GoogleAppsDriveLabelsV2DateLimits: Limits for date field type.
func (GoogleAppsDriveLabelsV2DateLimits) MarshalJSON ¶ added in v0.112.0
func (s GoogleAppsDriveLabelsV2DateLimits) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2DeleteLabelPermissionRequest ¶ added in v0.112.0
type GoogleAppsDriveLabelsV2DeleteLabelPermissionRequest struct {
// Name: Required. Label permission resource name.
Name string `json:"name,omitempty"`
// UseAdminAccess: Set to `true` in order to use the user's admin credentials.
// The server will verify the user is an admin for the label before allowing
// access.
UseAdminAccess bool `json:"useAdminAccess,omitempty"`
// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Name") to include in API requests
// with the JSON null value. By default, fields with empty values are omitted
// from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
GoogleAppsDriveLabelsV2DeleteLabelPermissionRequest: Deletes a label permission. Permissions affect the label resource as a whole, aren't revisioned, and don't require publishing.
func (GoogleAppsDriveLabelsV2DeleteLabelPermissionRequest) MarshalJSON ¶ added in v0.112.0
func (s GoogleAppsDriveLabelsV2DeleteLabelPermissionRequest) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequest ¶ added in v0.112.0
type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequest struct {
// LanguageCode: The BCP-47 language code to use for evaluating localized field
// labels when `include_label_in_response` is `true`.
LanguageCode string `json:"languageCode,omitempty"`
// Requests: A list of updates to apply to the label. Requests will be applied
// in the order they are specified.
Requests []*GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestRequest `json:"requests,omitempty"`
// UseAdminAccess: Set to `true` in order to use the user's admin credentials.
// The server will verify the user is an admin for the label before allowing
// access.
UseAdminAccess bool `json:"useAdminAccess,omitempty"`
// View: When specified, only certain fields belonging to the indicated view
// will be returned.
//
// Possible values:
// "LABEL_VIEW_BASIC" - Implies the field mask:
// `name,id,revision_id,label_type,properties.*`
// "LABEL_VIEW_FULL" - All possible fields.
View string `json:"view,omitempty"`
// WriteControl: Provides control over how write requests are executed.
WriteControl *GoogleAppsDriveLabelsV2WriteControl `json:"writeControl,omitempty"`
// ForceSendFields is a list of field names (e.g. "LanguageCode") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "LanguageCode") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
GoogleAppsDriveLabelsV2DeltaUpdateLabelRequest: The set of requests for updating aspects of a label. If any request isn't valid, no requests will be applied.
func (GoogleAppsDriveLabelsV2DeltaUpdateLabelRequest) MarshalJSON ¶ added in v0.112.0
func (s GoogleAppsDriveLabelsV2DeltaUpdateLabelRequest) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateFieldRequest ¶ added in v0.112.0
type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateFieldRequest struct {
// Field: Required. Field to create.
Field *GoogleAppsDriveLabelsV2Field `json:"field,omitempty"`
// ForceSendFields is a list of field names (e.g. "Field") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Field") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateFieldRequest: Request to create a field within a label.
func (GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateFieldRequest) MarshalJSON ¶ added in v0.112.0
func (s GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateFieldRequest) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateSelectionChoiceRequest ¶ added in v0.112.0
type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateSelectionChoiceRequest struct {
// Choice: Required. The choice to create.
Choice *GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice `json:"choice,omitempty"`
// FieldId: Required. The selection field in which a choice will be created.
FieldId string `json:"fieldId,omitempty"`
// ForceSendFields is a list of field names (e.g. "Choice") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Choice") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateSelectionChoiceRequest: Request to create a selection choice.
func (GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateSelectionChoiceRequest) MarshalJSON ¶ added in v0.112.0
func (s GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateSelectionChoiceRequest) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteFieldRequest ¶ added in v0.112.0
type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteFieldRequest struct {
// Id: Required. ID of the field to delete.
Id string `json:"id,omitempty"`
// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Id") to include in API requests
// with the JSON null value. By default, fields with empty values are omitted
// from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteFieldRequest: Request to delete the field.
func (GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteFieldRequest) MarshalJSON ¶ added in v0.112.0
func (s GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteFieldRequest) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteSelectionChoiceRequest ¶ added in v0.112.0
type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteSelectionChoiceRequest struct {
// FieldId: Required. The selection field from which a choice will be deleted.
FieldId string `json:"fieldId,omitempty"`
// Id: Required. Choice to delete.
Id string `json:"id,omitempty"`
// ForceSendFields is a list of field names (e.g. "FieldId") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "FieldId") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteSelectionChoiceRequest: Request to delete a choice.
func (GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteSelectionChoiceRequest) MarshalJSON ¶ added in v0.112.0
func (s GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteSelectionChoiceRequest) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableFieldRequest ¶ added in v0.112.0
type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableFieldRequest struct {
// DisabledPolicy: Required. Field disabled policy.
DisabledPolicy *GoogleAppsDriveLabelsV2LifecycleDisabledPolicy `json:"disabledPolicy,omitempty"`
// Id: Required. Key of the field to disable.
Id string `json:"id,omitempty"`
// UpdateMask: The fields that should be updated. At least one field must be
// specified. The root `disabled_policy` is implied and should not be
// specified. A single `*` can be used as a short-hand for updating every
// field.
UpdateMask string `json:"updateMask,omitempty"`
// ForceSendFields is a list of field names (e.g. "DisabledPolicy") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DisabledPolicy") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableFieldRequest: Request to disable the field.
func (GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableFieldRequest) MarshalJSON ¶ added in v0.112.0
func (s GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableFieldRequest) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableSelectionChoiceRequest ¶ added in v0.112.0
type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableSelectionChoiceRequest struct {
// DisabledPolicy: Required. The disabled policy to update.
DisabledPolicy *GoogleAppsDriveLabelsV2LifecycleDisabledPolicy `json:"disabledPolicy,omitempty"`
// FieldId: Required. The selection field in which a choice will be disabled.
FieldId string `json:"fieldId,omitempty"`
// Id: Required. Choice to disable.
Id string `json:"id,omitempty"`
// UpdateMask: The fields that should be updated. At least one field must be
// specified. The root `disabled_policy` is implied and should not be
// specified. A single `*` can be used as a short-hand for updating every
// field.
UpdateMask string `json:"updateMask,omitempty"`
// ForceSendFields is a list of field names (e.g. "DisabledPolicy") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DisabledPolicy") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableSelectionChoiceRequest: Request to disable a choice.
func (GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableSelectionChoiceRequest) MarshalJSON ¶ added in v0.112.0
func (s GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableSelectionChoiceRequest) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableFieldRequest ¶ added in v0.112.0
type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableFieldRequest struct {
// Id: Required. ID of the field to enable.
Id