Documentation ¶
Overview ¶
Package cloudchannel provides access to the Cloud Channel API.
For product documentation, see: https://cloud.google.com/channel
Creating a client ¶
Usage example:
import "google.golang.org/api/cloudchannel/v1" ... ctx := context.Background() cloudchannelService, err := cloudchannel.NewService(ctx)
In this example, Google Application Default Credentials are used for authentication.
For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options ¶
To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
cloudchannelService, err := cloudchannel.NewService(ctx, option.WithAPIKey("AIza..."))
To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:
config := &oauth2.Config{...} // ... token, err := config.Exchange(ctx, ...) cloudchannelService, err := cloudchannel.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
See https://godoc.org/google.golang.org/api/option/ for details on options.
Index ¶
- Constants
- type AccountsChannelPartnerLinksCreateCall
- func (c *AccountsChannelPartnerLinksCreateCall) Context(ctx context.Context) *AccountsChannelPartnerLinksCreateCall
- func (c *AccountsChannelPartnerLinksCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1ChannelPartnerLink, error)
- func (c *AccountsChannelPartnerLinksCreateCall) Fields(s ...googleapi.Field) *AccountsChannelPartnerLinksCreateCall
- func (c *AccountsChannelPartnerLinksCreateCall) Header() http.Header
- type AccountsChannelPartnerLinksCustomersCreateCall
- func (c *AccountsChannelPartnerLinksCustomersCreateCall) Context(ctx context.Context) *AccountsChannelPartnerLinksCustomersCreateCall
- func (c *AccountsChannelPartnerLinksCustomersCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1Customer, error)
- func (c *AccountsChannelPartnerLinksCustomersCreateCall) Fields(s ...googleapi.Field) *AccountsChannelPartnerLinksCustomersCreateCall
- func (c *AccountsChannelPartnerLinksCustomersCreateCall) Header() http.Header
- type AccountsChannelPartnerLinksCustomersDeleteCall
- func (c *AccountsChannelPartnerLinksCustomersDeleteCall) Context(ctx context.Context) *AccountsChannelPartnerLinksCustomersDeleteCall
- func (c *AccountsChannelPartnerLinksCustomersDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
- func (c *AccountsChannelPartnerLinksCustomersDeleteCall) Fields(s ...googleapi.Field) *AccountsChannelPartnerLinksCustomersDeleteCall
- func (c *AccountsChannelPartnerLinksCustomersDeleteCall) Header() http.Header
- type AccountsChannelPartnerLinksCustomersGetCall
- func (c *AccountsChannelPartnerLinksCustomersGetCall) Context(ctx context.Context) *AccountsChannelPartnerLinksCustomersGetCall
- func (c *AccountsChannelPartnerLinksCustomersGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1Customer, error)
- func (c *AccountsChannelPartnerLinksCustomersGetCall) Fields(s ...googleapi.Field) *AccountsChannelPartnerLinksCustomersGetCall
- func (c *AccountsChannelPartnerLinksCustomersGetCall) Header() http.Header
- func (c *AccountsChannelPartnerLinksCustomersGetCall) IfNoneMatch(entityTag string) *AccountsChannelPartnerLinksCustomersGetCall
- type AccountsChannelPartnerLinksCustomersImportCall
- func (c *AccountsChannelPartnerLinksCustomersImportCall) Context(ctx context.Context) *AccountsChannelPartnerLinksCustomersImportCall
- func (c *AccountsChannelPartnerLinksCustomersImportCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1Customer, error)
- func (c *AccountsChannelPartnerLinksCustomersImportCall) Fields(s ...googleapi.Field) *AccountsChannelPartnerLinksCustomersImportCall
- func (c *AccountsChannelPartnerLinksCustomersImportCall) Header() http.Header
- type AccountsChannelPartnerLinksCustomersListCall
- func (c *AccountsChannelPartnerLinksCustomersListCall) Context(ctx context.Context) *AccountsChannelPartnerLinksCustomersListCall
- func (c *AccountsChannelPartnerLinksCustomersListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1ListCustomersResponse, error)
- func (c *AccountsChannelPartnerLinksCustomersListCall) Fields(s ...googleapi.Field) *AccountsChannelPartnerLinksCustomersListCall
- func (c *AccountsChannelPartnerLinksCustomersListCall) Filter(filter string) *AccountsChannelPartnerLinksCustomersListCall
- func (c *AccountsChannelPartnerLinksCustomersListCall) Header() http.Header
- func (c *AccountsChannelPartnerLinksCustomersListCall) IfNoneMatch(entityTag string) *AccountsChannelPartnerLinksCustomersListCall
- func (c *AccountsChannelPartnerLinksCustomersListCall) PageSize(pageSize int64) *AccountsChannelPartnerLinksCustomersListCall
- func (c *AccountsChannelPartnerLinksCustomersListCall) PageToken(pageToken string) *AccountsChannelPartnerLinksCustomersListCall
- func (c *AccountsChannelPartnerLinksCustomersListCall) Pages(ctx context.Context, f func(*GoogleCloudChannelV1ListCustomersResponse) error) error
- type AccountsChannelPartnerLinksCustomersPatchCall
- func (c *AccountsChannelPartnerLinksCustomersPatchCall) Context(ctx context.Context) *AccountsChannelPartnerLinksCustomersPatchCall
- func (c *AccountsChannelPartnerLinksCustomersPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1Customer, error)
- func (c *AccountsChannelPartnerLinksCustomersPatchCall) Fields(s ...googleapi.Field) *AccountsChannelPartnerLinksCustomersPatchCall
- func (c *AccountsChannelPartnerLinksCustomersPatchCall) Header() http.Header
- func (c *AccountsChannelPartnerLinksCustomersPatchCall) UpdateMask(updateMask string) *AccountsChannelPartnerLinksCustomersPatchCall
- type AccountsChannelPartnerLinksCustomersService
- func (r *AccountsChannelPartnerLinksCustomersService) Create(parent string, googlecloudchannelv1customer *GoogleCloudChannelV1Customer) *AccountsChannelPartnerLinksCustomersCreateCall
- func (r *AccountsChannelPartnerLinksCustomersService) Delete(name string) *AccountsChannelPartnerLinksCustomersDeleteCall
- func (r *AccountsChannelPartnerLinksCustomersService) Get(name string) *AccountsChannelPartnerLinksCustomersGetCall
- func (r *AccountsChannelPartnerLinksCustomersService) Import(parent string, ...) *AccountsChannelPartnerLinksCustomersImportCall
- func (r *AccountsChannelPartnerLinksCustomersService) List(parent string) *AccountsChannelPartnerLinksCustomersListCall
- func (r *AccountsChannelPartnerLinksCustomersService) Patch(name string, googlecloudchannelv1customer *GoogleCloudChannelV1Customer) *AccountsChannelPartnerLinksCustomersPatchCall
- type AccountsChannelPartnerLinksGetCall
- func (c *AccountsChannelPartnerLinksGetCall) Context(ctx context.Context) *AccountsChannelPartnerLinksGetCall
- func (c *AccountsChannelPartnerLinksGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1ChannelPartnerLink, error)
- func (c *AccountsChannelPartnerLinksGetCall) Fields(s ...googleapi.Field) *AccountsChannelPartnerLinksGetCall
- func (c *AccountsChannelPartnerLinksGetCall) Header() http.Header
- func (c *AccountsChannelPartnerLinksGetCall) IfNoneMatch(entityTag string) *AccountsChannelPartnerLinksGetCall
- func (c *AccountsChannelPartnerLinksGetCall) View(view string) *AccountsChannelPartnerLinksGetCall
- type AccountsChannelPartnerLinksListCall
- func (c *AccountsChannelPartnerLinksListCall) Context(ctx context.Context) *AccountsChannelPartnerLinksListCall
- func (c *AccountsChannelPartnerLinksListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1ListChannelPartnerLinksResponse, error)
- func (c *AccountsChannelPartnerLinksListCall) Fields(s ...googleapi.Field) *AccountsChannelPartnerLinksListCall
- func (c *AccountsChannelPartnerLinksListCall) Header() http.Header
- func (c *AccountsChannelPartnerLinksListCall) IfNoneMatch(entityTag string) *AccountsChannelPartnerLinksListCall
- func (c *AccountsChannelPartnerLinksListCall) PageSize(pageSize int64) *AccountsChannelPartnerLinksListCall
- func (c *AccountsChannelPartnerLinksListCall) PageToken(pageToken string) *AccountsChannelPartnerLinksListCall
- func (c *AccountsChannelPartnerLinksListCall) Pages(ctx context.Context, ...) error
- func (c *AccountsChannelPartnerLinksListCall) View(view string) *AccountsChannelPartnerLinksListCall
- type AccountsChannelPartnerLinksPatchCall
- func (c *AccountsChannelPartnerLinksPatchCall) Context(ctx context.Context) *AccountsChannelPartnerLinksPatchCall
- func (c *AccountsChannelPartnerLinksPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1ChannelPartnerLink, error)
- func (c *AccountsChannelPartnerLinksPatchCall) Fields(s ...googleapi.Field) *AccountsChannelPartnerLinksPatchCall
- func (c *AccountsChannelPartnerLinksPatchCall) Header() http.Header
- type AccountsChannelPartnerLinksService
- func (r *AccountsChannelPartnerLinksService) Create(parent string, ...) *AccountsChannelPartnerLinksCreateCall
- func (r *AccountsChannelPartnerLinksService) Get(name string) *AccountsChannelPartnerLinksGetCall
- func (r *AccountsChannelPartnerLinksService) List(parent string) *AccountsChannelPartnerLinksListCall
- func (r *AccountsChannelPartnerLinksService) Patch(name string, ...) *AccountsChannelPartnerLinksPatchCall
- type AccountsCheckCloudIdentityAccountsExistCall
- func (c *AccountsCheckCloudIdentityAccountsExistCall) Context(ctx context.Context) *AccountsCheckCloudIdentityAccountsExistCall
- func (c *AccountsCheckCloudIdentityAccountsExistCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1CheckCloudIdentityAccountsExistResponse, error)
- func (c *AccountsCheckCloudIdentityAccountsExistCall) Fields(s ...googleapi.Field) *AccountsCheckCloudIdentityAccountsExistCall
- func (c *AccountsCheckCloudIdentityAccountsExistCall) Header() http.Header
- type AccountsCustomersCreateCall
- func (c *AccountsCustomersCreateCall) Context(ctx context.Context) *AccountsCustomersCreateCall
- func (c *AccountsCustomersCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1Customer, error)
- func (c *AccountsCustomersCreateCall) Fields(s ...googleapi.Field) *AccountsCustomersCreateCall
- func (c *AccountsCustomersCreateCall) Header() http.Header
- type AccountsCustomersDeleteCall
- func (c *AccountsCustomersDeleteCall) Context(ctx context.Context) *AccountsCustomersDeleteCall
- func (c *AccountsCustomersDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
- func (c *AccountsCustomersDeleteCall) Fields(s ...googleapi.Field) *AccountsCustomersDeleteCall
- func (c *AccountsCustomersDeleteCall) Header() http.Header
- type AccountsCustomersEntitlementsActivateCall
- func (c *AccountsCustomersEntitlementsActivateCall) Context(ctx context.Context) *AccountsCustomersEntitlementsActivateCall
- func (c *AccountsCustomersEntitlementsActivateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
- func (c *AccountsCustomersEntitlementsActivateCall) Fields(s ...googleapi.Field) *AccountsCustomersEntitlementsActivateCall
- func (c *AccountsCustomersEntitlementsActivateCall) Header() http.Header
- type AccountsCustomersEntitlementsCancelCall
- func (c *AccountsCustomersEntitlementsCancelCall) Context(ctx context.Context) *AccountsCustomersEntitlementsCancelCall
- func (c *AccountsCustomersEntitlementsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
- func (c *AccountsCustomersEntitlementsCancelCall) Fields(s ...googleapi.Field) *AccountsCustomersEntitlementsCancelCall
- func (c *AccountsCustomersEntitlementsCancelCall) Header() http.Header
- type AccountsCustomersEntitlementsChangeOfferCall
- func (c *AccountsCustomersEntitlementsChangeOfferCall) Context(ctx context.Context) *AccountsCustomersEntitlementsChangeOfferCall
- func (c *AccountsCustomersEntitlementsChangeOfferCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
- func (c *AccountsCustomersEntitlementsChangeOfferCall) Fields(s ...googleapi.Field) *AccountsCustomersEntitlementsChangeOfferCall
- func (c *AccountsCustomersEntitlementsChangeOfferCall) Header() http.Header
- type AccountsCustomersEntitlementsChangeParametersCall
- func (c *AccountsCustomersEntitlementsChangeParametersCall) Context(ctx context.Context) *AccountsCustomersEntitlementsChangeParametersCall
- func (c *AccountsCustomersEntitlementsChangeParametersCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
- func (c *AccountsCustomersEntitlementsChangeParametersCall) Fields(s ...googleapi.Field) *AccountsCustomersEntitlementsChangeParametersCall
- func (c *AccountsCustomersEntitlementsChangeParametersCall) Header() http.Header
- type AccountsCustomersEntitlementsChangeRenewalSettingsCall
- func (c *AccountsCustomersEntitlementsChangeRenewalSettingsCall) Context(ctx context.Context) *AccountsCustomersEntitlementsChangeRenewalSettingsCall
- func (c *AccountsCustomersEntitlementsChangeRenewalSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
- func (c *AccountsCustomersEntitlementsChangeRenewalSettingsCall) Fields(s ...googleapi.Field) *AccountsCustomersEntitlementsChangeRenewalSettingsCall
- func (c *AccountsCustomersEntitlementsChangeRenewalSettingsCall) Header() http.Header
- type AccountsCustomersEntitlementsCreateCall
- func (c *AccountsCustomersEntitlementsCreateCall) Context(ctx context.Context) *AccountsCustomersEntitlementsCreateCall
- func (c *AccountsCustomersEntitlementsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
- func (c *AccountsCustomersEntitlementsCreateCall) Fields(s ...googleapi.Field) *AccountsCustomersEntitlementsCreateCall
- func (c *AccountsCustomersEntitlementsCreateCall) Header() http.Header
- type AccountsCustomersEntitlementsGetCall
- func (c *AccountsCustomersEntitlementsGetCall) Context(ctx context.Context) *AccountsCustomersEntitlementsGetCall
- func (c *AccountsCustomersEntitlementsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1Entitlement, error)
- func (c *AccountsCustomersEntitlementsGetCall) Fields(s ...googleapi.Field) *AccountsCustomersEntitlementsGetCall
- func (c *AccountsCustomersEntitlementsGetCall) Header() http.Header
- func (c *AccountsCustomersEntitlementsGetCall) IfNoneMatch(entityTag string) *AccountsCustomersEntitlementsGetCall
- type AccountsCustomersEntitlementsListCall
- func (c *AccountsCustomersEntitlementsListCall) Context(ctx context.Context) *AccountsCustomersEntitlementsListCall
- func (c *AccountsCustomersEntitlementsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1ListEntitlementsResponse, error)
- func (c *AccountsCustomersEntitlementsListCall) Fields(s ...googleapi.Field) *AccountsCustomersEntitlementsListCall
- func (c *AccountsCustomersEntitlementsListCall) Header() http.Header
- func (c *AccountsCustomersEntitlementsListCall) IfNoneMatch(entityTag string) *AccountsCustomersEntitlementsListCall
- func (c *AccountsCustomersEntitlementsListCall) PageSize(pageSize int64) *AccountsCustomersEntitlementsListCall
- func (c *AccountsCustomersEntitlementsListCall) PageToken(pageToken string) *AccountsCustomersEntitlementsListCall
- func (c *AccountsCustomersEntitlementsListCall) Pages(ctx context.Context, ...) error
- type AccountsCustomersEntitlementsLookupOfferCall
- func (c *AccountsCustomersEntitlementsLookupOfferCall) Context(ctx context.Context) *AccountsCustomersEntitlementsLookupOfferCall
- func (c *AccountsCustomersEntitlementsLookupOfferCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1Offer, error)
- func (c *AccountsCustomersEntitlementsLookupOfferCall) Fields(s ...googleapi.Field) *AccountsCustomersEntitlementsLookupOfferCall
- func (c *AccountsCustomersEntitlementsLookupOfferCall) Header() http.Header
- func (c *AccountsCustomersEntitlementsLookupOfferCall) IfNoneMatch(entityTag string) *AccountsCustomersEntitlementsLookupOfferCall
- type AccountsCustomersEntitlementsService
- func (r *AccountsCustomersEntitlementsService) Activate(name string, ...) *AccountsCustomersEntitlementsActivateCall
- func (r *AccountsCustomersEntitlementsService) Cancel(name string, ...) *AccountsCustomersEntitlementsCancelCall
- func (r *AccountsCustomersEntitlementsService) ChangeOffer(name string, ...) *AccountsCustomersEntitlementsChangeOfferCall
- func (r *AccountsCustomersEntitlementsService) ChangeParameters(name string, ...) *AccountsCustomersEntitlementsChangeParametersCall
- func (r *AccountsCustomersEntitlementsService) ChangeRenewalSettings(name string, ...) *AccountsCustomersEntitlementsChangeRenewalSettingsCall
- func (r *AccountsCustomersEntitlementsService) Create(parent string, ...) *AccountsCustomersEntitlementsCreateCall
- func (r *AccountsCustomersEntitlementsService) Get(name string) *AccountsCustomersEntitlementsGetCall
- func (r *AccountsCustomersEntitlementsService) List(parent string) *AccountsCustomersEntitlementsListCall
- func (r *AccountsCustomersEntitlementsService) LookupOffer(entitlement string) *AccountsCustomersEntitlementsLookupOfferCall
- func (r *AccountsCustomersEntitlementsService) StartPaidService(name string, ...) *AccountsCustomersEntitlementsStartPaidServiceCall
- func (r *AccountsCustomersEntitlementsService) Suspend(name string, ...) *AccountsCustomersEntitlementsSuspendCall
- type AccountsCustomersEntitlementsStartPaidServiceCall
- func (c *AccountsCustomersEntitlementsStartPaidServiceCall) Context(ctx context.Context) *AccountsCustomersEntitlementsStartPaidServiceCall
- func (c *AccountsCustomersEntitlementsStartPaidServiceCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
- func (c *AccountsCustomersEntitlementsStartPaidServiceCall) Fields(s ...googleapi.Field) *AccountsCustomersEntitlementsStartPaidServiceCall
- func (c *AccountsCustomersEntitlementsStartPaidServiceCall) Header() http.Header
- type AccountsCustomersEntitlementsSuspendCall
- func (c *AccountsCustomersEntitlementsSuspendCall) Context(ctx context.Context) *AccountsCustomersEntitlementsSuspendCall
- func (c *AccountsCustomersEntitlementsSuspendCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
- func (c *AccountsCustomersEntitlementsSuspendCall) Fields(s ...googleapi.Field) *AccountsCustomersEntitlementsSuspendCall
- func (c *AccountsCustomersEntitlementsSuspendCall) Header() http.Header
- type AccountsCustomersGetCall
- func (c *AccountsCustomersGetCall) Context(ctx context.Context) *AccountsCustomersGetCall
- func (c *AccountsCustomersGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1Customer, error)
- func (c *AccountsCustomersGetCall) Fields(s ...googleapi.Field) *AccountsCustomersGetCall
- func (c *AccountsCustomersGetCall) Header() http.Header
- func (c *AccountsCustomersGetCall) IfNoneMatch(entityTag string) *AccountsCustomersGetCall
- type AccountsCustomersImportCall
- func (c *AccountsCustomersImportCall) Context(ctx context.Context) *AccountsCustomersImportCall
- func (c *AccountsCustomersImportCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1Customer, error)
- func (c *AccountsCustomersImportCall) Fields(s ...googleapi.Field) *AccountsCustomersImportCall
- func (c *AccountsCustomersImportCall) Header() http.Header
- type AccountsCustomersListCall
- func (c *AccountsCustomersListCall) Context(ctx context.Context) *AccountsCustomersListCall
- func (c *AccountsCustomersListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1ListCustomersResponse, error)
- func (c *AccountsCustomersListCall) Fields(s ...googleapi.Field) *AccountsCustomersListCall
- func (c *AccountsCustomersListCall) Filter(filter string) *AccountsCustomersListCall
- func (c *AccountsCustomersListCall) Header() http.Header
- func (c *AccountsCustomersListCall) IfNoneMatch(entityTag string) *AccountsCustomersListCall
- func (c *AccountsCustomersListCall) PageSize(pageSize int64) *AccountsCustomersListCall
- func (c *AccountsCustomersListCall) PageToken(pageToken string) *AccountsCustomersListCall
- func (c *AccountsCustomersListCall) Pages(ctx context.Context, f func(*GoogleCloudChannelV1ListCustomersResponse) error) error
- type AccountsCustomersListPurchasableOffersCall
- func (c *AccountsCustomersListPurchasableOffersCall) ChangeOfferPurchaseEntitlement(changeOfferPurchaseEntitlement string) *AccountsCustomersListPurchasableOffersCall
- func (c *AccountsCustomersListPurchasableOffersCall) ChangeOfferPurchaseNewSku(changeOfferPurchaseNewSku string) *AccountsCustomersListPurchasableOffersCall
- func (c *AccountsCustomersListPurchasableOffersCall) Context(ctx context.Context) *AccountsCustomersListPurchasableOffersCall
- func (c *AccountsCustomersListPurchasableOffersCall) CreateEntitlementPurchaseSku(createEntitlementPurchaseSku string) *AccountsCustomersListPurchasableOffersCall
- func (c *AccountsCustomersListPurchasableOffersCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1ListPurchasableOffersResponse, error)
- func (c *AccountsCustomersListPurchasableOffersCall) Fields(s ...googleapi.Field) *AccountsCustomersListPurchasableOffersCall
- func (c *AccountsCustomersListPurchasableOffersCall) Header() http.Header
- func (c *AccountsCustomersListPurchasableOffersCall) IfNoneMatch(entityTag string) *AccountsCustomersListPurchasableOffersCall
- func (c *AccountsCustomersListPurchasableOffersCall) LanguageCode(languageCode string) *AccountsCustomersListPurchasableOffersCall
- func (c *AccountsCustomersListPurchasableOffersCall) PageSize(pageSize int64) *AccountsCustomersListPurchasableOffersCall
- func (c *AccountsCustomersListPurchasableOffersCall) PageToken(pageToken string) *AccountsCustomersListPurchasableOffersCall
- func (c *AccountsCustomersListPurchasableOffersCall) Pages(ctx context.Context, ...) error
- type AccountsCustomersListPurchasableSkusCall
- func (c *AccountsCustomersListPurchasableSkusCall) ChangeOfferPurchaseChangeType(changeOfferPurchaseChangeType string) *AccountsCustomersListPurchasableSkusCall
- func (c *AccountsCustomersListPurchasableSkusCall) ChangeOfferPurchaseEntitlement(changeOfferPurchaseEntitlement string) *AccountsCustomersListPurchasableSkusCall
- func (c *AccountsCustomersListPurchasableSkusCall) Context(ctx context.Context) *AccountsCustomersListPurchasableSkusCall
- func (c *AccountsCustomersListPurchasableSkusCall) CreateEntitlementPurchaseProduct(createEntitlementPurchaseProduct string) *AccountsCustomersListPurchasableSkusCall
- func (c *AccountsCustomersListPurchasableSkusCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1ListPurchasableSkusResponse, error)
- func (c *AccountsCustomersListPurchasableSkusCall) Fields(s ...googleapi.Field) *AccountsCustomersListPurchasableSkusCall
- func (c *AccountsCustomersListPurchasableSkusCall) Header() http.Header
- func (c *AccountsCustomersListPurchasableSkusCall) IfNoneMatch(entityTag string) *AccountsCustomersListPurchasableSkusCall
- func (c *AccountsCustomersListPurchasableSkusCall) LanguageCode(languageCode string) *AccountsCustomersListPurchasableSkusCall
- func (c *AccountsCustomersListPurchasableSkusCall) PageSize(pageSize int64) *AccountsCustomersListPurchasableSkusCall
- func (c *AccountsCustomersListPurchasableSkusCall) PageToken(pageToken string) *AccountsCustomersListPurchasableSkusCall
- func (c *AccountsCustomersListPurchasableSkusCall) Pages(ctx context.Context, ...) error
- type AccountsCustomersPatchCall
- func (c *AccountsCustomersPatchCall) Context(ctx context.Context) *AccountsCustomersPatchCall
- func (c *AccountsCustomersPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1Customer, error)
- func (c *AccountsCustomersPatchCall) Fields(s ...googleapi.Field) *AccountsCustomersPatchCall
- func (c *AccountsCustomersPatchCall) Header() http.Header
- func (c *AccountsCustomersPatchCall) UpdateMask(updateMask string) *AccountsCustomersPatchCall
- type AccountsCustomersProvisionCloudIdentityCall
- func (c *AccountsCustomersProvisionCloudIdentityCall) Context(ctx context.Context) *AccountsCustomersProvisionCloudIdentityCall
- func (c *AccountsCustomersProvisionCloudIdentityCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
- func (c *AccountsCustomersProvisionCloudIdentityCall) Fields(s ...googleapi.Field) *AccountsCustomersProvisionCloudIdentityCall
- func (c *AccountsCustomersProvisionCloudIdentityCall) Header() http.Header
- type AccountsCustomersService
- func (r *AccountsCustomersService) Create(parent string, googlecloudchannelv1customer *GoogleCloudChannelV1Customer) *AccountsCustomersCreateCall
- func (r *AccountsCustomersService) Delete(name string) *AccountsCustomersDeleteCall
- func (r *AccountsCustomersService) Get(name string) *AccountsCustomersGetCall
- func (r *AccountsCustomersService) Import(parent string, ...) *AccountsCustomersImportCall
- func (r *AccountsCustomersService) List(parent string) *AccountsCustomersListCall
- func (r *AccountsCustomersService) ListPurchasableOffers(customer string) *AccountsCustomersListPurchasableOffersCall
- func (r *AccountsCustomersService) ListPurchasableSkus(customer string) *AccountsCustomersListPurchasableSkusCall
- func (r *AccountsCustomersService) Patch(name string, googlecloudchannelv1customer *GoogleCloudChannelV1Customer) *AccountsCustomersPatchCall
- func (r *AccountsCustomersService) ProvisionCloudIdentity(customer string, ...) *AccountsCustomersProvisionCloudIdentityCall
- func (r *AccountsCustomersService) TransferEntitlements(parent string, ...) *AccountsCustomersTransferEntitlementsCall
- func (r *AccountsCustomersService) TransferEntitlementsToGoogle(parent string, ...) *AccountsCustomersTransferEntitlementsToGoogleCall
- type AccountsCustomersTransferEntitlementsCall
- func (c *AccountsCustomersTransferEntitlementsCall) Context(ctx context.Context) *AccountsCustomersTransferEntitlementsCall
- func (c *AccountsCustomersTransferEntitlementsCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
- func (c *AccountsCustomersTransferEntitlementsCall) Fields(s ...googleapi.Field) *AccountsCustomersTransferEntitlementsCall
- func (c *AccountsCustomersTransferEntitlementsCall) Header() http.Header
- type AccountsCustomersTransferEntitlementsToGoogleCall
- func (c *AccountsCustomersTransferEntitlementsToGoogleCall) Context(ctx context.Context) *AccountsCustomersTransferEntitlementsToGoogleCall
- func (c *AccountsCustomersTransferEntitlementsToGoogleCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
- func (c *AccountsCustomersTransferEntitlementsToGoogleCall) Fields(s ...googleapi.Field) *AccountsCustomersTransferEntitlementsToGoogleCall
- func (c *AccountsCustomersTransferEntitlementsToGoogleCall) Header() http.Header
- type AccountsListSubscribersCall
- func (c *AccountsListSubscribersCall) Context(ctx context.Context) *AccountsListSubscribersCall
- func (c *AccountsListSubscribersCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1ListSubscribersResponse, error)
- func (c *AccountsListSubscribersCall) Fields(s ...googleapi.Field) *AccountsListSubscribersCall
- func (c *AccountsListSubscribersCall) Header() http.Header
- func (c *AccountsListSubscribersCall) IfNoneMatch(entityTag string) *AccountsListSubscribersCall
- func (c *AccountsListSubscribersCall) PageSize(pageSize int64) *AccountsListSubscribersCall
- func (c *AccountsListSubscribersCall) PageToken(pageToken string) *AccountsListSubscribersCall
- func (c *AccountsListSubscribersCall) Pages(ctx context.Context, ...) error
- type AccountsListTransferableOffersCall
- func (c *AccountsListTransferableOffersCall) Context(ctx context.Context) *AccountsListTransferableOffersCall
- func (c *AccountsListTransferableOffersCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1ListTransferableOffersResponse, error)
- func (c *AccountsListTransferableOffersCall) Fields(s ...googleapi.Field) *AccountsListTransferableOffersCall
- func (c *AccountsListTransferableOffersCall) Header() http.Header
- func (c *AccountsListTransferableOffersCall) Pages(ctx context.Context, ...) error
- type AccountsListTransferableSkusCall
- func (c *AccountsListTransferableSkusCall) Context(ctx context.Context) *AccountsListTransferableSkusCall
- func (c *AccountsListTransferableSkusCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1ListTransferableSkusResponse, error)
- func (c *AccountsListTransferableSkusCall) Fields(s ...googleapi.Field) *AccountsListTransferableSkusCall
- func (c *AccountsListTransferableSkusCall) Header() http.Header
- func (c *AccountsListTransferableSkusCall) Pages(ctx context.Context, ...) error
- type AccountsOffersListCall
- func (c *AccountsOffersListCall) Context(ctx context.Context) *AccountsOffersListCall
- func (c *AccountsOffersListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1ListOffersResponse, error)
- func (c *AccountsOffersListCall) Fields(s ...googleapi.Field) *AccountsOffersListCall
- func (c *AccountsOffersListCall) Filter(filter string) *AccountsOffersListCall
- func (c *AccountsOffersListCall) Header() http.Header
- func (c *AccountsOffersListCall) IfNoneMatch(entityTag string) *AccountsOffersListCall
- func (c *AccountsOffersListCall) LanguageCode(languageCode string) *AccountsOffersListCall
- func (c *AccountsOffersListCall) PageSize(pageSize int64) *AccountsOffersListCall
- func (c *AccountsOffersListCall) PageToken(pageToken string) *AccountsOffersListCall
- func (c *AccountsOffersListCall) Pages(ctx context.Context, f func(*GoogleCloudChannelV1ListOffersResponse) error) error
- type AccountsOffersService
- type AccountsRegisterCall
- func (c *AccountsRegisterCall) Context(ctx context.Context) *AccountsRegisterCall
- func (c *AccountsRegisterCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1RegisterSubscriberResponse, error)
- func (c *AccountsRegisterCall) Fields(s ...googleapi.Field) *AccountsRegisterCall
- func (c *AccountsRegisterCall) Header() http.Header
- type AccountsService
- func (r *AccountsService) CheckCloudIdentityAccountsExist(parent string, ...) *AccountsCheckCloudIdentityAccountsExistCall
- func (r *AccountsService) ListSubscribers(account string) *AccountsListSubscribersCall
- func (r *AccountsService) ListTransferableOffers(parent string, ...) *AccountsListTransferableOffersCall
- func (r *AccountsService) ListTransferableSkus(parent string, ...) *AccountsListTransferableSkusCall
- func (r *AccountsService) Register(account string, ...) *AccountsRegisterCall
- func (r *AccountsService) Unregister(account string, ...) *AccountsUnregisterCall
- type AccountsUnregisterCall
- func (c *AccountsUnregisterCall) Context(ctx context.Context) *AccountsUnregisterCall
- func (c *AccountsUnregisterCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1UnregisterSubscriberResponse, error)
- func (c *AccountsUnregisterCall) Fields(s ...googleapi.Field) *AccountsUnregisterCall
- func (c *AccountsUnregisterCall) Header() http.Header
- type GoogleCloudChannelV1ActivateEntitlementRequest
- type GoogleCloudChannelV1AdminUser
- type GoogleCloudChannelV1AssociationInfo
- type GoogleCloudChannelV1CancelEntitlementRequest
- type GoogleCloudChannelV1ChangeOfferRequest
- type GoogleCloudChannelV1ChangeParametersRequest
- type GoogleCloudChannelV1ChangeRenewalSettingsRequest
- type GoogleCloudChannelV1ChannelPartnerLink
- type GoogleCloudChannelV1CheckCloudIdentityAccountsExistRequest
- type GoogleCloudChannelV1CheckCloudIdentityAccountsExistResponse
- type GoogleCloudChannelV1CloudIdentityCustomerAccount
- type GoogleCloudChannelV1CloudIdentityInfo
- type GoogleCloudChannelV1CommitmentSettings
- type GoogleCloudChannelV1Constraints
- type GoogleCloudChannelV1ContactInfo
- type GoogleCloudChannelV1CreateEntitlementRequest
- type GoogleCloudChannelV1Customer
- type GoogleCloudChannelV1CustomerConstraints
- type GoogleCloudChannelV1CustomerEvent
- type GoogleCloudChannelV1EduData
- type GoogleCloudChannelV1Entitlement
- type GoogleCloudChannelV1EntitlementEvent
- type GoogleCloudChannelV1ImportCustomerRequest
- type GoogleCloudChannelV1ListChannelPartnerLinksResponse
- type GoogleCloudChannelV1ListCustomersResponse
- type GoogleCloudChannelV1ListEntitlementsResponse
- type GoogleCloudChannelV1ListOffersResponse
- type GoogleCloudChannelV1ListProductsResponse
- type GoogleCloudChannelV1ListPurchasableOffersResponse
- type GoogleCloudChannelV1ListPurchasableSkusResponse
- type GoogleCloudChannelV1ListSkusResponse
- type GoogleCloudChannelV1ListSubscribersResponse
- type GoogleCloudChannelV1ListTransferableOffersRequest
- type GoogleCloudChannelV1ListTransferableOffersResponse
- type GoogleCloudChannelV1ListTransferableSkusRequest
- type GoogleCloudChannelV1ListTransferableSkusResponse
- type GoogleCloudChannelV1MarketingInfo
- type GoogleCloudChannelV1Media
- type GoogleCloudChannelV1Offer
- type GoogleCloudChannelV1OperationMetadata
- type GoogleCloudChannelV1Parameter
- type GoogleCloudChannelV1ParameterDefinition
- type GoogleCloudChannelV1Period
- type GoogleCloudChannelV1Plan
- type GoogleCloudChannelV1Price
- type GoogleCloudChannelV1PriceByResource
- type GoogleCloudChannelV1PricePhase
- type GoogleCloudChannelV1PriceTier
- type GoogleCloudChannelV1Product
- type GoogleCloudChannelV1ProvisionCloudIdentityRequest
- type GoogleCloudChannelV1ProvisionedService
- type GoogleCloudChannelV1PurchasableOffer
- type GoogleCloudChannelV1PurchasableSku
- type GoogleCloudChannelV1RegisterSubscriberRequest
- type GoogleCloudChannelV1RegisterSubscriberResponse
- type GoogleCloudChannelV1RenewalSettings
- type GoogleCloudChannelV1Sku
- type GoogleCloudChannelV1StartPaidServiceRequest
- type GoogleCloudChannelV1SubscriberEvent
- type GoogleCloudChannelV1SuspendEntitlementRequest
- type GoogleCloudChannelV1TransferEligibility
- type GoogleCloudChannelV1TransferEntitlementsRequest
- type GoogleCloudChannelV1TransferEntitlementsResponse
- type GoogleCloudChannelV1TransferEntitlementsToGoogleRequest
- type GoogleCloudChannelV1TransferableOffer
- type GoogleCloudChannelV1TransferableSku
- type GoogleCloudChannelV1TrialSettings
- type GoogleCloudChannelV1UnregisterSubscriberRequest
- type GoogleCloudChannelV1UnregisterSubscriberResponse
- type GoogleCloudChannelV1UpdateChannelPartnerLinkRequest
- type GoogleCloudChannelV1Value
- type GoogleCloudChannelV1alpha1AssociationInfo
- type GoogleCloudChannelV1alpha1CommitmentSettings
- type GoogleCloudChannelV1alpha1CustomerEvent
- type GoogleCloudChannelV1alpha1Entitlement
- type GoogleCloudChannelV1alpha1EntitlementEvent
- type GoogleCloudChannelV1alpha1OperationMetadata
- type GoogleCloudChannelV1alpha1Parameter
- type GoogleCloudChannelV1alpha1Period
- type GoogleCloudChannelV1alpha1ProvisionedService
- type GoogleCloudChannelV1alpha1RenewalSettings
- type GoogleCloudChannelV1alpha1SubscriberEvent
- type GoogleCloudChannelV1alpha1TransferEntitlementsResponse
- type GoogleCloudChannelV1alpha1TrialSettings
- type GoogleCloudChannelV1alpha1Value
- type GoogleLongrunningCancelOperationRequest
- type GoogleLongrunningListOperationsResponse
- type GoogleLongrunningOperation
- type GoogleProtobufEmpty
- type GoogleRpcStatus
- type GoogleTypeMoney
- type GoogleTypePostalAddress
- type OperationsCancelCall
- func (c *OperationsCancelCall) Context(ctx context.Context) *OperationsCancelCall
- func (c *OperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
- func (c *OperationsCancelCall) Fields(s ...googleapi.Field) *OperationsCancelCall
- func (c *OperationsCancelCall) Header() http.Header
- type OperationsDeleteCall
- func (c *OperationsDeleteCall) Context(ctx context.Context) *OperationsDeleteCall
- func (c *OperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
- func (c *OperationsDeleteCall) Fields(s ...googleapi.Field) *OperationsDeleteCall
- func (c *OperationsDeleteCall) Header() http.Header
- type OperationsGetCall
- func (c *OperationsGetCall) Context(ctx context.Context) *OperationsGetCall
- func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
- func (c *OperationsGetCall) Fields(s ...googleapi.Field) *OperationsGetCall
- func (c *OperationsGetCall) Header() http.Header
- func (c *OperationsGetCall) IfNoneMatch(entityTag string) *OperationsGetCall
- type OperationsListCall
- func (c *OperationsListCall) Context(ctx context.Context) *OperationsListCall
- func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error)
- func (c *OperationsListCall) Fields(s ...googleapi.Field) *OperationsListCall
- func (c *OperationsListCall) Filter(filter string) *OperationsListCall
- func (c *OperationsListCall) Header() http.Header
- func (c *OperationsListCall) IfNoneMatch(entityTag string) *OperationsListCall
- func (c *OperationsListCall) PageSize(pageSize int64) *OperationsListCall
- func (c *OperationsListCall) PageToken(pageToken string) *OperationsListCall
- func (c *OperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error
- type OperationsService
- type ProductsListCall
- func (c *ProductsListCall) Account(account string) *ProductsListCall
- func (c *ProductsListCall) Context(ctx context.Context) *ProductsListCall
- func (c *ProductsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1ListProductsResponse, error)
- func (c *ProductsListCall) Fields(s ...googleapi.Field) *ProductsListCall
- func (c *ProductsListCall) Header() http.Header
- func (c *ProductsListCall) IfNoneMatch(entityTag string) *ProductsListCall
- func (c *ProductsListCall) LanguageCode(languageCode string) *ProductsListCall
- func (c *ProductsListCall) PageSize(pageSize int64) *ProductsListCall
- func (c *ProductsListCall) PageToken(pageToken string) *ProductsListCall
- func (c *ProductsListCall) Pages(ctx context.Context, f func(*GoogleCloudChannelV1ListProductsResponse) error) error
- type ProductsService
- type ProductsSkusListCall
- func (c *ProductsSkusListCall) Account(account string) *ProductsSkusListCall
- func (c *ProductsSkusListCall) Context(ctx context.Context) *ProductsSkusListCall
- func (c *ProductsSkusListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1ListSkusResponse, error)
- func (c *ProductsSkusListCall) Fields(s ...googleapi.Field) *ProductsSkusListCall
- func (c *ProductsSkusListCall) Header() http.Header
- func (c *ProductsSkusListCall) IfNoneMatch(entityTag string) *ProductsSkusListCall
- func (c *ProductsSkusListCall) LanguageCode(languageCode string) *ProductsSkusListCall
- func (c *ProductsSkusListCall) PageSize(pageSize int64) *ProductsSkusListCall
- func (c *ProductsSkusListCall) PageToken(pageToken string) *ProductsSkusListCall
- func (c *ProductsSkusListCall) Pages(ctx context.Context, f func(*GoogleCloudChannelV1ListSkusResponse) error) error
- type ProductsSkusService
- type Service
Constants ¶
const (
// Manage users on your domain
AppsOrderScope = "https://www.googleapis.com/auth/apps.order"
)
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountsChannelPartnerLinksCreateCall ¶
type AccountsChannelPartnerLinksCreateCall struct {
// contains filtered or unexported fields
}
func (*AccountsChannelPartnerLinksCreateCall) Context ¶
func (c *AccountsChannelPartnerLinksCreateCall) Context(ctx context.Context) *AccountsChannelPartnerLinksCreateCall
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 (*AccountsChannelPartnerLinksCreateCall) Do ¶
func (c *AccountsChannelPartnerLinksCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1ChannelPartnerLink, error)
Do executes the "cloudchannel.accounts.channelPartnerLinks.create" call. Exactly one of *GoogleCloudChannelV1ChannelPartnerLink or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudChannelV1ChannelPartnerLink.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 (*AccountsChannelPartnerLinksCreateCall) Fields ¶
func (c *AccountsChannelPartnerLinksCreateCall) Fields(s ...googleapi.Field) *AccountsChannelPartnerLinksCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsChannelPartnerLinksCreateCall) Header ¶
func (c *AccountsChannelPartnerLinksCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AccountsChannelPartnerLinksCustomersCreateCall ¶ added in v0.43.0
type AccountsChannelPartnerLinksCustomersCreateCall struct {
// contains filtered or unexported fields
}
func (*AccountsChannelPartnerLinksCustomersCreateCall) Context ¶ added in v0.43.0
func (c *AccountsChannelPartnerLinksCustomersCreateCall) Context(ctx context.Context) *AccountsChannelPartnerLinksCustomersCreateCall
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 (*AccountsChannelPartnerLinksCustomersCreateCall) Do ¶ added in v0.43.0
func (c *AccountsChannelPartnerLinksCustomersCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1Customer, error)
Do executes the "cloudchannel.accounts.channelPartnerLinks.customers.create" call. Exactly one of *GoogleCloudChannelV1Customer or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudChannelV1Customer.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 (*AccountsChannelPartnerLinksCustomersCreateCall) Fields ¶ added in v0.43.0
func (c *AccountsChannelPartnerLinksCustomersCreateCall) Fields(s ...googleapi.Field) *AccountsChannelPartnerLinksCustomersCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsChannelPartnerLinksCustomersCreateCall) Header ¶ added in v0.43.0
func (c *AccountsChannelPartnerLinksCustomersCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AccountsChannelPartnerLinksCustomersDeleteCall ¶ added in v0.43.0
type AccountsChannelPartnerLinksCustomersDeleteCall struct {
// contains filtered or unexported fields
}
func (*AccountsChannelPartnerLinksCustomersDeleteCall) Context ¶ added in v0.43.0
func (c *AccountsChannelPartnerLinksCustomersDeleteCall) Context(ctx context.Context) *AccountsChannelPartnerLinksCustomersDeleteCall
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 (*AccountsChannelPartnerLinksCustomersDeleteCall) Do ¶ added in v0.43.0
func (c *AccountsChannelPartnerLinksCustomersDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
Do executes the "cloudchannel.accounts.channelPartnerLinks.customers.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 (*AccountsChannelPartnerLinksCustomersDeleteCall) Fields ¶ added in v0.43.0
func (c *AccountsChannelPartnerLinksCustomersDeleteCall) Fields(s ...googleapi.Field) *AccountsChannelPartnerLinksCustomersDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsChannelPartnerLinksCustomersDeleteCall) Header ¶ added in v0.43.0
func (c *AccountsChannelPartnerLinksCustomersDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AccountsChannelPartnerLinksCustomersGetCall ¶ added in v0.43.0
type AccountsChannelPartnerLinksCustomersGetCall struct {
// contains filtered or unexported fields
}
func (*AccountsChannelPartnerLinksCustomersGetCall) Context ¶ added in v0.43.0
func (c *AccountsChannelPartnerLinksCustomersGetCall) Context(ctx context.Context) *AccountsChannelPartnerLinksCustomersGetCall
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 (*AccountsChannelPartnerLinksCustomersGetCall) Do ¶ added in v0.43.0
func (c *AccountsChannelPartnerLinksCustomersGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1Customer, error)
Do executes the "cloudchannel.accounts.channelPartnerLinks.customers.get" call. Exactly one of *GoogleCloudChannelV1Customer or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudChannelV1Customer.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 (*AccountsChannelPartnerLinksCustomersGetCall) Fields ¶ added in v0.43.0
func (c *AccountsChannelPartnerLinksCustomersGetCall) Fields(s ...googleapi.Field) *AccountsChannelPartnerLinksCustomersGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsChannelPartnerLinksCustomersGetCall) Header ¶ added in v0.43.0
func (c *AccountsChannelPartnerLinksCustomersGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AccountsChannelPartnerLinksCustomersGetCall) IfNoneMatch ¶ added in v0.43.0
func (c *AccountsChannelPartnerLinksCustomersGetCall) IfNoneMatch(entityTag string) *AccountsChannelPartnerLinksCustomersGetCall
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 AccountsChannelPartnerLinksCustomersImportCall ¶ added in v0.53.0
type AccountsChannelPartnerLinksCustomersImportCall struct {
// contains filtered or unexported fields
}
func (*AccountsChannelPartnerLinksCustomersImportCall) Context ¶ added in v0.53.0
func (c *AccountsChannelPartnerLinksCustomersImportCall) Context(ctx context.Context) *AccountsChannelPartnerLinksCustomersImportCall
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 (*AccountsChannelPartnerLinksCustomersImportCall) Do ¶ added in v0.53.0
func (c *AccountsChannelPartnerLinksCustomersImportCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1Customer, error)
Do executes the "cloudchannel.accounts.channelPartnerLinks.customers.import" call. Exactly one of *GoogleCloudChannelV1Customer or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudChannelV1Customer.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 (*AccountsChannelPartnerLinksCustomersImportCall) Fields ¶ added in v0.53.0
func (c *AccountsChannelPartnerLinksCustomersImportCall) Fields(s ...googleapi.Field) *AccountsChannelPartnerLinksCustomersImportCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsChannelPartnerLinksCustomersImportCall) Header ¶ added in v0.53.0
func (c *AccountsChannelPartnerLinksCustomersImportCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AccountsChannelPartnerLinksCustomersListCall ¶ added in v0.43.0
type AccountsChannelPartnerLinksCustomersListCall struct {
// contains filtered or unexported fields
}
func (*AccountsChannelPartnerLinksCustomersListCall) Context ¶ added in v0.43.0
func (c *AccountsChannelPartnerLinksCustomersListCall) Context(ctx context.Context) *AccountsChannelPartnerLinksCustomersListCall
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 (*AccountsChannelPartnerLinksCustomersListCall) Do ¶ added in v0.43.0
func (c *AccountsChannelPartnerLinksCustomersListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1ListCustomersResponse, error)
Do executes the "cloudchannel.accounts.channelPartnerLinks.customers.list" call. Exactly one of *GoogleCloudChannelV1ListCustomersResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudChannelV1ListCustomersResponse.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 (*AccountsChannelPartnerLinksCustomersListCall) Fields ¶ added in v0.43.0
func (c *AccountsChannelPartnerLinksCustomersListCall) Fields(s ...googleapi.Field) *AccountsChannelPartnerLinksCustomersListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsChannelPartnerLinksCustomersListCall) Filter ¶ added in v0.69.0
func (c *AccountsChannelPartnerLinksCustomersListCall) Filter(filter string) *AccountsChannelPartnerLinksCustomersListCall
Filter sets the optional parameter "filter": Filters applied to the [CloudChannelService.ListCustomers] results. See https://cloud.google.com/channel/docs/concepts/google-cloud/filter-customers for more information.
func (*AccountsChannelPartnerLinksCustomersListCall) Header ¶ added in v0.43.0
func (c *AccountsChannelPartnerLinksCustomersListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AccountsChannelPartnerLinksCustomersListCall) IfNoneMatch ¶ added in v0.43.0
func (c *AccountsChannelPartnerLinksCustomersListCall) IfNoneMatch(entityTag string) *AccountsChannelPartnerLinksCustomersListCall
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 (*AccountsChannelPartnerLinksCustomersListCall) PageSize ¶ added in v0.43.0
func (c *AccountsChannelPartnerLinksCustomersListCall) PageSize(pageSize int64) *AccountsChannelPartnerLinksCustomersListCall
PageSize sets the optional parameter "pageSize": The maximum number of customers to return. The service may return fewer than this value. If unspecified, returns at most 10 customers. The maximum value is 50.
func (*AccountsChannelPartnerLinksCustomersListCall) PageToken ¶ added in v0.43.0
func (c *AccountsChannelPartnerLinksCustomersListCall) PageToken(pageToken string) *AccountsChannelPartnerLinksCustomersListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results other than the first page. Obtained through ListCustomersResponse.next_page_token of the previous CloudChannelService.ListCustomers call.
func (*AccountsChannelPartnerLinksCustomersListCall) Pages ¶ added in v0.43.0
func (c *AccountsChannelPartnerLinksCustomersListCall) Pages(ctx context.Context, f func(*GoogleCloudChannelV1ListCustomersResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type AccountsChannelPartnerLinksCustomersPatchCall ¶ added in v0.43.0
type AccountsChannelPartnerLinksCustomersPatchCall struct {
// contains filtered or unexported fields
}
func (*AccountsChannelPartnerLinksCustomersPatchCall) Context ¶ added in v0.43.0
func (c *AccountsChannelPartnerLinksCustomersPatchCall) Context(ctx context.Context) *AccountsChannelPartnerLinksCustomersPatchCall
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 (*AccountsChannelPartnerLinksCustomersPatchCall) Do ¶ added in v0.43.0
func (c *AccountsChannelPartnerLinksCustomersPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1Customer, error)
Do executes the "cloudchannel.accounts.channelPartnerLinks.customers.patch" call. Exactly one of *GoogleCloudChannelV1Customer or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudChannelV1Customer.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 (*AccountsChannelPartnerLinksCustomersPatchCall) Fields ¶ added in v0.43.0
func (c *AccountsChannelPartnerLinksCustomersPatchCall) Fields(s ...googleapi.Field) *AccountsChannelPartnerLinksCustomersPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsChannelPartnerLinksCustomersPatchCall) Header ¶ added in v0.43.0
func (c *AccountsChannelPartnerLinksCustomersPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AccountsChannelPartnerLinksCustomersPatchCall) UpdateMask ¶ added in v0.43.0
func (c *AccountsChannelPartnerLinksCustomersPatchCall) UpdateMask(updateMask string) *AccountsChannelPartnerLinksCustomersPatchCall
UpdateMask sets the optional parameter "updateMask": The update mask that applies to the resource.
type AccountsChannelPartnerLinksCustomersService ¶ added in v0.43.0
type AccountsChannelPartnerLinksCustomersService struct {
// contains filtered or unexported fields
}
func NewAccountsChannelPartnerLinksCustomersService ¶ added in v0.43.0
func NewAccountsChannelPartnerLinksCustomersService(s *Service) *AccountsChannelPartnerLinksCustomersService
func (*AccountsChannelPartnerLinksCustomersService) Create ¶ added in v0.43.0
func (r *AccountsChannelPartnerLinksCustomersService) Create(parent string, googlecloudchannelv1customer *GoogleCloudChannelV1Customer) *AccountsChannelPartnerLinksCustomersCreateCall
Create: Creates a new Customer resource under the reseller or distributor account. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request. * INVALID_ARGUMENT: * Required request parameters are missing or invalid. * Domain field value doesn't match the primary email domain. Return value: The newly created Customer resource.
- parent: The resource name of reseller account in which to create the customer. Parent uses the format: accounts/{account_id}.
func (*AccountsChannelPartnerLinksCustomersService) Delete ¶ added in v0.43.0
func (r *AccountsChannelPartnerLinksCustomersService) Delete(name string) *AccountsChannelPartnerLinksCustomersDeleteCall
Delete: Deletes the given Customer permanently. Possible error codes: * PERMISSION_DENIED: The account making the request does not own this customer. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * FAILED_PRECONDITION: The customer has existing entitlements. * NOT_FOUND: No Customer resource found for the name in the request.
- name: The resource name of the customer to delete.
func (*AccountsChannelPartnerLinksCustomersService) Get ¶ added in v0.43.0
func (r *AccountsChannelPartnerLinksCustomersService) Get(name string) *AccountsChannelPartnerLinksCustomersGetCall
Get: Returns the requested Customer resource. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: The customer resource doesn't exist. Usually the result of an invalid name parameter. Return value: The Customer resource.
- name: The resource name of the customer to retrieve. Name uses the format: accounts/{account_id}/customers/{customer_id}.
func (*AccountsChannelPartnerLinksCustomersService) Import ¶ added in v0.53.0
func (r *AccountsChannelPartnerLinksCustomersService) Import(parent string, googlecloudchannelv1importcustomerrequest *GoogleCloudChannelV1ImportCustomerRequest) *AccountsChannelPartnerLinksCustomersImportCall
Import: Imports a Customer from the Cloud Identity associated with the provided Cloud Identity ID or domain before a TransferEntitlements call. If a linked Customer already exists and overwrite_if_exists is true, it will update that Customer's data. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request. * NOT_FOUND: Cloud Identity doesn't exist or was deleted. * INVALID_ARGUMENT: Required parameters are missing, or the auth_token is expired or invalid. * ALREADY_EXISTS: A customer already exists and has conflicting critical fields. Requires an overwrite. Return value: The Customer.
- parent: The resource name of the reseller's account. Parent takes the format: accounts/{account_id} or accounts/{account_id}/channelPartnerLinks/{channel_partner_id}.
func (*AccountsChannelPartnerLinksCustomersService) List ¶ added in v0.43.0
func (r *AccountsChannelPartnerLinksCustomersService) List(parent string) *AccountsChannelPartnerLinksCustomersListCall
List: List Customers. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request. * INVALID_ARGUMENT: Required request parameters are missing or invalid. Return value: List of Customers, or an empty list if there are no customers.
- parent: The resource name of the reseller account to list customers from. Parent uses the format: accounts/{account_id}.
func (*AccountsChannelPartnerLinksCustomersService) Patch ¶ added in v0.43.0
func (r *AccountsChannelPartnerLinksCustomersService) Patch(name string, googlecloudchannelv1customer *GoogleCloudChannelV1Customer) *AccountsChannelPartnerLinksCustomersPatchCall
Patch: Updates an existing Customer resource for the reseller or distributor. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: No Customer resource found for the name in the request. Return value: The updated Customer resource.
- name: Output only. Resource name of the customer. Format: accounts/{account_id}/customers/{customer_id}.
type AccountsChannelPartnerLinksGetCall ¶
type AccountsChannelPartnerLinksGetCall struct {
// contains filtered or unexported fields
}
func (*AccountsChannelPartnerLinksGetCall) Context ¶
func (c *AccountsChannelPartnerLinksGetCall) Context(ctx context.Context) *AccountsChannelPartnerLinksGetCall
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 (*AccountsChannelPartnerLinksGetCall) Do ¶
func (c *AccountsChannelPartnerLinksGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1ChannelPartnerLink, error)
Do executes the "cloudchannel.accounts.channelPartnerLinks.get" call. Exactly one of *GoogleCloudChannelV1ChannelPartnerLink or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudChannelV1ChannelPartnerLink.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 (*AccountsChannelPartnerLinksGetCall) Fields ¶
func (c *AccountsChannelPartnerLinksGetCall) Fields(s ...googleapi.Field) *AccountsChannelPartnerLinksGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsChannelPartnerLinksGetCall) Header ¶
func (c *AccountsChannelPartnerLinksGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AccountsChannelPartnerLinksGetCall) IfNoneMatch ¶
func (c *AccountsChannelPartnerLinksGetCall) IfNoneMatch(entityTag string) *AccountsChannelPartnerLinksGetCall
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 (*AccountsChannelPartnerLinksGetCall) View ¶
func (c *AccountsChannelPartnerLinksGetCall) View(view string) *AccountsChannelPartnerLinksGetCall
View sets the optional parameter "view": The level of granularity the ChannelPartnerLink will display.
Possible values:
"UNSPECIFIED" - The default / unset value. The API will default to
the BASIC view.
"BASIC" - Includes all fields except the
ChannelPartnerLink.channel_partner_cloud_identity_info.
"FULL" - Includes all fields.
type AccountsChannelPartnerLinksListCall ¶
type AccountsChannelPartnerLinksListCall struct {
// contains filtered or unexported fields
}
func (*AccountsChannelPartnerLinksListCall) Context ¶
func (c *AccountsChannelPartnerLinksListCall) Context(ctx context.Context) *AccountsChannelPartnerLinksListCall
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 (*AccountsChannelPartnerLinksListCall) Do ¶
func (c *AccountsChannelPartnerLinksListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1ListChannelPartnerLinksResponse, error)
Do executes the "cloudchannel.accounts.channelPartnerLinks.list" call. Exactly one of *GoogleCloudChannelV1ListChannelPartnerLinksResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudChannelV1ListChannelPartnerLinksResponse.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 (*AccountsChannelPartnerLinksListCall) Fields ¶
func (c *AccountsChannelPartnerLinksListCall) Fields(s ...googleapi.Field) *AccountsChannelPartnerLinksListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsChannelPartnerLinksListCall) Header ¶
func (c *AccountsChannelPartnerLinksListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AccountsChannelPartnerLinksListCall) IfNoneMatch ¶
func (c *AccountsChannelPartnerLinksListCall) IfNoneMatch(entityTag string) *AccountsChannelPartnerLinksListCall
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 (*AccountsChannelPartnerLinksListCall) PageSize ¶
func (c *AccountsChannelPartnerLinksListCall) PageSize(pageSize int64) *AccountsChannelPartnerLinksListCall
PageSize sets the optional parameter "pageSize": Requested page size. Server might return fewer results than requested. If unspecified, server will pick a default size (25). The maximum value is 200; the server will coerce values above 200.
func (*AccountsChannelPartnerLinksListCall) PageToken ¶
func (c *AccountsChannelPartnerLinksListCall) PageToken(pageToken string) *AccountsChannelPartnerLinksListCall
PageToken sets the optional parameter "pageToken": A token for a page of results other than the first page. Obtained using ListChannelPartnerLinksResponse.next_page_token of the previous CloudChannelService.ListChannelPartnerLinks call.
func (*AccountsChannelPartnerLinksListCall) Pages ¶
func (c *AccountsChannelPartnerLinksListCall) Pages(ctx context.Context, f func(*GoogleCloudChannelV1ListChannelPartnerLinksResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
func (*AccountsChannelPartnerLinksListCall) View ¶
func (c *AccountsChannelPartnerLinksListCall) View(view string) *AccountsChannelPartnerLinksListCall
View sets the optional parameter "view": The level of granularity the ChannelPartnerLink will display.
Possible values:
"UNSPECIFIED" - The default / unset value. The API will default to
the BASIC view.
"BASIC" - Includes all fields except the
ChannelPartnerLink.channel_partner_cloud_identity_info.
"FULL" - Includes all fields.
type AccountsChannelPartnerLinksPatchCall ¶
type AccountsChannelPartnerLinksPatchCall struct {
// contains filtered or unexported fields
}
func (*AccountsChannelPartnerLinksPatchCall) Context ¶
func (c *AccountsChannelPartnerLinksPatchCall) Context(ctx context.Context) *AccountsChannelPartnerLinksPatchCall
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 (*AccountsChannelPartnerLinksPatchCall) Do ¶
func (c *AccountsChannelPartnerLinksPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1ChannelPartnerLink, error)
Do executes the "cloudchannel.accounts.channelPartnerLinks.patch" call. Exactly one of *GoogleCloudChannelV1ChannelPartnerLink or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudChannelV1ChannelPartnerLink.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 (*AccountsChannelPartnerLinksPatchCall) Fields ¶
func (c *AccountsChannelPartnerLinksPatchCall) Fields(s ...googleapi.Field) *AccountsChannelPartnerLinksPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsChannelPartnerLinksPatchCall) Header ¶
func (c *AccountsChannelPartnerLinksPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AccountsChannelPartnerLinksService ¶
type AccountsChannelPartnerLinksService struct { Customers *AccountsChannelPartnerLinksCustomersService // contains filtered or unexported fields }
func NewAccountsChannelPartnerLinksService ¶
func NewAccountsChannelPartnerLinksService(s *Service) *AccountsChannelPartnerLinksService
func (*AccountsChannelPartnerLinksService) Create ¶
func (r *AccountsChannelPartnerLinksService) Create(parent string, googlecloudchannelv1channelpartnerlink *GoogleCloudChannelV1ChannelPartnerLink) *AccountsChannelPartnerLinksCreateCall
Create: Initiates a channel partner link between a distributor and a reseller, or between resellers in an n-tier reseller channel. Invited partners need to follow the invite_link_uri provided in the response to accept. After accepting the invitation, a link is set up between the two parties. You must be a distributor to call this method. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * ALREADY_EXISTS: The ChannelPartnerLink sent in the request already exists. * NOT_FOUND: No Cloud Identity customer exists for provided domain. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The new ChannelPartnerLink resource.
- parent: Create a channel partner link for the provided reseller account's resource name. Parent uses the format: accounts/{account_id}.
func (*AccountsChannelPartnerLinksService) Get ¶
func (r *AccountsChannelPartnerLinksService) Get(name string) *AccountsChannelPartnerLinksGetCall
Get: Returns the requested ChannelPartnerLink resource. You must be a distributor to call this method. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: ChannelPartnerLink resource not found because of an invalid channel partner link name. Return value: The ChannelPartnerLink resource.
- name: The resource name of the channel partner link to retrieve. Name uses the format: accounts/{account_id}/channelPartnerLinks/{id} where {id} is the Cloud Identity ID of the partner.
func (*AccountsChannelPartnerLinksService) List ¶
func (r *AccountsChannelPartnerLinksService) List(parent string) *AccountsChannelPartnerLinksListCall
List: List ChannelPartnerLinks belonging to a distributor. You must be a distributor to call this method. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request. * INVALID_ARGUMENT: Required request parameters are missing or invalid. Return value: The list of the distributor account's ChannelPartnerLink resources.
- parent: The resource name of the reseller account for listing channel partner links. Parent uses the format: accounts/{account_id}.
func (*AccountsChannelPartnerLinksService) Patch ¶
func (r *AccountsChannelPartnerLinksService) Patch(name string, googlecloudchannelv1updatechannelpartnerlinkrequest *GoogleCloudChannelV1UpdateChannelPartnerLinkRequest) *AccountsChannelPartnerLinksPatchCall
Patch: Updates a channel partner link. Distributors call this method to change a link's status. For example, to suspend a partner link. You must be a distributor to call this method. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request. * INVALID_ARGUMENT: * Required request parameters are missing or invalid. * Link state cannot change from invited to active or suspended. * Cannot send reseller_cloud_identity_id, invite_url, or name in update mask. * NOT_FOUND: ChannelPartnerLink resource not found. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The updated ChannelPartnerLink resource.
- name: The resource name of the channel partner link to cancel. Name uses the format: accounts/{account_id}/channelPartnerLinks/{id} where {id} is the Cloud Identity ID of the partner.
type AccountsCheckCloudIdentityAccountsExistCall ¶
type AccountsCheckCloudIdentityAccountsExistCall struct {
// contains filtered or unexported fields
}
func (*AccountsCheckCloudIdentityAccountsExistCall) Context ¶
func (c *AccountsCheckCloudIdentityAccountsExistCall) Context(ctx context.Context) *AccountsCheckCloudIdentityAccountsExistCall
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 (*AccountsCheckCloudIdentityAccountsExistCall) Do ¶
func (c *AccountsCheckCloudIdentityAccountsExistCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1CheckCloudIdentityAccountsExistResponse, error)
Do executes the "cloudchannel.accounts.checkCloudIdentityAccountsExist" call. Exactly one of *GoogleCloudChannelV1CheckCloudIdentityAccountsExistResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudChannelV1CheckCloudIdentityAccountsExistResponse.ServerRes ponse.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 (*AccountsCheckCloudIdentityAccountsExistCall) Fields ¶
func (c *AccountsCheckCloudIdentityAccountsExistCall) Fields(s ...googleapi.Field) *AccountsCheckCloudIdentityAccountsExistCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsCheckCloudIdentityAccountsExistCall) Header ¶
func (c *AccountsCheckCloudIdentityAccountsExistCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AccountsCustomersCreateCall ¶
type AccountsCustomersCreateCall struct {
// contains filtered or unexported fields
}
func (*AccountsCustomersCreateCall) Context ¶
func (c *AccountsCustomersCreateCall) Context(ctx context.Context) *AccountsCustomersCreateCall
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 (*AccountsCustomersCreateCall) Do ¶
func (c *AccountsCustomersCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1Customer, error)
Do executes the "cloudchannel.accounts.customers.create" call. Exactly one of *GoogleCloudChannelV1Customer or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudChannelV1Customer.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 (*AccountsCustomersCreateCall) Fields ¶
func (c *AccountsCustomersCreateCall) Fields(s ...googleapi.Field) *AccountsCustomersCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsCustomersCreateCall) Header ¶
func (c *AccountsCustomersCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AccountsCustomersDeleteCall ¶
type AccountsCustomersDeleteCall struct {
// contains filtered or unexported fields
}
func (*AccountsCustomersDeleteCall) Context ¶
func (c *AccountsCustomersDeleteCall) Context(ctx context.Context) *AccountsCustomersDeleteCall
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 (*AccountsCustomersDeleteCall) Do ¶
func (c *AccountsCustomersDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
Do executes the "cloudchannel.accounts.customers.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 (*AccountsCustomersDeleteCall) Fields ¶
func (c *AccountsCustomersDeleteCall) Fields(s ...googleapi.Field) *AccountsCustomersDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsCustomersDeleteCall) Header ¶
func (c *AccountsCustomersDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AccountsCustomersEntitlementsActivateCall ¶
type AccountsCustomersEntitlementsActivateCall struct {
// contains filtered or unexported fields
}
func (*AccountsCustomersEntitlementsActivateCall) Context ¶
func (c *AccountsCustomersEntitlementsActivateCall) Context(ctx context.Context) *AccountsCustomersEntitlementsActivateCall
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 (*AccountsCustomersEntitlementsActivateCall) Do ¶
func (c *AccountsCustomersEntitlementsActivateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
Do executes the "cloudchannel.accounts.customers.entitlements.activate" call. Exactly one of *GoogleLongrunningOperation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleLongrunningOperation.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 (*AccountsCustomersEntitlementsActivateCall) Fields ¶
func (c *AccountsCustomersEntitlementsActivateCall) Fields(s ...googleapi.Field) *AccountsCustomersEntitlementsActivateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsCustomersEntitlementsActivateCall) Header ¶
func (c *AccountsCustomersEntitlementsActivateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AccountsCustomersEntitlementsCancelCall ¶
type AccountsCustomersEntitlementsCancelCall struct {
// contains filtered or unexported fields
}
func (*AccountsCustomersEntitlementsCancelCall) Context ¶
func (c *AccountsCustomersEntitlementsCancelCall) Context(ctx context.Context) *AccountsCustomersEntitlementsCancelCall
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 (*AccountsCustomersEntitlementsCancelCall) Do ¶
func (c *AccountsCustomersEntitlementsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
Do executes the "cloudchannel.accounts.customers.entitlements.cancel" call. Exactly one of *GoogleLongrunningOperation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleLongrunningOperation.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 (*AccountsCustomersEntitlementsCancelCall) Fields ¶
func (c *AccountsCustomersEntitlementsCancelCall) Fields(s ...googleapi.Field) *AccountsCustomersEntitlementsCancelCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsCustomersEntitlementsCancelCall) Header ¶
func (c *AccountsCustomersEntitlementsCancelCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AccountsCustomersEntitlementsChangeOfferCall ¶
type AccountsCustomersEntitlementsChangeOfferCall struct {
// contains filtered or unexported fields
}
func (*AccountsCustomersEntitlementsChangeOfferCall) Context ¶
func (c *AccountsCustomersEntitlementsChangeOfferCall) Context(ctx context.Context) *AccountsCustomersEntitlementsChangeOfferCall
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 (*AccountsCustomersEntitlementsChangeOfferCall) Do ¶
func (c *AccountsCustomersEntitlementsChangeOfferCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
Do executes the "cloudchannel.accounts.customers.entitlements.changeOffer" call. Exactly one of *GoogleLongrunningOperation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleLongrunningOperation.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 (*AccountsCustomersEntitlementsChangeOfferCall) Fields ¶
func (c *AccountsCustomersEntitlementsChangeOfferCall) Fields(s ...googleapi.Field) *AccountsCustomersEntitlementsChangeOfferCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsCustomersEntitlementsChangeOfferCall) Header ¶
func (c *AccountsCustomersEntitlementsChangeOfferCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AccountsCustomersEntitlementsChangeParametersCall ¶
type AccountsCustomersEntitlementsChangeParametersCall struct {
// contains filtered or unexported fields
}
func (*AccountsCustomersEntitlementsChangeParametersCall) Context ¶
func (c *AccountsCustomersEntitlementsChangeParametersCall) Context(ctx context.Context) *AccountsCustomersEntitlementsChangeParametersCall
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 (*AccountsCustomersEntitlementsChangeParametersCall) Do ¶
func (c *AccountsCustomersEntitlementsChangeParametersCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
Do executes the "cloudchannel.accounts.customers.entitlements.changeParameters" call. Exactly one of *GoogleLongrunningOperation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleLongrunningOperation.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 (*AccountsCustomersEntitlementsChangeParametersCall) Fields ¶
func (c *AccountsCustomersEntitlementsChangeParametersCall) Fields(s ...googleapi.Field) *AccountsCustomersEntitlementsChangeParametersCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsCustomersEntitlementsChangeParametersCall) Header ¶
func (c *AccountsCustomersEntitlementsChangeParametersCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AccountsCustomersEntitlementsChangeRenewalSettingsCall ¶
type AccountsCustomersEntitlementsChangeRenewalSettingsCall struct {
// contains filtered or unexported fields
}
func (*AccountsCustomersEntitlementsChangeRenewalSettingsCall) Context ¶
func (c *AccountsCustomersEntitlementsChangeRenewalSettingsCall) Context(ctx context.Context) *AccountsCustomersEntitlementsChangeRenewalSettingsCall
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 (*AccountsCustomersEntitlementsChangeRenewalSettingsCall) Do ¶
func (c *AccountsCustomersEntitlementsChangeRenewalSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
Do executes the "cloudchannel.accounts.customers.entitlements.changeRenewalSettings" call. Exactly one of *GoogleLongrunningOperation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleLongrunningOperation.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 (*AccountsCustomersEntitlementsChangeRenewalSettingsCall) Fields ¶
func (c *AccountsCustomersEntitlementsChangeRenewalSettingsCall) Fields(s ...googleapi.Field) *AccountsCustomersEntitlementsChangeRenewalSettingsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsCustomersEntitlementsChangeRenewalSettingsCall) Header ¶
func (c *AccountsCustomersEntitlementsChangeRenewalSettingsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AccountsCustomersEntitlementsCreateCall ¶
type AccountsCustomersEntitlementsCreateCall struct {
// contains filtered or unexported fields
}
func (*AccountsCustomersEntitlementsCreateCall) Context ¶
func (c *AccountsCustomersEntitlementsCreateCall) Context(ctx context.Context) *AccountsCustomersEntitlementsCreateCall
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 (*AccountsCustomersEntitlementsCreateCall) Do ¶
func (c *AccountsCustomersEntitlementsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
Do executes the "cloudchannel.accounts.customers.entitlements.create" call. Exactly one of *GoogleLongrunningOperation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleLongrunningOperation.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 (*AccountsCustomersEntitlementsCreateCall) Fields ¶
func (c *AccountsCustomersEntitlementsCreateCall) Fields(s ...googleapi.Field) *AccountsCustomersEntitlementsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsCustomersEntitlementsCreateCall) Header ¶
func (c *AccountsCustomersEntitlementsCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AccountsCustomersEntitlementsGetCall ¶
type AccountsCustomersEntitlementsGetCall struct {
// contains filtered or unexported fields
}
func (*AccountsCustomersEntitlementsGetCall) Context ¶
func (c *AccountsCustomersEntitlementsGetCall) Context(ctx context.Context) *AccountsCustomersEntitlementsGetCall
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 (*AccountsCustomersEntitlementsGetCall) Do ¶
func (c *AccountsCustomersEntitlementsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1Entitlement, error)
Do executes the "cloudchannel.accounts.customers.entitlements.get" call. Exactly one of *GoogleCloudChannelV1Entitlement or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudChannelV1Entitlement.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 (*AccountsCustomersEntitlementsGetCall) Fields ¶
func (c *AccountsCustomersEntitlementsGetCall) Fields(s ...googleapi.Field) *AccountsCustomersEntitlementsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsCustomersEntitlementsGetCall) Header ¶
func (c *AccountsCustomersEntitlementsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AccountsCustomersEntitlementsGetCall) IfNoneMatch ¶
func (c *AccountsCustomersEntitlementsGetCall) IfNoneMatch(entityTag string) *AccountsCustomersEntitlementsGetCall
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 AccountsCustomersEntitlementsListCall ¶
type AccountsCustomersEntitlementsListCall struct {
// contains filtered or unexported fields
}
func (*AccountsCustomersEntitlementsListCall) Context ¶
func (c *AccountsCustomersEntitlementsListCall) Context(ctx context.Context) *AccountsCustomersEntitlementsListCall
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 (*AccountsCustomersEntitlementsListCall) Do ¶
func (c *AccountsCustomersEntitlementsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1ListEntitlementsResponse, error)
Do executes the "cloudchannel.accounts.customers.entitlements.list" call. Exactly one of *GoogleCloudChannelV1ListEntitlementsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudChannelV1ListEntitlementsResponse.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 (*AccountsCustomersEntitlementsListCall) Fields ¶
func (c *AccountsCustomersEntitlementsListCall) Fields(s ...googleapi.Field) *AccountsCustomersEntitlementsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsCustomersEntitlementsListCall) Header ¶
func (c *AccountsCustomersEntitlementsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AccountsCustomersEntitlementsListCall) IfNoneMatch ¶
func (c *AccountsCustomersEntitlementsListCall) IfNoneMatch(entityTag string) *AccountsCustomersEntitlementsListCall
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 (*AccountsCustomersEntitlementsListCall) PageSize ¶
func (c *AccountsCustomersEntitlementsListCall) PageSize(pageSize int64) *AccountsCustomersEntitlementsListCall
PageSize sets the optional parameter "pageSize": Requested page size. Server might return fewer results than requested. If unspecified, return at most 50 entitlements. The maximum value is 100; the server will coerce values above 100.
func (*AccountsCustomersEntitlementsListCall) PageToken ¶
func (c *AccountsCustomersEntitlementsListCall) PageToken(pageToken string) *AccountsCustomersEntitlementsListCall
PageToken sets the optional parameter "pageToken": A token for a page of results other than the first page. Obtained using ListEntitlementsResponse.next_page_token of the previous CloudChannelService.ListEntitlements call.
func (*AccountsCustomersEntitlementsListCall) Pages ¶
func (c *AccountsCustomersEntitlementsListCall) Pages(ctx context.Context, f func(*GoogleCloudChannelV1ListEntitlementsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type AccountsCustomersEntitlementsLookupOfferCall ¶ added in v0.46.0
type AccountsCustomersEntitlementsLookupOfferCall struct {
// contains filtered or unexported fields
}
func (*AccountsCustomersEntitlementsLookupOfferCall) Context ¶ added in v0.46.0
func (c *AccountsCustomersEntitlementsLookupOfferCall) Context(ctx context.Context) *AccountsCustomersEntitlementsLookupOfferCall
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 (*AccountsCustomersEntitlementsLookupOfferCall) Do ¶ added in v0.46.0
func (c *AccountsCustomersEntitlementsLookupOfferCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1Offer, error)
Do executes the "cloudchannel.accounts.customers.entitlements.lookupOffer" call. Exactly one of *GoogleCloudChannelV1Offer or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudChannelV1Offer.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 (*AccountsCustomersEntitlementsLookupOfferCall) Fields ¶ added in v0.46.0
func (c *AccountsCustomersEntitlementsLookupOfferCall) Fields(s ...googleapi.Field) *AccountsCustomersEntitlementsLookupOfferCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsCustomersEntitlementsLookupOfferCall) Header ¶ added in v0.46.0
func (c *AccountsCustomersEntitlementsLookupOfferCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AccountsCustomersEntitlementsLookupOfferCall) IfNoneMatch ¶ added in v0.46.0
func (c *AccountsCustomersEntitlementsLookupOfferCall) IfNoneMatch(entityTag string) *AccountsCustomersEntitlementsLookupOfferCall
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 AccountsCustomersEntitlementsService ¶
type AccountsCustomersEntitlementsService struct {
// contains filtered or unexported fields
}
func NewAccountsCustomersEntitlementsService ¶
func NewAccountsCustomersEntitlementsService(s *Service) *AccountsCustomersEntitlementsService
func (*AccountsCustomersEntitlementsService) Activate ¶
func (r *AccountsCustomersEntitlementsService) Activate(name string, googlecloudchannelv1activateentitlementrequest *GoogleCloudChannelV1ActivateEntitlementRequest) *AccountsCustomersEntitlementsActivateCall
Activate: Activates a previously suspended entitlement. Entitlements suspended for pending ToS acceptance can't be activated using this method. An entitlement activation is a long-running operation and it updates the state of the customer entitlement. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: Entitlement resource not found. * SUSPENSION_NOT_RESELLER_INITIATED: Can only activate reseller-initiated suspensions and entitlements that have accepted the TOS. * NOT_SUSPENDED: Can only activate suspended entitlements not in an ACTIVE state. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The ID of a long-running operation. To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata will contain an instance of OperationMetadata.
- name: The resource name of the entitlement to activate. Name uses the format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlem ent_id}.
func (*AccountsCustomersEntitlementsService) Cancel ¶
func (r *AccountsCustomersEntitlementsService) Cancel(name string, googlecloudchannelv1cancelentitlementrequest *GoogleCloudChannelV1CancelEntitlementRequest) *AccountsCustomersEntitlementsCancelCall
Cancel: Cancels a previously fulfilled entitlement. An entitlement cancellation is a long-running operation. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request. * FAILED_PRECONDITION: There are Google Cloud projects linked to the Google Cloud entitlement's Cloud Billing subaccount. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: Entitlement resource not found. * DELETION_TYPE_NOT_ALLOWED: Cancel is only allowed for Google Workspace add-ons, or entitlements for Google Cloud's development platform. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The ID of a long-running operation. To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The response will contain google.protobuf.Empty on success. The Operation metadata will contain an instance of OperationMetadata.
- name: The resource name of the entitlement to cancel. Name uses the format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlem ent_id}.
func (*AccountsCustomersEntitlementsService) ChangeOffer ¶
func (r *AccountsCustomersEntitlementsService) ChangeOffer(name string, googlecloudchannelv1changeofferrequest *GoogleCloudChannelV1ChangeOfferRequest) *AccountsCustomersEntitlementsChangeOfferCall
ChangeOffer: Updates the Offer for an existing customer entitlement. An entitlement update is a long-running operation and it updates the entitlement as a result of fulfillment. Possible error codes: * PERMISSION_DENIED: The customer doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: Offer or Entitlement resource not found. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The ID of a long-running operation. To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata will contain an instance of OperationMetadata.
- name: The resource name of the entitlement to update. Name uses the format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlem ent_id}.
func (*AccountsCustomersEntitlementsService) ChangeParameters ¶
func (r *AccountsCustomersEntitlementsService) ChangeParameters(name string, googlecloudchannelv1changeparametersrequest *GoogleCloudChannelV1ChangeParametersRequest) *AccountsCustomersEntitlementsChangeParametersCall
ChangeParameters: Change parameters of the entitlement. An entitlement update is a long-running operation and it updates the entitlement as a result of fulfillment. Possible error codes: * PERMISSION_DENIED: The customer doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters are missing or invalid. For example, the number of seats being changed is greater than the allowed number of max seats, or decreasing seats for a commitment based plan. * NOT_FOUND: Entitlement resource not found. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The ID of a long-running operation. To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata will contain an instance of OperationMetadata.
- name: The name of the entitlement to update. Name uses the format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlem ent_id}.
func (*AccountsCustomersEntitlementsService) ChangeRenewalSettings ¶
func (r *AccountsCustomersEntitlementsService) ChangeRenewalSettings(name string, googlecloudchannelv1changerenewalsettingsrequest *GoogleCloudChannelV1ChangeRenewalSettingsRequest) *AccountsCustomersEntitlementsChangeRenewalSettingsCall
ChangeRenewalSettings: Updates the renewal settings for an existing customer entitlement. An entitlement update is a long-running operation and it updates the entitlement as a result of fulfillment. Possible error codes: * PERMISSION_DENIED: The customer doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: Entitlement resource not found. * NOT_COMMITMENT_PLAN: Renewal Settings are only applicable for a commitment plan. Can't enable or disable renewals for non-commitment plans. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The ID of a long-running operation. To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata will contain an instance of OperationMetadata.
- name: The name of the entitlement to update. Name uses the format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlem ent_id}.
func (*AccountsCustomersEntitlementsService) Create ¶
func (r *AccountsCustomersEntitlementsService) Create(parent string, googlecloudchannelv1createentitlementrequest *GoogleCloudChannelV1CreateEntitlementRequest) *AccountsCustomersEntitlementsCreateCall
Create: Creates an entitlement for a customer. Possible error codes: * PERMISSION_DENIED: The customer doesn't belong to the reseller. * INVALID_ARGUMENT: * Required request parameters are missing or invalid. * There is already a customer entitlement for a SKU from the same product family. * INVALID_VALUE: Make sure the OfferId is valid. If it is, contact Google Channel support for further troubleshooting. * NOT_FOUND: The customer or offer resource was not found. * ALREADY_EXISTS: * The SKU was already purchased for the customer. * The customer's primary email already exists. Retry after changing the customer's primary contact email. * CONDITION_NOT_MET or FAILED_PRECONDITION: * The domain required for purchasing a SKU has not been verified. * A pre-requisite SKU required to purchase an Add-On SKU is missing. For example, Google Workspace Business Starter is required to purchase Vault or Drive. * (Developer accounts only) Reseller and resold domain must meet the following naming requirements: * Domain names must start with goog-test. * Domain names must include the reseller domain. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The ID of a long-running operation. To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata will contain an instance of OperationMetadata.
- parent: The resource name of the reseller's customer account in which to create the entitlement. Parent uses the format: accounts/{account_id}/customers/{customer_id}.
func (*AccountsCustomersEntitlementsService) Get ¶
func (r *AccountsCustomersEntitlementsService) Get(name string) *AccountsCustomersEntitlementsGetCall
Get: Returns the requested Entitlement resource. Possible error codes: * PERMISSION_DENIED: The customer doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: The customer entitlement was not found. Return value: The requested Entitlement resource.
- name: The resource name of the entitlement to retrieve. Name uses the format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlem ent_id}.
func (*AccountsCustomersEntitlementsService) List ¶
func (r *AccountsCustomersEntitlementsService) List(parent string) *AccountsCustomersEntitlementsListCall
List: Lists Entitlements belonging to a customer. Possible error codes: * PERMISSION_DENIED: The customer doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters are missing or invalid. Return value: A list of the customer's Entitlements.
- parent: The resource name of the reseller's customer account to list entitlements for. Parent uses the format: accounts/{account_id}/customers/{customer_id}.
func (*AccountsCustomersEntitlementsService) LookupOffer ¶ added in v0.46.0
func (r *AccountsCustomersEntitlementsService) LookupOffer(entitlement string) *AccountsCustomersEntitlementsLookupOfferCall
LookupOffer: Returns the requested Offer resource. Possible error codes: * PERMISSION_DENIED: The entitlement doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: Entitlement or offer was not found. Return value: The Offer resource.
- entitlement: The resource name of the entitlement to retrieve the Offer. Entitlement uses the format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlem ent_id}.
func (*AccountsCustomersEntitlementsService) StartPaidService ¶
func (r *AccountsCustomersEntitlementsService) StartPaidService(name string, googlecloudchannelv1startpaidservicerequest *GoogleCloudChannelV1StartPaidServiceRequest) *AccountsCustomersEntitlementsStartPaidServiceCall
StartPaidService: Starts paid service for a trial entitlement. Starts paid service for a trial entitlement immediately. This method is only applicable if a plan is set up for a trial entitlement but has some trial days remaining. Possible error codes: * PERMISSION_DENIED: The customer doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: Entitlement resource not found. * FAILED_PRECONDITION/NOT_IN_TRIAL: This method only works for entitlement on trial plans. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The ID of a long-running operation. To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata will contain an instance of OperationMetadata.
- name: The name of the entitlement to start a paid service for. Name uses the format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlem ent_id}.
func (*AccountsCustomersEntitlementsService) Suspend ¶
func (r *AccountsCustomersEntitlementsService) Suspend(name string, googlecloudchannelv1suspendentitlementrequest *GoogleCloudChannelV1SuspendEntitlementRequest) *AccountsCustomersEntitlementsSuspendCall
Suspend: Suspends a previously fulfilled entitlement. An entitlement suspension is a long-running operation. Possible error codes: * PERMISSION_DENIED: The customer doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: Entitlement resource not found. * NOT_ACTIVE: Entitlement is not active. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The ID of a long-running operation. To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata will contain an instance of OperationMetadata.
- name: The resource name of the entitlement to suspend. Name uses the format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlem ent_id}.
type AccountsCustomersEntitlementsStartPaidServiceCall ¶
type AccountsCustomersEntitlementsStartPaidServiceCall struct {
// contains filtered or unexported fields
}
func (*AccountsCustomersEntitlementsStartPaidServiceCall) Context ¶
func (c *AccountsCustomersEntitlementsStartPaidServiceCall) Context(ctx context.Context) *AccountsCustomersEntitlementsStartPaidServiceCall
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 (*AccountsCustomersEntitlementsStartPaidServiceCall) Do ¶
func (c *AccountsCustomersEntitlementsStartPaidServiceCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
Do executes the "cloudchannel.accounts.customers.entitlements.startPaidService" call. Exactly one of *GoogleLongrunningOperation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleLongrunningOperation.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 (*AccountsCustomersEntitlementsStartPaidServiceCall) Fields ¶
func (c *AccountsCustomersEntitlementsStartPaidServiceCall) Fields(s ...googleapi.Field) *AccountsCustomersEntitlementsStartPaidServiceCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsCustomersEntitlementsStartPaidServiceCall) Header ¶
func (c *AccountsCustomersEntitlementsStartPaidServiceCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AccountsCustomersEntitlementsSuspendCall ¶
type AccountsCustomersEntitlementsSuspendCall struct {
// contains filtered or unexported fields
}
func (*AccountsCustomersEntitlementsSuspendCall) Context ¶
func (c *AccountsCustomersEntitlementsSuspendCall) Context(ctx context.Context) *AccountsCustomersEntitlementsSuspendCall
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 (*AccountsCustomersEntitlementsSuspendCall) Do ¶
func (c *AccountsCustomersEntitlementsSuspendCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
Do executes the "cloudchannel.accounts.customers.entitlements.suspend" call. Exactly one of *GoogleLongrunningOperation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleLongrunningOperation.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 (*AccountsCustomersEntitlementsSuspendCall) Fields ¶
func (c *AccountsCustomersEntitlementsSuspendCall) Fields(s ...googleapi.Field) *AccountsCustomersEntitlementsSuspendCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsCustomersEntitlementsSuspendCall) Header ¶
func (c *AccountsCustomersEntitlementsSuspendCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AccountsCustomersGetCall ¶
type AccountsCustomersGetCall struct {
// contains filtered or unexported fields
}
func (*AccountsCustomersGetCall) Context ¶
func (c *AccountsCustomersGetCall) Context(ctx context.Context) *AccountsCustomersGetCall
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 (*AccountsCustomersGetCall) Do ¶
func (c *AccountsCustomersGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1Customer, error)
Do executes the "cloudchannel.accounts.customers.get" call. Exactly one of *GoogleCloudChannelV1Customer or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudChannelV1Customer.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 (*AccountsCustomersGetCall) Fields ¶
func (c *AccountsCustomersGetCall) Fields(s ...googleapi.Field) *AccountsCustomersGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsCustomersGetCall) Header ¶
func (c *AccountsCustomersGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AccountsCustomersGetCall) IfNoneMatch ¶
func (c *AccountsCustomersGetCall) IfNoneMatch(entityTag string) *AccountsCustomersGetCall
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 AccountsCustomersImportCall ¶ added in v0.53.0
type AccountsCustomersImportCall struct {
// contains filtered or unexported fields
}
func (*AccountsCustomersImportCall) Context ¶ added in v0.53.0
func (c *AccountsCustomersImportCall) Context(ctx context.Context) *AccountsCustomersImportCall
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 (*AccountsCustomersImportCall) Do ¶ added in v0.53.0
func (c *AccountsCustomersImportCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1Customer, error)
Do executes the "cloudchannel.accounts.customers.import" call. Exactly one of *GoogleCloudChannelV1Customer or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudChannelV1Customer.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 (*AccountsCustomersImportCall) Fields ¶ added in v0.53.0
func (c *AccountsCustomersImportCall) Fields(s ...googleapi.Field) *AccountsCustomersImportCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsCustomersImportCall) Header ¶ added in v0.53.0
func (c *AccountsCustomersImportCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AccountsCustomersListCall ¶
type AccountsCustomersListCall struct {
// contains filtered or unexported fields
}
func (*AccountsCustomersListCall) Context ¶
func (c *AccountsCustomersListCall) Context(ctx context.Context) *AccountsCustomersListCall
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 (*AccountsCustomersListCall) Do ¶
func (c *AccountsCustomersListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1ListCustomersResponse, error)
Do executes the "cloudchannel.accounts.customers.list" call. Exactly one of *GoogleCloudChannelV1ListCustomersResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudChannelV1ListCustomersResponse.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 (*AccountsCustomersListCall) Fields ¶
func (c *AccountsCustomersListCall) Fields(s ...googleapi.Field) *AccountsCustomersListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsCustomersListCall) Filter ¶ added in v0.69.0
func (c *AccountsCustomersListCall) Filter(filter string) *AccountsCustomersListCall
Filter sets the optional parameter "filter": Filters applied to the [CloudChannelService.ListCustomers] results. See https://cloud.google.com/channel/docs/concepts/google-cloud/filter-customers for more information.
func (*AccountsCustomersListCall) Header ¶
func (c *AccountsCustomersListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AccountsCustomersListCall) IfNoneMatch ¶
func (c *AccountsCustomersListCall) IfNoneMatch(entityTag string) *AccountsCustomersListCall
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 (*AccountsCustomersListCall) PageSize ¶
func (c *AccountsCustomersListCall) PageSize(pageSize int64) *AccountsCustomersListCall
PageSize sets the optional parameter "pageSize": The maximum number of customers to return. The service may return fewer than this value. If unspecified, returns at most 10 customers. The maximum value is 50.
func (*AccountsCustomersListCall) PageToken ¶
func (c *AccountsCustomersListCall) PageToken(pageToken string) *AccountsCustomersListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results other than the first page. Obtained through ListCustomersResponse.next_page_token of the previous CloudChannelService.ListCustomers call.
func (*AccountsCustomersListCall) Pages ¶
func (c *AccountsCustomersListCall) Pages(ctx context.Context, f func(*GoogleCloudChannelV1ListCustomersResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type AccountsCustomersListPurchasableOffersCall ¶
type AccountsCustomersListPurchasableOffersCall struct {
// contains filtered or unexported fields
}
func (*AccountsCustomersListPurchasableOffersCall) ChangeOfferPurchaseEntitlement ¶
func (c *AccountsCustomersListPurchasableOffersCall) ChangeOfferPurchaseEntitlement(changeOfferPurchaseEntitlement string) *AccountsCustomersListPurchasableOffersCall
ChangeOfferPurchaseEntitlement sets the optional parameter "changeOfferPurchase.entitlement": Required. Resource name of the entitlement. Format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlemen t_id}
func (*AccountsCustomersListPurchasableOffersCall) ChangeOfferPurchaseNewSku ¶
func (c *AccountsCustomersListPurchasableOffersCall) ChangeOfferPurchaseNewSku(changeOfferPurchaseNewSku string) *AccountsCustomersListPurchasableOffersCall
ChangeOfferPurchaseNewSku sets the optional parameter "changeOfferPurchase.newSku": Resource name of the new target SKU. Provide this SKU when upgrading or downgrading an entitlement. Format: products/{product_id}/skus/{sku_id}
func (*AccountsCustomersListPurchasableOffersCall) Context ¶
func (c *AccountsCustomersListPurchasableOffersCall) Context(ctx context.Context) *AccountsCustomersListPurchasableOffersCall
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 (*AccountsCustomersListPurchasableOffersCall) CreateEntitlementPurchaseSku ¶
func (c *AccountsCustomersListPurchasableOffersCall) CreateEntitlementPurchaseSku(createEntitlementPurchaseSku string) *AccountsCustomersListPurchasableOffersCall
CreateEntitlementPurchaseSku sets the optional parameter "createEntitlementPurchase.sku": Required. SKU that the result should be restricted to. Format: products/{product_id}/skus/{sku_id}.
func (*AccountsCustomersListPurchasableOffersCall) Do ¶
func (c *AccountsCustomersListPurchasableOffersCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1ListPurchasableOffersResponse, error)
Do executes the "cloudchannel.accounts.customers.listPurchasableOffers" call. Exactly one of *GoogleCloudChannelV1ListPurchasableOffersResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudChannelV1ListPurchasableOffersResponse.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 (*AccountsCustomersListPurchasableOffersCall) Fields ¶
func (c *AccountsCustomersListPurchasableOffersCall) Fields(s ...googleapi.Field) *AccountsCustomersListPurchasableOffersCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsCustomersListPurchasableOffersCall) Header ¶
func (c *AccountsCustomersListPurchasableOffersCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AccountsCustomersListPurchasableOffersCall) IfNoneMatch ¶
func (c *AccountsCustomersListPurchasableOffersCall) IfNoneMatch(entityTag string) *AccountsCustomersListPurchasableOffersCall
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 (*AccountsCustomersListPurchasableOffersCall) LanguageCode ¶
func (c *AccountsCustomersListPurchasableOffersCall) LanguageCode(languageCode string) *AccountsCustomersListPurchasableOffersCall
LanguageCode sets the optional parameter "languageCode": The BCP-47 language code. For example, "en-US". The response will localize in the corresponding language code, if specified. The default value is "en-US".
func (*AccountsCustomersListPurchasableOffersCall) PageSize ¶
func (c *AccountsCustomersListPurchasableOffersCall) PageSize(pageSize int64) *AccountsCustomersListPurchasableOffersCall
PageSize sets the optional parameter "pageSize": Requested page size. Server might return fewer results than requested. If unspecified, returns at most 100 Offers. The maximum value is 1000; the server will coerce values above 1000.
func (*AccountsCustomersListPurchasableOffersCall) PageToken ¶
func (c *AccountsCustomersListPurchasableOffersCall) PageToken(pageToken string) *AccountsCustomersListPurchasableOffersCall
PageToken sets the optional parameter "pageToken": A token for a page of results other than the first page.
func (*AccountsCustomersListPurchasableOffersCall) Pages ¶
func (c *AccountsCustomersListPurchasableOffersCall) Pages(ctx context.Context, f func(*GoogleCloudChannelV1ListPurchasableOffersResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type AccountsCustomersListPurchasableSkusCall ¶
type AccountsCustomersListPurchasableSkusCall struct {
// contains filtered or unexported fields
}
func (*AccountsCustomersListPurchasableSkusCall) ChangeOfferPurchaseChangeType ¶
func (c *AccountsCustomersListPurchasableSkusCall) ChangeOfferPurchaseChangeType(changeOfferPurchaseChangeType string) *AccountsCustomersListPurchasableSkusCall
ChangeOfferPurchaseChangeType sets the optional parameter "changeOfferPurchase.changeType": Required. Change Type for the entitlement.
Possible values:
"CHANGE_TYPE_UNSPECIFIED" - Not used. "UPGRADE" - SKU is an upgrade on the current entitlement. "DOWNGRADE" - SKU is a downgrade on the current entitlement.
func (*AccountsCustomersListPurchasableSkusCall) ChangeOfferPurchaseEntitlement ¶
func (c *AccountsCustomersListPurchasableSkusCall) ChangeOfferPurchaseEntitlement(changeOfferPurchaseEntitlement string) *AccountsCustomersListPurchasableSkusCall
ChangeOfferPurchaseEntitlement sets the optional parameter "changeOfferPurchase.entitlement": Required. Resource name of the entitlement. Format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlemen t_id}
func (*AccountsCustomersListPurchasableSkusCall) Context ¶
func (c *AccountsCustomersListPurchasableSkusCall) Context(ctx context.Context) *AccountsCustomersListPurchasableSkusCall
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 (*AccountsCustomersListPurchasableSkusCall) CreateEntitlementPurchaseProduct ¶
func (c *AccountsCustomersListPurchasableSkusCall) CreateEntitlementPurchaseProduct(createEntitlementPurchaseProduct string) *AccountsCustomersListPurchasableSkusCall
CreateEntitlementPurchaseProduct sets the optional parameter "createEntitlementPurchase.product": Required. List SKUs belonging to this Product. Format: products/{product_id}. Supports products/- to retrieve SKUs for all products.
func (*AccountsCustomersListPurchasableSkusCall) Do ¶
func (c *AccountsCustomersListPurchasableSkusCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1ListPurchasableSkusResponse, error)
Do executes the "cloudchannel.accounts.customers.listPurchasableSkus" call. Exactly one of *GoogleCloudChannelV1ListPurchasableSkusResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudChannelV1ListPurchasableSkusResponse.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 (*AccountsCustomersListPurchasableSkusCall) Fields ¶
func (c *AccountsCustomersListPurchasableSkusCall) Fields(s ...googleapi.Field) *AccountsCustomersListPurchasableSkusCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsCustomersListPurchasableSkusCall) Header ¶
func (c *AccountsCustomersListPurchasableSkusCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AccountsCustomersListPurchasableSkusCall) IfNoneMatch ¶
func (c *AccountsCustomersListPurchasableSkusCall) IfNoneMatch(entityTag string) *AccountsCustomersListPurchasableSkusCall
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 (*AccountsCustomersListPurchasableSkusCall) LanguageCode ¶
func (c *AccountsCustomersListPurchasableSkusCall) LanguageCode(languageCode string) *AccountsCustomersListPurchasableSkusCall
LanguageCode sets the optional parameter "languageCode": The BCP-47 language code. For example, "en-US". The response will localize in the corresponding language code, if specified. The default value is "en-US".
func (*AccountsCustomersListPurchasableSkusCall) PageSize ¶
func (c *AccountsCustomersListPurchasableSkusCall) PageSize(pageSize int64) *AccountsCustomersListPurchasableSkusCall
PageSize sets the optional parameter "pageSize": Requested page size. Server might return fewer results than requested. If unspecified, returns at most 100 SKUs. The maximum value is 1000; the server will coerce values above 1000.
func (*AccountsCustomersListPurchasableSkusCall) PageToken ¶
func (c *AccountsCustomersListPurchasableSkusCall) PageToken(pageToken string) *AccountsCustomersListPurchasableSkusCall
PageToken sets the optional parameter "pageToken": A token for a page of results other than the first page.
func (*AccountsCustomersListPurchasableSkusCall) Pages ¶
func (c *AccountsCustomersListPurchasableSkusCall) Pages(ctx context.Context, f func(*GoogleCloudChannelV1ListPurchasableSkusResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type AccountsCustomersPatchCall ¶
type AccountsCustomersPatchCall struct {
// contains filtered or unexported fields
}
func (*AccountsCustomersPatchCall) Context ¶
func (c *AccountsCustomersPatchCall) Context(ctx context.Context) *AccountsCustomersPatchCall
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 (*AccountsCustomersPatchCall) Do ¶
func (c *AccountsCustomersPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1Customer, error)
Do executes the "cloudchannel.accounts.customers.patch" call. Exactly one of *GoogleCloudChannelV1Customer or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudChannelV1Customer.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 (*AccountsCustomersPatchCall) Fields ¶
func (c *AccountsCustomersPatchCall) Fields(s ...googleapi.Field) *AccountsCustomersPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsCustomersPatchCall) Header ¶
func (c *AccountsCustomersPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AccountsCustomersPatchCall) UpdateMask ¶
func (c *AccountsCustomersPatchCall) UpdateMask(updateMask string) *AccountsCustomersPatchCall
UpdateMask sets the optional parameter "updateMask": The update mask that applies to the resource.
type AccountsCustomersProvisionCloudIdentityCall ¶
type AccountsCustomersProvisionCloudIdentityCall struct {
// contains filtered or unexported fields
}
func (*AccountsCustomersProvisionCloudIdentityCall) Context ¶
func (c *AccountsCustomersProvisionCloudIdentityCall) Context(ctx context.Context) *AccountsCustomersProvisionCloudIdentityCall
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 (*AccountsCustomersProvisionCloudIdentityCall) Do ¶
func (c *AccountsCustomersProvisionCloudIdentityCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
Do executes the "cloudchannel.accounts.customers.provisionCloudIdentity" call. Exactly one of *GoogleLongrunningOperation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleLongrunningOperation.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 (*AccountsCustomersProvisionCloudIdentityCall) Fields ¶
func (c *AccountsCustomersProvisionCloudIdentityCall) Fields(s ...googleapi.Field) *AccountsCustomersProvisionCloudIdentityCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsCustomersProvisionCloudIdentityCall) Header ¶
func (c *AccountsCustomersProvisionCloudIdentityCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AccountsCustomersService ¶
type AccountsCustomersService struct { Entitlements *AccountsCustomersEntitlementsService // contains filtered or unexported fields }
func NewAccountsCustomersService ¶
func NewAccountsCustomersService(s *Service) *AccountsCustomersService
func (*AccountsCustomersService) Create ¶
func (r *AccountsCustomersService) Create(parent string, googlecloudchannelv1customer *GoogleCloudChannelV1Customer) *AccountsCustomersCreateCall
Create: Creates a new Customer resource under the reseller or distributor account. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request. * INVALID_ARGUMENT: * Required request parameters are missing or invalid. * Domain field value doesn't match the primary email domain. Return value: The newly created Customer resource.
- parent: The resource name of reseller account in which to create the customer. Parent uses the format: accounts/{account_id}.
func (*AccountsCustomersService) Delete ¶
func (r *AccountsCustomersService) Delete(name string) *AccountsCustomersDeleteCall
Delete: Deletes the given Customer permanently. Possible error codes: * PERMISSION_DENIED: The account making the request does not own this customer. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * FAILED_PRECONDITION: The customer has existing entitlements. * NOT_FOUND: No Customer resource found for the name in the request.
- name: The resource name of the customer to delete.
func (*AccountsCustomersService) Get ¶
func (r *AccountsCustomersService) Get(name string) *AccountsCustomersGetCall
Get: Returns the requested Customer resource. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: The customer resource doesn't exist. Usually the result of an invalid name parameter. Return value: The Customer resource.
- name: The resource name of the customer to retrieve. Name uses the format: accounts/{account_id}/customers/{customer_id}.
func (*AccountsCustomersService) Import ¶ added in v0.53.0
func (r *AccountsCustomersService) Import(parent string, googlecloudchannelv1importcustomerrequest *GoogleCloudChannelV1ImportCustomerRequest) *AccountsCustomersImportCall
Import: Imports a Customer from the Cloud Identity associated with the provided Cloud Identity ID or domain before a TransferEntitlements call. If a linked Customer already exists and overwrite_if_exists is true, it will update that Customer's data. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request. * NOT_FOUND: Cloud Identity doesn't exist or was deleted. * INVALID_ARGUMENT: Required parameters are missing, or the auth_token is expired or invalid. * ALREADY_EXISTS: A customer already exists and has conflicting critical fields. Requires an overwrite. Return value: The Customer.
- parent: The resource name of the reseller's account. Parent takes the format: accounts/{account_id} or accounts/{account_id}/channelPartnerLinks/{channel_partner_id}.
func (*AccountsCustomersService) List ¶
func (r *AccountsCustomersService) List(parent string) *AccountsCustomersListCall
List: List Customers. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request. * INVALID_ARGUMENT: Required request parameters are missing or invalid. Return value: List of Customers, or an empty list if there are no customers.
- parent: The resource name of the reseller account to list customers from. Parent uses the format: accounts/{account_id}.
func (*AccountsCustomersService) ListPurchasableOffers ¶
func (r *AccountsCustomersService) ListPurchasableOffers(customer string) *AccountsCustomersListPurchasableOffersCall
ListPurchasableOffers: Lists the following: * Offers that you can purchase for a customer. * Offers that you can change for an entitlement. Possible error codes: * PERMISSION_DENIED: The customer doesn't belong to the reseller * INVALID_ARGUMENT: Required request parameters are missing or invalid.
- customer: The resource name of the customer to list Offers for. Format: accounts/{account_id}/customers/{customer_id}.
func (*AccountsCustomersService) ListPurchasableSkus ¶
func (r *AccountsCustomersService) ListPurchasableSkus(customer string) *AccountsCustomersListPurchasableSkusCall
ListPurchasableSkus: Lists the following: * SKUs that you can purchase for a customer * SKUs that you can upgrade or downgrade for an entitlement. Possible error codes: * PERMISSION_DENIED: The customer doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters are missing or invalid.
- customer: The resource name of the customer to list SKUs for. Format: accounts/{account_id}/customers/{customer_id}.
func (*AccountsCustomersService) Patch ¶
func (r *AccountsCustomersService) Patch(name string, googlecloudchannelv1customer *GoogleCloudChannelV1Customer) *AccountsCustomersPatchCall
Patch: Updates an existing Customer resource for the reseller or distributor. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: No Customer resource found for the name in the request. Return value: The updated Customer resource.
- name: Output only. Resource name of the customer. Format: accounts/{account_id}/customers/{customer_id}.
func (*AccountsCustomersService) ProvisionCloudIdentity ¶
func (r *AccountsCustomersService) ProvisionCloudIdentity(customer string, googlecloudchannelv1provisioncloudidentityrequest *GoogleCloudChannelV1ProvisionCloudIdentityRequest) *AccountsCustomersProvisionCloudIdentityCall
ProvisionCloudIdentity: Creates a Cloud Identity for the given customer using the customer's information, or the information provided here. Possible error codes: * PERMISSION_DENIED: The customer doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: The customer was not found. * ALREADY_EXISTS: The customer's primary email already exists. Retry after changing the customer's primary contact email. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The ID of a long-running operation. To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata contains an instance of OperationMetadata.
- customer: Resource name of the customer. Format: accounts/{account_id}/customers/{customer_id}.
func (*AccountsCustomersService) TransferEntitlements ¶
func (r *AccountsCustomersService) TransferEntitlements(parent string, googlecloudchannelv1transferentitlementsrequest *GoogleCloudChannelV1TransferEntitlementsRequest) *AccountsCustomersTransferEntitlementsCall
TransferEntitlements: Transfers customer entitlements to new reseller. Possible error codes: * PERMISSION_DENIED: The customer doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: The customer or offer resource was not found. * ALREADY_EXISTS: The SKU was already transferred for the customer. * CONDITION_NOT_MET or FAILED_PRECONDITION: * The SKU requires domain verification to transfer, but the domain is not verified. * An Add-On SKU (example, Vault or Drive) is missing the pre-requisite SKU (example, G Suite Basic). * (Developer accounts only) Reseller and resold domain must meet the following naming requirements: * Domain names must start with goog-test. * Domain names must include the reseller domain. * Specify all transferring entitlements. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The ID of a long-running operation. To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata will contain an instance of OperationMetadata.
- parent: The resource name of the reseller's customer account that will receive transferred entitlements. Parent uses the format: accounts/{account_id}/customers/{customer_id}.
func (*AccountsCustomersService) TransferEntitlementsToGoogle ¶
func (r *AccountsCustomersService) TransferEntitlementsToGoogle(parent string, googlecloudchannelv1transferentitlementstogooglerequest *GoogleCloudChannelV1TransferEntitlementsToGoogleRequest) *AccountsCustomersTransferEntitlementsToGoogleCall
TransferEntitlementsToGoogle: Transfers customer entitlements from their current reseller to Google. Possible error codes: * PERMISSION_DENIED: The customer doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: The customer or offer resource was not found. * ALREADY_EXISTS: The SKU was already transferred for the customer. * CONDITION_NOT_MET or FAILED_PRECONDITION: * The SKU requires domain verification to transfer, but the domain is not verified. * An Add-On SKU (example, Vault or Drive) is missing the pre-requisite SKU (example, G Suite Basic). * (Developer accounts only) Reseller and resold domain must meet the following naming requirements: * Domain names must start with goog-test. * Domain names must include the reseller domain. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The ID of a long-running operation. To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The response will contain google.protobuf.Empty on success. The Operation metadata will contain an instance of OperationMetadata.
- parent: The resource name of the reseller's customer account where the entitlements transfer from. Parent uses the format: accounts/{account_id}/customers/{customer_id}.
type AccountsCustomersTransferEntitlementsCall ¶
type AccountsCustomersTransferEntitlementsCall struct {
// contains filtered or unexported fields
}
func (*AccountsCustomersTransferEntitlementsCall) Context ¶
func (c *AccountsCustomersTransferEntitlementsCall) Context(ctx context.Context) *AccountsCustomersTransferEntitlementsCall
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 (*AccountsCustomersTransferEntitlementsCall) Do ¶
func (c *AccountsCustomersTransferEntitlementsCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
Do executes the "cloudchannel.accounts.customers.transferEntitlements" call. Exactly one of *GoogleLongrunningOperation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleLongrunningOperation.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 (*AccountsCustomersTransferEntitlementsCall) Fields ¶
func (c *AccountsCustomersTransferEntitlementsCall) Fields(s ...googleapi.Field) *AccountsCustomersTransferEntitlementsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsCustomersTransferEntitlementsCall) Header ¶
func (c *AccountsCustomersTransferEntitlementsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AccountsCustomersTransferEntitlementsToGoogleCall ¶
type AccountsCustomersTransferEntitlementsToGoogleCall struct {
// contains filtered or unexported fields
}
func (*AccountsCustomersTransferEntitlementsToGoogleCall) Context ¶
func (c *AccountsCustomersTransferEntitlementsToGoogleCall) Context(ctx context.Context) *AccountsCustomersTransferEntitlementsToGoogleCall
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 (*AccountsCustomersTransferEntitlementsToGoogleCall) Do ¶
func (c *AccountsCustomersTransferEntitlementsToGoogleCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
Do executes the "cloudchannel.accounts.customers.transferEntitlementsToGoogle" call. Exactly one of *GoogleLongrunningOperation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleLongrunningOperation.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 (*AccountsCustomersTransferEntitlementsToGoogleCall) Fields ¶
func (c *AccountsCustomersTransferEntitlementsToGoogleCall) Fields(s ...googleapi.Field) *AccountsCustomersTransferEntitlementsToGoogleCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsCustomersTransferEntitlementsToGoogleCall) Header ¶
func (c *AccountsCustomersTransferEntitlementsToGoogleCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AccountsListSubscribersCall ¶
type AccountsListSubscribersCall struct {
// contains filtered or unexported fields
}
func (*AccountsListSubscribersCall) Context ¶
func (c *AccountsListSubscribersCall) Context(ctx context.Context) *AccountsListSubscribersCall
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 (*AccountsListSubscribersCall) Do ¶
func (c *AccountsListSubscribersCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1ListSubscribersResponse, error)
Do executes the "cloudchannel.accounts.listSubscribers" call. Exactly one of *GoogleCloudChannelV1ListSubscribersResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudChannelV1ListSubscribersResponse.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 (*AccountsListSubscribersCall) Fields ¶
func (c *AccountsListSubscribersCall) Fields(s ...googleapi.Field) *AccountsListSubscribersCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsListSubscribersCall) Header ¶
func (c *AccountsListSubscribersCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AccountsListSubscribersCall) IfNoneMatch ¶
func (c *AccountsListSubscribersCall) IfNoneMatch(entityTag string) *AccountsListSubscribersCall
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 (*AccountsListSubscribersCall) PageSize ¶
func (c *AccountsListSubscribersCall) PageSize(pageSize int64) *AccountsListSubscribersCall
PageSize sets the optional parameter "pageSize": The maximum number of service accounts to return. The service may return fewer than this value. If unspecified, returns at most 100 service accounts. The maximum value is 1000; the server will coerce values above 1000.
func (*AccountsListSubscribersCall) PageToken ¶
func (c *AccountsListSubscribersCall) PageToken(pageToken string) *AccountsListSubscribersCall
PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListSubscribers` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListSubscribers` must match the call that provided the page token.
func (*AccountsListSubscribersCall) Pages ¶
func (c *AccountsListSubscribersCall) Pages(ctx context.Context, f func(*GoogleCloudChannelV1ListSubscribersResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type AccountsListTransferableOffersCall ¶
type AccountsListTransferableOffersCall struct {
// contains filtered or unexported fields
}
func (*AccountsListTransferableOffersCall) Context ¶
func (c *AccountsListTransferableOffersCall) Context(ctx context.Context) *AccountsListTransferableOffersCall
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 (*AccountsListTransferableOffersCall) Do ¶
func (c *AccountsListTransferableOffersCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1ListTransferableOffersResponse, error)
Do executes the "cloudchannel.accounts.listTransferableOffers" call. Exactly one of *GoogleCloudChannelV1ListTransferableOffersResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudChannelV1ListTransferableOffersResponse.ServerResponse.Hea der or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AccountsListTransferableOffersCall) Fields ¶
func (c *AccountsListTransferableOffersCall) Fields(s ...googleapi.Field) *AccountsListTransferableOffersCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsListTransferableOffersCall) Header ¶
func (c *AccountsListTransferableOffersCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AccountsListTransferableOffersCall) Pages ¶
func (c *AccountsListTransferableOffersCall) Pages(ctx context.Context, f func(*GoogleCloudChannelV1ListTransferableOffersResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type AccountsListTransferableSkusCall ¶
type AccountsListTransferableSkusCall struct {
// contains filtered or unexported fields
}
func (*AccountsListTransferableSkusCall) Context ¶
func (c *AccountsListTransferableSkusCall) Context(ctx context.Context) *AccountsListTransferableSkusCall
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 (*AccountsListTransferableSkusCall) Do ¶
func (c *AccountsListTransferableSkusCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1ListTransferableSkusResponse, error)
Do executes the "cloudchannel.accounts.listTransferableSkus" call. Exactly one of *GoogleCloudChannelV1ListTransferableSkusResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudChannelV1ListTransferableSkusResponse.ServerResponse.Heade r 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 (*AccountsListTransferableSkusCall) Fields ¶
func (c *AccountsListTransferableSkusCall) Fields(s ...googleapi.Field) *AccountsListTransferableSkusCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsListTransferableSkusCall) Header ¶
func (c *AccountsListTransferableSkusCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AccountsListTransferableSkusCall) Pages ¶
func (c *AccountsListTransferableSkusCall) Pages(ctx context.Context, f func(*GoogleCloudChannelV1ListTransferableSkusResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type AccountsOffersListCall ¶
type AccountsOffersListCall struct {
// contains filtered or unexported fields
}
func (*AccountsOffersListCall) Context ¶
func (c *AccountsOffersListCall) Context(ctx context.Context) *AccountsOffersListCall
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 (*AccountsOffersListCall) Do ¶
func (c *AccountsOffersListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1ListOffersResponse, error)
Do executes the "cloudchannel.accounts.offers.list" call. Exactly one of *GoogleCloudChannelV1ListOffersResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudChannelV1ListOffersResponse.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 (*AccountsOffersListCall) Fields ¶
func (c *AccountsOffersListCall) Fields(s ...googleapi.Field) *AccountsOffersListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsOffersListCall) Filter ¶
func (c *AccountsOffersListCall) Filter(filter string) *AccountsOffersListCall
Filter sets the optional parameter "filter": The expression to filter results by name (name of the Offer), sku.name (name of the SKU), or sku.product.name (name of the Product). Example 1: sku.product.name=products/p1 AND sku.name!=products/p1/skus/s1 Example 2: name=accounts/a1/offers/o1
func (*AccountsOffersListCall) Header ¶
func (c *AccountsOffersListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AccountsOffersListCall) IfNoneMatch ¶
func (c *AccountsOffersListCall) IfNoneMatch(entityTag string) *AccountsOffersListCall
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 (*AccountsOffersListCall) LanguageCode ¶
func (c *AccountsOffersListCall) LanguageCode(languageCode string) *AccountsOffersListCall
LanguageCode sets the optional parameter "languageCode": The BCP-47 language code. For example, "en-US". The response will localize in the corresponding language code, if specified. The default value is "en-US".
func (*AccountsOffersListCall) PageSize ¶
func (c *AccountsOffersListCall) PageSize(pageSize int64) *AccountsOffersListCall
PageSize sets the optional parameter "pageSize": Requested page size. Server might return fewer results than requested. If unspecified, returns at most 500 Offers. The maximum value is 1000; the server will coerce values above 1000.
func (*AccountsOffersListCall) PageToken ¶
func (c *AccountsOffersListCall) PageToken(pageToken string) *AccountsOffersListCall
PageToken sets the optional parameter "pageToken": A token for a page of results other than the first page.
func (*AccountsOffersListCall) Pages ¶
func (c *AccountsOffersListCall) Pages(ctx context.Context, f func(*GoogleCloudChannelV1ListOffersResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type AccountsOffersService ¶
type AccountsOffersService struct {
// contains filtered or unexported fields
}
func NewAccountsOffersService ¶
func NewAccountsOffersService(s *Service) *AccountsOffersService
func (*AccountsOffersService) List ¶
func (r *AccountsOffersService) List(parent string) *AccountsOffersListCall
List: Lists the Offers the reseller can sell. Possible error codes: * INVALID_ARGUMENT: Required request parameters are missing or invalid.
- parent: The resource name of the reseller account from which to list Offers. Parent uses the format: accounts/{account_id}.
type AccountsRegisterCall ¶
type AccountsRegisterCall struct {
// contains filtered or unexported fields
}
func (*AccountsRegisterCall) Context ¶
func (c *AccountsRegisterCall) Context(ctx context.Context) *AccountsRegisterCall
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 (*AccountsRegisterCall) Do ¶
func (c *AccountsRegisterCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1RegisterSubscriberResponse, error)
Do executes the "cloudchannel.accounts.register" call. Exactly one of *GoogleCloudChannelV1RegisterSubscriberResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudChannelV1RegisterSubscriberResponse.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 (*AccountsRegisterCall) Fields ¶
func (c *AccountsRegisterCall) Fields(s ...googleapi.Field) *AccountsRegisterCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsRegisterCall) Header ¶
func (c *AccountsRegisterCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AccountsService ¶
type AccountsService struct { ChannelPartnerLinks *AccountsChannelPartnerLinksService Customers *AccountsCustomersService Offers *AccountsOffersService // contains filtered or unexported fields }
func NewAccountsService ¶
func NewAccountsService(s *Service) *AccountsService
func (*AccountsService) CheckCloudIdentityAccountsExist ¶
func (r *AccountsService) CheckCloudIdentityAccountsExist(parent string, googlecloudchannelv1checkcloudidentityaccountsexistrequest *GoogleCloudChannelV1CheckCloudIdentityAccountsExistRequest) *AccountsCheckCloudIdentityAccountsExistCall
CheckCloudIdentityAccountsExist: Confirms the existence of Cloud Identity accounts based on the domain and if the Cloud Identity accounts are owned by the reseller. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * INVALID_VALUE: Invalid domain value in the request. Return value: A list of CloudIdentityCustomerAccount resources for the domain (may be empty) Note: in the v1alpha1 version of the API, a NOT_FOUND error returns if no CloudIdentityCustomerAccount resources match the domain.
- parent: The reseller account's resource name. Parent uses the format: accounts/{account_id}.
func (*AccountsService) ListSubscribers ¶
func (r *AccountsService) ListSubscribers(account string) *AccountsListSubscribersCall
ListSubscribers: Lists service accounts with subscriber privileges on the Cloud Pub/Sub topic created for this Channel Services account. Possible error codes: * PERMISSION_DENIED: The reseller account making the request and the provided reseller account are different, or the impersonated user is not a super admin. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: The topic resource doesn't exist. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: A list of service email addresses.
- account: Resource name of the account.
func (*AccountsService) ListTransferableOffers ¶
func (r *AccountsService) ListTransferableOffers(parent string, googlecloudchannelv1listtransferableoffersrequest *GoogleCloudChannelV1ListTransferableOffersRequest) *AccountsListTransferableOffersCall
ListTransferableOffers: List TransferableOffers of a customer based on Cloud Identity ID or Customer Name in the request. Use this method when a reseller gets the entitlement information of an unowned customer. The reseller should provide the customer's Cloud Identity ID or Customer Name. Possible error codes: * PERMISSION_DENIED: * The customer doesn't belong to the reseller and has no auth token. * The supplied auth token is invalid. * The reseller account making the request is different from the reseller account in the query. * INVALID_ARGUMENT: Required request parameters are missing or invalid. Return value: List of TransferableOffer for the given customer and SKU.
- parent: The resource name of the reseller's account.
func (*AccountsService) ListTransferableSkus ¶
func (r *AccountsService) ListTransferableSkus(parent string, googlecloudchannelv1listtransferableskusrequest *GoogleCloudChannelV1ListTransferableSkusRequest) *AccountsListTransferableSkusCall
ListTransferableSkus: List TransferableSkus of a customer based on the Cloud Identity ID or Customer Name in the request. Use this method to list the entitlements information of an unowned customer. You should provide the customer's Cloud Identity ID or Customer Name. Possible error codes: * PERMISSION_DENIED: * The customer doesn't belong to the reseller and has no auth token. * The supplied auth token is invalid. * The reseller account making the request is different from the reseller account in the query. * INVALID_ARGUMENT: Required request parameters are missing or invalid. Return value: A list of the customer's TransferableSku.
- parent: The reseller account's resource name. Parent uses the format: accounts/{account_id}.
func (*AccountsService) Register ¶
func (r *AccountsService) Register(account string, googlecloudchannelv1registersubscriberrequest *GoogleCloudChannelV1RegisterSubscriberRequest) *AccountsRegisterCall
Register: Registers a service account with subscriber privileges on the Cloud Pub/Sub topic for this Channel Services account. After you create a subscriber, you get the events through SubscriberEvent Possible error codes: * PERMISSION_DENIED: The reseller account making the request and the provided reseller account are different, or the impersonated user is not a super admin. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The topic name with the registered service email address.
- account: Resource name of the account.
func (*AccountsService) Unregister ¶
func (r *AccountsService) Unregister(account string, googlecloudchannelv1unregistersubscriberrequest *GoogleCloudChannelV1UnregisterSubscriberRequest) *AccountsUnregisterCall
Unregister: Unregisters a service account with subscriber privileges on the Cloud Pub/Sub topic created for this Channel Services account. If there are no service accounts left with subscriber privileges, this deletes the topic. You can call ListSubscribers to check for these accounts. Possible error codes: * PERMISSION_DENIED: The reseller account making the request and the provided reseller account are different, or the impersonated user is not a super admin. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: The topic resource doesn't exist. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The topic name that unregistered the service email address. Returns a success response if the service email address wasn't registered with the topic.
- account: Resource name of the account.
type AccountsUnregisterCall ¶
type AccountsUnregisterCall struct {
// contains filtered or unexported fields
}
func (*AccountsUnregisterCall) Context ¶
func (c *AccountsUnregisterCall) Context(ctx context.Context) *AccountsUnregisterCall
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 (*AccountsUnregisterCall) Do ¶
func (c *AccountsUnregisterCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1UnregisterSubscriberResponse, error)
Do executes the "cloudchannel.accounts.unregister" call. Exactly one of *GoogleCloudChannelV1UnregisterSubscriberResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudChannelV1UnregisterSubscriberResponse.ServerResponse.Heade r 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 (*AccountsUnregisterCall) Fields ¶
func (c *AccountsUnregisterCall) Fields(s ...googleapi.Field) *AccountsUnregisterCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsUnregisterCall) Header ¶
func (c *AccountsUnregisterCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type GoogleCloudChannelV1ActivateEntitlementRequest ¶
type GoogleCloudChannelV1ActivateEntitlementRequest struct { // RequestId: Optional. You can specify an optional unique request ID, // and if you need to retry your request, the server will know to ignore // the request if it's complete. For example, you make an initial // request and the request times out. If you make the request again with // the same request ID, the server can check if it received the original // operation with the same request ID. If it did, it will ignore the // second request. The request ID must be a valid UUID // (https://tools.ietf.org/html/rfc4122) with the exception that zero // UUID is not supported (`00000000-0000-0000-0000-000000000000`). RequestId string `json:"requestId,omitempty"` // ForceSendFields is a list of field names (e.g. "RequestId") 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. "RequestId") 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:"-"` }
GoogleCloudChannelV1ActivateEntitlementRequest: Request message for CloudChannelService.ActivateEntitlement.
func (*GoogleCloudChannelV1ActivateEntitlementRequest) MarshalJSON ¶
func (s *GoogleCloudChannelV1ActivateEntitlementRequest) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1AdminUser ¶
type GoogleCloudChannelV1AdminUser struct { // Email: Primary email of the admin user. Email string `json:"email,omitempty"` // FamilyName: Family name of the admin user. FamilyName string `json:"familyName,omitempty"` // GivenName: Given name of the admin user. GivenName string `json:"givenName,omitempty"` // ForceSendFields is a list of field names (e.g. "Email") 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. "Email") 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:"-"` }
GoogleCloudChannelV1AdminUser: Information needed to create an Admin User for Google Workspace.
func (*GoogleCloudChannelV1AdminUser) MarshalJSON ¶
func (s *GoogleCloudChannelV1AdminUser) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1AssociationInfo ¶
type GoogleCloudChannelV1AssociationInfo struct { // BaseEntitlement: The name of the base entitlement, for which this // entitlement is an add-on. BaseEntitlement string `json:"baseEntitlement,omitempty"` // ForceSendFields is a list of field names (e.g. "BaseEntitlement") 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. "BaseEntitlement") 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:"-"` }
GoogleCloudChannelV1AssociationInfo: Association links that an entitlement has to other entitlements.
func (*GoogleCloudChannelV1AssociationInfo) MarshalJSON ¶
func (s *GoogleCloudChannelV1AssociationInfo) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1CancelEntitlementRequest ¶
type GoogleCloudChannelV1CancelEntitlementRequest struct { // RequestId: Optional. You can specify an optional unique request ID, // and if you need to retry your request, the server will know to ignore // the request if it's complete. For example, you make an initial // request and the request times out. If you make the request again with // the same request ID, the server can check if it received the original // operation with the same request ID. If it did, it will ignore the // second request. The request ID must be a valid UUID // (https://tools.ietf.org/html/rfc4122) with the exception that zero // UUID is not supported (`00000000-0000-0000-0000-000000000000`). RequestId string `json:"requestId,omitempty"` // ForceSendFields is a list of field names (e.g. "RequestId") 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. "RequestId") 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:"-"` }
GoogleCloudChannelV1CancelEntitlementRequest: Request message for CloudChannelService.CancelEntitlement.
func (*GoogleCloudChannelV1CancelEntitlementRequest) MarshalJSON ¶
func (s *GoogleCloudChannelV1CancelEntitlementRequest) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1ChangeOfferRequest ¶
type GoogleCloudChannelV1ChangeOfferRequest struct { // Offer: Required. New Offer. Format: // accounts/{account_id}/offers/{offer_id}. Offer string `json:"offer,omitempty"` // Parameters: Optional. Parameters needed to purchase the Offer. To // view the available Parameters refer to the // Offer.parameter_definitions from the desired offer. Parameters []*GoogleCloudChannelV1Parameter `json:"parameters,omitempty"` // PurchaseOrderId: Optional. Purchase order id provided by the // reseller. PurchaseOrderId string `json:"purchaseOrderId,omitempty"` // RequestId: Optional. You can specify an optional unique request ID, // and if you need to retry your request, the server will know to ignore // the request if it's complete. For example, you make an initial // request and the request times out. If you make the request again with // the same request ID, the server can check if it received the original // operation with the same request ID. If it did, it will ignore the // second request. The request ID must be a valid UUID // (https://tools.ietf.org/html/rfc4122) with the exception that zero // UUID is not supported (`00000000-0000-0000-0000-000000000000`). RequestId string `json:"requestId,omitempty"` // ForceSendFields is a list of field names (e.g. "Offer") 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. "Offer") 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:"-"` }
GoogleCloudChannelV1ChangeOfferRequest: Request message for CloudChannelService.ChangeOffer.
func (*GoogleCloudChannelV1ChangeOfferRequest) MarshalJSON ¶
func (s *GoogleCloudChannelV1ChangeOfferRequest) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1ChangeParametersRequest ¶
type GoogleCloudChannelV1ChangeParametersRequest struct { // Parameters: Required. Entitlement parameters to update. You can only // change editable parameters. To view the available Parameters for a // request, refer to the Offer.parameter_definitions from the desired // offer. Parameters []*GoogleCloudChannelV1Parameter `json:"parameters,omitempty"` // PurchaseOrderId: Optional. Purchase order ID provided by the // reseller. PurchaseOrderId string `json:"purchaseOrderId,omitempty"` // RequestId: Optional. You can specify an optional unique request ID, // and if you need to retry your request, the server will know to ignore // the request if it's complete. For example, you make an initial // request and the request times out. If you make the request again with // the same request ID, the server can check if it received the original // operation with the same request ID. If it did, it will ignore the // second request. The request ID must be a valid UUID // (https://tools.ietf.org/html/rfc4122) with the exception that zero // UUID is not supported (`00000000-0000-0000-0000-000000000000`). RequestId string `json:"requestId,omitempty"` // ForceSendFields is a list of field names (e.g. "Parameters") 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. "Parameters") 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:"-"` }
GoogleCloudChannelV1ChangeParametersRequest: Request message for CloudChannelService.ChangeParametersRequest.
func (*GoogleCloudChannelV1ChangeParametersRequest) MarshalJSON ¶
func (s *GoogleCloudChannelV1ChangeParametersRequest) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1ChangeRenewalSettingsRequest ¶
type GoogleCloudChannelV1ChangeRenewalSettingsRequest struct { // RenewalSettings: Required. New renewal settings. RenewalSettings *GoogleCloudChannelV1RenewalSettings `json:"renewalSettings,omitempty"` // RequestId: Optional. You can specify an optional unique request ID, // and if you need to retry your request, the server will know to ignore // the request if it's complete. For example, you make an initial // request and the request times out. If you make the request again with // the same request ID, the server can check if it received the original // operation with the same request ID. If it did, it will ignore the // second request. The request ID must be a valid UUID // (https://tools.ietf.org/html/rfc4122) with the exception that zero // UUID is not supported (`00000000-0000-0000-0000-000000000000`). RequestId string `json:"requestId,omitempty"` // ForceSendFields is a list of field names (e.g. "RenewalSettings") 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. "RenewalSettings") 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:"-"` }
GoogleCloudChannelV1ChangeRenewalSettingsRequest: Request message for CloudChannelService.ChangeRenewalSettings.
func (*GoogleCloudChannelV1ChangeRenewalSettingsRequest) MarshalJSON ¶
func (s *GoogleCloudChannelV1ChangeRenewalSettingsRequest) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1ChannelPartnerLink ¶
type GoogleCloudChannelV1ChannelPartnerLink struct { // ChannelPartnerCloudIdentityInfo: Output only. Cloud Identity info of // the channel partner (IR). ChannelPartnerCloudIdentityInfo *GoogleCloudChannelV1CloudIdentityInfo `json:"channelPartnerCloudIdentityInfo,omitempty"` // CreateTime: Output only. Timestamp of when the channel partner link // is created. CreateTime string `json:"createTime,omitempty"` // InviteLinkUri: Output only. URI of the web page where partner accepts // the link invitation. InviteLinkUri string `json:"inviteLinkUri,omitempty"` // LinkState: Required. State of the channel partner link. // // Possible values: // "CHANNEL_PARTNER_LINK_STATE_UNSPECIFIED" - Not used. // "INVITED" - An invitation has been sent to the reseller to create a // channel partner link. // "ACTIVE" - Status when the reseller is active. // "REVOKED" - Status when the reseller has been revoked by the // distributor. // "SUSPENDED" - Status when the reseller is suspended by Google or // distributor. LinkState string `json:"linkState,omitempty"` // Name: Output only. Resource name for the channel partner link, in the // format accounts/{account_id}/channelPartnerLinks/{id}. Name string `json:"name,omitempty"` // PublicId: Output only. Public identifier that a customer must use to // generate a transfer token to move to this distributor-reseller // combination. PublicId string `json:"publicId,omitempty"` // ResellerCloudIdentityId: Required. Cloud Identity ID of the linked // reseller. ResellerCloudIdentityId string `json:"resellerCloudIdentityId,omitempty"` // UpdateTime: Output only. Timestamp of when the channel partner link // is updated. UpdateTime string `json:"updateTime,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. // "ChannelPartnerCloudIdentityInfo") 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. // "ChannelPartnerCloudIdentityInfo") 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:"-"` }
GoogleCloudChannelV1ChannelPartnerLink: Entity representing a link between distributors and their indirect resellers in an n-tier resale channel.
func (*GoogleCloudChannelV1ChannelPartnerLink) MarshalJSON ¶
func (s *GoogleCloudChannelV1ChannelPartnerLink) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1CheckCloudIdentityAccountsExistRequest ¶
type GoogleCloudChannelV1CheckCloudIdentityAccountsExistRequest struct { // Domain: Required. Domain to fetch for Cloud Identity account // customer. Domain string `json:"domain,omitempty"` // ForceSendFields is a list of field names (e.g. "Domain") 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. "Domain") 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:"-"` }
GoogleCloudChannelV1CheckCloudIdentityAccountsExistRequest: Request message for CloudChannelService.CheckCloudIdentityAccountsExist.
func (*GoogleCloudChannelV1CheckCloudIdentityAccountsExistRequest) MarshalJSON ¶
func (s *GoogleCloudChannelV1CheckCloudIdentityAccountsExistRequest) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1CheckCloudIdentityAccountsExistResponse ¶
type GoogleCloudChannelV1CheckCloudIdentityAccountsExistResponse struct { // CloudIdentityAccounts: The Cloud Identity accounts associated with // the domain. CloudIdentityAccounts []*GoogleCloudChannelV1CloudIdentityCustomerAccount `json:"cloudIdentityAccounts,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. // "CloudIdentityAccounts") 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. "CloudIdentityAccounts") 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:"-"` }
GoogleCloudChannelV1CheckCloudIdentityAccountsExistResponse: Response message for CloudChannelService.CheckCloudIdentityAccountsExist.
func (*GoogleCloudChannelV1CheckCloudIdentityAccountsExistResponse) MarshalJSON ¶
func (s *GoogleCloudChannelV1CheckCloudIdentityAccountsExistResponse) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1CloudIdentityCustomerAccount ¶
type GoogleCloudChannelV1CloudIdentityCustomerAccount struct { // CustomerCloudIdentityId: If existing = true, the Cloud Identity ID of // the customer. CustomerCloudIdentityId string `json:"customerCloudIdentityId,omitempty"` // CustomerName: If owned = true, the name of the customer that owns the // Cloud Identity account. Customer_name uses the format: // accounts/{account_id}/customers/{customer_id} CustomerName string `json:"customerName,omitempty"` // Existing: Returns true if a Cloud Identity account exists for a // specific domain. Existing bool `json:"existing,omitempty"` // Owned: Returns true if the Cloud Identity account is associated with // a customer of the Channel Services partner. Owned bool `json:"owned,omitempty"` // ForceSendFields is a list of field names (e.g. // "CustomerCloudIdentityId") 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. "CustomerCloudIdentityId") // 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:"-"` }
GoogleCloudChannelV1CloudIdentityCustomerAccount: Entity representing a Cloud Identity account that may be associated with a Channel Services API partner.
func (*GoogleCloudChannelV1CloudIdentityCustomerAccount) MarshalJSON ¶
func (s *GoogleCloudChannelV1CloudIdentityCustomerAccount) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1CloudIdentityInfo ¶
type GoogleCloudChannelV1CloudIdentityInfo struct { // AdminConsoleUri: Output only. URI of Customer's Admin console // dashboard. AdminConsoleUri string `json:"adminConsoleUri,omitempty"` // AlternateEmail: The alternate email. AlternateEmail string `json:"alternateEmail,omitempty"` // CustomerType: CustomerType indicates verification type needed for // using services. // // Possible values: // "CUSTOMER_TYPE_UNSPECIFIED" - Not used. // "DOMAIN" - Domain-owning customer which needs domain verification // to use services. // "TEAM" - Team customer which needs email verification to use // services. CustomerType string `json:"customerType,omitempty"` // EduData: Edu information about the customer. EduData *GoogleCloudChannelV1EduData `json:"eduData,omitempty"` // IsDomainVerified: Output only. Whether the domain is verified. This // field is not returned for a Customer's cloud_identity_info resource. // Partners can use the domains.get() method of the Workspace SDK's // Directory API, or listen to the PRIMARY_DOMAIN_VERIFIED Pub/Sub event // in to track domain verification of their resolve Workspace customers. IsDomainVerified bool `json:"isDomainVerified,omitempty"` // LanguageCode: Language code. LanguageCode string `json:"languageCode,omitempty"` // PhoneNumber: Phone number associated with the Cloud Identity. PhoneNumber string `json:"phoneNumber,omitempty"` // PrimaryDomain: Output only. The primary domain name. PrimaryDomain string `json:"primaryDomain,omitempty"` // ForceSendFields is a list of field names (e.g. "AdminConsoleUri") 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. "AdminConsoleUri") 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:"-"` }
GoogleCloudChannelV1CloudIdentityInfo: Cloud Identity information for the Cloud Channel Customer.
func (*GoogleCloudChannelV1CloudIdentityInfo) MarshalJSON ¶
func (s *GoogleCloudChannelV1CloudIdentityInfo) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1CommitmentSettings ¶
type GoogleCloudChannelV1CommitmentSettings struct { // EndTime: Output only. Commitment end timestamp. EndTime string `json:"endTime,omitempty"` // RenewalSettings: Optional. Renewal settings applicable for a // commitment-based Offer. RenewalSettings *GoogleCloudChannelV1RenewalSettings `json:"renewalSettings,omitempty"` // StartTime: Output only. Commitment start timestamp. StartTime string `json:"startTime,omitempty"` // ForceSendFields is a list of field names (e.g. "EndTime") 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. "EndTime") 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:"-"` }
GoogleCloudChannelV1CommitmentSettings: Commitment settings for commitment-based offers.
func (*GoogleCloudChannelV1CommitmentSettings) MarshalJSON ¶
func (s *GoogleCloudChannelV1CommitmentSettings) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1Constraints ¶
type GoogleCloudChannelV1Constraints struct { // CustomerConstraints: Represents constraints required to purchase the // Offer for a customer. CustomerConstraints *GoogleCloudChannelV1CustomerConstraints `json:"customerConstraints,omitempty"` // ForceSendFields is a list of field names (e.g. "CustomerConstraints") // 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. "CustomerConstraints") 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:"-"` }
GoogleCloudChannelV1Constraints: Represents the constraints for buying the Offer.
func (*GoogleCloudChannelV1Constraints) MarshalJSON ¶
func (s *GoogleCloudChannelV1Constraints) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1ContactInfo ¶
type GoogleCloudChannelV1ContactInfo struct { // DisplayName: Output only. The customer account contact's display // name, formatted as a combination of the customer's first and last // name. DisplayName string `json:"displayName,omitempty"` // Email: The customer account's contact email. Required for // entitlements that create admin.google.com accounts, and serves as the // customer's username for those accounts. Use this email to invite Team // customers. Email string `json:"email,omitempty"` // FirstName: The customer account contact's first name. Optional for // Team customers. FirstName string `json:"firstName,omitempty"` // LastName: The customer account contact's last name. Optional for Team // customers. LastName string `json:"lastName,omitempty"` // Phone: The customer account's contact phone number. Phone string `json:"phone,omitempty"` // Title: Optional. The customer account contact's job title. Title string `json:"title,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:"-"` }
GoogleCloudChannelV1ContactInfo: Contact information for a customer account.
func (*GoogleCloudChannelV1ContactInfo) MarshalJSON ¶
func (s *GoogleCloudChannelV1ContactInfo) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1CreateEntitlementRequest ¶
type GoogleCloudChannelV1CreateEntitlementRequest struct { // Entitlement: Required. The entitlement to create. Entitlement *GoogleCloudChannelV1Entitlement `json:"entitlement,omitempty"` // RequestId: Optional. You can specify an optional unique request ID, // and if you need to retry your request, the server will know to ignore // the request if it's complete. For example, you make an initial // request and the request times out. If you make the request again with // the same request ID, the server can check if it received the original // operation with the same request ID. If it did, it will ignore the // second request. The request ID must be a valid UUID // (https://tools.ietf.org/html/rfc4122) with the exception that zero // UUID is not supported (`00000000-0000-0000-0000-000000000000`). RequestId string `json:"requestId,omitempty"` // ForceSendFields is a list of field names (e.g. "Entitlement") 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. "Entitlement") 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:"-"` }
GoogleCloudChannelV1CreateEntitlementRequest: Request message for CloudChannelService.CreateEntitlement
func (*GoogleCloudChannelV1CreateEntitlementRequest) MarshalJSON ¶
func (s *GoogleCloudChannelV1CreateEntitlementRequest) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1Customer ¶
type GoogleCloudChannelV1Customer struct { // AlternateEmail: Secondary contact email. You need to provide an // alternate email to create different domains if a primary contact // email already exists. Users will receive a notification with // credentials when you create an admin.google.com account. Secondary // emails are also recovery email addresses. Alternate emails are // optional when you create Team customers. AlternateEmail string `json:"alternateEmail,omitempty"` // ChannelPartnerId: Cloud Identity ID of the customer's channel // partner. Populated only if a channel partner exists for this // customer. ChannelPartnerId string `json:"channelPartnerId,omitempty"` // CloudIdentityId: Output only. The customer's Cloud Identity ID if the // customer has a Cloud Identity resource. CloudIdentityId string `json:"cloudIdentityId,omitempty"` // CloudIdentityInfo: Output only. Cloud Identity information for the // customer. Populated only if a Cloud Identity account exists for this // customer. CloudIdentityInfo *GoogleCloudChannelV1CloudIdentityInfo `json:"cloudIdentityInfo,omitempty"` // CreateTime: Output only. Time when the customer was created. CreateTime string `json:"createTime,omitempty"` // Domain: Required. The customer's primary domain. Must match the // primary contact email's domain. Domain string `json:"domain,omitempty"` // LanguageCode: Optional. The BCP-47 language code, such as "en-US" or // "sr-Latn". For more information, see // https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. LanguageCode string `json:"languageCode,omitempty"` // Name: Output only. Resource name of the customer. Format: // accounts/{account_id}/customers/{customer_id} Name string `json:"name,omitempty"` // OrgDisplayName: Required. Name of the organization that the customer // entity represents. OrgDisplayName string `json:"orgDisplayName,omitempty"` // OrgPostalAddress: Required. The organization address for the // customer. To enforce US laws and embargoes, we require a region and // zip code. You must provide valid addresses for every customer. To set // the customer's language, use the Customer-level language code. OrgPostalAddress *GoogleTypePostalAddress `json:"orgPostalAddress,omitempty"` // PrimaryContactInfo: Primary contact info. PrimaryContactInfo *GoogleCloudChannelV1ContactInfo `json:"primaryContactInfo,omitempty"` // UpdateTime: Output only. Time when the customer was updated. UpdateTime string `json:"updateTime,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AlternateEmail") 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. "AlternateEmail") 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:"-"` }
GoogleCloudChannelV1Customer: Entity representing a customer of a reseller or distributor.
func (*GoogleCloudChannelV1Customer) MarshalJSON ¶
func (s *GoogleCloudChannelV1Customer) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1CustomerConstraints ¶
type GoogleCloudChannelV1CustomerConstraints struct { // AllowedCustomerTypes: Allowed Customer Type. // // Possible values: // "CUSTOMER_TYPE_UNSPECIFIED" - Not used. // "DOMAIN" - Domain-owning customer which needs domain verification // to use services. // "TEAM" - Team customer which needs email verification to use // services. AllowedCustomerTypes []string `json:"allowedCustomerTypes,omitempty"` // AllowedRegions: Allowed geographical regions of the customer. AllowedRegions []string `json:"allowedRegions,omitempty"` // PromotionalOrderTypes: Allowed Promotional Order Type. Present for // Promotional offers. // // Possible values: // "PROMOTIONAL_TYPE_UNSPECIFIED" - Not used. // "NEW_UPGRADE" - Order used for new customers, trial conversions and // upgrades. // "TRANSFER" - All orders for transferring an existing customer. // "PROMOTION_SWITCH" - Orders for modifying an existing customer's // promotion on the same SKU. PromotionalOrderTypes []string `json:"promotionalOrderTypes,omitempty"` // ForceSendFields is a list of field names (e.g. // "AllowedCustomerTypes") 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. "AllowedCustomerTypes") 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:"-"` }
GoogleCloudChannelV1CustomerConstraints: Represents constraints required to purchase the Offer for a customer.
func (*GoogleCloudChannelV1CustomerConstraints) MarshalJSON ¶
func (s *GoogleCloudChannelV1CustomerConstraints) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1CustomerEvent ¶
type GoogleCloudChannelV1CustomerEvent struct { // Customer: Resource name of the customer. Format: // accounts/{account_id}/customers/{customer_id} Customer string `json:"customer,omitempty"` // EventType: Type of event which happened on the customer. // // Possible values: // "TYPE_UNSPECIFIED" - Not used. // "PRIMARY_DOMAIN_CHANGED" - Primary domain for customer was changed. // "PRIMARY_DOMAIN_VERIFIED" - Primary domain of the customer has been // verified. EventType string `json:"eventType,omitempty"` // ForceSendFields is a list of field names (e.g. "Customer") 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. "Customer") 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:"-"` }
GoogleCloudChannelV1CustomerEvent: Represents Pub/Sub message content describing customer update.
func (*GoogleCloudChannelV1CustomerEvent) MarshalJSON ¶
func (s *GoogleCloudChannelV1CustomerEvent) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1EduData ¶
type GoogleCloudChannelV1EduData struct { // InstituteSize: Size of the institute. // // Possible values: // "INSTITUTE_SIZE_UNSPECIFIED" - Not used. // "SIZE_1_100" - 1 - 100 // "SIZE_101_500" - 101 - 500 // "SIZE_501_1000" - 501 - 1,000 // "SIZE_1001_2000" - 1,001 - 2,000 // "SIZE_2001_5000" - 2,001 - 5,000 // "SIZE_5001_10000" - 5,001 - 10,000 // "SIZE_10001_OR_MORE" - 10,001 + InstituteSize string `json:"instituteSize,omitempty"` // InstituteType: Designated institute type of customer. // // Possible values: // "INSTITUTE_TYPE_UNSPECIFIED" - Not used. // "K12" - Elementary/Secondary Schools & Districts // "UNIVERSITY" - Higher Education Universities & Colleges InstituteType string `json:"instituteType,omitempty"` // Website: Web address for the edu customer's institution. Website string `json:"website,omitempty"` // ForceSendFields is a list of field names (e.g. "InstituteSize") 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. "InstituteSize") 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:"-"` }
GoogleCloudChannelV1EduData: Required Edu Attributes
func (*GoogleCloudChannelV1EduData) MarshalJSON ¶
func (s *GoogleCloudChannelV1EduData) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1Entitlement ¶
type GoogleCloudChannelV1Entitlement struct { // AssociationInfo: Association information to other entitlements. AssociationInfo *GoogleCloudChannelV1AssociationInfo `json:"associationInfo,omitempty"` // CommitmentSettings: Commitment settings for a commitment-based Offer. // Required for commitment based offers. CommitmentSettings *GoogleCloudChannelV1CommitmentSettings `json:"commitmentSettings,omitempty"` // CreateTime: Output only. The time at which the entitlement is // created. CreateTime string `json:"createTime,omitempty"` // Name: Output only. Resource name of an entitlement in the form: // accounts/{account_id}/customers/{customer_id}/entitlements/{entitlemen // t_id}. Name string `json:"name,omitempty"` // Offer: Required. The offer resource name for which the entitlement is // to be created. Takes the form: // accounts/{account_id}/offers/{offer_id}. Offer string `json:"offer,omitempty"` // Parameters: Extended entitlement parameters. When creating an // entitlement, valid parameter names and values are defined in the // Offer.parameter_definitions. The response may include the following // output-only Parameters: - assigned_units: The number of licenses // assigned to users. - max_units: The maximum assignable units for a // flexible offer. - num_units: The total commitment for // commitment-based offers. Parameters []*GoogleCloudChannelV1Parameter `json:"parameters,omitempty"` // ProvisionedService: Output only. Service provisioning details for the // entitlement. ProvisionedService *GoogleCloudChannelV1ProvisionedService `json:"provisionedService,omitempty"` // ProvisioningState: Output only. Current provisioning state of the // entitlement. // // Possible values: // "PROVISIONING_STATE_UNSPECIFIED" - Not used. // "ACTIVE" - The entitlement is currently active. // "SUSPENDED" - The entitlement is currently suspended. ProvisioningState string `json:"provisioningState,omitempty"` // PurchaseOrderId: Optional. This purchase order (PO) information is // for resellers to use for their company tracking usage. If a // purchaseOrderId value is given, it appears in the API responses and // shows up in the invoice. The property accepts up to 80 plain text // characters. This is only supported for Google Workspace entitlements. PurchaseOrderId string `json:"purchaseOrderId,omitempty"` // SuspensionReasons: Output only. Enumerable of all current suspension // reasons for an entitlement. // // Possible values: // "SUSPENSION_REASON_UNSPECIFIED" - Not used. // "RESELLER_INITIATED" - Entitlement was manually suspended by the // Reseller. // "TRIAL_ENDED" - Trial ended. // "RENEWAL_WITH_TYPE_CANCEL" - Entitlement renewal was canceled. // "PENDING_TOS_ACCEPTANCE" - Entitlement was automatically suspended // on creation for pending ToS acceptance on customer. // "OTHER" - Other reasons (internal reasons, abuse, etc.). SuspensionReasons []string `json:"suspensionReasons,omitempty"` // TrialSettings: Output only. Settings for trial offers. TrialSettings *GoogleCloudChannelV1TrialSettings `json:"trialSettings,omitempty"` // UpdateTime: Output only. The time at which the entitlement is // updated. UpdateTime string `json:"updateTime,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AssociationInfo") 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. "AssociationInfo") 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:"-"` }
GoogleCloudChannelV1Entitlement: An entitlement is a representation of a customer's ability to use a service.
func (*GoogleCloudChannelV1Entitlement) MarshalJSON ¶
func (s *GoogleCloudChannelV1Entitlement) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1EntitlementEvent ¶
type GoogleCloudChannelV1EntitlementEvent struct { // Entitlement: Resource name of an entitlement of the form: // accounts/{account_id}/customers/{customer_id}/entitlements/{entitlemen // t_id} Entitlement string `json:"entitlement,omitempty"` // EventType: Type of event which happened on the entitlement. // // Possible values: // "TYPE_UNSPECIFIED" - Not used. // "CREATED" - A new entitlement was created. // "PRICE_PLAN_SWITCHED" - The offer type associated with an // entitlement was changed. This is not triggered if an entitlement // converts from a commit offer to a flexible offer as part of a // renewal. // "COMMITMENT_CHANGED" - Annual commitment for a commit plan was // changed. // "RENEWED" - An annual entitlement was renewed. // "SUSPENDED" - Entitlement was suspended. // "ACTIVATED" - Entitlement was unsuspended. // "CANCELLED" - Entitlement was cancelled. // "SKU_CHANGED" - Entitlement was upgraded or downgraded (e.g. from // Google Workspace Business Standard to Google Workspace Business // Plus). // "RENEWAL_SETTING_CHANGED" - The renewal settings of an entitlement // has changed. // "PAID_SERVICE_STARTED" - Paid service has started on trial // entitlement. // "LICENSE_ASSIGNMENT_CHANGED" - License was assigned to or revoked // from a user. // "LICENSE_CAP_CHANGED" - License cap was changed for the // entitlement. EventType string `json:"eventType,omitempty"` // ForceSendFields is a list of field names (e.g. "Entitlement") 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. "Entitlement") 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:"-"` }
GoogleCloudChannelV1EntitlementEvent: Represents Pub/Sub message content describing entitlement update.
func (*GoogleCloudChannelV1EntitlementEvent) MarshalJSON ¶
func (s *GoogleCloudChannelV1EntitlementEvent) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1ImportCustomerRequest ¶ added in v0.53.0
type GoogleCloudChannelV1ImportCustomerRequest struct { // AuthToken: Optional. The super admin of the resold customer generates // this token to authorize a reseller to access their Cloud Identity and // purchase entitlements on their behalf. You can omit this token after // authorization. See https://support.google.com/a/answer/7643790 for // more details. AuthToken string `json:"authToken,omitempty"` // ChannelPartnerId: Optional. Cloud Identity ID of a channel partner // who will be the direct reseller for the customer's order. This field // is required for 2-tier transfer scenarios and can be provided via the // request Parent binding as well. ChannelPartnerId string `json:"channelPartnerId,omitempty"` // CloudIdentityId: Required. Customer's Cloud Identity ID CloudIdentityId string `json:"cloudIdentityId,omitempty"` // Customer: Optional. Specifies the customer that will receive imported // Cloud Identity information. Format: // accounts/{account_id}/customers/{customer_id} Customer string `json:"customer,omitempty"` // Domain: Required. Customer domain. Domain string `json:"domain,omitempty"` // OverwriteIfExists: Required. Choose to overwrite an existing customer // if found. This must be set to true if there is an existing customer // with a conflicting region code or domain. OverwriteIfExists bool `json:"overwriteIfExists,omitempty"` // ForceSendFields is a list of field names (e.g. "AuthToken") 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. "AuthToken") 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:"-"` }
GoogleCloudChannelV1ImportCustomerRequest: Request message for CloudChannelService.ImportCustomer
func (*GoogleCloudChannelV1ImportCustomerRequest) MarshalJSON ¶ added in v0.53.0
func (s *GoogleCloudChannelV1ImportCustomerRequest) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1ListChannelPartnerLinksResponse ¶
type GoogleCloudChannelV1ListChannelPartnerLinksResponse struct { // ChannelPartnerLinks: The Channel partner links for a reseller. ChannelPartnerLinks []*GoogleCloudChannelV1ChannelPartnerLink `json:"channelPartnerLinks,omitempty"` // NextPageToken: A token to retrieve the next page of results. Pass to // ListChannelPartnerLinksRequest.page_token to obtain that page. 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. "ChannelPartnerLinks") // 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. "ChannelPartnerLinks") 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:"-"` }
GoogleCloudChannelV1ListChannelPartnerLinksResponse: Response message for CloudChannelService.ListChannelPartnerLinks.
func (*GoogleCloudChannelV1ListChannelPartnerLinksResponse) MarshalJSON ¶
func (s *GoogleCloudChannelV1ListChannelPartnerLinksResponse) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1ListCustomersResponse ¶
type GoogleCloudChannelV1ListCustomersResponse struct { // Customers: The customers belonging to a reseller or distributor. Customers []*GoogleCloudChannelV1Customer `json:"customers,omitempty"` // NextPageToken: A token to retrieve the next page of results. Pass to // ListCustomersRequest.page_token to obtain that page. 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. "Customers") 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. "Customers") 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:"-"` }
GoogleCloudChannelV1ListCustomersResponse: Response message for CloudChannelService.ListCustomers.
func (*GoogleCloudChannelV1ListCustomersResponse) MarshalJSON ¶
func (s *GoogleCloudChannelV1ListCustomersResponse) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1ListEntitlementsResponse ¶
type GoogleCloudChannelV1ListEntitlementsResponse struct { // Entitlements: The reseller customer's entitlements. Entitlements []*GoogleCloudChannelV1Entitlement `json:"entitlements,omitempty"` // NextPageToken: A token to list the next page of results. Pass to // ListEntitlementsRequest.page_token to obtain that page. 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. "Entitlements") 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. "Entitlements") 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:"-"` }
GoogleCloudChannelV1ListEntitlementsResponse: Response message for CloudChannelService.ListEntitlements.
func (*GoogleCloudChannelV1ListEntitlementsResponse) MarshalJSON ¶
func (s *GoogleCloudChannelV1ListEntitlementsResponse) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1ListOffersResponse ¶
type GoogleCloudChannelV1ListOffersResponse struct { // NextPageToken: A token to retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` // Offers: The list of Offers requested. Offers []*GoogleCloudChannelV1Offer `json:"offers,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty 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. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudChannelV1ListOffersResponse: Response message for ListOffers.
func (*GoogleCloudChannelV1ListOffersResponse) MarshalJSON ¶
func (s *GoogleCloudChannelV1ListOffersResponse) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1ListProductsResponse ¶
type GoogleCloudChannelV1ListProductsResponse struct { // NextPageToken: A token to retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` // Products: List of Products requested. Products []*GoogleCloudChannelV1Product `json:"products,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty 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. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudChannelV1ListProductsResponse: Response message for ListProducts.
func (*GoogleCloudChannelV1ListProductsResponse) MarshalJSON ¶
func (s *GoogleCloudChannelV1ListProductsResponse) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1ListPurchasableOffersResponse ¶
type GoogleCloudChannelV1ListPurchasableOffersResponse struct { // NextPageToken: A token to retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` // PurchasableOffers: The list of Offers requested. PurchasableOffers []*GoogleCloudChannelV1PurchasableOffer `json:"purchasableOffers,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty 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. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudChannelV1ListPurchasableOffersResponse: Response message for ListPurchasableOffers.
func (*GoogleCloudChannelV1ListPurchasableOffersResponse) MarshalJSON ¶
func (s *GoogleCloudChannelV1ListPurchasableOffersResponse) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1ListPurchasableSkusResponse ¶
type GoogleCloudChannelV1ListPurchasableSkusResponse struct { // NextPageToken: A token to retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` // PurchasableSkus: The list of SKUs requested. PurchasableSkus []*GoogleCloudChannelV1PurchasableSku `json:"purchasableSkus,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty 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. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudChannelV1ListPurchasableSkusResponse: Response message for ListPurchasableSkus.
func (*GoogleCloudChannelV1ListPurchasableSkusResponse) MarshalJSON ¶
func (s *GoogleCloudChannelV1ListPurchasableSkusResponse) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1ListSkusResponse ¶
type GoogleCloudChannelV1ListSkusResponse struct { // NextPageToken: A token to retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` // Skus: The list of SKUs requested. Skus []*GoogleCloudChannelV1Sku `json:"skus,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty 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. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudChannelV1ListSkusResponse: Response message for ListSkus.
func (*GoogleCloudChannelV1ListSkusResponse) MarshalJSON ¶
func (s *GoogleCloudChannelV1ListSkusResponse) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1ListSubscribersResponse ¶
type GoogleCloudChannelV1ListSubscribersResponse struct { // NextPageToken: A token that can be sent as `page_token` to retrieve // the next page. If this field is omitted, there are no subsequent // pages. NextPageToken string `json:"nextPageToken,omitempty"` // ServiceAccounts: List of service accounts which have subscriber // access to the topic. ServiceAccounts []string `json:"serviceAccounts,omitempty"` // Topic: Name of the topic registered with the reseller. Topic string `json:"topic,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty 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. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudChannelV1ListSubscribersResponse: Response Message for ListSubscribers.
func (*GoogleCloudChannelV1ListSubscribersResponse) MarshalJSON ¶
func (s *GoogleCloudChannelV1ListSubscribersResponse) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1ListTransferableOffersRequest ¶
type GoogleCloudChannelV1ListTransferableOffersRequest struct { // CloudIdentityId: Customer's Cloud Identity ID CloudIdentityId string `json:"cloudIdentityId,omitempty"` // CustomerName: A reseller should create a customer and use the // resource name of that customer here. CustomerName string `json:"customerName,omitempty"` // LanguageCode: The BCP-47 language code. For example, "en-US". The // response will localize in the corresponding language code, if // specified. The default value is "en-US". LanguageCode string `json:"languageCode,omitempty"` // PageSize: Requested page size. Server might return fewer results than // requested. If unspecified, returns at most 100 offers. The maximum // value is 1000; the server will coerce values above 1000. PageSize int64 `json:"pageSize,omitempty"` // PageToken: A token for a page of results other than the first page. // Obtained using ListTransferableOffersResponse.next_page_token of the // previous CloudChannelService.ListTransferableOffers call. PageToken string `json:"pageToken,omitempty"` // Sku: Required. The SKU to look up Offers for. Sku string `json:"sku,omitempty"` // ForceSendFields is a list of field names (e.g. "CloudIdentityId") 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. "CloudIdentityId") 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:"-"` }
GoogleCloudChannelV1ListTransferableOffersRequest: Request message for CloudChannelService.ListTransferableOffers
func (*GoogleCloudChannelV1ListTransferableOffersRequest) MarshalJSON ¶
func (s *GoogleCloudChannelV1ListTransferableOffersRequest) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1ListTransferableOffersResponse ¶
type GoogleCloudChannelV1ListTransferableOffersResponse struct { // NextPageToken: A token to retrieve the next page of results. Pass to // ListTransferableOffersRequest.page_token to obtain that page. NextPageToken string `json:"nextPageToken,omitempty"` // TransferableOffers: Information about Offers for a customer that can // be used for transfer. TransferableOffers []*GoogleCloudChannelV1TransferableOffer `json:"transferableOffers,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty 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. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudChannelV1ListTransferableOffersResponse: Response message for CloudChannelService.ListTransferableOffers.
func (*GoogleCloudChannelV1ListTransferableOffersResponse) MarshalJSON ¶
func (s *GoogleCloudChannelV1ListTransferableOffersResponse) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1ListTransferableSkusRequest ¶
type GoogleCloudChannelV1ListTransferableSkusRequest struct { // AuthToken: The super admin of the resold customer generates this // token to authorize a reseller to access their Cloud Identity and // purchase entitlements on their behalf. You can omit this token after // authorization. See https://support.google.com/a/answer/7643790 for // more details. AuthToken string `json:"authToken,omitempty"` // CloudIdentityId: Customer's Cloud Identity ID CloudIdentityId string `json:"cloudIdentityId,omitempty"` // CustomerName: A reseller is required to create a customer and use the // resource name of the created customer here. Customer_name uses the // format: accounts/{account_id}/customers/{customer_id} CustomerName string `json:"customerName,omitempty"` // LanguageCode: The BCP-47 language code. For example, "en-US". The // response will localize in the corresponding language code, if // specified. The default value is "en-US". Optional. LanguageCode string `json:"languageCode,omitempty"` // PageSize: The requested page size. Server might return fewer results // than requested. If unspecified, returns at most 100 SKUs. The maximum // value is 1000; the server will coerce values above 1000. Optional. PageSize int64 `json:"pageSize,omitempty"` // PageToken: A token for a page of results other than the first page. // Obtained using ListTransferableSkusResponse.next_page_token of the // previous CloudChannelService.ListTransferableSkus call. Optional. PageToken string `json:"pageToken,omitempty"` // ForceSendFields is a list of field names (e.g. "AuthToken") 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. "AuthToken") 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:"-"` }
GoogleCloudChannelV1ListTransferableSkusRequest: Request message for CloudChannelService.ListTransferableSkus
func (*GoogleCloudChannelV1ListTransferableSkusRequest) MarshalJSON ¶
func (s *GoogleCloudChannelV1ListTransferableSkusRequest) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1ListTransferableSkusResponse ¶
type GoogleCloudChannelV1ListTransferableSkusResponse struct { // NextPageToken: A token to retrieve the next page of results. Pass to // ListTransferableSkusRequest.page_token to obtain that page. NextPageToken string `json:"nextPageToken,omitempty"` // TransferableSkus: Information about existing SKUs for a customer that // needs a transfer. TransferableSkus []*GoogleCloudChannelV1TransferableSku `json:"transferableSkus,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty 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. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudChannelV1ListTransferableSkusResponse: Response message for CloudChannelService.ListTransferableSkus.
func (*GoogleCloudChannelV1ListTransferableSkusResponse) MarshalJSON ¶
func (s *GoogleCloudChannelV1ListTransferableSkusResponse) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1MarketingInfo ¶
type GoogleCloudChannelV1MarketingInfo struct { // DefaultLogo: Default logo. DefaultLogo *GoogleCloudChannelV1Media `json:"defaultLogo,omitempty"` // Description: Human readable description. Description can contain // HTML. Description string `json:"description,omitempty"` // DisplayName: Human readable name. DisplayName string `json:"displayName,omitempty"` // ForceSendFields is a list of field names (e.g. "DefaultLogo") 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. "DefaultLogo") 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:"-"` }
GoogleCloudChannelV1MarketingInfo: Represents the marketing information for a Product, SKU or Offer.
func (*GoogleCloudChannelV1MarketingInfo) MarshalJSON ¶
func (s *GoogleCloudChannelV1MarketingInfo) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1Media ¶
type GoogleCloudChannelV1Media struct { // Content: URL of the media. Content string `json:"content,omitempty"` // Title: Title of the media. Title string `json:"title,omitempty"` // Type: Type of the media. // // Possible values: // "MEDIA_TYPE_UNSPECIFIED" - Not used. // "MEDIA_TYPE_IMAGE" - Type of image. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Content") 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. "Content") 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:"-"` }
GoogleCloudChannelV1Media: Represents media information.
func (*GoogleCloudChannelV1Media) MarshalJSON ¶
func (s *GoogleCloudChannelV1Media) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1Offer ¶
type GoogleCloudChannelV1Offer struct { // Constraints: Constraints on transacting the Offer. Constraints *GoogleCloudChannelV1Constraints `json:"constraints,omitempty"` // EndTime: Output only. End of the Offer validity time. EndTime string `json:"endTime,omitempty"` // MarketingInfo: Marketing information for the Offer. MarketingInfo *GoogleCloudChannelV1MarketingInfo `json:"marketingInfo,omitempty"` // Name: Resource Name of the Offer. Format: // accounts/{account_id}/offers/{offer_id} Name string `json:"name,omitempty"` // ParameterDefinitions: Parameters required to use current Offer to // purchase. ParameterDefinitions []*GoogleCloudChannelV1ParameterDefinition `json:"parameterDefinitions,omitempty"` // Plan: Describes the payment plan for the Offer. Plan *GoogleCloudChannelV1Plan `json:"plan,omitempty"` // PriceByResources: Price for each monetizable resource type. PriceByResources []*GoogleCloudChannelV1PriceByResource `json:"priceByResources,omitempty"` // Sku: SKU the offer is associated with. Sku *GoogleCloudChannelV1Sku `json:"sku,omitempty"` // StartTime: Start of the Offer validity time. StartTime string `json:"startTime,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Constraints") 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. "Constraints") 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:"-"` }
GoogleCloudChannelV1Offer: Represents an offer made to resellers for purchase. An offer is associated with a Sku, has a plan for payment, a price, and defines the constraints for buying.
func (*GoogleCloudChannelV1Offer) MarshalJSON ¶
func (s *GoogleCloudChannelV1Offer) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1OperationMetadata ¶
type GoogleCloudChannelV1OperationMetadata struct { // OperationType: The RPC that initiated this Long Running Operation. // // Possible values: // "OPERATION_TYPE_UNSPECIFIED" - Not used. // "CREATE_ENTITLEMENT" - Long Running Operation was triggered by // CreateEntitlement. // "CHANGE_RENEWAL_SETTINGS" - Long Running Operation was triggered by // ChangeRenewalSettings. // "START_PAID_SERVICE" - Long Running Operation was triggered by // StartPaidService. // "ACTIVATE_ENTITLEMENT" - Long Running Operation was triggered by // ActivateEntitlement. // "SUSPEND_ENTITLEMENT" - Long Running Operation was triggered by // SuspendEntitlement. // "CANCEL_ENTITLEMENT" - Long Running Operation was triggered by // CancelEntitlement. // "TRANSFER_ENTITLEMENTS" - Long Running Operation was triggered by // TransferEntitlements. // "TRANSFER_ENTITLEMENTS_TO_GOOGLE" - Long Running Operation was // triggered by TransferEntitlementsToGoogle. // "CHANGE_OFFER" - Long Running Operation was triggered by // ChangeOffer. // "CHANGE_PARAMETERS" - Long Running Operation was triggered by // ChangeParameters. // "PROVISION_CLOUD_IDENTITY" - Long Running Operation was triggered // by ProvisionCloudIdentity. OperationType string `json:"operationType,omitempty"` // ForceSendFields is a list of field names (e.g. "OperationType") 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. "OperationType") 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:"-"` }
GoogleCloudChannelV1OperationMetadata: Provides contextual information about a google.longrunning.Operation.
func (*GoogleCloudChannelV1OperationMetadata) MarshalJSON ¶
func (s *GoogleCloudChannelV1OperationMetadata) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1Parameter ¶
type GoogleCloudChannelV1Parameter struct { // Editable: Output only. Specifies whether this parameter is allowed to // be changed. For example, for a Google Workspace Business Starter // entitlement in commitment plan, num_units is editable when // entitlement is active. Editable bool `json:"editable,omitempty"` // Name: Name of the parameter. Name string `json:"name,omitempty"` // Value: Value of the parameter. Value *GoogleCloudChannelV1Value `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Editable") 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. "Editable") 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:"-"` }
GoogleCloudChannelV1Parameter: Definition for extended entitlement parameters.
func (*GoogleCloudChannelV1Parameter) MarshalJSON ¶
func (s *GoogleCloudChannelV1Parameter) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1ParameterDefinition ¶
type GoogleCloudChannelV1ParameterDefinition struct { // AllowedValues: If not empty, parameter values must be drawn from this // list. For example, [us-west1, us-west2, ...] Applicable to STRING // parameter type. AllowedValues []*GoogleCloudChannelV1Value `json:"allowedValues,omitempty"` // MaxValue: Maximum value of the parameter, if applicable. Inclusive. // For example, maximum seats when purchasing Google Workspace Business // Standard. Applicable to INT64 and DOUBLE parameter types. MaxValue *GoogleCloudChannelV1Value `json:"maxValue,omitempty"` // MinValue: Minimal value of the parameter, if applicable. Inclusive. // For example, minimal commitment when purchasing Anthos is 0.01. // Applicable to INT64 and DOUBLE parameter types. MinValue *GoogleCloudChannelV1Value `json:"minValue,omitempty"` // Name: Name of the parameter. Name string `json:"name,omitempty"` // Optional: If set to true, parameter is optional to purchase this // Offer. Optional bool `json:"optional,omitempty"` // ParameterType: Data type of the parameter. Minimal value, Maximum // value and allowed values will use specified data type here. // // Possible values: // "PARAMETER_TYPE_UNSPECIFIED" - Not used. // "INT64" - Int64 type. // "STRING" - String type. // "DOUBLE" - Double type. ParameterType string `json:"parameterType,omitempty"` // ForceSendFields is a list of field names (e.g. "AllowedValues") 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. "AllowedValues") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudChannelV1ParameterDefinition: Parameter's definition. Specifies what parameter is required to use the current Offer to purchase.
func (*GoogleCloudChannelV1ParameterDefinition) MarshalJSON ¶
func (s *GoogleCloudChannelV1ParameterDefinition) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1Period ¶
type GoogleCloudChannelV1Period struct { // Duration: Total duration of Period Type defined. Duration int64 `json:"duration,omitempty"` // PeriodType: Period Type. // // Possible values: // "PERIOD_TYPE_UNSPECIFIED" - Not used. // "DAY" - Day. // "MONTH" - Month. // "YEAR" - Year. PeriodType string `json:"periodType,omitempty"` // ForceSendFields is a list of field names (e.g. "Duration") 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. "Duration") 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:"-"` }
GoogleCloudChannelV1Period: Represents period in days/months/years.
func (*GoogleCloudChannelV1Period) MarshalJSON ¶
func (s *GoogleCloudChannelV1Period) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1Plan ¶
type GoogleCloudChannelV1Plan struct { // BillingAccount: Reseller Billing account to charge after an offer // transaction. Only present for Google Cloud Platform offers. BillingAccount string `json:"billingAccount,omitempty"` // PaymentCycle: Describes how frequently the reseller will be billed, // such as once per month. PaymentCycle *GoogleCloudChannelV1Period `json:"paymentCycle,omitempty"` // PaymentPlan: Describes how a reseller will be billed. // // Possible values: // "PAYMENT_PLAN_UNSPECIFIED" - Not used. // "COMMITMENT" - Commitment. // "FLEXIBLE" - No commitment. // "FREE" - Free. // "TRIAL" - Trial. // "OFFLINE" - Price and ordering not available through API. PaymentPlan string `json:"paymentPlan,omitempty"` // PaymentType: Specifies when the payment needs to happen. // // Possible values: // "PAYMENT_TYPE_UNSPECIFIED" - Not used. // "PREPAY" - Prepay. Amount has to be paid before service is // rendered. // "POSTPAY" - Postpay. Reseller is charged at the end of the Payment // cycle. PaymentType string `json:"paymentType,omitempty"` // TrialPeriod: Present for Offers with a trial period. For trial-only // Offers, a paid service needs to start before the trial period ends // for continued service. For Regular Offers with a trial period, the // regular pricing goes into effect when trial period ends, or if paid // service is started before the end of the trial period. TrialPeriod *GoogleCloudChannelV1Period `json:"trialPeriod,omitempty"` // ForceSendFields is a list of field names (e.g. "BillingAccount") 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. "BillingAccount") 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:"-"` }
GoogleCloudChannelV1Plan: The payment plan for the Offer. Describes how to make a payment.
func (*GoogleCloudChannelV1Plan) MarshalJSON ¶
func (s *GoogleCloudChannelV1Plan) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1Price ¶
type GoogleCloudChannelV1Price struct { // BasePrice: Base price. BasePrice *GoogleTypeMoney `json:"basePrice,omitempty"` // Discount: Discount percentage, represented as decimal. For example, a // 20% discount will be represent as 0.2. Discount float64 `json:"discount,omitempty"` // EffectivePrice: Effective Price after applying the discounts. EffectivePrice *GoogleTypeMoney `json:"effectivePrice,omitempty"` // ExternalPriceUri: Link to external price list, such as link to Google // Voice rate card. ExternalPriceUri string `json:"externalPriceUri,omitempty"` // ForceSendFields is a list of field names (e.g. "BasePrice") 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. "BasePrice") 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:"-"` }
GoogleCloudChannelV1Price: Represents the price of the Offer.
func (*GoogleCloudChannelV1Price) MarshalJSON ¶
func (s *GoogleCloudChannelV1Price) MarshalJSON() ([]byte, error)
func (*GoogleCloudChannelV1Price) UnmarshalJSON ¶
func (s *GoogleCloudChannelV1Price) UnmarshalJSON(data []byte) error
type GoogleCloudChannelV1PriceByResource ¶
type GoogleCloudChannelV1PriceByResource struct { // Price: Price of the Offer. Present if there are no price phases. Price *GoogleCloudChannelV1Price `json:"price,omitempty"` // PricePhases: Specifies the price by time range. PricePhases []*GoogleCloudChannelV1PricePhase `json:"pricePhases,omitempty"` // ResourceType: Resource Type. Example: SEAT // // Possible values: // "RESOURCE_TYPE_UNSPECIFIED" - Not used. // "SEAT" - Seat. // "MAU" - Monthly active user. // "GB" - GB (used for storage SKUs). // "LICENSED_USER" - Active licensed users(for Voice SKUs). // "MINUTES" - Voice usage. // "IAAS_USAGE" - For IaaS SKUs like Google Cloud Platform, // monetization is based on usage accrued on your billing account // irrespective of the type of monetizable resource. This enum // represents an aggregated resource/container for all usage SKUs on a // billing account. Currently, only applicable to Google Cloud Platform. // "SUBSCRIPTION" - For Google Cloud Platform subscriptions like // Anthos or SAP. ResourceType string `json:"resourceType,omitempty"` // ForceSendFields is a list of field names (e.g. "Price") 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. "Price") 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:"-"` }
GoogleCloudChannelV1PriceByResource: Represents price by resource type.
func (*GoogleCloudChannelV1PriceByResource) MarshalJSON ¶
func (s *GoogleCloudChannelV1PriceByResource) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1PricePhase ¶
type GoogleCloudChannelV1PricePhase struct { // FirstPeriod: Defines first period for the phase. FirstPeriod int64 `json:"firstPeriod,omitempty"` // LastPeriod: Defines first period for the phase. LastPeriod int64 `json:"lastPeriod,omitempty"` // PeriodType: Defines the phase period type. // // Possible values: // "PERIOD_TYPE_UNSPECIFIED" - Not used. // "DAY" - Day. // "MONTH" - Month. // "YEAR" - Year. PeriodType string `json:"periodType,omitempty"` // Price: Price of the phase. Present if there are no price tiers. Price *GoogleCloudChannelV1Price `json:"price,omitempty"` // PriceTiers: Price by the resource tiers. PriceTiers []*GoogleCloudChannelV1PriceTier `json:"priceTiers,omitempty"` // ForceSendFields is a list of field names (e.g. "FirstPeriod") 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. "FirstPeriod") 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:"-"` }
GoogleCloudChannelV1PricePhase: Specifies the price by the duration of months. For example, a 20% discount for the first six months, then a 10% discount starting on the seventh month.
func (*GoogleCloudChannelV1PricePhase) MarshalJSON ¶
func (s *GoogleCloudChannelV1PricePhase) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1PriceTier ¶
type GoogleCloudChannelV1PriceTier struct { // FirstResource: First resource for which the tier price applies. FirstResource int64 `json:"firstResource,omitempty"` // LastResource: Last resource for which the tier price applies. LastResource int64 `json:"lastResource,omitempty"` // Price: Price of the tier. Price *GoogleCloudChannelV1Price `json:"price,omitempty"` // ForceSendFields is a list of field names (e.g. "FirstResource") 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. "FirstResource") 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:"-"` }
GoogleCloudChannelV1PriceTier: Defines price at resource tier level. For example, an offer with following definition : * Tier 1: Provide 25% discount for all seats between 1 and 25. * Tier 2: Provide 10% discount for all seats between 26 and 100. * Tier 3: Provide flat 15% discount for all seats above 100. Each of these tiers is represented as a PriceTier.
func (*GoogleCloudChannelV1PriceTier) MarshalJSON ¶
func (s *GoogleCloudChannelV1PriceTier) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1Product ¶
type GoogleCloudChannelV1Product struct { // MarketingInfo: Marketing information for the product. MarketingInfo *GoogleCloudChannelV1MarketingInfo `json:"marketingInfo,omitempty"` // Name: Resource Name of the Product. Format: products/{product_id} Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "MarketingInfo") 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. "MarketingInfo") 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:"-"` }
GoogleCloudChannelV1Product: A Product is the entity a customer uses when placing an order. For example, Google Workspace, Google Voice, etc.
func (*GoogleCloudChannelV1Product) MarshalJSON ¶
func (s *GoogleCloudChannelV1Product) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1ProvisionCloudIdentityRequest ¶
type GoogleCloudChannelV1ProvisionCloudIdentityRequest struct { // CloudIdentityInfo: CloudIdentity-specific customer information. CloudIdentityInfo *GoogleCloudChannelV1CloudIdentityInfo `json:"cloudIdentityInfo,omitempty"` // User: Admin user information. User *GoogleCloudChannelV1AdminUser `json:"user,omitempty"` // ValidateOnly: Validate the request and preview the review, but do not // post it. ValidateOnly bool `json:"validateOnly,omitempty"` // ForceSendFields is a list of field names (e.g. "CloudIdentityInfo") // 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. "CloudIdentityInfo") 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:"-"` }
GoogleCloudChannelV1ProvisionCloudIdentityRequest: Request message for CloudChannelService.ProvisionCloudIdentity
func (*GoogleCloudChannelV1ProvisionCloudIdentityRequest) MarshalJSON ¶
func (s *GoogleCloudChannelV1ProvisionCloudIdentityRequest) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1ProvisionedService ¶
type GoogleCloudChannelV1ProvisionedService struct { // ProductId: Output only. The product pertaining to the provisioning // resource as specified in the Offer. ProductId string `json:"productId,omitempty"` // ProvisioningId: Output only. Provisioning ID of the entitlement. For // Google Workspace, this is the underlying Subscription ID. For Google // Cloud Platform, this is the Billing Account ID of the billing // subaccount." ProvisioningId string `json:"provisioningId,omitempty"` // SkuId: Output only. The SKU pertaining to the provisioning resource // as specified in the Offer. SkuId string `json:"skuId,omitempty"` // ForceSendFields is a list of field names (e.g. "ProductId") 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. "ProductId") 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:"-"` }
GoogleCloudChannelV1ProvisionedService: Service provisioned for an entitlement.
func (*GoogleCloudChannelV1ProvisionedService) MarshalJSON ¶
func (s *GoogleCloudChannelV1ProvisionedService) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1PurchasableOffer ¶
type GoogleCloudChannelV1PurchasableOffer struct { // Offer: Offer. Offer *GoogleCloudChannelV1Offer `json:"offer,omitempty"` // ForceSendFields is a list of field names (e.g. "Offer") 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. "Offer") 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:"-"` }
GoogleCloudChannelV1PurchasableOffer: Offer that you can purchase for a customer. This is used in the ListPurchasableOffer API response.
func (*GoogleCloudChannelV1PurchasableOffer) MarshalJSON ¶
func (s *GoogleCloudChannelV1PurchasableOffer) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1PurchasableSku ¶
type GoogleCloudChannelV1PurchasableSku struct { // Sku: SKU Sku *GoogleCloudChannelV1Sku `json:"sku,omitempty"` // ForceSendFields is a list of field names (e.g. "Sku") 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. "Sku") 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:"-"` }
GoogleCloudChannelV1PurchasableSku: SKU that you can purchase. This is used in ListPurchasableSku API response.
func (*GoogleCloudChannelV1PurchasableSku) MarshalJSON ¶
func (s *GoogleCloudChannelV1PurchasableSku) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1RegisterSubscriberRequest ¶
type GoogleCloudChannelV1RegisterSubscriberRequest struct { // ServiceAccount: Required. Service account that provides subscriber // access to the registered topic. ServiceAccount string `json:"serviceAccount,omitempty"` // ForceSendFields is a list of field names (e.g. "ServiceAccount") 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. "ServiceAccount") 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:"-"` }
GoogleCloudChannelV1RegisterSubscriberRequest: Request Message for RegisterSubscriber.
func (*GoogleCloudChannelV1RegisterSubscriberRequest) MarshalJSON ¶
func (s *GoogleCloudChannelV1RegisterSubscriberRequest) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1RegisterSubscriberResponse ¶
type GoogleCloudChannelV1RegisterSubscriberResponse struct { // Topic: Name of the topic the subscriber will listen to. Topic string `json:"topic,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Topic") 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. "Topic") 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:"-"` }
GoogleCloudChannelV1RegisterSubscriberResponse: Response Message for RegisterSubscriber.
func (*GoogleCloudChannelV1RegisterSubscriberResponse) MarshalJSON ¶
func (s *GoogleCloudChannelV1RegisterSubscriberResponse) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1RenewalSettings ¶
type GoogleCloudChannelV1RenewalSettings struct { // EnableRenewal: If false, the plan will be completed at the end date. EnableRenewal bool `json:"enableRenewal,omitempty"` // PaymentCycle: Describes how frequently the reseller will be billed, // such as once per month. PaymentCycle *GoogleCloudChannelV1Period `json:"paymentCycle,omitempty"` // PaymentPlan: Describes how a reseller will be billed. // // Possible values: // "PAYMENT_PLAN_UNSPECIFIED" - Not used. // "COMMITMENT" - Commitment. // "FLEXIBLE" - No commitment. // "FREE" - Free. // "TRIAL" - Trial. // "OFFLINE" - Price and ordering not available through API. PaymentPlan string `json:"paymentPlan,omitempty"` // ResizeUnitCount: If true and enable_renewal = true, the unit (for // example seats or licenses) will be set to the number of active units // at renewal time. ResizeUnitCount bool `json:"resizeUnitCount,omitempty"` // ForceSendFields is a list of field names (e.g. "EnableRenewal") 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. "EnableRenewal") 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:"-"` }
GoogleCloudChannelV1RenewalSettings: Renewal settings for renewable Offers.
func (*GoogleCloudChannelV1RenewalSettings) MarshalJSON ¶
func (s *GoogleCloudChannelV1RenewalSettings) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1Sku ¶
type GoogleCloudChannelV1Sku struct { // MarketingInfo: Marketing information for the SKU. MarketingInfo *GoogleCloudChannelV1MarketingInfo `json:"marketingInfo,omitempty"` // Name: Resource Name of the SKU. Format: // products/{product_id}/skus/{sku_id} Name string `json:"name,omitempty"` // Product: Product the SKU is associated with. Product *GoogleCloudChannelV1Product `json:"product,omitempty"` // ForceSendFields is a list of field names (e.g. "MarketingInfo") 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. "MarketingInfo") 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:"-"` }
GoogleCloudChannelV1Sku: Represents a product's purchasable Stock Keeping Unit (SKU). SKUs represent the different variations of the product. For example, Google Workspace Business Standard and Google Workspace Business Plus are Google Workspace product SKUs.
func (*GoogleCloudChannelV1Sku) MarshalJSON ¶
func (s *GoogleCloudChannelV1Sku) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1StartPaidServiceRequest ¶
type GoogleCloudChannelV1StartPaidServiceRequest struct { // RequestId: Optional. You can specify an optional unique request ID, // and if you need to retry your request, the server will know to ignore // the request if it's complete. For example, you make an initial // request and the request times out. If you make the request again with // the same request ID, the server can check if it received the original // operation with the same request ID. If it did, it will ignore the // second request. The request ID must be a valid UUID // (https://tools.ietf.org/html/rfc4122) with the exception that zero // UUID is not supported (`00000000-0000-0000-0000-000000000000`). RequestId string `json:"requestId,omitempty"` // ForceSendFields is a list of field names (e.g. "RequestId") 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. "RequestId") 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:"-"` }
GoogleCloudChannelV1StartPaidServiceRequest: Request message for CloudChannelService.StartPaidService.
func (*GoogleCloudChannelV1StartPaidServiceRequest) MarshalJSON ¶
func (s *GoogleCloudChannelV1StartPaidServiceRequest) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1SubscriberEvent ¶
type GoogleCloudChannelV1SubscriberEvent struct { // CustomerEvent: Customer event sent as part of Pub/Sub event to // partners. CustomerEvent *GoogleCloudChannelV1CustomerEvent `json:"customerEvent,omitempty"` // EntitlementEvent: Entitlement event sent as part of Pub/Sub event to // partners. EntitlementEvent *GoogleCloudChannelV1EntitlementEvent `json:"entitlementEvent,omitempty"` // ForceSendFields is a list of field names (e.g. "CustomerEvent") 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. "CustomerEvent") 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:"-"` }
GoogleCloudChannelV1SubscriberEvent: Represents information which resellers will get as part of notification from Pub/Sub.
func (*GoogleCloudChannelV1SubscriberEvent) MarshalJSON ¶
func (s *GoogleCloudChannelV1SubscriberEvent) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1SuspendEntitlementRequest ¶
type GoogleCloudChannelV1SuspendEntitlementRequest struct { // RequestId: Optional. You can specify an optional unique request ID, // and if you need to retry your request, the server will know to ignore // the request if it's complete. For example, you make an initial // request and the request times out. If you make the request again with // the same request ID, the server can check if it received the original // operation with the same request ID. If it did, it will ignore the // second request. The request ID must be a valid UUID // (https://tools.ietf.org/html/rfc4122) with the exception that zero // UUID is not supported (`00000000-0000-0000-0000-000000000000`). RequestId string `json:"requestId,omitempty"` // ForceSendFields is a list of field names (e.g. "RequestId") 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. "RequestId") 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:"-"` }
GoogleCloudChannelV1SuspendEntitlementRequest: Request message for CloudChannelService.SuspendEntitlement.
func (*GoogleCloudChannelV1SuspendEntitlementRequest) MarshalJSON ¶
func (s *GoogleCloudChannelV1SuspendEntitlementRequest) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1TransferEligibility ¶
type GoogleCloudChannelV1TransferEligibility struct { // Description: Localized description if reseller is not eligible to // transfer the SKU. Description string `json:"description,omitempty"` // IneligibilityReason: Specified the reason for ineligibility. // // Possible values: // "REASON_UNSPECIFIED" - Not used. // "PENDING_TOS_ACCEPTANCE" - Reseller needs to accept TOS before // transferring the SKU. // "SKU_NOT_ELIGIBLE" - Reseller not eligible to sell the SKU. // "SKU_SUSPENDED" - SKU subscription is suspended IneligibilityReason string `json:"ineligibilityReason,omitempty"` // IsEligible: Whether reseller is eligible to transfer the SKU. IsEligible bool `json:"isEligible,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:"-"` }
GoogleCloudChannelV1TransferEligibility: Specifies transfer eligibility of a SKU.
func (*GoogleCloudChannelV1TransferEligibility) MarshalJSON ¶
func (s *GoogleCloudChannelV1TransferEligibility) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1TransferEntitlementsRequest ¶
type GoogleCloudChannelV1TransferEntitlementsRequest struct { // AuthToken: The super admin of the resold customer generates this // token to authorize a reseller to access their Cloud Identity and // purchase entitlements on their behalf. You can omit this token after // authorization. See https://support.google.com/a/answer/7643790 for // more details. AuthToken string `json:"authToken,omitempty"` // Entitlements: Required. The new entitlements to create or transfer. Entitlements []*GoogleCloudChannelV1Entitlement `json:"entitlements,omitempty"` // RequestId: Optional. You can specify an optional unique request ID, // and if you need to retry your request, the server will know to ignore // the request if it's complete. For example, you make an initial // request and the request times out. If you make the request again with // the same request ID, the server can check if it received the original // operation with the same request ID. If it did, it will ignore the // second request. The request ID must be a valid UUID // (https://tools.ietf.org/html/rfc4122) with the exception that zero // UUID is not supported (`00000000-0000-0000-0000-000000000000`). RequestId string `json:"requestId,omitempty"` // ForceSendFields is a list of field names (e.g. "AuthToken") 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. "AuthToken") 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:"-"` }
GoogleCloudChannelV1TransferEntitlementsRequest: Request message for CloudChannelService.TransferEntitlements.
func (*GoogleCloudChannelV1TransferEntitlementsRequest) MarshalJSON ¶
func (s *GoogleCloudChannelV1TransferEntitlementsRequest) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1TransferEntitlementsResponse ¶
type GoogleCloudChannelV1TransferEntitlementsResponse struct { // Entitlements: The transferred entitlements. Entitlements []*GoogleCloudChannelV1Entitlement `json:"entitlements,omitempty"` // ForceSendFields is a list of field names (e.g. "Entitlements") 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. "Entitlements") 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:"-"` }
GoogleCloudChannelV1TransferEntitlementsResponse: Response message for CloudChannelService.TransferEntitlements. This is put in the response field of google.longrunning.Operation.
func (*GoogleCloudChannelV1TransferEntitlementsResponse) MarshalJSON ¶
func (s *GoogleCloudChannelV1TransferEntitlementsResponse) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1TransferEntitlementsToGoogleRequest ¶
type GoogleCloudChannelV1TransferEntitlementsToGoogleRequest struct { // Entitlements: Required. The entitlements to transfer to Google. Entitlements []*GoogleCloudChannelV1Entitlement `json:"entitlements,omitempty"` // RequestId: Optional. You can specify an optional unique request ID, // and if you need to retry your request, the server will know to ignore // the request if it's complete. For example, you make an initial // request and the request times out. If you make the request again with // the same request ID, the server can check if it received the original // operation with the same request ID. If it did, it will ignore the // second request. The request ID must be a valid UUID // (https://tools.ietf.org/html/rfc4122) with the exception that zero // UUID is not supported (`00000000-0000-0000-0000-000000000000`). RequestId string `json:"requestId,omitempty"` // ForceSendFields is a list of field names (e.g. "Entitlements") 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. "Entitlements") 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:"-"` }
GoogleCloudChannelV1TransferEntitlementsToGoogleRequest: Request message for CloudChannelService.TransferEntitlementsToGoogle.
func (*GoogleCloudChannelV1TransferEntitlementsToGoogleRequest) MarshalJSON ¶
func (s *GoogleCloudChannelV1TransferEntitlementsToGoogleRequest) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1TransferableOffer ¶
type GoogleCloudChannelV1TransferableOffer struct { // Offer: Offer with parameter constraints updated to allow the // Transfer. Offer *GoogleCloudChannelV1Offer `json:"offer,omitempty"` // ForceSendFields is a list of field names (e.g. "Offer") 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. "Offer") 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:"-"` }
GoogleCloudChannelV1TransferableOffer: TransferableOffer represents an Offer that can be used in Transfer. Read-only.
func (*GoogleCloudChannelV1TransferableOffer) MarshalJSON ¶
func (s *GoogleCloudChannelV1TransferableOffer) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1TransferableSku ¶
type GoogleCloudChannelV1TransferableSku struct { // LegacySku: Optional. The customer to transfer has an entitlement with // the populated legacy SKU. LegacySku *GoogleCloudChannelV1Sku `json:"legacySku,omitempty"` // Sku: The SKU pertaining to the provisioning resource as specified in // the Offer. Sku *GoogleCloudChannelV1Sku `json:"sku,omitempty"` // TransferEligibility: Describes the transfer eligibility of a SKU. TransferEligibility *GoogleCloudChannelV1TransferEligibility `json:"transferEligibility,omitempty"` // ForceSendFields is a list of field names (e.g. "LegacySku") 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. "LegacySku") 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:"-"` }
GoogleCloudChannelV1TransferableSku: TransferableSku represents information a reseller needs to view existing provisioned services for a customer that they do not own. Read-only.
func (*GoogleCloudChannelV1TransferableSku) MarshalJSON ¶
func (s *GoogleCloudChannelV1TransferableSku) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1TrialSettings ¶
type GoogleCloudChannelV1TrialSettings struct { // EndTime: Date when the trial ends. The value is in milliseconds using // the UNIX Epoch format. See an example Epoch converter // (https://www.epochconverter.com). EndTime string `json:"endTime,omitempty"` // Trial: Determines if the entitlement is in a trial or not: * `true` - // The entitlement is in trial. * `false` - The entitlement is not in // trial. Trial bool `json:"trial,omitempty"` // ForceSendFields is a list of field names (e.g. "EndTime") 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. "EndTime") 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:"-"` }
GoogleCloudChannelV1TrialSettings: Settings for trial offers.
func (*GoogleCloudChannelV1TrialSettings) MarshalJSON ¶
func (s *GoogleCloudChannelV1TrialSettings) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1UnregisterSubscriberRequest ¶
type GoogleCloudChannelV1UnregisterSubscriberRequest struct { // ServiceAccount: Required. Service account to unregister from // subscriber access to the topic. ServiceAccount string `json:"serviceAccount,omitempty"` // ForceSendFields is a list of field names (e.g. "ServiceAccount") 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. "ServiceAccount") 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:"-"` }
GoogleCloudChannelV1UnregisterSubscriberRequest: Request Message for UnregisterSubscriber.
func (*GoogleCloudChannelV1UnregisterSubscriberRequest) MarshalJSON ¶
func (s *GoogleCloudChannelV1UnregisterSubscriberRequest) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1UnregisterSubscriberResponse ¶
type GoogleCloudChannelV1UnregisterSubscriberResponse struct { // Topic: Name of the topic the service account subscriber access was // removed from. Topic string `json:"topic,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Topic") 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. "Topic") 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:"-"` }
GoogleCloudChannelV1UnregisterSubscriberResponse: Response Message for UnregisterSubscriber.
func (*GoogleCloudChannelV1UnregisterSubscriberResponse) MarshalJSON ¶
func (s *GoogleCloudChannelV1UnregisterSubscriberResponse) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1UpdateChannelPartnerLinkRequest ¶
type GoogleCloudChannelV1UpdateChannelPartnerLinkRequest struct { // ChannelPartnerLink: Required. The channel partner link to update. // Only channel_partner_link.link_state is allowed for updates. ChannelPartnerLink *GoogleCloudChannelV1ChannelPartnerLink `json:"channelPartnerLink,omitempty"` // UpdateMask: Required. The update mask that applies to the resource. // The only allowable value for an update mask is // channel_partner_link.link_state. UpdateMask string `json:"updateMask,omitempty"` // ForceSendFields is a list of field names (e.g. "ChannelPartnerLink") // 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. "ChannelPartnerLink") 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:"-"` }
GoogleCloudChannelV1UpdateChannelPartnerLinkRequest: Request message for CloudChannelService.UpdateChannelPartnerLink
func (*GoogleCloudChannelV1UpdateChannelPartnerLinkRequest) MarshalJSON ¶
func (s *GoogleCloudChannelV1UpdateChannelPartnerLinkRequest) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1Value ¶
type GoogleCloudChannelV1Value struct { // BoolValue: Represents a boolean value. BoolValue bool `json:"boolValue,omitempty"` // DoubleValue: Represents a double value. DoubleValue float64 `json:"doubleValue,omitempty"` // Int64Value: Represents an int64 value. Int64Value int64 `json:"int64Value,omitempty,string"` // ProtoValue: Represents an 'Any' proto value. ProtoValue googleapi.RawMessage `json:"protoValue,omitempty"` // StringValue: Represents a string value. StringValue string `json:"stringValue,omitempty"` // ForceSendFields is a list of field names (e.g. "BoolValue") 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. "BoolValue") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudChannelV1Value: Data type and value of a parameter.
func (*GoogleCloudChannelV1Value) MarshalJSON ¶
func (s *GoogleCloudChannelV1Value) MarshalJSON() ([]byte, error)
func (*GoogleCloudChannelV1Value) UnmarshalJSON ¶
func (s *GoogleCloudChannelV1Value) UnmarshalJSON(data []byte) error
type GoogleCloudChannelV1alpha1AssociationInfo ¶
type GoogleCloudChannelV1alpha1AssociationInfo struct { // BaseEntitlement: The name of the base entitlement, for which this // entitlement is an add-on. BaseEntitlement string `json:"baseEntitlement,omitempty"` // ForceSendFields is a list of field names (e.g. "BaseEntitlement") 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. "BaseEntitlement") 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:"-"` }
GoogleCloudChannelV1alpha1AssociationInfo: Association links that an entitlement has to other entitlements.
func (*GoogleCloudChannelV1alpha1AssociationInfo) MarshalJSON ¶
func (s *GoogleCloudChannelV1alpha1AssociationInfo) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1alpha1CommitmentSettings ¶
type GoogleCloudChannelV1alpha1CommitmentSettings struct { // EndTime: Output only. Commitment end timestamp. EndTime string `json:"endTime,omitempty"` // RenewalSettings: Optional. Renewal settings applicable for a // commitment-based Offer. RenewalSettings *GoogleCloudChannelV1alpha1RenewalSettings `json:"renewalSettings,omitempty"` // StartTime: Output only. Commitment start timestamp. StartTime string `json:"startTime,omitempty"` // ForceSendFields is a list of field names (e.g. "EndTime") 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. "EndTime") 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:"-"` }
GoogleCloudChannelV1alpha1CommitmentSettings: Commitment settings for commitment-based offers.
func (*GoogleCloudChannelV1alpha1CommitmentSettings) MarshalJSON ¶
func (s *GoogleCloudChannelV1alpha1CommitmentSettings) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1alpha1CustomerEvent ¶
type GoogleCloudChannelV1alpha1CustomerEvent struct { // Customer: Resource name of the customer. Format: // accounts/{account_id}/customers/{customer_id} Customer string `json:"customer,omitempty"` // EventType: Type of event which happened on the customer. // // Possible values: // "TYPE_UNSPECIFIED" - Not used. // "PRIMARY_DOMAIN_CHANGED" - Primary domain for customer was changed. // "PRIMARY_DOMAIN_VERIFIED" - Primary domain of the customer has been // verified. EventType string `json:"eventType,omitempty"` // ForceSendFields is a list of field names (e.g. "Customer") 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. "Customer") 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:"-"` }
GoogleCloudChannelV1alpha1CustomerEvent: Represents Pub/Sub message content describing customer update.
func (*GoogleCloudChannelV1alpha1CustomerEvent) MarshalJSON ¶
func (s *GoogleCloudChannelV1alpha1CustomerEvent) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1alpha1Entitlement ¶
type GoogleCloudChannelV1alpha1Entitlement struct { // AssignedUnits: The current number of users that are assigned a // license for the product defined in provisioned_service.skuId. // Read-only. Deprecated: Use `parameters` instead. AssignedUnits int64 `json:"assignedUnits,omitempty"` // AssociationInfo: Association information to other entitlements. AssociationInfo *GoogleCloudChannelV1alpha1AssociationInfo `json:"associationInfo,omitempty"` // ChannelPartnerId: Cloud Identity ID of a channel partner who will be // the direct reseller for the customer's order. This field is generally // used in 2-tier ordering, where the order is placed by a top-level // distributor on behalf of their channel partner or reseller. Required // for distributors. Deprecated: `channel_partner_id` has been moved to // the Customer. ChannelPartnerId string `json:"channelPartnerId,omitempty"` // CommitmentSettings: Commitment settings for a commitment-based Offer. // Required for commitment based offers. CommitmentSettings *GoogleCloudChannelV1alpha1CommitmentSettings `json:"commitmentSettings,omitempty"` // CreateTime: Output only. The time at which the entitlement is // created. CreateTime string `json:"createTime,omitempty"` // MaxUnits: Maximum number of units for a non commitment-based Offer, // such as Flexible, Trial or Free entitlements. For commitment-based // entitlements, this is a read-only field, which only the internal // support team can update. Deprecated: Use `parameters` instead. MaxUnits int64 `json:"maxUnits,omitempty"` // Name: Output only. Resource name of an entitlement in the form: // accounts/{account_id}/customers/{customer_id}/entitlements/{entitlemen // t_id}. Name string `json:"name,omitempty"` // NumUnits: Number of units for a commitment-based Offer. For example, // for seat-based Offers, this would be the number of seats; for // license-based Offers, this would be the number of licenses. Required // for creating commitment-based Offers. Deprecated: Use `parameters` // instead. NumUnits int64 `json:"numUnits,omitempty"` // Offer: Required. The offer resource name for which the entitlement is // to be created. Takes the form: // accounts/{account_id}/offers/{offer_id}. Offer string `json:"offer,omitempty"` // Parameters: Extended entitlement parameters. When creating an // entitlement, valid parameter names and values are defined in the // Offer.parameter_definitions. The response may include the following // output-only Parameters: - assigned_units: The number of licenses // assigned to users. - max_units: The maximum assignable units for a // flexible offer. - num_units: The total commitment for // commitment-based offers. Parameters []*GoogleCloudChannelV1alpha1Parameter `json:"parameters,omitempty"` // ProvisionedService: Output only. Service provisioning details for the // entitlement. ProvisionedService *GoogleCloudChannelV1alpha1ProvisionedService `json:"provisionedService,omitempty"` // ProvisioningState: Output only. Current provisioning state of the // entitlement. // // Possible values: // "PROVISIONING_STATE_UNSPECIFIED" - Not used. // "ACTIVE" - The entitlement is currently active. // "CANCELED" - The entitlement was canceled. After an entitlement is // `CANCELED`, its status will not change. Deprecated: Canceled // entitlements will no longer be visible. // "COMPLETE" - The entitlement reached end of term and was not // renewed. After an entitlement is `COMPLETE`, its status will not // change. Deprecated: This is represented as // ProvisioningState=SUSPENDED and suspensionReason in (TRIAL_ENDED, // RENEWAL_WITH_TYPE_CANCEL) // "PENDING" - The entitlement is pending. Deprecated: This is // represented as ProvisioningState=SUSPENDED and // suspensionReason=PENDING_TOS_ACCEPTANCE // "SUSPENDED" - The entitlement is currently suspended. ProvisioningState string `json:"provisioningState,omitempty"` // PurchaseOrderId: Optional. This purchase order (PO) information is // for resellers to use for their company tracking usage. If a // purchaseOrderId value is given, it appears in the API responses and // shows up in the invoice. The property accepts up to 80 plain text // characters. This is only supported for Google Workspace entitlements. PurchaseOrderId string `json:"purchaseOrderId,omitempty"` // SuspensionReasons: Output only. Enumerable of all current suspension // reasons for an entitlement. // // Possible values: // "SUSPENSION_REASON_UNSPECIFIED" - Not used. // "RESELLER_INITIATED" - Entitlement was manually suspended by the // Reseller. // "TRIAL_ENDED" - Trial ended. // "RENEWAL_WITH_TYPE_CANCEL" - Entitlement renewal was canceled. // "PENDING_TOS_ACCEPTANCE" - Entitlement was automatically suspended // on creation for pending ToS acceptance on customer. // "OTHER" - Other reasons (internal reasons, abuse, etc.). SuspensionReasons []string `json:"suspensionReasons,omitempty"` // TrialSettings: Output only. Settings for trial offers. TrialSettings *GoogleCloudChannelV1alpha1TrialSettings `json:"trialSettings,omitempty"` // UpdateTime: Output only. The time at which the entitlement is // updated. UpdateTime string `json:"updateTime,omitempty"` // ForceSendFields is a list of field names (e.g. "AssignedUnits") 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. "AssignedUnits") 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:"-"` }
GoogleCloudChannelV1alpha1Entitlement: An entitlement is a representation of a customer's ability to use a service.
func (*GoogleCloudChannelV1alpha1Entitlement) MarshalJSON ¶
func (s *GoogleCloudChannelV1alpha1Entitlement) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1alpha1EntitlementEvent ¶
type GoogleCloudChannelV1alpha1EntitlementEvent struct { // Entitlement: Resource name of an entitlement of the form: // accounts/{account_id}/customers/{customer_id}/entitlements/{entitlemen // t_id} Entitlement string `json:"entitlement,omitempty"` // EventType: Type of event which happened on the entitlement. // // Possible values: // "TYPE_UNSPECIFIED" - Not used. // "CREATED" - A new entitlement was created. // "PRICE_PLAN_SWITCHED" - The offer type associated with an // entitlement was changed. This is not triggered if an entitlement // converts from a commit offer to a flexible offer as part of a // renewal. // "COMMITMENT_CHANGED" - Annual commitment for a commit plan was // changed. // "RENEWED" - An annual entitlement was renewed. // "SUSPENDED" - Entitlement was suspended. // "ACTIVATED" - Entitlement was unsuspended. // "CANCELLED" - Entitlement was cancelled. // "SKU_CHANGED" - Entitlement was upgraded or downgraded (e.g. from // Google Workspace Business Standard to Google Workspace Business // Plus). // "RENEWAL_SETTING_CHANGED" - The renewal settings of an entitlement // has changed. // "PAID_SERVICE_STARTED" - Paid service has started on trial // entitlement. // "LICENSE_ASSIGNMENT_CHANGED" - License was assigned to or revoked // from a user. // "LICENSE_CAP_CHANGED" - License cap was changed for the // entitlement. EventType string `json:"eventType,omitempty"` // ForceSendFields is a list of field names (e.g. "Entitlement") 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. "Entitlement") 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:"-"` }
GoogleCloudChannelV1alpha1EntitlementEvent: Represents Pub/Sub message content describing entitlement update.
func (*GoogleCloudChannelV1alpha1EntitlementEvent) MarshalJSON ¶
func (s *GoogleCloudChannelV1alpha1EntitlementEvent) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1alpha1OperationMetadata ¶
type GoogleCloudChannelV1alpha1OperationMetadata struct { // OperationType: The RPC that initiated this Long Running Operation. // // Possible values: // "OPERATION_TYPE_UNSPECIFIED" - Not used. // "CREATE_ENTITLEMENT" - Long Running Operation was triggered by // CreateEntitlement. // "CHANGE_QUANTITY" - Long Running Operation was triggered by // ChangeQuantity. // "CHANGE_RENEWAL_SETTINGS" - Long Running Operation was triggered by // ChangeRenewalSettings. // "CHANGE_PLAN" - Long Running Operation was triggered by ChangePlan. // "START_PAID_SERVICE" - Long Running Operation was triggered by // StartPaidService. // "CHANGE_SKU" - Long Running Operation was triggered by ChangeSku. // "ACTIVATE_ENTITLEMENT" - Long Running Operation was triggered by // ActivateEntitlement. // "SUSPEND_ENTITLEMENT" - Long Running Operation was triggered by // SuspendEntitlement. // "CANCEL_ENTITLEMENT" - Long Running Operation was triggered by // CancelEntitlement. // "TRANSFER_ENTITLEMENTS" - Long Running Operation was triggered by // TransferEntitlements. // "TRANSFER_ENTITLEMENTS_TO_GOOGLE" - Long Running Operation was // triggered by TransferEntitlementsToGoogle. // "CHANGE_OFFER" - Long Running Operation was triggered by // ChangeOffer. // "CHANGE_PARAMETERS" - Long Running Operation was triggered by // ChangeParameters. // "PROVISION_CLOUD_IDENTITY" - Long Running Operation was triggered // by ProvisionCloudIdentity. OperationType string `json:"operationType,omitempty"` // ForceSendFields is a list of field names (e.g. "OperationType") 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. "OperationType") 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:"-"` }
GoogleCloudChannelV1alpha1OperationMetadata: Provides contextual information about a google.longrunning.Operation.
func (*GoogleCloudChannelV1alpha1OperationMetadata) MarshalJSON ¶
func (s *GoogleCloudChannelV1alpha1OperationMetadata) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1alpha1Parameter ¶
type GoogleCloudChannelV1alpha1Parameter struct { // Editable: Output only. Specifies whether this parameter is allowed to // be changed. For example, for a Google Workspace Business Starter // entitlement in commitment plan, num_units is editable when // entitlement is active. Editable bool `json:"editable,omitempty"` // Name: Name of the parameter. Name string `json:"name,omitempty"` // Value: Value of the parameter. Value *GoogleCloudChannelV1alpha1Value `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Editable") 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. "Editable") 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:"-"` }
GoogleCloudChannelV1alpha1Parameter: Definition for extended entitlement parameters.
func (*GoogleCloudChannelV1alpha1Parameter) MarshalJSON ¶
func (s *GoogleCloudChannelV1alpha1Parameter) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1alpha1Period ¶
type GoogleCloudChannelV1alpha1Period struct { // Duration: Total duration of Period Type defined. Duration int64 `json:"duration,omitempty"` // PeriodType: Period Type. // // Possible values: // "PERIOD_TYPE_UNSPECIFIED" - Not used. // "DAY" - Day. // "MONTH" - Month. // "YEAR" - Year. PeriodType string `json:"periodType,omitempty"` // ForceSendFields is a list of field names (e.g. "Duration") 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. "Duration") 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:"-"` }
GoogleCloudChannelV1alpha1Period: Represents period in days/months/years.
func (*GoogleCloudChannelV1alpha1Period) MarshalJSON ¶
func (s *GoogleCloudChannelV1alpha1Period) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1alpha1ProvisionedService ¶
type GoogleCloudChannelV1alpha1ProvisionedService struct { // ProductId: Output only. The product pertaining to the provisioning // resource as specified in the Offer. ProductId string `json:"productId,omitempty"` // ProvisioningId: Output only. Provisioning ID of the entitlement. For // Google Workspace, this is the underlying Subscription ID. For Google // Cloud Platform, this is the Billing Account ID of the billing // subaccount." ProvisioningId string `json:"provisioningId,omitempty"` // SkuId: Output only. The SKU pertaining to the provisioning resource // as specified in the Offer. SkuId string `json:"skuId,omitempty"` // ForceSendFields is a list of field names (e.g. "ProductId") 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. "ProductId") 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:"-"` }
GoogleCloudChannelV1alpha1ProvisionedService: Service provisioned for an entitlement.
func (*GoogleCloudChannelV1alpha1ProvisionedService) MarshalJSON ¶
func (s *GoogleCloudChannelV1alpha1ProvisionedService) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1alpha1RenewalSettings ¶
type GoogleCloudChannelV1alpha1RenewalSettings struct { // DisableCommitment: If true, disables commitment-based offer on // renewal and switches to flexible or pay as you go. Deprecated: Use // `payment_plan` instead. DisableCommitment bool `json:"disableCommitment,omitempty"` // EnableRenewal: If false, the plan will be completed at the end date. EnableRenewal bool `json:"enableRenewal,omitempty"` // PaymentCycle: Describes how frequently the reseller will be billed, // such as once per month. PaymentCycle *GoogleCloudChannelV1alpha1Period `json:"paymentCycle,omitempty"` // PaymentOption: Set if enable_renewal=true. Deprecated: Use // `payment_cycle` instead. // // Possible values: // "PAYMENT_OPTION_UNSPECIFIED" - Not used. // "ANNUAL" - Paid in yearly installments. // "MONTHLY" - Paid in monthly installments. PaymentOption string `json:"paymentOption,omitempty"` // PaymentPlan: Describes how a reseller will be billed. // // Possible values: // "PAYMENT_PLAN_UNSPECIFIED" - Not used. // "COMMITMENT" - Commitment. // "FLEXIBLE" - No commitment. // "FREE" - Free. // "TRIAL" - Trial. // "OFFLINE" - Price and ordering not available through API. PaymentPlan string `json:"paymentPlan,omitempty"` // ResizeUnitCount: If true and enable_renewal = true, the unit (for // example seats or licenses) will be set to the number of active units // at renewal time. ResizeUnitCount bool `json:"resizeUnitCount,omitempty"` // ForceSendFields is a list of field names (e.g. "DisableCommitment") // 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. "DisableCommitment") 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:"-"` }
GoogleCloudChannelV1alpha1RenewalSettings: Renewal settings for renewable Offers.
func (*GoogleCloudChannelV1alpha1RenewalSettings) MarshalJSON ¶
func (s *GoogleCloudChannelV1alpha1RenewalSettings) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1alpha1SubscriberEvent ¶
type GoogleCloudChannelV1alpha1SubscriberEvent struct { // CustomerEvent: Customer event sent as part of Pub/Sub event to // partners. CustomerEvent *GoogleCloudChannelV1alpha1CustomerEvent `json:"customerEvent,omitempty"` // EntitlementEvent: Entitlement event sent as part of Pub/Sub event to // partners. EntitlementEvent *GoogleCloudChannelV1alpha1EntitlementEvent `json:"entitlementEvent,omitempty"` // ForceSendFields is a list of field names (e.g. "CustomerEvent") 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. "CustomerEvent") 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:"-"` }
GoogleCloudChannelV1alpha1SubscriberEvent: Represents information which resellers will get as part of notification from Pub/Sub.
func (*GoogleCloudChannelV1alpha1SubscriberEvent) MarshalJSON ¶
func (s *GoogleCloudChannelV1alpha1SubscriberEvent) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1alpha1TransferEntitlementsResponse ¶
type GoogleCloudChannelV1alpha1TransferEntitlementsResponse struct { // Entitlements: The transferred entitlements. Entitlements []*GoogleCloudChannelV1alpha1Entitlement `json:"entitlements,omitempty"` // ForceSendFields is a list of field names (e.g. "Entitlements") 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. "Entitlements") 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:"-"` }
GoogleCloudChannelV1alpha1TransferEntitlementsResponse: Response message for CloudChannelService.TransferEntitlements. This is put in the response field of google.longrunning.Operation.
func (*GoogleCloudChannelV1alpha1TransferEntitlementsResponse) MarshalJSON ¶
func (s *GoogleCloudChannelV1alpha1TransferEntitlementsResponse) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1alpha1TrialSettings ¶
type GoogleCloudChannelV1alpha1TrialSettings struct { // EndTime: Date when the trial ends. The value is in milliseconds using // the UNIX Epoch format. See an example Epoch converter // (https://www.epochconverter.com). EndTime string `json:"endTime,omitempty"` // Trial: Determines if the entitlement is in a trial or not: * `true` - // The entitlement is in trial. * `false` - The entitlement is not in // trial. Trial bool `json:"trial,omitempty"` // ForceSendFields is a list of field names (e.g. "EndTime") 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. "EndTime") 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:"-"` }
GoogleCloudChannelV1alpha1TrialSettings: Settings for trial offers.
func (*GoogleCloudChannelV1alpha1TrialSettings) MarshalJSON ¶
func (s *GoogleCloudChannelV1alpha1TrialSettings) MarshalJSON() ([]byte, error)
type GoogleCloudChannelV1alpha1Value ¶
type GoogleCloudChannelV1alpha1Value struct { // BoolValue: Represents a boolean value. BoolValue bool `json:"boolValue,omitempty"` // DoubleValue: Represents a double value. DoubleValue float64 `json:"doubleValue,omitempty"` // Int64Value: Represents an int64 value. Int64Value int64 `json:"int64Value,omitempty,string"` // ProtoValue: Represents an 'Any' proto value. ProtoValue googleapi.RawMessage `json:"protoValue,omitempty"` // StringValue: Represents a string value. StringValue string `json:"stringValue,omitempty"` // ForceSendFields is a list of field names (e.g. "BoolValue") 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. "BoolValue") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudChannelV1alpha1Value: Data type and value of a parameter.
func (*GoogleCloudChannelV1alpha1Value) MarshalJSON ¶
func (s *GoogleCloudChannelV1alpha1Value) MarshalJSON() ([]byte, error)
func (*GoogleCloudChannelV1alpha1Value) UnmarshalJSON ¶
func (s *GoogleCloudChannelV1alpha1Value) UnmarshalJSON(data []byte) error
type GoogleLongrunningCancelOperationRequest ¶
type GoogleLongrunningCancelOperationRequest struct { }
GoogleLongrunningCancelOperationRequest: The request message for Operations.CancelOperation.
type GoogleLongrunningListOperationsResponse ¶
type GoogleLongrunningListOperationsResponse struct { // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` // Operations: A list of operations that matches the specified filter in // the request. Operations []*GoogleLongrunningOperation `json:"operations,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty 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. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleLongrunningListOperationsResponse: The response message for Operations.ListOperations.
func (*GoogleLongrunningListOperationsResponse) MarshalJSON ¶
func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error)
type GoogleLongrunningOperation ¶
type GoogleLongrunningOperation struct { // Done: If the value is `false`, it means the operation is still in // progress. If `true`, the operation is completed, and either `error` // or `response` is available. Done bool `json:"done,omitempty"` // Error: The error result of the operation in case of failure or // cancellation. Error *GoogleRpcStatus `json:"error,omitempty"` // Metadata: Service-specific metadata associated with the operation. It // typically contains progress information and common metadata such as // create time. Some services might not provide such metadata. Any // method that returns a long-running operation should document the // metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` // Name: The server-assigned name, which is only unique within the same // service that originally returns it. If you use the default HTTP // mapping, the `name` should be a resource name ending with // `operations/{unique_id}`. Name string `json:"name,omitempty"` // Response: The normal response of the operation in case of success. If // the original method returns no data on success, such as `Delete`, the // response is `google.protobuf.Empty`. If the original method is // standard `Get`/`Create`/`Update`, the response should be the // resource. For other methods, the response should have the type // `XxxResponse`, where `Xxx` is the original method name. For example, // if the original method name is `TakeSnapshot()`, the inferred // response type is `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Done") 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. "Done") 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:"-"` }
GoogleLongrunningOperation: This resource represents a long-running operation that is the result of a network API call.
func (*GoogleLongrunningOperation) MarshalJSON ¶
func (s *GoogleLongrunningOperation) 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 GoogleRpcStatus ¶
type GoogleRpcStatus struct { // Code: The status code, which should be an enum value of // google.rpc.Code. Code int64 `json:"code,omitempty"` // Details: A list of messages that carry the error details. There is a // common set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` // Message: A developer-facing error message, which should be in // English. Any user-facing error message should be localized and sent // in the google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` // ForceSendFields is a list of field names (e.g. "Code") 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. "Code") 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:"-"` }
GoogleRpcStatus: The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors).
func (*GoogleRpcStatus) MarshalJSON ¶
func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error)
type GoogleTypeMoney ¶
type GoogleTypeMoney struct { // CurrencyCode: The three-letter currency code defined in ISO 4217. CurrencyCode string `json:"currencyCode,omitempty"` // Nanos: Number of nano (10^-9) units of the amount. The value must be // between -999,999,999 and +999,999,999 inclusive. If `units` is // positive, `nanos` must be positive or zero. If `units` is zero, // `nanos` can be positive, zero, or negative. If `units` is negative, // `nanos` must be negative or zero. For example $-1.75 is represented // as `units`=-1 and `nanos`=-750,000,000. Nanos int64 `json:"nanos,omitempty"` // Units: The whole units of the amount. For example if `currencyCode` // is "USD", then 1 unit is one US dollar. Units int64 `json:"units,omitempty,string"` // ForceSendFields is a list of field names (e.g. "CurrencyCode") 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. "CurrencyCode") 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:"-"` }
GoogleTypeMoney: Represents an amount of money with its currency type.
func (*GoogleTypeMoney) MarshalJSON ¶
func (s *GoogleTypeMoney) MarshalJSON() ([]byte, error)
type GoogleTypePostalAddress ¶
type GoogleTypePostalAddress struct { // AddressLines: Unstructured address lines describing the lower levels // of an address. Because values in address_lines do not have type // information and may sometimes contain multiple values in a single // field (e.g. "Austin, TX"), it is important that the line order is // clear. The order of address lines should be "envelope order" for the // country/region of the address. In places where this can vary (e.g. // Japan), address_language is used to make it explicit (e.g. "ja" for // large-to-small ordering and "ja-Latn" or "en" for small-to-large). // This way, the most specific line of an address can be selected based // on the language. The minimum permitted structural representation of // an address consists of a region_code with all remaining information // placed in the address_lines. It would be possible to format such an // address very approximately without geocoding, but no semantic // reasoning could be made about any of the address components until it // was at least partially resolved. Creating an address only containing // a region_code and address_lines, and then geocoding is the // recommended way to handle completely unstructured addresses (as // opposed to guessing which parts of the address should be localities // or administrative areas). AddressLines []string `json:"addressLines,omitempty"` // AdministrativeArea: Optional. Highest administrative subdivision // which is used for postal addresses of a country or region. For // example, this can be a state, a province, an oblast, or a prefecture. // Specifically, for Spain this is the province and not the autonomous // community (e.g. "Barcelona" and not "Catalonia"). Many countries // don't use an administrative area in postal addresses. E.g. in // Switzerland this should be left unpopulated. AdministrativeArea string `json:"administrativeArea,omitempty"` // LanguageCode: Optional. BCP-47 language code of the contents of this // address (if known). This is often the UI language of the input form // or is expected to match one of the languages used in the address' // country/region, or their transliterated equivalents. This can affect // formatting in certain countries, but is not critical to the // correctness of the data and will never affect any validation or other // non-formatting related operations. If this value is not known, it // should be omitted (rather than specifying a possibly incorrect // default). Examples: "zh-Hant", "ja", "ja-Latn", "en". LanguageCode string `json:"languageCode,omitempty"` // Locality: Optional. Generally refers to the city/town portion of the // address. Examples: US city, IT comune, UK post town. In regions of // the world where localities are not well defined or do not fit into // this structure well, leave locality empty and use address_lines. Locality string `json:"locality,omitempty"` // Organization: Optional. The name of the organization at the address. Organization string `json:"organization,omitempty"` // PostalCode: Optional. Postal code of the address. Not all countries // use or require postal codes to be present, but where they are used, // they may trigger additional validation with other parts of the // address (e.g. state/zip validation in the U.S.A.). PostalCode string `json:"postalCode,omitempty"` // Recipients: Optional. The recipient at the address. This field may, // under certain circumstances, contain multiline information. For // example, it might contain "care of" information. Recipients []string `json:"recipients,omitempty"` // RegionCode: Required. CLDR region code of the country/region of the // address. This is never inferred and it is up to the user to ensure // the value is correct. See https://cldr.unicode.org/ and // https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html // for details. Example: "CH" for Switzerland. RegionCode string `json:"regionCode,omitempty"` // Revision: The schema revision of the `PostalAddress`. This must be // set to 0, which is the latest revision. All new revisions **must** be // backward compatible with old revisions. Revision int64 `json:"revision,omitempty"` // SortingCode: Optional. Additional, country-specific, sorting code. // This is not used in most regions. Where it is used, the value is // either a string like "CEDEX", optionally followed by a number (e.g. // "CEDEX 7"), or just a number alone, representing the "sector code" // (Jamaica), "delivery area indicator" (Malawi) or "post office // indicator" (e.g. Côte d'Ivoire). SortingCode string `json:"sortingCode,omitempty"` // Sublocality: Optional. Sublocality of the address. For example, this // can be neighborhoods, boroughs, districts. Sublocality string `json:"sublocality,omitempty"` // ForceSendFields is a list of field names (e.g. "AddressLines") 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. "AddressLines") 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:"-"` }
GoogleTypePostalAddress: Represents a postal address, e.g. for postal delivery or payments addresses. Given a postal address, a postal service can deliver items to a premise, P.O. Box or similar. It is not intended to model geographical locations (roads, towns, mountains). In typical usage an address would be created via user input or from importing existing data, depending on the type of process. Advice on address input / editing: - Use an i18n-ready address widget such as https://github.com/google/libaddressinput) - Users should not be presented with UI elements for input or editing of fields outside countries where that field is used. For more guidance on how to use this schema, please see: https://support.google.com/business/answer/6397478
func (*GoogleTypePostalAddress) MarshalJSON ¶
func (s *GoogleTypePostalAddress) MarshalJSON() ([]byte, error)
type OperationsCancelCall ¶
type OperationsCancelCall struct {
// contains filtered or unexported fields
}
func (*OperationsCancelCall) Context ¶
func (c *OperationsCancelCall) Context(ctx context.Context) *OperationsCancelCall
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 (*OperationsCancelCall) Do ¶
func (c *OperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
Do executes the "cloudchannel.operations.cancel" 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 (*OperationsCancelCall) Fields ¶
func (c *OperationsCancelCall) Fields(s ...googleapi.Field) *OperationsCancelCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OperationsCancelCall) Header ¶
func (c *OperationsCancelCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type OperationsDeleteCall ¶
type OperationsDeleteCall struct {
// contains filtered or unexported fields
}
func (*OperationsDeleteCall) Context ¶
func (c *OperationsDeleteCall) Context(ctx context.Context) *OperationsDeleteCall
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 (*OperationsDeleteCall) Do ¶
func (c *OperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
Do executes the "cloudchannel.operations.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 (*OperationsDeleteCall) Fields ¶
func (c *OperationsDeleteCall) Fields(s ...googleapi.Field) *OperationsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OperationsDeleteCall) Header ¶
func (c *OperationsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type OperationsGetCall ¶
type OperationsGetCall struct {
// contains filtered or unexported fields
}
func (*OperationsGetCall) Context ¶
func (c *OperationsGetCall) Context(ctx context.Context) *OperationsGetCall
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 (*OperationsGetCall) Do ¶
func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
Do executes the "cloudchannel.operations.get" call. Exactly one of *GoogleLongrunningOperation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleLongrunningOperation.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 (*OperationsGetCall) Fields ¶
func (c *OperationsGetCall) Fields(s ...googleapi.Field) *OperationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OperationsGetCall) Header ¶
func (c *OperationsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*OperationsGetCall) IfNoneMatch ¶
func (c *OperationsGetCall) IfNoneMatch(entityTag string) *OperationsGetCall
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 OperationsListCall ¶
type OperationsListCall struct {
// contains filtered or unexported fields
}
func (*OperationsListCall) Context ¶
func (c *OperationsListCall) Context(ctx context.Context) *OperationsListCall
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 (*OperationsListCall) Do ¶
func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error)
Do executes the "cloudchannel.operations.list" call. Exactly one of *GoogleLongrunningListOperationsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleLongrunningListOperationsResponse.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 (*OperationsListCall) Fields ¶
func (c *OperationsListCall) Fields(s ...googleapi.Field) *OperationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OperationsListCall) Filter ¶
func (c *OperationsListCall) Filter(filter string) *OperationsListCall
Filter sets the optional parameter "filter": The standard list filter.
func (*OperationsListCall) Header ¶
func (c *OperationsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*OperationsListCall) IfNoneMatch ¶
func (c *OperationsListCall) IfNoneMatch(entityTag string) *OperationsListCall
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 (*OperationsListCall) PageSize ¶
func (c *OperationsListCall) PageSize(pageSize int64) *OperationsListCall
PageSize sets the optional parameter "pageSize": The standard list page size.
func (*OperationsListCall) PageToken ¶
func (c *OperationsListCall) PageToken(pageToken string) *OperationsListCall
PageToken sets the optional parameter "pageToken": The standard list page token.
func (*OperationsListCall) Pages ¶
func (c *OperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type OperationsService ¶
type OperationsService struct {
// contains filtered or unexported fields
}
func NewOperationsService ¶
func NewOperationsService(s *Service) *OperationsService
func (*OperationsService) Cancel ¶
func (r *OperationsService) Cancel(name string, googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest) *OperationsCancelCall
Cancel: Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
- name: The name of the operation resource to be cancelled.
func (*OperationsService) Delete ¶
func (r *OperationsService) Delete(name string) *OperationsDeleteCall
Delete: Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
- name: The name of the operation resource to be deleted.
func (*OperationsService) Get ¶
func (r *OperationsService) Get(name string) *OperationsGetCall
Get: Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
- name: The name of the operation resource.
func (*OperationsService) List ¶
func (r *OperationsService) List(name string) *OperationsListCall
List: Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as "/v1/{name=users/*}/operations" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.
- name: The name of the operation's parent resource.
type ProductsListCall ¶
type ProductsListCall struct {
// contains filtered or unexported fields
}
func (*ProductsListCall) Account ¶
func (c *ProductsListCall) Account(account string) *ProductsListCall
Account sets the optional parameter "account": Required. The resource name of the reseller account. Format: accounts/{account_id}.
func (*ProductsListCall) Context ¶
func (c *ProductsListCall) Context(ctx context.Context) *ProductsListCall
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 (*ProductsListCall) Do ¶
func (c *ProductsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1ListProductsResponse, error)
Do executes the "cloudchannel.products.list" call. Exactly one of *GoogleCloudChannelV1ListProductsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudChannelV1ListProductsResponse.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 (*ProductsListCall) Fields ¶
func (c *ProductsListCall) Fields(s ...googleapi.Field) *ProductsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProductsListCall) Header ¶
func (c *ProductsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProductsListCall) IfNoneMatch ¶
func (c *ProductsListCall) IfNoneMatch(entityTag string) *ProductsListCall
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 (*ProductsListCall) LanguageCode ¶
func (c *ProductsListCall) LanguageCode(languageCode string) *ProductsListCall
LanguageCode sets the optional parameter "languageCode": The BCP-47 language code. For example, "en-US". The response will localize in the corresponding language code, if specified. The default value is "en-US".
func (*ProductsListCall) PageSize ¶
func (c *ProductsListCall) PageSize(pageSize int64) *ProductsListCall
PageSize sets the optional parameter "pageSize": Requested page size. Server might return fewer results than requested. If unspecified, returns at most 100 Products. The maximum value is 1000; the server will coerce values above 1000.
func (*ProductsListCall) PageToken ¶
func (c *ProductsListCall) PageToken(pageToken string) *ProductsListCall
PageToken sets the optional parameter "pageToken": A token for a page of results other than the first page.
func (*ProductsListCall) Pages ¶
func (c *ProductsListCall) Pages(ctx context.Context, f func(*GoogleCloudChannelV1ListProductsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProductsService ¶
type ProductsService struct { Skus *ProductsSkusService // contains filtered or unexported fields }
func NewProductsService ¶
func NewProductsService(s *Service) *ProductsService
func (*ProductsService) List ¶
func (r *ProductsService) List() *ProductsListCall
List: Lists the Products the reseller is authorized to sell. Possible error codes: * INVALID_ARGUMENT: Required request parameters are missing or invalid.
type ProductsSkusListCall ¶
type ProductsSkusListCall struct {
// contains filtered or unexported fields
}
func (*ProductsSkusListCall) Account ¶
func (c *ProductsSkusListCall) Account(account string) *ProductsSkusListCall
Account sets the optional parameter "account": Required. Resource name of the reseller. Format: accounts/{account_id}.
func (*ProductsSkusListCall) Context ¶
func (c *ProductsSkusListCall) Context(ctx context.Context) *ProductsSkusListCall
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 (*ProductsSkusListCall) Do ¶
func (c *ProductsSkusListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1ListSkusResponse, error)
Do executes the "cloudchannel.products.skus.list" call. Exactly one of *GoogleCloudChannelV1ListSkusResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudChannelV1ListSkusResponse.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 (*ProductsSkusListCall) Fields ¶
func (c *ProductsSkusListCall) Fields(s ...googleapi.Field) *ProductsSkusListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProductsSkusListCall) Header ¶
func (c *ProductsSkusListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProductsSkusListCall) IfNoneMatch ¶
func (c *ProductsSkusListCall) IfNoneMatch(entityTag string) *ProductsSkusListCall
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 (*ProductsSkusListCall) LanguageCode ¶
func (c *ProductsSkusListCall) LanguageCode(languageCode string) *ProductsSkusListCall
LanguageCode sets the optional parameter "languageCode": The BCP-47 language code. For example, "en-US". The response will localize in the corresponding language code, if specified. The default value is "en-US".
func (*ProductsSkusListCall) PageSize ¶
func (c *ProductsSkusListCall) PageSize(pageSize int64) *ProductsSkusListCall
PageSize sets the optional parameter "pageSize": Requested page size. Server might return fewer results than requested. If unspecified, returns at most 100 SKUs. The maximum value is 1000; the server will coerce values above 1000.
func (*ProductsSkusListCall) PageToken ¶
func (c *ProductsSkusListCall) PageToken(pageToken string) *ProductsSkusListCall
PageToken sets the optional parameter "pageToken": A token for a page of results other than the first page. Optional.
func (*ProductsSkusListCall) Pages ¶
func (c *ProductsSkusListCall) Pages(ctx context.Context, f func(*GoogleCloudChannelV1ListSkusResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProductsSkusService ¶
type ProductsSkusService struct {
// contains filtered or unexported fields
}
func NewProductsSkusService ¶
func NewProductsSkusService(s *Service) *ProductsSkusService
func (*ProductsSkusService) List ¶
func (r *ProductsSkusService) List(parent string) *ProductsSkusListCall
List: Lists the SKUs for a product the reseller is authorized to sell. Possible error codes: * INVALID_ARGUMENT: Required request parameters are missing or invalid.
- parent: The resource name of the Product to list SKUs for. Parent uses the format: products/{product_id}. Supports products/- to retrieve SKUs for all products.
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment Accounts *AccountsService Operations *OperationsService Products *ProductsService // contains filtered or unexported fields }
func New
deprecated
New creates a new Service. It uses the provided http.Client for requests.
Deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
func NewService ¶
NewService creates a new Service.