drivelabels

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2023 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Overview

Package drivelabels provides access to the Drive Labels API.

For product documentation, see: https://developers.google.com/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/v2beta"
...
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

View Source
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 GoogleAppsDriveLabelsV2betaBadgeColors

type GoogleAppsDriveLabelsV2betaBadgeColors 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. 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. "BackgroundColor") 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:"-"`
}

GoogleAppsDriveLabelsV2betaBadgeColors: The color derived from BadgeConfig and changed to the closest recommended supported color.

func (*GoogleAppsDriveLabelsV2betaBadgeColors) MarshalJSON

func (s *GoogleAppsDriveLabelsV2betaBadgeColors) MarshalJSON() ([]byte, error)

type GoogleAppsDriveLabelsV2betaBadgeConfig

type GoogleAppsDriveLabelsV2betaBadgeConfig 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. 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. "Color") 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:"-"`
}

GoogleAppsDriveLabelsV2betaBadgeConfig: Badge status of the label.

func (*GoogleAppsDriveLabelsV2betaBadgeConfig) MarshalJSON

func (s *GoogleAppsDriveLabelsV2betaBadgeConfig) MarshalJSON() ([]byte, error)

type GoogleAppsDriveLabelsV2betaBatchDeleteLabelPermissionsRequest

type GoogleAppsDriveLabelsV2betaBatchDeleteLabelPermissionsRequest struct {
	// Requests: Required. The request message specifying the resources to
	// update.
	Requests []*GoogleAppsDriveLabelsV2betaDeleteLabelPermissionRequest `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. 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. "Requests") 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:"-"`
}

GoogleAppsDriveLabelsV2betaBatchDeleteLabelPermissionsRequest: Deletes one of more Label Permissions.

func (*GoogleAppsDriveLabelsV2betaBatchDeleteLabelPermissionsRequest) MarshalJSON

type GoogleAppsDriveLabelsV2betaBatchUpdateLabelPermissionsRequest

type GoogleAppsDriveLabelsV2betaBatchUpdateLabelPermissionsRequest struct {
	// Requests: Required. The request message specifying the resources to
	// update.
	Requests []*GoogleAppsDriveLabelsV2betaUpdateLabelPermissionRequest `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. 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. "Requests") 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:"-"`
}

GoogleAppsDriveLabelsV2betaBatchUpdateLabelPermissionsRequest: Updates one or more Label Permissions.

func (*GoogleAppsDriveLabelsV2betaBatchUpdateLabelPermissionsRequest) MarshalJSON

type GoogleAppsDriveLabelsV2betaBatchUpdateLabelPermissionsResponse

type GoogleAppsDriveLabelsV2betaBatchUpdateLabelPermissionsResponse struct {
	// Permissions: Required. Permissions updated.
	Permissions []*GoogleAppsDriveLabelsV2betaLabelPermission `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. 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:"-"`
}

GoogleAppsDriveLabelsV2betaBatchUpdateLabelPermissionsResponse: Response for updating one or more Label Permissions.

func (*GoogleAppsDriveLabelsV2betaBatchUpdateLabelPermissionsResponse) MarshalJSON

type GoogleAppsDriveLabelsV2betaDateLimits

type GoogleAppsDriveLabelsV2betaDateLimits 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. 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. "MaxValue") 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:"-"`
}

GoogleAppsDriveLabelsV2betaDateLimits: Limits for date Field type.

func (*GoogleAppsDriveLabelsV2betaDateLimits) MarshalJSON

func (s *GoogleAppsDriveLabelsV2betaDateLimits) MarshalJSON() ([]byte, error)

type GoogleAppsDriveLabelsV2betaDeleteLabelPermissionRequest

type GoogleAppsDriveLabelsV2betaDeleteLabelPermissionRequest 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. 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. "Name") 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:"-"`
}

GoogleAppsDriveLabelsV2betaDeleteLabelPermissionRequest: Deletes a Label Permission. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.

func (*GoogleAppsDriveLabelsV2betaDeleteLabelPermissionRequest) MarshalJSON

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequest

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequest 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 []*GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestRequest `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 *GoogleAppsDriveLabelsV2betaWriteControl `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. 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. "LanguageCode") 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:"-"`
}

GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequest: The set of requests for updating aspects of a Label. If any request is not valid, no requests will be applied.

func (*GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequest) MarshalJSON

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestCreateFieldRequest

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestCreateFieldRequest struct {
	// Field: Required. Field to create.
	Field *GoogleAppsDriveLabelsV2betaField `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. 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. "Field") 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:"-"`
}

GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestCreateFieldRequest: Request to create a Field within a Label.

func (*GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestCreateFieldRequest) MarshalJSON

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestCreateSelectionChoiceRequest

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestCreateSelectionChoiceRequest struct {
	// Choice: Required. The Choice to create.
	Choice *GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoice `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. 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. "Choice") 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:"-"`
}

GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestCreateSelectionChoic eRequest: Request to create a Selection Choice.

func (*GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestCreateSelectionChoiceRequest) MarshalJSON

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDeleteFieldRequest

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDeleteFieldRequest 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. 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. "Id") 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:"-"`
}

GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDeleteFieldRequest: Request to delete the Field.

func (*GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDeleteFieldRequest) MarshalJSON

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDeleteSelectionChoiceRequest

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDeleteSelectionChoiceRequest 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. 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. "FieldId") 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:"-"`
}

GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDeleteSelectionChoic eRequest: Request to delete a Choice.

func (*GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDeleteSelectionChoiceRequest) MarshalJSON

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDisableFieldRequest

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDisableFieldRequest struct {
	// DisabledPolicy: Required. Field Disabled Policy.
	DisabledPolicy *GoogleAppsDriveLabelsV2betaLifecycleDisabledPolicy `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 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. 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. "DisabledPolicy") 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:"-"`
}

GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDisableFieldRequest:

Request to disable the Field.

func (*GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDisableFieldRequest) MarshalJSON

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDisableSelectionChoiceRequest

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDisableSelectionChoiceRequest struct {
	// DisabledPolicy: Required. The disabled policy to update.
	DisabledPolicy *GoogleAppsDriveLabelsV2betaLifecycleDisabledPolicy `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 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. 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. "DisabledPolicy") 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:"-"`
}

GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDisableSelectionChoi ceRequest: Request to disable a Choice.

func (*GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDisableSelectionChoiceRequest) MarshalJSON

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestEnableFieldRequest

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestEnableFieldRequest struct {
	// Id: Required. ID of the Field to enable.
	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. 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. "Id") 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:"-"`
}

GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestEnableFieldRequest: Request to enable the Field.

func (*GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestEnableFieldRequest) MarshalJSON

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestEnableSelectionChoiceRequest

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestEnableSelectionChoiceRequest struct {
	// FieldId: Required. The Selection Field in which a Choice will be
	// enabled.
	FieldId string `json:"fieldId,omitempty"`

	// Id: Required. Choice to enable.
	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. 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. "FieldId") 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:"-"`
}

GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestEnableSelectionChoic eRequest: Request to enable a Choice.

func (*GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestEnableSelectionChoiceRequest) MarshalJSON

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestRequest

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestRequest struct {
	// CreateField: Creates a new Field.
	CreateField *GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestCreateFieldRequest `json:"createField,omitempty"`

	// CreateSelectionChoice: Creates Choice within a Selection field.
	CreateSelectionChoice *GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestCreateSelectionChoiceRequest `json:"createSelectionChoice,omitempty"`

	// DeleteField: Deletes a Field from the label.
	DeleteField *GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDeleteFieldRequest `json:"deleteField,omitempty"`

	// DeleteSelectionChoice: Delete a Choice within a Selection Field.
	DeleteSelectionChoice *GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDeleteSelectionChoiceRequest `json:"deleteSelectionChoice,omitempty"`

	// DisableField: Disables the Field.
	DisableField *GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDisableFieldRequest `json:"disableField,omitempty"`

	// DisableSelectionChoice: Disable a Choice within a Selection Field.
	DisableSelectionChoice *GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestDisableSelectionChoiceRequest `json:"disableSelectionChoice,omitempty"`

	// EnableField: Enables the Field.
	EnableField *GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestEnableFieldRequest `json:"enableField,omitempty"`

	// EnableSelectionChoice: Enable a Choice within a Selection Field.
	EnableSelectionChoice *GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestEnableSelectionChoiceRequest `json:"enableSelectionChoice,omitempty"`

	// UpdateField: Updates basic properties of a Field.
	UpdateField *GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateFieldPropertiesRequest `json:"updateField,omitempty"`

	// UpdateFieldType: Update Field type and/or type options.
	UpdateFieldType *GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateFieldTypeRequest `json:"updateFieldType,omitempty"`

	// UpdateLabel: Updates the Label properties.
	UpdateLabel *GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateLabelPropertiesRequest `json:"updateLabel,omitempty"`

	// UpdateSelectionChoiceProperties: Update a Choice properties within a
	// Selection Field.
	UpdateSelectionChoiceProperties *GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest `json:"updateSelectionChoiceProperties,omitempty"`

	// ForceSendFields is a list of field names (e.g. "CreateField") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "CreateField") 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:"-"`
}

GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestRequest: A single kind of update to apply to a Label.

func (*GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestRequest) MarshalJSON

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateFieldPropertiesRequest

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateFieldPropertiesRequest struct {
	// Id: Required. The Field to update.
	Id string `json:"id,omitempty"`

	// Properties: Required. Basic Field properties.
	Properties *GoogleAppsDriveLabelsV2betaFieldProperties `json:"properties,omitempty"`

	// UpdateMask: The fields that should be updated. At least one field
	// must be specified. The root `properties` is implied and should not be
	// specified. A single `*` can be used as short-hand for updating every
	// field.
	UpdateMask string `json:"updateMask,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. 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. "Id") 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:"-"`
}

GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateFieldPropertie sRequest: Request to update Field properties.

func (*GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateFieldPropertiesRequest) MarshalJSON

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateFieldTypeRequest

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateFieldTypeRequest struct {
	// DateOptions: Update field to Date.
	DateOptions *GoogleAppsDriveLabelsV2betaFieldDateOptions `json:"dateOptions,omitempty"`

	// Id: Required. The Field to update.
	Id string `json:"id,omitempty"`

	// IntegerOptions: Update field to Integer.
	IntegerOptions *GoogleAppsDriveLabelsV2betaFieldIntegerOptions `json:"integerOptions,omitempty"`

	// LongTextOptions: Update field to Long Text.
	LongTextOptions *GoogleAppsDriveLabelsV2betaFieldLongTextOptions `json:"longTextOptions,omitempty"`

	// SelectionOptions: Update field to Selection.
	SelectionOptions *GoogleAppsDriveLabelsV2betaFieldSelectionOptions `json:"selectionOptions,omitempty"`

	// TextOptions: Update field to Text.
	TextOptions *GoogleAppsDriveLabelsV2betaFieldTextOptions `json:"textOptions,omitempty"`

	// UpdateMask: The fields that should be updated. At least one field
	// must be specified. The root of `type_options` is implied and should
	// not be specified. A single `*` can be used as short-hand for updating
	// every field.
	UpdateMask string `json:"updateMask,omitempty"`

	// UserOptions: Update field to User.
	UserOptions *GoogleAppsDriveLabelsV2betaFieldUserOptions `json:"userOptions,omitempty"`

	// ForceSendFields is a list of field names (e.g. "DateOptions") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "DateOptions") 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:"-"`
}

GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateFieldTypeReque st: Request to change the type of a Field.

func (*GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateFieldTypeRequest) MarshalJSON

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateLabelPropertiesRequest

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateLabelPropertiesRequest struct {
	// Properties: Required. Label properties to update.
	Properties *GoogleAppsDriveLabelsV2betaLabelProperties `json:"properties,omitempty"`

	// UpdateMask: The fields that should be updated. At least one field
	// must be specified. The root `label_properties` is implied and should
	// not be specified. A single `*` can be used as short-hand for updating
	// every field.
	UpdateMask string `json:"updateMask,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Properties") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "Properties") 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:"-"`
}

GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateLabelPropertie sRequest: Updates basic properties of a Label.

func (*GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateLabelPropertiesRequest) MarshalJSON

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest struct {
	// FieldId: Required. The Selection Field to update.
	FieldId string `json:"fieldId,omitempty"`

	// Id: Required. The Choice to update.
	Id string `json:"id,omitempty"`

	// Properties: Required. The Choice properties to update.
	Properties *GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceProperties `json:"properties,omitempty"`

	// UpdateMask: The fields that should be updated. At least one field
	// must be specified. The root `properties` is implied and should not be
	// specified. A single `*` can be used as short-hand for updating every
	// field.
	UpdateMask string `json:"updateMask,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. 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. "FieldId") 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:"-"`
}

GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateSelectionChoic ePropertiesRequest: Request to update a Choice properties.

func (*GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest) MarshalJSON

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponse

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponse struct {
	// Responses: The reply of the updates. This maps 1:1 with the updates,
	// although responses to some requests may be empty.
	Responses []*GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseResponse `json:"responses,omitempty"`

	// UpdatedLabel: The label after updates were applied. This is only set
	// if [BatchUpdateLabelResponse2.include_label_in_response] is `true`
	// and there were no errors.
	UpdatedLabel *GoogleAppsDriveLabelsV2betaLabel `json:"updatedLabel,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Responses") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "Responses") 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:"-"`
}

GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponse: Response for Label update.

func (*GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponse) MarshalJSON

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseCreateFieldResponse

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseCreateFieldResponse struct {
	// Id: The field of the created field. When left blank in a create
	// request, a key will be autogenerated and can be identified here.
	Id string `json:"id,omitempty"`

	// Priority: The priority of the created field. The priority may change
	// from what was specified to assure contiguous priorities between
	// fields (1-n).
	Priority int64 `json:"priority,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. 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. "Id") 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:"-"`
}

GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseCreateFieldResponse : Response following Field create.

func (*GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseCreateFieldResponse) MarshalJSON

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseCreateSelectionChoiceResponse

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseCreateSelectionChoiceResponse struct {
	// FieldId: The server-generated id of the field.
	FieldId string `json:"fieldId,omitempty"`

	// Id: The server-generated ID of the created choice within the Field
	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. 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. "FieldId") 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:"-"`
}

GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseCreateSelectionChoi ceResponse: Response following Selection Choice create.

func (*GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseCreateSelectionChoiceResponse) MarshalJSON

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseDeleteFieldResponse

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseDeleteFieldResponse struct {
}

GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseDeleteFieldResponse : Response following Field delete.

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseDeleteSelectionChoiceResponse

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseDeleteSelectionChoiceResponse struct {
}

GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseDeleteSelectionChoi ceResponse: Response following Choice delete.

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseDisableFieldResponse

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseDisableFieldResponse struct {
}

GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseDisableFieldRespons e: Response following Field disable.

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseDisableSelectionChoiceResponse

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseDisableSelectionChoiceResponse struct {
}

GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseDisableSelectionCho iceResponse: Response following Choice disable.

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseEnableFieldResponse

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseEnableFieldResponse struct {
}

GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseEnableFieldResponse : Response following Field enable.

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseEnableSelectionChoiceResponse

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseEnableSelectionChoiceResponse struct {
}

GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseEnableSelectionChoi ceResponse: Response following Choice enable.

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseResponse

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseResponse struct {
	// CreateField: Creates a new Field.
	CreateField *GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseCreateFieldResponse `json:"createField,omitempty"`

	// CreateSelectionChoice: Creates a new selection list option to add to
	// a Selection Field.
	CreateSelectionChoice *GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseCreateSelectionChoiceResponse `json:"createSelectionChoice,omitempty"`

	// DeleteField: Deletes a Field from the label.
	DeleteField *GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseDeleteFieldResponse `json:"deleteField,omitempty"`

	// DeleteSelectionChoice: Deletes a Choice from a Selection Field.
	DeleteSelectionChoice *GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseDeleteSelectionChoiceResponse `json:"deleteSelectionChoice,omitempty"`

	// DisableField: Disables Field.
	DisableField *GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseDisableFieldResponse `json:"disableField,omitempty"`

	// DisableSelectionChoice: Disables a Choice within a Selection Field.
	DisableSelectionChoice *GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseDisableSelectionChoiceResponse `json:"disableSelectionChoice,omitempty"`

	// EnableField: Enables Field.
	EnableField *GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseEnableFieldResponse `json:"enableField,omitempty"`

	// EnableSelectionChoice: Enables a Choice within a Selection Field.
	EnableSelectionChoice *GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseEnableSelectionChoiceResponse `json:"enableSelectionChoice,omitempty"`

	// UpdateField: Updates basic properties of a Field.
	UpdateField *GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseUpdateFieldPropertiesResponse `json:"updateField,omitempty"`

	// UpdateFieldType: Update Field type and/or type options.
	UpdateFieldType *GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseUpdateFieldTypeResponse `json:"updateFieldType,omitempty"`

	// UpdateLabel: Updated basic properties of a Label.
	UpdateLabel *GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseUpdateLabelPropertiesResponse `json:"updateLabel,omitempty"`

	// UpdateSelectionChoiceProperties: Updates a Choice within a Selection
	// Field.
	UpdateSelectionChoiceProperties *GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse `json:"updateSelectionChoiceProperties,omitempty"`

	// ForceSendFields is a list of field names (e.g. "CreateField") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "CreateField") 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:"-"`
}

GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseResponse: A single response from an update.

func (*GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseResponse) MarshalJSON

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseUpdateFieldPropertiesResponse

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseUpdateFieldPropertiesResponse struct {
	// Priority: The priority of the updated field. The priority may change
	// from what was specified to assure contiguous priorities between
	// fields (1-n).
	Priority int64 `json:"priority,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Priority") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "Priority") 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:"-"`
}

GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseUpdateFieldProperti esResponse: Response following update to Field properties.

func (*GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseUpdateFieldPropertiesResponse) MarshalJSON

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseUpdateFieldTypeResponse

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseUpdateFieldTypeResponse struct {
}

GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseUpdateFieldTypeResp onse: Response following update to Field type.

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseUpdateLabelPropertiesResponse

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseUpdateLabelPropertiesResponse struct {
}

GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseUpdateLabelProperti esResponse: Response following update to Label properties.

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse

type GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse struct {
	// Priority: The priority of the updated choice. The priority may change
	// from what was specified to assure contiguous priorities between
	// choices (1-n).
	Priority int64 `json:"priority,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Priority") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "Priority") 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:"-"`
}

GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseUpdateSelectionChoi cePropertiesResponse: Response following update to Selection Choice properties.

func (*GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse) MarshalJSON

type GoogleAppsDriveLabelsV2betaDisableLabelRequest

type GoogleAppsDriveLabelsV2betaDisableLabelRequest struct {
	// DisabledPolicy: Disabled policy to use.
	DisabledPolicy *GoogleAppsDriveLabelsV2betaLifecycleDisabledPolicy `json:"disabledPolicy,omitempty"`

	// LanguageCode: The BCP-47 language code to use for evaluating
	// localized field labels. When not specified, values in the default
	// configured language will be used.
	LanguageCode string `json:"languageCode,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 short-hand for updating
	// every field.
	UpdateMask string `json:"updateMask,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"`

	// WriteControl: Provides control over how write requests are executed.
	// Defaults to unset, which means last write wins.
	WriteControl *GoogleAppsDriveLabelsV2betaWriteControl `json:"writeControl,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. 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. "DisabledPolicy") 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:"-"`
}

GoogleAppsDriveLabelsV2betaDisableLabelRequest: Request to deprecate a published Label.

func (*GoogleAppsDriveLabelsV2betaDisableLabelRequest) MarshalJSON

type GoogleAppsDriveLabelsV2betaEnableLabelRequest

type GoogleAppsDriveLabelsV2betaEnableLabelRequest struct {
	// LanguageCode: The BCP-47 language code to use for evaluating
	// localized field labels. When not specified, values in the default
	// configured language will be used.
	LanguageCode string `json:"languageCode,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"`

	// WriteControl: Provides control over how write requests are executed.
	// Defaults to unset, which means last write wins.
	WriteControl *GoogleAppsDriveLabelsV2betaWriteControl `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. 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. "LanguageCode") 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:"-"`
}

GoogleAppsDriveLabelsV2betaEnableLabelRequest: Request to enable a label.

func (*GoogleAppsDriveLabelsV2betaEnableLabelRequest) MarshalJSON

type GoogleAppsDriveLabelsV2betaField

type GoogleAppsDriveLabelsV2betaField struct {
	// AppliedCapabilities: Output only. The capabilities this user has on
	// this field and its value when the label is applied on Drive items.
	AppliedCapabilities *GoogleAppsDriveLabelsV2betaFieldAppliedCapabilities `json:"appliedCapabilities,omitempty"`

	// CreateTime: Output only. The time this field was created.
	CreateTime string `json:"createTime,omitempty"`

	// Creator: Output only. The user who created this field.
	Creator *GoogleAppsDriveLabelsV2betaUserInfo `json:"creator,omitempty"`

	// DateOptions: Date field options.
	DateOptions *GoogleAppsDriveLabelsV2betaFieldDateOptions `json:"dateOptions,omitempty"`

	// DisableTime: Output only. The time this field was disabled. This
	// value has no meaning when the field is not disabled.
	DisableTime string `json:"disableTime,omitempty"`

	// Disabler: Output only. The user who disabled this field. This value
	// has no meaning when the field is not disabled.
	Disabler *GoogleAppsDriveLabelsV2betaUserInfo `json:"disabler,omitempty"`

	// DisplayHints: Output only. UI display hints for rendering a field.
	DisplayHints *GoogleAppsDriveLabelsV2betaFieldDisplayHints `json:"displayHints,omitempty"`

	// Id: Output only. The key of a field, unique within a label or
	// library. This value is autogenerated. Matches the regex:
	// `([a-zA-Z0-9])+`
	Id string `json:"id,omitempty"`

	// IntegerOptions: Integer field options.
	IntegerOptions *GoogleAppsDriveLabelsV2betaFieldIntegerOptions `json:"integerOptions,omitempty"`

	// Lifecycle: Output only. The lifecycle of this field.
	Lifecycle *GoogleAppsDriveLabelsV2betaLifecycle `json:"lifecycle,omitempty"`

	// LockStatus: Output only. The LockStatus of this field.
	LockStatus *GoogleAppsDriveLabelsV2betaLockStatus `json:"lockStatus,omitempty"`

	// Properties: The basic properties of the field.
	Properties *GoogleAppsDriveLabelsV2betaFieldProperties `json:"properties,omitempty"`

	// Publisher: Output only. The user who published this field. This value
	// has no meaning when the field is not published.
	Publisher *GoogleAppsDriveLabelsV2betaUserInfo `json:"publisher,omitempty"`

	// QueryKey: Output only. The key to use when constructing Drive search
	// queries to find files based on values defined for this field on
	// files. For example, "{query_key}` > 2001-01-01".
	QueryKey string `json:"queryKey,omitempty"`

	// SchemaCapabilities: Output only. The capabilities this user has when
	// editing this field.
	SchemaCapabilities *GoogleAppsDriveLabelsV2betaFieldSchemaCapabilities `json:"schemaCapabilities,omitempty"`

	// SelectionOptions: Selection field options.
	SelectionOptions *GoogleAppsDriveLabelsV2betaFieldSelectionOptions `json:"selectionOptions,omitempty"`

	// TextOptions: Text field options.
	TextOptions *GoogleAppsDriveLabelsV2betaFieldTextOptions `json:"textOptions,omitempty"`

	// UpdateTime: Output only. The time this field was updated.
	UpdateTime string `json:"updateTime,omitempty"`

	// Updater: Output only. The user who modified this field.
	Updater *GoogleAppsDriveLabelsV2betaUserInfo `json:"updater,omitempty"`

	// UserOptions: User field options.
	UserOptions *GoogleAppsDriveLabelsV2betaFieldUserOptions `json:"userOptions,omitempty"`

	// ForceSendFields is a list of field names (e.g. "AppliedCapabilities")
	// to unconditionally include in API requests. By default, fields with
	// empty or default 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. "AppliedCapabilities") 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:"-"`
}

GoogleAppsDriveLabelsV2betaField: Defines a field that has a display name, data type, and other configuration options. This field defines the kind of metadata that may be set on a Drive item.

func (*GoogleAppsDriveLabelsV2betaField) MarshalJSON

func (s *GoogleAppsDriveLabelsV2betaField) MarshalJSON() ([]byte, error)

type GoogleAppsDriveLabelsV2betaFieldAppliedCapabilities

type GoogleAppsDriveLabelsV2betaFieldAppliedCapabilities struct {
	// CanRead: Whether the user can read related applied metadata on items.
	CanRead bool `json:"canRead,omitempty"`

	// CanSearch: Whether the user can search for Drive items referencing
	// this field.
	CanSearch bool `json:"canSearch,omitempty"`

	// CanWrite: Whether the user can set this field on Drive items.
	CanWrite bool `json:"canWrite,omitempty"`

	// ForceSendFields is a list of field names (e.g. "CanRead") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "CanRead") 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:"-"`
}

GoogleAppsDriveLabelsV2betaFieldAppliedCapabilities: The capabilities related to this field on applied metadata.

func (*GoogleAppsDriveLabelsV2betaFieldAppliedCapabilities) MarshalJSON

type GoogleAppsDriveLabelsV2betaFieldDateOptions

type GoogleAppsDriveLabelsV2betaFieldDateOptions struct {
	// DateFormat: Output only. ICU date format.
	DateFormat string `json:"dateFormat,omitempty"`

	// DateFormatType: Localized date formatting option. Field values are
	// rendered in this format according to their locale.
	//
	// Possible values:
	//   "DATE_FORMAT_UNSPECIFIED" - Date format unspecified.
	//   "LONG_DATE" - Includes full month name. For example, January 12,
	// 1999 (MMMM d, y)
	//   "SHORT_DATE" - Short, numeric, representation. For example,
	// 12/13/99 (M/d/yy)
	DateFormatType string `json:"dateFormatType,omitempty"`

	// MaxValue: Output only. Maximum valid value (year, month, day).
	MaxValue *GoogleTypeDate `json:"maxValue,omitempty"`

	// MinValue: Output only. Minimum valid value (year, month, day).
	MinValue *GoogleTypeDate `json:"minValue,omitempty"`

	// ForceSendFields is a list of field names (e.g. "DateFormat") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "DateFormat") 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:"-"`
}

GoogleAppsDriveLabelsV2betaFieldDateOptions: Options for the date field type.

func (*GoogleAppsDriveLabelsV2betaFieldDateOptions) MarshalJSON

type GoogleAppsDriveLabelsV2betaFieldDisplayHints

type GoogleAppsDriveLabelsV2betaFieldDisplayHints struct {
	// Disabled: Whether the field should be shown in the UI as disabled.
	Disabled bool `json:"disabled,omitempty"`

	// HiddenInSearch: This field should be hidden in the search menu when
	// searching for Drive items.
	HiddenInSearch bool `json:"hiddenInSearch,omitempty"`

	// Required: Whether the field should be shown as required in the UI.
	Required bool `json:"required,omitempty"`

	// ShownInApply: This field should be shown in the apply menu when
	// applying values to a Drive item.
	ShownInApply bool `json:"shownInApply,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Disabled") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "Disabled") 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:"-"`
}

GoogleAppsDriveLabelsV2betaFieldDisplayHints: UI display hints for rendering a field.

func (*GoogleAppsDriveLabelsV2betaFieldDisplayHints) MarshalJSON

type GoogleAppsDriveLabelsV2betaFieldIntegerOptions

type GoogleAppsDriveLabelsV2betaFieldIntegerOptions struct {
	// MaxValue: Output only. The maximum valid value for the integer field.
	MaxValue int64 `json:"maxValue,omitempty,string"`

	// MinValue: Output only. The minimum valid value for the integer field.
	MinValue int64 `json:"minValue,omitempty,string"`

	// 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. 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. "MaxValue") 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:"-"`
}

GoogleAppsDriveLabelsV2betaFieldIntegerOptions: Options for the Integer field type.

func (*GoogleAppsDriveLabelsV2betaFieldIntegerOptions) MarshalJSON

type GoogleAppsDriveLabelsV2betaFieldLimits

type GoogleAppsDriveLabelsV2betaFieldLimits struct {
	// DateLimits: Date Field limits.
	DateLimits *GoogleAppsDriveLabelsV2betaDateLimits `json:"dateLimits,omitempty"`

	// IntegerLimits: Integer Field limits.
	IntegerLimits *GoogleAppsDriveLabelsV2betaIntegerLimits `json:"integerLimits,omitempty"`

	// LongTextLimits: Long text Field limits.
	LongTextLimits *GoogleAppsDriveLabelsV2betaLongTextLimits `json:"longTextLimits,omitempty"`

	// MaxDescriptionLength: Limits for Field description, also called help
	// text.
	MaxDescriptionLength int64 `json:"maxDescriptionLength,omitempty"`

	// MaxDisplayNameLength: Limits for Field title.
	MaxDisplayNameLength int64 `json:"maxDisplayNameLength,omitempty"`

	// MaxIdLength: Max length for the id.
	MaxIdLength int64 `json:"maxIdLength,omitempty"`

	// SelectionLimits: Selection Field limits.
	SelectionLimits *GoogleAppsDriveLabelsV2betaSelectionLimits `json:"selectionLimits,omitempty"`

	// TextLimits: The relevant limits for the specified Field.Type. Text
	// Field limits.
	TextLimits *GoogleAppsDriveLabelsV2betaTextLimits `json:"textLimits,omitempty"`

	// UserLimits: User Field limits.
	UserLimits *GoogleAppsDriveLabelsV2betaUserLimits `json:"userLimits,omitempty"`

	// ForceSendFields is a list of field names (e.g. "DateLimits") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "DateLimits") 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:"-"`
}

GoogleAppsDriveLabelsV2betaFieldLimits: Field constants governing the structure of a Field; such as, the maximum title length, minimum and maximum field values or length, etc.

func (*GoogleAppsDriveLabelsV2betaFieldLimits) MarshalJSON

func (s *GoogleAppsDriveLabelsV2betaFieldLimits) MarshalJSON() ([]byte, error)

type GoogleAppsDriveLabelsV2betaFieldListOptions

type GoogleAppsDriveLabelsV2betaFieldListOptions struct {
	// MaxEntries: Maximum number of entries permitted.
	MaxEntries int64 `json:"maxEntries,omitempty"`

	// ForceSendFields is a list of field names (e.g. "MaxEntries") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "MaxEntries") 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:"-"`
}

GoogleAppsDriveLabelsV2betaFieldListOptions: Options for a multi-valued variant of an associated field type.

func (*GoogleAppsDriveLabelsV2betaFieldListOptions) MarshalJSON

type GoogleAppsDriveLabelsV2betaFieldLongTextOptions

type GoogleAppsDriveLabelsV2betaFieldLongTextOptions struct {
	// MaxLength: Output only. The maximum valid length of values for the
	// text field.
	MaxLength int64 `json:"maxLength,omitempty"`

	// MinLength: Output only. The minimum valid length of values for the
	// text field.
	MinLength int64 `json:"minLength,omitempty"`

	// ForceSendFields is a list of field names (e.g. "MaxLength") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "MaxLength") 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:"-"`
}

GoogleAppsDriveLabelsV2betaFieldLongTextOptions: Options the Long Text field type.

func (*GoogleAppsDriveLabelsV2betaFieldLongTextOptions) MarshalJSON

type GoogleAppsDriveLabelsV2betaFieldProperties

type GoogleAppsDriveLabelsV2betaFieldProperties struct {
	// DisplayName: Required. The display text to show in the UI identifying
	// this field.
	DisplayName string `json:"displayName,omitempty"`

	// InsertBeforeField: Input only. Insert or move this field before the
	// indicated field. If empty, the field is placed at the end of the
	// list.
	InsertBeforeField string `json:"insertBeforeField,omitempty"`

	// Required: Whether the field should be marked as required.
	Required bool `json:"required,omitempty"`

	// ForceSendFields is a list of field names (e.g. "DisplayName") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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:"-"`
}

GoogleAppsDriveLabelsV2betaFieldProperties: The basic properties of the field.

func (*GoogleAppsDriveLabelsV2betaFieldProperties) MarshalJSON

type GoogleAppsDriveLabelsV2betaFieldSchemaCapabilities

type GoogleAppsDriveLabelsV2betaFieldSchemaCapabilities struct {
	// CanDelete: Whether the user can delete this field. The user must have
	// permission and the field must be deprecated.
	CanDelete bool `json:"canDelete,omitempty"`

	// CanDisable: Whether the user can disable this field. The user must
	// have permission and this field must not already be disabled.
	CanDisable bool `json:"canDisable,omitempty"`

	// CanEnable: Whether the user can enable this field. The user must have
	// permission and this field must be disabled.
	CanEnable bool `json:"canEnable,omitempty"`

	// CanUpdate: Whether the user can change this field.
	CanUpdate bool `json:"canUpdate,omitempty"`

	// ForceSendFields is a list of field names (e.g. "CanDelete") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "CanDelete") 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:"-"`
}

GoogleAppsDriveLabelsV2betaFieldSchemaCapabilities: The capabilities related to this field when editing the field.

func (*GoogleAppsDriveLabelsV2betaFieldSchemaCapabilities) MarshalJSON

type GoogleAppsDriveLabelsV2betaFieldSelectionOptions

type GoogleAppsDriveLabelsV2betaFieldSelectionOptions struct {
	// Choices: The options available for this selection field. The list
	// order is consistent, and modified with `insert_before_choice`.
	Choices []*GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoice `json:"choices,omitempty"`

	// ListOptions: When specified, indicates this field supports a list of
	// values. Once the field is published, this cannot be changed.
	ListOptions *GoogleAppsDriveLabelsV2betaFieldListOptions `json:"listOptions,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Choices") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "Choices") 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:"-"`
}

GoogleAppsDriveLabelsV2betaFieldSelectionOptions: Options for the selection field type.

func (*GoogleAppsDriveLabelsV2betaFieldSelectionOptions) MarshalJSON

type GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoice

type GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoice struct {
	// AppliedCapabilities: Output only. The capabilities related to this
	// choice on applied metadata.
	AppliedCapabilities *GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceAppliedCapabilities `json:"appliedCapabilities,omitempty"`

	// CreateTime: Output only. The time this choice was created.
	CreateTime string `json:"createTime,omitempty"`

	// Creator: Output only. The user who created this choice.
	Creator *GoogleAppsDriveLabelsV2betaUserInfo `json:"creator,omitempty"`

	// DisableTime: Output only. The time this choice was disabled. This
	// value has no meaning when the choice is not disabled.
	DisableTime string `json:"disableTime,omitempty"`

	// Disabler: Output only. The user who disabled this choice. This value
	// has no meaning when the option is not disabled.
	Disabler *GoogleAppsDriveLabelsV2betaUserInfo `json:"disabler,omitempty"`

	// DisplayHints: Output only. UI display hints for rendering a choice.
	DisplayHints *GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceDisplayHints `json:"displayHints,omitempty"`

	// Id: The unique value of the choice. This ID is autogenerated. Matches
	// the regex: `([a-zA-Z0-9_])+`.
	Id string `json:"id,omitempty"`

	// Lifecycle: Output only. Lifecycle of the choice.
	Lifecycle *GoogleAppsDriveLabelsV2betaLifecycle `json:"lifecycle,omitempty"`

	// LockStatus: Output only. The LockStatus of this choice.
	LockStatus *GoogleAppsDriveLabelsV2betaLockStatus `json:"lockStatus,omitempty"`

	// Properties: Basic properties of the choice.
	Properties *GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceProperties `json:"properties,omitempty"`

	// PublishTime: Output only. The time this choice was published. This
	// value has no meaning when the choice is not published.
	PublishTime string `json:"publishTime,omitempty"`

	// Publisher: Output only. The user who published this choice. This
	// value has no meaning when the choice is not published.
	Publisher *GoogleAppsDriveLabelsV2betaUserInfo `json:"publisher,omitempty"`

	// SchemaCapabilities: Output only. The capabilities related to this
	// option when editing the option.
	SchemaCapabilities *GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceSchemaCapabilities `json:"schemaCapabilities,omitempty"`

	// UpdateTime: Output only. The time this choice was updated last.
	UpdateTime string `json:"updateTime,omitempty"`

	// Updater: Output only. The user who updated this choice last.
	Updater *GoogleAppsDriveLabelsV2betaUserInfo `json:"updater,omitempty"`

	// ForceSendFields is a list of field names (e.g. "AppliedCapabilities")
	// to unconditionally include in API requests. By default, fields with
	// empty or default 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. "AppliedCapabilities") 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:"-"`
}

GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoice: Selection field choice.

func (*GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoice) MarshalJSON

type GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceAppliedCapabilities

type GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceAppliedCapabilities struct {
	// CanRead: Whether the user can read related applied metadata on items.
	CanRead bool `json:"canRead,omitempty"`

	// CanSearch: Whether the user can use this choice in search queries.
	CanSearch bool `json:"canSearch,omitempty"`

	// CanSelect: Whether the user can select this choice on an item.
	CanSelect bool `json:"canSelect,omitempty"`

	// ForceSendFields is a list of field names (e.g. "CanRead") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "CanRead") 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:"-"`
}

GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceAppliedCapabilit ies: The capabilities related to this choice on applied metadata.

func (*GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceAppliedCapabilities) MarshalJSON

type GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceDisplayHints

type GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceDisplayHints struct {
	// BadgeColors: The colors to use for the badge. Changed to Google
	// Material colors based on the chosen `properties.badge_config.color`.
	BadgeColors *GoogleAppsDriveLabelsV2betaBadgeColors `json:"badgeColors,omitempty"`

	// BadgePriority: The priority of this badge. Used to compare and sort
	// between multiple badges. A lower number means the badge should be
	// shown first. When a badging configuration is not present, this will
	// be 0. Otherwise, this will be set to `BadgeConfig.priority_override`
	// or the default heuristic which prefers creation date of the label,
	// and field and option priority.
	BadgePriority int64 `json:"badgePriority,omitempty,string"`

	// DarkBadgeColors: The dark-mode color to use for the badge. Changed to
	// Google Material colors based on the chosen
	// `properties.badge_config.color`.
	DarkBadgeColors *GoogleAppsDriveLabelsV2betaBadgeColors `json:"darkBadgeColors,omitempty"`

	// Disabled: Whether the option should be shown in the UI as disabled.
	Disabled bool `json:"disabled,omitempty"`

	// HiddenInSearch: This option should be hidden in the search menu when
	// searching for Drive items.
	HiddenInSearch bool `json:"hiddenInSearch,omitempty"`

	// ShownInApply: This option should be shown in the apply menu when
	// applying values to a Drive item.
	ShownInApply bool `json:"shownInApply,omitempty"`

	// ForceSendFields is a list of field names (e.g. "BadgeColors") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "BadgeColors") 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:"-"`
}

GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceDisplayHints: UI display hints for rendering an option.

func (*GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceDisplayHints) MarshalJSON

type GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceProperties

type GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceProperties struct {
	// BadgeConfig: The badge configuration for this choice. When set, the
	// label that owns this choice is considered a "badged label".
	BadgeConfig *GoogleAppsDriveLabelsV2betaBadgeConfig `json:"badgeConfig,omitempty"`

	// Description: The description of this label.
	Description string `json:"description,omitempty"`

	// DisplayName: Required. The display text to show in the UI identifying
	// this field.
	DisplayName string `json:"displayName,omitempty"`

	// InsertBeforeChoice: Input only. Insert or move this choice before the
	// indicated choice. If empty, the choice is placed at the end of the
	// list.
	InsertBeforeChoice string `json:"insertBeforeChoice,omitempty"`

	// ForceSendFields is a list of field names (e.g. "BadgeConfig") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "BadgeConfig") 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:"-"`
}

GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceProperties: Basic properties of the choice.

func (*GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceProperties) MarshalJSON

type GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceSchemaCapabilities

type GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceSchemaCapabilities struct {
	// CanDelete: Whether the user can delete this choice.
	CanDelete bool `json:"canDelete,omitempty"`

	// CanDisable: Whether the user can disable this choice.
	CanDisable bool `json:"canDisable,omitempty"`

	// CanEnable: Whether the user can enable this choice.
	CanEnable bool `json:"canEnable,omitempty"`

	// CanUpdate: Whether the user can update this choice.
	CanUpdate bool `json:"canUpdate,omitempty"`

	// ForceSendFields is a list of field names (e.g. "CanDelete") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "CanDelete") 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:"-"`
}

GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceSchemaCapabiliti es: The capabilities related to this choice when editing the choice.

func (*GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceSchemaCapabilities) MarshalJSON

type GoogleAppsDriveLabelsV2betaFieldTextOptions

type GoogleAppsDriveLabelsV2betaFieldTextOptions struct {
	// MaxLength: Output only. The maximum valid length of values for the
	// text field.
	MaxLength int64 `json:"maxLength,omitempty"`

	// MinLength: Output only. The minimum valid length of values for the
	// text field.
	MinLength int64 `json:"minLength,omitempty"`

	// ForceSendFields is a list of field names (e.g. "MaxLength") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "MaxLength") 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:"-"`
}

GoogleAppsDriveLabelsV2betaFieldTextOptions: Options for the Text field type.

func (*GoogleAppsDriveLabelsV2betaFieldTextOptions) MarshalJSON

type GoogleAppsDriveLabelsV2betaFieldUserOptions

type GoogleAppsDriveLabelsV2betaFieldUserOptions struct {
	// ListOptions: When specified, indicates that this field supports a
	// list of values. Once the field is published, this cannot be changed.
	ListOptions *GoogleAppsDriveLabelsV2betaFieldListOptions `json:"listOptions,omitempty"`

	// ForceSendFields is a list of field names (e.g. "ListOptions") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "ListOptions") 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:"-"`
}

GoogleAppsDriveLabelsV2betaFieldUserOptions: Options for the user field type.

func (*GoogleAppsDriveLabelsV2betaFieldUserOptions) MarshalJSON

type GoogleAppsDriveLabelsV2betaIntegerLimits

type GoogleAppsDriveLabelsV2betaIntegerLimits struct {
	// MaxValue: Maximum value for an integer Field type.
	MaxValue int64 `json:"maxValue,omitempty,string"`

	// MinValue: Minimum value for an integer Field type.
	MinValue int64 `json:"minValue,omitempty,string"`

	// 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. 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. "MaxValue") 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:"-"`
}

GoogleAppsDriveLabelsV2betaIntegerLimits: Limits for integer Field type.

func (*GoogleAppsDriveLabelsV2betaIntegerLimits) MarshalJSON

func (s *GoogleAppsDriveLabelsV2betaIntegerLimits) MarshalJSON() ([]byte, error)

type GoogleAppsDriveLabelsV2betaLabel

type GoogleAppsDriveLabelsV2betaLabel struct {
	// AppliedCapabilities: Output only. The capabilities related to this
	// label on applied metadata.
	AppliedCapabilities *GoogleAppsDriveLabelsV2betaLabelAppliedCapabilities `json:"appliedCapabilities,omitempty"`

	// AppliedLabelPolicy: Output only. Behavior of this label when it's
	// applied to Drive items.
	AppliedLabelPolicy *GoogleAppsDriveLabelsV2betaLabelAppliedLabelPolicy `json:"appliedLabelPolicy,omitempty"`

	// CreateTime: Output only. The time this label was created.
	CreateTime string `json:"createTime,omitempty"`

	// Creator: Output only. The user who created this label.
	Creator *GoogleAppsDriveLabelsV2betaUserInfo `json:"creator,omitempty"`

	// Customer: Output only. The customer this label belongs to. For
	// example: "customers/123abc789."
	Customer string `json:"customer,omitempty"`

	// DisableTime: Output only. The time this label was disabled. This
	// value has no meaning when the label is not disabled.
	DisableTime string `json:"disableTime,omitempty"`

	// Disabler: Output only. The user who disabled this label. This value
	// has no meaning when the label is not disabled.
	Disabler *GoogleAppsDriveLabelsV2betaUserInfo `json:"disabler,omitempty"`

	// DisplayHints: Output only. UI display hints for rendering the label.
	DisplayHints *GoogleAppsDriveLabelsV2betaLabelDisplayHints `json:"displayHints,omitempty"`

	// Fields: List of fields in descending priority order.
	Fields []*GoogleAppsDriveLabelsV2betaField `json:"fields,omitempty"`

	// Id: Output only. Globally unique identifier of this label. ID makes
	// up part of the label `name`, but unlike `name`, ID is consistent
	// between revisions. Matches the regex: `([a-zA-Z0-9])+`
	Id string `json:"id,omitempty"`

	// LabelType: Required. The type of label.
	//
	// Possible values:
	//   "LABEL_TYPE_UNSPECIFIED" - Unknown label type.
	//   "SHARED" - Shared labels may be shared with users to apply to Drive
	// items.
	//   "ADMIN" - Admin-owned label. Only creatable and editable by admins.
	// Supports some additional admin-only features.
	//   "GOOGLE_APP" - A label owned by an internal Google application
	// rather than a customer. These labels are read-only.
	LabelType string `json:"labelType,omitempty"`

	// LearnMoreUri: Custom URL to present to users to allow them to learn
	// more about this label and how it should be used.
	LearnMoreUri string `json:"learnMoreUri,omitempty"`

	// Lifecycle: Output only. The lifecycle state of the label including
	// whether it's published, deprecated, and has draft changes.
	Lifecycle *GoogleAppsDriveLabelsV2betaLifecycle `json:"lifecycle,omitempty"`

	// LockStatus: Output only. The LockStatus of this label.
	LockStatus *GoogleAppsDriveLabelsV2betaLockStatus `json:"lockStatus,omitempty"`

	// Name: Output only. Resource name of the label. Will be in the form of
	// either: `labels/{id}` or `labels/{id}@{revision_id}` depending on the
	// request. See `id` and `revision_id` below.
	Name string `json:"name,omitempty"`

	// Properties: Required. The basic properties of the label.
	Properties *GoogleAppsDriveLabelsV2betaLabelProperties `json:"properties,omitempty"`

	// PublishTime: Output only. The time this label was published. This
	// value has no meaning when the label is not published.
	PublishTime string `json:"publishTime,omitempty"`

	// Publisher: Output only. The user who published this label. This value
	// has no meaning when the label is not published.
	Publisher *GoogleAppsDriveLabelsV2betaUserInfo `json:"publisher,omitempty"`

	// RevisionCreateTime: Output only. The time this label revision was
	// created.
	RevisionCreateTime string `json:"revisionCreateTime,omitempty"`

	// RevisionCreator: Output only. The user who created this label
	// revision.
	RevisionCreator *GoogleAppsDriveLabelsV2betaUserInfo `json:"revisionCreator,omitempty"`

	// RevisionId: Output only. Revision ID of the label. Revision ID might
	// be part of the label `name` depending on the request issued. A new
	// revision is created whenever revisioned properties of a label are
	// changed. Matches the regex: `([a-zA-Z0-9])+`
	RevisionId string `json:"revisionId,omitempty"`

	// SchemaCapabilities: Output only. The capabilities the user has on
	// this label.
	SchemaCapabilities *GoogleAppsDriveLabelsV2betaLabelSchemaCapabilities `json:"schemaCapabilities,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "AppliedCapabilities")
	// to unconditionally include in API requests. By default, fields with
	// empty or default 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. "AppliedCapabilities") 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:"-"`
}

GoogleAppsDriveLabelsV2betaLabel: A label defines a taxonomy that can be applied to Drive items in order to organize and search across items. Labels can be simple strings, or can contain fields that describe additional metadata that can be further used to organize and search Drive items.

func (*GoogleAppsDriveLabelsV2betaLabel) MarshalJSON

func (s *GoogleAppsDriveLabelsV2betaLabel) MarshalJSON() ([]byte, error)

type GoogleAppsDriveLabelsV2betaLabelAppliedCapabilities

type GoogleAppsDriveLabelsV2betaLabelAppliedCapabilities struct {
	// CanApply: Whether the user can apply this label to items.
	CanApply bool `json:"canApply,omitempty"`

	// CanRead: Whether the user can read applied metadata related to this
	// label.
	CanRead bool `json:"canRead,omitempty"`

	// CanRemove: Whether the user can remove this label from items.
	CanRemove bool `json:"canRemove,omitempty"`

	// ForceSendFields is a list of field names (e.g. "CanApply") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "CanApply") 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:"-"`
}

GoogleAppsDriveLabelsV2betaLabelAppliedCapabilities: The capabilities a user has on this label's applied metadata.

func (*GoogleAppsDriveLabelsV2betaLabelAppliedCapabilities) MarshalJSON

type GoogleAppsDriveLabelsV2betaLabelAppliedLabelPolicy

type GoogleAppsDriveLabelsV2betaLabelAppliedLabelPolicy struct {
	// CopyMode: Indicates how the applied label and field values should be
	// copied when a Drive item is copied.
	//
	// Possible values:
	//   "COPY_MODE_UNSPECIFIED" - Copy mode unspecified.
	//   "DO_NOT_COPY" - The applied label and field values are not copied
	// by default when the Drive item it's applied to is copied.
	//   "ALWAYS_COPY" - The applied label and field values are always
	// copied when the Drive item it's applied to is copied. Only admins can
	// use this mode.
	//   "COPY_APPLIABLE" - The applied label and field values are copied if
	// the label is appliable by the user making the copy.
	CopyMode string `json:"copyMode,omitempty"`

	// ForceSendFields is a list of field names (e.g. "CopyMode") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "CopyMode") 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:"-"`
}

GoogleAppsDriveLabelsV2betaLabelAppliedLabelPolicy: Behavior of this label when it's applied to Drive items.

func (*GoogleAppsDriveLabelsV2betaLabelAppliedLabelPolicy) MarshalJSON

type GoogleAppsDriveLabelsV2betaLabelDisplayHints

type GoogleAppsDriveLabelsV2betaLabelDisplayHints struct {
	// Disabled: Whether the label should be shown in the UI as disabled.
	Disabled bool `json:"disabled,omitempty"`

	// HiddenInSearch: This label should be hidden in the search menu when
	// searching for Drive items.
	HiddenInSearch bool `json:"hiddenInSearch,omitempty"`

	// Priority: Order to display label in a list.
	Priority int64 `json:"priority,omitempty,string"`

	// ShownInApply: This label should be shown in the apply menu when
	// applying values to a Drive item.
	ShownInApply bool `json:"shownInApply,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Disabled") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "Disabled") 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:"-"`
}

GoogleAppsDriveLabelsV2betaLabelDisplayHints: UI display hints for rendering the label.

func (*GoogleAppsDriveLabelsV2betaLabelDisplayHints) MarshalJSON

type GoogleAppsDriveLabelsV2betaLabelLimits

type GoogleAppsDriveLabelsV2betaLabelLimits struct {
	// FieldLimits: The limits for Fields.
	FieldLimits *GoogleAppsDriveLabelsV2betaFieldLimits `json:"fieldLimits,omitempty"`

	// MaxDeletedFields: The maximum number of published Fields that can be
	// deleted.
	MaxDeletedFields int64 `json:"maxDeletedFields,omitempty"`

	// MaxDescriptionLength: The maximum number of characters allowed for
	// the description.
	MaxDescriptionLength int64 `json:"maxDescriptionLength,omitempty"`

	// MaxDraftRevisions: The maximum number of draft revisions that will be
	// kept before deleting old drafts.
	MaxDraftRevisions int64 `json:"maxDraftRevisions,omitempty"`

	// MaxFields: The maximum number of Fields allowed within the label.
	MaxFields int64 `json:"maxFields,omitempty"`

	// MaxTitleLength: The maximum number of characters allowed for the
	// title.
	MaxTitleLength int64 `json:"maxTitleLength,omitempty"`

	// Name: Resource 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. "FieldLimits") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "FieldLimits") 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:"-"`
}

GoogleAppsDriveLabelsV2betaLabelLimits: Label constraints governing the structure of a Label; such as, the maximum number of Fields allowed and maximum length of the label title.

func (*GoogleAppsDriveLabelsV2betaLabelLimits) MarshalJSON

func (s *GoogleAppsDriveLabelsV2betaLabelLimits) MarshalJSON() ([]byte, error)

type GoogleAppsDriveLabelsV2betaLabelLock

type GoogleAppsDriveLabelsV2betaLabelLock struct {
	// Capabilities: Output only. The user's capabilities on this LabelLock.
	Capabilities *GoogleAppsDriveLabelsV2betaLabelLockCapabilities `json:"capabilities,omitempty"`

	// ChoiceId: The ID of the Selection Field Choice that should be locked.
	// If present, `field_id` must also be present.
	ChoiceId string `json:"choiceId,omitempty"`

	// CreateTime: Output only. The time this LabelLock was created.
	CreateTime string `json:"createTime,omitempty"`

	// Creator: Output only. The user whose credentials were used to create
	// the LabelLock. This will not be present if no user was responsible
	// for creating the LabelLock.
	Creator *GoogleAppsDriveLabelsV2betaUserInfo `json:"creator,omitempty"`

	// DeleteTime: Output only. A timestamp indicating when this LabelLock
	// was scheduled for deletion. This will be present only if this
	// LabelLock is in the DELETING state.
	DeleteTime string `json:"deleteTime,omitempty"`

	// FieldId: The ID of the Field that should be locked. Empty if the
	// whole Label should be locked.
	FieldId string `json:"fieldId,omitempty"`

	// Name: Output only. Resource name of this LabelLock.
	Name string `json:"name,omitempty"`

	// State: Output only. This LabelLock's state.
	//
	// Possible values:
	//   "STATE_UNSPECIFIED" - Unknown state.
	//   "ACTIVE" - The LabelLock is active and is being enforced by the
	// server.
	//   "DELETING" - The LabelLock is being deleted. The LabelLock will
	// continue to be enforced by the server until it has been fully
	// removed.
	State string `json:"state,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Capabilities") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "Capabilities") 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:"-"`
}

GoogleAppsDriveLabelsV2betaLabelLock: A Lock that can be applied to a Label, Field, or Choice.

func (*GoogleAppsDriveLabelsV2betaLabelLock) MarshalJSON

func (s *GoogleAppsDriveLabelsV2betaLabelLock) MarshalJSON() ([]byte, error)

type GoogleAppsDriveLabelsV2betaLabelLockCapabilities

type GoogleAppsDriveLabelsV2betaLabelLockCapabilities struct {
	// CanViewPolicy: True if the user is authorized to view the policy.
	CanViewPolicy bool `json:"canViewPolicy,omitempty"`

	// ForceSendFields is a list of field names (e.g. "CanViewPolicy") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "CanViewPolicy") 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:"-"`
}

GoogleAppsDriveLabelsV2betaLabelLockCapabilities: A description of a user's capabilities on a LabelLock.

func (*GoogleAppsDriveLabelsV2betaLabelLockCapabilities) MarshalJSON

type GoogleAppsDriveLabelsV2betaLabelPermission

type GoogleAppsDriveLabelsV2betaLabelPermission struct {
	// Audience: Audience to grant a role to. The magic value of
	// `audiences/default` may be used to apply the role to the default
	// audience in the context of the organization that owns the Label.
	Audience string `json:"audience,omitempty"`

	// Email: Specifies the email address for a user or group pricinpal. Not
	// populated for audience principals. User and Group permissions may
	// only be inserted using email address. On update requests, if email
	// address is specified, no principal should be specified.
	Email string `json:"email,omitempty"`

	// Group: Group resource name.
	Group string `json:"group,omitempty"`

	// Name: Resource name of this permission.
	Name string `json:"name,omitempty"`

	// Person: Person resource name.
	Person string `json:"person,omitempty"`

	// Role: The role the principal should have.
	//
	// Possible values:
	//   "LABEL_ROLE_UNSPECIFIED" - Unknown role.
	//   "READER" - A reader can read the label and associated metadata
	// applied to Drive items.
	//   "APPLIER" - An applier can write associated metadata on Drive items
	// in which they also have write access to. Implies `READER`.
	//   "ORGANIZER" - An organizer can pin this label in shared drives they
	// manage and add new appliers to the label.
	//   "EDITOR" - Editors can make any update including deleting the label
	// which also deletes the associated Drive item metadata. Implies
	// `APPLIER`.
	Role string `json:"role,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Audience") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "Audience") 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:"-"`
}

GoogleAppsDriveLabelsV2betaLabelPermission: The permission that applies to a principal (user, group, audience) on a label.

func (*GoogleAppsDriveLabelsV2betaLabelPermission) MarshalJSON

type GoogleAppsDriveLabelsV2betaLabelProperties

type GoogleAppsDriveLabelsV2betaLabelProperties struct {
	// Description: The description of the label.
	Description string `json:"description,omitempty"`

	// Title: Required. Title of the label.
	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 or default 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:"-"`
}

GoogleAppsDriveLabelsV2betaLabelProperties: Basic properties of the label.

func (*GoogleAppsDriveLabelsV2betaLabelProperties) MarshalJSON

type GoogleAppsDriveLabelsV2betaLabelSchemaCapabilities

type GoogleAppsDriveLabelsV2betaLabelSchemaCapabilities struct {
	// CanDelete: Whether the user can delete this label. The user must have
	// permission and the label must be disabled.
	CanDelete bool `json:"canDelete,omitempty"`

	// CanDisable: Whether the user can disable this label. The user must
	// have permission and this label must not already be disabled.
	CanDisable bool `json:"canDisable,omitempty"`

	// CanEnable: Whether the user can enable this label. The user must have
	// permission and this label must be disabled.
	CanEnable bool `json:"canEnable,omitempty"`

	// CanUpdate: Whether the user can change this label.
	CanUpdate bool `json:"canUpdate,omitempty"`

	// ForceSendFields is a list of field names (e.g. "CanDelete") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "CanDelete") 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:"-"`
}

GoogleAppsDriveLabelsV2betaLabelSchemaCapabilities: The capabilities related to this label when editing the label.

func (*GoogleAppsDriveLabelsV2betaLabelSchemaCapabilities) MarshalJSON

type GoogleAppsDriveLabelsV2betaLifecycle

type GoogleAppsDriveLabelsV2betaLifecycle struct {
	// DisabledPolicy: The policy that governs how to show a disabled label,
	// field, or selection choice.
	DisabledPolicy *GoogleAppsDriveLabelsV2betaLifecycleDisabledPolicy `json:"disabledPolicy,omitempty"`

	// HasUnpublishedChanges: Output only. Whether the object associated
	// with this lifecycle has unpublished changes.
	HasUnpublishedChanges bool `json:"hasUnpublishedChanges,omitempty"`

	// State: Output only. The state of the object associated with this
	// lifecycle.
	//
	// Possible values:
	//   "STATE_UNSPECIFIED" - Unknown State.
	//   "UNPUBLISHED_DRAFT" - The initial state of an object. Once
	// published, the object can never return to this state. Once an object
	// is published, certain kinds of changes are no longer permitted.
	//   "PUBLISHED" - The object has been published. The object might have
	// unpublished draft changes as indicated by `has_unpublished_changes`.
	//   "DISABLED" - The object has been published and has since been
	// disabled. The object might have unpublished draft changes as
	// indicated by `has_unpublished_changes`.
	//   "DELETED" - The object has been deleted.
	State string `json:"state,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. 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. "DisabledPolicy") 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:"-"`
}

GoogleAppsDriveLabelsV2betaLifecycle: The lifecycle state of an object, such as label, field, or choice. The lifecycle enforces the following transitions: * `UNPUBLISHED_DRAFT` (starting state) * `UNPUBLISHED_DRAFT` -> `PUBLISHED` * `UNPUBLISHED_DRAFT` -> (Deleted) * `PUBLISHED` -> `DISABLED` * `DISABLED` -> `PUBLISHED` * `DISABLED` -> (Deleted) The published and disabled states have some distinct characteristics: * Published—Some kinds of changes might be made to an object in this state, in which case `has_unpublished_changes` will be true. Also, some kinds of changes are not permitted. Generally, any change that would invalidate or cause new restrictions on existing metadata related to the label are rejected. * Disabled—When disabled, the configured `DisabledPolicy` takes effect.

func (*GoogleAppsDriveLabelsV2betaLifecycle) MarshalJSON

func (s *GoogleAppsDriveLabelsV2betaLifecycle) MarshalJSON() ([]byte, error)

type GoogleAppsDriveLabelsV2betaLifecycleDisabledPolicy

type GoogleAppsDriveLabelsV2betaLifecycleDisabledPolicy struct {
	// HideInSearch: Whether to hide this disabled object in the search menu
	// for Drive items. * When `false`, the object is generally shown in the
	// UI as disabled but it appears in the search results when searching
	// for Drive items. * When `true`, the object is generally hidden in the
	// UI when searching for Drive items.
	HideInSearch bool `json:"hideInSearch,omitempty"`

	// ShowInApply: Whether to show this disabled object in the apply menu
	// on Drive items. * When `true`, the object is generally shown in the
	// UI as disabled and is unselectable. * When `false`, the object is
	// generally hidden in the UI.
	ShowInApply bool `json:"showInApply,omitempty"`

	// ForceSendFields is a list of field names (e.g. "HideInSearch") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "HideInSearch") 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:"-"`
}

GoogleAppsDriveLabelsV2betaLifecycleDisabledPolicy: The policy that governs how to treat a disabled label, field, or selection choice in different contexts.

func (*GoogleAppsDriveLabelsV2betaLifecycleDisabledPolicy) MarshalJSON

type GoogleAppsDriveLabelsV2betaListLabelLocksResponse

type GoogleAppsDriveLabelsV2betaListLabelLocksResponse struct {
	// LabelLocks: LabelLocks.
	LabelLocks []*GoogleAppsDriveLabelsV2betaLabelLock `json:"labelLocks,omitempty"`

	// NextPageToken: The token of the next page in the response.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "LabelLocks") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "LabelLocks") 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:"-"`
}

GoogleAppsDriveLabelsV2betaListLabelLocksResponse: The response to a ListLabelLocksRequest.

func (*GoogleAppsDriveLabelsV2betaListLabelLocksResponse) MarshalJSON

type GoogleAppsDriveLabelsV2betaListLabelPermissionsResponse

type GoogleAppsDriveLabelsV2betaListLabelPermissionsResponse struct {
	// LabelPermissions: Label permissions.
	LabelPermissions []*GoogleAppsDriveLabelsV2betaLabelPermission `json:"labelPermissions,omitempty"`

	// NextPageToken: The token of the next page in the response.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "LabelPermissions") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "LabelPermissions") 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:"-"`
}

GoogleAppsDriveLabelsV2betaListLabelPermissionsResponse: Response for listing the permissions on a Label.

func (*GoogleAppsDriveLabelsV2betaListLabelPermissionsResponse) MarshalJSON

type GoogleAppsDriveLabelsV2betaListLabelsResponse

type GoogleAppsDriveLabelsV2betaListLabelsResponse struct {
	// Labels: Labels.
	Labels []*GoogleAppsDriveLabelsV2betaLabel `json:"labels,omitempty"`

	// NextPageToken: The token of the next page in the response.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Labels") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "Labels") 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:"-"`
}

GoogleAppsDriveLabelsV2betaListLabelsResponse: Response for listing Labels.

func (*GoogleAppsDriveLabelsV2betaListLabelsResponse) MarshalJSON

type GoogleAppsDriveLabelsV2betaListLimits

type GoogleAppsDriveLabelsV2betaListLimits struct {
	// MaxEntries: Maximum number of values allowed for the Field type.
	MaxEntries int64 `json:"maxEntries,omitempty"`

	// ForceSendFields is a list of field names (e.g. "MaxEntries") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "MaxEntries") 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:"-"`
}

GoogleAppsDriveLabelsV2betaListLimits: Limits for list-variant of a Field type.

func (*GoogleAppsDriveLabelsV2betaListLimits) MarshalJSON

func (s *GoogleAppsDriveLabelsV2betaListLimits) MarshalJSON() ([]byte, error)

type GoogleAppsDriveLabelsV2betaLockStatus

type GoogleAppsDriveLabelsV2betaLockStatus struct {
	// Locked: Output only. Indicates whether this label component is the
	// (direct) target of a LabelLock. A label component can be implicitly
	// locked even if it's not the direct target of a LabelLock, in which
	// case this field is set to false.
	Locked bool `json:"locked,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Locked") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "Locked") 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:"-"`
}

GoogleAppsDriveLabelsV2betaLockStatus: Contains information about whether a label component should be considered locked.

func (*GoogleAppsDriveLabelsV2betaLockStatus) MarshalJSON

func (s *GoogleAppsDriveLabelsV2betaLockStatus) MarshalJSON() ([]byte, error)

type GoogleAppsDriveLabelsV2betaLongTextLimits

type GoogleAppsDriveLabelsV2betaLongTextLimits struct {
	// MaxLength: Maximum length allowed for a long text Field type.
	MaxLength int64 `json:"maxLength,omitempty"`

	// MinLength: Minimum length allowed for a long text Field type.
	MinLength int64 `json:"minLength,omitempty"`

	// ForceSendFields is a list of field names (e.g. "MaxLength") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "MaxLength") 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:"-"`
}

GoogleAppsDriveLabelsV2betaLongTextLimits: Limits for long text Field type.

func (*GoogleAppsDriveLabelsV2betaLongTextLimits) MarshalJSON

type GoogleAppsDriveLabelsV2betaPublishLabelRequest

type GoogleAppsDriveLabelsV2betaPublishLabelRequest struct {
	// LanguageCode: The BCP-47 language code to use for evaluating
	// localized field labels. When not specified, values in the default
	// configured language will be used.
	LanguageCode string `json:"languageCode,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"`

	// WriteControl: Provides control over how write requests are executed.
	// Defaults to unset, which means last write wins.
	WriteControl *GoogleAppsDriveLabelsV2betaWriteControl `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. 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. "LanguageCode") 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:"-"`
}

GoogleAppsDriveLabelsV2betaPublishLabelRequest: Request to publish a label.

func (*GoogleAppsDriveLabelsV2betaPublishLabelRequest) MarshalJSON

type GoogleAppsDriveLabelsV2betaSelectionLimits

type GoogleAppsDriveLabelsV2betaSelectionLimits struct {
	// ListLimits: Limits for list-variant of a Field type.
	ListLimits *GoogleAppsDriveLabelsV2betaListLimits `json:"listLimits,omitempty"`

	// MaxChoices: The max number of choices.
	MaxChoices int64 `json:"maxChoices,omitempty"`

	// MaxDeletedChoices: Maximum number of deleted choices.
	MaxDeletedChoices int64 `json:"maxDeletedChoices,omitempty"`

	// MaxDisplayNameLength: Maximum length for display name.
	MaxDisplayNameLength int64 `json:"maxDisplayNameLength,omitempty"`

	// MaxIdLength: Maximum ID length for a selection options.
	MaxIdLength int64 `json:"maxIdLength,omitempty"`

	// ForceSendFields is a list of field names (e.g. "ListLimits") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "ListLimits") 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:"-"`
}

GoogleAppsDriveLabelsV2betaSelectionLimits: Limits for selection Field type.

func (*GoogleAppsDriveLabelsV2betaSelectionLimits) MarshalJSON

type GoogleAppsDriveLabelsV2betaTextLimits

type GoogleAppsDriveLabelsV2betaTextLimits struct {
	// MaxLength: Maximum length allowed for a text Field type.
	MaxLength int64 `json:"maxLength,omitempty"`

	// MinLength: Minimum length allowed for a text Field type.
	MinLength int64 `json:"minLength,omitempty"`

	// ForceSendFields is a list of field names (e.g. "MaxLength") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "MaxLength") 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:"-"`
}

GoogleAppsDriveLabelsV2betaTextLimits: Limits for text Field type.

func (*GoogleAppsDriveLabelsV2betaTextLimits) MarshalJSON

func (s *GoogleAppsDriveLabelsV2betaTextLimits) MarshalJSON() ([]byte, error)

type GoogleAppsDriveLabelsV2betaUpdateLabelCopyModeRequest

type GoogleAppsDriveLabelsV2betaUpdateLabelCopyModeRequest struct {
	// CopyMode: Required. Indicates how the applied Label, and Field values
	// should be copied when a Drive item is copied.
	//
	// Possible values:
	//   "COPY_MODE_UNSPECIFIED" - Copy mode unspecified.
	//   "DO_NOT_COPY" - The applied label and field values are not copied
	// by default when the Drive item it's applied to is copied.
	//   "ALWAYS_COPY" - The applied label and field values are always
	// copied when the Drive item it's applied to is copied. Only admins can
	// use this mode.
	//   "COPY_APPLIABLE" - The applied label and field values are copied if
	// the label is appliable by the user making the copy.
	CopyMode string `json:"copyMode,omitempty"`

	// LanguageCode: The BCP-47 language code to use for evaluating
	// localized field labels. When not specified, values in the default
	// configured language will be used.
	LanguageCode string `json:"languageCode,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"`

	// ForceSendFields is a list of field names (e.g. "CopyMode") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "CopyMode") 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:"-"`
}

GoogleAppsDriveLabelsV2betaUpdateLabelCopyModeRequest: Request to update the `CopyMode` of the given Label. Changes to this policy are not revisioned, do not require publishing, and take effect immediately. \

func (*GoogleAppsDriveLabelsV2betaUpdateLabelCopyModeRequest) MarshalJSON

type GoogleAppsDriveLabelsV2betaUpdateLabelPermissionRequest

type GoogleAppsDriveLabelsV2betaUpdateLabelPermissionRequest struct {
	// LabelPermission: Required. The permission to create or update on the
	// Label.
	LabelPermission *GoogleAppsDriveLabelsV2betaLabelPermission `json:"labelPermission,omitempty"`

	// Parent: Required. The parent Label resource name.
	Parent string `json:"parent,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. "LabelPermission") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "LabelPermission") 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:"-"`
}

GoogleAppsDriveLabelsV2betaUpdateLabelPermissionRequest: Updates a Label Permission. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.

func (*GoogleAppsDriveLabelsV2betaUpdateLabelPermissionRequest) MarshalJSON

type GoogleAppsDriveLabelsV2betaUserCapabilities

type GoogleAppsDriveLabelsV2betaUserCapabilities struct {
	// CanAccessLabelManager: Output only. Whether the user is allowed
	// access to the label manager.
	CanAccessLabelManager bool `json:"canAccessLabelManager,omitempty"`

	// CanAdministrateLabels: Output only. Whether the user is an
	// administrator for the shared labels feature.
	CanAdministrateLabels bool `json:"canAdministrateLabels,omitempty"`

	// CanCreateAdminLabels: Output only. Whether the user is allowed to
	// create new admin labels.
	CanCreateAdminLabels bool `json:"canCreateAdminLabels,omitempty"`

	// CanCreateSharedLabels: Output only. Whether the user is allowed to
	// create new shared labels.
	CanCreateSharedLabels bool `json:"canCreateSharedLabels,omitempty"`

	// Name: Output only. Resource name for the user capabilities.
	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.
	// "CanAccessLabelManager") to unconditionally include in API requests.
	// By default, fields with empty or default 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. "CanAccessLabelManager") 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:"-"`
}

GoogleAppsDriveLabelsV2betaUserCapabilities: The capabilities of a user.

func (*GoogleAppsDriveLabelsV2betaUserCapabilities) MarshalJSON

type GoogleAppsDriveLabelsV2betaUserInfo

type GoogleAppsDriveLabelsV2betaUserInfo struct {
	// Person: The identifier for this user that can be used with the People
	// API to get more information. For example, people/12345678.
	Person string `json:"person,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Person") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "Person") 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:"-"`
}

GoogleAppsDriveLabelsV2betaUserInfo: Information about a user.

func (*GoogleAppsDriveLabelsV2betaUserInfo) MarshalJSON

func (s *GoogleAppsDriveLabelsV2betaUserInfo) MarshalJSON() ([]byte, error)

type GoogleAppsDriveLabelsV2betaUserLimits

type GoogleAppsDriveLabelsV2betaUserLimits struct {
	// ListLimits: Limits for list-variant of a Field type.
	ListLimits *GoogleAppsDriveLabelsV2betaListLimits `json:"listLimits,omitempty"`

	// ForceSendFields is a list of field names (e.g. "ListLimits") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "ListLimits") 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:"-"`
}

GoogleAppsDriveLabelsV2betaUserLimits: Limits for Field.Type.USER.

func (*GoogleAppsDriveLabelsV2betaUserLimits) MarshalJSON

func (s *GoogleAppsDriveLabelsV2betaUserLimits) MarshalJSON() ([]byte, error)

type GoogleAppsDriveLabelsV2betaWriteControl

type GoogleAppsDriveLabelsV2betaWriteControl struct {
	// RequiredRevisionId: The revision_id of the label that the write
	// request will be applied to. If this is not the latest revision of the
	// label, the request will not be processed and will return a 400 Bad
	// Request error.
	RequiredRevisionId string `json:"requiredRevisionId,omitempty"`

	// ForceSendFields is a list of field names (e.g. "RequiredRevisionId")
	// to unconditionally include in API requests. By default, fields with
	// empty or default 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. "RequiredRevisionId") 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:"-"`
}

GoogleAppsDriveLabelsV2betaWriteControl: Provides control over how write requests are executed. When not specified, the last write wins.

func (*GoogleAppsDriveLabelsV2betaWriteControl) MarshalJSON

func (s *GoogleAppsDriveLabelsV2betaWriteControl) MarshalJSON() ([]byte, error)

type GoogleProtobufEmpty

type GoogleProtobufEmpty struct {
	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`
}

GoogleProtobufEmpty: 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); }

type GoogleTypeColor

type GoogleTypeColor struct {
	// Alpha: The fraction of this color that should be applied to the
	// pixel. That is, the final pixel color is defined by the equation:
	// `pixel color = alpha * (this color) + (1.0 - alpha) * (background
	// color)` This means that a value of 1.0 corresponds to a solid color,
	// whereas a value of 0.0 corresponds to a completely transparent color.
	// This uses a wrapper message rather than a simple float scalar so that
	// it is possible to distinguish between a default value and the value
	// being unset. If omitted, this color object is rendered as a solid
	// color (as if the alpha value had been explicitly given a value of
	// 1.0).
	Alpha float64 `json:"alpha,omitempty"`

	// Blue: The amount of blue in the color as a value in the interval [0,
	// 1].
	Blue float64 `json:"blue,omitempty"`

	// Green: The amount of green in the color as a value in the interval
	// [0, 1].
	Green float64 `json:"green,omitempty"`

	// Red: The amount of red in the color as a value in the interval [0,
	// 1].
	Red float64 `json:"red,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Alpha") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "Alpha") 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:"-"`
}

GoogleTypeColor: Represents a color in the RGBA color space. This representation is designed for simplicity of conversion to and from color representations in various languages over compactness. For example, the fields of this representation can be trivially provided to the constructor of `java.awt.Color` in Java; it can also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha` method in iOS; and, with just a little work, it can be easily formatted into a CSS `rgba()` string in JavaScript. This reference page doesn't have information about the absolute color space that should be used to interpret the RGB value—for example, sRGB, Adobe RGB, DCI-P3, and BT.2020. By default, applications should assume the sRGB color space. When color equality needs to be decided, implementations, unless documented otherwise, treat two colors as equal if all their red, green, blue, and alpha values each differ by at most `1e-5`. Example (Java): import com.google.type.Color; // ... public static java.awt.Color fromProto(Color protocolor) { float alpha = protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); } public static Color toProto(java.awt.Color color) { float red = (float) color.getRed(); float green = (float) color.getGreen(); float blue = (float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) { result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .build()); } return resultBuilder.build(); } // ... Example (iOS / Obj-C): // ... static UIColor* fromProto(Color* protocolor) { float red = [protocolor red]; float green = [protocolor green]; float blue = [protocolor blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper != nil) { alpha = [alpha_wrapper value]; } return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; } static Color* toProto(UIColor* color) { CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) { return nil; } Color* result = [[Color alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <= 0.9999) { [result setAlpha:floatWrapperWithValue(alpha)]; } [result autorelease]; return result; } // ... Example (JavaScript): // ... var protoToCssColor = function(rgb_color) { var redFrac = rgb_color.red || 0.0; var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) { return rgbToCssColor(red, green, blue); } var alphaFrac = rgb_color.alpha.value || 0.0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(”); }; var rgbToCssColor = function(red, green, blue) { var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) { resultBuilder.push('0'); } resultBuilder.push(hexString); return resultBuilder.join(”); }; // ...

func (*GoogleTypeColor) MarshalJSON

func (s *GoogleTypeColor) MarshalJSON() ([]byte, error)

func (*GoogleTypeColor) UnmarshalJSON

func (s *GoogleTypeColor) UnmarshalJSON(data []byte) error

type GoogleTypeDate

type GoogleTypeDate struct {
	// Day: Day of a month. Must be from 1 to 31 and valid for the year and
	// month, or 0 to specify a year by itself or a year and month where the
	// day isn't significant.
	Day int64 `json:"day,omitempty"`

	// Month: Month of a year. Must be from 1 to 12, or 0 to specify a year
	// without a month and day.
	Month int64 `json:"month,omitempty"`

	// Year: Year of the date. Must be from 1 to 9999, or 0 to specify a
	// date without a year.
	Year int64 `json:"year,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Day") to
	// unconditionally include in API requests. By default, fields with
	// empty or default 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. "Day") 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:"-"`
}

GoogleTypeDate: Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp

func (*GoogleTypeDate) MarshalJSON

func (s *GoogleTypeDate) MarshalJSON() ([]byte, error)

type LabelsCreateCall

type LabelsCreateCall struct {
	// contains filtered or unexported fields
}

func (*LabelsCreateCall) Context

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 (*LabelsCreateCall) Do

Do executes the "drivelabels.labels.create" call. Exactly one of *GoogleAppsDriveLabelsV2betaLabel or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleAppsDriveLabelsV2betaLabel.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 (*LabelsCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LabelsCreateCall) Header

func (c *LabelsCreateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*LabelsCreateCall) LanguageCode

func (c *LabelsCreateCall) LanguageCode(languageCode string) *LabelsCreateCall

LanguageCode sets the optional parameter "languageCode": The BCP-47 language code to use for evaluating localized Field labels in response. When not specified, values in the default configured language will be used.

func (*LabelsCreateCall) UseAdminAccess

func (c *LabelsCreateCall) UseAdminAccess(useAdminAccess bool) *LabelsCreateCall

UseAdminAccess sets the optional parameter "useAdminAccess": Set to `true` in order to use the user's admin privileges. The server will verify the user is an admin before allowing access.

type LabelsDeleteCall

type LabelsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*LabelsDeleteCall) Context

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 (*LabelsDeleteCall) Do

Do executes the "drivelabels.labels.delete" call. Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleProtobufEmpty.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 (*LabelsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LabelsDeleteCall) Header

func (c *LabelsDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*LabelsDeleteCall) UseAdminAccess

func (c *LabelsDeleteCall) UseAdminAccess(useAdminAccess bool) *LabelsDeleteCall

UseAdminAccess sets the optional parameter "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.

func (*LabelsDeleteCall) WriteControlRequiredRevisionId

func (c *LabelsDeleteCall) WriteControlRequiredRevisionId(writeControlRequiredRevisionId string) *LabelsDeleteCall

WriteControlRequiredRevisionId sets the optional parameter "writeControl.requiredRevisionId": The revision_id of the label that the write request will be applied to. If this is not the latest revision of the label, the request will not be processed and will return a 400 Bad Request error.

type LabelsDeltaCall

type LabelsDeltaCall struct {
	// contains filtered or unexported fields
}

func (*LabelsDeltaCall) Context

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 (*LabelsDeltaCall) Do

Do executes the "drivelabels.labels.delta" call. Exactly one of *GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleAppsDriveLabelsV2betaDeltaUpdateLabelResponse.ServerResponse.He ader 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 (*LabelsDeltaCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LabelsDeltaCall) Header

func (c *LabelsDeltaCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type LabelsDisableCall

type LabelsDisableCall struct {
	// contains filtered or unexported fields
}

func (*LabelsDisableCall) Context

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 (*LabelsDisableCall) Do

Do executes the "drivelabels.labels.disable" call. Exactly one of *GoogleAppsDriveLabelsV2betaLabel or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleAppsDriveLabelsV2betaLabel.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 (*LabelsDisableCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LabelsDisableCall) Header

func (c *LabelsDisableCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type LabelsEnableCall

type LabelsEnableCall struct {
	// contains filtered or unexported fields
}

func (*LabelsEnableCall) Context

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 (*LabelsEnableCall) Do

Do executes the "drivelabels.labels.enable" call. Exactly one of *GoogleAppsDriveLabelsV2betaLabel or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleAppsDriveLabelsV2betaLabel.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 (*LabelsEnableCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LabelsEnableCall) Header

func (c *LabelsEnableCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type LabelsGetCall

type LabelsGetCall struct {
	// contains filtered or unexported fields
}

func (*LabelsGetCall) Context

func (c *LabelsGetCall) Context(ctx context.Context) *LabelsGetCall

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 (*LabelsGetCall) Do

Do executes the "drivelabels.labels.get" call. Exactly one of *GoogleAppsDriveLabelsV2betaLabel or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleAppsDriveLabelsV2betaLabel.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 (*LabelsGetCall) Fields

func (c *LabelsGetCall) Fields(s ...googleapi.Field) *LabelsGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LabelsGetCall) Header

func (c *LabelsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*LabelsGetCall) IfNoneMatch

func (c *LabelsGetCall) IfNoneMatch(entityTag string) *LabelsGetCall

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 (*LabelsGetCall) LanguageCode

func (c *LabelsGetCall) LanguageCode(languageCode string) *LabelsGetCall

LanguageCode sets the optional parameter "languageCode": The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language are used.

func (*LabelsGetCall) UseAdminAccess

func (c *LabelsGetCall) UseAdminAccess(useAdminAccess bool) *LabelsGetCall

UseAdminAccess sets the optional parameter "useAdminAccess": Set to `true` in order to use the user's admin credentials. The server verifies that the user is an admin for the label before allowing access.

func (*LabelsGetCall) View

func (c *LabelsGetCall) View(view string) *LabelsGetCall

View sets the optional parameter "view": When specified, only certain fields belonging to the indicated view are returned.

Possible values:

"LABEL_VIEW_BASIC" - Implies the field mask:

`name,id,revision_id,label_type,properties.*`

"LABEL_VIEW_FULL" - All possible fields.

type LabelsListCall

type LabelsListCall struct {
	// contains filtered or unexported fields
}

func (*LabelsListCall) Context

func (c *LabelsListCall) Context(ctx context.Context) *LabelsListCall

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 (*LabelsListCall) Customer

func (c *LabelsListCall) Customer(customer string) *LabelsListCall

Customer sets the optional parameter "customer": The customer to scope this list request to. For example: "customers/abcd1234". If unset, will return all labels within the current customer.

func (*LabelsListCall) Do

Do executes the "drivelabels.labels.list" call. Exactly one of *GoogleAppsDriveLabelsV2betaListLabelsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleAppsDriveLabelsV2betaListLabelsResponse.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 (*LabelsListCall) Fields

func (c *LabelsListCall) Fields(s ...googleapi.Field) *LabelsListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LabelsListCall) Header

func (c *LabelsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*LabelsListCall) IfNoneMatch

func (c *LabelsListCall) IfNoneMatch(entityTag string) *LabelsListCall

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 (*LabelsListCall) LanguageCode

func (c *LabelsListCall) LanguageCode(languageCode string) *LabelsListCall

LanguageCode sets the optional parameter "languageCode": The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language are used.

func (*LabelsListCall) MinimumRole

func (c *LabelsListCall) MinimumRole(minimumRole string) *LabelsListCall

MinimumRole sets the optional parameter "minimumRole": Specifies the level of access the user must have on the returned Labels. The minimum role a user must have on a label. Defaults to `READER`.

Possible values:

"LABEL_ROLE_UNSPECIFIED" - Unknown role.
"READER" - A reader can read the label and associated metadata

applied to Drive items.

"APPLIER" - An applier can write associated metadata on Drive items

in which they also have write access to. Implies `READER`.

"ORGANIZER" - An organizer can pin this label in shared drives they

manage and add new appliers to the label.

"EDITOR" - Editors can make any update including deleting the label

which also deletes the associated Drive item metadata. Implies `APPLIER`.

func (*LabelsListCall) PageSize

func (c *LabelsListCall) PageSize(pageSize int64) *LabelsListCall

PageSize sets the optional parameter "pageSize": Maximum number of labels to return per page. Default: 50. Max: 200.

func (*LabelsListCall) PageToken

func (c *LabelsListCall) PageToken(pageToken string) *LabelsListCall

PageToken sets the optional parameter "pageToken": The token of the page to return.

func (*LabelsListCall) Pages

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.

func (*LabelsListCall) PublishedOnly

func (c *LabelsListCall) PublishedOnly(publishedOnly bool) *LabelsListCall

PublishedOnly sets the optional parameter "publishedOnly": Whether to include only published labels in the results. * When `true`, only the current published label revisions are returned. Disabled labels are included. Returned label resource names reference the published revision (`labels/{id}/{revision_id}`). * When `false`, the current label revisions are returned, which might not be published. Returned label resource names don't reference a specific revision (`labels/{id}`).

func (*LabelsListCall) UseAdminAccess

func (c *LabelsListCall) UseAdminAccess(useAdminAccess bool) *LabelsListCall

UseAdminAccess sets the optional parameter "useAdminAccess": Set to `true` in order to use the user's admin credentials. This will return all Labels within the customer.

func (*LabelsListCall) View

func (c *LabelsListCall) View(view string) *LabelsListCall

View sets the optional parameter "view": When specified, only certain fields belonging to the indicated view are returned.

Possible values:

"LABEL_VIEW_BASIC" - Implies the field mask:

`name,id,revision_id,label_type,properties.*`

"LABEL_VIEW_FULL" - All possible fields.

type LabelsLocksListCall

type LabelsLocksListCall struct {
	// contains filtered or unexported fields
}

func (*LabelsLocksListCall) Context

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 (*LabelsLocksListCall) Do

Do executes the "drivelabels.labels.locks.list" call. Exactly one of *GoogleAppsDriveLabelsV2betaListLabelLocksResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleAppsDriveLabelsV2betaListLabelLocksResponse.ServerResponse.Head er 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 (*LabelsLocksListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LabelsLocksListCall) Header

func (c *LabelsLocksListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*LabelsLocksListCall) IfNoneMatch

func (c *LabelsLocksListCall) IfNoneMatch(entityTag string) *LabelsLocksListCall

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 (*LabelsLocksListCall) PageSize

func (c *LabelsLocksListCall) PageSize(pageSize int64) *LabelsLocksListCall

PageSize sets the optional parameter "pageSize": Maximum number of Locks to return per page. Default: 100. Max: 200.

func (*LabelsLocksListCall) PageToken

func (c *LabelsLocksListCall) PageToken(pageToken string) *LabelsLocksListCall

PageToken sets the optional parameter "pageToken": The token of the page to return.

func (*LabelsLocksListCall) Pages

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 LabelsLocksService

type LabelsLocksService struct {
	// contains filtered or unexported fields
}

func NewLabelsLocksService

func NewLabelsLocksService(s *Service) *LabelsLocksService

func (*LabelsLocksService) List

List: Lists the LabelLocks on a Label.

- parent: Label on which Locks are applied. Format: labels/{label}.

type LabelsPermissionsBatchDeleteCall

type LabelsPermissionsBatchDeleteCall struct {
	// contains filtered or unexported fields
}

func (*LabelsPermissionsBatchDeleteCall) Context

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 (*LabelsPermissionsBatchDeleteCall) Do

Do executes the "drivelabels.labels.permissions.batchDelete" call. Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleProtobufEmpty.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 (*LabelsPermissionsBatchDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LabelsPermissionsBatchDeleteCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type LabelsPermissionsBatchUpdateCall

type LabelsPermissionsBatchUpdateCall struct {
	// contains filtered or unexported fields
}

func (*LabelsPermissionsBatchUpdateCall) Context

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 (*LabelsPermissionsBatchUpdateCall) Do

Do executes the "drivelabels.labels.permissions.batchUpdate" call. Exactly one of *GoogleAppsDriveLabelsV2betaBatchUpdateLabelPermissionsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleAppsDriveLabelsV2betaBatchUpdateLabelPermissionsResponse.Server Response.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 (*LabelsPermissionsBatchUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LabelsPermissionsBatchUpdateCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type LabelsPermissionsCreateCall

type LabelsPermissionsCreateCall struct {
	// contains filtered or unexported fields
}

func (*LabelsPermissionsCreateCall) Context

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 (*LabelsPermissionsCreateCall) Do

Do executes the "drivelabels.labels.permissions.create" call. Exactly one of *GoogleAppsDriveLabelsV2betaLabelPermission or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleAppsDriveLabelsV2betaLabelPermission.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 (*LabelsPermissionsCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LabelsPermissionsCreateCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*LabelsPermissionsCreateCall) UseAdminAccess

func (c *LabelsPermissionsCreateCall) UseAdminAccess(useAdminAccess bool) *LabelsPermissionsCreateCall

UseAdminAccess sets the optional parameter "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.

type LabelsPermissionsDeleteCall

type LabelsPermissionsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*LabelsPermissionsDeleteCall) Context

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 (*LabelsPermissionsDeleteCall) Do

Do executes the "drivelabels.labels.permissions.delete" call. Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleProtobufEmpty.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 (*LabelsPermissionsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LabelsPermissionsDeleteCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*LabelsPermissionsDeleteCall) UseAdminAccess

func (c *LabelsPermissionsDeleteCall) UseAdminAccess(useAdminAccess bool) *LabelsPermissionsDeleteCall

UseAdminAccess sets the optional parameter "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.

type LabelsPermissionsListCall

type LabelsPermissionsListCall struct {
	// contains filtered or unexported fields
}

func (*LabelsPermissionsListCall) Context

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 (*LabelsPermissionsListCall) Do

Do executes the "drivelabels.labels.permissions.list" call. Exactly one of *GoogleAppsDriveLabelsV2betaListLabelPermissionsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleAppsDriveLabelsV2betaListLabelPermissionsResponse.ServerRespons e.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 (*LabelsPermissionsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LabelsPermissionsListCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*LabelsPermissionsListCall) IfNoneMatch

func (c *LabelsPermissionsListCall) IfNoneMatch(entityTag string) *LabelsPermissionsListCall

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 (*LabelsPermissionsListCall) PageSize

PageSize sets the optional parameter "pageSize": Maximum number of permissions to return per page. Default: 50. Max: 200.

func (*LabelsPermissionsListCall) PageToken

PageToken sets the optional parameter "pageToken": The token of the page to return.

func (*LabelsPermissionsListCall) Pages

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.

func (*LabelsPermissionsListCall) UseAdminAccess

func (c *LabelsPermissionsListCall) UseAdminAccess(useAdminAccess bool) *LabelsPermissionsListCall

UseAdminAccess sets the optional parameter "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.

type LabelsPermissionsService

type LabelsPermissionsService struct {
	// contains filtered or unexported fields
}

func NewLabelsPermissionsService

func NewLabelsPermissionsService(s *Service) *LabelsPermissionsService

func (*LabelsPermissionsService) BatchDelete

func (r *LabelsPermissionsService) BatchDelete(parent string, googleappsdrivelabelsv2betabatchdeletelabelpermissionsrequest *GoogleAppsDriveLabelsV2betaBatchDeleteLabelPermissionsRequest) *LabelsPermissionsBatchDeleteCall

BatchDelete: Deletes Label permissions. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.

  • parent: The parent Label resource name shared by all permissions being deleted. Format: labels/{label} If this is set, the parent field in the UpdateLabelPermissionRequest messages must either be empty or match this field.

func (*LabelsPermissionsService) BatchUpdate

func (r *LabelsPermissionsService) BatchUpdate(parent string, googleappsdrivelabelsv2betabatchupdatelabelpermissionsrequest *GoogleAppsDriveLabelsV2betaBatchUpdateLabelPermissionsRequest) *LabelsPermissionsBatchUpdateCall

BatchUpdate: Updates Label permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.

  • parent: The parent Label resource name shared by all permissions being updated. Format: labels/{label} If this is set, the parent field in the UpdateLabelPermissionRequest messages must either be empty or match this field.

func (*LabelsPermissionsService) Create

func (r *LabelsPermissionsService) Create(parent string, googleappsdrivelabelsv2betalabelpermission *GoogleAppsDriveLabelsV2betaLabelPermission) *LabelsPermissionsCreateCall

Create: Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.

  • parent: The parent Label resource name on the Label Permission is created. Format: labels/{label}.

func (*LabelsPermissionsService) Delete

Delete: Deletes a Label's permission. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.

- name: Label Permission resource name.

func (*LabelsPermissionsService) List

List: Lists a Label's permissions.

  • parent: The parent Label resource name on which Label Permission are listed. Format: labels/{label}.

type LabelsPublishCall

type LabelsPublishCall struct {
	// contains filtered or unexported fields
}

func (*LabelsPublishCall) Context

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 (*LabelsPublishCall) Do

Do executes the "drivelabels.labels.publish" call. Exactly one of *GoogleAppsDriveLabelsV2betaLabel or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleAppsDriveLabelsV2betaLabel.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 (*LabelsPublishCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LabelsPublishCall) Header

func (c *LabelsPublishCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type LabelsRevisionsLocksListCall

type LabelsRevisionsLocksListCall struct {
	// contains filtered or unexported fields
}

func (*LabelsRevisionsLocksListCall) Context

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 (*LabelsRevisionsLocksListCall) Do

Do executes the "drivelabels.labels.revisions.locks.list" call. Exactly one of *GoogleAppsDriveLabelsV2betaListLabelLocksResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleAppsDriveLabelsV2betaListLabelLocksResponse.ServerResponse.Head er 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 (*LabelsRevisionsLocksListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LabelsRevisionsLocksListCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*LabelsRevisionsLocksListCall) IfNoneMatch

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 (*LabelsRevisionsLocksListCall) PageSize

PageSize sets the optional parameter "pageSize": Maximum number of Locks to return per page. Default: 100. Max: 200.

func (*LabelsRevisionsLocksListCall) PageToken

PageToken sets the optional parameter "pageToken": The token of the page to return.

func (*LabelsRevisionsLocksListCall) Pages

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 LabelsRevisionsLocksService

type LabelsRevisionsLocksService struct {
	// contains filtered or unexported fields
}

func NewLabelsRevisionsLocksService

func NewLabelsRevisionsLocksService(s *Service) *LabelsRevisionsLocksService

func (*LabelsRevisionsLocksService) List

List: Lists the LabelLocks on a Label.

- parent: Label on which Locks are applied. Format: labels/{label}.

type LabelsRevisionsPermissionsBatchDeleteCall

type LabelsRevisionsPermissionsBatchDeleteCall struct {
	// contains filtered or unexported fields
}

func (*LabelsRevisionsPermissionsBatchDeleteCall) Context

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 (*LabelsRevisionsPermissionsBatchDeleteCall) Do

Do executes the "drivelabels.labels.revisions.permissions.batchDelete" call. Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleProtobufEmpty.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 (*LabelsRevisionsPermissionsBatchDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LabelsRevisionsPermissionsBatchDeleteCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type LabelsRevisionsPermissionsBatchUpdateCall

type LabelsRevisionsPermissionsBatchUpdateCall struct {
	// contains filtered or unexported fields
}

func (*LabelsRevisionsPermissionsBatchUpdateCall) Context

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 (*LabelsRevisionsPermissionsBatchUpdateCall) Do

Do executes the "drivelabels.labels.revisions.permissions.batchUpdate" call. Exactly one of *GoogleAppsDriveLabelsV2betaBatchUpdateLabelPermissionsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleAppsDriveLabelsV2betaBatchUpdateLabelPermissionsResponse.Server Response.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 (*LabelsRevisionsPermissionsBatchUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LabelsRevisionsPermissionsBatchUpdateCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type LabelsRevisionsPermissionsCreateCall

type LabelsRevisionsPermissionsCreateCall struct {
	// contains filtered or unexported fields
}

func (*LabelsRevisionsPermissionsCreateCall) Context

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 (*LabelsRevisionsPermissionsCreateCall) Do

Do executes the "drivelabels.labels.revisions.permissions.create" call. Exactly one of *GoogleAppsDriveLabelsV2betaLabelPermission or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleAppsDriveLabelsV2betaLabelPermission.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 (*LabelsRevisionsPermissionsCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LabelsRevisionsPermissionsCreateCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*LabelsRevisionsPermissionsCreateCall) UseAdminAccess

UseAdminAccess sets the optional parameter "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.

type LabelsRevisionsPermissionsDeleteCall

type LabelsRevisionsPermissionsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*LabelsRevisionsPermissionsDeleteCall) Context

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 (*LabelsRevisionsPermissionsDeleteCall) Do

Do executes the "drivelabels.labels.revisions.permissions.delete" call. Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleProtobufEmpty.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 (*LabelsRevisionsPermissionsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LabelsRevisionsPermissionsDeleteCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*LabelsRevisionsPermissionsDeleteCall) UseAdminAccess

UseAdminAccess sets the optional parameter "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.

type LabelsRevisionsPermissionsListCall

type LabelsRevisionsPermissionsListCall struct {
	// contains filtered or unexported fields
}

func (*LabelsRevisionsPermissionsListCall) Context

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 (*LabelsRevisionsPermissionsListCall) Do

Do executes the "drivelabels.labels.revisions.permissions.list" call. Exactly one of *GoogleAppsDriveLabelsV2betaListLabelPermissionsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleAppsDriveLabelsV2betaListLabelPermissionsResponse.ServerRespons e.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 (*LabelsRevisionsPermissionsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LabelsRevisionsPermissionsListCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*LabelsRevisionsPermissionsListCall) IfNoneMatch

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 (*LabelsRevisionsPermissionsListCall) PageSize

PageSize sets the optional parameter "pageSize": Maximum number of permissions to return per page. Default: 50. Max: 200.

func (*LabelsRevisionsPermissionsListCall) PageToken

PageToken sets the optional parameter "pageToken": The token of the page to return.

func (*LabelsRevisionsPermissionsListCall) Pages

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.

func (*LabelsRevisionsPermissionsListCall) UseAdminAccess

UseAdminAccess sets the optional parameter "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.

type LabelsRevisionsPermissionsService

type LabelsRevisionsPermissionsService struct {
	// contains filtered or unexported fields
}

func NewLabelsRevisionsPermissionsService

func NewLabelsRevisionsPermissionsService(s *Service) *LabelsRevisionsPermissionsService

func (*LabelsRevisionsPermissionsService) BatchDelete

func (r *LabelsRevisionsPermissionsService) BatchDelete(parent string, googleappsdrivelabelsv2betabatchdeletelabelpermissionsrequest *GoogleAppsDriveLabelsV2betaBatchDeleteLabelPermissionsRequest) *LabelsRevisionsPermissionsBatchDeleteCall

BatchDelete: Deletes Label permissions. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.

  • parent: The parent Label resource name shared by all permissions being deleted. Format: labels/{label} If this is set, the parent field in the UpdateLabelPermissionRequest messages must either be empty or match this field.

func (*LabelsRevisionsPermissionsService) BatchUpdate

func (r *LabelsRevisionsPermissionsService) BatchUpdate(parent string, googleappsdrivelabelsv2betabatchupdatelabelpermissionsrequest *GoogleAppsDriveLabelsV2betaBatchUpdateLabelPermissionsRequest) *LabelsRevisionsPermissionsBatchUpdateCall

BatchUpdate: Updates Label permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.

  • parent: The parent Label resource name shared by all permissions being updated. Format: labels/{label} If this is set, the parent field in the UpdateLabelPermissionRequest messages must either be empty or match this field.

func (*LabelsRevisionsPermissionsService) Create

Create: Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.

  • parent: The parent Label resource name on the Label Permission is created. Format: labels/{label}.

func (*LabelsRevisionsPermissionsService) Delete

Delete: Deletes a Label's permission. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.

- name: Label Permission resource name.

func (*LabelsRevisionsPermissionsService) List

List: Lists a Label's permissions.

  • parent: The parent Label resource name on which Label Permission are listed. Format: labels/{label}.

type LabelsRevisionsService

type LabelsRevisionsService struct {
	Locks *LabelsRevisionsLocksService

	Permissions *LabelsRevisionsPermissionsService
	// contains filtered or unexported fields
}

func NewLabelsRevisionsService

func NewLabelsRevisionsService(s *Service) *LabelsRevisionsService

func (*LabelsRevisionsService) UpdatePermissions

func (r *LabelsRevisionsService) UpdatePermissions(parent string, googleappsdrivelabelsv2betalabelpermission *GoogleAppsDriveLabelsV2betaLabelPermission) *LabelsRevisionsUpdatePermissionsCall

UpdatePermissions: Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.

- parent: The parent Label resource name.

type LabelsRevisionsUpdatePermissionsCall

type LabelsRevisionsUpdatePermissionsCall struct {
	// contains filtered or unexported fields
}

func (*LabelsRevisionsUpdatePermissionsCall) Context

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 (*LabelsRevisionsUpdatePermissionsCall) Do

Do executes the "drivelabels.labels.revisions.updatePermissions" call. Exactly one of *GoogleAppsDriveLabelsV2betaLabelPermission or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleAppsDriveLabelsV2betaLabelPermission.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 (*LabelsRevisionsUpdatePermissionsCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LabelsRevisionsUpdatePermissionsCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*LabelsRevisionsUpdatePermissionsCall) UseAdminAccess

UseAdminAccess sets the optional parameter "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.

type LabelsService

type LabelsService struct {
	Locks *LabelsLocksService

	Permissions *LabelsPermissionsService

	Revisions *LabelsRevisionsService
	// contains filtered or unexported fields
}

func NewLabelsService

func NewLabelsService(s *Service) *LabelsService

func (*LabelsService) Create

func (r *LabelsService) Create(googleappsdrivelabelsv2betalabel *GoogleAppsDriveLabelsV2betaLabel) *LabelsCreateCall

Create: Creates a new Label.

func (*LabelsService) Delete

func (r *LabelsService) Delete(name string) *LabelsDeleteCall

Delete: Permanently deletes a Label and related metadata on Drive Items. Once deleted, the Label and related Drive item metadata will be deleted. Only draft Labels, and disabled Labels may be deleted.

- name: Label resource name.

func (*LabelsService) Delta

func (r *LabelsService) Delta(name string, googleappsdrivelabelsv2betadeltaupdatelabelrequest *GoogleAppsDriveLabelsV2betaDeltaUpdateLabelRequest) *LabelsDeltaCall

Delta: Updates a single Label by applying a set of update requests resulting in a new draft revision. The batch update is all-or-nothing: If any of the update requests are invalid, no changes are applied. The resulting draft revision must be published before the changes may be used with Drive Items.

- name: The resource name of the Label to update.

func (*LabelsService) Disable

func (r *LabelsService) Disable(name string, googleappsdrivelabelsv2betadisablelabelrequest *GoogleAppsDriveLabelsV2betaDisableLabelRequest) *LabelsDisableCall

Disable: Disable a published Label. Disabling a Label will result in a new disabled published revision based on the current published revision. If there is a draft revision, a new disabled draft revision will be created based on the latest draft revision. Older draft revisions will be deleted. Once disabled, a label may be deleted with `DeleteLabel`.

- name: Label resource name.

func (*LabelsService) Enable

func (r *LabelsService) Enable(name string, googleappsdrivelabelsv2betaenablelabelrequest *GoogleAppsDriveLabelsV2betaEnableLabelRequest) *LabelsEnableCall

Enable: Enable a disabled Label and restore it to its published state. This will result in a new published revision based on the current disabled published revision. If there is an existing disabled draft revision, a new revision will be created based on that draft and will be enabled.

- name: Label resource name.

func (*LabelsService) Get

func (r *LabelsService) Get(name string) *LabelsGetCall

Get: Get a label by its resource name. Resource name may be any of: * `labels/{id}` - See `labels/{id}@latest` * `labels/{id}@latest` - Gets the latest revision of the label. * `labels/{id}@published` - Gets the current published revision of the label. * `labels/{id}@{revision_id}` - Gets the label at the specified revision ID.

  • name: Label resource name. May be any of: * `labels/{id}` (equivalent to labels/{id}@latest) * `labels/{id}@latest` * `labels/{id}@published` * `labels/{id}@{revision_id}`.

func (*LabelsService) List

func (r *LabelsService) List() *LabelsListCall

List: List labels.

func (*LabelsService) Publish

func (r *LabelsService) Publish(name string, googleappsdrivelabelsv2betapublishlabelrequest *GoogleAppsDriveLabelsV2betaPublishLabelRequest) *LabelsPublishCall

Publish: Publish all draft changes to the Label. Once published, the Label may not return to its draft state. See `google.apps.drive.labels.v2.Lifecycle` for more information. Publishing a Label will result in a new published revision. All previous draft revisions will be deleted. Previous published revisions will be kept but are subject to automated deletion as needed. Once published, some changes are no longer permitted. Generally, any change that would invalidate or cause new restrictions on existing metadata related to the Label will be rejected. For example, the following changes to a Label will be rejected after the Label is published: * The label cannot be directly deleted. It must be disabled first, then deleted. * Field.FieldType cannot be changed. * Changes to Field validation options cannot reject something that was previously accepted. * Reducing the max entries.

- name: Label resource name.

func (*LabelsService) UpdateLabelCopyMode

func (r *LabelsService) UpdateLabelCopyMode(name string, googleappsdrivelabelsv2betaupdatelabelcopymoderequest *GoogleAppsDriveLabelsV2betaUpdateLabelCopyModeRequest) *LabelsUpdateLabelCopyModeCall

UpdateLabelCopyMode: Updates a Label's `CopyMode`. Changes to this policy are not revisioned, do not require publishing, and take effect immediately.

- name: The resource name of the Label to update.

func (*LabelsService) UpdatePermissions

func (r *LabelsService) UpdatePermissions(parent string, googleappsdrivelabelsv2betalabelpermission *GoogleAppsDriveLabelsV2betaLabelPermission) *LabelsUpdatePermissionsCall

UpdatePermissions: Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.

- parent: The parent Label resource name.

type LabelsUpdateLabelCopyModeCall

type LabelsUpdateLabelCopyModeCall struct {
	// contains filtered or unexported fields
}

func (*LabelsUpdateLabelCopyModeCall) Context

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 (*LabelsUpdateLabelCopyModeCall) Do

Do executes the "drivelabels.labels.updateLabelCopyMode" call. Exactly one of *GoogleAppsDriveLabelsV2betaLabel or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleAppsDriveLabelsV2betaLabel.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 (*LabelsUpdateLabelCopyModeCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LabelsUpdateLabelCopyModeCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type LabelsUpdatePermissionsCall

type LabelsUpdatePermissionsCall struct {
	// contains filtered or unexported fields
}

func (*LabelsUpdatePermissionsCall) Context

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 (*LabelsUpdatePermissionsCall) Do

Do executes the "drivelabels.labels.updatePermissions" call. Exactly one of *GoogleAppsDriveLabelsV2betaLabelPermission or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleAppsDriveLabelsV2betaLabelPermission.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 (*LabelsUpdatePermissionsCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LabelsUpdatePermissionsCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*LabelsUpdatePermissionsCall) UseAdminAccess

func (c *LabelsUpdatePermissionsCall) UseAdminAccess(useAdminAccess bool) *LabelsUpdatePermissionsCall

UseAdminAccess sets the optional parameter "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.

type LimitsGetLabelCall

type LimitsGetLabelCall struct {
	// contains filtered or unexported fields
}

func (*LimitsGetLabelCall) Context

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 (*LimitsGetLabelCall) Do

Do executes the "drivelabels.limits.getLabel" call. Exactly one of *GoogleAppsDriveLabelsV2betaLabelLimits or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleAppsDriveLabelsV2betaLabelLimits.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 (*LimitsGetLabelCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LimitsGetLabelCall) Header

func (c *LimitsGetLabelCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*LimitsGetLabelCall) IfNoneMatch

func (c *LimitsGetLabelCall) IfNoneMatch(entityTag string) *LimitsGetLabelCall

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 (*LimitsGetLabelCall) Name

Name sets the optional parameter "name": Required. Label revision resource name Must be: "limits/label"

type LimitsService

type LimitsService struct {
	// contains filtered or unexported fields
}

func NewLimitsService

func NewLimitsService(s *Service) *LimitsService

func (*LimitsService) GetLabel

func (r *LimitsService) GetLabel() *LimitsGetLabelCall

GetLabel: Get the constraints on the structure of a Label; such as, the maximum number of Fields allowed and maximum length of the label title.

type Service

type Service struct {
	BasePath  string // API endpoint base URL
	UserAgent string // optional additional User-Agent fragment

	Labels *LabelsService

	Limits *LimitsService

	Users *UsersService
	// contains filtered or unexported fields
}

func New deprecated

func New(client *http.Client) (*Service, error)

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

func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error)

NewService creates a new Service.

type UsersGetCapabilitiesCall

type UsersGetCapabilitiesCall struct {
	// contains filtered or unexported fields
}

func (*UsersGetCapabilitiesCall) Context

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 (*UsersGetCapabilitiesCall) Customer

Customer sets the optional parameter "customer": The customer to scope this request to. For example: "customers/abcd1234". If unset, will return settings within the current customer.

func (*UsersGetCapabilitiesCall) Do

Do executes the "drivelabels.users.getCapabilities" call. Exactly one of *GoogleAppsDriveLabelsV2betaUserCapabilities or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleAppsDriveLabelsV2betaUserCapabilities.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 (*UsersGetCapabilitiesCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersGetCapabilitiesCall) Header

func (c *UsersGetCapabilitiesCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*UsersGetCapabilitiesCall) IfNoneMatch

func (c *UsersGetCapabilitiesCall) IfNoneMatch(entityTag string) *UsersGetCapabilitiesCall

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 UsersService

type UsersService struct {
	// contains filtered or unexported fields
}

func NewUsersService

func NewUsersService(s *Service) *UsersService

func (*UsersService) GetCapabilities

func (r *UsersService) GetCapabilities(name string) *UsersGetCapabilitiesCall

GetCapabilities: Gets the user capabilities.

  • name: The resource name of the user. Only "users/me/capabilities" is supported.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL