v1

package
v0.1.417 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 12 Imported by: 73

Documentation ¶

Index ¶

Constants ¶

View Source
const AccessTokenAuthListKind = "AccessTokenAuthList"

AccessTokenAuthListKind is the name of the type used to represent list of objects of type 'access_token_auth'.

View Source
const AccessTokenAuthListLinkKind = "AccessTokenAuthListLink"

AccessTokenAuthListLinkKind is the name of the type used to represent links to list of objects of type 'access_token_auth'.

View Source
const AccessTokenAuthListNilKind = "AccessTokenAuthListNil"

AccessTokenAuthNilKind is the name of the type used to nil lists of objects of type 'access_token_auth'.

View Source
const AccessTokenListKind = "AccessTokenList"

AccessTokenListKind is the name of the type used to represent list of objects of type 'access_token'.

View Source
const AccessTokenListLinkKind = "AccessTokenListLink"

AccessTokenListLinkKind is the name of the type used to represent links to list of objects of type 'access_token'.

View Source
const AccessTokenListNilKind = "AccessTokenListNil"

AccessTokenNilKind is the name of the type used to nil lists of objects of type 'access_token'.

View Source
const AccountKind = "Account"

AccountKind is the name of the type used to represent objects of type 'account'.

View Source
const AccountLinkKind = "AccountLink"

AccountLinkKind is the name of the type used to represent links to objects of type 'account'.

View Source
const AccountListKind = "AccountList"

AccountListKind is the name of the type used to represent list of objects of type 'account'.

View Source
const AccountListLinkKind = "AccountListLink"

AccountListLinkKind is the name of the type used to represent links to list of objects of type 'account'.

View Source
const AccountListNilKind = "AccountListNil"

AccountNilKind is the name of the type used to nil lists of objects of type 'account'.

View Source
const AccountNilKind = "AccountNil"

AccountNilKind is the name of the type used to nil references to objects of type 'account'.

View Source
const BillingModelItemKind = "BillingModelItem"

BillingModelItemKind is the name of the type used to represent objects of type 'billing_model_item'.

View Source
const BillingModelItemLinkKind = "BillingModelItemLink"

BillingModelItemLinkKind is the name of the type used to represent links to objects of type 'billing_model_item'.

View Source
const BillingModelItemListKind = "BillingModelItemList"

BillingModelItemListKind is the name of the type used to represent list of objects of type 'billing_model_item'.

View Source
const BillingModelItemListLinkKind = "BillingModelItemListLink"

BillingModelItemListLinkKind is the name of the type used to represent links to list of objects of type 'billing_model_item'.

View Source
const BillingModelItemListNilKind = "BillingModelItemListNil"

BillingModelItemNilKind is the name of the type used to nil lists of objects of type 'billing_model_item'.

View Source
const BillingModelItemNilKind = "BillingModelItemNil"

BillingModelItemNilKind is the name of the type used to nil references to objects of type 'billing_model_item'.

View Source
const CapabilityListKind = "CapabilityList"

CapabilityListKind is the name of the type used to represent list of objects of type 'capability'.

View Source
const CapabilityListLinkKind = "CapabilityListLink"

CapabilityListLinkKind is the name of the type used to represent links to list of objects of type 'capability'.

View Source
const CapabilityListNilKind = "CapabilityListNil"

CapabilityNilKind is the name of the type used to nil lists of objects of type 'capability'.

View Source
const CloudAccountListKind = "CloudAccountList"

CloudAccountListKind is the name of the type used to represent list of objects of type 'cloud_account'.

View Source
const CloudAccountListLinkKind = "CloudAccountListLink"

CloudAccountListLinkKind is the name of the type used to represent links to list of objects of type 'cloud_account'.

View Source
const CloudAccountListNilKind = "CloudAccountListNil"

CloudAccountNilKind is the name of the type used to nil lists of objects of type 'cloud_account'.

View Source
const CloudResourceKind = "CloudResource"

CloudResourceKind is the name of the type used to represent objects of type 'cloud_resource'.

View Source
const CloudResourceLinkKind = "CloudResourceLink"

CloudResourceLinkKind is the name of the type used to represent links to objects of type 'cloud_resource'.

View Source
const CloudResourceListKind = "CloudResourceList"

CloudResourceListKind is the name of the type used to represent list of objects of type 'cloud_resource'.

View Source
const CloudResourceListLinkKind = "CloudResourceListLink"

CloudResourceListLinkKind is the name of the type used to represent links to list of objects of type 'cloud_resource'.

View Source
const CloudResourceListNilKind = "CloudResourceListNil"

CloudResourceNilKind is the name of the type used to nil lists of objects of type 'cloud_resource'.

View Source
const CloudResourceNilKind = "CloudResourceNil"

CloudResourceNilKind is the name of the type used to nil references to objects of type 'cloud_resource'.

View Source
const ClusterAuthorizationRequestListKind = "ClusterAuthorizationRequestList"

ClusterAuthorizationRequestListKind is the name of the type used to represent list of objects of type 'cluster_authorization_request'.

View Source
const ClusterAuthorizationRequestListLinkKind = "ClusterAuthorizationRequestListLink"

ClusterAuthorizationRequestListLinkKind is the name of the type used to represent links to list of objects of type 'cluster_authorization_request'.

View Source
const ClusterAuthorizationRequestListNilKind = "ClusterAuthorizationRequestListNil"

ClusterAuthorizationRequestNilKind is the name of the type used to nil lists of objects of type 'cluster_authorization_request'.

View Source
const ClusterAuthorizationResponseListKind = "ClusterAuthorizationResponseList"

ClusterAuthorizationResponseListKind is the name of the type used to represent list of objects of type 'cluster_authorization_response'.

View Source
const ClusterAuthorizationResponseListLinkKind = "ClusterAuthorizationResponseListLink"

ClusterAuthorizationResponseListLinkKind is the name of the type used to represent links to list of objects of type 'cluster_authorization_response'.

View Source
const ClusterAuthorizationResponseListNilKind = "ClusterAuthorizationResponseListNil"

ClusterAuthorizationResponseNilKind is the name of the type used to nil lists of objects of type 'cluster_authorization_response'.

View Source
const ClusterMetricsNodesListKind = "ClusterMetricsNodesList"

ClusterMetricsNodesListKind is the name of the type used to represent list of objects of type 'cluster_metrics_nodes'.

View Source
const ClusterMetricsNodesListLinkKind = "ClusterMetricsNodesListLink"

ClusterMetricsNodesListLinkKind is the name of the type used to represent links to list of objects of type 'cluster_metrics_nodes'.

View Source
const ClusterMetricsNodesListNilKind = "ClusterMetricsNodesListNil"

ClusterMetricsNodesNilKind is the name of the type used to nil lists of objects of type 'cluster_metrics_nodes'.

View Source
const ClusterRegistrationRequestListKind = "ClusterRegistrationRequestList"

ClusterRegistrationRequestListKind is the name of the type used to represent list of objects of type 'cluster_registration_request'.

View Source
const ClusterRegistrationRequestListLinkKind = "ClusterRegistrationRequestListLink"

ClusterRegistrationRequestListLinkKind is the name of the type used to represent links to list of objects of type 'cluster_registration_request'.

View Source
const ClusterRegistrationRequestListNilKind = "ClusterRegistrationRequestListNil"

ClusterRegistrationRequestNilKind is the name of the type used to nil lists of objects of type 'cluster_registration_request'.

View Source
const ClusterRegistrationResponseListKind = "ClusterRegistrationResponseList"

ClusterRegistrationResponseListKind is the name of the type used to represent list of objects of type 'cluster_registration_response'.

View Source
const ClusterRegistrationResponseListLinkKind = "ClusterRegistrationResponseListLink"

ClusterRegistrationResponseListLinkKind is the name of the type used to represent links to list of objects of type 'cluster_registration_response'.

View Source
const ClusterRegistrationResponseListNilKind = "ClusterRegistrationResponseListNil"

ClusterRegistrationResponseNilKind is the name of the type used to nil lists of objects of type 'cluster_registration_response'.

View Source
const ClusterResourceListKind = "ClusterResourceList"

ClusterResourceListKind is the name of the type used to represent list of objects of type 'cluster_resource'.

View Source
const ClusterResourceListLinkKind = "ClusterResourceListLink"

ClusterResourceListLinkKind is the name of the type used to represent links to list of objects of type 'cluster_resource'.

View Source
const ClusterResourceListNilKind = "ClusterResourceListNil"

ClusterResourceNilKind is the name of the type used to nil lists of objects of type 'cluster_resource'.

View Source
const ClusterUpgradeListKind = "ClusterUpgradeList"

ClusterUpgradeListKind is the name of the type used to represent list of objects of type 'cluster_upgrade'.

View Source
const ClusterUpgradeListLinkKind = "ClusterUpgradeListLink"

ClusterUpgradeListLinkKind is the name of the type used to represent links to list of objects of type 'cluster_upgrade'.

View Source
const ClusterUpgradeListNilKind = "ClusterUpgradeListNil"

ClusterUpgradeNilKind is the name of the type used to nil lists of objects of type 'cluster_upgrade'.

View Source
const ContractDimensionListKind = "ContractDimensionList"

ContractDimensionListKind is the name of the type used to represent list of objects of type 'contract_dimension'.

View Source
const ContractDimensionListLinkKind = "ContractDimensionListLink"

ContractDimensionListLinkKind is the name of the type used to represent links to list of objects of type 'contract_dimension'.

View Source
const ContractDimensionListNilKind = "ContractDimensionListNil"

ContractDimensionNilKind is the name of the type used to nil lists of objects of type 'contract_dimension'.

View Source
const ContractListKind = "ContractList"

ContractListKind is the name of the type used to represent list of objects of type 'contract'.

View Source
const ContractListLinkKind = "ContractListLink"

ContractListLinkKind is the name of the type used to represent links to list of objects of type 'contract'.

View Source
const ContractListNilKind = "ContractListNil"

ContractNilKind is the name of the type used to nil lists of objects of type 'contract'.

View Source
const DefaultCapabilityListKind = "DefaultCapabilityList"

DefaultCapabilityListKind is the name of the type used to represent list of objects of type 'default_capability'.

View Source
const DefaultCapabilityListLinkKind = "DefaultCapabilityListLink"

DefaultCapabilityListLinkKind is the name of the type used to represent links to list of objects of type 'default_capability'.

View Source
const DefaultCapabilityListNilKind = "DefaultCapabilityListNil"

DefaultCapabilityNilKind is the name of the type used to nil lists of objects of type 'default_capability'.

View Source
const DeletedSubscriptionKind = "DeletedSubscription"

DeletedSubscriptionKind is the name of the type used to represent objects of type 'deleted_subscription'.

View Source
const DeletedSubscriptionLinkKind = "DeletedSubscriptionLink"

DeletedSubscriptionLinkKind is the name of the type used to represent links to objects of type 'deleted_subscription'.

View Source
const DeletedSubscriptionListKind = "DeletedSubscriptionList"

DeletedSubscriptionListKind is the name of the type used to represent list of objects of type 'deleted_subscription'.

View Source
const DeletedSubscriptionListLinkKind = "DeletedSubscriptionListLink"

DeletedSubscriptionListLinkKind is the name of the type used to represent links to list of objects of type 'deleted_subscription'.

View Source
const DeletedSubscriptionListNilKind = "DeletedSubscriptionListNil"

DeletedSubscriptionNilKind is the name of the type used to nil lists of objects of type 'deleted_subscription'.

View Source
const DeletedSubscriptionNilKind = "DeletedSubscriptionNil"

DeletedSubscriptionNilKind is the name of the type used to nil references to objects of type 'deleted_subscription'.

View Source
const FeatureToggleKind = "FeatureToggle"

FeatureToggleKind is the name of the type used to represent objects of type 'feature_toggle'.

View Source
const FeatureToggleLinkKind = "FeatureToggleLink"

FeatureToggleLinkKind is the name of the type used to represent links to objects of type 'feature_toggle'.

View Source
const FeatureToggleListKind = "FeatureToggleList"

FeatureToggleListKind is the name of the type used to represent list of objects of type 'feature_toggle'.

View Source
const FeatureToggleListLinkKind = "FeatureToggleListLink"

FeatureToggleListLinkKind is the name of the type used to represent links to list of objects of type 'feature_toggle'.

View Source
const FeatureToggleListNilKind = "FeatureToggleListNil"

FeatureToggleNilKind is the name of the type used to nil lists of objects of type 'feature_toggle'.

View Source
const FeatureToggleNilKind = "FeatureToggleNil"

FeatureToggleNilKind is the name of the type used to nil references to objects of type 'feature_toggle'.

View Source
const FeatureToggleQueryRequestListKind = "FeatureToggleQueryRequestList"

FeatureToggleQueryRequestListKind is the name of the type used to represent list of objects of type 'feature_toggle_query_request'.

View Source
const FeatureToggleQueryRequestListLinkKind = "FeatureToggleQueryRequestListLink"

FeatureToggleQueryRequestListLinkKind is the name of the type used to represent links to list of objects of type 'feature_toggle_query_request'.

View Source
const FeatureToggleQueryRequestListNilKind = "FeatureToggleQueryRequestListNil"

FeatureToggleQueryRequestNilKind is the name of the type used to nil lists of objects of type 'feature_toggle_query_request'.

View Source
const GenericNotifyDetailsResponseKind = "GenericNotifyDetailsResponse"

GenericNotifyDetailsResponseKind is the name of the type used to represent objects of type 'generic_notify_details_response'.

View Source
const GenericNotifyDetailsResponseLinkKind = "GenericNotifyDetailsResponseLink"

GenericNotifyDetailsResponseLinkKind is the name of the type used to represent links to objects of type 'generic_notify_details_response'.

View Source
const GenericNotifyDetailsResponseListKind = "GenericNotifyDetailsResponseList"

GenericNotifyDetailsResponseListKind is the name of the type used to represent list of objects of type 'generic_notify_details_response'.

View Source
const GenericNotifyDetailsResponseListLinkKind = "GenericNotifyDetailsResponseListLink"

GenericNotifyDetailsResponseListLinkKind is the name of the type used to represent links to list of objects of type 'generic_notify_details_response'.

View Source
const GenericNotifyDetailsResponseListNilKind = "GenericNotifyDetailsResponseListNil"

GenericNotifyDetailsResponseNilKind is the name of the type used to nil lists of objects of type 'generic_notify_details_response'.

View Source
const GenericNotifyDetailsResponseNilKind = "GenericNotifyDetailsResponseNil"

GenericNotifyDetailsResponseNilKind is the name of the type used to nil references to objects of type 'generic_notify_details_response'.

View Source
const LabelKind = "Label"

LabelKind is the name of the type used to represent objects of type 'label'.

View Source
const LabelLinkKind = "LabelLink"

LabelLinkKind is the name of the type used to represent links to objects of type 'label'.

View Source
const LabelListKind = "LabelList"

LabelListKind is the name of the type used to represent list of objects of type 'label'.

View Source
const LabelListLinkKind = "LabelListLink"

LabelListLinkKind is the name of the type used to represent links to list of objects of type 'label'.

View Source
const LabelListNilKind = "LabelListNil"

LabelNilKind is the name of the type used to nil lists of objects of type 'label'.

View Source
const LabelNilKind = "LabelNil"

LabelNilKind is the name of the type used to nil references to objects of type 'label'.

View Source
const NotificationDetailsRequestListKind = "NotificationDetailsRequestList"

NotificationDetailsRequestListKind is the name of the type used to represent list of objects of type 'notification_details_request'.

View Source
const NotificationDetailsRequestListLinkKind = "NotificationDetailsRequestListLink"

NotificationDetailsRequestListLinkKind is the name of the type used to represent links to list of objects of type 'notification_details_request'.

View Source
const NotificationDetailsRequestListNilKind = "NotificationDetailsRequestListNil"

NotificationDetailsRequestNilKind is the name of the type used to nil lists of objects of type 'notification_details_request'.

View Source
const NotificationDetailsResponseKind = "NotificationDetailsResponse"

NotificationDetailsResponseKind is the name of the type used to represent objects of type 'notification_details_response'.

View Source
const NotificationDetailsResponseLinkKind = "NotificationDetailsResponseLink"

NotificationDetailsResponseLinkKind is the name of the type used to represent links to objects of type 'notification_details_response'.

View Source
const NotificationDetailsResponseListKind = "NotificationDetailsResponseList"

NotificationDetailsResponseListKind is the name of the type used to represent list of objects of type 'notification_details_response'.

View Source
const NotificationDetailsResponseListLinkKind = "NotificationDetailsResponseListLink"

NotificationDetailsResponseListLinkKind is the name of the type used to represent links to list of objects of type 'notification_details_response'.

View Source
const NotificationDetailsResponseListNilKind = "NotificationDetailsResponseListNil"

NotificationDetailsResponseNilKind is the name of the type used to nil lists of objects of type 'notification_details_response'.

View Source
const NotificationDetailsResponseNilKind = "NotificationDetailsResponseNil"

NotificationDetailsResponseNilKind is the name of the type used to nil references to objects of type 'notification_details_response'.

View Source
const OrganizationKind = "Organization"

OrganizationKind is the name of the type used to represent objects of type 'organization'.

View Source
const OrganizationLinkKind = "OrganizationLink"

OrganizationLinkKind is the name of the type used to represent links to objects of type 'organization'.

View Source
const OrganizationListKind = "OrganizationList"

OrganizationListKind is the name of the type used to represent list of objects of type 'organization'.

View Source
const OrganizationListLinkKind = "OrganizationListLink"

OrganizationListLinkKind is the name of the type used to represent links to list of objects of type 'organization'.

View Source
const OrganizationListNilKind = "OrganizationListNil"

OrganizationNilKind is the name of the type used to nil lists of objects of type 'organization'.

View Source
const OrganizationNilKind = "OrganizationNil"

OrganizationNilKind is the name of the type used to nil references to objects of type 'organization'.

View Source
const PermissionKind = "Permission"

PermissionKind is the name of the type used to represent objects of type 'permission'.

View Source
const PermissionLinkKind = "PermissionLink"

PermissionLinkKind is the name of the type used to represent links to objects of type 'permission'.

View Source
const PermissionListKind = "PermissionList"

PermissionListKind is the name of the type used to represent list of objects of type 'permission'.

View Source
const PermissionListLinkKind = "PermissionListLink"

PermissionListLinkKind is the name of the type used to represent links to list of objects of type 'permission'.

View Source
const PermissionListNilKind = "PermissionListNil"

PermissionNilKind is the name of the type used to nil lists of objects of type 'permission'.

View Source
const PermissionNilKind = "PermissionNil"

PermissionNilKind is the name of the type used to nil references to objects of type 'permission'.

View Source
const PlanKind = "Plan"

PlanKind is the name of the type used to represent objects of type 'plan'.

View Source
const PlanLinkKind = "PlanLink"

PlanLinkKind is the name of the type used to represent links to objects of type 'plan'.

View Source
const PlanListKind = "PlanList"

PlanListKind is the name of the type used to represent list of objects of type 'plan'.

View Source
const PlanListLinkKind = "PlanListLink"

PlanListLinkKind is the name of the type used to represent links to list of objects of type 'plan'.

View Source
const PlanListNilKind = "PlanListNil"

PlanNilKind is the name of the type used to nil lists of objects of type 'plan'.

View Source
const PlanNilKind = "PlanNil"

PlanNilKind is the name of the type used to nil references to objects of type 'plan'.

View Source
const PullSecretsRequestListKind = "PullSecretsRequestList"

PullSecretsRequestListKind is the name of the type used to represent list of objects of type 'pull_secrets_request'.

View Source
const PullSecretsRequestListLinkKind = "PullSecretsRequestListLink"

PullSecretsRequestListLinkKind is the name of the type used to represent links to list of objects of type 'pull_secrets_request'.

View Source
const PullSecretsRequestListNilKind = "PullSecretsRequestListNil"

PullSecretsRequestNilKind is the name of the type used to nil lists of objects of type 'pull_secrets_request'.

View Source
const QuotaAuthorizationRequestListKind = "QuotaAuthorizationRequestList"

QuotaAuthorizationRequestListKind is the name of the type used to represent list of objects of type 'quota_authorization_request'.

View Source
const QuotaAuthorizationRequestListLinkKind = "QuotaAuthorizationRequestListLink"

QuotaAuthorizationRequestListLinkKind is the name of the type used to represent links to list of objects of type 'quota_authorization_request'.

View Source
const QuotaAuthorizationRequestListNilKind = "QuotaAuthorizationRequestListNil"

QuotaAuthorizationRequestNilKind is the name of the type used to nil lists of objects of type 'quota_authorization_request'.

View Source
const QuotaAuthorizationResponseListKind = "QuotaAuthorizationResponseList"

QuotaAuthorizationResponseListKind is the name of the type used to represent list of objects of type 'quota_authorization_response'.

View Source
const QuotaAuthorizationResponseListLinkKind = "QuotaAuthorizationResponseListLink"

QuotaAuthorizationResponseListLinkKind is the name of the type used to represent links to list of objects of type 'quota_authorization_response'.

View Source
const QuotaAuthorizationResponseListNilKind = "QuotaAuthorizationResponseListNil"

QuotaAuthorizationResponseNilKind is the name of the type used to nil lists of objects of type 'quota_authorization_response'.

View Source
const QuotaCostListKind = "QuotaCostList"

QuotaCostListKind is the name of the type used to represent list of objects of type 'quota_cost'.

View Source
const QuotaCostListLinkKind = "QuotaCostListLink"

QuotaCostListLinkKind is the name of the type used to represent links to list of objects of type 'quota_cost'.

View Source
const QuotaCostListNilKind = "QuotaCostListNil"

QuotaCostNilKind is the name of the type used to nil lists of objects of type 'quota_cost'.

View Source
const QuotaRulesListKind = "QuotaRulesList"

QuotaRulesListKind is the name of the type used to represent list of objects of type 'quota_rules'.

View Source
const QuotaRulesListLinkKind = "QuotaRulesListLink"

QuotaRulesListLinkKind is the name of the type used to represent links to list of objects of type 'quota_rules'.

View Source
const QuotaRulesListNilKind = "QuotaRulesListNil"

QuotaRulesNilKind is the name of the type used to nil lists of objects of type 'quota_rules'.

View Source
const RegistryCredentialKind = "RegistryCredential"

RegistryCredentialKind is the name of the type used to represent objects of type 'registry_credential'.

View Source
const RegistryCredentialLinkKind = "RegistryCredentialLink"

RegistryCredentialLinkKind is the name of the type used to represent links to objects of type 'registry_credential'.

View Source
const RegistryCredentialListKind = "RegistryCredentialList"

RegistryCredentialListKind is the name of the type used to represent list of objects of type 'registry_credential'.

View Source
const RegistryCredentialListLinkKind = "RegistryCredentialListLink"

RegistryCredentialListLinkKind is the name of the type used to represent links to list of objects of type 'registry_credential'.

View Source
const RegistryCredentialListNilKind = "RegistryCredentialListNil"

RegistryCredentialNilKind is the name of the type used to nil lists of objects of type 'registry_credential'.

View Source
const RegistryCredentialNilKind = "RegistryCredentialNil"

RegistryCredentialNilKind is the name of the type used to nil references to objects of type 'registry_credential'.

View Source
const RegistryKind = "Registry"

RegistryKind is the name of the type used to represent objects of type 'registry'.

View Source
const RegistryLinkKind = "RegistryLink"

RegistryLinkKind is the name of the type used to represent links to objects of type 'registry'.

View Source
const RegistryListKind = "RegistryList"

RegistryListKind is the name of the type used to represent list of objects of type 'registry'.

View Source
const RegistryListLinkKind = "RegistryListLink"

RegistryListLinkKind is the name of the type used to represent links to list of objects of type 'registry'.

View Source
const RegistryListNilKind = "RegistryListNil"

RegistryNilKind is the name of the type used to nil lists of objects of type 'registry'.

View Source
const RegistryNilKind = "RegistryNil"

RegistryNilKind is the name of the type used to nil references to objects of type 'registry'.

View Source
const RelatedResourceListKind = "RelatedResourceList"

RelatedResourceListKind is the name of the type used to represent list of objects of type 'related_resource'.

View Source
const RelatedResourceListLinkKind = "RelatedResourceListLink"

RelatedResourceListLinkKind is the name of the type used to represent links to list of objects of type 'related_resource'.

View Source
const RelatedResourceListNilKind = "RelatedResourceListNil"

RelatedResourceNilKind is the name of the type used to nil lists of objects of type 'related_resource'.

View Source
const ReservedResourceListKind = "ReservedResourceList"

ReservedResourceListKind is the name of the type used to represent list of objects of type 'reserved_resource'.

View Source
const ReservedResourceListLinkKind = "ReservedResourceListLink"

ReservedResourceListLinkKind is the name of the type used to represent links to list of objects of type 'reserved_resource'.

View Source
const ReservedResourceListNilKind = "ReservedResourceListNil"

ReservedResourceNilKind is the name of the type used to nil lists of objects of type 'reserved_resource'.

View Source
const ResourceKind = "Resource"

ResourceKind is the name of the type used to represent objects of type 'resource'.

View Source
const ResourceLinkKind = "ResourceLink"

ResourceLinkKind is the name of the type used to represent links to objects of type 'resource'.

View Source
const ResourceListKind = "ResourceList"

ResourceListKind is the name of the type used to represent list of objects of type 'resource'.

View Source
const ResourceListLinkKind = "ResourceListLink"

ResourceListLinkKind is the name of the type used to represent links to list of objects of type 'resource'.

View Source
const ResourceListNilKind = "ResourceListNil"

ResourceNilKind is the name of the type used to nil lists of objects of type 'resource'.

View Source
const ResourceNilKind = "ResourceNil"

ResourceNilKind is the name of the type used to nil references to objects of type 'resource'.

View Source
const ResourceQuotaKind = "ResourceQuota"

ResourceQuotaKind is the name of the type used to represent objects of type 'resource_quota'.

View Source
const ResourceQuotaLinkKind = "ResourceQuotaLink"

ResourceQuotaLinkKind is the name of the type used to represent links to objects of type 'resource_quota'.

View Source
const ResourceQuotaListKind = "ResourceQuotaList"

ResourceQuotaListKind is the name of the type used to represent list of objects of type 'resource_quota'.

View Source
const ResourceQuotaListLinkKind = "ResourceQuotaListLink"

ResourceQuotaListLinkKind is the name of the type used to represent links to list of objects of type 'resource_quota'.

View Source
const ResourceQuotaListNilKind = "ResourceQuotaListNil"

ResourceQuotaNilKind is the name of the type used to nil lists of objects of type 'resource_quota'.

View Source
const ResourceQuotaNilKind = "ResourceQuotaNil"

ResourceQuotaNilKind is the name of the type used to nil references to objects of type 'resource_quota'.

View Source
const RoleBindingKind = "RoleBinding"

RoleBindingKind is the name of the type used to represent objects of type 'role_binding'.

View Source
const RoleBindingLinkKind = "RoleBindingLink"

RoleBindingLinkKind is the name of the type used to represent links to objects of type 'role_binding'.

View Source
const RoleBindingListKind = "RoleBindingList"

RoleBindingListKind is the name of the type used to represent list of objects of type 'role_binding'.

View Source
const RoleBindingListLinkKind = "RoleBindingListLink"

RoleBindingListLinkKind is the name of the type used to represent links to list of objects of type 'role_binding'.

View Source
const RoleBindingListNilKind = "RoleBindingListNil"

RoleBindingNilKind is the name of the type used to nil lists of objects of type 'role_binding'.

View Source
const RoleBindingNilKind = "RoleBindingNil"

RoleBindingNilKind is the name of the type used to nil references to objects of type 'role_binding'.

View Source
const RoleKind = "Role"

RoleKind is the name of the type used to represent objects of type 'role'.

View Source
const RoleLinkKind = "RoleLink"

RoleLinkKind is the name of the type used to represent links to objects of type 'role'.

View Source
const RoleListKind = "RoleList"

RoleListKind is the name of the type used to represent list of objects of type 'role'.

View Source
const RoleListLinkKind = "RoleListLink"

RoleListLinkKind is the name of the type used to represent links to list of objects of type 'role'.

View Source
const RoleListNilKind = "RoleListNil"

RoleNilKind is the name of the type used to nil lists of objects of type 'role'.

View Source
const RoleNilKind = "RoleNil"

RoleNilKind is the name of the type used to nil references to objects of type 'role'.

View Source
const SkuRuleKind = "SkuRule"

SkuRuleKind is the name of the type used to represent objects of type 'sku_rule'.

View Source
const SkuRuleLinkKind = "SkuRuleLink"

SkuRuleLinkKind is the name of the type used to represent links to objects of type 'sku_rule'.

View Source
const SkuRuleListKind = "SkuRuleList"

SkuRuleListKind is the name of the type used to represent list of objects of type 'sku_rule'.

View Source
const SkuRuleListLinkKind = "SkuRuleListLink"

SkuRuleListLinkKind is the name of the type used to represent links to list of objects of type 'sku_rule'.

View Source
const SkuRuleListNilKind = "SkuRuleListNil"

SkuRuleNilKind is the name of the type used to nil lists of objects of type 'sku_rule'.

View Source
const SkuRuleNilKind = "SkuRuleNil"

SkuRuleNilKind is the name of the type used to nil references to objects of type 'sku_rule'.

View Source
const SubscriptionKind = "Subscription"

SubscriptionKind is the name of the type used to represent objects of type 'subscription'.

View Source
const SubscriptionLinkKind = "SubscriptionLink"

SubscriptionLinkKind is the name of the type used to represent links to objects of type 'subscription'.

View Source
const SubscriptionListKind = "SubscriptionList"

SubscriptionListKind is the name of the type used to represent list of objects of type 'subscription'.

View Source
const SubscriptionListLinkKind = "SubscriptionListLink"

SubscriptionListLinkKind is the name of the type used to represent links to list of objects of type 'subscription'.

View Source
const SubscriptionListNilKind = "SubscriptionListNil"

SubscriptionNilKind is the name of the type used to nil lists of objects of type 'subscription'.

View Source
const SubscriptionMetricsListKind = "SubscriptionMetricsList"

SubscriptionMetricsListKind is the name of the type used to represent list of objects of type 'subscription_metrics'.

View Source
const SubscriptionMetricsListLinkKind = "SubscriptionMetricsListLink"

SubscriptionMetricsListLinkKind is the name of the type used to represent links to list of objects of type 'subscription_metrics'.

View Source
const SubscriptionMetricsListNilKind = "SubscriptionMetricsListNil"

SubscriptionMetricsNilKind is the name of the type used to nil lists of objects of type 'subscription_metrics'.

View Source
const SubscriptionNilKind = "SubscriptionNil"

SubscriptionNilKind is the name of the type used to nil references to objects of type 'subscription'.

View Source
const SubscriptionRegistrationListKind = "SubscriptionRegistrationList"

SubscriptionRegistrationListKind is the name of the type used to represent list of objects of type 'subscription_registration'.

View Source
const SubscriptionRegistrationListLinkKind = "SubscriptionRegistrationListLink"

SubscriptionRegistrationListLinkKind is the name of the type used to represent links to list of objects of type 'subscription_registration'.

View Source
const SubscriptionRegistrationListNilKind = "SubscriptionRegistrationListNil"

SubscriptionRegistrationNilKind is the name of the type used to nil lists of objects of type 'subscription_registration'.

View Source
const SummaryDashboardKind = "SummaryDashboard"

SummaryDashboardKind is the name of the type used to represent objects of type 'summary_dashboard'.

View Source
const SummaryDashboardLinkKind = "SummaryDashboardLink"

SummaryDashboardLinkKind is the name of the type used to represent links to objects of type 'summary_dashboard'.

View Source
const SummaryDashboardListKind = "SummaryDashboardList"

SummaryDashboardListKind is the name of the type used to represent list of objects of type 'summary_dashboard'.

View Source
const SummaryDashboardListLinkKind = "SummaryDashboardListLink"

SummaryDashboardListLinkKind is the name of the type used to represent links to list of objects of type 'summary_dashboard'.

View Source
const SummaryDashboardListNilKind = "SummaryDashboardListNil"

SummaryDashboardNilKind is the name of the type used to nil lists of objects of type 'summary_dashboard'.

View Source
const SummaryDashboardNilKind = "SummaryDashboardNil"

SummaryDashboardNilKind is the name of the type used to nil references to objects of type 'summary_dashboard'.

View Source
const SummaryMetricsListKind = "SummaryMetricsList"

SummaryMetricsListKind is the name of the type used to represent list of objects of type 'summary_metrics'.

View Source
const SummaryMetricsListLinkKind = "SummaryMetricsListLink"

SummaryMetricsListLinkKind is the name of the type used to represent links to list of objects of type 'summary_metrics'.

View Source
const SummaryMetricsListNilKind = "SummaryMetricsListNil"

SummaryMetricsNilKind is the name of the type used to nil lists of objects of type 'summary_metrics'.

View Source
const SummarySampleListKind = "SummarySampleList"

SummarySampleListKind is the name of the type used to represent list of objects of type 'summary_sample'.

View Source
const SummarySampleListLinkKind = "SummarySampleListLink"

SummarySampleListLinkKind is the name of the type used to represent links to list of objects of type 'summary_sample'.

View Source
const SummarySampleListNilKind = "SummarySampleListNil"

SummarySampleNilKind is the name of the type used to nil lists of objects of type 'summary_sample'.

View Source
const SupportCaseRequestKind = "SupportCaseRequest"

SupportCaseRequestKind is the name of the type used to represent objects of type 'support_case_request'.

View Source
const SupportCaseRequestLinkKind = "SupportCaseRequestLink"

SupportCaseRequestLinkKind is the name of the type used to represent links to objects of type 'support_case_request'.

View Source
const SupportCaseRequestListKind = "SupportCaseRequestList"

SupportCaseRequestListKind is the name of the type used to represent list of objects of type 'support_case_request'.

View Source
const SupportCaseRequestListLinkKind = "SupportCaseRequestListLink"

SupportCaseRequestListLinkKind is the name of the type used to represent links to list of objects of type 'support_case_request'.

View Source
const SupportCaseRequestListNilKind = "SupportCaseRequestListNil"

SupportCaseRequestNilKind is the name of the type used to nil lists of objects of type 'support_case_request'.

View Source
const SupportCaseRequestNilKind = "SupportCaseRequestNil"

SupportCaseRequestNilKind is the name of the type used to nil references to objects of type 'support_case_request'.

View Source
const SupportCaseResponseKind = "SupportCaseResponse"

SupportCaseResponseKind is the name of the type used to represent objects of type 'support_case_response'.

View Source
const SupportCaseResponseLinkKind = "SupportCaseResponseLink"

SupportCaseResponseLinkKind is the name of the type used to represent links to objects of type 'support_case_response'.

View Source
const SupportCaseResponseListKind = "SupportCaseResponseList"

SupportCaseResponseListKind is the name of the type used to represent list of objects of type 'support_case_response'.

View Source
const SupportCaseResponseListLinkKind = "SupportCaseResponseListLink"

SupportCaseResponseListLinkKind is the name of the type used to represent links to list of objects of type 'support_case_response'.

View Source
const SupportCaseResponseListNilKind = "SupportCaseResponseListNil"

SupportCaseResponseNilKind is the name of the type used to nil lists of objects of type 'support_case_response'.

View Source
const SupportCaseResponseNilKind = "SupportCaseResponseNil"

SupportCaseResponseNilKind is the name of the type used to nil references to objects of type 'support_case_response'.

View Source
const TemplateParameterListKind = "TemplateParameterList"

TemplateParameterListKind is the name of the type used to represent list of objects of type 'template_parameter'.

View Source
const TemplateParameterListLinkKind = "TemplateParameterListLink"

TemplateParameterListLinkKind is the name of the type used to represent links to list of objects of type 'template_parameter'.

View Source
const TemplateParameterListNilKind = "TemplateParameterListNil"

TemplateParameterNilKind is the name of the type used to nil lists of objects of type 'template_parameter'.

View Source
const TokenAuthorizationRequestListKind = "TokenAuthorizationRequestList"

TokenAuthorizationRequestListKind is the name of the type used to represent list of objects of type 'token_authorization_request'.

View Source
const TokenAuthorizationRequestListLinkKind = "TokenAuthorizationRequestListLink"

TokenAuthorizationRequestListLinkKind is the name of the type used to represent links to list of objects of type 'token_authorization_request'.

View Source
const TokenAuthorizationRequestListNilKind = "TokenAuthorizationRequestListNil"

TokenAuthorizationRequestNilKind is the name of the type used to nil lists of objects of type 'token_authorization_request'.

View Source
const TokenAuthorizationResponseListKind = "TokenAuthorizationResponseList"

TokenAuthorizationResponseListKind is the name of the type used to represent list of objects of type 'token_authorization_response'.

View Source
const TokenAuthorizationResponseListLinkKind = "TokenAuthorizationResponseListLink"

TokenAuthorizationResponseListLinkKind is the name of the type used to represent links to list of objects of type 'token_authorization_response'.

View Source
const TokenAuthorizationResponseListNilKind = "TokenAuthorizationResponseListNil"

TokenAuthorizationResponseNilKind is the name of the type used to nil lists of objects of type 'token_authorization_response'.

View Source
const ValueUnitListKind = "ValueUnitList"

ValueUnitListKind is the name of the type used to represent list of objects of type 'value_unit'.

View Source
const ValueUnitListLinkKind = "ValueUnitListLink"

ValueUnitListLinkKind is the name of the type used to represent links to list of objects of type 'value_unit'.

View Source
const ValueUnitListNilKind = "ValueUnitListNil"

ValueUnitNilKind is the name of the type used to nil lists of objects of type 'value_unit'.

Variables ¶

View Source
var OpenAPI = []byte{}/* 221815 elements not displayed */

OpenAPI contains the OpenAPI specification of the service in JSON.

Functions ¶

func MarshalAccessToken ¶

func MarshalAccessToken(object *AccessToken, writer io.Writer) error

MarshalAccessToken writes a value of the 'access_token' type to the given writer.

func MarshalAccessTokenAuth ¶

func MarshalAccessTokenAuth(object *AccessTokenAuth, writer io.Writer) error

MarshalAccessTokenAuth writes a value of the 'access_token_auth' type to the given writer.

func MarshalAccessTokenAuthList ¶

func MarshalAccessTokenAuthList(list []*AccessTokenAuth, writer io.Writer) error

MarshalAccessTokenAuthList writes a list of values of the 'access_token_auth' type to the given writer.

func MarshalAccessTokenList ¶

func MarshalAccessTokenList(list []*AccessToken, writer io.Writer) error

MarshalAccessTokenList writes a list of values of the 'access_token' type to the given writer.

func MarshalAccount ¶

func MarshalAccount(object *Account, writer io.Writer) error

MarshalAccount writes a value of the 'account' type to the given writer.

func MarshalAccountList ¶

func MarshalAccountList(list []*Account, writer io.Writer) error

MarshalAccountList writes a list of values of the 'account' type to the given writer.

func MarshalActionList ¶

func MarshalActionList(list []Action, writer io.Writer) error

MarshalActionList writes a list of values of the 'action' type to the given writer.

func MarshalBillingModelItem ¶ added in v0.1.366

func MarshalBillingModelItem(object *BillingModelItem, writer io.Writer) error

MarshalBillingModelItem writes a value of the 'billing_model_item' type to the given writer.

func MarshalBillingModelItemList ¶ added in v0.1.366

func MarshalBillingModelItemList(list []*BillingModelItem, writer io.Writer) error

MarshalBillingModelItemList writes a list of values of the 'billing_model_item' type to the given writer.

func MarshalBillingModelList ¶ added in v0.0.329

func MarshalBillingModelList(list []BillingModel, writer io.Writer) error

MarshalBillingModelList writes a list of values of the 'billing_model' type to the given writer.

func MarshalBooleanList ¶

func MarshalBooleanList(list []bool, writer io.Writer) error

MarshalBooleanList writes a list of values of the 'boolean' type to the given writer.

func MarshalCapability ¶ added in v0.0.329

func MarshalCapability(object *Capability, writer io.Writer) error

MarshalCapability writes a value of the 'capability' type to the given writer.

func MarshalCapabilityList ¶ added in v0.0.329

func MarshalCapabilityList(list []*Capability, writer io.Writer) error

MarshalCapabilityList writes a list of values of the 'capability' type to the given writer.

func MarshalCloudAccount ¶ added in v0.0.329

func MarshalCloudAccount(object *CloudAccount, writer io.Writer) error

MarshalCloudAccount writes a value of the 'cloud_account' type to the given writer.

func MarshalCloudAccountList ¶ added in v0.0.329

func MarshalCloudAccountList(list []*CloudAccount, writer io.Writer) error

MarshalCloudAccountList writes a list of values of the 'cloud_account' type to the given writer.

func MarshalCloudResource ¶ added in v0.0.329

func MarshalCloudResource(object *CloudResource, writer io.Writer) error

MarshalCloudResource writes a value of the 'cloud_resource' type to the given writer.

func MarshalCloudResourceList ¶ added in v0.0.329

func MarshalCloudResourceList(list []*CloudResource, writer io.Writer) error

MarshalCloudResourceList writes a list of values of the 'cloud_resource' type to the given writer.

func MarshalClusterAuthorizationRequest ¶

func MarshalClusterAuthorizationRequest(object *ClusterAuthorizationRequest, writer io.Writer) error

MarshalClusterAuthorizationRequest writes a value of the 'cluster_authorization_request' type to the given writer.

func MarshalClusterAuthorizationRequestList ¶

func MarshalClusterAuthorizationRequestList(list []*ClusterAuthorizationRequest, writer io.Writer) error

MarshalClusterAuthorizationRequestList writes a list of values of the 'cluster_authorization_request' type to the given writer.

func MarshalClusterAuthorizationResponse ¶

func MarshalClusterAuthorizationResponse(object *ClusterAuthorizationResponse, writer io.Writer) error

MarshalClusterAuthorizationResponse writes a value of the 'cluster_authorization_response' type to the given writer.

func MarshalClusterAuthorizationResponseList ¶

func MarshalClusterAuthorizationResponseList(list []*ClusterAuthorizationResponse, writer io.Writer) error

MarshalClusterAuthorizationResponseList writes a list of values of the 'cluster_authorization_response' type to the given writer.

func MarshalClusterMetricsNodes ¶ added in v0.0.329

func MarshalClusterMetricsNodes(object *ClusterMetricsNodes, writer io.Writer) error

MarshalClusterMetricsNodes writes a value of the 'cluster_metrics_nodes' type to the given writer.

func MarshalClusterMetricsNodesList ¶ added in v0.0.329

func MarshalClusterMetricsNodesList(list []*ClusterMetricsNodes, writer io.Writer) error

MarshalClusterMetricsNodesList writes a list of values of the 'cluster_metrics_nodes' type to the given writer.

func MarshalClusterRegistrationRequest ¶

func MarshalClusterRegistrationRequest(object *ClusterRegistrationRequest, writer io.Writer) error

MarshalClusterRegistrationRequest writes a value of the 'cluster_registration_request' type to the given writer.

func MarshalClusterRegistrationRequestList ¶

func MarshalClusterRegistrationRequestList(list []*ClusterRegistrationRequest, writer io.Writer) error

MarshalClusterRegistrationRequestList writes a list of values of the 'cluster_registration_request' type to the given writer.

func MarshalClusterRegistrationResponse ¶

func MarshalClusterRegistrationResponse(object *ClusterRegistrationResponse, writer io.Writer) error

MarshalClusterRegistrationResponse writes a value of the 'cluster_registration_response' type to the given writer.

func MarshalClusterRegistrationResponseList ¶

func MarshalClusterRegistrationResponseList(list []*ClusterRegistrationResponse, writer io.Writer) error

MarshalClusterRegistrationResponseList writes a list of values of the 'cluster_registration_response' type to the given writer.

func MarshalClusterResource ¶ added in v0.0.329

func MarshalClusterResource(object *ClusterResource, writer io.Writer) error

MarshalClusterResource writes a value of the 'cluster_resource' type to the given writer.

func MarshalClusterResourceList ¶ added in v0.0.329

func MarshalClusterResourceList(list []*ClusterResource, writer io.Writer) error

MarshalClusterResourceList writes a list of values of the 'cluster_resource' type to the given writer.

func MarshalClusterUpgrade ¶ added in v0.0.329

func MarshalClusterUpgrade(object *ClusterUpgrade, writer io.Writer) error

MarshalClusterUpgrade writes a value of the 'cluster_upgrade' type to the given writer.

func MarshalClusterUpgradeList ¶ added in v0.0.329

func MarshalClusterUpgradeList(list []*ClusterUpgrade, writer io.Writer) error

MarshalClusterUpgradeList writes a list of values of the 'cluster_upgrade' type to the given writer.

func MarshalContract ¶ added in v0.1.347

func MarshalContract(object *Contract, writer io.Writer) error

MarshalContract writes a value of the 'contract' type to the given writer.

func MarshalContractDimension ¶ added in v0.1.347

func MarshalContractDimension(object *ContractDimension, writer io.Writer) error

MarshalContractDimension writes a value of the 'contract_dimension' type to the given writer.

func MarshalContractDimensionList ¶ added in v0.1.347

func MarshalContractDimensionList(list []*ContractDimension, writer io.Writer) error

MarshalContractDimensionList writes a list of values of the 'contract_dimension' type to the given writer.

func MarshalContractList ¶ added in v0.1.347

func MarshalContractList(list []*Contract, writer io.Writer) error

MarshalContractList writes a list of values of the 'contract' type to the given writer.

func MarshalDateList ¶

func MarshalDateList(list []time.Time, writer io.Writer) error

MarshalDateList writes a list of values of the 'date' type to the given writer.

func MarshalDefaultCapability ¶ added in v0.1.412

func MarshalDefaultCapability(object *DefaultCapability, writer io.Writer) error

MarshalDefaultCapability writes a value of the 'default_capability' type to the given writer.

func MarshalDefaultCapabilityList ¶ added in v0.1.412

func MarshalDefaultCapabilityList(list []*DefaultCapability, writer io.Writer) error

MarshalDefaultCapabilityList writes a list of values of the 'default_capability' type to the given writer.

func MarshalDeletedSubscription ¶ added in v0.0.329

func MarshalDeletedSubscription(object *DeletedSubscription, writer io.Writer) error

MarshalDeletedSubscription writes a value of the 'deleted_subscription' type to the given writer.

func MarshalDeletedSubscriptionList ¶ added in v0.0.329

func MarshalDeletedSubscriptionList(list []*DeletedSubscription, writer io.Writer) error

MarshalDeletedSubscriptionList writes a list of values of the 'deleted_subscription' type to the given writer.

func MarshalFeatureToggle ¶

func MarshalFeatureToggle(object *FeatureToggle, writer io.Writer) error

MarshalFeatureToggle writes a value of the 'feature_toggle' type to the given writer.

func MarshalFeatureToggleList ¶

func MarshalFeatureToggleList(list []*FeatureToggle, writer io.Writer) error

MarshalFeatureToggleList writes a list of values of the 'feature_toggle' type to the given writer.

func MarshalFeatureToggleQueryRequest ¶

func MarshalFeatureToggleQueryRequest(object *FeatureToggleQueryRequest, writer io.Writer) error

MarshalFeatureToggleQueryRequest writes a value of the 'feature_toggle_query_request' type to the given writer.

func MarshalFeatureToggleQueryRequestList ¶

func MarshalFeatureToggleQueryRequestList(list []*FeatureToggleQueryRequest, writer io.Writer) error

MarshalFeatureToggleQueryRequestList writes a list of values of the 'feature_toggle_query_request' type to the given writer.

func MarshalFloatList ¶

func MarshalFloatList(list []float64, writer io.Writer) error

MarshalFloatList writes a list of values of the 'float' type to the given writer.

func MarshalGenericNotifyDetailsResponse ¶ added in v0.1.392

func MarshalGenericNotifyDetailsResponse(object *GenericNotifyDetailsResponse, writer io.Writer) error

MarshalGenericNotifyDetailsResponse writes a value of the 'generic_notify_details_response' type to the given writer.

func MarshalGenericNotifyDetailsResponseList ¶ added in v0.1.392

func MarshalGenericNotifyDetailsResponseList(list []*GenericNotifyDetailsResponse, writer io.Writer) error

MarshalGenericNotifyDetailsResponseList writes a list of values of the 'generic_notify_details_response' type to the given writer.

func MarshalIntegerList ¶

func MarshalIntegerList(list []int, writer io.Writer) error

MarshalIntegerList writes a list of values of the 'integer' type to the given writer.

func MarshalInterfaceList ¶

func MarshalInterfaceList(list []interface{}, writer io.Writer) error

MarshalInterfaceList writes a list of values of the 'interface' type to the given writer.

func MarshalLabel ¶

func MarshalLabel(object *Label, writer io.Writer) error

MarshalLabel writes a value of the 'label' type to the given writer.

func MarshalLabelList ¶

func MarshalLabelList(list []*Label, writer io.Writer) error

MarshalLabelList writes a list of values of the 'label' type to the given writer.

func MarshalLongList ¶

func MarshalLongList(list []int64, writer io.Writer) error

MarshalLongList writes a list of values of the 'long' type to the given writer.

func MarshalMetadata ¶

func MarshalMetadata(object *Metadata, writer io.Writer) error

MarshalMetadata writes a value of the metadata type to the given target, which can be a writer or a JSON encoder.

func MarshalNotificationDetailsRequest ¶ added in v0.1.391

func MarshalNotificationDetailsRequest(object *NotificationDetailsRequest, writer io.Writer) error

MarshalNotificationDetailsRequest writes a value of the 'notification_details_request' type to the given writer.

func MarshalNotificationDetailsRequestList ¶ added in v0.1.391

func MarshalNotificationDetailsRequestList(list []*NotificationDetailsRequest, writer io.Writer) error

MarshalNotificationDetailsRequestList writes a list of values of the 'notification_details_request' type to the given writer.

func MarshalNotificationDetailsResponse ¶ added in v0.1.391

func MarshalNotificationDetailsResponse(object *NotificationDetailsResponse, writer io.Writer) error

MarshalNotificationDetailsResponse writes a value of the 'notification_details_response' type to the given writer.

func MarshalNotificationDetailsResponseList ¶ added in v0.1.391

func MarshalNotificationDetailsResponseList(list []*NotificationDetailsResponse, writer io.Writer) error

MarshalNotificationDetailsResponseList writes a list of values of the 'notification_details_response' type to the given writer.

func MarshalOrganization ¶

func MarshalOrganization(object *Organization, writer io.Writer) error

MarshalOrganization writes a value of the 'organization' type to the given writer.

func MarshalOrganizationList ¶

func MarshalOrganizationList(list []*Organization, writer io.Writer) error

MarshalOrganizationList writes a list of values of the 'organization' type to the given writer.

func MarshalPermission ¶

func MarshalPermission(object *Permission, writer io.Writer) error

MarshalPermission writes a value of the 'permission' type to the given writer.

func MarshalPermissionList ¶

func MarshalPermissionList(list []*Permission, writer io.Writer) error

MarshalPermissionList writes a list of values of the 'permission' type to the given writer.

func MarshalPlan ¶

func MarshalPlan(object *Plan, writer io.Writer) error

MarshalPlan writes a value of the 'plan' type to the given writer.

func MarshalPlanIDList ¶

func MarshalPlanIDList(list []PlanID, writer io.Writer) error

MarshalPlanIDList writes a list of values of the 'plan_ID' type to the given writer.

func MarshalPlanList ¶

func MarshalPlanList(list []*Plan, writer io.Writer) error

MarshalPlanList writes a list of values of the 'plan' type to the given writer.

func MarshalPullSecretsRequest ¶

func MarshalPullSecretsRequest(object *PullSecretsRequest, writer io.Writer) error

MarshalPullSecretsRequest writes a value of the 'pull_secrets_request' type to the given writer.

func MarshalPullSecretsRequestList ¶

func MarshalPullSecretsRequestList(list []*PullSecretsRequest, writer io.Writer) error

MarshalPullSecretsRequestList writes a list of values of the 'pull_secrets_request' type to the given writer.

func MarshalQuotaAuthorizationRequest ¶ added in v0.0.329

func MarshalQuotaAuthorizationRequest(object *QuotaAuthorizationRequest, writer io.Writer) error

MarshalQuotaAuthorizationRequest writes a value of the 'quota_authorization_request' type to the given writer.

func MarshalQuotaAuthorizationRequestList ¶ added in v0.0.329

func MarshalQuotaAuthorizationRequestList(list []*QuotaAuthorizationRequest, writer io.Writer) error

MarshalQuotaAuthorizationRequestList writes a list of values of the 'quota_authorization_request' type to the given writer.

func MarshalQuotaAuthorizationResponse ¶ added in v0.0.329

func MarshalQuotaAuthorizationResponse(object *QuotaAuthorizationResponse, writer io.Writer) error

MarshalQuotaAuthorizationResponse writes a value of the 'quota_authorization_response' type to the given writer.

func MarshalQuotaAuthorizationResponseList ¶ added in v0.0.329

func MarshalQuotaAuthorizationResponseList(list []*QuotaAuthorizationResponse, writer io.Writer) error

MarshalQuotaAuthorizationResponseList writes a list of values of the 'quota_authorization_response' type to the given writer.

func MarshalQuotaCost ¶ added in v0.0.329

func MarshalQuotaCost(object *QuotaCost, writer io.Writer) error

MarshalQuotaCost writes a value of the 'quota_cost' type to the given writer.

func MarshalQuotaCostList ¶ added in v0.0.329

func MarshalQuotaCostList(list []*QuotaCost, writer io.Writer) error

MarshalQuotaCostList writes a list of values of the 'quota_cost' type to the given writer.

func MarshalQuotaRules ¶ added in v0.0.329

func MarshalQuotaRules(object *QuotaRules, writer io.Writer) error

MarshalQuotaRules writes a value of the 'quota_rules' type to the given writer.

func MarshalQuotaRulesList ¶ added in v0.0.329

func MarshalQuotaRulesList(list []*QuotaRules, writer io.Writer) error

MarshalQuotaRulesList writes a list of values of the 'quota_rules' type to the given writer.

func MarshalRegistry ¶

func MarshalRegistry(object *Registry, writer io.Writer) error

MarshalRegistry writes a value of the 'registry' type to the given writer.

func MarshalRegistryCredential ¶

func MarshalRegistryCredential(object *RegistryCredential, writer io.Writer) error

MarshalRegistryCredential writes a value of the 'registry_credential' type to the given writer.

func MarshalRegistryCredentialList ¶

func MarshalRegistryCredentialList(list []*RegistryCredential, writer io.Writer) error

MarshalRegistryCredentialList writes a list of values of the 'registry_credential' type to the given writer.

func MarshalRegistryList ¶

func MarshalRegistryList(list []*Registry, writer io.Writer) error

MarshalRegistryList writes a list of values of the 'registry' type to the given writer.

func MarshalRelatedResource ¶ added in v0.0.329

func MarshalRelatedResource(object *RelatedResource, writer io.Writer) error

MarshalRelatedResource writes a value of the 'related_resource' type to the given writer.

func MarshalRelatedResourceList ¶ added in v0.0.329

func MarshalRelatedResourceList(list []*RelatedResource, writer io.Writer) error

MarshalRelatedResourceList writes a list of values of the 'related_resource' type to the given writer.

func MarshalReservedResource ¶

func MarshalReservedResource(object *ReservedResource, writer io.Writer) error

MarshalReservedResource writes a value of the 'reserved_resource' type to the given writer.

func MarshalReservedResourceList ¶

func MarshalReservedResourceList(list []*ReservedResource, writer io.Writer) error

MarshalReservedResourceList writes a list of values of the 'reserved_resource' type to the given writer.

func MarshalResource ¶

func MarshalResource(object *Resource, writer io.Writer) error

MarshalResource writes a value of the 'resource' type to the given writer.

func MarshalResourceList ¶

func MarshalResourceList(list []*Resource, writer io.Writer) error

MarshalResourceList writes a list of values of the 'resource' type to the given writer.

func MarshalResourceQuota ¶

func MarshalResourceQuota(object *ResourceQuota, writer io.Writer) error

MarshalResourceQuota writes a value of the 'resource_quota' type to the given writer.

func MarshalResourceQuotaList ¶

func MarshalResourceQuotaList(list []*ResourceQuota, writer io.Writer) error

MarshalResourceQuotaList writes a list of values of the 'resource_quota' type to the given writer.

func MarshalRole ¶

func MarshalRole(object *Role, writer io.Writer) error

MarshalRole writes a value of the 'role' type to the given writer.

func MarshalRoleBinding ¶

func MarshalRoleBinding(object *RoleBinding, writer io.Writer) error

MarshalRoleBinding writes a value of the 'role_binding' type to the given writer.

func MarshalRoleBindingList ¶

func MarshalRoleBindingList(list []*RoleBinding, writer io.Writer) error

MarshalRoleBindingList writes a list of values of the 'role_binding' type to the given writer.

func MarshalRoleList ¶

func MarshalRoleList(list []*Role, writer io.Writer) error

MarshalRoleList writes a list of values of the 'role' type to the given writer.

func MarshalSkuRule ¶

func MarshalSkuRule(object *SkuRule, writer io.Writer) error

MarshalSkuRule writes a value of the 'sku_rule' type to the given writer.

func MarshalSkuRuleList ¶

func MarshalSkuRuleList(list []*SkuRule, writer io.Writer) error

MarshalSkuRuleList writes a list of values of the 'sku_rule' type to the given writer.

func MarshalStringList ¶

func MarshalStringList(list []string, writer io.Writer) error

MarshalStringList writes a list of values of the 'string' type to the given writer.

func MarshalSubscription ¶

func MarshalSubscription(object *Subscription, writer io.Writer) error

MarshalSubscription writes a value of the 'subscription' type to the given writer.

func MarshalSubscriptionList ¶

func MarshalSubscriptionList(list []*Subscription, writer io.Writer) error

MarshalSubscriptionList writes a list of values of the 'subscription' type to the given writer.

func MarshalSubscriptionMetrics ¶ added in v0.0.329

func MarshalSubscriptionMetrics(object *SubscriptionMetrics, writer io.Writer) error

MarshalSubscriptionMetrics writes a value of the 'subscription_metrics' type to the given writer.

func MarshalSubscriptionMetricsList ¶ added in v0.0.329

func MarshalSubscriptionMetricsList(list []*SubscriptionMetrics, writer io.Writer) error

MarshalSubscriptionMetricsList writes a list of values of the 'subscription_metrics' type to the given writer.

func MarshalSubscriptionRegistration ¶

func MarshalSubscriptionRegistration(object *SubscriptionRegistration, writer io.Writer) error

MarshalSubscriptionRegistration writes a value of the 'subscription_registration' type to the given writer.

func MarshalSubscriptionRegistrationList ¶

func MarshalSubscriptionRegistrationList(list []*SubscriptionRegistration, writer io.Writer) error

MarshalSubscriptionRegistrationList writes a list of values of the 'subscription_registration' type to the given writer.

func MarshalSummaryDashboard ¶ added in v0.0.329

func MarshalSummaryDashboard(object *SummaryDashboard, writer io.Writer) error

MarshalSummaryDashboard writes a value of the 'summary_dashboard' type to the given writer.

func MarshalSummaryDashboardList ¶ added in v0.0.329

func MarshalSummaryDashboardList(list []*SummaryDashboard, writer io.Writer) error

MarshalSummaryDashboardList writes a list of values of the 'summary_dashboard' type to the given writer.

func MarshalSummaryMetrics ¶ added in v0.0.329

func MarshalSummaryMetrics(object *SummaryMetrics, writer io.Writer) error

MarshalSummaryMetrics writes a value of the 'summary_metrics' type to the given writer.

func MarshalSummaryMetricsList ¶ added in v0.0.329

func MarshalSummaryMetricsList(list []*SummaryMetrics, writer io.Writer) error

MarshalSummaryMetricsList writes a list of values of the 'summary_metrics' type to the given writer.

func MarshalSummarySample ¶ added in v0.0.329

func MarshalSummarySample(object *SummarySample, writer io.Writer) error

MarshalSummarySample writes a value of the 'summary_sample' type to the given writer.

func MarshalSummarySampleList ¶ added in v0.0.329

func MarshalSummarySampleList(list []*SummarySample, writer io.Writer) error

MarshalSummarySampleList writes a list of values of the 'summary_sample' type to the given writer.

func MarshalSupportCaseRequest ¶

func MarshalSupportCaseRequest(object *SupportCaseRequest, writer io.Writer) error

MarshalSupportCaseRequest writes a value of the 'support_case_request' type to the given writer.

func MarshalSupportCaseRequestList ¶

func MarshalSupportCaseRequestList(list []*SupportCaseRequest, writer io.Writer) error

MarshalSupportCaseRequestList writes a list of values of the 'support_case_request' type to the given writer.

func MarshalSupportCaseResponse ¶

func MarshalSupportCaseResponse(object *SupportCaseResponse, writer io.Writer) error

MarshalSupportCaseResponse writes a value of the 'support_case_response' type to the given writer.

func MarshalSupportCaseResponseList ¶

func MarshalSupportCaseResponseList(list []*SupportCaseResponse, writer io.Writer) error

MarshalSupportCaseResponseList writes a list of values of the 'support_case_response' type to the given writer.

func MarshalTemplateParameter ¶

func MarshalTemplateParameter(object *TemplateParameter, writer io.Writer) error

MarshalTemplateParameter writes a value of the 'template_parameter' type to the given writer.

func MarshalTemplateParameterList ¶

func MarshalTemplateParameterList(list []*TemplateParameter, writer io.Writer) error

MarshalTemplateParameterList writes a list of values of the 'template_parameter' type to the given writer.

func MarshalTokenAuthorizationRequest ¶

func MarshalTokenAuthorizationRequest(object *TokenAuthorizationRequest, writer io.Writer) error

MarshalTokenAuthorizationRequest writes a value of the 'token_authorization_request' type to the given writer.

func MarshalTokenAuthorizationRequestList ¶

func MarshalTokenAuthorizationRequestList(list []*TokenAuthorizationRequest, writer io.Writer) error

MarshalTokenAuthorizationRequestList writes a list of values of the 'token_authorization_request' type to the given writer.

func MarshalTokenAuthorizationResponse ¶

func MarshalTokenAuthorizationResponse(object *TokenAuthorizationResponse, writer io.Writer) error

MarshalTokenAuthorizationResponse writes a value of the 'token_authorization_response' type to the given writer.

func MarshalTokenAuthorizationResponseList ¶

func MarshalTokenAuthorizationResponseList(list []*TokenAuthorizationResponse, writer io.Writer) error

MarshalTokenAuthorizationResponseList writes a list of values of the 'token_authorization_response' type to the given writer.

func MarshalValueUnit ¶ added in v0.0.329

func MarshalValueUnit(object *ValueUnit, writer io.Writer) error

MarshalValueUnit writes a value of the 'value_unit' type to the given writer.

func MarshalValueUnitList ¶ added in v0.0.329

func MarshalValueUnitList(list []*ValueUnit, writer io.Writer) error

MarshalValueUnitList writes a list of values of the 'value_unit' type to the given writer.

func UnmarshalBooleanList ¶

func UnmarshalBooleanList(source interface{}) (items []bool, err error)

UnmarshalBooleanList reads a list of values of the 'boolean' type from the given source, which can be a slice of bytes, a string or a reader.

func UnmarshalDateList ¶

func UnmarshalDateList(source interface{}) (items []time.Time, err error)

UnmarshalDateList reads a list of values of the 'date' type from the given source, which can be a slice of bytes, a string or a reader.

func UnmarshalFloatList ¶

func UnmarshalFloatList(source interface{}) (items []float64, err error)

UnmarshalFloatList reads a list of values of the 'float' type from the given source, which can be a slice of bytes, a string or a reader.

func UnmarshalIntegerList ¶

func UnmarshalIntegerList(source interface{}) (items []int, err error)

UnmarshalIntegerList reads a list of values of the 'integer' type from the given source, which can be a slice of bytes, a string or a reader.

func UnmarshalInterfaceList ¶

func UnmarshalInterfaceList(source interface{}) (items []interface{}, err error)

UnmarshalInterfaceList reads a list of values of the 'interface' type from the given source, which can be a slice of bytes, a string or a reader.

func UnmarshalLongList ¶

func UnmarshalLongList(source interface{}) (items []int64, err error)

UnmarshalLongList reads a list of values of the 'long' type from the given source, which can be a slice of bytes, a string or a reader.

func UnmarshalStringList ¶

func UnmarshalStringList(source interface{}) (items []string, err error)

UnmarshalStringList reads a list of values of the 'string' type from the given source, which can be a slice of bytes, a string or a reader.

Types ¶

type AccessToken ¶

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

AccessToken represents the values of the 'access_token' type.

func UnmarshalAccessToken ¶

func UnmarshalAccessToken(source interface{}) (object *AccessToken, err error)

UnmarshalAccessToken reads a value of the 'access_token' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalAccessTokenList ¶

func UnmarshalAccessTokenList(source interface{}) (items []*AccessToken, err error)

UnmarshalAccessTokenList reads a list of values of the 'access_token' type from the given source, which can be a slice of bytes, a string or a reader.

func (*AccessToken) Auths ¶

func (o *AccessToken) Auths() map[string]*AccessTokenAuth

Auths returns the value of the 'auths' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*AccessToken) Empty ¶

func (o *AccessToken) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*AccessToken) GetAuths ¶

func (o *AccessToken) GetAuths() (value map[string]*AccessTokenAuth, ok bool)

GetAuths returns the value of the 'auths' attribute and a flag indicating if the attribute has a value.

type AccessTokenAuth ¶

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

AccessTokenAuth represents the values of the 'access_token_auth' type.

func UnmarshalAccessTokenAuth ¶

func UnmarshalAccessTokenAuth(source interface{}) (object *AccessTokenAuth, err error)

UnmarshalAccessTokenAuth reads a value of the 'access_token_auth' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalAccessTokenAuthList ¶

func UnmarshalAccessTokenAuthList(source interface{}) (items []*AccessTokenAuth, err error)

UnmarshalAccessTokenAuthList reads a list of values of the 'access_token_auth' type from the given source, which can be a slice of bytes, a string or a reader.

func (*AccessTokenAuth) Auth ¶

func (o *AccessTokenAuth) Auth() string

Auth returns the value of the 'auth' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*AccessTokenAuth) Email ¶

func (o *AccessTokenAuth) Email() string

Email returns the value of the 'email' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*AccessTokenAuth) Empty ¶

func (o *AccessTokenAuth) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*AccessTokenAuth) GetAuth ¶

func (o *AccessTokenAuth) GetAuth() (value string, ok bool)

GetAuth returns the value of the 'auth' attribute and a flag indicating if the attribute has a value.

func (*AccessTokenAuth) GetEmail ¶

func (o *AccessTokenAuth) GetEmail() (value string, ok bool)

GetEmail returns the value of the 'email' attribute and a flag indicating if the attribute has a value.

type AccessTokenAuthBuilder ¶

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

AccessTokenAuthBuilder contains the data and logic needed to build 'access_token_auth' objects.

func NewAccessTokenAuth ¶

func NewAccessTokenAuth() *AccessTokenAuthBuilder

NewAccessTokenAuth creates a new builder of 'access_token_auth' objects.

func (*AccessTokenAuthBuilder) Auth ¶

Auth sets the value of the 'auth' attribute to the given value.

func (*AccessTokenAuthBuilder) Build ¶

func (b *AccessTokenAuthBuilder) Build() (object *AccessTokenAuth, err error)

Build creates a 'access_token_auth' object using the configuration stored in the builder.

func (*AccessTokenAuthBuilder) Copy ¶

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*AccessTokenAuthBuilder) Email ¶

Email sets the value of the 'email' attribute to the given value.

func (*AccessTokenAuthBuilder) Empty ¶ added in v0.0.329

func (b *AccessTokenAuthBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

type AccessTokenAuthList ¶

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

AccessTokenAuthList is a list of values of the 'access_token_auth' type.

func (*AccessTokenAuthList) Each ¶

func (l *AccessTokenAuthList) Each(f func(item *AccessTokenAuth) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AccessTokenAuthList) Empty ¶

func (l *AccessTokenAuthList) Empty() bool

Empty returns true if the list is empty.

func (*AccessTokenAuthList) Get ¶

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*AccessTokenAuthList) Len ¶

func (l *AccessTokenAuthList) Len() int

Len returns the length of the list.

func (*AccessTokenAuthList) Range ¶

func (l *AccessTokenAuthList) Range(f func(index int, item *AccessTokenAuth) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AccessTokenAuthList) Slice ¶

func (l *AccessTokenAuthList) Slice() []*AccessTokenAuth

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type AccessTokenAuthListBuilder ¶

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

AccessTokenAuthListBuilder contains the data and logic needed to build 'access_token_auth' objects.

func NewAccessTokenAuthList ¶

func NewAccessTokenAuthList() *AccessTokenAuthListBuilder

NewAccessTokenAuthList creates a new builder of 'access_token_auth' objects.

func (*AccessTokenAuthListBuilder) Build ¶

func (b *AccessTokenAuthListBuilder) Build() (list *AccessTokenAuthList, err error)

Build creates a list of 'access_token_auth' objects using the configuration stored in the builder.

func (*AccessTokenAuthListBuilder) Copy ¶

Copy copies the items of the given list into this builder, discarding any previous items.

func (*AccessTokenAuthListBuilder) Empty ¶ added in v0.0.329

func (b *AccessTokenAuthListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*AccessTokenAuthListBuilder) Items ¶

Items sets the items of the list.

type AccessTokenBuilder ¶

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

AccessTokenBuilder contains the data and logic needed to build 'access_token' objects.

func NewAccessToken ¶

func NewAccessToken() *AccessTokenBuilder

NewAccessToken creates a new builder of 'access_token' objects.

func (*AccessTokenBuilder) Auths ¶

Auths sets the value of the 'auths' attribute to the given value.

func (*AccessTokenBuilder) Build ¶

func (b *AccessTokenBuilder) Build() (object *AccessToken, err error)

Build creates a 'access_token' object using the configuration stored in the builder.

func (*AccessTokenBuilder) Copy ¶

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*AccessTokenBuilder) Empty ¶ added in v0.0.329

func (b *AccessTokenBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

type AccessTokenClient ¶

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

AccessTokenClient is the client of the 'access_token' resource.

Manages access tokens.

func NewAccessTokenClient ¶

func NewAccessTokenClient(transport http.RoundTripper, path string) *AccessTokenClient

NewAccessTokenClient creates a new client for the 'access_token' resource using the given transport to send the requests and receive the responses.

func (*AccessTokenClient) Post ¶

Post creates a request for the 'post' method.

Returns access token generated from registries in docker format.

type AccessTokenList ¶

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

AccessTokenList is a list of values of the 'access_token' type.

func (*AccessTokenList) Each ¶

func (l *AccessTokenList) Each(f func(item *AccessToken) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AccessTokenList) Empty ¶

func (l *AccessTokenList) Empty() bool

Empty returns true if the list is empty.

func (*AccessTokenList) Get ¶

func (l *AccessTokenList) Get(i int) *AccessToken

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*AccessTokenList) Len ¶

func (l *AccessTokenList) Len() int

Len returns the length of the list.

func (*AccessTokenList) Range ¶

func (l *AccessTokenList) Range(f func(index int, item *AccessToken) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AccessTokenList) Slice ¶

func (l *AccessTokenList) Slice() []*AccessToken

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type AccessTokenListBuilder ¶

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

AccessTokenListBuilder contains the data and logic needed to build 'access_token' objects.

func NewAccessTokenList ¶

func NewAccessTokenList() *AccessTokenListBuilder

NewAccessTokenList creates a new builder of 'access_token' objects.

func (*AccessTokenListBuilder) Build ¶

func (b *AccessTokenListBuilder) Build() (list *AccessTokenList, err error)

Build creates a list of 'access_token' objects using the configuration stored in the builder.

func (*AccessTokenListBuilder) Copy ¶

Copy copies the items of the given list into this builder, discarding any previous items.

func (*AccessTokenListBuilder) Empty ¶ added in v0.0.329

func (b *AccessTokenListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*AccessTokenListBuilder) Items ¶

Items sets the items of the list.

type AccessTokenPostRequest ¶

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

AccessTokenPostRequest is the request for the 'post' method.

func (*AccessTokenPostRequest) Header ¶

func (r *AccessTokenPostRequest) Header(name string, value interface{}) *AccessTokenPostRequest

Header adds a request header.

func (*AccessTokenPostRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*AccessTokenPostRequest) Parameter ¶

func (r *AccessTokenPostRequest) Parameter(name string, value interface{}) *AccessTokenPostRequest

Parameter adds a query parameter.

func (*AccessTokenPostRequest) Send ¶

func (r *AccessTokenPostRequest) Send() (result *AccessTokenPostResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*AccessTokenPostRequest) SendContext ¶

func (r *AccessTokenPostRequest) SendContext(ctx context.Context) (result *AccessTokenPostResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type AccessTokenPostResponse ¶

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

AccessTokenPostResponse is the response for the 'post' method.

func (*AccessTokenPostResponse) Body ¶

Body returns the value of the 'body' parameter.

func (*AccessTokenPostResponse) Error ¶

func (r *AccessTokenPostResponse) Error() *errors.Error

Error returns the response error.

func (*AccessTokenPostResponse) GetBody ¶

func (r *AccessTokenPostResponse) GetBody() (value *AccessToken, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*AccessTokenPostResponse) Header ¶

func (r *AccessTokenPostResponse) Header() http.Header

Header returns header of the response.

func (*AccessTokenPostResponse) Status ¶

func (r *AccessTokenPostResponse) Status() int

Status returns the response status code.

type Account ¶

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

Account represents the values of the 'account' type.

func UnmarshalAccount ¶

func UnmarshalAccount(source interface{}) (object *Account, err error)

UnmarshalAccount reads a value of the 'account' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalAccountList ¶

func UnmarshalAccountList(source interface{}) (items []*Account, err error)

UnmarshalAccountList reads a list of values of the 'account' type from the given source, which can be a slice of bytes, a string or a reader.

func (*Account) BanCode ¶

func (o *Account) BanCode() string

BanCode returns the value of the 'ban_code' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Account) BanDescription ¶

func (o *Account) BanDescription() string

BanDescription returns the value of the 'ban_description' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Account) Banned ¶

func (o *Account) Banned() bool

Banned returns the value of the 'banned' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Account) Capabilities ¶ added in v0.0.329

func (o *Account) Capabilities() []*Capability

Capabilities returns the value of the 'capabilities' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Account) CreatedAt ¶

func (o *Account) CreatedAt() time.Time

CreatedAt returns the value of the 'created_at' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Account) Email ¶

func (o *Account) Email() string

Email returns the value of the 'email' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Account) Empty ¶

func (o *Account) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*Account) FirstName ¶

func (o *Account) FirstName() string

FirstName returns the value of the 'first_name' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Account) GetBanCode ¶

func (o *Account) GetBanCode() (value string, ok bool)

GetBanCode returns the value of the 'ban_code' attribute and a flag indicating if the attribute has a value.

func (*Account) GetBanDescription ¶

func (o *Account) GetBanDescription() (value string, ok bool)

GetBanDescription returns the value of the 'ban_description' attribute and a flag indicating if the attribute has a value.

func (*Account) GetBanned ¶

func (o *Account) GetBanned() (value bool, ok bool)

GetBanned returns the value of the 'banned' attribute and a flag indicating if the attribute has a value.

func (*Account) GetCapabilities ¶ added in v0.0.329

func (o *Account) GetCapabilities() (value []*Capability, ok bool)

GetCapabilities returns the value of the 'capabilities' attribute and a flag indicating if the attribute has a value.

func (*Account) GetCreatedAt ¶

func (o *Account) GetCreatedAt() (value time.Time, ok bool)

GetCreatedAt returns the value of the 'created_at' attribute and a flag indicating if the attribute has a value.

func (*Account) GetEmail ¶

func (o *Account) GetEmail() (value string, ok bool)

GetEmail returns the value of the 'email' attribute and a flag indicating if the attribute has a value.

func (*Account) GetFirstName ¶

func (o *Account) GetFirstName() (value string, ok bool)

GetFirstName returns the value of the 'first_name' attribute and a flag indicating if the attribute has a value.

func (*Account) GetHREF ¶

func (o *Account) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*Account) GetID ¶

func (o *Account) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*Account) GetLabels ¶

func (o *Account) GetLabels() (value []*Label, ok bool)

GetLabels returns the value of the 'labels' attribute and a flag indicating if the attribute has a value.

func (*Account) GetLastName ¶

func (o *Account) GetLastName() (value string, ok bool)

GetLastName returns the value of the 'last_name' attribute and a flag indicating if the attribute has a value.

func (*Account) GetOrganization ¶

func (o *Account) GetOrganization() (value *Organization, ok bool)

GetOrganization returns the value of the 'organization' attribute and a flag indicating if the attribute has a value.

func (*Account) GetRhitAccountID ¶ added in v0.0.329

func (o *Account) GetRhitAccountID() (value string, ok bool)

GetRhitAccountID returns the value of the 'rhit_account_ID' attribute and a flag indicating if the attribute has a value.

RhitAccountID will be deprecated in favor of RhitWebUserId

func (*Account) GetRhitWebUserId ¶ added in v0.0.329

func (o *Account) GetRhitWebUserId() (value string, ok bool)

GetRhitWebUserId returns the value of the 'rhit_web_user_id' attribute and a flag indicating if the attribute has a value.

func (*Account) GetServiceAccount ¶

func (o *Account) GetServiceAccount() (value bool, ok bool)

GetServiceAccount returns the value of the 'service_account' attribute and a flag indicating if the attribute has a value.

func (*Account) GetUpdatedAt ¶

func (o *Account) GetUpdatedAt() (value time.Time, ok bool)

GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.

func (*Account) GetUsername ¶

func (o *Account) GetUsername() (value string, ok bool)

GetUsername returns the value of the 'username' attribute and a flag indicating if the attribute has a value.

func (*Account) HREF ¶

func (o *Account) HREF() string

HREF returns the link to the object.

func (*Account) ID ¶

func (o *Account) ID() string

ID returns the identifier of the object.

func (*Account) Kind ¶

func (o *Account) Kind() string

Kind returns the name of the type of the object.

func (*Account) Labels ¶

func (o *Account) Labels() []*Label

Labels returns the value of the 'labels' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Account) LastName ¶

func (o *Account) LastName() string

LastName returns the value of the 'last_name' attribute, or the zero value of the type if the attribute doesn't have a value.

func (o *Account) Link() bool

Link returns true iif this is a link.

func (*Account) Organization ¶

func (o *Account) Organization() *Organization

Organization returns the value of the 'organization' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Account) RhitAccountID ¶ added in v0.0.329

func (o *Account) RhitAccountID() string

RhitAccountID returns the value of the 'rhit_account_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

RhitAccountID will be deprecated in favor of RhitWebUserId

func (*Account) RhitWebUserId ¶ added in v0.0.329

func (o *Account) RhitWebUserId() string

RhitWebUserId returns the value of the 'rhit_web_user_id' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Account) ServiceAccount ¶

func (o *Account) ServiceAccount() bool

ServiceAccount returns the value of the 'service_account' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Account) UpdatedAt ¶

func (o *Account) UpdatedAt() time.Time

UpdatedAt returns the value of the 'updated_at' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Account) Username ¶

func (o *Account) Username() string

Username returns the value of the 'username' attribute, or the zero value of the type if the attribute doesn't have a value.

type AccountBuilder ¶

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

AccountBuilder contains the data and logic needed to build 'account' objects.

func NewAccount ¶

func NewAccount() *AccountBuilder

NewAccount creates a new builder of 'account' objects.

func (*AccountBuilder) BanCode ¶

func (b *AccountBuilder) BanCode(value string) *AccountBuilder

BanCode sets the value of the 'ban_code' attribute to the given value.

func (*AccountBuilder) BanDescription ¶

func (b *AccountBuilder) BanDescription(value string) *AccountBuilder

BanDescription sets the value of the 'ban_description' attribute to the given value.

func (*AccountBuilder) Banned ¶

func (b *AccountBuilder) Banned(value bool) *AccountBuilder

Banned sets the value of the 'banned' attribute to the given value.

func (*AccountBuilder) Build ¶

func (b *AccountBuilder) Build() (object *Account, err error)

Build creates a 'account' object using the configuration stored in the builder.

func (*AccountBuilder) Capabilities ¶ added in v0.0.329

func (b *AccountBuilder) Capabilities(values ...*CapabilityBuilder) *AccountBuilder

Capabilities sets the value of the 'capabilities' attribute to the given values.

func (*AccountBuilder) Copy ¶

func (b *AccountBuilder) Copy(object *Account) *AccountBuilder

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*AccountBuilder) CreatedAt ¶

func (b *AccountBuilder) CreatedAt(value time.Time) *AccountBuilder

CreatedAt sets the value of the 'created_at' attribute to the given value.

func (*AccountBuilder) Email ¶

func (b *AccountBuilder) Email(value string) *AccountBuilder

Email sets the value of the 'email' attribute to the given value.

func (*AccountBuilder) Empty ¶ added in v0.0.329

func (b *AccountBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*AccountBuilder) FirstName ¶

func (b *AccountBuilder) FirstName(value string) *AccountBuilder

FirstName sets the value of the 'first_name' attribute to the given value.

func (*AccountBuilder) HREF ¶

func (b *AccountBuilder) HREF(value string) *AccountBuilder

HREF sets the link to the object.

func (*AccountBuilder) ID ¶

func (b *AccountBuilder) ID(value string) *AccountBuilder

ID sets the identifier of the object.

func (*AccountBuilder) Labels ¶

func (b *AccountBuilder) Labels(values ...*LabelBuilder) *AccountBuilder

Labels sets the value of the 'labels' attribute to the given values.

func (*AccountBuilder) LastName ¶

func (b *AccountBuilder) LastName(value string) *AccountBuilder

LastName sets the value of the 'last_name' attribute to the given value.

func (b *AccountBuilder) Link(value bool) *AccountBuilder

Link sets the flag that indicates if this is a link.

func (*AccountBuilder) Organization ¶

func (b *AccountBuilder) Organization(value *OrganizationBuilder) *AccountBuilder

Organization sets the value of the 'organization' attribute to the given value.

func (*AccountBuilder) RhitAccountID ¶ added in v0.0.329

func (b *AccountBuilder) RhitAccountID(value string) *AccountBuilder

RhitAccountID sets the value of the 'rhit_account_ID' attribute to the given value.

func (*AccountBuilder) RhitWebUserId ¶ added in v0.0.329

func (b *AccountBuilder) RhitWebUserId(value string) *AccountBuilder

RhitWebUserId sets the value of the 'rhit_web_user_id' attribute to the given value.

func (*AccountBuilder) ServiceAccount ¶

func (b *AccountBuilder) ServiceAccount(value bool) *AccountBuilder

ServiceAccount sets the value of the 'service_account' attribute to the given value.

func (*AccountBuilder) UpdatedAt ¶

func (b *AccountBuilder) UpdatedAt(value time.Time) *AccountBuilder

UpdatedAt sets the value of the 'updated_at' attribute to the given value.

func (*AccountBuilder) Username ¶

func (b *AccountBuilder) Username(value string) *AccountBuilder

Username sets the value of the 'username' attribute to the given value.

type AccountClient ¶

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

AccountClient is the client of the 'account' resource.

Manages a specific account.

func NewAccountClient ¶

func NewAccountClient(transport http.RoundTripper, path string) *AccountClient

NewAccountClient creates a new client for the 'account' resource using the given transport to send the requests and receive the responses.

func (*AccountClient) Delete ¶ added in v0.1.334

func (c *AccountClient) Delete() *AccountDeleteRequest

Delete creates a request for the 'delete' method.

func (*AccountClient) Get ¶

func (c *AccountClient) Get() *AccountGetRequest

Get creates a request for the 'get' method.

Retrieves the details of the account.

func (*AccountClient) Labels ¶

func (c *AccountClient) Labels() *GenericLabelsClient

Labels returns the target 'generic_labels' resource.

Reference to the list of labels of a specific account.

func (*AccountClient) Poll ¶

func (c *AccountClient) Poll() *AccountPollRequest

Poll creates a request to repeatedly retrieve the object till the response has one of a given set of states and satisfies a set of predicates.

func (*AccountClient) Update ¶

func (c *AccountClient) Update() *AccountUpdateRequest

Update creates a request for the 'update' method.

Updates the account.

type AccountDeleteRequest ¶ added in v0.1.334

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

AccountDeleteRequest is the request for the 'delete' method.

func (*AccountDeleteRequest) DeleteAssociatedResources ¶ added in v0.1.350

func (r *AccountDeleteRequest) DeleteAssociatedResources(value bool) *AccountDeleteRequest

DeleteAssociatedResources sets the value of the 'delete_associated_resources' parameter.

func (*AccountDeleteRequest) Header ¶ added in v0.1.334

func (r *AccountDeleteRequest) Header(name string, value interface{}) *AccountDeleteRequest

Header adds a request header.

func (*AccountDeleteRequest) Impersonate ¶ added in v0.1.334

func (r *AccountDeleteRequest) Impersonate(user string) *AccountDeleteRequest

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*AccountDeleteRequest) Parameter ¶ added in v0.1.334

func (r *AccountDeleteRequest) Parameter(name string, value interface{}) *AccountDeleteRequest

Parameter adds a query parameter.

func (*AccountDeleteRequest) Send ¶ added in v0.1.334

func (r *AccountDeleteRequest) Send() (result *AccountDeleteResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*AccountDeleteRequest) SendContext ¶ added in v0.1.334

func (r *AccountDeleteRequest) SendContext(ctx context.Context) (result *AccountDeleteResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type AccountDeleteResponse ¶ added in v0.1.334

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

AccountDeleteResponse is the response for the 'delete' method.

func (*AccountDeleteResponse) Error ¶ added in v0.1.334

func (r *AccountDeleteResponse) Error() *errors.Error

Error returns the response error.

func (*AccountDeleteResponse) Header ¶ added in v0.1.334

func (r *AccountDeleteResponse) Header() http.Header

Header returns header of the response.

func (*AccountDeleteResponse) Status ¶ added in v0.1.334

func (r *AccountDeleteResponse) Status() int

Status returns the response status code.

type AccountGetRequest ¶

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

AccountGetRequest is the request for the 'get' method.

func (*AccountGetRequest) Header ¶

func (r *AccountGetRequest) Header(name string, value interface{}) *AccountGetRequest

Header adds a request header.

func (*AccountGetRequest) Impersonate ¶ added in v0.0.329

func (r *AccountGetRequest) Impersonate(user string) *AccountGetRequest

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*AccountGetRequest) Parameter ¶

func (r *AccountGetRequest) Parameter(name string, value interface{}) *AccountGetRequest

Parameter adds a query parameter.

func (*AccountGetRequest) Send ¶

func (r *AccountGetRequest) Send() (result *AccountGetResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*AccountGetRequest) SendContext ¶

func (r *AccountGetRequest) SendContext(ctx context.Context) (result *AccountGetResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type AccountGetResponse ¶

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

AccountGetResponse is the response for the 'get' method.

func (*AccountGetResponse) Body ¶

func (r *AccountGetResponse) Body() *Account

Body returns the value of the 'body' parameter.

func (*AccountGetResponse) Error ¶

func (r *AccountGetResponse) Error() *errors.Error

Error returns the response error.

func (*AccountGetResponse) GetBody ¶

func (r *AccountGetResponse) GetBody() (value *Account, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*AccountGetResponse) Header ¶

func (r *AccountGetResponse) Header() http.Header

Header returns header of the response.

func (*AccountGetResponse) Status ¶

func (r *AccountGetResponse) Status() int

Status returns the response status code.

type AccountList ¶

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

AccountList is a list of values of the 'account' type.

func (*AccountList) Each ¶

func (l *AccountList) Each(f func(item *Account) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AccountList) Empty ¶

func (l *AccountList) Empty() bool

Empty returns true if the list is empty.

func (*AccountList) Get ¶

func (l *AccountList) Get(i int) *Account

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*AccountList) GetHREF ¶

func (l *AccountList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*AccountList) HREF ¶

func (l *AccountList) HREF() string

HREF returns the link to the list.

func (*AccountList) Kind ¶

func (l *AccountList) Kind() string

Kind returns the name of the type of the object.

func (*AccountList) Len ¶

func (l *AccountList) Len() int

Len returns the length of the list.

func (l *AccountList) Link() bool

Link returns true iif this is a link.

func (*AccountList) Range ¶

func (l *AccountList) Range(f func(index int, item *Account) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*AccountList) Slice ¶

func (l *AccountList) Slice() []*Account

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type AccountListBuilder ¶

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

AccountListBuilder contains the data and logic needed to build 'account' objects.

func NewAccountList ¶

func NewAccountList() *AccountListBuilder

NewAccountList creates a new builder of 'account' objects.

func (*AccountListBuilder) Build ¶

func (b *AccountListBuilder) Build() (list *AccountList, err error)

Build creates a list of 'account' objects using the configuration stored in the builder.

func (*AccountListBuilder) Copy ¶

Copy copies the items of the given list into this builder, discarding any previous items.

func (*AccountListBuilder) Empty ¶ added in v0.0.329

func (b *AccountListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*AccountListBuilder) Items ¶

Items sets the items of the list.

type AccountPollRequest ¶

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

AccountPollRequest is the request for the Poll method.

func (*AccountPollRequest) Header ¶

func (r *AccountPollRequest) Header(name string, value interface{}) *AccountPollRequest

Header adds a request header to all the requests that will be used to retrieve the object.

func (*AccountPollRequest) Interval ¶

func (r *AccountPollRequest) Interval(value time.Duration) *AccountPollRequest

Interval sets the polling interval. This parameter is mandatory and must be greater than zero.

func (*AccountPollRequest) Parameter ¶

func (r *AccountPollRequest) Parameter(name string, value interface{}) *AccountPollRequest

Parameter adds a query parameter to all the requests that will be used to retrieve the object.

func (*AccountPollRequest) Predicate ¶

func (r *AccountPollRequest) Predicate(value func(*AccountGetResponse) bool) *AccountPollRequest

Predicate adds a predicate that the response should satisfy be considered successful. Multiple predicates can be set calling this method multiple times. The response will be considered successful if all the predicates are satisfied.

func (*AccountPollRequest) StartContext ¶

func (r *AccountPollRequest) StartContext(ctx context.Context) (response *AccountPollResponse, err error)

StartContext starts the polling loop. Responses will be considered successful if the status is one of the values specified with the Status method and if all the predicates specified with the Predicate method return nil.

The context must have a timeout or deadline, otherwise this method will immediately return an error.

func (*AccountPollRequest) Status ¶

func (r *AccountPollRequest) Status(value int) *AccountPollRequest

Status set the expected status of the response. Multiple values can be set calling this method multiple times. The response will be considered successful if the status is any of those values.

type AccountPollResponse ¶

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

AccountPollResponse is the response for the Poll method.

func (*AccountPollResponse) Body ¶

func (r *AccountPollResponse) Body() *Account

Body returns the value of the 'body' parameter.

func (*AccountPollResponse) Error ¶

func (r *AccountPollResponse) Error() *errors.Error

Error returns the response error.

func (*AccountPollResponse) GetBody ¶

func (r *AccountPollResponse) GetBody() (value *Account, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*AccountPollResponse) Header ¶

func (r *AccountPollResponse) Header() http.Header

Header returns header of the response.

func (*AccountPollResponse) Status ¶

func (r *AccountPollResponse) Status() int

Status returns the response status code.

type AccountUpdateRequest ¶

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

AccountUpdateRequest is the request for the 'update' method.

func (*AccountUpdateRequest) Body ¶

Body sets the value of the 'body' parameter.

func (*AccountUpdateRequest) Header ¶

func (r *AccountUpdateRequest) Header(name string, value interface{}) *AccountUpdateRequest

Header adds a request header.

func (*AccountUpdateRequest) Impersonate ¶ added in v0.0.329

func (r *AccountUpdateRequest) Impersonate(user string) *AccountUpdateRequest

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*AccountUpdateRequest) Parameter ¶

func (r *AccountUpdateRequest) Parameter(name string, value interface{}) *AccountUpdateRequest

Parameter adds a query parameter.

func (*AccountUpdateRequest) Send ¶

func (r *AccountUpdateRequest) Send() (result *AccountUpdateResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*AccountUpdateRequest) SendContext ¶

func (r *AccountUpdateRequest) SendContext(ctx context.Context) (result *AccountUpdateResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type AccountUpdateResponse ¶

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

AccountUpdateResponse is the response for the 'update' method.

func (*AccountUpdateResponse) Body ¶

func (r *AccountUpdateResponse) Body() *Account

Body returns the value of the 'body' parameter.

func (*AccountUpdateResponse) Error ¶

func (r *AccountUpdateResponse) Error() *errors.Error

Error returns the response error.

func (*AccountUpdateResponse) GetBody ¶

func (r *AccountUpdateResponse) GetBody() (value *Account, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*AccountUpdateResponse) Header ¶

func (r *AccountUpdateResponse) Header() http.Header

Header returns header of the response.

func (*AccountUpdateResponse) Status ¶

func (r *AccountUpdateResponse) Status() int

Status returns the response status code.

type AccountsAddRequest ¶

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

AccountsAddRequest is the request for the 'add' method.

func (*AccountsAddRequest) Body ¶

Body sets the value of the 'body' parameter.

Account data.

func (*AccountsAddRequest) Header ¶

func (r *AccountsAddRequest) Header(name string, value interface{}) *AccountsAddRequest

Header adds a request header.

func (*AccountsAddRequest) Impersonate ¶ added in v0.0.329

func (r *AccountsAddRequest) Impersonate(user string) *AccountsAddRequest

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*AccountsAddRequest) Parameter ¶

func (r *AccountsAddRequest) Parameter(name string, value interface{}) *AccountsAddRequest

Parameter adds a query parameter.

func (*AccountsAddRequest) Send ¶

func (r *AccountsAddRequest) Send() (result *AccountsAddResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*AccountsAddRequest) SendContext ¶

func (r *AccountsAddRequest) SendContext(ctx context.Context) (result *AccountsAddResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type AccountsAddResponse ¶

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

AccountsAddResponse is the response for the 'add' method.

func (*AccountsAddResponse) Body ¶

func (r *AccountsAddResponse) Body() *Account

Body returns the value of the 'body' parameter.

Account data.

func (*AccountsAddResponse) Error ¶

func (r *AccountsAddResponse) Error() *errors.Error

Error returns the response error.

func (*AccountsAddResponse) GetBody ¶

func (r *AccountsAddResponse) GetBody() (value *Account, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

Account data.

func (*AccountsAddResponse) Header ¶

func (r *AccountsAddResponse) Header() http.Header

Header returns header of the response.

func (*AccountsAddResponse) Status ¶

func (r *AccountsAddResponse) Status() int

Status returns the response status code.

type AccountsClient ¶

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

AccountsClient is the client of the 'accounts' resource.

Manages the collection of accounts.

func NewAccountsClient ¶

func NewAccountsClient(transport http.RoundTripper, path string) *AccountsClient

NewAccountsClient creates a new client for the 'accounts' resource using the given transport to send the requests and receive the responses.

func (*AccountsClient) Account ¶

func (c *AccountsClient) Account(id string) *AccountClient

Account returns the target 'account' resource for the given identifier.

Reference to the service that manages an specific account.

func (*AccountsClient) Add ¶

Add creates a request for the 'add' method.

Creates a new account.

func (*AccountsClient) List ¶

List creates a request for the 'list' method.

Retrieves the list of accounts.

type AccountsListRequest ¶

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

AccountsListRequest is the request for the 'list' method.

func (*AccountsListRequest) FetchLabels ¶ added in v0.1.352

func (r *AccountsListRequest) FetchLabels(value bool) *AccountsListRequest

FetchLabels sets the value of the 'fetch_labels' parameter.

If true, includes the labels on an account in the output. Could slow request response time.

func (*AccountsListRequest) Fields ¶

Fields sets the value of the 'fields' parameter.

Projection This field contains a comma-separated list of fields you'd like to get in a result. No new fields can be added, only existing ones can be filtered. To specify a field 'id' of a structure 'plan' use 'plan.id'. To specify all fields of a structure 'labels' use 'labels.*'.

func (*AccountsListRequest) Header ¶

func (r *AccountsListRequest) Header(name string, value interface{}) *AccountsListRequest

Header adds a request header.

func (*AccountsListRequest) Impersonate ¶ added in v0.0.329

func (r *AccountsListRequest) Impersonate(user string) *AccountsListRequest

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*AccountsListRequest) Order ¶

Order sets the value of the 'order' parameter.

Order criteria.

The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement. For example, in order to sort the accounts descending by name identifier the value should be:

```sql name desc ```

If the parameter isn't provided, or if the value is empty, then the order of the results is undefined.

func (*AccountsListRequest) Page ¶

Page sets the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*AccountsListRequest) Parameter ¶

func (r *AccountsListRequest) Parameter(name string, value interface{}) *AccountsListRequest

Parameter adds a query parameter.

func (*AccountsListRequest) Search ¶

Search sets the value of the 'search' parameter.

Search criteria.

The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the account instead of the names of the columns of a table. For example, in order to retrieve accounts with username starting with my:

```sql username like 'my%' ```

If the parameter isn't provided, or if the value is empty, then all the items that the user has permission to see will be returned.

func (*AccountsListRequest) Send ¶

func (r *AccountsListRequest) Send() (result *AccountsListResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*AccountsListRequest) SendContext ¶

func (r *AccountsListRequest) SendContext(ctx context.Context) (result *AccountsListResponse, err error)

SendContext sends this request, waits for the response, and returns it.

func (*AccountsListRequest) Size ¶

Size sets the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

type AccountsListResponse ¶

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

AccountsListResponse is the response for the 'list' method.

func (*AccountsListResponse) Error ¶

func (r *AccountsListResponse) Error() *errors.Error

Error returns the response error.

func (*AccountsListResponse) GetItems ¶

func (r *AccountsListResponse) GetItems() (value *AccountList, ok bool)

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

Retrieved list of accounts.

func (*AccountsListResponse) GetPage ¶

func (r *AccountsListResponse) GetPage() (value int, ok bool)

GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.

Index of the requested page, where one corresponds to the first page.

func (*AccountsListResponse) GetSize ¶

func (r *AccountsListResponse) GetSize() (value int, ok bool)

GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.

Maximum number of items that will be contained in the returned page.

func (*AccountsListResponse) GetTotal ¶

func (r *AccountsListResponse) GetTotal() (value int, ok bool)

GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

func (*AccountsListResponse) Header ¶

func (r *AccountsListResponse) Header() http.Header

Header returns header of the response.

func (*AccountsListResponse) Items ¶

func (r *AccountsListResponse) Items() *AccountList

Items returns the value of the 'items' parameter.

Retrieved list of accounts.

func (*AccountsListResponse) Page ¶

func (r *AccountsListResponse) Page() int

Page returns the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*AccountsListResponse) Size ¶

func (r *AccountsListResponse) Size() int

Size returns the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

func (*AccountsListResponse) Status ¶

func (r *AccountsListResponse) Status() int

Status returns the response status code.

func (*AccountsListResponse) Total ¶

func (r *AccountsListResponse) Total() int

Total returns the value of the 'total' parameter.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

type Action ¶

type Action string

Action represents the values of the 'action' enumerated type.

const (
	//
	ActionCreate Action = "create"
	//
	ActionDelete Action = "delete"
	//
	ActionGet Action = "get"
	//
	ActionList Action = "list"
	//
	ActionUpdate Action = "update"
)

func UnmarshalActionList ¶

func UnmarshalActionList(source interface{}) (items []Action, err error)

UnmarshalActionList reads a list of values of the 'action' type from the given source, which can be a slice of bytes, a string or a reader.

type BillingModel ¶ added in v0.0.329

type BillingModel string

BillingModel represents the values of the 'billing_model' enumerated type.

const (
	// BillingModelMarketplace Legacy Marketplace billing model. Currently only used for tests. Use cloud-provider specific billing models instead.
	BillingModelMarketplace BillingModel = "marketplace"
	// AWS Marketplace billing model.
	BillingModelMarketplaceAWS BillingModel = "marketplace-aws"
	// GCP Marketplace billing model.
	BillingModelMarketplaceGCP BillingModel = "marketplace-gcp"
	// RH Marketplace billing model.
	BillingModelMarketplaceRHM BillingModel = "marketplace-rhm"
	// Azure Marketplace billing model.
	BillingModelMarketplaceAzure BillingModel = "marketplace-azure"
	// Standard. This is the default billing model
	BillingModelStandard BillingModel = "standard"
)

func UnmarshalBillingModelList ¶ added in v0.0.329

func UnmarshalBillingModelList(source interface{}) (items []BillingModel, err error)

UnmarshalBillingModelList reads a list of values of the 'billing_model' type from the given source, which can be a slice of bytes, a string or a reader.

type BillingModelClient ¶ added in v0.1.366

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

BillingModelClient is the client of the 'billing_model' resource.

func NewBillingModelClient ¶ added in v0.1.366

func NewBillingModelClient(transport http.RoundTripper, path string) *BillingModelClient

NewBillingModelClient creates a new client for the 'billing_model' resource using the given transport to send the requests and receive the responses.

func (*BillingModelClient) Get ¶ added in v0.1.366

Get creates a request for the 'get' method.

Retrieves the details of the billing model

func (*BillingModelClient) Poll ¶ added in v0.1.366

Poll creates a request to repeatedly retrieve the object till the response has one of a given set of states and satisfies a set of predicates.

type BillingModelGetRequest ¶ added in v0.1.366

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

BillingModelGetRequest is the request for the 'get' method.

func (*BillingModelGetRequest) Header ¶ added in v0.1.366

func (r *BillingModelGetRequest) Header(name string, value interface{}) *BillingModelGetRequest

Header adds a request header.

func (*BillingModelGetRequest) Impersonate ¶ added in v0.1.366

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*BillingModelGetRequest) Parameter ¶ added in v0.1.366

func (r *BillingModelGetRequest) Parameter(name string, value interface{}) *BillingModelGetRequest

Parameter adds a query parameter.

func (*BillingModelGetRequest) Send ¶ added in v0.1.366

func (r *BillingModelGetRequest) Send() (result *BillingModelGetResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*BillingModelGetRequest) SendContext ¶ added in v0.1.366

func (r *BillingModelGetRequest) SendContext(ctx context.Context) (result *BillingModelGetResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type BillingModelGetResponse ¶ added in v0.1.366

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

BillingModelGetResponse is the response for the 'get' method.

func (*BillingModelGetResponse) Body ¶ added in v0.1.366

Body returns the value of the 'body' parameter.

func (*BillingModelGetResponse) Error ¶ added in v0.1.366

func (r *BillingModelGetResponse) Error() *errors.Error

Error returns the response error.

func (*BillingModelGetResponse) GetBody ¶ added in v0.1.366

func (r *BillingModelGetResponse) GetBody() (value *BillingModelItem, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*BillingModelGetResponse) Header ¶ added in v0.1.366

func (r *BillingModelGetResponse) Header() http.Header

Header returns header of the response.

func (*BillingModelGetResponse) Status ¶ added in v0.1.366

func (r *BillingModelGetResponse) Status() int

Status returns the response status code.

type BillingModelItem ¶ added in v0.1.366

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

BillingModelItem represents the values of the 'billing_model_item' type.

BillingModelItem represents a billing model

func UnmarshalBillingModelItem ¶ added in v0.1.366

func UnmarshalBillingModelItem(source interface{}) (object *BillingModelItem, err error)

UnmarshalBillingModelItem reads a value of the 'billing_model_item' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalBillingModelItemList ¶ added in v0.1.366

func UnmarshalBillingModelItemList(source interface{}) (items []*BillingModelItem, err error)

UnmarshalBillingModelItemList reads a list of values of the 'billing_model_item' type from the given source, which can be a slice of bytes, a string or a reader.

func (*BillingModelItem) BillingModelType ¶ added in v0.1.368

func (o *BillingModelItem) BillingModelType() string

BillingModelType returns the value of the 'billing_model_type' attribute, or the zero value of the type if the attribute doesn't have a value.

BillingModelType is the type of the BillingModel. e.g. standard, marketplace.

func (*BillingModelItem) Description ¶ added in v0.1.367

func (o *BillingModelItem) Description() string

Description returns the value of the 'description' attribute, or the zero value of the type if the attribute doesn't have a value.

Single line description of the billing model.

func (*BillingModelItem) DisplayName ¶ added in v0.1.367

func (o *BillingModelItem) DisplayName() string

DisplayName returns the value of the 'display_name' attribute, or the zero value of the type if the attribute doesn't have a value.

User friendly display name of the billing model.

func (*BillingModelItem) Empty ¶ added in v0.1.366

func (o *BillingModelItem) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*BillingModelItem) GetBillingModelType ¶ added in v0.1.368

func (o *BillingModelItem) GetBillingModelType() (value string, ok bool)

GetBillingModelType returns the value of the 'billing_model_type' attribute and a flag indicating if the attribute has a value.

BillingModelType is the type of the BillingModel. e.g. standard, marketplace.

func (*BillingModelItem) GetDescription ¶ added in v0.1.367

func (o *BillingModelItem) GetDescription() (value string, ok bool)

GetDescription returns the value of the 'description' attribute and a flag indicating if the attribute has a value.

Single line description of the billing model.

func (*BillingModelItem) GetDisplayName ¶ added in v0.1.367

func (o *BillingModelItem) GetDisplayName() (value string, ok bool)

GetDisplayName returns the value of the 'display_name' attribute and a flag indicating if the attribute has a value.

User friendly display name of the billing model.

func (*BillingModelItem) GetHREF ¶ added in v0.1.366

func (o *BillingModelItem) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*BillingModelItem) GetID ¶ added in v0.1.368

func (o *BillingModelItem) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*BillingModelItem) GetMarketplace ¶ added in v0.1.366

func (o *BillingModelItem) GetMarketplace() (value string, ok bool)

GetMarketplace returns the value of the 'marketplace' attribute and a flag indicating if the attribute has a value.

Indicates the marketplace of the billing model. e.g. gcp, aws, etc.

func (*BillingModelItem) HREF ¶ added in v0.1.366

func (o *BillingModelItem) HREF() string

HREF returns the link to the object.

func (*BillingModelItem) ID ¶ added in v0.1.368

func (o *BillingModelItem) ID() string

ID returns the identifier of the object.

func (*BillingModelItem) Kind ¶ added in v0.1.368

func (o *BillingModelItem) Kind() string

Kind returns the name of the type of the object.

func (o *BillingModelItem) Link() bool

Link returns true iif this is a link.

func (*BillingModelItem) Marketplace ¶ added in v0.1.366

func (o *BillingModelItem) Marketplace() string

Marketplace returns the value of the 'marketplace' attribute, or the zero value of the type if the attribute doesn't have a value.

Indicates the marketplace of the billing model. e.g. gcp, aws, etc.

type BillingModelItemBuilder ¶ added in v0.1.366

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

BillingModelItemBuilder contains the data and logic needed to build 'billing_model_item' objects.

BillingModelItem represents a billing model

func NewBillingModelItem ¶ added in v0.1.366

func NewBillingModelItem() *BillingModelItemBuilder

NewBillingModelItem creates a new builder of 'billing_model_item' objects.

func (*BillingModelItemBuilder) BillingModelType ¶ added in v0.1.368

func (b *BillingModelItemBuilder) BillingModelType(value string) *BillingModelItemBuilder

BillingModelType sets the value of the 'billing_model_type' attribute to the given value.

func (*BillingModelItemBuilder) Build ¶ added in v0.1.366

func (b *BillingModelItemBuilder) Build() (object *BillingModelItem, err error)

Build creates a 'billing_model_item' object using the configuration stored in the builder.

func (*BillingModelItemBuilder) Copy ¶ added in v0.1.366

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*BillingModelItemBuilder) Description ¶ added in v0.1.367

Description sets the value of the 'description' attribute to the given value.

func (*BillingModelItemBuilder) DisplayName ¶ added in v0.1.367

DisplayName sets the value of the 'display_name' attribute to the given value.

func (*BillingModelItemBuilder) Empty ¶ added in v0.1.366

func (b *BillingModelItemBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*BillingModelItemBuilder) HREF ¶ added in v0.1.366

HREF sets the link to the object.

func (*BillingModelItemBuilder) ID ¶ added in v0.1.368

ID sets the identifier of the object.

Link sets the flag that indicates if this is a link.

func (*BillingModelItemBuilder) Marketplace ¶ added in v0.1.366

Marketplace sets the value of the 'marketplace' attribute to the given value.

type BillingModelItemList ¶ added in v0.1.366

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

BillingModelItemList is a list of values of the 'billing_model_item' type.

func (*BillingModelItemList) Each ¶ added in v0.1.366

func (l *BillingModelItemList) Each(f func(item *BillingModelItem) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*BillingModelItemList) Empty ¶ added in v0.1.366

func (l *BillingModelItemList) Empty() bool

Empty returns true if the list is empty.

func (*BillingModelItemList) Get ¶ added in v0.1.366

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*BillingModelItemList) GetHREF ¶ added in v0.1.368

func (l *BillingModelItemList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*BillingModelItemList) HREF ¶ added in v0.1.368

func (l *BillingModelItemList) HREF() string

HREF returns the link to the list.

func (*BillingModelItemList) Kind ¶ added in v0.1.368

func (l *BillingModelItemList) Kind() string

Kind returns the name of the type of the object.

func (*BillingModelItemList) Len ¶ added in v0.1.366

func (l *BillingModelItemList) Len() int

Len returns the length of the list.

func (l *BillingModelItemList) Link() bool

Link returns true iif this is a link.

func (*BillingModelItemList) Range ¶ added in v0.1.366

func (l *BillingModelItemList) Range(f func(index int, item *BillingModelItem) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*BillingModelItemList) Slice ¶ added in v0.1.366

func (l *BillingModelItemList) Slice() []*BillingModelItem

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type BillingModelItemListBuilder ¶ added in v0.1.366

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

BillingModelItemListBuilder contains the data and logic needed to build 'billing_model_item' objects.

func NewBillingModelItemList ¶ added in v0.1.366

func NewBillingModelItemList() *BillingModelItemListBuilder

NewBillingModelItemList creates a new builder of 'billing_model_item' objects.

func (*BillingModelItemListBuilder) Build ¶ added in v0.1.366

func (b *BillingModelItemListBuilder) Build() (list *BillingModelItemList, err error)

Build creates a list of 'billing_model_item' objects using the configuration stored in the builder.

func (*BillingModelItemListBuilder) Copy ¶ added in v0.1.366

Copy copies the items of the given list into this builder, discarding any previous items.

func (*BillingModelItemListBuilder) Empty ¶ added in v0.1.366

func (b *BillingModelItemListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*BillingModelItemListBuilder) Items ¶ added in v0.1.366

Items sets the items of the list.

type BillingModelPollRequest ¶ added in v0.1.366

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

BillingModelPollRequest is the request for the Poll method.

func (*BillingModelPollRequest) Header ¶ added in v0.1.366

func (r *BillingModelPollRequest) Header(name string, value interface{}) *BillingModelPollRequest

Header adds a request header to all the requests that will be used to retrieve the object.

func (*BillingModelPollRequest) Interval ¶ added in v0.1.366

Interval sets the polling interval. This parameter is mandatory and must be greater than zero.

func (*BillingModelPollRequest) Parameter ¶ added in v0.1.366

func (r *BillingModelPollRequest) Parameter(name string, value interface{}) *BillingModelPollRequest

Parameter adds a query parameter to all the requests that will be used to retrieve the object.

func (*BillingModelPollRequest) Predicate ¶ added in v0.1.366

Predicate adds a predicate that the response should satisfy be considered successful. Multiple predicates can be set calling this method multiple times. The response will be considered successful if all the predicates are satisfied.

func (*BillingModelPollRequest) StartContext ¶ added in v0.1.366

func (r *BillingModelPollRequest) StartContext(ctx context.Context) (response *BillingModelPollResponse, err error)

StartContext starts the polling loop. Responses will be considered successful if the status is one of the values specified with the Status method and if all the predicates specified with the Predicate method return nil.

The context must have a timeout or deadline, otherwise this method will immediately return an error.

func (*BillingModelPollRequest) Status ¶ added in v0.1.366

Status set the expected status of the response. Multiple values can be set calling this method multiple times. The response will be considered successful if the status is any of those values.

type BillingModelPollResponse ¶ added in v0.1.366

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

BillingModelPollResponse is the response for the Poll method.

func (*BillingModelPollResponse) Body ¶ added in v0.1.366

Body returns the value of the 'body' parameter.

func (*BillingModelPollResponse) Error ¶ added in v0.1.366

Error returns the response error.

func (*BillingModelPollResponse) GetBody ¶ added in v0.1.366

func (r *BillingModelPollResponse) GetBody() (value *BillingModelItem, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*BillingModelPollResponse) Header ¶ added in v0.1.366

func (r *BillingModelPollResponse) Header() http.Header

Header returns header of the response.

func (*BillingModelPollResponse) Status ¶ added in v0.1.366

func (r *BillingModelPollResponse) Status() int

Status returns the response status code.

type BillingModelsClient ¶ added in v0.1.366

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

BillingModelsClient is the client of the 'billing_models' resource.

func NewBillingModelsClient ¶ added in v0.1.366

func NewBillingModelsClient(transport http.RoundTripper, path string) *BillingModelsClient

NewBillingModelsClient creates a new client for the 'billing_models' resource using the given transport to send the requests and receive the responses.

func (*BillingModelsClient) BillingModel ¶ added in v0.1.366

func (c *BillingModelsClient) BillingModel(id string) *BillingModelClient

BillingModel returns the target 'billing_model' resource for the given identifier.

Reference to the service that manages a specific billing model.

func (*BillingModelsClient) List ¶ added in v0.1.366

List creates a request for the 'list' method.

Retrieves a list of BillingModels.

type BillingModelsListRequest ¶ added in v0.1.366

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

BillingModelsListRequest is the request for the 'list' method.

func (*BillingModelsListRequest) Header ¶ added in v0.1.366

func (r *BillingModelsListRequest) Header(name string, value interface{}) *BillingModelsListRequest

Header adds a request header.

func (*BillingModelsListRequest) Impersonate ¶ added in v0.1.366

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*BillingModelsListRequest) Page ¶ added in v0.1.366

Page sets the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*BillingModelsListRequest) Parameter ¶ added in v0.1.366

func (r *BillingModelsListRequest) Parameter(name string, value interface{}) *BillingModelsListRequest

Parameter adds a query parameter.

func (*BillingModelsListRequest) Send ¶ added in v0.1.366

func (r *BillingModelsListRequest) Send() (result *BillingModelsListResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*BillingModelsListRequest) SendContext ¶ added in v0.1.366

func (r *BillingModelsListRequest) SendContext(ctx context.Context) (result *BillingModelsListResponse, err error)

SendContext sends this request, waits for the response, and returns it.

func (*BillingModelsListRequest) Size ¶ added in v0.1.366

Size sets the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

type BillingModelsListResponse ¶ added in v0.1.366

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

BillingModelsListResponse is the response for the 'list' method.

func (*BillingModelsListResponse) Error ¶ added in v0.1.366

Error returns the response error.

func (*BillingModelsListResponse) GetItems ¶ added in v0.1.366

func (r *BillingModelsListResponse) GetItems() (value *BillingModelItemList, ok bool)

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

Retrieve list of Billing Models.

func (*BillingModelsListResponse) GetPage ¶ added in v0.1.366

func (r *BillingModelsListResponse) GetPage() (value int, ok bool)

GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.

Index of the requested page, where one corresponds to the first page.

func (*BillingModelsListResponse) GetSize ¶ added in v0.1.366

func (r *BillingModelsListResponse) GetSize() (value int, ok bool)

GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.

Maximum number of items that will be contained in the returned page.

func (*BillingModelsListResponse) GetTotal ¶ added in v0.1.366

func (r *BillingModelsListResponse) GetTotal() (value int, ok bool)

GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.

Total number of items of the collection, regardless of the size of the page.

func (*BillingModelsListResponse) Header ¶ added in v0.1.366

Header returns header of the response.

func (*BillingModelsListResponse) Items ¶ added in v0.1.366

Items returns the value of the 'items' parameter.

Retrieve list of Billing Models.

func (*BillingModelsListResponse) Page ¶ added in v0.1.366

func (r *BillingModelsListResponse) Page() int

Page returns the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*BillingModelsListResponse) Size ¶ added in v0.1.366

func (r *BillingModelsListResponse) Size() int

Size returns the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

func (*BillingModelsListResponse) Status ¶ added in v0.1.366

func (r *BillingModelsListResponse) Status() int

Status returns the response status code.

func (*BillingModelsListResponse) Total ¶ added in v0.1.366

func (r *BillingModelsListResponse) Total() int

Total returns the value of the 'total' parameter.

Total number of items of the collection, regardless of the size of the page.

type CapabilitiesClient ¶ added in v0.0.329

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

CapabilitiesClient is the client of the 'capabilities' resource.

func NewCapabilitiesClient ¶ added in v0.0.329

func NewCapabilitiesClient(transport http.RoundTripper, path string) *CapabilitiesClient

NewCapabilitiesClient creates a new client for the 'capabilities' resource using the given transport to send the requests and receive the responses.

func (*CapabilitiesClient) List ¶ added in v0.0.329

List creates a request for the 'list' method.

Retrieves a list of Capabilities.

type CapabilitiesListRequest ¶ added in v0.0.329

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

CapabilitiesListRequest is the request for the 'list' method.

func (*CapabilitiesListRequest) Header ¶ added in v0.0.329

func (r *CapabilitiesListRequest) Header(name string, value interface{}) *CapabilitiesListRequest

Header adds a request header.

func (*CapabilitiesListRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*CapabilitiesListRequest) Page ¶ added in v0.0.329

Page sets the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*CapabilitiesListRequest) Parameter ¶ added in v0.0.329

func (r *CapabilitiesListRequest) Parameter(name string, value interface{}) *CapabilitiesListRequest

Parameter adds a query parameter.

func (*CapabilitiesListRequest) Search ¶ added in v0.0.329

Search sets the value of the 'search' parameter.

Search criteria.

The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the organization instead of the names of the columns of a table. For example, in order to retrieve organizations with name starting with my:

```sql name like 'my%' ```

If the parameter isn't provided, or if the value is empty, then all the items that the user has permission to see will be returned.

func (*CapabilitiesListRequest) Send ¶ added in v0.0.329

func (r *CapabilitiesListRequest) Send() (result *CapabilitiesListResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*CapabilitiesListRequest) SendContext ¶ added in v0.0.329

func (r *CapabilitiesListRequest) SendContext(ctx context.Context) (result *CapabilitiesListResponse, err error)

SendContext sends this request, waits for the response, and returns it.

func (*CapabilitiesListRequest) Size ¶ added in v0.0.329

Size sets the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

type CapabilitiesListResponse ¶ added in v0.0.329

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

CapabilitiesListResponse is the response for the 'list' method.

func (*CapabilitiesListResponse) Error ¶ added in v0.0.329

Error returns the response error.

func (*CapabilitiesListResponse) GetItems ¶ added in v0.0.329

func (r *CapabilitiesListResponse) GetItems() (value *CapabilityList, ok bool)

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

Retrieved list of Capabilities.

func (*CapabilitiesListResponse) GetPage ¶ added in v0.0.329

func (r *CapabilitiesListResponse) GetPage() (value int, ok bool)

GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.

Index of the requested page, where one corresponds to the first page.

func (*CapabilitiesListResponse) GetSize ¶ added in v0.0.329

func (r *CapabilitiesListResponse) GetSize() (value int, ok bool)

GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.

Maximum number of items that will be contained in the returned page.

func (*CapabilitiesListResponse) GetTotal ¶ added in v0.0.329

func (r *CapabilitiesListResponse) GetTotal() (value int, ok bool)

GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

func (*CapabilitiesListResponse) Header ¶ added in v0.0.329

func (r *CapabilitiesListResponse) Header() http.Header

Header returns header of the response.

func (*CapabilitiesListResponse) Items ¶ added in v0.0.329

Items returns the value of the 'items' parameter.

Retrieved list of Capabilities.

func (*CapabilitiesListResponse) Page ¶ added in v0.0.329

func (r *CapabilitiesListResponse) Page() int

Page returns the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*CapabilitiesListResponse) Size ¶ added in v0.0.329

func (r *CapabilitiesListResponse) Size() int

Size returns the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

func (*CapabilitiesListResponse) Status ¶ added in v0.0.329

func (r *CapabilitiesListResponse) Status() int

Status returns the response status code.

func (*CapabilitiesListResponse) Total ¶ added in v0.0.329

func (r *CapabilitiesListResponse) Total() int

Total returns the value of the 'total' parameter.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

type Capability ¶ added in v0.0.329

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

Capability represents the values of the 'capability' type.

Capability model that represents internal labels with a key that matches a set list defined in AMS (defined in pkg/api/capability_types.go).

func UnmarshalCapability ¶ added in v0.0.329

func UnmarshalCapability(source interface{}) (object *Capability, err error)

UnmarshalCapability reads a value of the 'capability' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalCapabilityList ¶ added in v0.0.329

func UnmarshalCapabilityList(source interface{}) (items []*Capability, err error)

UnmarshalCapabilityList reads a list of values of the 'capability' type from the given source, which can be a slice of bytes, a string or a reader.

func (*Capability) Empty ¶ added in v0.0.329

func (o *Capability) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*Capability) GetInherited ¶ added in v0.0.329

func (o *Capability) GetInherited() (value bool, ok bool)

GetInherited returns the value of the 'inherited' attribute and a flag indicating if the attribute has a value.

Dynamic attribute of the capability that tells us that this capability was inherited from the subscription's organization.

func (*Capability) GetName ¶ added in v0.0.329

func (o *Capability) GetName() (value string, ok bool)

GetName returns the value of the 'name' attribute and a flag indicating if the attribute has a value.

Name of the capability label.

func (*Capability) GetValue ¶ added in v0.0.329

func (o *Capability) GetValue() (value string, ok bool)

GetValue returns the value of the 'value' attribute and a flag indicating if the attribute has a value.

Value that can be assigned to the capability (eg. "true", "false" etc).

func (*Capability) Inherited ¶ added in v0.0.329

func (o *Capability) Inherited() bool

Inherited returns the value of the 'inherited' attribute, or the zero value of the type if the attribute doesn't have a value.

Dynamic attribute of the capability that tells us that this capability was inherited from the subscription's organization.

func (*Capability) Name ¶ added in v0.0.329

func (o *Capability) Name() string

Name returns the value of the 'name' attribute, or the zero value of the type if the attribute doesn't have a value.

Name of the capability label.

func (*Capability) Value ¶ added in v0.0.329

func (o *Capability) Value() string

Value returns the value of the 'value' attribute, or the zero value of the type if the attribute doesn't have a value.

Value that can be assigned to the capability (eg. "true", "false" etc).

type CapabilityBuilder ¶ added in v0.0.329

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

CapabilityBuilder contains the data and logic needed to build 'capability' objects.

Capability model that represents internal labels with a key that matches a set list defined in AMS (defined in pkg/api/capability_types.go).

func NewCapability ¶ added in v0.0.329

func NewCapability() *CapabilityBuilder

NewCapability creates a new builder of 'capability' objects.

func (*CapabilityBuilder) Build ¶ added in v0.0.329

func (b *CapabilityBuilder) Build() (object *Capability, err error)

Build creates a 'capability' object using the configuration stored in the builder.

func (*CapabilityBuilder) Copy ¶ added in v0.0.329

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*CapabilityBuilder) Empty ¶ added in v0.0.329

func (b *CapabilityBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*CapabilityBuilder) Inherited ¶ added in v0.0.329

func (b *CapabilityBuilder) Inherited(value bool) *CapabilityBuilder

Inherited sets the value of the 'inherited' attribute to the given value.

func (*CapabilityBuilder) Name ¶ added in v0.0.329

func (b *CapabilityBuilder) Name(value string) *CapabilityBuilder

Name sets the value of the 'name' attribute to the given value.

func (*CapabilityBuilder) Value ¶ added in v0.0.329

func (b *CapabilityBuilder) Value(value string) *CapabilityBuilder

Value sets the value of the 'value' attribute to the given value.

type CapabilityList ¶ added in v0.0.329

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

CapabilityList is a list of values of the 'capability' type.

func (*CapabilityList) Each ¶ added in v0.0.329

func (l *CapabilityList) Each(f func(item *Capability) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*CapabilityList) Empty ¶ added in v0.0.329

func (l *CapabilityList) Empty() bool

Empty returns true if the list is empty.

func (*CapabilityList) Get ¶ added in v0.0.329

func (l *CapabilityList) Get(i int) *Capability

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*CapabilityList) Len ¶ added in v0.0.329

func (l *CapabilityList) Len() int

Len returns the length of the list.

func (*CapabilityList) Range ¶ added in v0.0.329

func (l *CapabilityList) Range(f func(index int, item *Capability) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*CapabilityList) Slice ¶ added in v0.0.329

func (l *CapabilityList) Slice() []*Capability

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type CapabilityListBuilder ¶ added in v0.0.329

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

CapabilityListBuilder contains the data and logic needed to build 'capability' objects.

func NewCapabilityList ¶ added in v0.0.329

func NewCapabilityList() *CapabilityListBuilder

NewCapabilityList creates a new builder of 'capability' objects.

func (*CapabilityListBuilder) Build ¶ added in v0.0.329

func (b *CapabilityListBuilder) Build() (list *CapabilityList, err error)

Build creates a list of 'capability' objects using the configuration stored in the builder.

func (*CapabilityListBuilder) Copy ¶ added in v0.0.329

Copy copies the items of the given list into this builder, discarding any previous items.

func (*CapabilityListBuilder) Empty ¶ added in v0.0.329

func (b *CapabilityListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*CapabilityListBuilder) Items ¶ added in v0.0.329

Items sets the items of the list.

type Client ¶

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

Client is the client of the 'root' resource.

Root of the tree of resources of the clusters management service.

func NewClient ¶

func NewClient(transport http.RoundTripper, path string) *Client

NewClient creates a new client for the 'root' resource using the given transport to send the requests and receive the responses.

func (*Client) AccessToken ¶

func (c *Client) AccessToken() *AccessTokenClient

AccessToken returns the target 'access_token' resource.

Reference to the resource that manages generates access tokens.

func (*Client) Accounts ¶

func (c *Client) Accounts() *AccountsClient

Accounts returns the target 'accounts' resource.

Reference to the resource that manages the collection of accounts.

func (*Client) BillingModels ¶ added in v0.1.366

func (c *Client) BillingModels() *BillingModelsClient

BillingModels returns the target 'billing_models' resource.

Reference to the resource that manages billing models.

func (*Client) Capabilities ¶ added in v0.0.329

func (c *Client) Capabilities() *CapabilitiesClient

Capabilities returns the target 'capabilities' resource.

Reference to the resource that manages the collection of capabilities.

func (*Client) CloudResources ¶ added in v0.0.329

func (c *Client) CloudResources() *CloudResourcesClient

CloudResources returns the target 'cloud_resources' resource.

Reference to the resource that manages the collection of cloud resources.

func (*Client) ClusterAuthorizations ¶

func (c *Client) ClusterAuthorizations() *ClusterAuthorizationsClient

ClusterAuthorizations returns the target 'cluster_authorizations' resource.

Reference to the resource that manages cluster authorizations.

func (*Client) ClusterRegistrations ¶

func (c *Client) ClusterRegistrations() *ClusterRegistrationsClient

ClusterRegistrations returns the target 'cluster_registrations' resource.

Reference to the resource that manages cluster registrations.

func (*Client) CurrentAccess ¶

func (c *Client) CurrentAccess() *RolesClient

CurrentAccess returns the target 'roles' resource.

Reference to the resource that manages the current authenticated account.

func (*Client) CurrentAccount ¶

func (c *Client) CurrentAccount() *CurrentAccountClient

CurrentAccount returns the target 'current_account' resource.

Reference to the resource that manages the current authenticated account.

func (*Client) DefaultCapabilities ¶ added in v0.1.412

func (c *Client) DefaultCapabilities() *DefaultCapabilitiesClient

DefaultCapabilities returns the target 'default_capabilities' resource.

Reference to the resource that manages the collection of default capabilities.

func (*Client) DeletedSubscriptions ¶ added in v0.0.329

func (c *Client) DeletedSubscriptions() *DeletedSubscriptionsClient

DeletedSubscriptions returns the target 'deleted_subscriptions' resource.

Reference to the resource that manages the collection of deleted subscriptions.

func (*Client) FeatureToggles ¶

func (c *Client) FeatureToggles() *FeatureTogglesClient

FeatureToggles returns the target 'feature_toggles' resource.

Reference to the resource that manages feature toggles.

func (*Client) Get ¶

func (c *Client) Get() *MetadataRequest

Creates a new request for the method that retrieves the metadata.

func (*Client) Labels ¶

func (c *Client) Labels() *LabelsClient

Labels returns the target 'labels' resource.

Reference to the resource that manages the collection of labels.

func (*Client) NotifyDetails ¶ added in v0.1.391

func (c *Client) NotifyDetails() *NotifyDetailsClient

NotifyDetails returns the target 'notify_details' resource.

Reference to the resource that manages the notifications details.

func (*Client) Organizations ¶

func (c *Client) Organizations() *OrganizationsClient

Organizations returns the target 'organizations' resource.

Reference to the resource that manages the collection of organizations.

func (*Client) Permissions ¶

func (c *Client) Permissions() *PermissionsClient

Permissions returns the target 'permissions' resource.

Reference to the resource that manages the collection of permissions.

func (*Client) PullSecrets ¶

func (c *Client) PullSecrets() *PullSecretsClient

PullSecrets returns the target 'pull_secrets' resource.

Reference to the resource that manages generates access tokens.

func (*Client) QuotaAuthorizations ¶ added in v0.0.329

func (c *Client) QuotaAuthorizations() *QuotaAuthorizationsClient

QuotaAuthorizations returns the target 'quota_authorizations' resource.

Reference to the resource that manages quota authorizations.

func (*Client) Registries ¶

func (c *Client) Registries() *RegistriesClient

Registries returns the target 'registries' resource.

Reference to the resource that manages the collection of registries.

func (*Client) RegistryCredentials ¶

func (c *Client) RegistryCredentials() *RegistryCredentialsClient

RegistryCredentials returns the target 'registry_credentials' resource.

Reference to the resource that manages the collection of registry credentials.

func (*Client) ResourceQuota ¶

func (c *Client) ResourceQuota() *ResourceQuotasClient

ResourceQuota returns the target 'resource_quotas' resource.

Reference to the resource that manages the collection of resource quota.

func (*Client) RoleBindings ¶

func (c *Client) RoleBindings() *RoleBindingsClient

RoleBindings returns the target 'role_bindings' resource.

Reference to the resource that manages the collection of role bindings.

func (*Client) Roles ¶

func (c *Client) Roles() *RolesClient

Roles returns the target 'roles' resource.

Reference to the resource that manages the collection of roles.

func (*Client) SkuRules ¶

func (c *Client) SkuRules() *SkuRulesClient

SkuRules returns the target 'sku_rules' resource.

Reference to the resource that manages the collection of Sku Rules

func (*Client) Subscriptions ¶

func (c *Client) Subscriptions() *SubscriptionsClient

Subscriptions returns the target 'subscriptions' resource.

Reference to the resource that manages the collection of subscriptions.

func (*Client) SupportCases ¶

func (c *Client) SupportCases() *SupportCasesClient

SupportCases returns the target 'support_cases' resource.

Reference to the resource that manages the support cases.

func (*Client) TokenAuthorization ¶

func (c *Client) TokenAuthorization() *TokenAuthorizationClient

TokenAuthorization returns the target 'token_authorization' resource.

Reference to the resource that manages token authorization.

type CloudAccount ¶ added in v0.0.329

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

CloudAccount represents the values of the 'cloud_account' type.

func UnmarshalCloudAccount ¶ added in v0.0.329

func UnmarshalCloudAccount(source interface{}) (object *CloudAccount, err error)

UnmarshalCloudAccount reads a value of the 'cloud_account' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalCloudAccountList ¶ added in v0.0.329

func UnmarshalCloudAccountList(source interface{}) (items []*CloudAccount, err error)

UnmarshalCloudAccountList reads a list of values of the 'cloud_account' type from the given source, which can be a slice of bytes, a string or a reader.

func (*CloudAccount) CloudAccountID ¶ added in v0.0.329

func (o *CloudAccount) CloudAccountID() string

CloudAccountID returns the value of the 'cloud_account_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*CloudAccount) CloudProviderID ¶ added in v0.0.329

func (o *CloudAccount) CloudProviderID() string

CloudProviderID returns the value of the 'cloud_provider_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*CloudAccount) Contracts ¶ added in v0.1.347

func (o *CloudAccount) Contracts() []*Contract

Contracts returns the value of the 'contracts' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*CloudAccount) Empty ¶ added in v0.0.329

func (o *CloudAccount) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*CloudAccount) GetCloudAccountID ¶ added in v0.0.329

func (o *CloudAccount) GetCloudAccountID() (value string, ok bool)

GetCloudAccountID returns the value of the 'cloud_account_ID' attribute and a flag indicating if the attribute has a value.

func (*CloudAccount) GetCloudProviderID ¶ added in v0.0.329

func (o *CloudAccount) GetCloudProviderID() (value string, ok bool)

GetCloudProviderID returns the value of the 'cloud_provider_ID' attribute and a flag indicating if the attribute has a value.

func (*CloudAccount) GetContracts ¶ added in v0.1.347

func (o *CloudAccount) GetContracts() (value []*Contract, ok bool)

GetContracts returns the value of the 'contracts' attribute and a flag indicating if the attribute has a value.

type CloudAccountBuilder ¶ added in v0.0.329

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

CloudAccountBuilder contains the data and logic needed to build 'cloud_account' objects.

func NewCloudAccount ¶ added in v0.0.329

func NewCloudAccount() *CloudAccountBuilder

NewCloudAccount creates a new builder of 'cloud_account' objects.

func (*CloudAccountBuilder) Build ¶ added in v0.0.329

func (b *CloudAccountBuilder) Build() (object *CloudAccount, err error)

Build creates a 'cloud_account' object using the configuration stored in the builder.

func (*CloudAccountBuilder) CloudAccountID ¶ added in v0.0.329

func (b *CloudAccountBuilder) CloudAccountID(value string) *CloudAccountBuilder

CloudAccountID sets the value of the 'cloud_account_ID' attribute to the given value.

func (*CloudAccountBuilder) CloudProviderID ¶ added in v0.0.329

func (b *CloudAccountBuilder) CloudProviderID(value string) *CloudAccountBuilder

CloudProviderID sets the value of the 'cloud_provider_ID' attribute to the given value.

func (*CloudAccountBuilder) Contracts ¶ added in v0.1.347

func (b *CloudAccountBuilder) Contracts(values ...*ContractBuilder) *CloudAccountBuilder

Contracts sets the value of the 'contracts' attribute to the given values.

func (*CloudAccountBuilder) Copy ¶ added in v0.0.329

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*CloudAccountBuilder) Empty ¶ added in v0.0.329

func (b *CloudAccountBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

type CloudAccountList ¶ added in v0.0.329

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

CloudAccountList is a list of values of the 'cloud_account' type.

func (*CloudAccountList) Each ¶ added in v0.0.329

func (l *CloudAccountList) Each(f func(item *CloudAccount) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*CloudAccountList) Empty ¶ added in v0.0.329

func (l *CloudAccountList) Empty() bool

Empty returns true if the list is empty.

func (*CloudAccountList) Get ¶ added in v0.0.329

func (l *CloudAccountList) Get(i int) *CloudAccount

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*CloudAccountList) Len ¶ added in v0.0.329

func (l *CloudAccountList) Len() int

Len returns the length of the list.

func (*CloudAccountList) Range ¶ added in v0.0.329

func (l *CloudAccountList) Range(f func(index int, item *CloudAccount) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*CloudAccountList) Slice ¶ added in v0.0.329

func (l *CloudAccountList) Slice() []*CloudAccount

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type CloudAccountListBuilder ¶ added in v0.0.329

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

CloudAccountListBuilder contains the data and logic needed to build 'cloud_account' objects.

func NewCloudAccountList ¶ added in v0.0.329

func NewCloudAccountList() *CloudAccountListBuilder

NewCloudAccountList creates a new builder of 'cloud_account' objects.

func (*CloudAccountListBuilder) Build ¶ added in v0.0.329

func (b *CloudAccountListBuilder) Build() (list *CloudAccountList, err error)

Build creates a list of 'cloud_account' objects using the configuration stored in the builder.

func (*CloudAccountListBuilder) Copy ¶ added in v0.0.329

Copy copies the items of the given list into this builder, discarding any previous items.

func (*CloudAccountListBuilder) Empty ¶ added in v0.0.329

func (b *CloudAccountListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*CloudAccountListBuilder) Items ¶ added in v0.0.329

Items sets the items of the list.

type CloudResource ¶ added in v0.0.329

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

CloudResource represents the values of the 'cloud_resource' type.

func UnmarshalCloudResource ¶ added in v0.0.329

func UnmarshalCloudResource(source interface{}) (object *CloudResource, err error)

UnmarshalCloudResource reads a value of the 'cloud_resource' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalCloudResourceList ¶ added in v0.0.329

func UnmarshalCloudResourceList(source interface{}) (items []*CloudResource, err error)

UnmarshalCloudResourceList reads a list of values of the 'cloud_resource' type from the given source, which can be a slice of bytes, a string or a reader.

func (*CloudResource) Active ¶ added in v0.0.329

func (o *CloudResource) Active() bool

Active returns the value of the 'active' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*CloudResource) Category ¶ added in v0.0.329

func (o *CloudResource) Category() string

Category returns the value of the 'category' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*CloudResource) CategoryPretty ¶ added in v0.0.329

func (o *CloudResource) CategoryPretty() string

CategoryPretty returns the value of the 'category_pretty' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*CloudResource) CloudProvider ¶ added in v0.0.329

func (o *CloudResource) CloudProvider() string

CloudProvider returns the value of the 'cloud_provider' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*CloudResource) CpuCores ¶ added in v0.0.329

func (o *CloudResource) CpuCores() int

CpuCores returns the value of the 'cpu_cores' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*CloudResource) CreatedAt ¶ added in v0.0.329

func (o *CloudResource) CreatedAt() time.Time

CreatedAt returns the value of the 'created_at' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*CloudResource) Empty ¶ added in v0.0.329

func (o *CloudResource) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*CloudResource) GenericName ¶ added in v0.0.329

func (o *CloudResource) GenericName() string

GenericName returns the value of the 'generic_name' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*CloudResource) GetActive ¶ added in v0.0.329

func (o *CloudResource) GetActive() (value bool, ok bool)

GetActive returns the value of the 'active' attribute and a flag indicating if the attribute has a value.

func (*CloudResource) GetCategory ¶ added in v0.0.329

func (o *CloudResource) GetCategory() (value string, ok bool)

GetCategory returns the value of the 'category' attribute and a flag indicating if the attribute has a value.

func (*CloudResource) GetCategoryPretty ¶ added in v0.0.329

func (o *CloudResource) GetCategoryPretty() (value string, ok bool)

GetCategoryPretty returns the value of the 'category_pretty' attribute and a flag indicating if the attribute has a value.

func (*CloudResource) GetCloudProvider ¶ added in v0.0.329

func (o *CloudResource) GetCloudProvider() (value string, ok bool)

GetCloudProvider returns the value of the 'cloud_provider' attribute and a flag indicating if the attribute has a value.

func (*CloudResource) GetCpuCores ¶ added in v0.0.329

func (o *CloudResource) GetCpuCores() (value int, ok bool)

GetCpuCores returns the value of the 'cpu_cores' attribute and a flag indicating if the attribute has a value.

func (*CloudResource) GetCreatedAt ¶ added in v0.0.329

func (o *CloudResource) GetCreatedAt() (value time.Time, ok bool)

GetCreatedAt returns the value of the 'created_at' attribute and a flag indicating if the attribute has a value.

func (*CloudResource) GetGenericName ¶ added in v0.0.329

func (o *CloudResource) GetGenericName() (value string, ok bool)

GetGenericName returns the value of the 'generic_name' attribute and a flag indicating if the attribute has a value.

func (*CloudResource) GetHREF ¶ added in v0.0.329

func (o *CloudResource) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*CloudResource) GetID ¶ added in v0.0.329

func (o *CloudResource) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*CloudResource) GetMemory ¶ added in v0.0.329

func (o *CloudResource) GetMemory() (value int, ok bool)

GetMemory returns the value of the 'memory' attribute and a flag indicating if the attribute has a value.

func (*CloudResource) GetMemoryPretty ¶ added in v0.0.329

func (o *CloudResource) GetMemoryPretty() (value string, ok bool)

GetMemoryPretty returns the value of the 'memory_pretty' attribute and a flag indicating if the attribute has a value.

func (*CloudResource) GetNamePretty ¶ added in v0.0.329

func (o *CloudResource) GetNamePretty() (value string, ok bool)

GetNamePretty returns the value of the 'name_pretty' attribute and a flag indicating if the attribute has a value.

func (*CloudResource) GetResourceType ¶ added in v0.0.329

func (o *CloudResource) GetResourceType() (value string, ok bool)

GetResourceType returns the value of the 'resource_type' attribute and a flag indicating if the attribute has a value.

func (*CloudResource) GetSizePretty ¶ added in v0.0.329

func (o *CloudResource) GetSizePretty() (value string, ok bool)

GetSizePretty returns the value of the 'size_pretty' attribute and a flag indicating if the attribute has a value.

func (*CloudResource) GetUpdatedAt ¶ added in v0.0.329

func (o *CloudResource) GetUpdatedAt() (value time.Time, ok bool)

GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.

func (*CloudResource) HREF ¶ added in v0.0.329

func (o *CloudResource) HREF() string

HREF returns the link to the object.

func (*CloudResource) ID ¶ added in v0.0.329

func (o *CloudResource) ID() string

ID returns the identifier of the object.

func (*CloudResource) Kind ¶ added in v0.0.329

func (o *CloudResource) Kind() string

Kind returns the name of the type of the object.

func (o *CloudResource) Link() bool

Link returns true iif this is a link.

func (*CloudResource) Memory ¶ added in v0.0.329

func (o *CloudResource) Memory() int

Memory returns the value of the 'memory' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*CloudResource) MemoryPretty ¶ added in v0.0.329

func (o *CloudResource) MemoryPretty() string

MemoryPretty returns the value of the 'memory_pretty' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*CloudResource) NamePretty ¶ added in v0.0.329

func (o *CloudResource) NamePretty() string

NamePretty returns the value of the 'name_pretty' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*CloudResource) ResourceType ¶ added in v0.0.329

func (o *CloudResource) ResourceType() string

ResourceType returns the value of the 'resource_type' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*CloudResource) SizePretty ¶ added in v0.0.329

func (o *CloudResource) SizePretty() string

SizePretty returns the value of the 'size_pretty' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*CloudResource) UpdatedAt ¶ added in v0.0.329

func (o *CloudResource) UpdatedAt() time.Time

UpdatedAt returns the value of the 'updated_at' attribute, or the zero value of the type if the attribute doesn't have a value.

type CloudResourceBuilder ¶ added in v0.0.329

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

CloudResourceBuilder contains the data and logic needed to build 'cloud_resource' objects.

func NewCloudResource ¶ added in v0.0.329

func NewCloudResource() *CloudResourceBuilder

NewCloudResource creates a new builder of 'cloud_resource' objects.

func (*CloudResourceBuilder) Active ¶ added in v0.0.329

Active sets the value of the 'active' attribute to the given value.

func (*CloudResourceBuilder) Build ¶ added in v0.0.329

func (b *CloudResourceBuilder) Build() (object *CloudResource, err error)

Build creates a 'cloud_resource' object using the configuration stored in the builder.

func (*CloudResourceBuilder) Category ¶ added in v0.0.329

func (b *CloudResourceBuilder) Category(value string) *CloudResourceBuilder

Category sets the value of the 'category' attribute to the given value.

func (*CloudResourceBuilder) CategoryPretty ¶ added in v0.0.329

func (b *CloudResourceBuilder) CategoryPretty(value string) *CloudResourceBuilder

CategoryPretty sets the value of the 'category_pretty' attribute to the given value.

func (*CloudResourceBuilder) CloudProvider ¶ added in v0.0.329

func (b *CloudResourceBuilder) CloudProvider(value string) *CloudResourceBuilder

CloudProvider sets the value of the 'cloud_provider' attribute to the given value.

func (*CloudResourceBuilder) Copy ¶ added in v0.0.329

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*CloudResourceBuilder) CpuCores ¶ added in v0.0.329

func (b *CloudResourceBuilder) CpuCores(value int) *CloudResourceBuilder

CpuCores sets the value of the 'cpu_cores' attribute to the given value.

func (*CloudResourceBuilder) CreatedAt ¶ added in v0.0.329

func (b *CloudResourceBuilder) CreatedAt(value time.Time) *CloudResourceBuilder

CreatedAt sets the value of the 'created_at' attribute to the given value.

func (*CloudResourceBuilder) Empty ¶ added in v0.0.329

func (b *CloudResourceBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*CloudResourceBuilder) GenericName ¶ added in v0.0.329

func (b *CloudResourceBuilder) GenericName(value string) *CloudResourceBuilder

GenericName sets the value of the 'generic_name' attribute to the given value.

func (*CloudResourceBuilder) HREF ¶ added in v0.0.329

HREF sets the link to the object.

func (*CloudResourceBuilder) ID ¶ added in v0.0.329

ID sets the identifier of the object.

Link sets the flag that indicates if this is a link.

func (*CloudResourceBuilder) Memory ¶ added in v0.0.329

func (b *CloudResourceBuilder) Memory(value int) *CloudResourceBuilder

Memory sets the value of the 'memory' attribute to the given value.

func (*CloudResourceBuilder) MemoryPretty ¶ added in v0.0.329

func (b *CloudResourceBuilder) MemoryPretty(value string) *CloudResourceBuilder

MemoryPretty sets the value of the 'memory_pretty' attribute to the given value.

func (*CloudResourceBuilder) NamePretty ¶ added in v0.0.329

func (b *CloudResourceBuilder) NamePretty(value string) *CloudResourceBuilder

NamePretty sets the value of the 'name_pretty' attribute to the given value.

func (*CloudResourceBuilder) ResourceType ¶ added in v0.0.329

func (b *CloudResourceBuilder) ResourceType(value string) *CloudResourceBuilder

ResourceType sets the value of the 'resource_type' attribute to the given value.

func (*CloudResourceBuilder) SizePretty ¶ added in v0.0.329

func (b *CloudResourceBuilder) SizePretty(value string) *CloudResourceBuilder

SizePretty sets the value of the 'size_pretty' attribute to the given value.

func (*CloudResourceBuilder) UpdatedAt ¶ added in v0.0.329

func (b *CloudResourceBuilder) UpdatedAt(value time.Time) *CloudResourceBuilder

UpdatedAt sets the value of the 'updated_at' attribute to the given value.

type CloudResourceClient ¶ added in v0.0.329

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

CloudResourceClient is the client of the 'cloud_resource' resource.

Manages a specific cloud resource.

func NewCloudResourceClient ¶ added in v0.0.329

func NewCloudResourceClient(transport http.RoundTripper, path string) *CloudResourceClient

NewCloudResourceClient creates a new client for the 'cloud_resource' resource using the given transport to send the requests and receive the responses.

func (*CloudResourceClient) Delete ¶ added in v0.0.329

Delete creates a request for the 'delete' method.

Deletes the cloud resource.

func (*CloudResourceClient) Get ¶ added in v0.0.329

Get creates a request for the 'get' method.

Retrieves the details of the cloud resource.

func (*CloudResourceClient) Poll ¶ added in v0.0.329

Poll creates a request to repeatedly retrieve the object till the response has one of a given set of states and satisfies a set of predicates.

func (*CloudResourceClient) Update ¶ added in v0.0.329

Update creates a request for the 'update' method.

Updates the cloud resource.

type CloudResourceDeleteRequest ¶ added in v0.0.329

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

CloudResourceDeleteRequest is the request for the 'delete' method.

func (*CloudResourceDeleteRequest) Header ¶ added in v0.0.329

func (r *CloudResourceDeleteRequest) Header(name string, value interface{}) *CloudResourceDeleteRequest

Header adds a request header.

func (*CloudResourceDeleteRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*CloudResourceDeleteRequest) Parameter ¶ added in v0.0.329

func (r *CloudResourceDeleteRequest) Parameter(name string, value interface{}) *CloudResourceDeleteRequest

Parameter adds a query parameter.

func (*CloudResourceDeleteRequest) Send ¶ added in v0.0.329

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*CloudResourceDeleteRequest) SendContext ¶ added in v0.0.329

func (r *CloudResourceDeleteRequest) SendContext(ctx context.Context) (result *CloudResourceDeleteResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type CloudResourceDeleteResponse ¶ added in v0.0.329

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

CloudResourceDeleteResponse is the response for the 'delete' method.

func (*CloudResourceDeleteResponse) Error ¶ added in v0.0.329

Error returns the response error.

func (*CloudResourceDeleteResponse) Header ¶ added in v0.0.329

Header returns header of the response.

func (*CloudResourceDeleteResponse) Status ¶ added in v0.0.329

func (r *CloudResourceDeleteResponse) Status() int

Status returns the response status code.

type CloudResourceGetRequest ¶ added in v0.0.329

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

CloudResourceGetRequest is the request for the 'get' method.

func (*CloudResourceGetRequest) Header ¶ added in v0.0.329

func (r *CloudResourceGetRequest) Header(name string, value interface{}) *CloudResourceGetRequest

Header adds a request header.

func (*CloudResourceGetRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*CloudResourceGetRequest) Parameter ¶ added in v0.0.329

func (r *CloudResourceGetRequest) Parameter(name string, value interface{}) *CloudResourceGetRequest

Parameter adds a query parameter.

func (*CloudResourceGetRequest) Send ¶ added in v0.0.329

func (r *CloudResourceGetRequest) Send() (result *CloudResourceGetResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*CloudResourceGetRequest) SendContext ¶ added in v0.0.329

func (r *CloudResourceGetRequest) SendContext(ctx context.Context) (result *CloudResourceGetResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type CloudResourceGetResponse ¶ added in v0.0.329

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

CloudResourceGetResponse is the response for the 'get' method.

func (*CloudResourceGetResponse) Body ¶ added in v0.0.329

Body returns the value of the 'body' parameter.

func (*CloudResourceGetResponse) Error ¶ added in v0.0.329

Error returns the response error.

func (*CloudResourceGetResponse) GetBody ¶ added in v0.0.329

func (r *CloudResourceGetResponse) GetBody() (value *CloudResource, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*CloudResourceGetResponse) Header ¶ added in v0.0.329

func (r *CloudResourceGetResponse) Header() http.Header

Header returns header of the response.

func (*CloudResourceGetResponse) Status ¶ added in v0.0.329

func (r *CloudResourceGetResponse) Status() int

Status returns the response status code.

type CloudResourceList ¶ added in v0.0.329

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

CloudResourceList is a list of values of the 'cloud_resource' type.

func (*CloudResourceList) Each ¶ added in v0.0.329

func (l *CloudResourceList) Each(f func(item *CloudResource) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*CloudResourceList) Empty ¶ added in v0.0.329

func (l *CloudResourceList) Empty() bool

Empty returns true if the list is empty.

func (*CloudResourceList) Get ¶ added in v0.0.329

func (l *CloudResourceList) Get(i int) *CloudResource

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*CloudResourceList) GetHREF ¶ added in v0.0.329

func (l *CloudResourceList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*CloudResourceList) HREF ¶ added in v0.0.329

func (l *CloudResourceList) HREF() string

HREF returns the link to the list.

func (*CloudResourceList) Kind ¶ added in v0.0.329

func (l *CloudResourceList) Kind() string

Kind returns the name of the type of the object.

func (*CloudResourceList) Len ¶ added in v0.0.329

func (l *CloudResourceList) Len() int

Len returns the length of the list.

func (l *CloudResourceList) Link() bool

Link returns true iif this is a link.

func (*CloudResourceList) Range ¶ added in v0.0.329

func (l *CloudResourceList) Range(f func(index int, item *CloudResource) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*CloudResourceList) Slice ¶ added in v0.0.329

func (l *CloudResourceList) Slice() []*CloudResource

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type CloudResourceListBuilder ¶ added in v0.0.329

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

CloudResourceListBuilder contains the data and logic needed to build 'cloud_resource' objects.

func NewCloudResourceList ¶ added in v0.0.329

func NewCloudResourceList() *CloudResourceListBuilder

NewCloudResourceList creates a new builder of 'cloud_resource' objects.

func (*CloudResourceListBuilder) Build ¶ added in v0.0.329

func (b *CloudResourceListBuilder) Build() (list *CloudResourceList, err error)

Build creates a list of 'cloud_resource' objects using the configuration stored in the builder.

func (*CloudResourceListBuilder) Copy ¶ added in v0.0.329

Copy copies the items of the given list into this builder, discarding any previous items.

func (*CloudResourceListBuilder) Empty ¶ added in v0.0.329

func (b *CloudResourceListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*CloudResourceListBuilder) Items ¶ added in v0.0.329

Items sets the items of the list.

type CloudResourcePollRequest ¶ added in v0.0.329

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

CloudResourcePollRequest is the request for the Poll method.

func (*CloudResourcePollRequest) Header ¶ added in v0.0.329

func (r *CloudResourcePollRequest) Header(name string, value interface{}) *CloudResourcePollRequest

Header adds a request header to all the requests that will be used to retrieve the object.

func (*CloudResourcePollRequest) Interval ¶ added in v0.0.329

Interval sets the polling interval. This parameter is mandatory and must be greater than zero.

func (*CloudResourcePollRequest) Parameter ¶ added in v0.0.329

func (r *CloudResourcePollRequest) Parameter(name string, value interface{}) *CloudResourcePollRequest

Parameter adds a query parameter to all the requests that will be used to retrieve the object.

func (*CloudResourcePollRequest) Predicate ¶ added in v0.0.329

Predicate adds a predicate that the response should satisfy be considered successful. Multiple predicates can be set calling this method multiple times. The response will be considered successful if all the predicates are satisfied.

func (*CloudResourcePollRequest) StartContext ¶ added in v0.0.329

func (r *CloudResourcePollRequest) StartContext(ctx context.Context) (response *CloudResourcePollResponse, err error)

StartContext starts the polling loop. Responses will be considered successful if the status is one of the values specified with the Status method and if all the predicates specified with the Predicate method return nil.

The context must have a timeout or deadline, otherwise this method will immediately return an error.

func (*CloudResourcePollRequest) Status ¶ added in v0.0.329

Status set the expected status of the response. Multiple values can be set calling this method multiple times. The response will be considered successful if the status is any of those values.

type CloudResourcePollResponse ¶ added in v0.0.329

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

CloudResourcePollResponse is the response for the Poll method.

func (*CloudResourcePollResponse) Body ¶ added in v0.0.329

Body returns the value of the 'body' parameter.

func (*CloudResourcePollResponse) Error ¶ added in v0.0.329

Error returns the response error.

func (*CloudResourcePollResponse) GetBody ¶ added in v0.0.329

func (r *CloudResourcePollResponse) GetBody() (value *CloudResource, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*CloudResourcePollResponse) Header ¶ added in v0.0.329

Header returns header of the response.

func (*CloudResourcePollResponse) Status ¶ added in v0.0.329

func (r *CloudResourcePollResponse) Status() int

Status returns the response status code.

type CloudResourceUpdateRequest ¶ added in v0.0.329

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

CloudResourceUpdateRequest is the request for the 'update' method.

func (*CloudResourceUpdateRequest) Body ¶ added in v0.0.329

Body sets the value of the 'body' parameter.

func (*CloudResourceUpdateRequest) Header ¶ added in v0.0.329

func (r *CloudResourceUpdateRequest) Header(name string, value interface{}) *CloudResourceUpdateRequest

Header adds a request header.

func (*CloudResourceUpdateRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*CloudResourceUpdateRequest) Parameter ¶ added in v0.0.329

func (r *CloudResourceUpdateRequest) Parameter(name string, value interface{}) *CloudResourceUpdateRequest

Parameter adds a query parameter.

func (*CloudResourceUpdateRequest) Send ¶ added in v0.0.329

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*CloudResourceUpdateRequest) SendContext ¶ added in v0.0.329

func (r *CloudResourceUpdateRequest) SendContext(ctx context.Context) (result *CloudResourceUpdateResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type CloudResourceUpdateResponse ¶ added in v0.0.329

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

CloudResourceUpdateResponse is the response for the 'update' method.

func (*CloudResourceUpdateResponse) Body ¶ added in v0.0.329

Body returns the value of the 'body' parameter.

func (*CloudResourceUpdateResponse) Error ¶ added in v0.0.329

Error returns the response error.

func (*CloudResourceUpdateResponse) GetBody ¶ added in v0.0.329

func (r *CloudResourceUpdateResponse) GetBody() (value *CloudResource, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*CloudResourceUpdateResponse) Header ¶ added in v0.0.329

Header returns header of the response.

func (*CloudResourceUpdateResponse) Status ¶ added in v0.0.329

func (r *CloudResourceUpdateResponse) Status() int

Status returns the response status code.

type CloudResourcesAddRequest ¶ added in v0.0.329

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

CloudResourcesAddRequest is the request for the 'add' method.

func (*CloudResourcesAddRequest) Body ¶ added in v0.0.329

Body sets the value of the 'body' parameter.

func (*CloudResourcesAddRequest) Header ¶ added in v0.0.329

func (r *CloudResourcesAddRequest) Header(name string, value interface{}) *CloudResourcesAddRequest

Header adds a request header.

func (*CloudResourcesAddRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*CloudResourcesAddRequest) Parameter ¶ added in v0.0.329

func (r *CloudResourcesAddRequest) Parameter(name string, value interface{}) *CloudResourcesAddRequest

Parameter adds a query parameter.

func (*CloudResourcesAddRequest) Send ¶ added in v0.0.329

func (r *CloudResourcesAddRequest) Send() (result *CloudResourcesAddResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*CloudResourcesAddRequest) SendContext ¶ added in v0.0.329

func (r *CloudResourcesAddRequest) SendContext(ctx context.Context) (result *CloudResourcesAddResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type CloudResourcesAddResponse ¶ added in v0.0.329

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

CloudResourcesAddResponse is the response for the 'add' method.

func (*CloudResourcesAddResponse) Body ¶ added in v0.0.329

Body returns the value of the 'body' parameter.

func (*CloudResourcesAddResponse) Error ¶ added in v0.0.329

Error returns the response error.

func (*CloudResourcesAddResponse) GetBody ¶ added in v0.0.329

func (r *CloudResourcesAddResponse) GetBody() (value *CloudResource, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*CloudResourcesAddResponse) Header ¶ added in v0.0.329

Header returns header of the response.

func (*CloudResourcesAddResponse) Status ¶ added in v0.0.329

func (r *CloudResourcesAddResponse) Status() int

Status returns the response status code.

type CloudResourcesClient ¶ added in v0.0.329

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

CloudResourcesClient is the client of the 'cloud_resources' resource.

Manages the collection of cloud resources.

func NewCloudResourcesClient ¶ added in v0.0.329

func NewCloudResourcesClient(transport http.RoundTripper, path string) *CloudResourcesClient

NewCloudResourcesClient creates a new client for the 'cloud_resources' resource using the given transport to send the requests and receive the responses.

func (*CloudResourcesClient) Add ¶ added in v0.0.329

Add creates a request for the 'add' method.

Creates a new cloud resource

func (*CloudResourcesClient) CloudResource ¶ added in v0.0.329

func (c *CloudResourcesClient) CloudResource(id string) *CloudResourceClient

CloudResource returns the target 'cloud_resource' resource for the given identifier.

Reference to the service that manages a specific cloud resource.

func (*CloudResourcesClient) List ¶ added in v0.0.329

List creates a request for the 'list' method.

Retrieves the list of cloud resources.

type CloudResourcesListRequest ¶ added in v0.0.329

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

CloudResourcesListRequest is the request for the 'list' method.

func (*CloudResourcesListRequest) Header ¶ added in v0.0.329

func (r *CloudResourcesListRequest) Header(name string, value interface{}) *CloudResourcesListRequest

Header adds a request header.

func (*CloudResourcesListRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*CloudResourcesListRequest) Page ¶ added in v0.0.329

Page sets the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*CloudResourcesListRequest) Parameter ¶ added in v0.0.329

func (r *CloudResourcesListRequest) Parameter(name string, value interface{}) *CloudResourcesListRequest

Parameter adds a query parameter.

func (*CloudResourcesListRequest) Search ¶ added in v0.0.329

Search sets the value of the 'search' parameter.

Search criteria.

The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the cloud resource instead of the names of the columns of a table.

If the parameter isn't provided, or if the value is empty, then all the items that the user has permission to see will be returned.

func (*CloudResourcesListRequest) Send ¶ added in v0.0.329

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*CloudResourcesListRequest) SendContext ¶ added in v0.0.329

func (r *CloudResourcesListRequest) SendContext(ctx context.Context) (result *CloudResourcesListResponse, err error)

SendContext sends this request, waits for the response, and returns it.

func (*CloudResourcesListRequest) Size ¶ added in v0.0.329

Size sets the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

type CloudResourcesListResponse ¶ added in v0.0.329

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

CloudResourcesListResponse is the response for the 'list' method.

func (*CloudResourcesListResponse) Error ¶ added in v0.0.329

Error returns the response error.

func (*CloudResourcesListResponse) GetItems ¶ added in v0.0.329

func (r *CloudResourcesListResponse) GetItems() (value *CloudResourceList, ok bool)

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

Retrieved list of cloud resources.

func (*CloudResourcesListResponse) GetPage ¶ added in v0.0.329

func (r *CloudResourcesListResponse) GetPage() (value int, ok bool)

GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.

Index of the requested page, where one corresponds to the first page.

func (*CloudResourcesListResponse) GetSize ¶ added in v0.0.329

func (r *CloudResourcesListResponse) GetSize() (value int, ok bool)

GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.

Maximum number of items that will be contained in the returned page.

func (*CloudResourcesListResponse) GetTotal ¶ added in v0.0.329

func (r *CloudResourcesListResponse) GetTotal() (value int, ok bool)

GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

func (*CloudResourcesListResponse) Header ¶ added in v0.0.329

Header returns header of the response.

func (*CloudResourcesListResponse) Items ¶ added in v0.0.329

Items returns the value of the 'items' parameter.

Retrieved list of cloud resources.

func (*CloudResourcesListResponse) Page ¶ added in v0.0.329

func (r *CloudResourcesListResponse) Page() int

Page returns the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*CloudResourcesListResponse) Size ¶ added in v0.0.329

func (r *CloudResourcesListResponse) Size() int

Size returns the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

func (*CloudResourcesListResponse) Status ¶ added in v0.0.329

func (r *CloudResourcesListResponse) Status() int

Status returns the response status code.

func (*CloudResourcesListResponse) Total ¶ added in v0.0.329

func (r *CloudResourcesListResponse) Total() int

Total returns the value of the 'total' parameter.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

type ClusterAuthorizationRequest ¶

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

ClusterAuthorizationRequest represents the values of the 'cluster_authorization_request' type.

func UnmarshalClusterAuthorizationRequest ¶

func UnmarshalClusterAuthorizationRequest(source interface{}) (object *ClusterAuthorizationRequest, err error)

UnmarshalClusterAuthorizationRequest reads a value of the 'cluster_authorization_request' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalClusterAuthorizationRequestList ¶

func UnmarshalClusterAuthorizationRequestList(source interface{}) (items []*ClusterAuthorizationRequest, err error)

UnmarshalClusterAuthorizationRequestList reads a list of values of the 'cluster_authorization_request' type from the given source, which can be a slice of bytes, a string or a reader.

func (*ClusterAuthorizationRequest) AccountUsername ¶

func (o *ClusterAuthorizationRequest) AccountUsername() string

AccountUsername returns the value of the 'account_username' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ClusterAuthorizationRequest) AvailabilityZone ¶

func (o *ClusterAuthorizationRequest) AvailabilityZone() string

AvailabilityZone returns the value of the 'availability_zone' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ClusterAuthorizationRequest) BYOC ¶

BYOC returns the value of the 'BYOC' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ClusterAuthorizationRequest) CloudAccountID ¶ added in v0.0.329

func (o *ClusterAuthorizationRequest) CloudAccountID() string

CloudAccountID returns the value of the 'cloud_account_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ClusterAuthorizationRequest) CloudProviderID ¶ added in v0.0.329

func (o *ClusterAuthorizationRequest) CloudProviderID() string

CloudProviderID returns the value of the 'cloud_provider_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ClusterAuthorizationRequest) ClusterID ¶

func (o *ClusterAuthorizationRequest) ClusterID() string

ClusterID returns the value of the 'cluster_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ClusterAuthorizationRequest) Disconnected ¶

func (o *ClusterAuthorizationRequest) Disconnected() bool

Disconnected returns the value of the 'disconnected' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ClusterAuthorizationRequest) DisplayName ¶

func (o *ClusterAuthorizationRequest) DisplayName() string

DisplayName returns the value of the 'display_name' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ClusterAuthorizationRequest) Empty ¶

func (o *ClusterAuthorizationRequest) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*ClusterAuthorizationRequest) ExternalClusterID ¶

func (o *ClusterAuthorizationRequest) ExternalClusterID() string

ExternalClusterID returns the value of the 'external_cluster_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ClusterAuthorizationRequest) GetAccountUsername ¶

func (o *ClusterAuthorizationRequest) GetAccountUsername() (value string, ok bool)

GetAccountUsername returns the value of the 'account_username' attribute and a flag indicating if the attribute has a value.

func (*ClusterAuthorizationRequest) GetAvailabilityZone ¶

func (o *ClusterAuthorizationRequest) GetAvailabilityZone() (value string, ok bool)

GetAvailabilityZone returns the value of the 'availability_zone' attribute and a flag indicating if the attribute has a value.

func (*ClusterAuthorizationRequest) GetBYOC ¶

func (o *ClusterAuthorizationRequest) GetBYOC() (value bool, ok bool)

GetBYOC returns the value of the 'BYOC' attribute and a flag indicating if the attribute has a value.

func (*ClusterAuthorizationRequest) GetCloudAccountID ¶ added in v0.0.329

func (o *ClusterAuthorizationRequest) GetCloudAccountID() (value string, ok bool)

GetCloudAccountID returns the value of the 'cloud_account_ID' attribute and a flag indicating if the attribute has a value.

func (*ClusterAuthorizationRequest) GetCloudProviderID ¶ added in v0.0.329

func (o *ClusterAuthorizationRequest) GetCloudProviderID() (value string, ok bool)

GetCloudProviderID returns the value of the 'cloud_provider_ID' attribute and a flag indicating if the attribute has a value.

func (*ClusterAuthorizationRequest) GetClusterID ¶

func (o *ClusterAuthorizationRequest) GetClusterID() (value string, ok bool)

GetClusterID returns the value of the 'cluster_ID' attribute and a flag indicating if the attribute has a value.

func (*ClusterAuthorizationRequest) GetDisconnected ¶

func (o *ClusterAuthorizationRequest) GetDisconnected() (value bool, ok bool)

GetDisconnected returns the value of the 'disconnected' attribute and a flag indicating if the attribute has a value.

func (*ClusterAuthorizationRequest) GetDisplayName ¶

func (o *ClusterAuthorizationRequest) GetDisplayName() (value string, ok bool)

GetDisplayName returns the value of the 'display_name' attribute and a flag indicating if the attribute has a value.

func (*ClusterAuthorizationRequest) GetExternalClusterID ¶

func (o *ClusterAuthorizationRequest) GetExternalClusterID() (value string, ok bool)

GetExternalClusterID returns the value of the 'external_cluster_ID' attribute and a flag indicating if the attribute has a value.

func (*ClusterAuthorizationRequest) GetManaged ¶

func (o *ClusterAuthorizationRequest) GetManaged() (value bool, ok bool)

GetManaged returns the value of the 'managed' attribute and a flag indicating if the attribute has a value.

func (*ClusterAuthorizationRequest) GetProductCategory ¶ added in v0.0.329

func (o *ClusterAuthorizationRequest) GetProductCategory() (value string, ok bool)

GetProductCategory returns the value of the 'product_category' attribute and a flag indicating if the attribute has a value.

func (*ClusterAuthorizationRequest) GetProductID ¶ added in v0.0.329

func (o *ClusterAuthorizationRequest) GetProductID() (value string, ok bool)

GetProductID returns the value of the 'product_ID' attribute and a flag indicating if the attribute has a value.

func (*ClusterAuthorizationRequest) GetQuotaVersion ¶ added in v0.0.329

func (o *ClusterAuthorizationRequest) GetQuotaVersion() (value string, ok bool)

GetQuotaVersion returns the value of the 'quota_version' attribute and a flag indicating if the attribute has a value.

func (*ClusterAuthorizationRequest) GetReserve ¶

func (o *ClusterAuthorizationRequest) GetReserve() (value bool, ok bool)

GetReserve returns the value of the 'reserve' attribute and a flag indicating if the attribute has a value.

func (*ClusterAuthorizationRequest) GetResources ¶

func (o *ClusterAuthorizationRequest) GetResources() (value []*ReservedResource, ok bool)

GetResources returns the value of the 'resources' attribute and a flag indicating if the attribute has a value.

func (*ClusterAuthorizationRequest) GetScope ¶ added in v0.1.408

func (o *ClusterAuthorizationRequest) GetScope() (value string, ok bool)

GetScope returns the value of the 'scope' attribute and a flag indicating if the attribute has a value.

func (*ClusterAuthorizationRequest) Managed ¶

func (o *ClusterAuthorizationRequest) Managed() bool

Managed returns the value of the 'managed' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ClusterAuthorizationRequest) ProductCategory ¶ added in v0.0.329

func (o *ClusterAuthorizationRequest) ProductCategory() string

ProductCategory returns the value of the 'product_category' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ClusterAuthorizationRequest) ProductID ¶ added in v0.0.329

func (o *ClusterAuthorizationRequest) ProductID() string

ProductID returns the value of the 'product_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ClusterAuthorizationRequest) QuotaVersion ¶ added in v0.0.329

func (o *ClusterAuthorizationRequest) QuotaVersion() string

QuotaVersion returns the value of the 'quota_version' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ClusterAuthorizationRequest) Reserve ¶

func (o *ClusterAuthorizationRequest) Reserve() bool

Reserve returns the value of the 'reserve' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ClusterAuthorizationRequest) Resources ¶

Resources returns the value of the 'resources' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ClusterAuthorizationRequest) Scope ¶ added in v0.1.408

Scope returns the value of the 'scope' attribute, or the zero value of the type if the attribute doesn't have a value.

type ClusterAuthorizationRequestBuilder ¶

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

ClusterAuthorizationRequestBuilder contains the data and logic needed to build 'cluster_authorization_request' objects.

func NewClusterAuthorizationRequest ¶

func NewClusterAuthorizationRequest() *ClusterAuthorizationRequestBuilder

NewClusterAuthorizationRequest creates a new builder of 'cluster_authorization_request' objects.

func (*ClusterAuthorizationRequestBuilder) AccountUsername ¶

AccountUsername sets the value of the 'account_username' attribute to the given value.

func (*ClusterAuthorizationRequestBuilder) AvailabilityZone ¶

AvailabilityZone sets the value of the 'availability_zone' attribute to the given value.

func (*ClusterAuthorizationRequestBuilder) BYOC ¶

BYOC sets the value of the 'BYOC' attribute to the given value.

func (*ClusterAuthorizationRequestBuilder) Build ¶

Build creates a 'cluster_authorization_request' object using the configuration stored in the builder.

func (*ClusterAuthorizationRequestBuilder) CloudAccountID ¶ added in v0.0.329

CloudAccountID sets the value of the 'cloud_account_ID' attribute to the given value.

func (*ClusterAuthorizationRequestBuilder) CloudProviderID ¶ added in v0.0.329

CloudProviderID sets the value of the 'cloud_provider_ID' attribute to the given value.

func (*ClusterAuthorizationRequestBuilder) ClusterID ¶

ClusterID sets the value of the 'cluster_ID' attribute to the given value.

func (*ClusterAuthorizationRequestBuilder) Copy ¶

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*ClusterAuthorizationRequestBuilder) Disconnected ¶

Disconnected sets the value of the 'disconnected' attribute to the given value.

func (*ClusterAuthorizationRequestBuilder) DisplayName ¶

DisplayName sets the value of the 'display_name' attribute to the given value.

func (*ClusterAuthorizationRequestBuilder) Empty ¶ added in v0.0.329

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*ClusterAuthorizationRequestBuilder) ExternalClusterID ¶

ExternalClusterID sets the value of the 'external_cluster_ID' attribute to the given value.

func (*ClusterAuthorizationRequestBuilder) Managed ¶

Managed sets the value of the 'managed' attribute to the given value.

func (*ClusterAuthorizationRequestBuilder) ProductCategory ¶ added in v0.0.329

ProductCategory sets the value of the 'product_category' attribute to the given value.

func (*ClusterAuthorizationRequestBuilder) ProductID ¶ added in v0.0.329

ProductID sets the value of the 'product_ID' attribute to the given value.

func (*ClusterAuthorizationRequestBuilder) QuotaVersion ¶ added in v0.0.329

QuotaVersion sets the value of the 'quota_version' attribute to the given value.

func (*ClusterAuthorizationRequestBuilder) Reserve ¶

Reserve sets the value of the 'reserve' attribute to the given value.

func (*ClusterAuthorizationRequestBuilder) Resources ¶

Resources sets the value of the 'resources' attribute to the given values.

func (*ClusterAuthorizationRequestBuilder) Scope ¶ added in v0.1.408

Scope sets the value of the 'scope' attribute to the given value.

type ClusterAuthorizationRequestList ¶

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

ClusterAuthorizationRequestList is a list of values of the 'cluster_authorization_request' type.

func (*ClusterAuthorizationRequestList) Each ¶

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*ClusterAuthorizationRequestList) Empty ¶

Empty returns true if the list is empty.

func (*ClusterAuthorizationRequestList) Get ¶

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*ClusterAuthorizationRequestList) Len ¶

Len returns the length of the list.

func (*ClusterAuthorizationRequestList) Range ¶

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*ClusterAuthorizationRequestList) Slice ¶

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type ClusterAuthorizationRequestListBuilder ¶

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

ClusterAuthorizationRequestListBuilder contains the data and logic needed to build 'cluster_authorization_request' objects.

func NewClusterAuthorizationRequestList ¶

func NewClusterAuthorizationRequestList() *ClusterAuthorizationRequestListBuilder

NewClusterAuthorizationRequestList creates a new builder of 'cluster_authorization_request' objects.

func (*ClusterAuthorizationRequestListBuilder) Build ¶

Build creates a list of 'cluster_authorization_request' objects using the configuration stored in the builder.

func (*ClusterAuthorizationRequestListBuilder) Copy ¶

Copy copies the items of the given list into this builder, discarding any previous items.

func (*ClusterAuthorizationRequestListBuilder) Empty ¶ added in v0.0.329

Empty returns true if the list is empty.

func (*ClusterAuthorizationRequestListBuilder) Items ¶

Items sets the items of the list.

type ClusterAuthorizationResponse ¶

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

ClusterAuthorizationResponse represents the values of the 'cluster_authorization_response' type.

func UnmarshalClusterAuthorizationResponse ¶

func UnmarshalClusterAuthorizationResponse(source interface{}) (object *ClusterAuthorizationResponse, err error)

UnmarshalClusterAuthorizationResponse reads a value of the 'cluster_authorization_response' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalClusterAuthorizationResponseList ¶

func UnmarshalClusterAuthorizationResponseList(source interface{}) (items []*ClusterAuthorizationResponse, err error)

UnmarshalClusterAuthorizationResponseList reads a list of values of the 'cluster_authorization_response' type from the given source, which can be a slice of bytes, a string or a reader.

func (*ClusterAuthorizationResponse) Allowed ¶

func (o *ClusterAuthorizationResponse) Allowed() bool

Allowed returns the value of the 'allowed' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ClusterAuthorizationResponse) Empty ¶

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*ClusterAuthorizationResponse) ExcessResources ¶

func (o *ClusterAuthorizationResponse) ExcessResources() []*ReservedResource

ExcessResources returns the value of the 'excess_resources' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ClusterAuthorizationResponse) GetAllowed ¶

func (o *ClusterAuthorizationResponse) GetAllowed() (value bool, ok bool)

GetAllowed returns the value of the 'allowed' attribute and a flag indicating if the attribute has a value.

func (*ClusterAuthorizationResponse) GetExcessResources ¶

func (o *ClusterAuthorizationResponse) GetExcessResources() (value []*ReservedResource, ok bool)

GetExcessResources returns the value of the 'excess_resources' attribute and a flag indicating if the attribute has a value.

func (*ClusterAuthorizationResponse) GetSubscription ¶

func (o *ClusterAuthorizationResponse) GetSubscription() (value *Subscription, ok bool)

GetSubscription returns the value of the 'subscription' attribute and a flag indicating if the attribute has a value.

func (*ClusterAuthorizationResponse) Subscription ¶

func (o *ClusterAuthorizationResponse) Subscription() *Subscription

Subscription returns the value of the 'subscription' attribute, or the zero value of the type if the attribute doesn't have a value.

type ClusterAuthorizationResponseBuilder ¶

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

ClusterAuthorizationResponseBuilder contains the data and logic needed to build 'cluster_authorization_response' objects.

func NewClusterAuthorizationResponse ¶

func NewClusterAuthorizationResponse() *ClusterAuthorizationResponseBuilder

NewClusterAuthorizationResponse creates a new builder of 'cluster_authorization_response' objects.

func (*ClusterAuthorizationResponseBuilder) Allowed ¶

Allowed sets the value of the 'allowed' attribute to the given value.

func (*ClusterAuthorizationResponseBuilder) Build ¶

Build creates a 'cluster_authorization_response' object using the configuration stored in the builder.

func (*ClusterAuthorizationResponseBuilder) Copy ¶

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*ClusterAuthorizationResponseBuilder) Empty ¶ added in v0.0.329

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*ClusterAuthorizationResponseBuilder) ExcessResources ¶

ExcessResources sets the value of the 'excess_resources' attribute to the given values.

func (*ClusterAuthorizationResponseBuilder) Subscription ¶

Subscription sets the value of the 'subscription' attribute to the given value.

type ClusterAuthorizationResponseList ¶

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

ClusterAuthorizationResponseList is a list of values of the 'cluster_authorization_response' type.

func (*ClusterAuthorizationResponseList) Each ¶

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*ClusterAuthorizationResponseList) Empty ¶

Empty returns true if the list is empty.

func (*ClusterAuthorizationResponseList) Get ¶

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*ClusterAuthorizationResponseList) Len ¶

Len returns the length of the list.

func (*ClusterAuthorizationResponseList) Range ¶

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*ClusterAuthorizationResponseList) Slice ¶

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type ClusterAuthorizationResponseListBuilder ¶

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

ClusterAuthorizationResponseListBuilder contains the data and logic needed to build 'cluster_authorization_response' objects.

func NewClusterAuthorizationResponseList ¶

func NewClusterAuthorizationResponseList() *ClusterAuthorizationResponseListBuilder

NewClusterAuthorizationResponseList creates a new builder of 'cluster_authorization_response' objects.

func (*ClusterAuthorizationResponseListBuilder) Build ¶

Build creates a list of 'cluster_authorization_response' objects using the configuration stored in the builder.

func (*ClusterAuthorizationResponseListBuilder) Copy ¶

Copy copies the items of the given list into this builder, discarding any previous items.

func (*ClusterAuthorizationResponseListBuilder) Empty ¶ added in v0.0.329

Empty returns true if the list is empty.

func (*ClusterAuthorizationResponseListBuilder) Items ¶

Items sets the items of the list.

type ClusterAuthorizationsClient ¶

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

ClusterAuthorizationsClient is the client of the 'cluster_authorizations' resource.

Manages cluster authorizations.

func NewClusterAuthorizationsClient ¶

func NewClusterAuthorizationsClient(transport http.RoundTripper, path string) *ClusterAuthorizationsClient

NewClusterAuthorizationsClient creates a new client for the 'cluster_authorizations' resource using the given transport to send the requests and receive the responses.

func (*ClusterAuthorizationsClient) Post ¶

Post creates a request for the 'post' method.

Authorizes new cluster creation against an existing subscription.

type ClusterAuthorizationsPostRequest ¶

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

ClusterAuthorizationsPostRequest is the request for the 'post' method.

func (*ClusterAuthorizationsPostRequest) Header ¶

func (r *ClusterAuthorizationsPostRequest) Header(name string, value interface{}) *ClusterAuthorizationsPostRequest

Header adds a request header.

func (*ClusterAuthorizationsPostRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*ClusterAuthorizationsPostRequest) Parameter ¶

func (r *ClusterAuthorizationsPostRequest) Parameter(name string, value interface{}) *ClusterAuthorizationsPostRequest

Parameter adds a query parameter.

func (*ClusterAuthorizationsPostRequest) Request ¶

Request sets the value of the 'request' parameter.

func (*ClusterAuthorizationsPostRequest) Send ¶

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*ClusterAuthorizationsPostRequest) SendContext ¶

SendContext sends this request, waits for the response, and returns it.

type ClusterAuthorizationsPostResponse ¶

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

ClusterAuthorizationsPostResponse is the response for the 'post' method.

func (*ClusterAuthorizationsPostResponse) Error ¶

Error returns the response error.

func (*ClusterAuthorizationsPostResponse) GetResponse ¶

GetResponse returns the value of the 'response' parameter and a flag indicating if the parameter has a value.

func (*ClusterAuthorizationsPostResponse) Header ¶

Header returns header of the response.

func (*ClusterAuthorizationsPostResponse) Response ¶

Response returns the value of the 'response' parameter.

func (*ClusterAuthorizationsPostResponse) Status ¶

Status returns the response status code.

type ClusterMetricsNodes ¶ added in v0.0.329

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

ClusterMetricsNodes represents the values of the 'cluster_metrics_nodes' type.

func UnmarshalClusterMetricsNodes ¶ added in v0.0.329

func UnmarshalClusterMetricsNodes(source interface{}) (object *ClusterMetricsNodes, err error)

UnmarshalClusterMetricsNodes reads a value of the 'cluster_metrics_nodes' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalClusterMetricsNodesList ¶ added in v0.0.329

func UnmarshalClusterMetricsNodesList(source interface{}) (items []*ClusterMetricsNodes, err error)

UnmarshalClusterMetricsNodesList reads a list of values of the 'cluster_metrics_nodes' type from the given source, which can be a slice of bytes, a string or a reader.

func (*ClusterMetricsNodes) Compute ¶ added in v0.0.329

func (o *ClusterMetricsNodes) Compute() float64

Compute returns the value of the 'compute' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ClusterMetricsNodes) Empty ¶ added in v0.0.329

func (o *ClusterMetricsNodes) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*ClusterMetricsNodes) GetCompute ¶ added in v0.0.329

func (o *ClusterMetricsNodes) GetCompute() (value float64, ok bool)

GetCompute returns the value of the 'compute' attribute and a flag indicating if the attribute has a value.

func (*ClusterMetricsNodes) GetInfra ¶ added in v0.0.329

func (o *ClusterMetricsNodes) GetInfra() (value float64, ok bool)

GetInfra returns the value of the 'infra' attribute and a flag indicating if the attribute has a value.

func (*ClusterMetricsNodes) GetMaster ¶ added in v0.0.329

func (o *ClusterMetricsNodes) GetMaster() (value float64, ok bool)

GetMaster returns the value of the 'master' attribute and a flag indicating if the attribute has a value.

func (*ClusterMetricsNodes) GetTotal ¶ added in v0.0.329

func (o *ClusterMetricsNodes) GetTotal() (value float64, ok bool)

GetTotal returns the value of the 'total' attribute and a flag indicating if the attribute has a value.

func (*ClusterMetricsNodes) Infra ¶ added in v0.0.329

func (o *ClusterMetricsNodes) Infra() float64

Infra returns the value of the 'infra' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ClusterMetricsNodes) Master ¶ added in v0.0.329

func (o *ClusterMetricsNodes) Master() float64

Master returns the value of the 'master' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ClusterMetricsNodes) Total ¶ added in v0.0.329

func (o *ClusterMetricsNodes) Total() float64

Total returns the value of the 'total' attribute, or the zero value of the type if the attribute doesn't have a value.

type ClusterMetricsNodesBuilder ¶ added in v0.0.329

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

ClusterMetricsNodesBuilder contains the data and logic needed to build 'cluster_metrics_nodes' objects.

func NewClusterMetricsNodes ¶ added in v0.0.329

func NewClusterMetricsNodes() *ClusterMetricsNodesBuilder

NewClusterMetricsNodes creates a new builder of 'cluster_metrics_nodes' objects.

func (*ClusterMetricsNodesBuilder) Build ¶ added in v0.0.329

func (b *ClusterMetricsNodesBuilder) Build() (object *ClusterMetricsNodes, err error)

Build creates a 'cluster_metrics_nodes' object using the configuration stored in the builder.

func (*ClusterMetricsNodesBuilder) Compute ¶ added in v0.0.329

Compute sets the value of the 'compute' attribute to the given value.

func (*ClusterMetricsNodesBuilder) Copy ¶ added in v0.0.329

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*ClusterMetricsNodesBuilder) Empty ¶ added in v0.0.329

func (b *ClusterMetricsNodesBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*ClusterMetricsNodesBuilder) Infra ¶ added in v0.0.329

Infra sets the value of the 'infra' attribute to the given value.

func (*ClusterMetricsNodesBuilder) Master ¶ added in v0.0.329

Master sets the value of the 'master' attribute to the given value.

func (*ClusterMetricsNodesBuilder) Total ¶ added in v0.0.329

Total sets the value of the 'total' attribute to the given value.

type ClusterMetricsNodesList ¶ added in v0.0.329

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

ClusterMetricsNodesList is a list of values of the 'cluster_metrics_nodes' type.

func (*ClusterMetricsNodesList) Each ¶ added in v0.0.329

func (l *ClusterMetricsNodesList) Each(f func(item *ClusterMetricsNodes) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*ClusterMetricsNodesList) Empty ¶ added in v0.0.329

func (l *ClusterMetricsNodesList) Empty() bool

Empty returns true if the list is empty.

func (*ClusterMetricsNodesList) Get ¶ added in v0.0.329

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*ClusterMetricsNodesList) Len ¶ added in v0.0.329

func (l *ClusterMetricsNodesList) Len() int

Len returns the length of the list.

func (*ClusterMetricsNodesList) Range ¶ added in v0.0.329

func (l *ClusterMetricsNodesList) Range(f func(index int, item *ClusterMetricsNodes) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*ClusterMetricsNodesList) Slice ¶ added in v0.0.329

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type ClusterMetricsNodesListBuilder ¶ added in v0.0.329

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

ClusterMetricsNodesListBuilder contains the data and logic needed to build 'cluster_metrics_nodes' objects.

func NewClusterMetricsNodesList ¶ added in v0.0.329

func NewClusterMetricsNodesList() *ClusterMetricsNodesListBuilder

NewClusterMetricsNodesList creates a new builder of 'cluster_metrics_nodes' objects.

func (*ClusterMetricsNodesListBuilder) Build ¶ added in v0.0.329

Build creates a list of 'cluster_metrics_nodes' objects using the configuration stored in the builder.

func (*ClusterMetricsNodesListBuilder) Copy ¶ added in v0.0.329

Copy copies the items of the given list into this builder, discarding any previous items.

func (*ClusterMetricsNodesListBuilder) Empty ¶ added in v0.0.329

Empty returns true if the list is empty.

func (*ClusterMetricsNodesListBuilder) Items ¶ added in v0.0.329

Items sets the items of the list.

type ClusterRegistrationRequest ¶

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

ClusterRegistrationRequest represents the values of the 'cluster_registration_request' type.

func UnmarshalClusterRegistrationRequest ¶

func UnmarshalClusterRegistrationRequest(source interface{}) (object *ClusterRegistrationRequest, err error)

UnmarshalClusterRegistrationRequest reads a value of the 'cluster_registration_request' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalClusterRegistrationRequestList ¶

func UnmarshalClusterRegistrationRequestList(source interface{}) (items []*ClusterRegistrationRequest, err error)

UnmarshalClusterRegistrationRequestList reads a list of values of the 'cluster_registration_request' type from the given source, which can be a slice of bytes, a string or a reader.

func (*ClusterRegistrationRequest) AuthorizationToken ¶

func (o *ClusterRegistrationRequest) AuthorizationToken() string

AuthorizationToken returns the value of the 'authorization_token' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ClusterRegistrationRequest) ClusterID ¶

func (o *ClusterRegistrationRequest) ClusterID() string

ClusterID returns the value of the 'cluster_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ClusterRegistrationRequest) Empty ¶

func (o *ClusterRegistrationRequest) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*ClusterRegistrationRequest) GetAuthorizationToken ¶

func (o *ClusterRegistrationRequest) GetAuthorizationToken() (value string, ok bool)

GetAuthorizationToken returns the value of the 'authorization_token' attribute and a flag indicating if the attribute has a value.

func (*ClusterRegistrationRequest) GetClusterID ¶

func (o *ClusterRegistrationRequest) GetClusterID() (value string, ok bool)

GetClusterID returns the value of the 'cluster_ID' attribute and a flag indicating if the attribute has a value.

type ClusterRegistrationRequestBuilder ¶

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

ClusterRegistrationRequestBuilder contains the data and logic needed to build 'cluster_registration_request' objects.

func NewClusterRegistrationRequest ¶

func NewClusterRegistrationRequest() *ClusterRegistrationRequestBuilder

NewClusterRegistrationRequest creates a new builder of 'cluster_registration_request' objects.

func (*ClusterRegistrationRequestBuilder) AuthorizationToken ¶

AuthorizationToken sets the value of the 'authorization_token' attribute to the given value.

func (*ClusterRegistrationRequestBuilder) Build ¶

Build creates a 'cluster_registration_request' object using the configuration stored in the builder.

func (*ClusterRegistrationRequestBuilder) ClusterID ¶

ClusterID sets the value of the 'cluster_ID' attribute to the given value.

func (*ClusterRegistrationRequestBuilder) Copy ¶

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*ClusterRegistrationRequestBuilder) Empty ¶ added in v0.0.329

Empty returns true if the builder is empty, i.e. no attribute has a value.

type ClusterRegistrationRequestList ¶

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

ClusterRegistrationRequestList is a list of values of the 'cluster_registration_request' type.

func (*ClusterRegistrationRequestList) Each ¶

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*ClusterRegistrationRequestList) Empty ¶

Empty returns true if the list is empty.

func (*ClusterRegistrationRequestList) Get ¶

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*ClusterRegistrationRequestList) Len ¶

Len returns the length of the list.

func (*ClusterRegistrationRequestList) Range ¶

func (l *ClusterRegistrationRequestList) Range(f func(index int, item *ClusterRegistrationRequest) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*ClusterRegistrationRequestList) Slice ¶

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type ClusterRegistrationRequestListBuilder ¶

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

ClusterRegistrationRequestListBuilder contains the data and logic needed to build 'cluster_registration_request' objects.

func NewClusterRegistrationRequestList ¶

func NewClusterRegistrationRequestList() *ClusterRegistrationRequestListBuilder

NewClusterRegistrationRequestList creates a new builder of 'cluster_registration_request' objects.

func (*ClusterRegistrationRequestListBuilder) Build ¶

Build creates a list of 'cluster_registration_request' objects using the configuration stored in the builder.

func (*ClusterRegistrationRequestListBuilder) Copy ¶

Copy copies the items of the given list into this builder, discarding any previous items.

func (*ClusterRegistrationRequestListBuilder) Empty ¶ added in v0.0.329

Empty returns true if the list is empty.

func (*ClusterRegistrationRequestListBuilder) Items ¶

Items sets the items of the list.

type ClusterRegistrationResponse ¶

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

ClusterRegistrationResponse represents the values of the 'cluster_registration_response' type.

func UnmarshalClusterRegistrationResponse ¶

func UnmarshalClusterRegistrationResponse(source interface{}) (object *ClusterRegistrationResponse, err error)

UnmarshalClusterRegistrationResponse reads a value of the 'cluster_registration_response' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalClusterRegistrationResponseList ¶

func UnmarshalClusterRegistrationResponseList(source interface{}) (items []*ClusterRegistrationResponse, err error)

UnmarshalClusterRegistrationResponseList reads a list of values of the 'cluster_registration_response' type from the given source, which can be a slice of bytes, a string or a reader.

func (*ClusterRegistrationResponse) AccountID ¶

func (o *ClusterRegistrationResponse) AccountID() string

AccountID returns the value of the 'account_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ClusterRegistrationResponse) AuthorizationToken ¶

func (o *ClusterRegistrationResponse) AuthorizationToken() string

AuthorizationToken returns the value of the 'authorization_token' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ClusterRegistrationResponse) ClusterID ¶

func (o *ClusterRegistrationResponse) ClusterID() string

ClusterID returns the value of the 'cluster_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ClusterRegistrationResponse) Empty ¶

func (o *ClusterRegistrationResponse) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*ClusterRegistrationResponse) ExpiresAt ¶

func (o *ClusterRegistrationResponse) ExpiresAt() string

ExpiresAt returns the value of the 'expires_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Cluster registration expiration.

func (*ClusterRegistrationResponse) GetAccountID ¶

func (o *ClusterRegistrationResponse) GetAccountID() (value string, ok bool)

GetAccountID returns the value of the 'account_ID' attribute and a flag indicating if the attribute has a value.

func (*ClusterRegistrationResponse) GetAuthorizationToken ¶

func (o *ClusterRegistrationResponse) GetAuthorizationToken() (value string, ok bool)

GetAuthorizationToken returns the value of the 'authorization_token' attribute and a flag indicating if the attribute has a value.

func (*ClusterRegistrationResponse) GetClusterID ¶

func (o *ClusterRegistrationResponse) GetClusterID() (value string, ok bool)

GetClusterID returns the value of the 'cluster_ID' attribute and a flag indicating if the attribute has a value.

func (*ClusterRegistrationResponse) GetExpiresAt ¶

func (o *ClusterRegistrationResponse) GetExpiresAt() (value string, ok bool)

GetExpiresAt returns the value of the 'expires_at' attribute and a flag indicating if the attribute has a value.

Cluster registration expiration.

type ClusterRegistrationResponseBuilder ¶

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

ClusterRegistrationResponseBuilder contains the data and logic needed to build 'cluster_registration_response' objects.

func NewClusterRegistrationResponse ¶

func NewClusterRegistrationResponse() *ClusterRegistrationResponseBuilder

NewClusterRegistrationResponse creates a new builder of 'cluster_registration_response' objects.

func (*ClusterRegistrationResponseBuilder) AccountID ¶

AccountID sets the value of the 'account_ID' attribute to the given value.

func (*ClusterRegistrationResponseBuilder) AuthorizationToken ¶

AuthorizationToken sets the value of the 'authorization_token' attribute to the given value.

func (*ClusterRegistrationResponseBuilder) Build ¶

Build creates a 'cluster_registration_response' object using the configuration stored in the builder.

func (*ClusterRegistrationResponseBuilder) ClusterID ¶

ClusterID sets the value of the 'cluster_ID' attribute to the given value.

func (*ClusterRegistrationResponseBuilder) Copy ¶

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*ClusterRegistrationResponseBuilder) Empty ¶ added in v0.0.329

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*ClusterRegistrationResponseBuilder) ExpiresAt ¶

ExpiresAt sets the value of the 'expires_at' attribute to the given value.

type ClusterRegistrationResponseList ¶

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

ClusterRegistrationResponseList is a list of values of the 'cluster_registration_response' type.

func (*ClusterRegistrationResponseList) Each ¶

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*ClusterRegistrationResponseList) Empty ¶

Empty returns true if the list is empty.

func (*ClusterRegistrationResponseList) Get ¶

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*ClusterRegistrationResponseList) Len ¶

Len returns the length of the list.

func (*ClusterRegistrationResponseList) Range ¶

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*ClusterRegistrationResponseList) Slice ¶

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type ClusterRegistrationResponseListBuilder ¶

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

ClusterRegistrationResponseListBuilder contains the data and logic needed to build 'cluster_registration_response' objects.

func NewClusterRegistrationResponseList ¶

func NewClusterRegistrationResponseList() *ClusterRegistrationResponseListBuilder

NewClusterRegistrationResponseList creates a new builder of 'cluster_registration_response' objects.

func (*ClusterRegistrationResponseListBuilder) Build ¶

Build creates a list of 'cluster_registration_response' objects using the configuration stored in the builder.

func (*ClusterRegistrationResponseListBuilder) Copy ¶

Copy copies the items of the given list into this builder, discarding any previous items.

func (*ClusterRegistrationResponseListBuilder) Empty ¶ added in v0.0.329

Empty returns true if the list is empty.

func (*ClusterRegistrationResponseListBuilder) Items ¶

Items sets the items of the list.

type ClusterRegistrationsClient ¶

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

ClusterRegistrationsClient is the client of the 'cluster_registrations' resource.

Manages cluster registrations.

func NewClusterRegistrationsClient ¶

func NewClusterRegistrationsClient(transport http.RoundTripper, path string) *ClusterRegistrationsClient

NewClusterRegistrationsClient creates a new client for the 'cluster_registrations' resource using the given transport to send the requests and receive the responses.

func (*ClusterRegistrationsClient) Post ¶

Post creates a request for the 'post' method.

Finds or creates a cluster registration with a registry credential token and cluster identifier.

type ClusterRegistrationsPostRequest ¶

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

ClusterRegistrationsPostRequest is the request for the 'post' method.

func (*ClusterRegistrationsPostRequest) Header ¶

func (r *ClusterRegistrationsPostRequest) Header(name string, value interface{}) *ClusterRegistrationsPostRequest

Header adds a request header.

func (*ClusterRegistrationsPostRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*ClusterRegistrationsPostRequest) Parameter ¶

func (r *ClusterRegistrationsPostRequest) Parameter(name string, value interface{}) *ClusterRegistrationsPostRequest

Parameter adds a query parameter.

func (*ClusterRegistrationsPostRequest) Request ¶

Request sets the value of the 'request' parameter.

func (*ClusterRegistrationsPostRequest) Send ¶

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*ClusterRegistrationsPostRequest) SendContext ¶

SendContext sends this request, waits for the response, and returns it.

type ClusterRegistrationsPostResponse ¶

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

ClusterRegistrationsPostResponse is the response for the 'post' method.

func (*ClusterRegistrationsPostResponse) Error ¶

Error returns the response error.

func (*ClusterRegistrationsPostResponse) GetResponse ¶

GetResponse returns the value of the 'response' parameter and a flag indicating if the parameter has a value.

func (*ClusterRegistrationsPostResponse) Header ¶

Header returns header of the response.

func (*ClusterRegistrationsPostResponse) Response ¶

Response returns the value of the 'response' parameter.

func (*ClusterRegistrationsPostResponse) Status ¶

Status returns the response status code.

type ClusterResource ¶ added in v0.0.329

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

ClusterResource represents the values of the 'cluster_resource' type.

func UnmarshalClusterResource ¶ added in v0.0.329

func UnmarshalClusterResource(source interface{}) (object *ClusterResource, err error)

UnmarshalClusterResource reads a value of the 'cluster_resource' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalClusterResourceList ¶ added in v0.0.329

func UnmarshalClusterResourceList(source interface{}) (items []*ClusterResource, err error)

UnmarshalClusterResourceList reads a list of values of the 'cluster_resource' type from the given source, which can be a slice of bytes, a string or a reader.

func (*ClusterResource) Empty ¶ added in v0.0.329

func (o *ClusterResource) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*ClusterResource) GetTotal ¶ added in v0.0.329

func (o *ClusterResource) GetTotal() (value *ValueUnit, ok bool)

GetTotal returns the value of the 'total' attribute and a flag indicating if the attribute has a value.

func (*ClusterResource) GetUpdatedTimestamp ¶ added in v0.0.329

func (o *ClusterResource) GetUpdatedTimestamp() (value time.Time, ok bool)

GetUpdatedTimestamp returns the value of the 'updated_timestamp' attribute and a flag indicating if the attribute has a value.

func (*ClusterResource) GetUsed ¶ added in v0.0.329

func (o *ClusterResource) GetUsed() (value *ValueUnit, ok bool)

GetUsed returns the value of the 'used' attribute and a flag indicating if the attribute has a value.

func (*ClusterResource) Total ¶ added in v0.0.329

func (o *ClusterResource) Total() *ValueUnit

Total returns the value of the 'total' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ClusterResource) UpdatedTimestamp ¶ added in v0.0.329

func (o *ClusterResource) UpdatedTimestamp() time.Time

UpdatedTimestamp returns the value of the 'updated_timestamp' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ClusterResource) Used ¶ added in v0.0.329

func (o *ClusterResource) Used() *ValueUnit

Used returns the value of the 'used' attribute, or the zero value of the type if the attribute doesn't have a value.

type ClusterResourceBuilder ¶ added in v0.0.329

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

ClusterResourceBuilder contains the data and logic needed to build 'cluster_resource' objects.

func NewClusterResource ¶ added in v0.0.329

func NewClusterResource() *ClusterResourceBuilder

NewClusterResource creates a new builder of 'cluster_resource' objects.

func (*ClusterResourceBuilder) Build ¶ added in v0.0.329

func (b *ClusterResourceBuilder) Build() (object *ClusterResource, err error)

Build creates a 'cluster_resource' object using the configuration stored in the builder.

func (*ClusterResourceBuilder) Copy ¶ added in v0.0.329

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*ClusterResourceBuilder) Empty ¶ added in v0.0.329

func (b *ClusterResourceBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*ClusterResourceBuilder) Total ¶ added in v0.0.329

Total sets the value of the 'total' attribute to the given value.

func (*ClusterResourceBuilder) UpdatedTimestamp ¶ added in v0.0.329

func (b *ClusterResourceBuilder) UpdatedTimestamp(value time.Time) *ClusterResourceBuilder

UpdatedTimestamp sets the value of the 'updated_timestamp' attribute to the given value.

func (*ClusterResourceBuilder) Used ¶ added in v0.0.329

Used sets the value of the 'used' attribute to the given value.

type ClusterResourceList ¶ added in v0.0.329

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

ClusterResourceList is a list of values of the 'cluster_resource' type.

func (*ClusterResourceList) Each ¶ added in v0.0.329

func (l *ClusterResourceList) Each(f func(item *ClusterResource) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*ClusterResourceList) Empty ¶ added in v0.0.329

func (l *ClusterResourceList) Empty() bool

Empty returns true if the list is empty.

func (*ClusterResourceList) Get ¶ added in v0.0.329

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*ClusterResourceList) Len ¶ added in v0.0.329

func (l *ClusterResourceList) Len() int

Len returns the length of the list.

func (*ClusterResourceList) Range ¶ added in v0.0.329

func (l *ClusterResourceList) Range(f func(index int, item *ClusterResource) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*ClusterResourceList) Slice ¶ added in v0.0.329

func (l *ClusterResourceList) Slice() []*ClusterResource

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type ClusterResourceListBuilder ¶ added in v0.0.329

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

ClusterResourceListBuilder contains the data and logic needed to build 'cluster_resource' objects.

func NewClusterResourceList ¶ added in v0.0.329

func NewClusterResourceList() *ClusterResourceListBuilder

NewClusterResourceList creates a new builder of 'cluster_resource' objects.

func (*ClusterResourceListBuilder) Build ¶ added in v0.0.329

func (b *ClusterResourceListBuilder) Build() (list *ClusterResourceList, err error)

Build creates a list of 'cluster_resource' objects using the configuration stored in the builder.

func (*ClusterResourceListBuilder) Copy ¶ added in v0.0.329

Copy copies the items of the given list into this builder, discarding any previous items.

func (*ClusterResourceListBuilder) Empty ¶ added in v0.0.329

func (b *ClusterResourceListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*ClusterResourceListBuilder) Items ¶ added in v0.0.329

Items sets the items of the list.

type ClusterUpgrade ¶ added in v0.0.329

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

ClusterUpgrade represents the values of the 'cluster_upgrade' type.

func UnmarshalClusterUpgrade ¶ added in v0.0.329

func UnmarshalClusterUpgrade(source interface{}) (object *ClusterUpgrade, err error)

UnmarshalClusterUpgrade reads a value of the 'cluster_upgrade' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalClusterUpgradeList ¶ added in v0.0.329

func UnmarshalClusterUpgradeList(source interface{}) (items []*ClusterUpgrade, err error)

UnmarshalClusterUpgradeList reads a list of values of the 'cluster_upgrade' type from the given source, which can be a slice of bytes, a string or a reader.

func (*ClusterUpgrade) Available ¶ added in v0.0.329

func (o *ClusterUpgrade) Available() bool

Available returns the value of the 'available' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ClusterUpgrade) Empty ¶ added in v0.0.329

func (o *ClusterUpgrade) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*ClusterUpgrade) GetAvailable ¶ added in v0.0.329

func (o *ClusterUpgrade) GetAvailable() (value bool, ok bool)

GetAvailable returns the value of the 'available' attribute and a flag indicating if the attribute has a value.

func (*ClusterUpgrade) GetState ¶ added in v0.0.329

func (o *ClusterUpgrade) GetState() (value string, ok bool)

GetState returns the value of the 'state' attribute and a flag indicating if the attribute has a value.

func (*ClusterUpgrade) GetUpdatedTimestamp ¶ added in v0.0.329

func (o *ClusterUpgrade) GetUpdatedTimestamp() (value time.Time, ok bool)

GetUpdatedTimestamp returns the value of the 'updated_timestamp' attribute and a flag indicating if the attribute has a value.

func (*ClusterUpgrade) GetVersion ¶ added in v0.0.329

func (o *ClusterUpgrade) GetVersion() (value string, ok bool)

GetVersion returns the value of the 'version' attribute and a flag indicating if the attribute has a value.

func (*ClusterUpgrade) State ¶ added in v0.0.329

func (o *ClusterUpgrade) State() string

State returns the value of the 'state' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ClusterUpgrade) UpdatedTimestamp ¶ added in v0.0.329

func (o *ClusterUpgrade) UpdatedTimestamp() time.Time

UpdatedTimestamp returns the value of the 'updated_timestamp' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ClusterUpgrade) Version ¶ added in v0.0.329

func (o *ClusterUpgrade) Version() string

Version returns the value of the 'version' attribute, or the zero value of the type if the attribute doesn't have a value.

type ClusterUpgradeBuilder ¶ added in v0.0.329

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

ClusterUpgradeBuilder contains the data and logic needed to build 'cluster_upgrade' objects.

func NewClusterUpgrade ¶ added in v0.0.329

func NewClusterUpgrade() *ClusterUpgradeBuilder

NewClusterUpgrade creates a new builder of 'cluster_upgrade' objects.

func (*ClusterUpgradeBuilder) Available ¶ added in v0.0.329

func (b *ClusterUpgradeBuilder) Available(value bool) *ClusterUpgradeBuilder

Available sets the value of the 'available' attribute to the given value.

func (*ClusterUpgradeBuilder) Build ¶ added in v0.0.329

func (b *ClusterUpgradeBuilder) Build() (object *ClusterUpgrade, err error)

Build creates a 'cluster_upgrade' object using the configuration stored in the builder.

func (*ClusterUpgradeBuilder) Copy ¶ added in v0.0.329

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*ClusterUpgradeBuilder) Empty ¶ added in v0.0.329

func (b *ClusterUpgradeBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*ClusterUpgradeBuilder) State ¶ added in v0.0.329

State sets the value of the 'state' attribute to the given value.

func (*ClusterUpgradeBuilder) UpdatedTimestamp ¶ added in v0.0.329

func (b *ClusterUpgradeBuilder) UpdatedTimestamp(value time.Time) *ClusterUpgradeBuilder

UpdatedTimestamp sets the value of the 'updated_timestamp' attribute to the given value.

func (*ClusterUpgradeBuilder) Version ¶ added in v0.0.329

Version sets the value of the 'version' attribute to the given value.

type ClusterUpgradeList ¶ added in v0.0.329

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

ClusterUpgradeList is a list of values of the 'cluster_upgrade' type.

func (*ClusterUpgradeList) Each ¶ added in v0.0.329

func (l *ClusterUpgradeList) Each(f func(item *ClusterUpgrade) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*ClusterUpgradeList) Empty ¶ added in v0.0.329

func (l *ClusterUpgradeList) Empty() bool

Empty returns true if the list is empty.

func (*ClusterUpgradeList) Get ¶ added in v0.0.329

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*ClusterUpgradeList) Len ¶ added in v0.0.329

func (l *ClusterUpgradeList) Len() int

Len returns the length of the list.

func (*ClusterUpgradeList) Range ¶ added in v0.0.329

func (l *ClusterUpgradeList) Range(f func(index int, item *ClusterUpgrade) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*ClusterUpgradeList) Slice ¶ added in v0.0.329

func (l *ClusterUpgradeList) Slice() []*ClusterUpgrade

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type ClusterUpgradeListBuilder ¶ added in v0.0.329

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

ClusterUpgradeListBuilder contains the data and logic needed to build 'cluster_upgrade' objects.

func NewClusterUpgradeList ¶ added in v0.0.329

func NewClusterUpgradeList() *ClusterUpgradeListBuilder

NewClusterUpgradeList creates a new builder of 'cluster_upgrade' objects.

func (*ClusterUpgradeListBuilder) Build ¶ added in v0.0.329

func (b *ClusterUpgradeListBuilder) Build() (list *ClusterUpgradeList, err error)

Build creates a list of 'cluster_upgrade' objects using the configuration stored in the builder.

func (*ClusterUpgradeListBuilder) Copy ¶ added in v0.0.329

Copy copies the items of the given list into this builder, discarding any previous items.

func (*ClusterUpgradeListBuilder) Empty ¶ added in v0.0.329

func (b *ClusterUpgradeListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*ClusterUpgradeListBuilder) Items ¶ added in v0.0.329

Items sets the items of the list.

type Contract ¶ added in v0.1.347

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

Contract represents the values of the 'contract' type.

func UnmarshalContract ¶ added in v0.1.347

func UnmarshalContract(source interface{}) (object *Contract, err error)

UnmarshalContract reads a value of the 'contract' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalContractList ¶ added in v0.1.347

func UnmarshalContractList(source interface{}) (items []*Contract, err error)

UnmarshalContractList reads a list of values of the 'contract' type from the given source, which can be a slice of bytes, a string or a reader.

func (*Contract) Dimensions ¶ added in v0.1.347

func (o *Contract) Dimensions() []*ContractDimension

Dimensions returns the value of the 'dimensions' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Contract) Empty ¶ added in v0.1.347

func (o *Contract) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*Contract) EndDate ¶ added in v0.1.347

func (o *Contract) EndDate() time.Time

EndDate returns the value of the 'end_date' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Contract) GetDimensions ¶ added in v0.1.347

func (o *Contract) GetDimensions() (value []*ContractDimension, ok bool)

GetDimensions returns the value of the 'dimensions' attribute and a flag indicating if the attribute has a value.

func (*Contract) GetEndDate ¶ added in v0.1.347

func (o *Contract) GetEndDate() (value time.Time, ok bool)

GetEndDate returns the value of the 'end_date' attribute and a flag indicating if the attribute has a value.

func (*Contract) GetStartDate ¶ added in v0.1.347

func (o *Contract) GetStartDate() (value time.Time, ok bool)

GetStartDate returns the value of the 'start_date' attribute and a flag indicating if the attribute has a value.

func (*Contract) StartDate ¶ added in v0.1.347

func (o *Contract) StartDate() time.Time

StartDate returns the value of the 'start_date' attribute, or the zero value of the type if the attribute doesn't have a value.

type ContractBuilder ¶ added in v0.1.347

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

ContractBuilder contains the data and logic needed to build 'contract' objects.

func NewContract ¶ added in v0.1.347

func NewContract() *ContractBuilder

NewContract creates a new builder of 'contract' objects.

func (*ContractBuilder) Build ¶ added in v0.1.347

func (b *ContractBuilder) Build() (object *Contract, err error)

Build creates a 'contract' object using the configuration stored in the builder.

func (*ContractBuilder) Copy ¶ added in v0.1.347

func (b *ContractBuilder) Copy(object *Contract) *ContractBuilder

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*ContractBuilder) Dimensions ¶ added in v0.1.347

func (b *ContractBuilder) Dimensions(values ...*ContractDimensionBuilder) *ContractBuilder

Dimensions sets the value of the 'dimensions' attribute to the given values.

func (*ContractBuilder) Empty ¶ added in v0.1.347

func (b *ContractBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*ContractBuilder) EndDate ¶ added in v0.1.347

func (b *ContractBuilder) EndDate(value time.Time) *ContractBuilder

EndDate sets the value of the 'end_date' attribute to the given value.

func (*ContractBuilder) StartDate ¶ added in v0.1.347

func (b *ContractBuilder) StartDate(value time.Time) *ContractBuilder

StartDate sets the value of the 'start_date' attribute to the given value.

type ContractDimension ¶ added in v0.1.347

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

ContractDimension represents the values of the 'contract_dimension' type.

func UnmarshalContractDimension ¶ added in v0.1.347

func UnmarshalContractDimension(source interface{}) (object *ContractDimension, err error)

UnmarshalContractDimension reads a value of the 'contract_dimension' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalContractDimensionList ¶ added in v0.1.347

func UnmarshalContractDimensionList(source interface{}) (items []*ContractDimension, err error)

UnmarshalContractDimensionList reads a list of values of the 'contract_dimension' type from the given source, which can be a slice of bytes, a string or a reader.

func (*ContractDimension) Empty ¶ added in v0.1.347

func (o *ContractDimension) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*ContractDimension) GetName ¶ added in v0.1.347

func (o *ContractDimension) GetName() (value string, ok bool)

GetName returns the value of the 'name' attribute and a flag indicating if the attribute has a value.

func (*ContractDimension) GetValue ¶ added in v0.1.347

func (o *ContractDimension) GetValue() (value string, ok bool)

GetValue returns the value of the 'value' attribute and a flag indicating if the attribute has a value.

func (*ContractDimension) Name ¶ added in v0.1.347

func (o *ContractDimension) Name() string

Name returns the value of the 'name' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ContractDimension) Value ¶ added in v0.1.347

func (o *ContractDimension) Value() string

Value returns the value of the 'value' attribute, or the zero value of the type if the attribute doesn't have a value.

type ContractDimensionBuilder ¶ added in v0.1.347

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

ContractDimensionBuilder contains the data and logic needed to build 'contract_dimension' objects.

func NewContractDimension ¶ added in v0.1.347

func NewContractDimension() *ContractDimensionBuilder

NewContractDimension creates a new builder of 'contract_dimension' objects.

func (*ContractDimensionBuilder) Build ¶ added in v0.1.347

func (b *ContractDimensionBuilder) Build() (object *ContractDimension, err error)

Build creates a 'contract_dimension' object using the configuration stored in the builder.

func (*ContractDimensionBuilder) Copy ¶ added in v0.1.347

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*ContractDimensionBuilder) Empty ¶ added in v0.1.347

func (b *ContractDimensionBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*ContractDimensionBuilder) Name ¶ added in v0.1.347

Name sets the value of the 'name' attribute to the given value.

func (*ContractDimensionBuilder) Value ¶ added in v0.1.347

Value sets the value of the 'value' attribute to the given value.

type ContractDimensionList ¶ added in v0.1.347

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

ContractDimensionList is a list of values of the 'contract_dimension' type.

func (*ContractDimensionList) Each ¶ added in v0.1.347

func (l *ContractDimensionList) Each(f func(item *ContractDimension) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*ContractDimensionList) Empty ¶ added in v0.1.347

func (l *ContractDimensionList) Empty() bool

Empty returns true if the list is empty.

func (*ContractDimensionList) Get ¶ added in v0.1.347

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*ContractDimensionList) Len ¶ added in v0.1.347

func (l *ContractDimensionList) Len() int

Len returns the length of the list.

func (*ContractDimensionList) Range ¶ added in v0.1.347

func (l *ContractDimensionList) Range(f func(index int, item *ContractDimension) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*ContractDimensionList) Slice ¶ added in v0.1.347

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type ContractDimensionListBuilder ¶ added in v0.1.347

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

ContractDimensionListBuilder contains the data and logic needed to build 'contract_dimension' objects.

func NewContractDimensionList ¶ added in v0.1.347

func NewContractDimensionList() *ContractDimensionListBuilder

NewContractDimensionList creates a new builder of 'contract_dimension' objects.

func (*ContractDimensionListBuilder) Build ¶ added in v0.1.347

Build creates a list of 'contract_dimension' objects using the configuration stored in the builder.

func (*ContractDimensionListBuilder) Copy ¶ added in v0.1.347

Copy copies the items of the given list into this builder, discarding any previous items.

func (*ContractDimensionListBuilder) Empty ¶ added in v0.1.347

Empty returns true if the list is empty.

func (*ContractDimensionListBuilder) Items ¶ added in v0.1.347

Items sets the items of the list.

type ContractList ¶ added in v0.1.347

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

ContractList is a list of values of the 'contract' type.

func (*ContractList) Each ¶ added in v0.1.347

func (l *ContractList) Each(f func(item *Contract) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*ContractList) Empty ¶ added in v0.1.347

func (l *ContractList) Empty() bool

Empty returns true if the list is empty.

func (*ContractList) Get ¶ added in v0.1.347

func (l *ContractList) Get(i int) *Contract

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*ContractList) Len ¶ added in v0.1.347

func (l *ContractList) Len() int

Len returns the length of the list.

func (*ContractList) Range ¶ added in v0.1.347

func (l *ContractList) Range(f func(index int, item *Contract) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*ContractList) Slice ¶ added in v0.1.347

func (l *ContractList) Slice() []*Contract

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type ContractListBuilder ¶ added in v0.1.347

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

ContractListBuilder contains the data and logic needed to build 'contract' objects.

func NewContractList ¶ added in v0.1.347

func NewContractList() *ContractListBuilder

NewContractList creates a new builder of 'contract' objects.

func (*ContractListBuilder) Build ¶ added in v0.1.347

func (b *ContractListBuilder) Build() (list *ContractList, err error)

Build creates a list of 'contract' objects using the configuration stored in the builder.

func (*ContractListBuilder) Copy ¶ added in v0.1.347

Copy copies the items of the given list into this builder, discarding any previous items.

func (*ContractListBuilder) Empty ¶ added in v0.1.347

func (b *ContractListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*ContractListBuilder) Items ¶ added in v0.1.347

Items sets the items of the list.

type CurrentAccessClient ¶

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

CurrentAccessClient is the client of the 'current_access' resource.

Manages roles/permissions of the current authenticated account.

func NewCurrentAccessClient ¶

func NewCurrentAccessClient(transport http.RoundTripper, path string) *CurrentAccessClient

NewCurrentAccessClient creates a new client for the 'current_access' resource using the given transport to send the requests and receive the responses.

func (*CurrentAccessClient) List ¶

List creates a request for the 'list' method.

Retrieves the details of the account.

type CurrentAccessListRequest ¶

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

CurrentAccessListRequest is the request for the 'list' method.

func (*CurrentAccessListRequest) Header ¶

func (r *CurrentAccessListRequest) Header(name string, value interface{}) *CurrentAccessListRequest

Header adds a request header.

func (*CurrentAccessListRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*CurrentAccessListRequest) Page ¶

Page sets the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*CurrentAccessListRequest) Parameter ¶

func (r *CurrentAccessListRequest) Parameter(name string, value interface{}) *CurrentAccessListRequest

Parameter adds a query parameter.

func (*CurrentAccessListRequest) Send ¶

func (r *CurrentAccessListRequest) Send() (result *CurrentAccessListResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*CurrentAccessListRequest) SendContext ¶

func (r *CurrentAccessListRequest) SendContext(ctx context.Context) (result *CurrentAccessListResponse, err error)

SendContext sends this request, waits for the response, and returns it.

func (*CurrentAccessListRequest) Size ¶

Size sets the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

type CurrentAccessListResponse ¶

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

CurrentAccessListResponse is the response for the 'list' method.

func (*CurrentAccessListResponse) Error ¶

Error returns the response error.

func (*CurrentAccessListResponse) GetItems ¶

func (r *CurrentAccessListResponse) GetItems() (value *RoleList, ok bool)

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

func (*CurrentAccessListResponse) GetPage ¶

func (r *CurrentAccessListResponse) GetPage() (value int, ok bool)

GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.

Index of the requested page, where one corresponds to the first page.

func (*CurrentAccessListResponse) GetSize ¶

func (r *CurrentAccessListResponse) GetSize() (value int, ok bool)

GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.

Maximum number of items that will be contained in the returned page.

func (*CurrentAccessListResponse) GetTotal ¶

func (r *CurrentAccessListResponse) GetTotal() (value int, ok bool)

GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

func (*CurrentAccessListResponse) Header ¶

Header returns header of the response.

func (*CurrentAccessListResponse) Items ¶

func (r *CurrentAccessListResponse) Items() *RoleList

Items returns the value of the 'items' parameter.

func (*CurrentAccessListResponse) Page ¶

func (r *CurrentAccessListResponse) Page() int

Page returns the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*CurrentAccessListResponse) Size ¶

func (r *CurrentAccessListResponse) Size() int

Size returns the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

func (*CurrentAccessListResponse) Status ¶

func (r *CurrentAccessListResponse) Status() int

Status returns the response status code.

func (*CurrentAccessListResponse) Total ¶

func (r *CurrentAccessListResponse) Total() int

Total returns the value of the 'total' parameter.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

type CurrentAccountClient ¶

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

CurrentAccountClient is the client of the 'current_account' resource.

Manages the current authenticated account.

func NewCurrentAccountClient ¶

func NewCurrentAccountClient(transport http.RoundTripper, path string) *CurrentAccountClient

NewCurrentAccountClient creates a new client for the 'current_account' resource using the given transport to send the requests and receive the responses.

func (*CurrentAccountClient) Get ¶

Get creates a request for the 'get' method.

Retrieves the details of the account.

func (*CurrentAccountClient) Poll ¶

Poll creates a request to repeatedly retrieve the object till the response has one of a given set of states and satisfies a set of predicates.

type CurrentAccountGetRequest ¶

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

CurrentAccountGetRequest is the request for the 'get' method.

func (*CurrentAccountGetRequest) Header ¶

func (r *CurrentAccountGetRequest) Header(name string, value interface{}) *CurrentAccountGetRequest

Header adds a request header.

func (*CurrentAccountGetRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*CurrentAccountGetRequest) Parameter ¶

func (r *CurrentAccountGetRequest) Parameter(name string, value interface{}) *CurrentAccountGetRequest

Parameter adds a query parameter.

func (*CurrentAccountGetRequest) Send ¶

func (r *CurrentAccountGetRequest) Send() (result *CurrentAccountGetResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*CurrentAccountGetRequest) SendContext ¶

func (r *CurrentAccountGetRequest) SendContext(ctx context.Context) (result *CurrentAccountGetResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type CurrentAccountGetResponse ¶

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

CurrentAccountGetResponse is the response for the 'get' method.

func (*CurrentAccountGetResponse) Body ¶

Body returns the value of the 'body' parameter.

func (*CurrentAccountGetResponse) Error ¶

Error returns the response error.

func (*CurrentAccountGetResponse) GetBody ¶

func (r *CurrentAccountGetResponse) GetBody() (value *Account, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*CurrentAccountGetResponse) Header ¶

Header returns header of the response.

func (*CurrentAccountGetResponse) Status ¶

func (r *CurrentAccountGetResponse) Status() int

Status returns the response status code.

type CurrentAccountPollRequest ¶

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

CurrentAccountPollRequest is the request for the Poll method.

func (*CurrentAccountPollRequest) Header ¶

func (r *CurrentAccountPollRequest) Header(name string, value interface{}) *CurrentAccountPollRequest

Header adds a request header to all the requests that will be used to retrieve the object.

func (*CurrentAccountPollRequest) Interval ¶

Interval sets the polling interval. This parameter is mandatory and must be greater than zero.

func (*CurrentAccountPollRequest) Parameter ¶

func (r *CurrentAccountPollRequest) Parameter(name string, value interface{}) *CurrentAccountPollRequest

Parameter adds a query parameter to all the requests that will be used to retrieve the object.

func (*CurrentAccountPollRequest) Predicate ¶

Predicate adds a predicate that the response should satisfy be considered successful. Multiple predicates can be set calling this method multiple times. The response will be considered successful if all the predicates are satisfied.

func (*CurrentAccountPollRequest) StartContext ¶

func (r *CurrentAccountPollRequest) StartContext(ctx context.Context) (response *CurrentAccountPollResponse, err error)

StartContext starts the polling loop. Responses will be considered successful if the status is one of the values specified with the Status method and if all the predicates specified with the Predicate method return nil.

The context must have a timeout or deadline, otherwise this method will immediately return an error.

func (*CurrentAccountPollRequest) Status ¶

Status set the expected status of the response. Multiple values can be set calling this method multiple times. The response will be considered successful if the status is any of those values.

type CurrentAccountPollResponse ¶

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

CurrentAccountPollResponse is the response for the Poll method.

func (*CurrentAccountPollResponse) Body ¶

Body returns the value of the 'body' parameter.

func (*CurrentAccountPollResponse) Error ¶

Error returns the response error.

func (*CurrentAccountPollResponse) GetBody ¶

func (r *CurrentAccountPollResponse) GetBody() (value *Account, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*CurrentAccountPollResponse) Header ¶

Header returns header of the response.

func (*CurrentAccountPollResponse) Status ¶

func (r *CurrentAccountPollResponse) Status() int

Status returns the response status code.

type DefaultCapabilitiesAddRequest ¶ added in v0.1.412

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

DefaultCapabilitiesAddRequest is the request for the 'add' method.

func (*DefaultCapabilitiesAddRequest) Body ¶ added in v0.1.412

Body sets the value of the 'body' parameter.

Default capability data.

func (*DefaultCapabilitiesAddRequest) Header ¶ added in v0.1.412

func (r *DefaultCapabilitiesAddRequest) Header(name string, value interface{}) *DefaultCapabilitiesAddRequest

Header adds a request header.

func (*DefaultCapabilitiesAddRequest) Impersonate ¶ added in v0.1.412

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*DefaultCapabilitiesAddRequest) Parameter ¶ added in v0.1.412

func (r *DefaultCapabilitiesAddRequest) Parameter(name string, value interface{}) *DefaultCapabilitiesAddRequest

Parameter adds a query parameter.

func (*DefaultCapabilitiesAddRequest) Send ¶ added in v0.1.412

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*DefaultCapabilitiesAddRequest) SendContext ¶ added in v0.1.412

SendContext sends this request, waits for the response, and returns it.

type DefaultCapabilitiesAddResponse ¶ added in v0.1.412

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

DefaultCapabilitiesAddResponse is the response for the 'add' method.

func (*DefaultCapabilitiesAddResponse) Body ¶ added in v0.1.412

Body returns the value of the 'body' parameter.

Default capability data.

func (*DefaultCapabilitiesAddResponse) Error ¶ added in v0.1.412

Error returns the response error.

func (*DefaultCapabilitiesAddResponse) GetBody ¶ added in v0.1.412

func (r *DefaultCapabilitiesAddResponse) GetBody() (value *DefaultCapability, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

Default capability data.

func (*DefaultCapabilitiesAddResponse) Header ¶ added in v0.1.412

Header returns header of the response.

func (*DefaultCapabilitiesAddResponse) Status ¶ added in v0.1.412

func (r *DefaultCapabilitiesAddResponse) Status() int

Status returns the response status code.

type DefaultCapabilitiesClient ¶ added in v0.1.412

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

DefaultCapabilitiesClient is the client of the 'default_capabilities' resource.

func NewDefaultCapabilitiesClient ¶ added in v0.1.412

func NewDefaultCapabilitiesClient(transport http.RoundTripper, path string) *DefaultCapabilitiesClient

NewDefaultCapabilitiesClient creates a new client for the 'default_capabilities' resource using the given transport to send the requests and receive the responses.

func (*DefaultCapabilitiesClient) Add ¶ added in v0.1.412

Add creates a request for the 'add' method.

Creates a new default capability.

func (*DefaultCapabilitiesClient) DefaultCapability ¶ added in v0.1.412

func (c *DefaultCapabilitiesClient) DefaultCapability(id string) *DefaultCapabilityClient

DefaultCapability returns the target 'default_capability' resource for the given identifier.

Reference to the service that manages an specific default capability.

func (*DefaultCapabilitiesClient) List ¶ added in v0.1.412

List creates a request for the 'list' method.

Retrieves a list of Dedfault Capabilities.

type DefaultCapabilitiesListRequest ¶ added in v0.1.412

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

DefaultCapabilitiesListRequest is the request for the 'list' method.

func (*DefaultCapabilitiesListRequest) Header ¶ added in v0.1.412

func (r *DefaultCapabilitiesListRequest) Header(name string, value interface{}) *DefaultCapabilitiesListRequest

Header adds a request header.

func (*DefaultCapabilitiesListRequest) Impersonate ¶ added in v0.1.412

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*DefaultCapabilitiesListRequest) Page ¶ added in v0.1.412

Page sets the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*DefaultCapabilitiesListRequest) Parameter ¶ added in v0.1.412

func (r *DefaultCapabilitiesListRequest) Parameter(name string, value interface{}) *DefaultCapabilitiesListRequest

Parameter adds a query parameter.

func (*DefaultCapabilitiesListRequest) Search ¶ added in v0.1.412

Search sets the value of the 'search' parameter.

Search criteria.

The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the organization instead of the names of the columns of a table. For example, in order to retrieve organizations with name starting with my:

```sql name like 'my%' ```

If the parameter isn't provided, or if the value is empty, then all the items that the user has permission to see will be returned.

func (*DefaultCapabilitiesListRequest) Send ¶ added in v0.1.412

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*DefaultCapabilitiesListRequest) SendContext ¶ added in v0.1.412

SendContext sends this request, waits for the response, and returns it.

func (*DefaultCapabilitiesListRequest) Size ¶ added in v0.1.412

Size sets the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

type DefaultCapabilitiesListResponse ¶ added in v0.1.412

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

DefaultCapabilitiesListResponse is the response for the 'list' method.

func (*DefaultCapabilitiesListResponse) Error ¶ added in v0.1.412

Error returns the response error.

func (*DefaultCapabilitiesListResponse) GetItems ¶ added in v0.1.412

func (r *DefaultCapabilitiesListResponse) GetItems() (value *DefaultCapabilityList, ok bool)

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

Retrieved list of Default Capabilities.

func (*DefaultCapabilitiesListResponse) GetPage ¶ added in v0.1.412

func (r *DefaultCapabilitiesListResponse) GetPage() (value int, ok bool)

GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.

Index of the requested page, where one corresponds to the first page.

func (*DefaultCapabilitiesListResponse) GetSize ¶ added in v0.1.412

func (r *DefaultCapabilitiesListResponse) GetSize() (value int, ok bool)

GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.

Maximum number of items that will be contained in the returned page.

func (*DefaultCapabilitiesListResponse) GetTotal ¶ added in v0.1.412

func (r *DefaultCapabilitiesListResponse) GetTotal() (value int, ok bool)

GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

func (*DefaultCapabilitiesListResponse) Header ¶ added in v0.1.412

Header returns header of the response.

func (*DefaultCapabilitiesListResponse) Items ¶ added in v0.1.412

Items returns the value of the 'items' parameter.

Retrieved list of Default Capabilities.

func (*DefaultCapabilitiesListResponse) Page ¶ added in v0.1.412

Page returns the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*DefaultCapabilitiesListResponse) Size ¶ added in v0.1.412

Size returns the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

func (*DefaultCapabilitiesListResponse) Status ¶ added in v0.1.412

Status returns the response status code.

func (*DefaultCapabilitiesListResponse) Total ¶ added in v0.1.412

Total returns the value of the 'total' parameter.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

type DefaultCapability ¶ added in v0.1.412

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

DefaultCapability represents the values of the 'default_capability' type.

func UnmarshalDefaultCapability ¶ added in v0.1.412

func UnmarshalDefaultCapability(source interface{}) (object *DefaultCapability, err error)

UnmarshalDefaultCapability reads a value of the 'default_capability' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalDefaultCapabilityList ¶ added in v0.1.412

func UnmarshalDefaultCapabilityList(source interface{}) (items []*DefaultCapability, err error)

UnmarshalDefaultCapabilityList reads a list of values of the 'default_capability' type from the given source, which can be a slice of bytes, a string or a reader.

func (*DefaultCapability) Empty ¶ added in v0.1.412

func (o *DefaultCapability) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*DefaultCapability) GetName ¶ added in v0.1.412

func (o *DefaultCapability) GetName() (value string, ok bool)

GetName returns the value of the 'name' attribute and a flag indicating if the attribute has a value.

Name of the default capability (the key).

func (*DefaultCapability) GetValue ¶ added in v0.1.412

func (o *DefaultCapability) GetValue() (value string, ok bool)

GetValue returns the value of the 'value' attribute and a flag indicating if the attribute has a value.

Value of the default capability.

func (*DefaultCapability) Name ¶ added in v0.1.412

func (o *DefaultCapability) Name() string

Name returns the value of the 'name' attribute, or the zero value of the type if the attribute doesn't have a value.

Name of the default capability (the key).

func (*DefaultCapability) Value ¶ added in v0.1.412

func (o *DefaultCapability) Value() string

Value returns the value of the 'value' attribute, or the zero value of the type if the attribute doesn't have a value.

Value of the default capability.

type DefaultCapabilityBuilder ¶ added in v0.1.412

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

DefaultCapabilityBuilder contains the data and logic needed to build 'default_capability' objects.

func NewDefaultCapability ¶ added in v0.1.412

func NewDefaultCapability() *DefaultCapabilityBuilder

NewDefaultCapability creates a new builder of 'default_capability' objects.

func (*DefaultCapabilityBuilder) Build ¶ added in v0.1.412

func (b *DefaultCapabilityBuilder) Build() (object *DefaultCapability, err error)

Build creates a 'default_capability' object using the configuration stored in the builder.

func (*DefaultCapabilityBuilder) Copy ¶ added in v0.1.412

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*DefaultCapabilityBuilder) Empty ¶ added in v0.1.412

func (b *DefaultCapabilityBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*DefaultCapabilityBuilder) Name ¶ added in v0.1.412

Name sets the value of the 'name' attribute to the given value.

func (*DefaultCapabilityBuilder) Value ¶ added in v0.1.412

Value sets the value of the 'value' attribute to the given value.

type DefaultCapabilityClient ¶ added in v0.1.412

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

DefaultCapabilityClient is the client of the 'default_capability' resource.

Manages a specific default capability.

func NewDefaultCapabilityClient ¶ added in v0.1.412

func NewDefaultCapabilityClient(transport http.RoundTripper, path string) *DefaultCapabilityClient

NewDefaultCapabilityClient creates a new client for the 'default_capability' resource using the given transport to send the requests and receive the responses.

func (*DefaultCapabilityClient) Delete ¶ added in v0.1.412

Delete creates a request for the 'delete' method.

func (*DefaultCapabilityClient) Get ¶ added in v0.1.412

Get creates a request for the 'get' method.

Retrieves the details of the default capability.

func (*DefaultCapabilityClient) Poll ¶ added in v0.1.412

Poll creates a request to repeatedly retrieve the object till the response has one of a given set of states and satisfies a set of predicates.

func (*DefaultCapabilityClient) Update ¶ added in v0.1.412

Update creates a request for the 'update' method.

Updates the default capability.

type DefaultCapabilityDeleteRequest ¶ added in v0.1.412

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

DefaultCapabilityDeleteRequest is the request for the 'delete' method.

func (*DefaultCapabilityDeleteRequest) Header ¶ added in v0.1.412

func (r *DefaultCapabilityDeleteRequest) Header(name string, value interface{}) *DefaultCapabilityDeleteRequest

Header adds a request header.

func (*DefaultCapabilityDeleteRequest) Impersonate ¶ added in v0.1.412

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*DefaultCapabilityDeleteRequest) Parameter ¶ added in v0.1.412

func (r *DefaultCapabilityDeleteRequest) Parameter(name string, value interface{}) *DefaultCapabilityDeleteRequest

Parameter adds a query parameter.

func (*DefaultCapabilityDeleteRequest) Send ¶ added in v0.1.412

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*DefaultCapabilityDeleteRequest) SendContext ¶ added in v0.1.412

SendContext sends this request, waits for the response, and returns it.

type DefaultCapabilityDeleteResponse ¶ added in v0.1.412

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

DefaultCapabilityDeleteResponse is the response for the 'delete' method.

func (*DefaultCapabilityDeleteResponse) Error ¶ added in v0.1.412

Error returns the response error.

func (*DefaultCapabilityDeleteResponse) Header ¶ added in v0.1.412

Header returns header of the response.

func (*DefaultCapabilityDeleteResponse) Status ¶ added in v0.1.412

Status returns the response status code.

type DefaultCapabilityGetRequest ¶ added in v0.1.412

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

DefaultCapabilityGetRequest is the request for the 'get' method.

func (*DefaultCapabilityGetRequest) Header ¶ added in v0.1.412

func (r *DefaultCapabilityGetRequest) Header(name string, value interface{}) *DefaultCapabilityGetRequest

Header adds a request header.

func (*DefaultCapabilityGetRequest) Impersonate ¶ added in v0.1.412

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*DefaultCapabilityGetRequest) Parameter ¶ added in v0.1.412

func (r *DefaultCapabilityGetRequest) Parameter(name string, value interface{}) *DefaultCapabilityGetRequest

Parameter adds a query parameter.

func (*DefaultCapabilityGetRequest) Send ¶ added in v0.1.412

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*DefaultCapabilityGetRequest) SendContext ¶ added in v0.1.412

SendContext sends this request, waits for the response, and returns it.

type DefaultCapabilityGetResponse ¶ added in v0.1.412

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

DefaultCapabilityGetResponse is the response for the 'get' method.

func (*DefaultCapabilityGetResponse) Body ¶ added in v0.1.412

Body returns the value of the 'body' parameter.

func (*DefaultCapabilityGetResponse) Error ¶ added in v0.1.412

Error returns the response error.

func (*DefaultCapabilityGetResponse) GetBody ¶ added in v0.1.412

func (r *DefaultCapabilityGetResponse) GetBody() (value *DefaultCapability, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*DefaultCapabilityGetResponse) Header ¶ added in v0.1.412

Header returns header of the response.

func (*DefaultCapabilityGetResponse) Status ¶ added in v0.1.412

func (r *DefaultCapabilityGetResponse) Status() int

Status returns the response status code.

type DefaultCapabilityList ¶ added in v0.1.412

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

DefaultCapabilityList is a list of values of the 'default_capability' type.

func (*DefaultCapabilityList) Each ¶ added in v0.1.412

func (l *DefaultCapabilityList) Each(f func(item *DefaultCapability) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*DefaultCapabilityList) Empty ¶ added in v0.1.412

func (l *DefaultCapabilityList) Empty() bool

Empty returns true if the list is empty.

func (*DefaultCapabilityList) Get ¶ added in v0.1.412

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*DefaultCapabilityList) Len ¶ added in v0.1.412

func (l *DefaultCapabilityList) Len() int

Len returns the length of the list.

func (*DefaultCapabilityList) Range ¶ added in v0.1.412

func (l *DefaultCapabilityList) Range(f func(index int, item *DefaultCapability) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*DefaultCapabilityList) Slice ¶ added in v0.1.412

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type DefaultCapabilityListBuilder ¶ added in v0.1.412

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

DefaultCapabilityListBuilder contains the data and logic needed to build 'default_capability' objects.

func NewDefaultCapabilityList ¶ added in v0.1.412

func NewDefaultCapabilityList() *DefaultCapabilityListBuilder

NewDefaultCapabilityList creates a new builder of 'default_capability' objects.

func (*DefaultCapabilityListBuilder) Build ¶ added in v0.1.412

Build creates a list of 'default_capability' objects using the configuration stored in the builder.

func (*DefaultCapabilityListBuilder) Copy ¶ added in v0.1.412

Copy copies the items of the given list into this builder, discarding any previous items.

func (*DefaultCapabilityListBuilder) Empty ¶ added in v0.1.412

Empty returns true if the list is empty.

func (*DefaultCapabilityListBuilder) Items ¶ added in v0.1.412

Items sets the items of the list.

type DefaultCapabilityPollRequest ¶ added in v0.1.412

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

DefaultCapabilityPollRequest is the request for the Poll method.

func (*DefaultCapabilityPollRequest) Header ¶ added in v0.1.412

func (r *DefaultCapabilityPollRequest) Header(name string, value interface{}) *DefaultCapabilityPollRequest

Header adds a request header to all the requests that will be used to retrieve the object.

func (*DefaultCapabilityPollRequest) Interval ¶ added in v0.1.412

Interval sets the polling interval. This parameter is mandatory and must be greater than zero.

func (*DefaultCapabilityPollRequest) Parameter ¶ added in v0.1.412

func (r *DefaultCapabilityPollRequest) Parameter(name string, value interface{}) *DefaultCapabilityPollRequest

Parameter adds a query parameter to all the requests that will be used to retrieve the object.

func (*DefaultCapabilityPollRequest) Predicate ¶ added in v0.1.412

Predicate adds a predicate that the response should satisfy be considered successful. Multiple predicates can be set calling this method multiple times. The response will be considered successful if all the predicates are satisfied.

func (*DefaultCapabilityPollRequest) StartContext ¶ added in v0.1.412

func (r *DefaultCapabilityPollRequest) StartContext(ctx context.Context) (response *DefaultCapabilityPollResponse, err error)

StartContext starts the polling loop. Responses will be considered successful if the status is one of the values specified with the Status method and if all the predicates specified with the Predicate method return nil.

The context must have a timeout or deadline, otherwise this method will immediately return an error.

func (*DefaultCapabilityPollRequest) Status ¶ added in v0.1.412

Status set the expected status of the response. Multiple values can be set calling this method multiple times. The response will be considered successful if the status is any of those values.

type DefaultCapabilityPollResponse ¶ added in v0.1.412

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

DefaultCapabilityPollResponse is the response for the Poll method.

func (*DefaultCapabilityPollResponse) Body ¶ added in v0.1.412

Body returns the value of the 'body' parameter.

func (*DefaultCapabilityPollResponse) Error ¶ added in v0.1.412

Error returns the response error.

func (*DefaultCapabilityPollResponse) GetBody ¶ added in v0.1.412

func (r *DefaultCapabilityPollResponse) GetBody() (value *DefaultCapability, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*DefaultCapabilityPollResponse) Header ¶ added in v0.1.412

Header returns header of the response.

func (*DefaultCapabilityPollResponse) Status ¶ added in v0.1.412

func (r *DefaultCapabilityPollResponse) Status() int

Status returns the response status code.

type DefaultCapabilityUpdateRequest ¶ added in v0.1.412

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

DefaultCapabilityUpdateRequest is the request for the 'update' method.

func (*DefaultCapabilityUpdateRequest) Body ¶ added in v0.1.412

Body sets the value of the 'body' parameter.

func (*DefaultCapabilityUpdateRequest) Header ¶ added in v0.1.412

func (r *DefaultCapabilityUpdateRequest) Header(name string, value interface{}) *DefaultCapabilityUpdateRequest

Header adds a request header.

func (*DefaultCapabilityUpdateRequest) Impersonate ¶ added in v0.1.412

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*DefaultCapabilityUpdateRequest) Parameter ¶ added in v0.1.412

func (r *DefaultCapabilityUpdateRequest) Parameter(name string, value interface{}) *DefaultCapabilityUpdateRequest

Parameter adds a query parameter.

func (*DefaultCapabilityUpdateRequest) Send ¶ added in v0.1.412

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*DefaultCapabilityUpdateRequest) SendContext ¶ added in v0.1.412

SendContext sends this request, waits for the response, and returns it.

type DefaultCapabilityUpdateResponse ¶ added in v0.1.412

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

DefaultCapabilityUpdateResponse is the response for the 'update' method.

func (*DefaultCapabilityUpdateResponse) Body ¶ added in v0.1.412

Body returns the value of the 'body' parameter.

func (*DefaultCapabilityUpdateResponse) Error ¶ added in v0.1.412

Error returns the response error.

func (*DefaultCapabilityUpdateResponse) GetBody ¶ added in v0.1.412

func (r *DefaultCapabilityUpdateResponse) GetBody() (value *DefaultCapability, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*DefaultCapabilityUpdateResponse) Header ¶ added in v0.1.412

Header returns header of the response.

func (*DefaultCapabilityUpdateResponse) Status ¶ added in v0.1.412

Status returns the response status code.

type DeletedSubscription ¶ added in v0.0.329

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

DeletedSubscription represents the values of the 'deleted_subscription' type.

func UnmarshalDeletedSubscription ¶ added in v0.0.329

func UnmarshalDeletedSubscription(source interface{}) (object *DeletedSubscription, err error)

UnmarshalDeletedSubscription reads a value of the 'deleted_subscription' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalDeletedSubscriptionList ¶ added in v0.0.329

func UnmarshalDeletedSubscriptionList(source interface{}) (items []*DeletedSubscription, err error)

UnmarshalDeletedSubscriptionList reads a list of values of the 'deleted_subscription' type from the given source, which can be a slice of bytes, a string or a reader.

func (*DeletedSubscription) BillingExpirationDate ¶ added in v0.0.329

func (o *DeletedSubscription) BillingExpirationDate() time.Time

BillingExpirationDate returns the value of the 'billing_expiration_date' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*DeletedSubscription) BillingMarketplaceAccount ¶ added in v0.0.329

func (o *DeletedSubscription) BillingMarketplaceAccount() string

BillingMarketplaceAccount returns the value of the 'billing_marketplace_account' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*DeletedSubscription) CloudAccountID ¶ added in v0.0.329

func (o *DeletedSubscription) CloudAccountID() string

CloudAccountID returns the value of the 'cloud_account_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*DeletedSubscription) CloudProviderID ¶ added in v0.0.329

func (o *DeletedSubscription) CloudProviderID() string

CloudProviderID returns the value of the 'cloud_provider_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*DeletedSubscription) ClusterBillingModel ¶ added in v0.0.329

func (o *DeletedSubscription) ClusterBillingModel() BillingModel

ClusterBillingModel returns the value of the 'cluster_billing_model' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*DeletedSubscription) ClusterID ¶ added in v0.0.329

func (o *DeletedSubscription) ClusterID() string

ClusterID returns the value of the 'cluster_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*DeletedSubscription) ConsoleURL ¶ added in v0.0.329

func (o *DeletedSubscription) ConsoleURL() string

ConsoleURL returns the value of the 'console_URL' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*DeletedSubscription) ConsumerUUID ¶ added in v0.0.329

func (o *DeletedSubscription) ConsumerUUID() string

ConsumerUUID returns the value of the 'consumer_UUID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*DeletedSubscription) CpuTotal ¶ added in v0.0.329

func (o *DeletedSubscription) CpuTotal() int

CpuTotal returns the value of the 'cpu_total' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*DeletedSubscription) CreatedAt ¶ added in v0.0.329

func (o *DeletedSubscription) CreatedAt() time.Time

CreatedAt returns the value of the 'created_at' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*DeletedSubscription) CreatorId ¶ added in v0.0.329

func (o *DeletedSubscription) CreatorId() string

CreatorId returns the value of the 'creator_id' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*DeletedSubscription) DisplayName ¶ added in v0.0.329

func (o *DeletedSubscription) DisplayName() string

DisplayName returns the value of the 'display_name' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*DeletedSubscription) Empty ¶ added in v0.0.329

func (o *DeletedSubscription) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*DeletedSubscription) ExternalClusterID ¶ added in v0.0.329

func (o *DeletedSubscription) ExternalClusterID() string

ExternalClusterID returns the value of the 'external_cluster_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*DeletedSubscription) GetBillingExpirationDate ¶ added in v0.0.329

func (o *DeletedSubscription) GetBillingExpirationDate() (value time.Time, ok bool)

GetBillingExpirationDate returns the value of the 'billing_expiration_date' attribute and a flag indicating if the attribute has a value.

func (*DeletedSubscription) GetBillingMarketplaceAccount ¶ added in v0.0.329

func (o *DeletedSubscription) GetBillingMarketplaceAccount() (value string, ok bool)

GetBillingMarketplaceAccount returns the value of the 'billing_marketplace_account' attribute and a flag indicating if the attribute has a value.

func (*DeletedSubscription) GetCloudAccountID ¶ added in v0.0.329

func (o *DeletedSubscription) GetCloudAccountID() (value string, ok bool)

GetCloudAccountID returns the value of the 'cloud_account_ID' attribute and a flag indicating if the attribute has a value.

func (*DeletedSubscription) GetCloudProviderID ¶ added in v0.0.329

func (o *DeletedSubscription) GetCloudProviderID() (value string, ok bool)

GetCloudProviderID returns the value of the 'cloud_provider_ID' attribute and a flag indicating if the attribute has a value.

func (*DeletedSubscription) GetClusterBillingModel ¶ added in v0.0.329

func (o *DeletedSubscription) GetClusterBillingModel() (value BillingModel, ok bool)

GetClusterBillingModel returns the value of the 'cluster_billing_model' attribute and a flag indicating if the attribute has a value.

func (*DeletedSubscription) GetClusterID ¶ added in v0.0.329

func (o *DeletedSubscription) GetClusterID() (value string, ok bool)

GetClusterID returns the value of the 'cluster_ID' attribute and a flag indicating if the attribute has a value.

func (*DeletedSubscription) GetConsoleURL ¶ added in v0.0.329

func (o *DeletedSubscription) GetConsoleURL() (value string, ok bool)

GetConsoleURL returns the value of the 'console_URL' attribute and a flag indicating if the attribute has a value.

func (*DeletedSubscription) GetConsumerUUID ¶ added in v0.0.329

func (o *DeletedSubscription) GetConsumerUUID() (value string, ok bool)

GetConsumerUUID returns the value of the 'consumer_UUID' attribute and a flag indicating if the attribute has a value.

func (*DeletedSubscription) GetCpuTotal ¶ added in v0.0.329

func (o *DeletedSubscription) GetCpuTotal() (value int, ok bool)

GetCpuTotal returns the value of the 'cpu_total' attribute and a flag indicating if the attribute has a value.

func (*DeletedSubscription) GetCreatedAt ¶ added in v0.0.329

func (o *DeletedSubscription) GetCreatedAt() (value time.Time, ok bool)

GetCreatedAt returns the value of the 'created_at' attribute and a flag indicating if the attribute has a value.

func (*DeletedSubscription) GetCreatorId ¶ added in v0.0.329

func (o *DeletedSubscription) GetCreatorId() (value string, ok bool)

GetCreatorId returns the value of the 'creator_id' attribute and a flag indicating if the attribute has a value.

func (*DeletedSubscription) GetDisplayName ¶ added in v0.0.329

func (o *DeletedSubscription) GetDisplayName() (value string, ok bool)

GetDisplayName returns the value of the 'display_name' attribute and a flag indicating if the attribute has a value.

func (*DeletedSubscription) GetExternalClusterID ¶ added in v0.0.329

func (o *DeletedSubscription) GetExternalClusterID() (value string, ok bool)

GetExternalClusterID returns the value of the 'external_cluster_ID' attribute and a flag indicating if the attribute has a value.

func (*DeletedSubscription) GetHREF ¶ added in v0.0.329

func (o *DeletedSubscription) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*DeletedSubscription) GetID ¶ added in v0.0.329

func (o *DeletedSubscription) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*DeletedSubscription) GetLastReconcileDate ¶ added in v0.0.329

func (o *DeletedSubscription) GetLastReconcileDate() (value time.Time, ok bool)

GetLastReconcileDate returns the value of the 'last_reconcile_date' attribute and a flag indicating if the attribute has a value.

func (*DeletedSubscription) GetLastReleasedAt ¶ added in v0.0.329

func (o *DeletedSubscription) GetLastReleasedAt() (value time.Time, ok bool)

GetLastReleasedAt returns the value of the 'last_released_at' attribute and a flag indicating if the attribute has a value.

func (*DeletedSubscription) GetLastTelemetryDate ¶ added in v0.0.329

func (o *DeletedSubscription) GetLastTelemetryDate() (value time.Time, ok bool)

GetLastTelemetryDate returns the value of the 'last_telemetry_date' attribute and a flag indicating if the attribute has a value.

func (*DeletedSubscription) GetManaged ¶ added in v0.0.329

func (o *DeletedSubscription) GetManaged() (value bool, ok bool)

GetManaged returns the value of the 'managed' attribute and a flag indicating if the attribute has a value.

func (*DeletedSubscription) GetMetrics ¶ added in v0.0.329

func (o *DeletedSubscription) GetMetrics() (value string, ok bool)

GetMetrics returns the value of the 'metrics' attribute and a flag indicating if the attribute has a value.

func (*DeletedSubscription) GetOrganizationID ¶ added in v0.0.329

func (o *DeletedSubscription) GetOrganizationID() (value string, ok bool)

GetOrganizationID returns the value of the 'organization_ID' attribute and a flag indicating if the attribute has a value.

func (*DeletedSubscription) GetPlanID ¶ added in v0.0.329

func (o *DeletedSubscription) GetPlanID() (value string, ok bool)

GetPlanID returns the value of the 'plan_ID' attribute and a flag indicating if the attribute has a value.

func (*DeletedSubscription) GetProductBundle ¶ added in v0.0.329

func (o *DeletedSubscription) GetProductBundle() (value string, ok bool)

GetProductBundle returns the value of the 'product_bundle' attribute and a flag indicating if the attribute has a value.

func (*DeletedSubscription) GetProvenance ¶ added in v0.0.329

func (o *DeletedSubscription) GetProvenance() (value string, ok bool)

GetProvenance returns the value of the 'provenance' attribute and a flag indicating if the attribute has a value.

func (*DeletedSubscription) GetQueryTimestamp ¶ added in v0.0.329

func (o *DeletedSubscription) GetQueryTimestamp() (value time.Time, ok bool)

GetQueryTimestamp returns the value of the 'query_timestamp' attribute and a flag indicating if the attribute has a value.

func (*DeletedSubscription) GetRegionID ¶ added in v0.0.329

func (o *DeletedSubscription) GetRegionID() (value string, ok bool)

GetRegionID returns the value of the 'region_ID' attribute and a flag indicating if the attribute has a value.

func (*DeletedSubscription) GetReleased ¶ added in v0.0.329

func (o *DeletedSubscription) GetReleased() (value bool, ok bool)

GetReleased returns the value of the 'released' attribute and a flag indicating if the attribute has a value.

func (*DeletedSubscription) GetServiceLevel ¶ added in v0.0.329

func (o *DeletedSubscription) GetServiceLevel() (value string, ok bool)

GetServiceLevel returns the value of the 'service_level' attribute and a flag indicating if the attribute has a value.

func (*DeletedSubscription) GetSocketTotal ¶ added in v0.0.329

func (o *DeletedSubscription) GetSocketTotal() (value int, ok bool)

GetSocketTotal returns the value of the 'socket_total' attribute and a flag indicating if the attribute has a value.

func (*DeletedSubscription) GetStatus ¶ added in v0.0.329

func (o *DeletedSubscription) GetStatus() (value string, ok bool)

GetStatus returns the value of the 'status' attribute and a flag indicating if the attribute has a value.

func (*DeletedSubscription) GetSupportLevel ¶ added in v0.0.329

func (o *DeletedSubscription) GetSupportLevel() (value string, ok bool)

GetSupportLevel returns the value of the 'support_level' attribute and a flag indicating if the attribute has a value.

func (*DeletedSubscription) GetSystemUnits ¶ added in v0.0.329

func (o *DeletedSubscription) GetSystemUnits() (value string, ok bool)

GetSystemUnits returns the value of the 'system_units' attribute and a flag indicating if the attribute has a value.

func (*DeletedSubscription) GetTrialEndDate ¶ added in v0.0.329

func (o *DeletedSubscription) GetTrialEndDate() (value time.Time, ok bool)

GetTrialEndDate returns the value of the 'trial_end_date' attribute and a flag indicating if the attribute has a value.

func (*DeletedSubscription) GetUsage ¶ added in v0.0.329

func (o *DeletedSubscription) GetUsage() (value string, ok bool)

GetUsage returns the value of the 'usage' attribute and a flag indicating if the attribute has a value.

func (*DeletedSubscription) HREF ¶ added in v0.0.329

func (o *DeletedSubscription) HREF() string

HREF returns the link to the object.

func (*DeletedSubscription) ID ¶ added in v0.0.329

func (o *DeletedSubscription) ID() string

ID returns the identifier of the object.

func (*DeletedSubscription) Kind ¶ added in v0.0.329

func (o *DeletedSubscription) Kind() string

Kind returns the name of the type of the object.

func (*DeletedSubscription) LastReconcileDate ¶ added in v0.0.329

func (o *DeletedSubscription) LastReconcileDate() time.Time

LastReconcileDate returns the value of the 'last_reconcile_date' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*DeletedSubscription) LastReleasedAt ¶ added in v0.0.329

func (o *DeletedSubscription) LastReleasedAt() time.Time

LastReleasedAt returns the value of the 'last_released_at' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*DeletedSubscription) LastTelemetryDate ¶ added in v0.0.329

func (o *DeletedSubscription) LastTelemetryDate() time.Time

LastTelemetryDate returns the value of the 'last_telemetry_date' attribute, or the zero value of the type if the attribute doesn't have a value.

func (o *DeletedSubscription) Link() bool

Link returns true iif this is a link.

func (*DeletedSubscription) Managed ¶ added in v0.0.329

func (o *DeletedSubscription) Managed() bool

Managed returns the value of the 'managed' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*DeletedSubscription) Metrics ¶ added in v0.0.329

func (o *DeletedSubscription) Metrics() string

Metrics returns the value of the 'metrics' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*DeletedSubscription) OrganizationID ¶ added in v0.0.329

func (o *DeletedSubscription) OrganizationID() string

OrganizationID returns the value of the 'organization_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*DeletedSubscription) PlanID ¶ added in v0.0.329

func (o *DeletedSubscription) PlanID() string

PlanID returns the value of the 'plan_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*DeletedSubscription) ProductBundle ¶ added in v0.0.329

func (o *DeletedSubscription) ProductBundle() string

ProductBundle returns the value of the 'product_bundle' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*DeletedSubscription) Provenance ¶ added in v0.0.329

func (o *DeletedSubscription) Provenance() string

Provenance returns the value of the 'provenance' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*DeletedSubscription) QueryTimestamp ¶ added in v0.0.329

func (o *DeletedSubscription) QueryTimestamp() time.Time

QueryTimestamp returns the value of the 'query_timestamp' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*DeletedSubscription) RegionID ¶ added in v0.0.329

func (o *DeletedSubscription) RegionID() string

RegionID returns the value of the 'region_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*DeletedSubscription) Released ¶ added in v0.0.329

func (o *DeletedSubscription) Released() bool

Released returns the value of the 'released' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*DeletedSubscription) ServiceLevel ¶ added in v0.0.329

func (o *DeletedSubscription) ServiceLevel() string

ServiceLevel returns the value of the 'service_level' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*DeletedSubscription) SocketTotal ¶ added in v0.0.329

func (o *DeletedSubscription) SocketTotal() int

SocketTotal returns the value of the 'socket_total' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*DeletedSubscription) Status ¶ added in v0.0.329

func (o *DeletedSubscription) Status() string

Status returns the value of the 'status' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*DeletedSubscription) SupportLevel ¶ added in v0.0.329

func (o *DeletedSubscription) SupportLevel() string

SupportLevel returns the value of the 'support_level' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*DeletedSubscription) SystemUnits ¶ added in v0.0.329

func (o *DeletedSubscription) SystemUnits() string

SystemUnits returns the value of the 'system_units' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*DeletedSubscription) TrialEndDate ¶ added in v0.0.329

func (o *DeletedSubscription) TrialEndDate() time.Time

TrialEndDate returns the value of the 'trial_end_date' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*DeletedSubscription) Usage ¶ added in v0.0.329

func (o *DeletedSubscription) Usage() string

Usage returns the value of the 'usage' attribute, or the zero value of the type if the attribute doesn't have a value.

type DeletedSubscriptionBuilder ¶ added in v0.0.329

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

DeletedSubscriptionBuilder contains the data and logic needed to build 'deleted_subscription' objects.

func NewDeletedSubscription ¶ added in v0.0.329

func NewDeletedSubscription() *DeletedSubscriptionBuilder

NewDeletedSubscription creates a new builder of 'deleted_subscription' objects.

func (*DeletedSubscriptionBuilder) BillingExpirationDate ¶ added in v0.0.329

func (b *DeletedSubscriptionBuilder) BillingExpirationDate(value time.Time) *DeletedSubscriptionBuilder

BillingExpirationDate sets the value of the 'billing_expiration_date' attribute to the given value.

func (*DeletedSubscriptionBuilder) BillingMarketplaceAccount ¶ added in v0.0.329

func (b *DeletedSubscriptionBuilder) BillingMarketplaceAccount(value string) *DeletedSubscriptionBuilder

BillingMarketplaceAccount sets the value of the 'billing_marketplace_account' attribute to the given value.

func (*DeletedSubscriptionBuilder) Build ¶ added in v0.0.329

func (b *DeletedSubscriptionBuilder) Build() (object *DeletedSubscription, err error)

Build creates a 'deleted_subscription' object using the configuration stored in the builder.

func (*DeletedSubscriptionBuilder) CloudAccountID ¶ added in v0.0.329

CloudAccountID sets the value of the 'cloud_account_ID' attribute to the given value.

func (*DeletedSubscriptionBuilder) CloudProviderID ¶ added in v0.0.329

CloudProviderID sets the value of the 'cloud_provider_ID' attribute to the given value.

func (*DeletedSubscriptionBuilder) ClusterBillingModel ¶ added in v0.0.329

ClusterBillingModel sets the value of the 'cluster_billing_model' attribute to the given value.

Billing model for subscripiton and reserved_resource resources.

func (*DeletedSubscriptionBuilder) ClusterID ¶ added in v0.0.329

ClusterID sets the value of the 'cluster_ID' attribute to the given value.

func (*DeletedSubscriptionBuilder) ConsoleURL ¶ added in v0.0.329

ConsoleURL sets the value of the 'console_URL' attribute to the given value.

func (*DeletedSubscriptionBuilder) ConsumerUUID ¶ added in v0.0.329

ConsumerUUID sets the value of the 'consumer_UUID' attribute to the given value.

func (*DeletedSubscriptionBuilder) Copy ¶ added in v0.0.329

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*DeletedSubscriptionBuilder) CpuTotal ¶ added in v0.0.329

CpuTotal sets the value of the 'cpu_total' attribute to the given value.

func (*DeletedSubscriptionBuilder) CreatedAt ¶ added in v0.0.329

CreatedAt sets the value of the 'created_at' attribute to the given value.

func (*DeletedSubscriptionBuilder) CreatorId ¶ added in v0.0.329

CreatorId sets the value of the 'creator_id' attribute to the given value.

func (*DeletedSubscriptionBuilder) DisplayName ¶ added in v0.0.329

DisplayName sets the value of the 'display_name' attribute to the given value.

func (*DeletedSubscriptionBuilder) Empty ¶ added in v0.0.329

func (b *DeletedSubscriptionBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*DeletedSubscriptionBuilder) ExternalClusterID ¶ added in v0.0.329

func (b *DeletedSubscriptionBuilder) ExternalClusterID(value string) *DeletedSubscriptionBuilder

ExternalClusterID sets the value of the 'external_cluster_ID' attribute to the given value.

func (*DeletedSubscriptionBuilder) HREF ¶ added in v0.0.329

HREF sets the link to the object.

func (*DeletedSubscriptionBuilder) ID ¶ added in v0.0.329

ID sets the identifier of the object.

func (*DeletedSubscriptionBuilder) LastReconcileDate ¶ added in v0.0.329

func (b *DeletedSubscriptionBuilder) LastReconcileDate(value time.Time) *DeletedSubscriptionBuilder

LastReconcileDate sets the value of the 'last_reconcile_date' attribute to the given value.

func (*DeletedSubscriptionBuilder) LastReleasedAt ¶ added in v0.0.329

LastReleasedAt sets the value of the 'last_released_at' attribute to the given value.

func (*DeletedSubscriptionBuilder) LastTelemetryDate ¶ added in v0.0.329

func (b *DeletedSubscriptionBuilder) LastTelemetryDate(value time.Time) *DeletedSubscriptionBuilder

LastTelemetryDate sets the value of the 'last_telemetry_date' attribute to the given value.

Link sets the flag that indicates if this is a link.

func (*DeletedSubscriptionBuilder) Managed ¶ added in v0.0.329

Managed sets the value of the 'managed' attribute to the given value.

func (*DeletedSubscriptionBuilder) Metrics ¶ added in v0.0.329

Metrics sets the value of the 'metrics' attribute to the given value.

func (*DeletedSubscriptionBuilder) OrganizationID ¶ added in v0.0.329

OrganizationID sets the value of the 'organization_ID' attribute to the given value.

func (*DeletedSubscriptionBuilder) PlanID ¶ added in v0.0.329

PlanID sets the value of the 'plan_ID' attribute to the given value.

func (*DeletedSubscriptionBuilder) ProductBundle ¶ added in v0.0.329

ProductBundle sets the value of the 'product_bundle' attribute to the given value.

func (*DeletedSubscriptionBuilder) Provenance ¶ added in v0.0.329

Provenance sets the value of the 'provenance' attribute to the given value.

func (*DeletedSubscriptionBuilder) QueryTimestamp ¶ added in v0.0.329

QueryTimestamp sets the value of the 'query_timestamp' attribute to the given value.

func (*DeletedSubscriptionBuilder) RegionID ¶ added in v0.0.329

RegionID sets the value of the 'region_ID' attribute to the given value.

func (*DeletedSubscriptionBuilder) Released ¶ added in v0.0.329

Released sets the value of the 'released' attribute to the given value.

func (*DeletedSubscriptionBuilder) ServiceLevel ¶ added in v0.0.329

ServiceLevel sets the value of the 'service_level' attribute to the given value.

func (*DeletedSubscriptionBuilder) SocketTotal ¶ added in v0.0.329

SocketTotal sets the value of the 'socket_total' attribute to the given value.

func (*DeletedSubscriptionBuilder) Status ¶ added in v0.0.329

Status sets the value of the 'status' attribute to the given value.

func (*DeletedSubscriptionBuilder) SupportLevel ¶ added in v0.0.329

SupportLevel sets the value of the 'support_level' attribute to the given value.

func (*DeletedSubscriptionBuilder) SystemUnits ¶ added in v0.0.329

SystemUnits sets the value of the 'system_units' attribute to the given value.

func (*DeletedSubscriptionBuilder) TrialEndDate ¶ added in v0.0.329

TrialEndDate sets the value of the 'trial_end_date' attribute to the given value.

func (*DeletedSubscriptionBuilder) Usage ¶ added in v0.0.329

Usage sets the value of the 'usage' attribute to the given value.

type DeletedSubscriptionList ¶ added in v0.0.329

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

DeletedSubscriptionList is a list of values of the 'deleted_subscription' type.

func (*DeletedSubscriptionList) Each ¶ added in v0.0.329

func (l *DeletedSubscriptionList) Each(f func(item *DeletedSubscription) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*DeletedSubscriptionList) Empty ¶ added in v0.0.329

func (l *DeletedSubscriptionList) Empty() bool

Empty returns true if the list is empty.

func (*DeletedSubscriptionList) Get ¶ added in v0.0.329

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*DeletedSubscriptionList) GetHREF ¶ added in v0.0.329

func (l *DeletedSubscriptionList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*DeletedSubscriptionList) HREF ¶ added in v0.0.329

func (l *DeletedSubscriptionList) HREF() string

HREF returns the link to the list.

func (*DeletedSubscriptionList) Kind ¶ added in v0.0.329

func (l *DeletedSubscriptionList) Kind() string

Kind returns the name of the type of the object.

func (*DeletedSubscriptionList) Len ¶ added in v0.0.329

func (l *DeletedSubscriptionList) Len() int

Len returns the length of the list.

func (l *DeletedSubscriptionList) Link() bool

Link returns true iif this is a link.

func (*DeletedSubscriptionList) Range ¶ added in v0.0.329

func (l *DeletedSubscriptionList) Range(f func(index int, item *DeletedSubscription) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*DeletedSubscriptionList) Slice ¶ added in v0.0.329

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type DeletedSubscriptionListBuilder ¶ added in v0.0.329

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

DeletedSubscriptionListBuilder contains the data and logic needed to build 'deleted_subscription' objects.

func NewDeletedSubscriptionList ¶ added in v0.0.329

func NewDeletedSubscriptionList() *DeletedSubscriptionListBuilder

NewDeletedSubscriptionList creates a new builder of 'deleted_subscription' objects.

func (*DeletedSubscriptionListBuilder) Build ¶ added in v0.0.329

Build creates a list of 'deleted_subscription' objects using the configuration stored in the builder.

func (*DeletedSubscriptionListBuilder) Copy ¶ added in v0.0.329

Copy copies the items of the given list into this builder, discarding any previous items.

func (*DeletedSubscriptionListBuilder) Empty ¶ added in v0.0.329

Empty returns true if the list is empty.

func (*DeletedSubscriptionListBuilder) Items ¶ added in v0.0.329

Items sets the items of the list.

type DeletedSubscriptionsClient ¶ added in v0.0.329

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

DeletedSubscriptionsClient is the client of the 'deleted_subscriptions' resource.

Manages the collection of DeletedSubscriptions.

func NewDeletedSubscriptionsClient ¶ added in v0.0.329

func NewDeletedSubscriptionsClient(transport http.RoundTripper, path string) *DeletedSubscriptionsClient

NewDeletedSubscriptionsClient creates a new client for the 'deleted_subscriptions' resource using the given transport to send the requests and receive the responses.

func (*DeletedSubscriptionsClient) List ¶ added in v0.0.329

List creates a request for the 'list' method.

Retrieves a list of DeletedSubscriptions.

type DeletedSubscriptionsListRequest ¶ added in v0.0.329

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

DeletedSubscriptionsListRequest is the request for the 'list' method.

func (*DeletedSubscriptionsListRequest) Header ¶ added in v0.0.329

func (r *DeletedSubscriptionsListRequest) Header(name string, value interface{}) *DeletedSubscriptionsListRequest

Header adds a request header.

func (*DeletedSubscriptionsListRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*DeletedSubscriptionsListRequest) Order ¶ added in v0.0.329

Order sets the value of the 'order' parameter.

Order criteria.

The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement. For example, in order to sort the DeletedSubscriptions descending by name identifier the value should be:

```sql name desc ```

If the parameter isn't provided, or if the value is empty, then the order of the results is undefined.

func (*DeletedSubscriptionsListRequest) Page ¶ added in v0.0.329

Page sets the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*DeletedSubscriptionsListRequest) Parameter ¶ added in v0.0.329

func (r *DeletedSubscriptionsListRequest) Parameter(name string, value interface{}) *DeletedSubscriptionsListRequest

Parameter adds a query parameter.

func (*DeletedSubscriptionsListRequest) Search ¶ added in v0.0.329

Search sets the value of the 'search' parameter.

Search criteria.

The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the DeletedSubscription instead of the names of the columns of a table. For example, in order to retrieve all the DeletedSubscriptions for managed clusters the value should be:

```sql managed = 't' ```

If the parameter isn't provided, or if the value is empty, then all the clusters that the user has permission to see will be returned.

func (*DeletedSubscriptionsListRequest) Send ¶ added in v0.0.329

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*DeletedSubscriptionsListRequest) SendContext ¶ added in v0.0.329

SendContext sends this request, waits for the response, and returns it.

func (*DeletedSubscriptionsListRequest) Size ¶ added in v0.0.329

Size sets the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

type DeletedSubscriptionsListResponse ¶ added in v0.0.329

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

DeletedSubscriptionsListResponse is the response for the 'list' method.

func (*DeletedSubscriptionsListResponse) Error ¶ added in v0.0.329

Error returns the response error.

func (*DeletedSubscriptionsListResponse) GetItems ¶ added in v0.0.329

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

Retrieved list of DeletedSubscriptions.

func (*DeletedSubscriptionsListResponse) GetPage ¶ added in v0.0.329

func (r *DeletedSubscriptionsListResponse) GetPage() (value int, ok bool)

GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.

Index of the requested page, where one corresponds to the first page.

func (*DeletedSubscriptionsListResponse) GetSize ¶ added in v0.0.329

func (r *DeletedSubscriptionsListResponse) GetSize() (value int, ok bool)

GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.

Maximum number of items that will be contained in the returned page.

func (*DeletedSubscriptionsListResponse) GetTotal ¶ added in v0.0.329

func (r *DeletedSubscriptionsListResponse) GetTotal() (value int, ok bool)

GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

func (*DeletedSubscriptionsListResponse) Header ¶ added in v0.0.329

Header returns header of the response.

func (*DeletedSubscriptionsListResponse) Items ¶ added in v0.0.329

Items returns the value of the 'items' parameter.

Retrieved list of DeletedSubscriptions.

func (*DeletedSubscriptionsListResponse) Page ¶ added in v0.0.329

Page returns the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*DeletedSubscriptionsListResponse) Size ¶ added in v0.0.329

Size returns the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

func (*DeletedSubscriptionsListResponse) Status ¶ added in v0.0.329

Status returns the response status code.

func (*DeletedSubscriptionsListResponse) Total ¶ added in v0.0.329

Total returns the value of the 'total' parameter.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

type FeatureToggle ¶

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

FeatureToggle represents the values of the 'feature_toggle' type.

func UnmarshalFeatureToggle ¶

func UnmarshalFeatureToggle(source interface{}) (object *FeatureToggle, err error)

UnmarshalFeatureToggle reads a value of the 'feature_toggle' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalFeatureToggleList ¶

func UnmarshalFeatureToggleList(source interface{}) (items []*FeatureToggle, err error)

UnmarshalFeatureToggleList reads a list of values of the 'feature_toggle' type from the given source, which can be a slice of bytes, a string or a reader.

func (*FeatureToggle) Empty ¶

func (o *FeatureToggle) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*FeatureToggle) Enabled ¶

func (o *FeatureToggle) Enabled() bool

Enabled returns the value of the 'enabled' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*FeatureToggle) GetEnabled ¶

func (o *FeatureToggle) GetEnabled() (value bool, ok bool)

GetEnabled returns the value of the 'enabled' attribute and a flag indicating if the attribute has a value.

func (*FeatureToggle) GetHREF ¶

func (o *FeatureToggle) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*FeatureToggle) GetID ¶

func (o *FeatureToggle) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*FeatureToggle) HREF ¶

func (o *FeatureToggle) HREF() string

HREF returns the link to the object.

func (*FeatureToggle) ID ¶

func (o *FeatureToggle) ID() string

ID returns the identifier of the object.

func (*FeatureToggle) Kind ¶

func (o *FeatureToggle) Kind() string

Kind returns the name of the type of the object.

func (o *FeatureToggle) Link() bool

Link returns true iif this is a link.

type FeatureToggleBuilder ¶

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

FeatureToggleBuilder contains the data and logic needed to build 'feature_toggle' objects.

func NewFeatureToggle ¶

func NewFeatureToggle() *FeatureToggleBuilder

NewFeatureToggle creates a new builder of 'feature_toggle' objects.

func (*FeatureToggleBuilder) Build ¶

func (b *FeatureToggleBuilder) Build() (object *FeatureToggle, err error)

Build creates a 'feature_toggle' object using the configuration stored in the builder.

func (*FeatureToggleBuilder) Copy ¶

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*FeatureToggleBuilder) Empty ¶ added in v0.0.329

func (b *FeatureToggleBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*FeatureToggleBuilder) Enabled ¶

func (b *FeatureToggleBuilder) Enabled(value bool) *FeatureToggleBuilder

Enabled sets the value of the 'enabled' attribute to the given value.

func (*FeatureToggleBuilder) HREF ¶

HREF sets the link to the object.

func (*FeatureToggleBuilder) ID ¶

ID sets the identifier of the object.

Link sets the flag that indicates if this is a link.

type FeatureToggleClient ¶

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

FeatureToggleClient is the client of the 'feature_toggle' resource.

Manages feature toggle.

func NewFeatureToggleClient ¶

func NewFeatureToggleClient(transport http.RoundTripper, path string) *FeatureToggleClient

NewFeatureToggleClient creates a new client for the 'feature_toggle' resource using the given transport to send the requests and receive the responses.

func (*FeatureToggleClient) Query ¶

Query returns the target 'feature_toggle_query' resource.

type FeatureToggleList ¶

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

FeatureToggleList is a list of values of the 'feature_toggle' type.

func (*FeatureToggleList) Each ¶

func (l *FeatureToggleList) Each(f func(item *FeatureToggle) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*FeatureToggleList) Empty ¶

func (l *FeatureToggleList) Empty() bool

Empty returns true if the list is empty.

func (*FeatureToggleList) Get ¶

func (l *FeatureToggleList) Get(i int) *FeatureToggle

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*FeatureToggleList) GetHREF ¶

func (l *FeatureToggleList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*FeatureToggleList) HREF ¶

func (l *FeatureToggleList) HREF() string

HREF returns the link to the list.

func (*FeatureToggleList) Kind ¶

func (l *FeatureToggleList) Kind() string

Kind returns the name of the type of the object.

func (*FeatureToggleList) Len ¶

func (l *FeatureToggleList) Len() int

Len returns the length of the list.

func (l *FeatureToggleList) Link() bool

Link returns true iif this is a link.

func (*FeatureToggleList) Range ¶

func (l *FeatureToggleList) Range(f func(index int, item *FeatureToggle) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*FeatureToggleList) Slice ¶

func (l *FeatureToggleList) Slice() []*FeatureToggle

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type FeatureToggleListBuilder ¶

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

FeatureToggleListBuilder contains the data and logic needed to build 'feature_toggle' objects.

func NewFeatureToggleList ¶

func NewFeatureToggleList() *FeatureToggleListBuilder

NewFeatureToggleList creates a new builder of 'feature_toggle' objects.

func (*FeatureToggleListBuilder) Build ¶

func (b *FeatureToggleListBuilder) Build() (list *FeatureToggleList, err error)

Build creates a list of 'feature_toggle' objects using the configuration stored in the builder.

func (*FeatureToggleListBuilder) Copy ¶

Copy copies the items of the given list into this builder, discarding any previous items.

func (*FeatureToggleListBuilder) Empty ¶ added in v0.0.329

func (b *FeatureToggleListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*FeatureToggleListBuilder) Items ¶

Items sets the items of the list.

type FeatureToggleQueryClient ¶

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

FeatureToggleQueryClient is the client of the 'feature_toggle_query' resource.

Manages feature toggle query.

func NewFeatureToggleQueryClient ¶

func NewFeatureToggleQueryClient(transport http.RoundTripper, path string) *FeatureToggleQueryClient

NewFeatureToggleQueryClient creates a new client for the 'feature_toggle_query' resource using the given transport to send the requests and receive the responses.

func (*FeatureToggleQueryClient) Post ¶

Post creates a request for the 'post' method.

Retrieves the details of the feature toggle by providing query context

type FeatureToggleQueryPostRequest ¶

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

FeatureToggleQueryPostRequest is the request for the 'post' method.

func (*FeatureToggleQueryPostRequest) Header ¶

func (r *FeatureToggleQueryPostRequest) Header(name string, value interface{}) *FeatureToggleQueryPostRequest

Header adds a request header.

func (*FeatureToggleQueryPostRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*FeatureToggleQueryPostRequest) Parameter ¶

func (r *FeatureToggleQueryPostRequest) Parameter(name string, value interface{}) *FeatureToggleQueryPostRequest

Parameter adds a query parameter.

func (*FeatureToggleQueryPostRequest) Request ¶

Request sets the value of the 'request' parameter.

func (*FeatureToggleQueryPostRequest) Send ¶

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*FeatureToggleQueryPostRequest) SendContext ¶

SendContext sends this request, waits for the response, and returns it.

type FeatureToggleQueryPostResponse ¶

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

FeatureToggleQueryPostResponse is the response for the 'post' method.

func (*FeatureToggleQueryPostResponse) Error ¶

Error returns the response error.

func (*FeatureToggleQueryPostResponse) GetResponse ¶

func (r *FeatureToggleQueryPostResponse) GetResponse() (value *FeatureToggle, ok bool)

GetResponse returns the value of the 'response' parameter and a flag indicating if the parameter has a value.

func (*FeatureToggleQueryPostResponse) Header ¶

Header returns header of the response.

func (*FeatureToggleQueryPostResponse) Response ¶

Response returns the value of the 'response' parameter.

func (*FeatureToggleQueryPostResponse) Status ¶

func (r *FeatureToggleQueryPostResponse) Status() int

Status returns the response status code.

type FeatureToggleQueryRequest ¶

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

FeatureToggleQueryRequest represents the values of the 'feature_toggle_query_request' type.

func UnmarshalFeatureToggleQueryRequest ¶

func UnmarshalFeatureToggleQueryRequest(source interface{}) (object *FeatureToggleQueryRequest, err error)

UnmarshalFeatureToggleQueryRequest reads a value of the 'feature_toggle_query_request' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalFeatureToggleQueryRequestList ¶

func UnmarshalFeatureToggleQueryRequestList(source interface{}) (items []*FeatureToggleQueryRequest, err error)

UnmarshalFeatureToggleQueryRequestList reads a list of values of the 'feature_toggle_query_request' type from the given source, which can be a slice of bytes, a string or a reader.

func (*FeatureToggleQueryRequest) Empty ¶

func (o *FeatureToggleQueryRequest) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*FeatureToggleQueryRequest) GetOrganizationID ¶

func (o *FeatureToggleQueryRequest) GetOrganizationID() (value string, ok bool)

GetOrganizationID returns the value of the 'organization_ID' attribute and a flag indicating if the attribute has a value.

func (*FeatureToggleQueryRequest) OrganizationID ¶

func (o *FeatureToggleQueryRequest) OrganizationID() string

OrganizationID returns the value of the 'organization_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

type FeatureToggleQueryRequestBuilder ¶

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

FeatureToggleQueryRequestBuilder contains the data and logic needed to build 'feature_toggle_query_request' objects.

func NewFeatureToggleQueryRequest ¶

func NewFeatureToggleQueryRequest() *FeatureToggleQueryRequestBuilder

NewFeatureToggleQueryRequest creates a new builder of 'feature_toggle_query_request' objects.

func (*FeatureToggleQueryRequestBuilder) Build ¶

Build creates a 'feature_toggle_query_request' object using the configuration stored in the builder.

func (*FeatureToggleQueryRequestBuilder) Copy ¶

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*FeatureToggleQueryRequestBuilder) Empty ¶ added in v0.0.329

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*FeatureToggleQueryRequestBuilder) OrganizationID ¶

OrganizationID sets the value of the 'organization_ID' attribute to the given value.

type FeatureToggleQueryRequestList ¶

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

FeatureToggleQueryRequestList is a list of values of the 'feature_toggle_query_request' type.

func (*FeatureToggleQueryRequestList) Each ¶

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*FeatureToggleQueryRequestList) Empty ¶

Empty returns true if the list is empty.

func (*FeatureToggleQueryRequestList) Get ¶

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*FeatureToggleQueryRequestList) Len ¶

Len returns the length of the list.

func (*FeatureToggleQueryRequestList) Range ¶

func (l *FeatureToggleQueryRequestList) Range(f func(index int, item *FeatureToggleQueryRequest) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*FeatureToggleQueryRequestList) Slice ¶

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type FeatureToggleQueryRequestListBuilder ¶

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

FeatureToggleQueryRequestListBuilder contains the data and logic needed to build 'feature_toggle_query_request' objects.

func NewFeatureToggleQueryRequestList ¶

func NewFeatureToggleQueryRequestList() *FeatureToggleQueryRequestListBuilder

NewFeatureToggleQueryRequestList creates a new builder of 'feature_toggle_query_request' objects.

func (*FeatureToggleQueryRequestListBuilder) Build ¶

Build creates a list of 'feature_toggle_query_request' objects using the configuration stored in the builder.

func (*FeatureToggleQueryRequestListBuilder) Copy ¶

Copy copies the items of the given list into this builder, discarding any previous items.

func (*FeatureToggleQueryRequestListBuilder) Empty ¶ added in v0.0.329

Empty returns true if the list is empty.

func (*FeatureToggleQueryRequestListBuilder) Items ¶

Items sets the items of the list.

type FeatureTogglesClient ¶

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

FeatureTogglesClient is the client of the 'feature_toggles' resource.

Manages feature toggles.

func NewFeatureTogglesClient ¶

func NewFeatureTogglesClient(transport http.RoundTripper, path string) *FeatureTogglesClient

NewFeatureTogglesClient creates a new client for the 'feature_toggles' resource using the given transport to send the requests and receive the responses.

func (*FeatureTogglesClient) FeatureToggle ¶

func (c *FeatureTogglesClient) FeatureToggle(id string) *FeatureToggleClient

FeatureToggle returns the target 'feature_toggle' resource for the given identifier.

type GenericLabelClient ¶

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

GenericLabelClient is the client of the 'generic_label' resource.

Manages a specific account label.

func NewGenericLabelClient ¶

func NewGenericLabelClient(transport http.RoundTripper, path string) *GenericLabelClient

NewGenericLabelClient creates a new client for the 'generic_label' resource using the given transport to send the requests and receive the responses.

func (*GenericLabelClient) Delete ¶

Delete creates a request for the 'delete' method.

Deletes the account label.

func (*GenericLabelClient) Get ¶

Get creates a request for the 'get' method.

Retrieves the details of the label.

func (*GenericLabelClient) Poll ¶

Poll creates a request to repeatedly retrieve the object till the response has one of a given set of states and satisfies a set of predicates.

func (*GenericLabelClient) Update ¶

Update creates a request for the 'update' method.

Updates the account label.

type GenericLabelDeleteRequest ¶

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

GenericLabelDeleteRequest is the request for the 'delete' method.

func (*GenericLabelDeleteRequest) Header ¶

func (r *GenericLabelDeleteRequest) Header(name string, value interface{}) *GenericLabelDeleteRequest

Header adds a request header.

func (*GenericLabelDeleteRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*GenericLabelDeleteRequest) Parameter ¶

func (r *GenericLabelDeleteRequest) Parameter(name string, value interface{}) *GenericLabelDeleteRequest

Parameter adds a query parameter.

func (*GenericLabelDeleteRequest) Send ¶

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*GenericLabelDeleteRequest) SendContext ¶

func (r *GenericLabelDeleteRequest) SendContext(ctx context.Context) (result *GenericLabelDeleteResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type GenericLabelDeleteResponse ¶

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

GenericLabelDeleteResponse is the response for the 'delete' method.

func (*GenericLabelDeleteResponse) Error ¶

Error returns the response error.

func (*GenericLabelDeleteResponse) Header ¶

Header returns header of the response.

func (*GenericLabelDeleteResponse) Status ¶

func (r *GenericLabelDeleteResponse) Status() int

Status returns the response status code.

type GenericLabelGetRequest ¶

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

GenericLabelGetRequest is the request for the 'get' method.

func (*GenericLabelGetRequest) Header ¶

func (r *GenericLabelGetRequest) Header(name string, value interface{}) *GenericLabelGetRequest

Header adds a request header.

func (*GenericLabelGetRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*GenericLabelGetRequest) Parameter ¶

func (r *GenericLabelGetRequest) Parameter(name string, value interface{}) *GenericLabelGetRequest

Parameter adds a query parameter.

func (*GenericLabelGetRequest) Send ¶

func (r *GenericLabelGetRequest) Send() (result *GenericLabelGetResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*GenericLabelGetRequest) SendContext ¶

func (r *GenericLabelGetRequest) SendContext(ctx context.Context) (result *GenericLabelGetResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type GenericLabelGetResponse ¶

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

GenericLabelGetResponse is the response for the 'get' method.

func (*GenericLabelGetResponse) Body ¶

func (r *GenericLabelGetResponse) Body() *Label

Body returns the value of the 'body' parameter.

func (*GenericLabelGetResponse) Error ¶

func (r *GenericLabelGetResponse) Error() *errors.Error

Error returns the response error.

func (*GenericLabelGetResponse) GetBody ¶

func (r *GenericLabelGetResponse) GetBody() (value *Label, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*GenericLabelGetResponse) Header ¶

func (r *GenericLabelGetResponse) Header() http.Header

Header returns header of the response.

func (*GenericLabelGetResponse) Status ¶

func (r *GenericLabelGetResponse) Status() int

Status returns the response status code.

type GenericLabelPollRequest ¶

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

GenericLabelPollRequest is the request for the Poll method.

func (*GenericLabelPollRequest) Header ¶

func (r *GenericLabelPollRequest) Header(name string, value interface{}) *GenericLabelPollRequest

Header adds a request header to all the requests that will be used to retrieve the object.

func (*GenericLabelPollRequest) Interval ¶

Interval sets the polling interval. This parameter is mandatory and must be greater than zero.

func (*GenericLabelPollRequest) Parameter ¶

func (r *GenericLabelPollRequest) Parameter(name string, value interface{}) *GenericLabelPollRequest

Parameter adds a query parameter to all the requests that will be used to retrieve the object.

func (*GenericLabelPollRequest) Predicate ¶

Predicate adds a predicate that the response should satisfy be considered successful. Multiple predicates can be set calling this method multiple times. The response will be considered successful if all the predicates are satisfied.

func (*GenericLabelPollRequest) StartContext ¶

func (r *GenericLabelPollRequest) StartContext(ctx context.Context) (response *GenericLabelPollResponse, err error)

StartContext starts the polling loop. Responses will be considered successful if the status is one of the values specified with the Status method and if all the predicates specified with the Predicate method return nil.

The context must have a timeout or deadline, otherwise this method will immediately return an error.

func (*GenericLabelPollRequest) Status ¶

Status set the expected status of the response. Multiple values can be set calling this method multiple times. The response will be considered successful if the status is any of those values.

type GenericLabelPollResponse ¶

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

GenericLabelPollResponse is the response for the Poll method.

func (*GenericLabelPollResponse) Body ¶

func (r *GenericLabelPollResponse) Body() *Label

Body returns the value of the 'body' parameter.

func (*GenericLabelPollResponse) Error ¶

Error returns the response error.

func (*GenericLabelPollResponse) GetBody ¶

func (r *GenericLabelPollResponse) GetBody() (value *Label, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*GenericLabelPollResponse) Header ¶

func (r *GenericLabelPollResponse) Header() http.Header

Header returns header of the response.

func (*GenericLabelPollResponse) Status ¶

func (r *GenericLabelPollResponse) Status() int

Status returns the response status code.

type GenericLabelUpdateRequest ¶

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

GenericLabelUpdateRequest is the request for the 'update' method.

func (*GenericLabelUpdateRequest) Body ¶

Body sets the value of the 'body' parameter.

func (*GenericLabelUpdateRequest) Header ¶

func (r *GenericLabelUpdateRequest) Header(name string, value interface{}) *GenericLabelUpdateRequest

Header adds a request header.

func (*GenericLabelUpdateRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*GenericLabelUpdateRequest) Parameter ¶

func (r *GenericLabelUpdateRequest) Parameter(name string, value interface{}) *GenericLabelUpdateRequest

Parameter adds a query parameter.

func (*GenericLabelUpdateRequest) Send ¶

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*GenericLabelUpdateRequest) SendContext ¶

func (r *GenericLabelUpdateRequest) SendContext(ctx context.Context) (result *GenericLabelUpdateResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type GenericLabelUpdateResponse ¶

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

GenericLabelUpdateResponse is the response for the 'update' method.

func (*GenericLabelUpdateResponse) Body ¶

func (r *GenericLabelUpdateResponse) Body() *Label

Body returns the value of the 'body' parameter.

func (*GenericLabelUpdateResponse) Error ¶

Error returns the response error.

func (*GenericLabelUpdateResponse) GetBody ¶

func (r *GenericLabelUpdateResponse) GetBody() (value *Label, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*GenericLabelUpdateResponse) Header ¶

Header returns header of the response.

func (*GenericLabelUpdateResponse) Status ¶

func (r *GenericLabelUpdateResponse) Status() int

Status returns the response status code.

type GenericLabelsAddRequest ¶

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

GenericLabelsAddRequest is the request for the 'add' method.

func (*GenericLabelsAddRequest) Body ¶

Body sets the value of the 'body' parameter.

Label

func (*GenericLabelsAddRequest) Header ¶

func (r *GenericLabelsAddRequest) Header(name string, value interface{}) *GenericLabelsAddRequest

Header adds a request header.

func (*GenericLabelsAddRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*GenericLabelsAddRequest) Parameter ¶

func (r *GenericLabelsAddRequest) Parameter(name string, value interface{}) *GenericLabelsAddRequest

Parameter adds a query parameter.

func (*GenericLabelsAddRequest) Send ¶

func (r *GenericLabelsAddRequest) Send() (result *GenericLabelsAddResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*GenericLabelsAddRequest) SendContext ¶

func (r *GenericLabelsAddRequest) SendContext(ctx context.Context) (result *GenericLabelsAddResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type GenericLabelsAddResponse ¶

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

GenericLabelsAddResponse is the response for the 'add' method.

func (*GenericLabelsAddResponse) Body ¶

func (r *GenericLabelsAddResponse) Body() *Label

Body returns the value of the 'body' parameter.

Label

func (*GenericLabelsAddResponse) Error ¶

Error returns the response error.

func (*GenericLabelsAddResponse) GetBody ¶

func (r *GenericLabelsAddResponse) GetBody() (value *Label, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

Label

func (*GenericLabelsAddResponse) Header ¶

func (r *GenericLabelsAddResponse) Header() http.Header

Header returns header of the response.

func (*GenericLabelsAddResponse) Status ¶

func (r *GenericLabelsAddResponse) Status() int

Status returns the response status code.

type GenericLabelsClient ¶

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

GenericLabelsClient is the client of the 'generic_labels' resource.

Manages the collection of labels of an account/organization/subscription.

func NewGenericLabelsClient ¶

func NewGenericLabelsClient(transport http.RoundTripper, path string) *GenericLabelsClient

NewGenericLabelsClient creates a new client for the 'generic_labels' resource using the given transport to send the requests and receive the responses.

func (*GenericLabelsClient) Add ¶

Add creates a request for the 'add' method.

Create a new account/organization/subscription label.

func (*GenericLabelsClient) Label ¶ added in v0.0.329

Label returns the target 'generic_label' resource for the given identifier.

Reference to the label of a specific account/organization/subscription for the given key.

func (*GenericLabelsClient) Labels ¶

Labels returns the target 'generic_label' resource for the given identifier.

Reference to the labels of a specific account/organization/subscription.

func (*GenericLabelsClient) List ¶

List creates a request for the 'list' method.

Retrieves the list of labels of the account/organization/subscription.

IMPORTANT: This collection doesn't currently support paging or searching, so the returned `page` will always be 1 and `size` and `total` will always be the total number of labels of the account/organization/subscription.

type GenericLabelsListRequest ¶

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

GenericLabelsListRequest is the request for the 'list' method.

func (*GenericLabelsListRequest) Header ¶

func (r *GenericLabelsListRequest) Header(name string, value interface{}) *GenericLabelsListRequest

Header adds a request header.

func (*GenericLabelsListRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*GenericLabelsListRequest) Page ¶

Page sets the value of the 'page' parameter.

Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`.

func (*GenericLabelsListRequest) Parameter ¶

func (r *GenericLabelsListRequest) Parameter(name string, value interface{}) *GenericLabelsListRequest

Parameter adds a query parameter.

func (*GenericLabelsListRequest) Send ¶

func (r *GenericLabelsListRequest) Send() (result *GenericLabelsListResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*GenericLabelsListRequest) SendContext ¶

func (r *GenericLabelsListRequest) SendContext(ctx context.Context) (result *GenericLabelsListResponse, err error)

SendContext sends this request, waits for the response, and returns it.

func (*GenericLabelsListRequest) Size ¶

Size sets the value of the 'size' parameter.

Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of labels of the account/organization/subscription.

type GenericLabelsListResponse ¶

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

GenericLabelsListResponse is the response for the 'list' method.

func (*GenericLabelsListResponse) Error ¶

Error returns the response error.

func (*GenericLabelsListResponse) GetItems ¶

func (r *GenericLabelsListResponse) GetItems() (value *LabelList, ok bool)

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

Retrieved list of cloud providers.

func (*GenericLabelsListResponse) GetPage ¶

func (r *GenericLabelsListResponse) GetPage() (value int, ok bool)

GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.

Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`.

func (*GenericLabelsListResponse) GetSize ¶

func (r *GenericLabelsListResponse) GetSize() (value int, ok bool)

GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.

Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of labels of the account/organization/subscription.

func (*GenericLabelsListResponse) GetTotal ¶

func (r *GenericLabelsListResponse) GetTotal() (value int, ok bool)

GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.

Total number of items of the collection that match the search criteria, regardless of the size of the page. As this collection doesn't support paging or searching the result will always be the total number of labels of the account/organization/subscription.

func (*GenericLabelsListResponse) Header ¶

Header returns header of the response.

func (*GenericLabelsListResponse) Items ¶

Items returns the value of the 'items' parameter.

Retrieved list of cloud providers.

func (*GenericLabelsListResponse) Page ¶

func (r *GenericLabelsListResponse) Page() int

Page returns the value of the 'page' parameter.

Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`.

func (*GenericLabelsListResponse) Size ¶

func (r *GenericLabelsListResponse) Size() int

Size returns the value of the 'size' parameter.

Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of labels of the account/organization/subscription.

func (*GenericLabelsListResponse) Status ¶

func (r *GenericLabelsListResponse) Status() int

Status returns the response status code.

func (*GenericLabelsListResponse) Total ¶

func (r *GenericLabelsListResponse) Total() int

Total returns the value of the 'total' parameter.

Total number of items of the collection that match the search criteria, regardless of the size of the page. As this collection doesn't support paging or searching the result will always be the total number of labels of the account/organization/subscription.

type GenericNotifyDetailsResponse ¶ added in v0.1.392

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

GenericNotifyDetailsResponse represents the values of the 'generic_notify_details_response' type.

class that defines notify details response in general.

func UnmarshalGenericNotifyDetailsResponse ¶ added in v0.1.392

func UnmarshalGenericNotifyDetailsResponse(source interface{}) (object *GenericNotifyDetailsResponse, err error)

UnmarshalGenericNotifyDetailsResponse reads a value of the 'generic_notify_details_response' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalGenericNotifyDetailsResponseList ¶ added in v0.1.392

func UnmarshalGenericNotifyDetailsResponseList(source interface{}) (items []*GenericNotifyDetailsResponse, err error)

UnmarshalGenericNotifyDetailsResponseList reads a list of values of the 'generic_notify_details_response' type from the given source, which can be a slice of bytes, a string or a reader.

func (*GenericNotifyDetailsResponse) Associates ¶ added in v0.1.392

func (o *GenericNotifyDetailsResponse) Associates() []string

Associates returns the value of the 'associates' attribute, or the zero value of the type if the attribute doesn't have a value.

Retrieved List of associates email address.

func (*GenericNotifyDetailsResponse) Empty ¶ added in v0.1.392

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*GenericNotifyDetailsResponse) GetAssociates ¶ added in v0.1.392

func (o *GenericNotifyDetailsResponse) GetAssociates() (value []string, ok bool)

GetAssociates returns the value of the 'associates' attribute and a flag indicating if the attribute has a value.

Retrieved List of associates email address.

func (*GenericNotifyDetailsResponse) GetHREF ¶ added in v0.1.392

func (o *GenericNotifyDetailsResponse) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*GenericNotifyDetailsResponse) GetID ¶ added in v0.1.392

func (o *GenericNotifyDetailsResponse) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*GenericNotifyDetailsResponse) GetItems ¶ added in v0.1.392

func (o *GenericNotifyDetailsResponse) GetItems() (value []*NotificationDetailsResponse, ok bool)

GetItems returns the value of the 'items' attribute and a flag indicating if the attribute has a value.

Retrieved list of additional notify details parameters key-value.

func (*GenericNotifyDetailsResponse) GetRecipients ¶ added in v0.1.392

func (o *GenericNotifyDetailsResponse) GetRecipients() (value []string, ok bool)

GetRecipients returns the value of the 'recipients' attribute and a flag indicating if the attribute has a value.

Retrieved List of recipients username.

func (*GenericNotifyDetailsResponse) HREF ¶ added in v0.1.392

HREF returns the link to the object.

func (*GenericNotifyDetailsResponse) ID ¶ added in v0.1.392

ID returns the identifier of the object.

func (*GenericNotifyDetailsResponse) Items ¶ added in v0.1.392

Items returns the value of the 'items' attribute, or the zero value of the type if the attribute doesn't have a value.

Retrieved list of additional notify details parameters key-value.

func (*GenericNotifyDetailsResponse) Kind ¶ added in v0.1.392

Kind returns the name of the type of the object.

Link returns true iif this is a link.

func (*GenericNotifyDetailsResponse) Recipients ¶ added in v0.1.392

func (o *GenericNotifyDetailsResponse) Recipients() []string

Recipients returns the value of the 'recipients' attribute, or the zero value of the type if the attribute doesn't have a value.

Retrieved List of recipients username.

type GenericNotifyDetailsResponseBuilder ¶ added in v0.1.392

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

GenericNotifyDetailsResponseBuilder contains the data and logic needed to build 'generic_notify_details_response' objects.

class that defines notify details response in general.

func NewGenericNotifyDetailsResponse ¶ added in v0.1.392

func NewGenericNotifyDetailsResponse() *GenericNotifyDetailsResponseBuilder

NewGenericNotifyDetailsResponse creates a new builder of 'generic_notify_details_response' objects.

func (*GenericNotifyDetailsResponseBuilder) Associates ¶ added in v0.1.392

Associates sets the value of the 'associates' attribute to the given values.

func (*GenericNotifyDetailsResponseBuilder) Build ¶ added in v0.1.392

Build creates a 'generic_notify_details_response' object using the configuration stored in the builder.

func (*GenericNotifyDetailsResponseBuilder) Copy ¶ added in v0.1.392

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*GenericNotifyDetailsResponseBuilder) Empty ¶ added in v0.1.392

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*GenericNotifyDetailsResponseBuilder) HREF ¶ added in v0.1.392

HREF sets the link to the object.

func (*GenericNotifyDetailsResponseBuilder) ID ¶ added in v0.1.392

ID sets the identifier of the object.

func (*GenericNotifyDetailsResponseBuilder) Items ¶ added in v0.1.392

Items sets the value of the 'items' attribute to the given values.

Link sets the flag that indicates if this is a link.

func (*GenericNotifyDetailsResponseBuilder) Recipients ¶ added in v0.1.392

Recipients sets the value of the 'recipients' attribute to the given values.

type GenericNotifyDetailsResponseList ¶ added in v0.1.392

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

GenericNotifyDetailsResponseList is a list of values of the 'generic_notify_details_response' type.

func (*GenericNotifyDetailsResponseList) Each ¶ added in v0.1.392

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*GenericNotifyDetailsResponseList) Empty ¶ added in v0.1.392

Empty returns true if the list is empty.

func (*GenericNotifyDetailsResponseList) Get ¶ added in v0.1.392

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*GenericNotifyDetailsResponseList) GetHREF ¶ added in v0.1.392

func (l *GenericNotifyDetailsResponseList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*GenericNotifyDetailsResponseList) HREF ¶ added in v0.1.392

HREF returns the link to the list.

func (*GenericNotifyDetailsResponseList) Kind ¶ added in v0.1.392

Kind returns the name of the type of the object.

func (*GenericNotifyDetailsResponseList) Len ¶ added in v0.1.392

Len returns the length of the list.

Link returns true iif this is a link.

func (*GenericNotifyDetailsResponseList) Range ¶ added in v0.1.392

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*GenericNotifyDetailsResponseList) Slice ¶ added in v0.1.392

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type GenericNotifyDetailsResponseListBuilder ¶ added in v0.1.392

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

GenericNotifyDetailsResponseListBuilder contains the data and logic needed to build 'generic_notify_details_response' objects.

func NewGenericNotifyDetailsResponseList ¶ added in v0.1.392

func NewGenericNotifyDetailsResponseList() *GenericNotifyDetailsResponseListBuilder

NewGenericNotifyDetailsResponseList creates a new builder of 'generic_notify_details_response' objects.

func (*GenericNotifyDetailsResponseListBuilder) Build ¶ added in v0.1.392

Build creates a list of 'generic_notify_details_response' objects using the configuration stored in the builder.

func (*GenericNotifyDetailsResponseListBuilder) Copy ¶ added in v0.1.392

Copy copies the items of the given list into this builder, discarding any previous items.

func (*GenericNotifyDetailsResponseListBuilder) Empty ¶ added in v0.1.392

Empty returns true if the list is empty.

func (*GenericNotifyDetailsResponseListBuilder) Items ¶ added in v0.1.392

Items sets the items of the list.

type Label ¶

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

Label represents the values of the 'label' type.

func UnmarshalLabel ¶

func UnmarshalLabel(source interface{}) (object *Label, err error)

UnmarshalLabel reads a value of the 'label' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalLabelList ¶

func UnmarshalLabelList(source interface{}) (items []*Label, err error)

UnmarshalLabelList reads a list of values of the 'label' type from the given source, which can be a slice of bytes, a string or a reader.

func (*Label) AccountID ¶ added in v0.0.329

func (o *Label) AccountID() string

AccountID returns the value of the 'account_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Label) CreatedAt ¶

func (o *Label) CreatedAt() time.Time

CreatedAt returns the value of the 'created_at' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Label) Empty ¶

func (o *Label) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*Label) GetAccountID ¶ added in v0.0.329

func (o *Label) GetAccountID() (value string, ok bool)

GetAccountID returns the value of the 'account_ID' attribute and a flag indicating if the attribute has a value.

func (*Label) GetCreatedAt ¶

func (o *Label) GetCreatedAt() (value time.Time, ok bool)

GetCreatedAt returns the value of the 'created_at' attribute and a flag indicating if the attribute has a value.

func (*Label) GetHREF ¶

func (o *Label) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*Label) GetID ¶

func (o *Label) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*Label) GetInternal ¶

func (o *Label) GetInternal() (value bool, ok bool)

GetInternal returns the value of the 'internal' attribute and a flag indicating if the attribute has a value.

func (*Label) GetKey ¶

func (o *Label) GetKey() (value string, ok bool)

GetKey returns the value of the 'key' attribute and a flag indicating if the attribute has a value.

func (*Label) GetManagedBy ¶ added in v0.0.329

func (o *Label) GetManagedBy() (value string, ok bool)

GetManagedBy returns the value of the 'managed_by' attribute and a flag indicating if the attribute has a value.

func (*Label) GetOrganizationID ¶ added in v0.0.329

func (o *Label) GetOrganizationID() (value string, ok bool)

GetOrganizationID returns the value of the 'organization_ID' attribute and a flag indicating if the attribute has a value.

func (*Label) GetSubscriptionID ¶ added in v0.0.329

func (o *Label) GetSubscriptionID() (value string, ok bool)

GetSubscriptionID returns the value of the 'subscription_ID' attribute and a flag indicating if the attribute has a value.

func (*Label) GetType ¶ added in v0.0.329

func (o *Label) GetType() (value string, ok bool)

GetType returns the value of the 'type' attribute and a flag indicating if the attribute has a value.

func (*Label) GetUpdatedAt ¶

func (o *Label) GetUpdatedAt() (value time.Time, ok bool)

GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.

func (*Label) GetValue ¶

func (o *Label) GetValue() (value string, ok bool)

GetValue returns the value of the 'value' attribute and a flag indicating if the attribute has a value.

func (*Label) HREF ¶

func (o *Label) HREF() string

HREF returns the link to the object.

func (*Label) ID ¶

func (o *Label) ID() string

ID returns the identifier of the object.

func (*Label) Internal ¶

func (o *Label) Internal() bool

Internal returns the value of the 'internal' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Label) Key ¶

func (o *Label) Key() string

Key returns the value of the 'key' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Label) Kind ¶

func (o *Label) Kind() string

Kind returns the name of the type of the object.

func (o *Label) Link() bool

Link returns true iif this is a link.

func (*Label) ManagedBy ¶ added in v0.0.329

func (o *Label) ManagedBy() string

ManagedBy returns the value of the 'managed_by' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Label) OrganizationID ¶ added in v0.0.329

func (o *Label) OrganizationID() string

OrganizationID returns the value of the 'organization_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Label) SubscriptionID ¶ added in v0.0.329

func (o *Label) SubscriptionID() string

SubscriptionID returns the value of the 'subscription_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Label) Type ¶ added in v0.0.329

func (o *Label) Type() string

Type returns the value of the 'type' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Label) UpdatedAt ¶

func (o *Label) UpdatedAt() time.Time

UpdatedAt returns the value of the 'updated_at' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Label) Value ¶

func (o *Label) Value() string

Value returns the value of the 'value' attribute, or the zero value of the type if the attribute doesn't have a value.

type LabelBuilder ¶

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

LabelBuilder contains the data and logic needed to build 'label' objects.

func NewLabel ¶

func NewLabel() *LabelBuilder

NewLabel creates a new builder of 'label' objects.

func (*LabelBuilder) AccountID ¶ added in v0.0.329

func (b *LabelBuilder) AccountID(value string) *LabelBuilder

AccountID sets the value of the 'account_ID' attribute to the given value.

func (*LabelBuilder) Build ¶

func (b *LabelBuilder) Build() (object *Label, err error)

Build creates a 'label' object using the configuration stored in the builder.

func (*LabelBuilder) Copy ¶

func (b *LabelBuilder) Copy(object *Label) *LabelBuilder

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*LabelBuilder) CreatedAt ¶

func (b *LabelBuilder) CreatedAt(value time.Time) *LabelBuilder

CreatedAt sets the value of the 'created_at' attribute to the given value.

func (*LabelBuilder) Empty ¶ added in v0.0.329

func (b *LabelBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*LabelBuilder) HREF ¶

func (b *LabelBuilder) HREF(value string) *LabelBuilder

HREF sets the link to the object.

func (*LabelBuilder) ID ¶

func (b *LabelBuilder) ID(value string) *LabelBuilder

ID sets the identifier of the object.

func (*LabelBuilder) Internal ¶

func (b *LabelBuilder) Internal(value bool) *LabelBuilder

Internal sets the value of the 'internal' attribute to the given value.

func (*LabelBuilder) Key ¶

func (b *LabelBuilder) Key(value string) *LabelBuilder

Key sets the value of the 'key' attribute to the given value.

func (b *LabelBuilder) Link(value bool) *LabelBuilder

Link sets the flag that indicates if this is a link.

func (*LabelBuilder) ManagedBy ¶ added in v0.0.329

func (b *LabelBuilder) ManagedBy(value string) *LabelBuilder

ManagedBy sets the value of the 'managed_by' attribute to the given value.

func (*LabelBuilder) OrganizationID ¶ added in v0.0.329

func (b *LabelBuilder) OrganizationID(value string) *LabelBuilder

OrganizationID sets the value of the 'organization_ID' attribute to the given value.

func (*LabelBuilder) SubscriptionID ¶ added in v0.0.329

func (b *LabelBuilder) SubscriptionID(value string) *LabelBuilder

SubscriptionID sets the value of the 'subscription_ID' attribute to the given value.

func (*LabelBuilder) Type ¶ added in v0.0.329

func (b *LabelBuilder) Type(value string) *LabelBuilder

Type sets the value of the 'type' attribute to the given value.

func (*LabelBuilder) UpdatedAt ¶

func (b *LabelBuilder) UpdatedAt(value time.Time) *LabelBuilder

UpdatedAt sets the value of the 'updated_at' attribute to the given value.

func (*LabelBuilder) Value ¶

func (b *LabelBuilder) Value(value string) *LabelBuilder

Value sets the value of the 'value' attribute to the given value.

type LabelList ¶

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

LabelList is a list of values of the 'label' type.

func (*LabelList) Each ¶

func (l *LabelList) Each(f func(item *Label) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*LabelList) Empty ¶

func (l *LabelList) Empty() bool

Empty returns true if the list is empty.

func (*LabelList) Get ¶

func (l *LabelList) Get(i int) *Label

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*LabelList) GetHREF ¶

func (l *LabelList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*LabelList) HREF ¶

func (l *LabelList) HREF() string

HREF returns the link to the list.

func (*LabelList) Kind ¶

func (l *LabelList) Kind() string

Kind returns the name of the type of the object.

func (*LabelList) Len ¶

func (l *LabelList) Len() int

Len returns the length of the list.

func (l *LabelList) Link() bool

Link returns true iif this is a link.

func (*LabelList) Range ¶

func (l *LabelList) Range(f func(index int, item *Label) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*LabelList) Slice ¶

func (l *LabelList) Slice() []*Label

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type LabelListBuilder ¶

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

LabelListBuilder contains the data and logic needed to build 'label' objects.

func NewLabelList ¶

func NewLabelList() *LabelListBuilder

NewLabelList creates a new builder of 'label' objects.

func (*LabelListBuilder) Build ¶

func (b *LabelListBuilder) Build() (list *LabelList, err error)

Build creates a list of 'label' objects using the configuration stored in the builder.

func (*LabelListBuilder) Copy ¶

Copy copies the items of the given list into this builder, discarding any previous items.

func (*LabelListBuilder) Empty ¶ added in v0.0.329

func (b *LabelListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*LabelListBuilder) Items ¶

func (b *LabelListBuilder) Items(values ...*LabelBuilder) *LabelListBuilder

Items sets the items of the list.

type LabelsClient ¶

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

LabelsClient is the client of the 'labels' resource.

Manages the collection of labels.

func NewLabelsClient ¶

func NewLabelsClient(transport http.RoundTripper, path string) *LabelsClient

NewLabelsClient creates a new client for the 'labels' resource using the given transport to send the requests and receive the responses.

func (*LabelsClient) List ¶

func (c *LabelsClient) List() *LabelsListRequest

List creates a request for the 'list' method.

Retrieves a list of labels.

type LabelsListRequest ¶

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

LabelsListRequest is the request for the 'list' method.

func (*LabelsListRequest) Header ¶

func (r *LabelsListRequest) Header(name string, value interface{}) *LabelsListRequest

Header adds a request header.

func (*LabelsListRequest) Impersonate ¶ added in v0.0.329

func (r *LabelsListRequest) Impersonate(user string) *LabelsListRequest

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*LabelsListRequest) Page ¶

func (r *LabelsListRequest) Page(value int) *LabelsListRequest

Page sets the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*LabelsListRequest) Parameter ¶

func (r *LabelsListRequest) Parameter(name string, value interface{}) *LabelsListRequest

Parameter adds a query parameter.

func (*LabelsListRequest) Search ¶

func (r *LabelsListRequest) Search(value string) *LabelsListRequest

Search sets the value of the 'search' parameter.

Search criteria.

The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the organization instead of the names of the columns of a table. For example, in order to retrieve labels with name starting with my:

```sql name like 'my%' ```

If the parameter isn't provided, or if the value is empty, then all the items that the user has permission to see will be returned.

func (*LabelsListRequest) Send ¶

func (r *LabelsListRequest) Send() (result *LabelsListResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*LabelsListRequest) SendContext ¶

func (r *LabelsListRequest) SendContext(ctx context.Context) (result *LabelsListResponse, err error)

SendContext sends this request, waits for the response, and returns it.

func (*LabelsListRequest) Size ¶

func (r *LabelsListRequest) Size(value int) *LabelsListRequest

Size sets the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

type LabelsListResponse ¶

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

LabelsListResponse is the response for the 'list' method.

func (*LabelsListResponse) Error ¶

func (r *LabelsListResponse) Error() *errors.Error

Error returns the response error.

func (*LabelsListResponse) GetItems ¶

func (r *LabelsListResponse) GetItems() (value *LabelList, ok bool)

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

Retrieved list of labels.

func (*LabelsListResponse) GetPage ¶

func (r *LabelsListResponse) GetPage() (value int, ok bool)

GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.

Index of the requested page, where one corresponds to the first page.

func (*LabelsListResponse) GetSize ¶

func (r *LabelsListResponse) GetSize() (value int, ok bool)

GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.

Maximum number of items that will be contained in the returned page.

func (*LabelsListResponse) GetTotal ¶

func (r *LabelsListResponse) GetTotal() (value int, ok bool)

GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

func (*LabelsListResponse) Header ¶

func (r *LabelsListResponse) Header() http.Header

Header returns header of the response.

func (*LabelsListResponse) Items ¶

func (r *LabelsListResponse) Items() *LabelList

Items returns the value of the 'items' parameter.

Retrieved list of labels.

func (*LabelsListResponse) Page ¶

func (r *LabelsListResponse) Page() int

Page returns the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*LabelsListResponse) Size ¶

func (r *LabelsListResponse) Size() int

Size returns the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

func (*LabelsListResponse) Status ¶

func (r *LabelsListResponse) Status() int

Status returns the response status code.

func (*LabelsListResponse) Total ¶

func (r *LabelsListResponse) Total() int

Total returns the value of the 'total' parameter.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

type Metadata ¶

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

Metadata contains the version metadata.

func UnmarshalMetadata ¶

func UnmarshalMetadata(source interface{}) (object *Metadata, err error)

UnmarshalMetadata reads a value of the metadata type from the given source, which which can be a reader, a slice of byte or a string.

func (*Metadata) GetServerVersion ¶

func (m *Metadata) GetServerVersion() (value string, ok bool)

GetServerVersion returns the value of the server version and a flag indicating if the attribute has a value.

func (*Metadata) ServerVersion ¶

func (m *Metadata) ServerVersion() string

ServerVersion returns the version of the server.

type MetadataRequest ¶

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

MetadataRequest is the request to retrieve the metadata.

func (*MetadataRequest) Header ¶

func (r *MetadataRequest) Header(name string, value interface{}) *MetadataRequest

Header adds a request header.

func (*MetadataRequest) Parameter ¶

func (r *MetadataRequest) Parameter(name string, value interface{}) *MetadataRequest

Parameter adds a query parameter.

func (*MetadataRequest) Send ¶

func (r *MetadataRequest) Send() (result *MetadataResponse, err error)

Send sends the metadata request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*MetadataRequest) SendContext ¶

func (r *MetadataRequest) SendContext(ctx context.Context) (result *MetadataResponse, err error)

SendContext sends the metadata request, waits for the response, and returns it.

type MetadataResponse ¶

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

MetadataResponse is the response for the metadata request.

func (*MetadataResponse) Body ¶

func (r *MetadataResponse) Body() *Metadata

Body returns the response body.

func (*MetadataResponse) Error ¶

func (r *MetadataResponse) Error() *errors.Error

Error returns the response error.

func (*MetadataResponse) Header ¶

func (r *MetadataResponse) Header() http.Header

Header returns header of the response.

func (*MetadataResponse) Status ¶

func (r *MetadataResponse) Status() int

Status returns the response status code.

type NotificationDetailsRequest ¶ added in v0.1.391

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

NotificationDetailsRequest represents the values of the 'notification_details_request' type.

This struct is a request to get a templated email to a user related to this. subscription/cluster.

func UnmarshalNotificationDetailsRequest ¶ added in v0.1.391

func UnmarshalNotificationDetailsRequest(source interface{}) (object *NotificationDetailsRequest, err error)

UnmarshalNotificationDetailsRequest reads a value of the 'notification_details_request' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalNotificationDetailsRequestList ¶ added in v0.1.391

func UnmarshalNotificationDetailsRequestList(source interface{}) (items []*NotificationDetailsRequest, err error)

UnmarshalNotificationDetailsRequestList reads a list of values of the 'notification_details_request' type from the given source, which can be a slice of bytes, a string or a reader.

func (*NotificationDetailsRequest) BccAddress ¶ added in v0.1.391

func (o *NotificationDetailsRequest) BccAddress() string

BccAddress returns the value of the 'bcc_address' attribute, or the zero value of the type if the attribute doesn't have a value.

The BCC address to be included on the email that is sent.

func (*NotificationDetailsRequest) ClusterID ¶ added in v0.1.391

func (o *NotificationDetailsRequest) ClusterID() string

ClusterID returns the value of the 'cluster_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

Indicates which Cluster (internal id) the resource type belongs to.

func (*NotificationDetailsRequest) ClusterUUID ¶ added in v0.1.391

func (o *NotificationDetailsRequest) ClusterUUID() string

ClusterUUID returns the value of the 'cluster_UUID' attribute, or the zero value of the type if the attribute doesn't have a value.

Indicates which Cluster (external id) the resource type belongs to.

func (*NotificationDetailsRequest) Empty ¶ added in v0.1.391

func (o *NotificationDetailsRequest) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*NotificationDetailsRequest) GetBccAddress ¶ added in v0.1.391

func (o *NotificationDetailsRequest) GetBccAddress() (value string, ok bool)

GetBccAddress returns the value of the 'bcc_address' attribute and a flag indicating if the attribute has a value.

The BCC address to be included on the email that is sent.

func (*NotificationDetailsRequest) GetClusterID ¶ added in v0.1.391

func (o *NotificationDetailsRequest) GetClusterID() (value string, ok bool)

GetClusterID returns the value of the 'cluster_ID' attribute and a flag indicating if the attribute has a value.

Indicates which Cluster (internal id) the resource type belongs to.

func (*NotificationDetailsRequest) GetClusterUUID ¶ added in v0.1.391

func (o *NotificationDetailsRequest) GetClusterUUID() (value string, ok bool)

GetClusterUUID returns the value of the 'cluster_UUID' attribute and a flag indicating if the attribute has a value.

Indicates which Cluster (external id) the resource type belongs to.

func (*NotificationDetailsRequest) GetIncludeRedHatAssociates ¶ added in v0.1.391

func (o *NotificationDetailsRequest) GetIncludeRedHatAssociates() (value bool, ok bool)

GetIncludeRedHatAssociates returns the value of the 'include_red_hat_associates' attribute and a flag indicating if the attribute has a value.

Indicates whether to include red hat associates in the email notification.

func (*NotificationDetailsRequest) GetInternalOnly ¶ added in v0.1.391

func (o *NotificationDetailsRequest) GetInternalOnly() (value bool, ok bool)

GetInternalOnly returns the value of the 'internal_only' attribute and a flag indicating if the attribute has a value.

Indicates whether the service log is internal only to RH.

func (*NotificationDetailsRequest) GetSubject ¶ added in v0.1.391

func (o *NotificationDetailsRequest) GetSubject() (value string, ok bool)

GetSubject returns the value of the 'subject' attribute and a flag indicating if the attribute has a value.

The email subject.

func (*NotificationDetailsRequest) GetSubscriptionID ¶ added in v0.1.391

func (o *NotificationDetailsRequest) GetSubscriptionID() (value string, ok bool)

GetSubscriptionID returns the value of the 'subscription_ID' attribute and a flag indicating if the attribute has a value.

Indicates which Subscription the resource type belongs to.

func (*NotificationDetailsRequest) IncludeRedHatAssociates ¶ added in v0.1.391

func (o *NotificationDetailsRequest) IncludeRedHatAssociates() bool

IncludeRedHatAssociates returns the value of the 'include_red_hat_associates' attribute, or the zero value of the type if the attribute doesn't have a value.

Indicates whether to include red hat associates in the email notification.

func (*NotificationDetailsRequest) InternalOnly ¶ added in v0.1.391

func (o *NotificationDetailsRequest) InternalOnly() bool

InternalOnly returns the value of the 'internal_only' attribute, or the zero value of the type if the attribute doesn't have a value.

Indicates whether the service log is internal only to RH.

func (*NotificationDetailsRequest) Subject ¶ added in v0.1.391

func (o *NotificationDetailsRequest) Subject() string

Subject returns the value of the 'subject' attribute, or the zero value of the type if the attribute doesn't have a value.

The email subject.

func (*NotificationDetailsRequest) SubscriptionID ¶ added in v0.1.391

func (o *NotificationDetailsRequest) SubscriptionID() string

SubscriptionID returns the value of the 'subscription_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

Indicates which Subscription the resource type belongs to.

type NotificationDetailsRequestBuilder ¶ added in v0.1.391

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

NotificationDetailsRequestBuilder contains the data and logic needed to build 'notification_details_request' objects.

This struct is a request to get a templated email to a user related to this. subscription/cluster.

func NewNotificationDetailsRequest ¶ added in v0.1.391

func NewNotificationDetailsRequest() *NotificationDetailsRequestBuilder

NewNotificationDetailsRequest creates a new builder of 'notification_details_request' objects.

func (*NotificationDetailsRequestBuilder) BccAddress ¶ added in v0.1.391

BccAddress sets the value of the 'bcc_address' attribute to the given value.

func (*NotificationDetailsRequestBuilder) Build ¶ added in v0.1.391

Build creates a 'notification_details_request' object using the configuration stored in the builder.

func (*NotificationDetailsRequestBuilder) ClusterID ¶ added in v0.1.391

ClusterID sets the value of the 'cluster_ID' attribute to the given value.

func (*NotificationDetailsRequestBuilder) ClusterUUID ¶ added in v0.1.391

ClusterUUID sets the value of the 'cluster_UUID' attribute to the given value.

func (*NotificationDetailsRequestBuilder) Copy ¶ added in v0.1.391

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*NotificationDetailsRequestBuilder) Empty ¶ added in v0.1.391

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*NotificationDetailsRequestBuilder) IncludeRedHatAssociates ¶ added in v0.1.391

IncludeRedHatAssociates sets the value of the 'include_red_hat_associates' attribute to the given value.

func (*NotificationDetailsRequestBuilder) InternalOnly ¶ added in v0.1.391

InternalOnly sets the value of the 'internal_only' attribute to the given value.

func (*NotificationDetailsRequestBuilder) Subject ¶ added in v0.1.391

Subject sets the value of the 'subject' attribute to the given value.

func (*NotificationDetailsRequestBuilder) SubscriptionID ¶ added in v0.1.391

SubscriptionID sets the value of the 'subscription_ID' attribute to the given value.

type NotificationDetailsRequestList ¶ added in v0.1.391

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

NotificationDetailsRequestList is a list of values of the 'notification_details_request' type.

func (*NotificationDetailsRequestList) Each ¶ added in v0.1.391

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*NotificationDetailsRequestList) Empty ¶ added in v0.1.391

Empty returns true if the list is empty.

func (*NotificationDetailsRequestList) Get ¶ added in v0.1.391

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*NotificationDetailsRequestList) Len ¶ added in v0.1.391

Len returns the length of the list.

func (*NotificationDetailsRequestList) Range ¶ added in v0.1.391

func (l *NotificationDetailsRequestList) Range(f func(index int, item *NotificationDetailsRequest) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*NotificationDetailsRequestList) Slice ¶ added in v0.1.391

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type NotificationDetailsRequestListBuilder ¶ added in v0.1.391

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

NotificationDetailsRequestListBuilder contains the data and logic needed to build 'notification_details_request' objects.

func NewNotificationDetailsRequestList ¶ added in v0.1.391

func NewNotificationDetailsRequestList() *NotificationDetailsRequestListBuilder

NewNotificationDetailsRequestList creates a new builder of 'notification_details_request' objects.

func (*NotificationDetailsRequestListBuilder) Build ¶ added in v0.1.391

Build creates a list of 'notification_details_request' objects using the configuration stored in the builder.

func (*NotificationDetailsRequestListBuilder) Copy ¶ added in v0.1.391

Copy copies the items of the given list into this builder, discarding any previous items.

func (*NotificationDetailsRequestListBuilder) Empty ¶ added in v0.1.391

Empty returns true if the list is empty.

func (*NotificationDetailsRequestListBuilder) Items ¶ added in v0.1.391

Items sets the items of the list.

type NotificationDetailsResponse ¶ added in v0.1.391

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

NotificationDetailsResponse represents the values of the 'notification_details_response' type.

This class is a single response item for the notify details list.

func UnmarshalNotificationDetailsResponse ¶ added in v0.1.391

func UnmarshalNotificationDetailsResponse(source interface{}) (object *NotificationDetailsResponse, err error)

UnmarshalNotificationDetailsResponse reads a value of the 'notification_details_response' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalNotificationDetailsResponseList ¶ added in v0.1.391

func UnmarshalNotificationDetailsResponseList(source interface{}) (items []*NotificationDetailsResponse, err error)

UnmarshalNotificationDetailsResponseList reads a list of values of the 'notification_details_response' type from the given source, which can be a slice of bytes, a string or a reader.

func (*NotificationDetailsResponse) Empty ¶ added in v0.1.391

func (o *NotificationDetailsResponse) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*NotificationDetailsResponse) GetHREF ¶ added in v0.1.392

func (o *NotificationDetailsResponse) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*NotificationDetailsResponse) GetID ¶ added in v0.1.392

func (o *NotificationDetailsResponse) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*NotificationDetailsResponse) GetKey ¶ added in v0.1.392

func (o *NotificationDetailsResponse) GetKey() (value string, ok bool)

GetKey returns the value of the 'key' attribute and a flag indicating if the attribute has a value.

Indicates the key of the response parameter.

func (*NotificationDetailsResponse) GetValue ¶ added in v0.1.392

func (o *NotificationDetailsResponse) GetValue() (value string, ok bool)

GetValue returns the value of the 'value' attribute and a flag indicating if the attribute has a value.

Indicates the value of the response parameter.

func (*NotificationDetailsResponse) HREF ¶ added in v0.1.392

HREF returns the link to the object.

func (*NotificationDetailsResponse) ID ¶ added in v0.1.392

ID returns the identifier of the object.

func (*NotificationDetailsResponse) Key ¶ added in v0.1.392

Key returns the value of the 'key' attribute, or the zero value of the type if the attribute doesn't have a value.

Indicates the key of the response parameter.

func (*NotificationDetailsResponse) Kind ¶ added in v0.1.392

Kind returns the name of the type of the object.

Link returns true iif this is a link.

func (*NotificationDetailsResponse) Value ¶ added in v0.1.392

Value returns the value of the 'value' attribute, or the zero value of the type if the attribute doesn't have a value.

Indicates the value of the response parameter.

type NotificationDetailsResponseBuilder ¶ added in v0.1.391

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

NotificationDetailsResponseBuilder contains the data and logic needed to build 'notification_details_response' objects.

This class is a single response item for the notify details list.

func NewNotificationDetailsResponse ¶ added in v0.1.391

func NewNotificationDetailsResponse() *NotificationDetailsResponseBuilder

NewNotificationDetailsResponse creates a new builder of 'notification_details_response' objects.

func (*NotificationDetailsResponseBuilder) Build ¶ added in v0.1.391

Build creates a 'notification_details_response' object using the configuration stored in the builder.

func (*NotificationDetailsResponseBuilder) Copy ¶ added in v0.1.391

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*NotificationDetailsResponseBuilder) Empty ¶ added in v0.1.391

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*NotificationDetailsResponseBuilder) HREF ¶ added in v0.1.392

HREF sets the link to the object.

func (*NotificationDetailsResponseBuilder) ID ¶ added in v0.1.392

ID sets the identifier of the object.

func (*NotificationDetailsResponseBuilder) Key ¶ added in v0.1.392

Key sets the value of the 'key' attribute to the given value.

Link sets the flag that indicates if this is a link.

func (*NotificationDetailsResponseBuilder) Value ¶ added in v0.1.392

Value sets the value of the 'value' attribute to the given value.

type NotificationDetailsResponseList ¶ added in v0.1.391

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

NotificationDetailsResponseList is a list of values of the 'notification_details_response' type.

func (*NotificationDetailsResponseList) Each ¶ added in v0.1.391

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*NotificationDetailsResponseList) Empty ¶ added in v0.1.391

Empty returns true if the list is empty.

func (*NotificationDetailsResponseList) Get ¶ added in v0.1.391

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*NotificationDetailsResponseList) GetHREF ¶ added in v0.1.392

func (l *NotificationDetailsResponseList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*NotificationDetailsResponseList) HREF ¶ added in v0.1.392

HREF returns the link to the list.

func (*NotificationDetailsResponseList) Kind ¶ added in v0.1.392

Kind returns the name of the type of the object.

func (*NotificationDetailsResponseList) Len ¶ added in v0.1.391

Len returns the length of the list.

Link returns true iif this is a link.

func (*NotificationDetailsResponseList) Range ¶ added in v0.1.391

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*NotificationDetailsResponseList) Slice ¶ added in v0.1.391

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type NotificationDetailsResponseListBuilder ¶ added in v0.1.391

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

NotificationDetailsResponseListBuilder contains the data and logic needed to build 'notification_details_response' objects.

func NewNotificationDetailsResponseList ¶ added in v0.1.391

func NewNotificationDetailsResponseList() *NotificationDetailsResponseListBuilder

NewNotificationDetailsResponseList creates a new builder of 'notification_details_response' objects.

func (*NotificationDetailsResponseListBuilder) Build ¶ added in v0.1.391

Build creates a list of 'notification_details_response' objects using the configuration stored in the builder.

func (*NotificationDetailsResponseListBuilder) Copy ¶ added in v0.1.391

Copy copies the items of the given list into this builder, discarding any previous items.

func (*NotificationDetailsResponseListBuilder) Empty ¶ added in v0.1.391

Empty returns true if the list is empty.

func (*NotificationDetailsResponseListBuilder) Items ¶ added in v0.1.391

Items sets the items of the list.

type NotifyDetailsClient ¶ added in v0.1.391

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

NotifyDetailsClient is the client of the 'notify_details' resource.

Manages the notify endpoint.

func NewNotifyDetailsClient ¶ added in v0.1.391

func NewNotifyDetailsClient(transport http.RoundTripper, path string) *NotifyDetailsClient

NewNotifyDetailsClient creates a new client for the 'notify_details' resource using the given transport to send the requests and receive the responses.

func (*NotifyDetailsClient) Post ¶ added in v0.1.391

Post creates a request for the 'post' method.

Post Notification details about user related to subscription/cluster via email and get the data associated with it.

type NotifyDetailsPostRequest ¶ added in v0.1.391

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

NotifyDetailsPostRequest is the request for the 'post' method.

func (*NotifyDetailsPostRequest) Header ¶ added in v0.1.391

func (r *NotifyDetailsPostRequest) Header(name string, value interface{}) *NotifyDetailsPostRequest

Header adds a request header.

func (*NotifyDetailsPostRequest) Impersonate ¶ added in v0.1.391

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*NotifyDetailsPostRequest) Parameter ¶ added in v0.1.391

func (r *NotifyDetailsPostRequest) Parameter(name string, value interface{}) *NotifyDetailsPostRequest

Parameter adds a query parameter.

func (*NotifyDetailsPostRequest) Request ¶ added in v0.1.391

Request sets the value of the 'request' parameter.

func (*NotifyDetailsPostRequest) Send ¶ added in v0.1.391

func (r *NotifyDetailsPostRequest) Send() (result *NotifyDetailsPostResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*NotifyDetailsPostRequest) SendContext ¶ added in v0.1.391

func (r *NotifyDetailsPostRequest) SendContext(ctx context.Context) (result *NotifyDetailsPostResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type NotifyDetailsPostResponse ¶ added in v0.1.391

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

NotifyDetailsPostResponse is the response for the 'post' method.

func (*NotifyDetailsPostResponse) Error ¶ added in v0.1.391

Error returns the response error.

func (*NotifyDetailsPostResponse) GetResponse ¶ added in v0.1.391

func (r *NotifyDetailsPostResponse) GetResponse() (value *GenericNotifyDetailsResponse, ok bool)

GetResponse returns the value of the 'response' parameter and a flag indicating if the parameter has a value.

func (*NotifyDetailsPostResponse) Header ¶ added in v0.1.391

Header returns header of the response.

func (*NotifyDetailsPostResponse) Response ¶ added in v0.1.391

Response returns the value of the 'response' parameter.

func (*NotifyDetailsPostResponse) Status ¶ added in v0.1.391

func (r *NotifyDetailsPostResponse) Status() int

Status returns the response status code.

type Organization ¶

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

Organization represents the values of the 'organization' type.

func UnmarshalOrganization ¶

func UnmarshalOrganization(source interface{}) (object *Organization, err error)

UnmarshalOrganization reads a value of the 'organization' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalOrganizationList ¶

func UnmarshalOrganizationList(source interface{}) (items []*Organization, err error)

UnmarshalOrganizationList reads a list of values of the 'organization' type from the given source, which can be a slice of bytes, a string or a reader.

func (*Organization) Capabilities ¶ added in v0.0.329

func (o *Organization) Capabilities() []*Capability

Capabilities returns the value of the 'capabilities' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Organization) CreatedAt ¶

func (o *Organization) CreatedAt() time.Time

CreatedAt returns the value of the 'created_at' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Organization) EbsAccountID ¶

func (o *Organization) EbsAccountID() string

EbsAccountID returns the value of the 'ebs_account_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Organization) Empty ¶

func (o *Organization) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*Organization) ExternalID ¶

func (o *Organization) ExternalID() string

ExternalID returns the value of the 'external_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Organization) GetCapabilities ¶ added in v0.0.329

func (o *Organization) GetCapabilities() (value []*Capability, ok bool)

GetCapabilities returns the value of the 'capabilities' attribute and a flag indicating if the attribute has a value.

func (*Organization) GetCreatedAt ¶

func (o *Organization) GetCreatedAt() (value time.Time, ok bool)

GetCreatedAt returns the value of the 'created_at' attribute and a flag indicating if the attribute has a value.

func (*Organization) GetEbsAccountID ¶

func (o *Organization) GetEbsAccountID() (value string, ok bool)

GetEbsAccountID returns the value of the 'ebs_account_ID' attribute and a flag indicating if the attribute has a value.

func (*Organization) GetExternalID ¶

func (o *Organization) GetExternalID() (value string, ok bool)

GetExternalID returns the value of the 'external_ID' attribute and a flag indicating if the attribute has a value.

func (*Organization) GetHREF ¶

func (o *Organization) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*Organization) GetID ¶

func (o *Organization) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*Organization) GetLabels ¶

func (o *Organization) GetLabels() (value []*Label, ok bool)

GetLabels returns the value of the 'labels' attribute and a flag indicating if the attribute has a value.

func (*Organization) GetName ¶

func (o *Organization) GetName() (value string, ok bool)

GetName returns the value of the 'name' attribute and a flag indicating if the attribute has a value.

func (*Organization) GetUpdatedAt ¶

func (o *Organization) GetUpdatedAt() (value time.Time, ok bool)

GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.

func (*Organization) HREF ¶

func (o *Organization) HREF() string

HREF returns the link to the object.

func (*Organization) ID ¶

func (o *Organization) ID() string

ID returns the identifier of the object.

func (*Organization) Kind ¶

func (o *Organization) Kind() string

Kind returns the name of the type of the object.

func (*Organization) Labels ¶

func (o *Organization) Labels() []*Label

Labels returns the value of the 'labels' attribute, or the zero value of the type if the attribute doesn't have a value.

func (o *Organization) Link() bool

Link returns true iif this is a link.

func (*Organization) Name ¶

func (o *Organization) Name() string

Name returns the value of the 'name' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Organization) UpdatedAt ¶

func (o *Organization) UpdatedAt() time.Time

UpdatedAt returns the value of the 'updated_at' attribute, or the zero value of the type if the attribute doesn't have a value.

type OrganizationBuilder ¶

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

OrganizationBuilder contains the data and logic needed to build 'organization' objects.

func NewOrganization ¶

func NewOrganization() *OrganizationBuilder

NewOrganization creates a new builder of 'organization' objects.

func (*OrganizationBuilder) Build ¶

func (b *OrganizationBuilder) Build() (object *Organization, err error)

Build creates a 'organization' object using the configuration stored in the builder.

func (*OrganizationBuilder) Capabilities ¶ added in v0.0.329

func (b *OrganizationBuilder) Capabilities(values ...*CapabilityBuilder) *OrganizationBuilder

Capabilities sets the value of the 'capabilities' attribute to the given values.

func (*OrganizationBuilder) Copy ¶

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*OrganizationBuilder) CreatedAt ¶

func (b *OrganizationBuilder) CreatedAt(value time.Time) *OrganizationBuilder

CreatedAt sets the value of the 'created_at' attribute to the given value.

func (*OrganizationBuilder) EbsAccountID ¶

func (b *OrganizationBuilder) EbsAccountID(value string) *OrganizationBuilder

EbsAccountID sets the value of the 'ebs_account_ID' attribute to the given value.

func (*OrganizationBuilder) Empty ¶ added in v0.0.329

func (b *OrganizationBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*OrganizationBuilder) ExternalID ¶

func (b *OrganizationBuilder) ExternalID(value string) *OrganizationBuilder

ExternalID sets the value of the 'external_ID' attribute to the given value.

func (*OrganizationBuilder) HREF ¶

HREF sets the link to the object.

func (*OrganizationBuilder) ID ¶

ID sets the identifier of the object.

func (*OrganizationBuilder) Labels ¶

func (b *OrganizationBuilder) Labels(values ...*LabelBuilder) *OrganizationBuilder

Labels sets the value of the 'labels' attribute to the given values.

Link sets the flag that indicates if this is a link.

func (*OrganizationBuilder) Name ¶

Name sets the value of the 'name' attribute to the given value.

func (*OrganizationBuilder) UpdatedAt ¶

func (b *OrganizationBuilder) UpdatedAt(value time.Time) *OrganizationBuilder

UpdatedAt sets the value of the 'updated_at' attribute to the given value.

type OrganizationClient ¶

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

OrganizationClient is the client of the 'organization' resource.

Manages a specific organization.

func NewOrganizationClient ¶

func NewOrganizationClient(transport http.RoundTripper, path string) *OrganizationClient

NewOrganizationClient creates a new client for the 'organization' resource using the given transport to send the requests and receive the responses.

func (*OrganizationClient) Get ¶

Get creates a request for the 'get' method.

Retrieves the details of the organization.

func (*OrganizationClient) Labels ¶

Labels returns the target 'generic_labels' resource.

Reference to the list of labels of a specific organization.

func (*OrganizationClient) Poll ¶

Poll creates a request to repeatedly retrieve the object till the response has one of a given set of states and satisfies a set of predicates.

func (*OrganizationClient) QuotaCost ¶ added in v0.0.329

func (c *OrganizationClient) QuotaCost() *QuotaCostClient

QuotaCost returns the target 'quota_cost' resource.

Reference to the service that returns a summary of quota cost for this organization

func (*OrganizationClient) ResourceQuota ¶

func (c *OrganizationClient) ResourceQuota() *ResourceQuotasClient

ResourceQuota returns the target 'resource_quotas' resource.

Reference to the service that manages the resource quotas for this organization.

func (*OrganizationClient) SummaryDashboard ¶ added in v0.0.329

func (c *OrganizationClient) SummaryDashboard() *SummaryDashboardClient

SummaryDashboard returns the target 'summary_dashboard' resource.

Reference to the service that manages the resource quotas for this organization.

func (*OrganizationClient) Update ¶

Update creates a request for the 'update' method.

Updates the organization.

type OrganizationGetRequest ¶

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

OrganizationGetRequest is the request for the 'get' method.

func (*OrganizationGetRequest) Header ¶

func (r *OrganizationGetRequest) Header(name string, value interface{}) *OrganizationGetRequest

Header adds a request header.

func (*OrganizationGetRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*OrganizationGetRequest) Parameter ¶

func (r *OrganizationGetRequest) Parameter(name string, value interface{}) *OrganizationGetRequest

Parameter adds a query parameter.

func (*OrganizationGetRequest) Send ¶

func (r *OrganizationGetRequest) Send() (result *OrganizationGetResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*OrganizationGetRequest) SendContext ¶

func (r *OrganizationGetRequest) SendContext(ctx context.Context) (result *OrganizationGetResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type OrganizationGetResponse ¶

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

OrganizationGetResponse is the response for the 'get' method.

func (*OrganizationGetResponse) Body ¶

Body returns the value of the 'body' parameter.

func (*OrganizationGetResponse) Error ¶

func (r *OrganizationGetResponse) Error() *errors.Error

Error returns the response error.

func (*OrganizationGetResponse) GetBody ¶

func (r *OrganizationGetResponse) GetBody() (value *Organization, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*OrganizationGetResponse) Header ¶

func (r *OrganizationGetResponse) Header() http.Header

Header returns header of the response.

func (*OrganizationGetResponse) Status ¶

func (r *OrganizationGetResponse) Status() int

Status returns the response status code.

type OrganizationList ¶

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

OrganizationList is a list of values of the 'organization' type.

func (*OrganizationList) Each ¶

func (l *OrganizationList) Each(f func(item *Organization) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*OrganizationList) Empty ¶

func (l *OrganizationList) Empty() bool

Empty returns true if the list is empty.

func (*OrganizationList) Get ¶

func (l *OrganizationList) Get(i int) *Organization

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*OrganizationList) GetHREF ¶

func (l *OrganizationList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*OrganizationList) HREF ¶

func (l *OrganizationList) HREF() string

HREF returns the link to the list.

func (*OrganizationList) Kind ¶

func (l *OrganizationList) Kind() string

Kind returns the name of the type of the object.

func (*OrganizationList) Len ¶

func (l *OrganizationList) Len() int

Len returns the length of the list.

func (l *OrganizationList) Link() bool

Link returns true iif this is a link.

func (*OrganizationList) Range ¶

func (l *OrganizationList) Range(f func(index int, item *Organization) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*OrganizationList) Slice ¶

func (l *OrganizationList) Slice() []*Organization

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type OrganizationListBuilder ¶

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

OrganizationListBuilder contains the data and logic needed to build 'organization' objects.

func NewOrganizationList ¶

func NewOrganizationList() *OrganizationListBuilder

NewOrganizationList creates a new builder of 'organization' objects.

func (*OrganizationListBuilder) Build ¶

func (b *OrganizationListBuilder) Build() (list *OrganizationList, err error)

Build creates a list of 'organization' objects using the configuration stored in the builder.

func (*OrganizationListBuilder) Copy ¶

Copy copies the items of the given list into this builder, discarding any previous items.

func (*OrganizationListBuilder) Empty ¶ added in v0.0.329

func (b *OrganizationListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*OrganizationListBuilder) Items ¶

Items sets the items of the list.

type OrganizationPollRequest ¶

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

OrganizationPollRequest is the request for the Poll method.

func (*OrganizationPollRequest) Header ¶

func (r *OrganizationPollRequest) Header(name string, value interface{}) *OrganizationPollRequest

Header adds a request header to all the requests that will be used to retrieve the object.

func (*OrganizationPollRequest) Interval ¶

Interval sets the polling interval. This parameter is mandatory and must be greater than zero.

func (*OrganizationPollRequest) Parameter ¶

func (r *OrganizationPollRequest) Parameter(name string, value interface{}) *OrganizationPollRequest

Parameter adds a query parameter to all the requests that will be used to retrieve the object.

func (*OrganizationPollRequest) Predicate ¶

Predicate adds a predicate that the response should satisfy be considered successful. Multiple predicates can be set calling this method multiple times. The response will be considered successful if all the predicates are satisfied.

func (*OrganizationPollRequest) StartContext ¶

func (r *OrganizationPollRequest) StartContext(ctx context.Context) (response *OrganizationPollResponse, err error)

StartContext starts the polling loop. Responses will be considered successful if the status is one of the values specified with the Status method and if all the predicates specified with the Predicate method return nil.

The context must have a timeout or deadline, otherwise this method will immediately return an error.

func (*OrganizationPollRequest) Status ¶

Status set the expected status of the response. Multiple values can be set calling this method multiple times. The response will be considered successful if the status is any of those values.

type OrganizationPollResponse ¶

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

OrganizationPollResponse is the response for the Poll method.

func (*OrganizationPollResponse) Body ¶

Body returns the value of the 'body' parameter.

func (*OrganizationPollResponse) Error ¶

Error returns the response error.

func (*OrganizationPollResponse) GetBody ¶

func (r *OrganizationPollResponse) GetBody() (value *Organization, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*OrganizationPollResponse) Header ¶

func (r *OrganizationPollResponse) Header() http.Header

Header returns header of the response.

func (*OrganizationPollResponse) Status ¶

func (r *OrganizationPollResponse) Status() int

Status returns the response status code.

type OrganizationUpdateRequest ¶

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

OrganizationUpdateRequest is the request for the 'update' method.

func (*OrganizationUpdateRequest) Body ¶

Body sets the value of the 'body' parameter.

func (*OrganizationUpdateRequest) Header ¶

func (r *OrganizationUpdateRequest) Header(name string, value interface{}) *OrganizationUpdateRequest

Header adds a request header.

func (*OrganizationUpdateRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*OrganizationUpdateRequest) Parameter ¶

func (r *OrganizationUpdateRequest) Parameter(name string, value interface{}) *OrganizationUpdateRequest

Parameter adds a query parameter.

func (*OrganizationUpdateRequest) Send ¶

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*OrganizationUpdateRequest) SendContext ¶

func (r *OrganizationUpdateRequest) SendContext(ctx context.Context) (result *OrganizationUpdateResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type OrganizationUpdateResponse ¶

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

OrganizationUpdateResponse is the response for the 'update' method.

func (*OrganizationUpdateResponse) Body ¶

Body returns the value of the 'body' parameter.

func (*OrganizationUpdateResponse) Error ¶

Error returns the response error.

func (*OrganizationUpdateResponse) GetBody ¶

func (r *OrganizationUpdateResponse) GetBody() (value *Organization, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*OrganizationUpdateResponse) Header ¶

Header returns header of the response.

func (*OrganizationUpdateResponse) Status ¶

func (r *OrganizationUpdateResponse) Status() int

Status returns the response status code.

type OrganizationsAddRequest ¶

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

OrganizationsAddRequest is the request for the 'add' method.

func (*OrganizationsAddRequest) Body ¶

Body sets the value of the 'body' parameter.

Organization data.

func (*OrganizationsAddRequest) Header ¶

func (r *OrganizationsAddRequest) Header(name string, value interface{}) *OrganizationsAddRequest

Header adds a request header.

func (*OrganizationsAddRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*OrganizationsAddRequest) Parameter ¶

func (r *OrganizationsAddRequest) Parameter(name string, value interface{}) *OrganizationsAddRequest

Parameter adds a query parameter.

func (*OrganizationsAddRequest) Send ¶

func (r *OrganizationsAddRequest) Send() (result *OrganizationsAddResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*OrganizationsAddRequest) SendContext ¶

func (r *OrganizationsAddRequest) SendContext(ctx context.Context) (result *OrganizationsAddResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type OrganizationsAddResponse ¶

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

OrganizationsAddResponse is the response for the 'add' method.

func (*OrganizationsAddResponse) Body ¶

Body returns the value of the 'body' parameter.

Organization data.

func (*OrganizationsAddResponse) Error ¶

Error returns the response error.

func (*OrganizationsAddResponse) GetBody ¶

func (r *OrganizationsAddResponse) GetBody() (value *Organization, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

Organization data.

func (*OrganizationsAddResponse) Header ¶

func (r *OrganizationsAddResponse) Header() http.Header

Header returns header of the response.

func (*OrganizationsAddResponse) Status ¶

func (r *OrganizationsAddResponse) Status() int

Status returns the response status code.

type OrganizationsClient ¶

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

OrganizationsClient is the client of the 'organizations' resource.

Manages the collection of organizations.

func NewOrganizationsClient ¶

func NewOrganizationsClient(transport http.RoundTripper, path string) *OrganizationsClient

NewOrganizationsClient creates a new client for the 'organizations' resource using the given transport to send the requests and receive the responses.

func (*OrganizationsClient) Add ¶

Add creates a request for the 'add' method.

Creates a new organization.

func (*OrganizationsClient) List ¶

List creates a request for the 'list' method.

Retrieves a list of organizations.

func (*OrganizationsClient) Organization ¶

func (c *OrganizationsClient) Organization(id string) *OrganizationClient

Organization returns the target 'organization' resource for the given identifier.

Reference to the service that manages a specific organization.

type OrganizationsListRequest ¶

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

OrganizationsListRequest is the request for the 'list' method.

func (*OrganizationsListRequest) FetchLabels ¶ added in v0.1.352

FetchLabels sets the value of the 'fetch_labels' parameter.

If true, includes the labels on an organization in the output. Could slow request response time.

func (*OrganizationsListRequest) Fields ¶

Fields sets the value of the 'fields' parameter.

Projection This field contains a comma-separated list of fields you'd like to get in a result. No new fields can be added, only existing ones can be filtered. To specify a field 'id' of a structure 'plan' use 'plan.id'. To specify all fields of a structure 'labels' use 'labels.*'.

func (*OrganizationsListRequest) Header ¶

func (r *OrganizationsListRequest) Header(name string, value interface{}) *OrganizationsListRequest

Header adds a request header.

func (*OrganizationsListRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*OrganizationsListRequest) Page ¶

Page sets the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*OrganizationsListRequest) Parameter ¶

func (r *OrganizationsListRequest) Parameter(name string, value interface{}) *OrganizationsListRequest

Parameter adds a query parameter.

func (*OrganizationsListRequest) Search ¶

Search sets the value of the 'search' parameter.

Search criteria.

The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the organization instead of the names of the columns of a table. For example, in order to retrieve organizations with name starting with my:

```sql name like 'my%' ```

If the parameter isn't provided, or if the value is empty, then all the items that the user has permission to see will be returned.

func (*OrganizationsListRequest) Send ¶

func (r *OrganizationsListRequest) Send() (result *OrganizationsListResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*OrganizationsListRequest) SendContext ¶

func (r *OrganizationsListRequest) SendContext(ctx context.Context) (result *OrganizationsListResponse, err error)

SendContext sends this request, waits for the response, and returns it.

func (*OrganizationsListRequest) Size ¶

Size sets the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

type OrganizationsListResponse ¶

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

OrganizationsListResponse is the response for the 'list' method.

func (*OrganizationsListResponse) Error ¶

Error returns the response error.

func (*OrganizationsListResponse) GetItems ¶

func (r *OrganizationsListResponse) GetItems() (value *OrganizationList, ok bool)

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

Retrieved list of organizations.

func (*OrganizationsListResponse) GetPage ¶

func (r *OrganizationsListResponse) GetPage() (value int, ok bool)

GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.

Index of the requested page, where one corresponds to the first page.

func (*OrganizationsListResponse) GetSize ¶

func (r *OrganizationsListResponse) GetSize() (value int, ok bool)

GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.

Maximum number of items that will be contained in the returned page.

func (*OrganizationsListResponse) GetTotal ¶

func (r *OrganizationsListResponse) GetTotal() (value int, ok bool)

GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

func (*OrganizationsListResponse) Header ¶

Header returns header of the response.

func (*OrganizationsListResponse) Items ¶

Items returns the value of the 'items' parameter.

Retrieved list of organizations.

func (*OrganizationsListResponse) Page ¶

func (r *OrganizationsListResponse) Page() int

Page returns the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*OrganizationsListResponse) Size ¶

func (r *OrganizationsListResponse) Size() int

Size returns the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

func (*OrganizationsListResponse) Status ¶

func (r *OrganizationsListResponse) Status() int

Status returns the response status code.

func (*OrganizationsListResponse) Total ¶

func (r *OrganizationsListResponse) Total() int

Total returns the value of the 'total' parameter.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

type Permission ¶

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

Permission represents the values of the 'permission' type.

func UnmarshalPermission ¶

func UnmarshalPermission(source interface{}) (object *Permission, err error)

UnmarshalPermission reads a value of the 'permission' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalPermissionList ¶

func UnmarshalPermissionList(source interface{}) (items []*Permission, err error)

UnmarshalPermissionList reads a list of values of the 'permission' type from the given source, which can be a slice of bytes, a string or a reader.

func (*Permission) Action ¶

func (o *Permission) Action() Action

Action returns the value of the 'action' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Permission) Empty ¶

func (o *Permission) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*Permission) GetAction ¶

func (o *Permission) GetAction() (value Action, ok bool)

GetAction returns the value of the 'action' attribute and a flag indicating if the attribute has a value.

func (*Permission) GetHREF ¶

func (o *Permission) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*Permission) GetID ¶

func (o *Permission) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*Permission) GetResource ¶ added in v0.0.329

func (o *Permission) GetResource() (value string, ok bool)

GetResource returns the value of the 'resource' attribute and a flag indicating if the attribute has a value.

func (*Permission) HREF ¶

func (o *Permission) HREF() string

HREF returns the link to the object.

func (*Permission) ID ¶

func (o *Permission) ID() string

ID returns the identifier of the object.

func (*Permission) Kind ¶

func (o *Permission) Kind() string

Kind returns the name of the type of the object.

func (o *Permission) Link() bool

Link returns true iif this is a link.

func (*Permission) Resource ¶ added in v0.0.329

func (o *Permission) Resource() string

Resource returns the value of the 'resource' attribute, or the zero value of the type if the attribute doesn't have a value.

type PermissionBuilder ¶

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

PermissionBuilder contains the data and logic needed to build 'permission' objects.

func NewPermission ¶

func NewPermission() *PermissionBuilder

NewPermission creates a new builder of 'permission' objects.

func (*PermissionBuilder) Action ¶

func (b *PermissionBuilder) Action(value Action) *PermissionBuilder

Action sets the value of the 'action' attribute to the given value.

Possible actions for a permission.

func (*PermissionBuilder) Build ¶

func (b *PermissionBuilder) Build() (object *Permission, err error)

Build creates a 'permission' object using the configuration stored in the builder.

func (*PermissionBuilder) Copy ¶

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*PermissionBuilder) Empty ¶ added in v0.0.329

func (b *PermissionBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*PermissionBuilder) HREF ¶

func (b *PermissionBuilder) HREF(value string) *PermissionBuilder

HREF sets the link to the object.

func (*PermissionBuilder) ID ¶

ID sets the identifier of the object.

func (b *PermissionBuilder) Link(value bool) *PermissionBuilder

Link sets the flag that indicates if this is a link.

func (*PermissionBuilder) Resource ¶ added in v0.0.329

func (b *PermissionBuilder) Resource(value string) *PermissionBuilder

Resource sets the value of the 'resource' attribute to the given value.

type PermissionClient ¶

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

PermissionClient is the client of the 'permission' resource.

Manages a specific permission.

func NewPermissionClient ¶

func NewPermissionClient(transport http.RoundTripper, path string) *PermissionClient

NewPermissionClient creates a new client for the 'permission' resource using the given transport to send the requests and receive the responses.

func (*PermissionClient) Delete ¶

Delete creates a request for the 'delete' method.

Deletes the permission.

func (*PermissionClient) Get ¶

Get creates a request for the 'get' method.

Retrieves the details of the permission.

func (*PermissionClient) Poll ¶

Poll creates a request to repeatedly retrieve the object till the response has one of a given set of states and satisfies a set of predicates.

type PermissionDeleteRequest ¶

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

PermissionDeleteRequest is the request for the 'delete' method.

func (*PermissionDeleteRequest) Header ¶

func (r *PermissionDeleteRequest) Header(name string, value interface{}) *PermissionDeleteRequest

Header adds a request header.

func (*PermissionDeleteRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*PermissionDeleteRequest) Parameter ¶

func (r *PermissionDeleteRequest) Parameter(name string, value interface{}) *PermissionDeleteRequest

Parameter adds a query parameter.

func (*PermissionDeleteRequest) Send ¶

func (r *PermissionDeleteRequest) Send() (result *PermissionDeleteResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*PermissionDeleteRequest) SendContext ¶

func (r *PermissionDeleteRequest) SendContext(ctx context.Context) (result *PermissionDeleteResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type PermissionDeleteResponse ¶

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

PermissionDeleteResponse is the response for the 'delete' method.

func (*PermissionDeleteResponse) Error ¶

Error returns the response error.

func (*PermissionDeleteResponse) Header ¶

func (r *PermissionDeleteResponse) Header() http.Header

Header returns header of the response.

func (*PermissionDeleteResponse) Status ¶

func (r *PermissionDeleteResponse) Status() int

Status returns the response status code.

type PermissionGetRequest ¶

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

PermissionGetRequest is the request for the 'get' method.

func (*PermissionGetRequest) Header ¶

func (r *PermissionGetRequest) Header(name string, value interface{}) *PermissionGetRequest

Header adds a request header.

func (*PermissionGetRequest) Impersonate ¶ added in v0.0.329

func (r *PermissionGetRequest) Impersonate(user string) *PermissionGetRequest

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*PermissionGetRequest) Parameter ¶

func (r *PermissionGetRequest) Parameter(name string, value interface{}) *PermissionGetRequest

Parameter adds a query parameter.

func (*PermissionGetRequest) Send ¶

func (r *PermissionGetRequest) Send() (result *PermissionGetResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*PermissionGetRequest) SendContext ¶

func (r *PermissionGetRequest) SendContext(ctx context.Context) (result *PermissionGetResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type PermissionGetResponse ¶

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

PermissionGetResponse is the response for the 'get' method.

func (*PermissionGetResponse) Body ¶

func (r *PermissionGetResponse) Body() *Permission

Body returns the value of the 'body' parameter.

func (*PermissionGetResponse) Error ¶

func (r *PermissionGetResponse) Error() *errors.Error

Error returns the response error.

func (*PermissionGetResponse) GetBody ¶

func (r *PermissionGetResponse) GetBody() (value *Permission, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*PermissionGetResponse) Header ¶

func (r *PermissionGetResponse) Header() http.Header

Header returns header of the response.

func (*PermissionGetResponse) Status ¶

func (r *PermissionGetResponse) Status() int

Status returns the response status code.

type PermissionList ¶

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

PermissionList is a list of values of the 'permission' type.

func (*PermissionList) Each ¶

func (l *PermissionList) Each(f func(item *Permission) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*PermissionList) Empty ¶

func (l *PermissionList) Empty() bool

Empty returns true if the list is empty.

func (*PermissionList) Get ¶

func (l *PermissionList) Get(i int) *Permission

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*PermissionList) GetHREF ¶

func (l *PermissionList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*PermissionList) HREF ¶

func (l *PermissionList) HREF() string

HREF returns the link to the list.

func (*PermissionList) Kind ¶

func (l *PermissionList) Kind() string

Kind returns the name of the type of the object.

func (*PermissionList) Len ¶

func (l *PermissionList) Len() int

Len returns the length of the list.

func (l *PermissionList) Link() bool

Link returns true iif this is a link.

func (*PermissionList) Range ¶

func (l *PermissionList) Range(f func(index int, item *Permission) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*PermissionList) Slice ¶

func (l *PermissionList) Slice() []*Permission

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type PermissionListBuilder ¶

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

PermissionListBuilder contains the data and logic needed to build 'permission' objects.

func NewPermissionList ¶

func NewPermissionList() *PermissionListBuilder

NewPermissionList creates a new builder of 'permission' objects.

func (*PermissionListBuilder) Build ¶

func (b *PermissionListBuilder) Build() (list *PermissionList, err error)

Build creates a list of 'permission' objects using the configuration stored in the builder.

func (*PermissionListBuilder) Copy ¶

Copy copies the items of the given list into this builder, discarding any previous items.

func (*PermissionListBuilder) Empty ¶ added in v0.0.329

func (b *PermissionListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*PermissionListBuilder) Items ¶

Items sets the items of the list.

type PermissionPollRequest ¶

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

PermissionPollRequest is the request for the Poll method.

func (*PermissionPollRequest) Header ¶

func (r *PermissionPollRequest) Header(name string, value interface{}) *PermissionPollRequest

Header adds a request header to all the requests that will be used to retrieve the object.

func (*PermissionPollRequest) Interval ¶

Interval sets the polling interval. This parameter is mandatory and must be greater than zero.

func (*PermissionPollRequest) Parameter ¶

func (r *PermissionPollRequest) Parameter(name string, value interface{}) *PermissionPollRequest

Parameter adds a query parameter to all the requests that will be used to retrieve the object.

func (*PermissionPollRequest) Predicate ¶

Predicate adds a predicate that the response should satisfy be considered successful. Multiple predicates can be set calling this method multiple times. The response will be considered successful if all the predicates are satisfied.

func (*PermissionPollRequest) StartContext ¶

func (r *PermissionPollRequest) StartContext(ctx context.Context) (response *PermissionPollResponse, err error)

StartContext starts the polling loop. Responses will be considered successful if the status is one of the values specified with the Status method and if all the predicates specified with the Predicate method return nil.

The context must have a timeout or deadline, otherwise this method will immediately return an error.

func (*PermissionPollRequest) Status ¶

Status set the expected status of the response. Multiple values can be set calling this method multiple times. The response will be considered successful if the status is any of those values.

type PermissionPollResponse ¶

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

PermissionPollResponse is the response for the Poll method.

func (*PermissionPollResponse) Body ¶

Body returns the value of the 'body' parameter.

func (*PermissionPollResponse) Error ¶

func (r *PermissionPollResponse) Error() *errors.Error

Error returns the response error.

func (*PermissionPollResponse) GetBody ¶

func (r *PermissionPollResponse) GetBody() (value *Permission, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*PermissionPollResponse) Header ¶

func (r *PermissionPollResponse) Header() http.Header

Header returns header of the response.

func (*PermissionPollResponse) Status ¶

func (r *PermissionPollResponse) Status() int

Status returns the response status code.

type PermissionsAddRequest ¶

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

PermissionsAddRequest is the request for the 'add' method.

func (*PermissionsAddRequest) Body ¶

Body sets the value of the 'body' parameter.

Permission data.

func (*PermissionsAddRequest) Header ¶

func (r *PermissionsAddRequest) Header(name string, value interface{}) *PermissionsAddRequest

Header adds a request header.

func (*PermissionsAddRequest) Impersonate ¶ added in v0.0.329

func (r *PermissionsAddRequest) Impersonate(user string) *PermissionsAddRequest

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*PermissionsAddRequest) Parameter ¶

func (r *PermissionsAddRequest) Parameter(name string, value interface{}) *PermissionsAddRequest

Parameter adds a query parameter.

func (*PermissionsAddRequest) Send ¶

func (r *PermissionsAddRequest) Send() (result *PermissionsAddResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*PermissionsAddRequest) SendContext ¶

func (r *PermissionsAddRequest) SendContext(ctx context.Context) (result *PermissionsAddResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type PermissionsAddResponse ¶

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

PermissionsAddResponse is the response for the 'add' method.

func (*PermissionsAddResponse) Body ¶

Body returns the value of the 'body' parameter.

Permission data.

func (*PermissionsAddResponse) Error ¶

func (r *PermissionsAddResponse) Error() *errors.Error

Error returns the response error.

func (*PermissionsAddResponse) GetBody ¶

func (r *PermissionsAddResponse) GetBody() (value *Permission, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

Permission data.

func (*PermissionsAddResponse) Header ¶

func (r *PermissionsAddResponse) Header() http.Header

Header returns header of the response.

func (*PermissionsAddResponse) Status ¶

func (r *PermissionsAddResponse) Status() int

Status returns the response status code.

type PermissionsClient ¶

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

PermissionsClient is the client of the 'permissions' resource.

Manages the collection of permissions.

func NewPermissionsClient ¶

func NewPermissionsClient(transport http.RoundTripper, path string) *PermissionsClient

NewPermissionsClient creates a new client for the 'permissions' resource using the given transport to send the requests and receive the responses.

func (*PermissionsClient) Add ¶

Add creates a request for the 'add' method.

Creates a new permission.

func (*PermissionsClient) List ¶

List creates a request for the 'list' method.

Retrieves a list of permissions.

func (*PermissionsClient) Permission ¶

func (c *PermissionsClient) Permission(id string) *PermissionClient

Permission returns the target 'permission' resource for the given identifier.

Reference to the service that manages an specific permission.

type PermissionsListRequest ¶

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

PermissionsListRequest is the request for the 'list' method.

func (*PermissionsListRequest) Header ¶

func (r *PermissionsListRequest) Header(name string, value interface{}) *PermissionsListRequest

Header adds a request header.

func (*PermissionsListRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*PermissionsListRequest) Page ¶

Page sets the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*PermissionsListRequest) Parameter ¶

func (r *PermissionsListRequest) Parameter(name string, value interface{}) *PermissionsListRequest

Parameter adds a query parameter.

func (*PermissionsListRequest) Send ¶

func (r *PermissionsListRequest) Send() (result *PermissionsListResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*PermissionsListRequest) SendContext ¶

func (r *PermissionsListRequest) SendContext(ctx context.Context) (result *PermissionsListResponse, err error)

SendContext sends this request, waits for the response, and returns it.

func (*PermissionsListRequest) Size ¶

Size sets the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

type PermissionsListResponse ¶

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

PermissionsListResponse is the response for the 'list' method.

func (*PermissionsListResponse) Error ¶

func (r *PermissionsListResponse) Error() *errors.Error

Error returns the response error.

func (*PermissionsListResponse) GetItems ¶

func (r *PermissionsListResponse) GetItems() (value *PermissionList, ok bool)

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

Retrieved list of permissions.

func (*PermissionsListResponse) GetPage ¶

func (r *PermissionsListResponse) GetPage() (value int, ok bool)

GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.

Index of the requested page, where one corresponds to the first page.

func (*PermissionsListResponse) GetSize ¶

func (r *PermissionsListResponse) GetSize() (value int, ok bool)

GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.

Maximum number of items that will be contained in the returned page.

func (*PermissionsListResponse) GetTotal ¶

func (r *PermissionsListResponse) GetTotal() (value int, ok bool)

GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

func (*PermissionsListResponse) Header ¶

func (r *PermissionsListResponse) Header() http.Header

Header returns header of the response.

func (*PermissionsListResponse) Items ¶

Items returns the value of the 'items' parameter.

Retrieved list of permissions.

func (*PermissionsListResponse) Page ¶

func (r *PermissionsListResponse) Page() int

Page returns the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*PermissionsListResponse) Size ¶

func (r *PermissionsListResponse) Size() int

Size returns the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

func (*PermissionsListResponse) Status ¶

func (r *PermissionsListResponse) Status() int

Status returns the response status code.

func (*PermissionsListResponse) Total ¶

func (r *PermissionsListResponse) Total() int

Total returns the value of the 'total' parameter.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

type Plan ¶

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

Plan represents the values of the 'plan' type.

func UnmarshalPlan ¶

func UnmarshalPlan(source interface{}) (object *Plan, err error)

UnmarshalPlan reads a value of the 'plan' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalPlanList ¶

func UnmarshalPlanList(source interface{}) (items []*Plan, err error)

UnmarshalPlanList reads a list of values of the 'plan' type from the given source, which can be a slice of bytes, a string or a reader.

func (*Plan) Category ¶ added in v0.0.329

func (o *Plan) Category() string

Category returns the value of the 'category' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Plan) Empty ¶

func (o *Plan) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*Plan) GetCategory ¶ added in v0.0.329

func (o *Plan) GetCategory() (value string, ok bool)

GetCategory returns the value of the 'category' attribute and a flag indicating if the attribute has a value.

func (*Plan) GetHREF ¶

func (o *Plan) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*Plan) GetID ¶

func (o *Plan) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*Plan) GetName ¶

func (o *Plan) GetName() (value string, ok bool)

GetName returns the value of the 'name' attribute and a flag indicating if the attribute has a value.

func (*Plan) GetType ¶

func (o *Plan) GetType() (value string, ok bool)

GetType returns the value of the 'type' attribute and a flag indicating if the attribute has a value.

func (*Plan) HREF ¶

func (o *Plan) HREF() string

HREF returns the link to the object.

func (*Plan) ID ¶

func (o *Plan) ID() string

ID returns the identifier of the object.

func (*Plan) Kind ¶

func (o *Plan) Kind() string

Kind returns the name of the type of the object.

func (o *Plan) Link() bool

Link returns true iif this is a link.

func (*Plan) Name ¶

func (o *Plan) Name() string

Name returns the value of the 'name' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Plan) Type ¶

func (o *Plan) Type() string

Type returns the value of the 'type' attribute, or the zero value of the type if the attribute doesn't have a value.

type PlanBuilder ¶

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

PlanBuilder contains the data and logic needed to build 'plan' objects.

func NewPlan ¶

func NewPlan() *PlanBuilder

NewPlan creates a new builder of 'plan' objects.

func (*PlanBuilder) Build ¶

func (b *PlanBuilder) Build() (object *Plan, err error)

Build creates a 'plan' object using the configuration stored in the builder.

func (*PlanBuilder) Category ¶ added in v0.0.329

func (b *PlanBuilder) Category(value string) *PlanBuilder

Category sets the value of the 'category' attribute to the given value.

func (*PlanBuilder) Copy ¶

func (b *PlanBuilder) Copy(object *Plan) *PlanBuilder

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*PlanBuilder) Empty ¶ added in v0.0.329

func (b *PlanBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*PlanBuilder) HREF ¶

func (b *PlanBuilder) HREF(value string) *PlanBuilder

HREF sets the link to the object.

func (*PlanBuilder) ID ¶

func (b *PlanBuilder) ID(value string) *PlanBuilder

ID sets the identifier of the object.

func (b *PlanBuilder) Link(value bool) *PlanBuilder

Link sets the flag that indicates if this is a link.

func (*PlanBuilder) Name ¶

func (b *PlanBuilder) Name(value string) *PlanBuilder

Name sets the value of the 'name' attribute to the given value.

func (*PlanBuilder) Type ¶

func (b *PlanBuilder) Type(value string) *PlanBuilder

Type sets the value of the 'type' attribute to the given value.

type PlanID ¶

type PlanID string

PlanID represents the values of the 'plan_ID' enumerated type.

const (
	//
	PlanIDOCP PlanID = "ocp"
)

func UnmarshalPlanIDList ¶

func UnmarshalPlanIDList(source interface{}) (items []PlanID, err error)

UnmarshalPlanIDList reads a list of values of the 'plan_ID' type from the given source, which can be a slice of bytes, a string or a reader.

type PlanList ¶

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

PlanList is a list of values of the 'plan' type.

func (*PlanList) Each ¶

func (l *PlanList) Each(f func(item *Plan) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*PlanList) Empty ¶

func (l *PlanList) Empty() bool

Empty returns true if the list is empty.

func (*PlanList) Get ¶

func (l *PlanList) Get(i int) *Plan

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*PlanList) GetHREF ¶

func (l *PlanList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*PlanList) HREF ¶

func (l *PlanList) HREF() string

HREF returns the link to the list.

func (*PlanList) Kind ¶

func (l *PlanList) Kind() string

Kind returns the name of the type of the object.

func (*PlanList) Len ¶

func (l *PlanList) Len() int

Len returns the length of the list.

func (l *PlanList) Link() bool

Link returns true iif this is a link.

func (*PlanList) Range ¶

func (l *PlanList) Range(f func(index int, item *Plan) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*PlanList) Slice ¶

func (l *PlanList) Slice() []*Plan

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type PlanListBuilder ¶

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

PlanListBuilder contains the data and logic needed to build 'plan' objects.

func NewPlanList ¶

func NewPlanList() *PlanListBuilder

NewPlanList creates a new builder of 'plan' objects.

func (*PlanListBuilder) Build ¶

func (b *PlanListBuilder) Build() (list *PlanList, err error)

Build creates a list of 'plan' objects using the configuration stored in the builder.

func (*PlanListBuilder) Copy ¶

func (b *PlanListBuilder) Copy(list *PlanList) *PlanListBuilder

Copy copies the items of the given list into this builder, discarding any previous items.

func (*PlanListBuilder) Empty ¶ added in v0.0.329

func (b *PlanListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*PlanListBuilder) Items ¶

func (b *PlanListBuilder) Items(values ...*PlanBuilder) *PlanListBuilder

Items sets the items of the list.

type PullSecretClient ¶

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

PullSecretClient is the client of the 'pull_secret' resource.

Manages a specific pull secret.

func NewPullSecretClient ¶

func NewPullSecretClient(transport http.RoundTripper, path string) *PullSecretClient

NewPullSecretClient creates a new client for the 'pull_secret' resource using the given transport to send the requests and receive the responses.

func (*PullSecretClient) Delete ¶

Delete creates a request for the 'delete' method.

Deletes the pull secret.

type PullSecretDeleteRequest ¶

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

PullSecretDeleteRequest is the request for the 'delete' method.

func (*PullSecretDeleteRequest) Header ¶

func (r *PullSecretDeleteRequest) Header(name string, value interface{}) *PullSecretDeleteRequest

Header adds a request header.

func (*PullSecretDeleteRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*PullSecretDeleteRequest) Parameter ¶

func (r *PullSecretDeleteRequest) Parameter(name string, value interface{}) *PullSecretDeleteRequest

Parameter adds a query parameter.

func (*PullSecretDeleteRequest) Send ¶

func (r *PullSecretDeleteRequest) Send() (result *PullSecretDeleteResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*PullSecretDeleteRequest) SendContext ¶

func (r *PullSecretDeleteRequest) SendContext(ctx context.Context) (result *PullSecretDeleteResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type PullSecretDeleteResponse ¶

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

PullSecretDeleteResponse is the response for the 'delete' method.

func (*PullSecretDeleteResponse) Error ¶

Error returns the response error.

func (*PullSecretDeleteResponse) Header ¶

func (r *PullSecretDeleteResponse) Header() http.Header

Header returns header of the response.

func (*PullSecretDeleteResponse) Status ¶

func (r *PullSecretDeleteResponse) Status() int

Status returns the response status code.

type PullSecretsClient ¶

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

PullSecretsClient is the client of the 'pull_secrets' resource.

Manages pull secrets.

func NewPullSecretsClient ¶

func NewPullSecretsClient(transport http.RoundTripper, path string) *PullSecretsClient

NewPullSecretsClient creates a new client for the 'pull_secrets' resource using the given transport to send the requests and receive the responses.

func (*PullSecretsClient) Post ¶

Post creates a request for the 'post' method.

Returns access token generated from registries in docker format.

func (*PullSecretsClient) PullSecret ¶

func (c *PullSecretsClient) PullSecret(id string) *PullSecretClient

PullSecret returns the target 'pull_secret' resource for the given identifier.

Reference to the service that manages a specific pull secret.

type PullSecretsPostRequest ¶

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

PullSecretsPostRequest is the request for the 'post' method.

func (*PullSecretsPostRequest) Header ¶

func (r *PullSecretsPostRequest) Header(name string, value interface{}) *PullSecretsPostRequest

Header adds a request header.

func (*PullSecretsPostRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*PullSecretsPostRequest) Parameter ¶

func (r *PullSecretsPostRequest) Parameter(name string, value interface{}) *PullSecretsPostRequest

Parameter adds a query parameter.

func (*PullSecretsPostRequest) Request ¶

Request sets the value of the 'request' parameter.

func (*PullSecretsPostRequest) Send ¶

func (r *PullSecretsPostRequest) Send() (result *PullSecretsPostResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*PullSecretsPostRequest) SendContext ¶

func (r *PullSecretsPostRequest) SendContext(ctx context.Context) (result *PullSecretsPostResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type PullSecretsPostResponse ¶

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

PullSecretsPostResponse is the response for the 'post' method.

func (*PullSecretsPostResponse) Body ¶

Body returns the value of the 'body' parameter.

func (*PullSecretsPostResponse) Error ¶

func (r *PullSecretsPostResponse) Error() *errors.Error

Error returns the response error.

func (*PullSecretsPostResponse) GetBody ¶

func (r *PullSecretsPostResponse) GetBody() (value *AccessToken, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*PullSecretsPostResponse) Header ¶

func (r *PullSecretsPostResponse) Header() http.Header

Header returns header of the response.

func (*PullSecretsPostResponse) Status ¶

func (r *PullSecretsPostResponse) Status() int

Status returns the response status code.

type PullSecretsRequest ¶

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

PullSecretsRequest represents the values of the 'pull_secrets_request' type.

func UnmarshalPullSecretsRequest ¶

func UnmarshalPullSecretsRequest(source interface{}) (object *PullSecretsRequest, err error)

UnmarshalPullSecretsRequest reads a value of the 'pull_secrets_request' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalPullSecretsRequestList ¶

func UnmarshalPullSecretsRequestList(source interface{}) (items []*PullSecretsRequest, err error)

UnmarshalPullSecretsRequestList reads a list of values of the 'pull_secrets_request' type from the given source, which can be a slice of bytes, a string or a reader.

func (*PullSecretsRequest) Empty ¶

func (o *PullSecretsRequest) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*PullSecretsRequest) ExternalResourceId ¶

func (o *PullSecretsRequest) ExternalResourceId() string

ExternalResourceId returns the value of the 'external_resource_id' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*PullSecretsRequest) GetExternalResourceId ¶

func (o *PullSecretsRequest) GetExternalResourceId() (value string, ok bool)

GetExternalResourceId returns the value of the 'external_resource_id' attribute and a flag indicating if the attribute has a value.

type PullSecretsRequestBuilder ¶

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

PullSecretsRequestBuilder contains the data and logic needed to build 'pull_secrets_request' objects.

func NewPullSecretsRequest ¶

func NewPullSecretsRequest() *PullSecretsRequestBuilder

NewPullSecretsRequest creates a new builder of 'pull_secrets_request' objects.

func (*PullSecretsRequestBuilder) Build ¶

func (b *PullSecretsRequestBuilder) Build() (object *PullSecretsRequest, err error)

Build creates a 'pull_secrets_request' object using the configuration stored in the builder.

func (*PullSecretsRequestBuilder) Copy ¶

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*PullSecretsRequestBuilder) Empty ¶ added in v0.0.329

func (b *PullSecretsRequestBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*PullSecretsRequestBuilder) ExternalResourceId ¶

func (b *PullSecretsRequestBuilder) ExternalResourceId(value string) *PullSecretsRequestBuilder

ExternalResourceId sets the value of the 'external_resource_id' attribute to the given value.

type PullSecretsRequestList ¶

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

PullSecretsRequestList is a list of values of the 'pull_secrets_request' type.

func (*PullSecretsRequestList) Each ¶

func (l *PullSecretsRequestList) Each(f func(item *PullSecretsRequest) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*PullSecretsRequestList) Empty ¶

func (l *PullSecretsRequestList) Empty() bool

Empty returns true if the list is empty.

func (*PullSecretsRequestList) Get ¶

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*PullSecretsRequestList) Len ¶

func (l *PullSecretsRequestList) Len() int

Len returns the length of the list.

func (*PullSecretsRequestList) Range ¶

func (l *PullSecretsRequestList) Range(f func(index int, item *PullSecretsRequest) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*PullSecretsRequestList) Slice ¶

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type PullSecretsRequestListBuilder ¶

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

PullSecretsRequestListBuilder contains the data and logic needed to build 'pull_secrets_request' objects.

func NewPullSecretsRequestList ¶

func NewPullSecretsRequestList() *PullSecretsRequestListBuilder

NewPullSecretsRequestList creates a new builder of 'pull_secrets_request' objects.

func (*PullSecretsRequestListBuilder) Build ¶

Build creates a list of 'pull_secrets_request' objects using the configuration stored in the builder.

func (*PullSecretsRequestListBuilder) Copy ¶

Copy copies the items of the given list into this builder, discarding any previous items.

func (*PullSecretsRequestListBuilder) Empty ¶ added in v0.0.329

Empty returns true if the list is empty.

func (*PullSecretsRequestListBuilder) Items ¶

Items sets the items of the list.

type QuotaAuthorizationRequest ¶ added in v0.0.329

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

QuotaAuthorizationRequest represents the values of the 'quota_authorization_request' type.

func UnmarshalQuotaAuthorizationRequest ¶ added in v0.0.329

func UnmarshalQuotaAuthorizationRequest(source interface{}) (object *QuotaAuthorizationRequest, err error)

UnmarshalQuotaAuthorizationRequest reads a value of the 'quota_authorization_request' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalQuotaAuthorizationRequestList ¶ added in v0.0.329

func UnmarshalQuotaAuthorizationRequestList(source interface{}) (items []*QuotaAuthorizationRequest, err error)

UnmarshalQuotaAuthorizationRequestList reads a list of values of the 'quota_authorization_request' type from the given source, which can be a slice of bytes, a string or a reader.

func (*QuotaAuthorizationRequest) AccountUsername ¶ added in v0.0.329

func (o *QuotaAuthorizationRequest) AccountUsername() string

AccountUsername returns the value of the 'account_username' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*QuotaAuthorizationRequest) AvailabilityZone ¶ added in v0.0.329

func (o *QuotaAuthorizationRequest) AvailabilityZone() string

AvailabilityZone returns the value of the 'availability_zone' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*QuotaAuthorizationRequest) DisplayName ¶ added in v0.0.329

func (o *QuotaAuthorizationRequest) DisplayName() string

DisplayName returns the value of the 'display_name' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*QuotaAuthorizationRequest) Empty ¶ added in v0.0.329

func (o *QuotaAuthorizationRequest) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*QuotaAuthorizationRequest) GetAccountUsername ¶ added in v0.0.329

func (o *QuotaAuthorizationRequest) GetAccountUsername() (value string, ok bool)

GetAccountUsername returns the value of the 'account_username' attribute and a flag indicating if the attribute has a value.

func (*QuotaAuthorizationRequest) GetAvailabilityZone ¶ added in v0.0.329

func (o *QuotaAuthorizationRequest) GetAvailabilityZone() (value string, ok bool)

GetAvailabilityZone returns the value of the 'availability_zone' attribute and a flag indicating if the attribute has a value.

func (*QuotaAuthorizationRequest) GetDisplayName ¶ added in v0.0.329

func (o *QuotaAuthorizationRequest) GetDisplayName() (value string, ok bool)

GetDisplayName returns the value of the 'display_name' attribute and a flag indicating if the attribute has a value.

func (*QuotaAuthorizationRequest) GetProductCategory ¶ added in v0.0.329

func (o *QuotaAuthorizationRequest) GetProductCategory() (value string, ok bool)

GetProductCategory returns the value of the 'product_category' attribute and a flag indicating if the attribute has a value.

func (*QuotaAuthorizationRequest) GetProductID ¶ added in v0.0.329

func (o *QuotaAuthorizationRequest) GetProductID() (value string, ok bool)

GetProductID returns the value of the 'product_ID' attribute and a flag indicating if the attribute has a value.

func (*QuotaAuthorizationRequest) GetQuotaVersion ¶ added in v0.0.329

func (o *QuotaAuthorizationRequest) GetQuotaVersion() (value string, ok bool)

GetQuotaVersion returns the value of the 'quota_version' attribute and a flag indicating if the attribute has a value.

func (*QuotaAuthorizationRequest) GetReserve ¶ added in v0.0.329

func (o *QuotaAuthorizationRequest) GetReserve() (value bool, ok bool)

GetReserve returns the value of the 'reserve' attribute and a flag indicating if the attribute has a value.

func (*QuotaAuthorizationRequest) GetResources ¶ added in v0.0.329

func (o *QuotaAuthorizationRequest) GetResources() (value []*ReservedResource, ok bool)

GetResources returns the value of the 'resources' attribute and a flag indicating if the attribute has a value.

func (*QuotaAuthorizationRequest) ProductCategory ¶ added in v0.0.329

func (o *QuotaAuthorizationRequest) ProductCategory() string

ProductCategory returns the value of the 'product_category' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*QuotaAuthorizationRequest) ProductID ¶ added in v0.0.329

func (o *QuotaAuthorizationRequest) ProductID() string

ProductID returns the value of the 'product_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*QuotaAuthorizationRequest) QuotaVersion ¶ added in v0.0.329

func (o *QuotaAuthorizationRequest) QuotaVersion() string

QuotaVersion returns the value of the 'quota_version' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*QuotaAuthorizationRequest) Reserve ¶ added in v0.0.329

func (o *QuotaAuthorizationRequest) Reserve() bool

Reserve returns the value of the 'reserve' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*QuotaAuthorizationRequest) Resources ¶ added in v0.0.329

func (o *QuotaAuthorizationRequest) Resources() []*ReservedResource

Resources returns the value of the 'resources' attribute, or the zero value of the type if the attribute doesn't have a value.

type QuotaAuthorizationRequestBuilder ¶ added in v0.0.329

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

QuotaAuthorizationRequestBuilder contains the data and logic needed to build 'quota_authorization_request' objects.

func NewQuotaAuthorizationRequest ¶ added in v0.0.329

func NewQuotaAuthorizationRequest() *QuotaAuthorizationRequestBuilder

NewQuotaAuthorizationRequest creates a new builder of 'quota_authorization_request' objects.

func (*QuotaAuthorizationRequestBuilder) AccountUsername ¶ added in v0.0.329

AccountUsername sets the value of the 'account_username' attribute to the given value.

func (*QuotaAuthorizationRequestBuilder) AvailabilityZone ¶ added in v0.0.329

AvailabilityZone sets the value of the 'availability_zone' attribute to the given value.

func (*QuotaAuthorizationRequestBuilder) Build ¶ added in v0.0.329

Build creates a 'quota_authorization_request' object using the configuration stored in the builder.

func (*QuotaAuthorizationRequestBuilder) Copy ¶ added in v0.0.329

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*QuotaAuthorizationRequestBuilder) DisplayName ¶ added in v0.0.329

DisplayName sets the value of the 'display_name' attribute to the given value.

func (*QuotaAuthorizationRequestBuilder) Empty ¶ added in v0.0.329

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*QuotaAuthorizationRequestBuilder) ProductCategory ¶ added in v0.0.329

ProductCategory sets the value of the 'product_category' attribute to the given value.

func (*QuotaAuthorizationRequestBuilder) ProductID ¶ added in v0.0.329

ProductID sets the value of the 'product_ID' attribute to the given value.

func (*QuotaAuthorizationRequestBuilder) QuotaVersion ¶ added in v0.0.329

QuotaVersion sets the value of the 'quota_version' attribute to the given value.

func (*QuotaAuthorizationRequestBuilder) Reserve ¶ added in v0.0.329

Reserve sets the value of the 'reserve' attribute to the given value.

func (*QuotaAuthorizationRequestBuilder) Resources ¶ added in v0.0.329

Resources sets the value of the 'resources' attribute to the given values.

type QuotaAuthorizationRequestList ¶ added in v0.0.329

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

QuotaAuthorizationRequestList is a list of values of the 'quota_authorization_request' type.

func (*QuotaAuthorizationRequestList) Each ¶ added in v0.0.329

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*QuotaAuthorizationRequestList) Empty ¶ added in v0.0.329

Empty returns true if the list is empty.

func (*QuotaAuthorizationRequestList) Get ¶ added in v0.0.329

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*QuotaAuthorizationRequestList) Len ¶ added in v0.0.329

Len returns the length of the list.

func (*QuotaAuthorizationRequestList) Range ¶ added in v0.0.329

func (l *QuotaAuthorizationRequestList) Range(f func(index int, item *QuotaAuthorizationRequest) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*QuotaAuthorizationRequestList) Slice ¶ added in v0.0.329

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type QuotaAuthorizationRequestListBuilder ¶ added in v0.0.329

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

QuotaAuthorizationRequestListBuilder contains the data and logic needed to build 'quota_authorization_request' objects.

func NewQuotaAuthorizationRequestList ¶ added in v0.0.329

func NewQuotaAuthorizationRequestList() *QuotaAuthorizationRequestListBuilder

NewQuotaAuthorizationRequestList creates a new builder of 'quota_authorization_request' objects.

func (*QuotaAuthorizationRequestListBuilder) Build ¶ added in v0.0.329

Build creates a list of 'quota_authorization_request' objects using the configuration stored in the builder.

func (*QuotaAuthorizationRequestListBuilder) Copy ¶ added in v0.0.329

Copy copies the items of the given list into this builder, discarding any previous items.

func (*QuotaAuthorizationRequestListBuilder) Empty ¶ added in v0.0.329

Empty returns true if the list is empty.

func (*QuotaAuthorizationRequestListBuilder) Items ¶ added in v0.0.329

Items sets the items of the list.

type QuotaAuthorizationResponse ¶ added in v0.0.329

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

QuotaAuthorizationResponse represents the values of the 'quota_authorization_response' type.

func UnmarshalQuotaAuthorizationResponse ¶ added in v0.0.329

func UnmarshalQuotaAuthorizationResponse(source interface{}) (object *QuotaAuthorizationResponse, err error)

UnmarshalQuotaAuthorizationResponse reads a value of the 'quota_authorization_response' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalQuotaAuthorizationResponseList ¶ added in v0.0.329

func UnmarshalQuotaAuthorizationResponseList(source interface{}) (items []*QuotaAuthorizationResponse, err error)

UnmarshalQuotaAuthorizationResponseList reads a list of values of the 'quota_authorization_response' type from the given source, which can be a slice of bytes, a string or a reader.

func (*QuotaAuthorizationResponse) Allowed ¶ added in v0.0.329

func (o *QuotaAuthorizationResponse) Allowed() bool

Allowed returns the value of the 'allowed' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*QuotaAuthorizationResponse) Empty ¶ added in v0.0.329

func (o *QuotaAuthorizationResponse) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*QuotaAuthorizationResponse) ExcessResources ¶ added in v0.0.329

func (o *QuotaAuthorizationResponse) ExcessResources() []*ReservedResource

ExcessResources returns the value of the 'excess_resources' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*QuotaAuthorizationResponse) GetAllowed ¶ added in v0.0.329

func (o *QuotaAuthorizationResponse) GetAllowed() (value bool, ok bool)

GetAllowed returns the value of the 'allowed' attribute and a flag indicating if the attribute has a value.

func (*QuotaAuthorizationResponse) GetExcessResources ¶ added in v0.0.329

func (o *QuotaAuthorizationResponse) GetExcessResources() (value []*ReservedResource, ok bool)

GetExcessResources returns the value of the 'excess_resources' attribute and a flag indicating if the attribute has a value.

func (*QuotaAuthorizationResponse) GetSubscription ¶ added in v0.0.329

func (o *QuotaAuthorizationResponse) GetSubscription() (value *Subscription, ok bool)

GetSubscription returns the value of the 'subscription' attribute and a flag indicating if the attribute has a value.

func (*QuotaAuthorizationResponse) Subscription ¶ added in v0.0.329

func (o *QuotaAuthorizationResponse) Subscription() *Subscription

Subscription returns the value of the 'subscription' attribute, or the zero value of the type if the attribute doesn't have a value.

type QuotaAuthorizationResponseBuilder ¶ added in v0.0.329

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

QuotaAuthorizationResponseBuilder contains the data and logic needed to build 'quota_authorization_response' objects.

func NewQuotaAuthorizationResponse ¶ added in v0.0.329

func NewQuotaAuthorizationResponse() *QuotaAuthorizationResponseBuilder

NewQuotaAuthorizationResponse creates a new builder of 'quota_authorization_response' objects.

func (*QuotaAuthorizationResponseBuilder) Allowed ¶ added in v0.0.329

Allowed sets the value of the 'allowed' attribute to the given value.

func (*QuotaAuthorizationResponseBuilder) Build ¶ added in v0.0.329

Build creates a 'quota_authorization_response' object using the configuration stored in the builder.

func (*QuotaAuthorizationResponseBuilder) Copy ¶ added in v0.0.329

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*QuotaAuthorizationResponseBuilder) Empty ¶ added in v0.0.329

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*QuotaAuthorizationResponseBuilder) ExcessResources ¶ added in v0.0.329

ExcessResources sets the value of the 'excess_resources' attribute to the given values.

func (*QuotaAuthorizationResponseBuilder) Subscription ¶ added in v0.0.329

Subscription sets the value of the 'subscription' attribute to the given value.

type QuotaAuthorizationResponseList ¶ added in v0.0.329

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

QuotaAuthorizationResponseList is a list of values of the 'quota_authorization_response' type.

func (*QuotaAuthorizationResponseList) Each ¶ added in v0.0.329

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*QuotaAuthorizationResponseList) Empty ¶ added in v0.0.329

Empty returns true if the list is empty.

func (*QuotaAuthorizationResponseList) Get ¶ added in v0.0.329

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*QuotaAuthorizationResponseList) Len ¶ added in v0.0.329

Len returns the length of the list.

func (*QuotaAuthorizationResponseList) Range ¶ added in v0.0.329

func (l *QuotaAuthorizationResponseList) Range(f func(index int, item *QuotaAuthorizationResponse) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*QuotaAuthorizationResponseList) Slice ¶ added in v0.0.329

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type QuotaAuthorizationResponseListBuilder ¶ added in v0.0.329

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

QuotaAuthorizationResponseListBuilder contains the data and logic needed to build 'quota_authorization_response' objects.

func NewQuotaAuthorizationResponseList ¶ added in v0.0.329

func NewQuotaAuthorizationResponseList() *QuotaAuthorizationResponseListBuilder

NewQuotaAuthorizationResponseList creates a new builder of 'quota_authorization_response' objects.

func (*QuotaAuthorizationResponseListBuilder) Build ¶ added in v0.0.329

Build creates a list of 'quota_authorization_response' objects using the configuration stored in the builder.

func (*QuotaAuthorizationResponseListBuilder) Copy ¶ added in v0.0.329

Copy copies the items of the given list into this builder, discarding any previous items.

func (*QuotaAuthorizationResponseListBuilder) Empty ¶ added in v0.0.329

Empty returns true if the list is empty.

func (*QuotaAuthorizationResponseListBuilder) Items ¶ added in v0.0.329

Items sets the items of the list.

type QuotaAuthorizationsClient ¶ added in v0.0.329

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

QuotaAuthorizationsClient is the client of the 'quota_authorizations' resource.

Manages cluster authorizations.

func NewQuotaAuthorizationsClient ¶ added in v0.0.329

func NewQuotaAuthorizationsClient(transport http.RoundTripper, path string) *QuotaAuthorizationsClient

NewQuotaAuthorizationsClient creates a new client for the 'quota_authorizations' resource using the given transport to send the requests and receive the responses.

func (*QuotaAuthorizationsClient) Post ¶ added in v0.0.329

Post creates a request for the 'post' method.

Authorizes new quota creation against an existing subscription.

type QuotaAuthorizationsPostRequest ¶ added in v0.0.329

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

QuotaAuthorizationsPostRequest is the request for the 'post' method.

func (*QuotaAuthorizationsPostRequest) Header ¶ added in v0.0.329

func (r *QuotaAuthorizationsPostRequest) Header(name string, value interface{}) *QuotaAuthorizationsPostRequest

Header adds a request header.

func (*QuotaAuthorizationsPostRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*QuotaAuthorizationsPostRequest) Parameter ¶ added in v0.0.329

func (r *QuotaAuthorizationsPostRequest) Parameter(name string, value interface{}) *QuotaAuthorizationsPostRequest

Parameter adds a query parameter.

func (*QuotaAuthorizationsPostRequest) Request ¶ added in v0.0.329

Request sets the value of the 'request' parameter.

func (*QuotaAuthorizationsPostRequest) Send ¶ added in v0.0.329

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*QuotaAuthorizationsPostRequest) SendContext ¶ added in v0.0.329

SendContext sends this request, waits for the response, and returns it.

type QuotaAuthorizationsPostResponse ¶ added in v0.0.329

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

QuotaAuthorizationsPostResponse is the response for the 'post' method.

func (*QuotaAuthorizationsPostResponse) Error ¶ added in v0.0.329

Error returns the response error.

func (*QuotaAuthorizationsPostResponse) GetResponse ¶ added in v0.0.329

func (r *QuotaAuthorizationsPostResponse) GetResponse() (value *QuotaAuthorizationResponse, ok bool)

GetResponse returns the value of the 'response' parameter and a flag indicating if the parameter has a value.

func (*QuotaAuthorizationsPostResponse) Header ¶ added in v0.0.329

Header returns header of the response.

func (*QuotaAuthorizationsPostResponse) Response ¶ added in v0.0.329

Response returns the value of the 'response' parameter.

func (*QuotaAuthorizationsPostResponse) Status ¶ added in v0.0.329

Status returns the response status code.

type QuotaCost ¶ added in v0.0.329

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

QuotaCost represents the values of the 'quota_cost' type.

func UnmarshalQuotaCost ¶ added in v0.0.329

func UnmarshalQuotaCost(source interface{}) (object *QuotaCost, err error)

UnmarshalQuotaCost reads a value of the 'quota_cost' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalQuotaCostList ¶ added in v0.0.329

func UnmarshalQuotaCostList(source interface{}) (items []*QuotaCost, err error)

UnmarshalQuotaCostList reads a list of values of the 'quota_cost' type from the given source, which can be a slice of bytes, a string or a reader.

func (*QuotaCost) Allowed ¶ added in v0.0.329

func (o *QuotaCost) Allowed() int

Allowed returns the value of the 'allowed' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*QuotaCost) CloudAccounts ¶ added in v0.0.329

func (o *QuotaCost) CloudAccounts() []*CloudAccount

CloudAccounts returns the value of the 'cloud_accounts' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*QuotaCost) Consumed ¶ added in v0.0.329

func (o *QuotaCost) Consumed() int

Consumed returns the value of the 'consumed' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*QuotaCost) Empty ¶ added in v0.0.329

func (o *QuotaCost) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*QuotaCost) GetAllowed ¶ added in v0.0.329

func (o *QuotaCost) GetAllowed() (value int, ok bool)

GetAllowed returns the value of the 'allowed' attribute and a flag indicating if the attribute has a value.

func (*QuotaCost) GetCloudAccounts ¶ added in v0.0.329

func (o *QuotaCost) GetCloudAccounts() (value []*CloudAccount, ok bool)

GetCloudAccounts returns the value of the 'cloud_accounts' attribute and a flag indicating if the attribute has a value.

func (*QuotaCost) GetConsumed ¶ added in v0.0.329

func (o *QuotaCost) GetConsumed() (value int, ok bool)

GetConsumed returns the value of the 'consumed' attribute and a flag indicating if the attribute has a value.

func (*QuotaCost) GetOrganizationID ¶ added in v0.0.329

func (o *QuotaCost) GetOrganizationID() (value string, ok bool)

GetOrganizationID returns the value of the 'organization_ID' attribute and a flag indicating if the attribute has a value.

func (*QuotaCost) GetQuotaID ¶ added in v0.0.329

func (o *QuotaCost) GetQuotaID() (value string, ok bool)

GetQuotaID returns the value of the 'quota_ID' attribute and a flag indicating if the attribute has a value.

func (*QuotaCost) GetRelatedResources ¶ added in v0.0.329

func (o *QuotaCost) GetRelatedResources() (value []*RelatedResource, ok bool)

GetRelatedResources returns the value of the 'related_resources' attribute and a flag indicating if the attribute has a value.

func (*QuotaCost) GetVersion ¶ added in v0.1.331

func (o *QuotaCost) GetVersion() (value string, ok bool)

GetVersion returns the value of the 'version' attribute and a flag indicating if the attribute has a value.

func (*QuotaCost) OrganizationID ¶ added in v0.0.329

func (o *QuotaCost) OrganizationID() string

OrganizationID returns the value of the 'organization_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*QuotaCost) QuotaID ¶ added in v0.0.329

func (o *QuotaCost) QuotaID() string

QuotaID returns the value of the 'quota_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*QuotaCost) RelatedResources ¶ added in v0.0.329

func (o *QuotaCost) RelatedResources() []*RelatedResource

RelatedResources returns the value of the 'related_resources' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*QuotaCost) Version ¶ added in v0.1.331

func (o *QuotaCost) Version() string

Version returns the value of the 'version' attribute, or the zero value of the type if the attribute doesn't have a value.

type QuotaCostBuilder ¶ added in v0.0.329

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

QuotaCostBuilder contains the data and logic needed to build 'quota_cost' objects.

func NewQuotaCost ¶ added in v0.0.329

func NewQuotaCost() *QuotaCostBuilder

NewQuotaCost creates a new builder of 'quota_cost' objects.

func (*QuotaCostBuilder) Allowed ¶ added in v0.0.329

func (b *QuotaCostBuilder) Allowed(value int) *QuotaCostBuilder

Allowed sets the value of the 'allowed' attribute to the given value.

func (*QuotaCostBuilder) Build ¶ added in v0.0.329

func (b *QuotaCostBuilder) Build() (object *QuotaCost, err error)

Build creates a 'quota_cost' object using the configuration stored in the builder.

func (*QuotaCostBuilder) CloudAccounts ¶ added in v0.0.329

func (b *QuotaCostBuilder) CloudAccounts(values ...*CloudAccountBuilder) *QuotaCostBuilder

CloudAccounts sets the value of the 'cloud_accounts' attribute to the given values.

func (*QuotaCostBuilder) Consumed ¶ added in v0.0.329

func (b *QuotaCostBuilder) Consumed(value int) *QuotaCostBuilder

Consumed sets the value of the 'consumed' attribute to the given value.

func (*QuotaCostBuilder) Copy ¶ added in v0.0.329

func (b *QuotaCostBuilder) Copy(object *QuotaCost) *QuotaCostBuilder

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*QuotaCostBuilder) Empty ¶ added in v0.0.329

func (b *QuotaCostBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*QuotaCostBuilder) OrganizationID ¶ added in v0.0.329

func (b *QuotaCostBuilder) OrganizationID(value string) *QuotaCostBuilder

OrganizationID sets the value of the 'organization_ID' attribute to the given value.

func (*QuotaCostBuilder) QuotaID ¶ added in v0.0.329

func (b *QuotaCostBuilder) QuotaID(value string) *QuotaCostBuilder

QuotaID sets the value of the 'quota_ID' attribute to the given value.

func (*QuotaCostBuilder) RelatedResources ¶ added in v0.0.329

func (b *QuotaCostBuilder) RelatedResources(values ...*RelatedResourceBuilder) *QuotaCostBuilder

RelatedResources sets the value of the 'related_resources' attribute to the given values.

func (*QuotaCostBuilder) Version ¶ added in v0.1.331

func (b *QuotaCostBuilder) Version(value string) *QuotaCostBuilder

Version sets the value of the 'version' attribute to the given value.

type QuotaCostClient ¶ added in v0.0.329

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

QuotaCostClient is the client of the 'quota_cost' resource.

Manages the quota cost for an organization.

func NewQuotaCostClient ¶ added in v0.0.329

func NewQuotaCostClient(transport http.RoundTripper, path string) *QuotaCostClient

NewQuotaCostClient creates a new client for the 'quota_cost' resource using the given transport to send the requests and receive the responses.

func (*QuotaCostClient) List ¶ added in v0.0.329

List creates a request for the 'list' method.

Retrieves the quota cost.

type QuotaCostList ¶ added in v0.0.329

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

QuotaCostList is a list of values of the 'quota_cost' type.

func (*QuotaCostList) Each ¶ added in v0.0.329

func (l *QuotaCostList) Each(f func(item *QuotaCost) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*QuotaCostList) Empty ¶ added in v0.0.329

func (l *QuotaCostList) Empty() bool

Empty returns true if the list is empty.

func (*QuotaCostList) Get ¶ added in v0.0.329

func (l *QuotaCostList) Get(i int) *QuotaCost

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*QuotaCostList) Len ¶ added in v0.0.329

func (l *QuotaCostList) Len() int

Len returns the length of the list.

func (*QuotaCostList) Range ¶ added in v0.0.329

func (l *QuotaCostList) Range(f func(index int, item *QuotaCost) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*QuotaCostList) Slice ¶ added in v0.0.329

func (l *QuotaCostList) Slice() []*QuotaCost

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type QuotaCostListBuilder ¶ added in v0.0.329

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

QuotaCostListBuilder contains the data and logic needed to build 'quota_cost' objects.

func NewQuotaCostList ¶ added in v0.0.329

func NewQuotaCostList() *QuotaCostListBuilder

NewQuotaCostList creates a new builder of 'quota_cost' objects.

func (*QuotaCostListBuilder) Build ¶ added in v0.0.329

func (b *QuotaCostListBuilder) Build() (list *QuotaCostList, err error)

Build creates a list of 'quota_cost' objects using the configuration stored in the builder.

func (*QuotaCostListBuilder) Copy ¶ added in v0.0.329

Copy copies the items of the given list into this builder, discarding any previous items.

func (*QuotaCostListBuilder) Empty ¶ added in v0.0.329

func (b *QuotaCostListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*QuotaCostListBuilder) Items ¶ added in v0.0.329

Items sets the items of the list.

type QuotaCostListRequest ¶ added in v0.0.329

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

QuotaCostListRequest is the request for the 'list' method.

func (*QuotaCostListRequest) Header ¶ added in v0.0.329

func (r *QuotaCostListRequest) Header(name string, value interface{}) *QuotaCostListRequest

Header adds a request header.

func (*QuotaCostListRequest) Impersonate ¶ added in v0.0.329

func (r *QuotaCostListRequest) Impersonate(user string) *QuotaCostListRequest

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*QuotaCostListRequest) Page ¶ added in v0.0.329

Page sets the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*QuotaCostListRequest) Parameter ¶ added in v0.0.329

func (r *QuotaCostListRequest) Parameter(name string, value interface{}) *QuotaCostListRequest

Parameter adds a query parameter.

func (*QuotaCostListRequest) Search ¶ added in v0.0.329

Search sets the value of the 'search' parameter.

Search criteria.

The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the quota cost instead of the names of the columns of a table. For example, in order to retrieve the quota cost for all add-ons:

```sql quota_id LIKE 'add-on%' ```

If the parameter isn't provided, or if the value is empty, then all the items that the user has permission to see will be returned.

func (*QuotaCostListRequest) Send ¶ added in v0.0.329

func (r *QuotaCostListRequest) Send() (result *QuotaCostListResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*QuotaCostListRequest) SendContext ¶ added in v0.0.329

func (r *QuotaCostListRequest) SendContext(ctx context.Context) (result *QuotaCostListResponse, err error)

SendContext sends this request, waits for the response, and returns it.

func (*QuotaCostListRequest) Size ¶ added in v0.0.329

Size sets the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

type QuotaCostListResponse ¶ added in v0.0.329

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

QuotaCostListResponse is the response for the 'list' method.

func (*QuotaCostListResponse) Error ¶ added in v0.0.329

func (r *QuotaCostListResponse) Error() *errors.Error

Error returns the response error.

func (*QuotaCostListResponse) GetItems ¶ added in v0.0.329

func (r *QuotaCostListResponse) GetItems() (value *QuotaCostList, ok bool)

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

Retrieved quota cost items.

func (*QuotaCostListResponse) GetPage ¶ added in v0.0.329

func (r *QuotaCostListResponse) GetPage() (value int, ok bool)

GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.

Index of the requested page, where one corresponds to the first page.

func (*QuotaCostListResponse) GetSize ¶ added in v0.0.329

func (r *QuotaCostListResponse) GetSize() (value int, ok bool)

GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.

Maximum number of items that will be contained in the returned page.

func (*QuotaCostListResponse) GetTotal ¶ added in v0.0.329

func (r *QuotaCostListResponse) GetTotal() (value int, ok bool)

GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

func (*QuotaCostListResponse) Header ¶ added in v0.0.329

func (r *QuotaCostListResponse) Header() http.Header

Header returns header of the response.

func (*QuotaCostListResponse) Items ¶ added in v0.0.329

Items returns the value of the 'items' parameter.

Retrieved quota cost items.

func (*QuotaCostListResponse) Page ¶ added in v0.0.329

func (r *QuotaCostListResponse) Page() int

Page returns the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*QuotaCostListResponse) Size ¶ added in v0.0.329

func (r *QuotaCostListResponse) Size() int

Size returns the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

func (*QuotaCostListResponse) Status ¶ added in v0.0.329

func (r *QuotaCostListResponse) Status() int

Status returns the response status code.

func (*QuotaCostListResponse) Total ¶ added in v0.0.329

func (r *QuotaCostListResponse) Total() int

Total returns the value of the 'total' parameter.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

type QuotaRules ¶ added in v0.0.329

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

QuotaRules represents the values of the 'quota_rules' type.

func UnmarshalQuotaRules ¶ added in v0.0.329

func UnmarshalQuotaRules(source interface{}) (object *QuotaRules, err error)

UnmarshalQuotaRules reads a value of the 'quota_rules' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalQuotaRulesList ¶ added in v0.0.329

func UnmarshalQuotaRulesList(source interface{}) (items []*QuotaRules, err error)

UnmarshalQuotaRulesList reads a list of values of the 'quota_rules' type from the given source, which can be a slice of bytes, a string or a reader.

func (*QuotaRules) AvailabilityZone ¶ added in v0.0.329

func (o *QuotaRules) AvailabilityZone() string

AvailabilityZone returns the value of the 'availability_zone' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*QuotaRules) BillingModel ¶ added in v0.0.329

func (o *QuotaRules) BillingModel() string

BillingModel returns the value of the 'billing_model' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*QuotaRules) Byoc ¶ added in v0.0.329

func (o *QuotaRules) Byoc() string

Byoc returns the value of the 'byoc' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*QuotaRules) Cloud ¶ added in v0.0.329

func (o *QuotaRules) Cloud() string

Cloud returns the value of the 'cloud' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*QuotaRules) Cost ¶ added in v0.0.329

func (o *QuotaRules) Cost() int

Cost returns the value of the 'cost' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*QuotaRules) Empty ¶ added in v0.0.329

func (o *QuotaRules) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*QuotaRules) GetAvailabilityZone ¶ added in v0.0.329

func (o *QuotaRules) GetAvailabilityZone() (value string, ok bool)

GetAvailabilityZone returns the value of the 'availability_zone' attribute and a flag indicating if the attribute has a value.

func (*QuotaRules) GetBillingModel ¶ added in v0.0.329

func (o *QuotaRules) GetBillingModel() (value string, ok bool)

GetBillingModel returns the value of the 'billing_model' attribute and a flag indicating if the attribute has a value.

func (*QuotaRules) GetByoc ¶ added in v0.0.329

func (o *QuotaRules) GetByoc() (value string, ok bool)

GetByoc returns the value of the 'byoc' attribute and a flag indicating if the attribute has a value.

func (*QuotaRules) GetCloud ¶ added in v0.0.329

func (o *QuotaRules) GetCloud() (value string, ok bool)

GetCloud returns the value of the 'cloud' attribute and a flag indicating if the attribute has a value.

func (*QuotaRules) GetCost ¶ added in v0.0.329

func (o *QuotaRules) GetCost() (value int, ok bool)

GetCost returns the value of the 'cost' attribute and a flag indicating if the attribute has a value.

func (*QuotaRules) GetName ¶ added in v0.0.329

func (o *QuotaRules) GetName() (value string, ok bool)

GetName returns the value of the 'name' attribute and a flag indicating if the attribute has a value.

func (*QuotaRules) GetProduct ¶ added in v0.0.329

func (o *QuotaRules) GetProduct() (value string, ok bool)

GetProduct returns the value of the 'product' attribute and a flag indicating if the attribute has a value.

func (*QuotaRules) GetQuotaId ¶ added in v0.0.329

func (o *QuotaRules) GetQuotaId() (value string, ok bool)

GetQuotaId returns the value of the 'quota_id' attribute and a flag indicating if the attribute has a value.

func (*QuotaRules) Name ¶ added in v0.0.329

func (o *QuotaRules) Name() string

Name returns the value of the 'name' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*QuotaRules) Product ¶ added in v0.0.329

func (o *QuotaRules) Product() string

Product returns the value of the 'product' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*QuotaRules) QuotaId ¶ added in v0.0.329

func (o *QuotaRules) QuotaId() string

QuotaId returns the value of the 'quota_id' attribute, or the zero value of the type if the attribute doesn't have a value.

type QuotaRulesBuilder ¶ added in v0.0.329

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

QuotaRulesBuilder contains the data and logic needed to build 'quota_rules' objects.

func NewQuotaRules ¶ added in v0.0.329

func NewQuotaRules() *QuotaRulesBuilder

NewQuotaRules creates a new builder of 'quota_rules' objects.

func (*QuotaRulesBuilder) AvailabilityZone ¶ added in v0.0.329

func (b *QuotaRulesBuilder) AvailabilityZone(value string) *QuotaRulesBuilder

AvailabilityZone sets the value of the 'availability_zone' attribute to the given value.

func (*QuotaRulesBuilder) BillingModel ¶ added in v0.0.329

func (b *QuotaRulesBuilder) BillingModel(value string) *QuotaRulesBuilder

BillingModel sets the value of the 'billing_model' attribute to the given value.

func (*QuotaRulesBuilder) Build ¶ added in v0.0.329

func (b *QuotaRulesBuilder) Build() (object *QuotaRules, err error)

Build creates a 'quota_rules' object using the configuration stored in the builder.

func (*QuotaRulesBuilder) Byoc ¶ added in v0.0.329

func (b *QuotaRulesBuilder) Byoc(value string) *QuotaRulesBuilder

Byoc sets the value of the 'byoc' attribute to the given value.

func (*QuotaRulesBuilder) Cloud ¶ added in v0.0.329

func (b *QuotaRulesBuilder) Cloud(value string) *QuotaRulesBuilder

Cloud sets the value of the 'cloud' attribute to the given value.

func (*QuotaRulesBuilder) Copy ¶ added in v0.0.329

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*QuotaRulesBuilder) Cost ¶ added in v0.0.329

func (b *QuotaRulesBuilder) Cost(value int) *QuotaRulesBuilder

Cost sets the value of the 'cost' attribute to the given value.

func (*QuotaRulesBuilder) Empty ¶ added in v0.0.329

func (b *QuotaRulesBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*QuotaRulesBuilder) Name ¶ added in v0.0.329

func (b *QuotaRulesBuilder) Name(value string) *QuotaRulesBuilder

Name sets the value of the 'name' attribute to the given value.

func (*QuotaRulesBuilder) Product ¶ added in v0.0.329

func (b *QuotaRulesBuilder) Product(value string) *QuotaRulesBuilder

Product sets the value of the 'product' attribute to the given value.

func (*QuotaRulesBuilder) QuotaId ¶ added in v0.0.329

func (b *QuotaRulesBuilder) QuotaId(value string) *QuotaRulesBuilder

QuotaId sets the value of the 'quota_id' attribute to the given value.

type QuotaRulesClient ¶ added in v0.0.329

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

QuotaRulesClient is the client of the 'quota_rules' resource.

Manages the quota rules.

func NewQuotaRulesClient ¶ added in v0.0.329

func NewQuotaRulesClient(transport http.RoundTripper, path string) *QuotaRulesClient

NewQuotaRulesClient creates a new client for the 'quota_rules' resource using the given transport to send the requests and receive the responses.

func (*QuotaRulesClient) List ¶ added in v0.0.329

List creates a request for the 'list' method.

Retrieves the quota rules.

type QuotaRulesList ¶ added in v0.0.329

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

QuotaRulesList is a list of values of the 'quota_rules' type.

func (*QuotaRulesList) Each ¶ added in v0.0.329

func (l *QuotaRulesList) Each(f func(item *QuotaRules) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*QuotaRulesList) Empty ¶ added in v0.0.329

func (l *QuotaRulesList) Empty() bool

Empty returns true if the list is empty.

func (*QuotaRulesList) Get ¶ added in v0.0.329

func (l *QuotaRulesList) Get(i int) *QuotaRules

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*QuotaRulesList) Len ¶ added in v0.0.329

func (l *QuotaRulesList) Len() int

Len returns the length of the list.

func (*QuotaRulesList) Range ¶ added in v0.0.329

func (l *QuotaRulesList) Range(f func(index int, item *QuotaRules) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*QuotaRulesList) Slice ¶ added in v0.0.329

func (l *QuotaRulesList) Slice() []*QuotaRules

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type QuotaRulesListBuilder ¶ added in v0.0.329

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

QuotaRulesListBuilder contains the data and logic needed to build 'quota_rules' objects.

func NewQuotaRulesList ¶ added in v0.0.329

func NewQuotaRulesList() *QuotaRulesListBuilder

NewQuotaRulesList creates a new builder of 'quota_rules' objects.

func (*QuotaRulesListBuilder) Build ¶ added in v0.0.329

func (b *QuotaRulesListBuilder) Build() (list *QuotaRulesList, err error)

Build creates a list of 'quota_rules' objects using the configuration stored in the builder.

func (*QuotaRulesListBuilder) Copy ¶ added in v0.0.329

Copy copies the items of the given list into this builder, discarding any previous items.

func (*QuotaRulesListBuilder) Empty ¶ added in v0.0.329

func (b *QuotaRulesListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*QuotaRulesListBuilder) Items ¶ added in v0.0.329

Items sets the items of the list.

type QuotaRulesListRequest ¶ added in v0.0.329

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

QuotaRulesListRequest is the request for the 'list' method.

func (*QuotaRulesListRequest) Header ¶ added in v0.0.329

func (r *QuotaRulesListRequest) Header(name string, value interface{}) *QuotaRulesListRequest

Header adds a request header.

func (*QuotaRulesListRequest) Impersonate ¶ added in v0.0.329

func (r *QuotaRulesListRequest) Impersonate(user string) *QuotaRulesListRequest

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*QuotaRulesListRequest) Page ¶ added in v0.0.329

Page sets the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*QuotaRulesListRequest) Parameter ¶ added in v0.0.329

func (r *QuotaRulesListRequest) Parameter(name string, value interface{}) *QuotaRulesListRequest

Parameter adds a query parameter.

func (*QuotaRulesListRequest) Search ¶ added in v0.0.329

Search sets the value of the 'search' parameter.

Search criteria.

The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the quota cost instead of the names of the columns of a table. For example, in order to retrieve the quota rule for all add-ons:

```sql quota_id LIKE 'add-on%' ```

If the parameter isn't provided, or if the value is empty, then all the items that the user has permission to see will be returned.

func (*QuotaRulesListRequest) Send ¶ added in v0.0.329

func (r *QuotaRulesListRequest) Send() (result *QuotaRulesListResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*QuotaRulesListRequest) SendContext ¶ added in v0.0.329

func (r *QuotaRulesListRequest) SendContext(ctx context.Context) (result *QuotaRulesListResponse, err error)

SendContext sends this request, waits for the response, and returns it.

func (*QuotaRulesListRequest) Size ¶ added in v0.0.329

Size sets the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

type QuotaRulesListResponse ¶ added in v0.0.329

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

QuotaRulesListResponse is the response for the 'list' method.

func (*QuotaRulesListResponse) Error ¶ added in v0.0.329

func (r *QuotaRulesListResponse) Error() *errors.Error

Error returns the response error.

func (*QuotaRulesListResponse) GetItems ¶ added in v0.0.329

func (r *QuotaRulesListResponse) GetItems() (value *QuotaRulesList, ok bool)

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

Retrieved quota rules items.

func (*QuotaRulesListResponse) GetPage ¶ added in v0.0.329

func (r *QuotaRulesListResponse) GetPage() (value int, ok bool)

GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.

Index of the requested page, where one corresponds to the first page.

func (*QuotaRulesListResponse) GetSize ¶ added in v0.0.329

func (r *QuotaRulesListResponse) GetSize() (value int, ok bool)

GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.

Maximum number of items that will be contained in the returned page.

func (*QuotaRulesListResponse) GetTotal ¶ added in v0.0.329

func (r *QuotaRulesListResponse) GetTotal() (value int, ok bool)

GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

func (*QuotaRulesListResponse) Header ¶ added in v0.0.329

func (r *QuotaRulesListResponse) Header() http.Header

Header returns header of the response.

func (*QuotaRulesListResponse) Items ¶ added in v0.0.329

Items returns the value of the 'items' parameter.

Retrieved quota rules items.

func (*QuotaRulesListResponse) Page ¶ added in v0.0.329

func (r *QuotaRulesListResponse) Page() int

Page returns the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*QuotaRulesListResponse) Size ¶ added in v0.0.329

func (r *QuotaRulesListResponse) Size() int

Size returns the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

func (*QuotaRulesListResponse) Status ¶ added in v0.0.329

func (r *QuotaRulesListResponse) Status() int

Status returns the response status code.

func (*QuotaRulesListResponse) Total ¶ added in v0.0.329

func (r *QuotaRulesListResponse) Total() int

Total returns the value of the 'total' parameter.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

type RegistriesClient ¶

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

RegistriesClient is the client of the 'registries' resource.

Manages the collection of registries.

func NewRegistriesClient ¶

func NewRegistriesClient(transport http.RoundTripper, path string) *RegistriesClient

NewRegistriesClient creates a new client for the 'registries' resource using the given transport to send the requests and receive the responses.

func (*RegistriesClient) List ¶

List creates a request for the 'list' method.

Retrieves a list of registries.

func (*RegistriesClient) Registry ¶

func (c *RegistriesClient) Registry(id string) *RegistryClient

Registry returns the target 'registry' resource for the given identifier.

Reference to the service that manages a specific registry.

type RegistriesListRequest ¶

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

RegistriesListRequest is the request for the 'list' method.

func (*RegistriesListRequest) Header ¶

func (r *RegistriesListRequest) Header(name string, value interface{}) *RegistriesListRequest

Header adds a request header.

func (*RegistriesListRequest) Impersonate ¶ added in v0.0.329

func (r *RegistriesListRequest) Impersonate(user string) *RegistriesListRequest

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*RegistriesListRequest) Page ¶

Page sets the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*RegistriesListRequest) Parameter ¶

func (r *RegistriesListRequest) Parameter(name string, value interface{}) *RegistriesListRequest

Parameter adds a query parameter.

func (*RegistriesListRequest) Send ¶

func (r *RegistriesListRequest) Send() (result *RegistriesListResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*RegistriesListRequest) SendContext ¶

func (r *RegistriesListRequest) SendContext(ctx context.Context) (result *RegistriesListResponse, err error)

SendContext sends this request, waits for the response, and returns it.

func (*RegistriesListRequest) Size ¶

Size sets the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

type RegistriesListResponse ¶

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

RegistriesListResponse is the response for the 'list' method.

func (*RegistriesListResponse) Error ¶

func (r *RegistriesListResponse) Error() *errors.Error

Error returns the response error.

func (*RegistriesListResponse) GetItems ¶

func (r *RegistriesListResponse) GetItems() (value *RegistryList, ok bool)

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

Retrieved list of registries.

func (*RegistriesListResponse) GetPage ¶

func (r *RegistriesListResponse) GetPage() (value int, ok bool)

GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.

Index of the requested page, where one corresponds to the first page.

func (*RegistriesListResponse) GetSize ¶

func (r *RegistriesListResponse) GetSize() (value int, ok bool)

GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.

Maximum number of items that will be contained in the returned page.

func (*RegistriesListResponse) GetTotal ¶

func (r *RegistriesListResponse) GetTotal() (value int, ok bool)

GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

func (*RegistriesListResponse) Header ¶

func (r *RegistriesListResponse) Header() http.Header

Header returns header of the response.

func (*RegistriesListResponse) Items ¶

Items returns the value of the 'items' parameter.

Retrieved list of registries.

func (*RegistriesListResponse) Page ¶

func (r *RegistriesListResponse) Page() int

Page returns the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*RegistriesListResponse) Size ¶

func (r *RegistriesListResponse) Size() int

Size returns the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

func (*RegistriesListResponse) Status ¶

func (r *RegistriesListResponse) Status() int

Status returns the response status code.

func (*RegistriesListResponse) Total ¶

func (r *RegistriesListResponse) Total() int

Total returns the value of the 'total' parameter.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

type Registry ¶

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

Registry represents the values of the 'registry' type.

func UnmarshalRegistry ¶

func UnmarshalRegistry(source interface{}) (object *Registry, err error)

UnmarshalRegistry reads a value of the 'registry' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalRegistryList ¶

func UnmarshalRegistryList(source interface{}) (items []*Registry, err error)

UnmarshalRegistryList reads a list of values of the 'registry' type from the given source, which can be a slice of bytes, a string or a reader.

func (*Registry) CloudAlias ¶

func (o *Registry) CloudAlias() bool

CloudAlias returns the value of the 'cloud_alias' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Registry) CreatedAt ¶

func (o *Registry) CreatedAt() time.Time

CreatedAt returns the value of the 'created_at' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Registry) Empty ¶

func (o *Registry) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*Registry) GetCloudAlias ¶

func (o *Registry) GetCloudAlias() (value bool, ok bool)

GetCloudAlias returns the value of the 'cloud_alias' attribute and a flag indicating if the attribute has a value.

func (*Registry) GetCreatedAt ¶

func (o *Registry) GetCreatedAt() (value time.Time, ok bool)

GetCreatedAt returns the value of the 'created_at' attribute and a flag indicating if the attribute has a value.

func (*Registry) GetHREF ¶

func (o *Registry) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*Registry) GetID ¶

func (o *Registry) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*Registry) GetName ¶

func (o *Registry) GetName() (value string, ok bool)

GetName returns the value of the 'name' attribute and a flag indicating if the attribute has a value.

func (*Registry) GetOrgName ¶

func (o *Registry) GetOrgName() (value string, ok bool)

GetOrgName returns the value of the 'org_name' attribute and a flag indicating if the attribute has a value.

func (*Registry) GetTeamName ¶

func (o *Registry) GetTeamName() (value string, ok bool)

GetTeamName returns the value of the 'team_name' attribute and a flag indicating if the attribute has a value.

func (*Registry) GetType ¶

func (o *Registry) GetType() (value string, ok bool)

GetType returns the value of the 'type' attribute and a flag indicating if the attribute has a value.

func (*Registry) GetURL ¶

func (o *Registry) GetURL() (value string, ok bool)

GetURL returns the value of the 'URL' attribute and a flag indicating if the attribute has a value.

func (*Registry) GetUpdatedAt ¶

func (o *Registry) GetUpdatedAt() (value time.Time, ok bool)

GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.

func (*Registry) HREF ¶

func (o *Registry) HREF() string

HREF returns the link to the object.

func (*Registry) ID ¶

func (o *Registry) ID() string

ID returns the identifier of the object.

func (*Registry) Kind ¶

func (o *Registry) Kind() string

Kind returns the name of the type of the object.

func (o *Registry) Link() bool

Link returns true iif this is a link.

func (*Registry) Name ¶

func (o *Registry) Name() string

Name returns the value of the 'name' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Registry) OrgName ¶

func (o *Registry) OrgName() string

OrgName returns the value of the 'org_name' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Registry) TeamName ¶

func (o *Registry) TeamName() string

TeamName returns the value of the 'team_name' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Registry) Type ¶

func (o *Registry) Type() string

Type returns the value of the 'type' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Registry) URL ¶

func (o *Registry) URL() string

URL returns the value of the 'URL' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Registry) UpdatedAt ¶

func (o *Registry) UpdatedAt() time.Time

UpdatedAt returns the value of the 'updated_at' attribute, or the zero value of the type if the attribute doesn't have a value.

type RegistryBuilder ¶

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

RegistryBuilder contains the data and logic needed to build 'registry' objects.

func NewRegistry ¶

func NewRegistry() *RegistryBuilder

NewRegistry creates a new builder of 'registry' objects.

func (*RegistryBuilder) Build ¶

func (b *RegistryBuilder) Build() (object *Registry, err error)

Build creates a 'registry' object using the configuration stored in the builder.

func (*RegistryBuilder) CloudAlias ¶

func (b *RegistryBuilder) CloudAlias(value bool) *RegistryBuilder

CloudAlias sets the value of the 'cloud_alias' attribute to the given value.

func (*RegistryBuilder) Copy ¶

func (b *RegistryBuilder) Copy(object *Registry) *RegistryBuilder

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*RegistryBuilder) CreatedAt ¶

func (b *RegistryBuilder) CreatedAt(value time.Time) *RegistryBuilder

CreatedAt sets the value of the 'created_at' attribute to the given value.

func (*RegistryBuilder) Empty ¶ added in v0.0.329

func (b *RegistryBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*RegistryBuilder) HREF ¶

func (b *RegistryBuilder) HREF(value string) *RegistryBuilder

HREF sets the link to the object.

func (*RegistryBuilder) ID ¶

func (b *RegistryBuilder) ID(value string) *RegistryBuilder

ID sets the identifier of the object.

func (b *RegistryBuilder) Link(value bool) *RegistryBuilder

Link sets the flag that indicates if this is a link.

func (*RegistryBuilder) Name ¶

func (b *RegistryBuilder) Name(value string) *RegistryBuilder

Name sets the value of the 'name' attribute to the given value.

func (*RegistryBuilder) OrgName ¶

func (b *RegistryBuilder) OrgName(value string) *RegistryBuilder

OrgName sets the value of the 'org_name' attribute to the given value.

func (*RegistryBuilder) TeamName ¶

func (b *RegistryBuilder) TeamName(value string) *RegistryBuilder

TeamName sets the value of the 'team_name' attribute to the given value.

func (*RegistryBuilder) Type ¶

func (b *RegistryBuilder) Type(value string) *RegistryBuilder

Type sets the value of the 'type' attribute to the given value.

func (*RegistryBuilder) URL ¶

func (b *RegistryBuilder) URL(value string) *RegistryBuilder

URL sets the value of the 'URL' attribute to the given value.

func (*RegistryBuilder) UpdatedAt ¶

func (b *RegistryBuilder) UpdatedAt(value time.Time) *RegistryBuilder

UpdatedAt sets the value of the 'updated_at' attribute to the given value.

type RegistryClient ¶

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

RegistryClient is the client of the 'registry' resource.

Manages a specific registry.

func NewRegistryClient ¶

func NewRegistryClient(transport http.RoundTripper, path string) *RegistryClient

NewRegistryClient creates a new client for the 'registry' resource using the given transport to send the requests and receive the responses.

func (*RegistryClient) Get ¶

Get creates a request for the 'get' method.

Retrieves the details of the registry.

func (*RegistryClient) Poll ¶

Poll creates a request to repeatedly retrieve the object till the response has one of a given set of states and satisfies a set of predicates.

type RegistryCredential ¶

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

RegistryCredential represents the values of the 'registry_credential' type.

func UnmarshalRegistryCredential ¶

func UnmarshalRegistryCredential(source interface{}) (object *RegistryCredential, err error)

UnmarshalRegistryCredential reads a value of the 'registry_credential' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalRegistryCredentialList ¶

func UnmarshalRegistryCredentialList(source interface{}) (items []*RegistryCredential, err error)

UnmarshalRegistryCredentialList reads a list of values of the 'registry_credential' type from the given source, which can be a slice of bytes, a string or a reader.

func (*RegistryCredential) Account ¶

func (o *RegistryCredential) Account() *Account

Account returns the value of the 'account' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*RegistryCredential) CreatedAt ¶

func (o *RegistryCredential) CreatedAt() time.Time

CreatedAt returns the value of the 'created_at' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*RegistryCredential) Empty ¶

func (o *RegistryCredential) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*RegistryCredential) ExternalResourceID ¶

func (o *RegistryCredential) ExternalResourceID() string

ExternalResourceID returns the value of the 'external_resource_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*RegistryCredential) GetAccount ¶

func (o *RegistryCredential) GetAccount() (value *Account, ok bool)

GetAccount returns the value of the 'account' attribute and a flag indicating if the attribute has a value.

func (*RegistryCredential) GetCreatedAt ¶

func (o *RegistryCredential) GetCreatedAt() (value time.Time, ok bool)

GetCreatedAt returns the value of the 'created_at' attribute and a flag indicating if the attribute has a value.

func (*RegistryCredential) GetExternalResourceID ¶

func (o *RegistryCredential) GetExternalResourceID() (value string, ok bool)

GetExternalResourceID returns the value of the 'external_resource_ID' attribute and a flag indicating if the attribute has a value.

func (*RegistryCredential) GetHREF ¶

func (o *RegistryCredential) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*RegistryCredential) GetID ¶

func (o *RegistryCredential) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*RegistryCredential) GetRegistry ¶

func (o *RegistryCredential) GetRegistry() (value *Registry, ok bool)

GetRegistry returns the value of the 'registry' attribute and a flag indicating if the attribute has a value.

func (*RegistryCredential) GetToken ¶

func (o *RegistryCredential) GetToken() (value string, ok bool)

GetToken returns the value of the 'token' attribute and a flag indicating if the attribute has a value.

func (*RegistryCredential) GetUpdatedAt ¶

func (o *RegistryCredential) GetUpdatedAt() (value time.Time, ok bool)

GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.

func (*RegistryCredential) GetUsername ¶

func (o *RegistryCredential) GetUsername() (value string, ok bool)

GetUsername returns the value of the 'username' attribute and a flag indicating if the attribute has a value.

func (*RegistryCredential) HREF ¶

func (o *RegistryCredential) HREF() string

HREF returns the link to the object.

func (*RegistryCredential) ID ¶

func (o *RegistryCredential) ID() string

ID returns the identifier of the object.

func (*RegistryCredential) Kind ¶

func (o *RegistryCredential) Kind() string

Kind returns the name of the type of the object.

func (o *RegistryCredential) Link() bool

Link returns true iif this is a link.

func (*RegistryCredential) Registry ¶

func (o *RegistryCredential) Registry() *Registry

Registry returns the value of the 'registry' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*RegistryCredential) Token ¶

func (o *RegistryCredential) Token() string

Token returns the value of the 'token' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*RegistryCredential) UpdatedAt ¶

func (o *RegistryCredential) UpdatedAt() time.Time

UpdatedAt returns the value of the 'updated_at' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*RegistryCredential) Username ¶

func (o *RegistryCredential) Username() string

Username returns the value of the 'username' attribute, or the zero value of the type if the attribute doesn't have a value.

type RegistryCredentialBuilder ¶

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

RegistryCredentialBuilder contains the data and logic needed to build 'registry_credential' objects.

func NewRegistryCredential ¶

func NewRegistryCredential() *RegistryCredentialBuilder

NewRegistryCredential creates a new builder of 'registry_credential' objects.

func (*RegistryCredentialBuilder) Account ¶

Account sets the value of the 'account' attribute to the given value.

func (*RegistryCredentialBuilder) Build ¶

func (b *RegistryCredentialBuilder) Build() (object *RegistryCredential, err error)

Build creates a 'registry_credential' object using the configuration stored in the builder.

func (*RegistryCredentialBuilder) Copy ¶

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*RegistryCredentialBuilder) CreatedAt ¶

CreatedAt sets the value of the 'created_at' attribute to the given value.

func (*RegistryCredentialBuilder) Empty ¶ added in v0.0.329

func (b *RegistryCredentialBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*RegistryCredentialBuilder) ExternalResourceID ¶

func (b *RegistryCredentialBuilder) ExternalResourceID(value string) *RegistryCredentialBuilder

ExternalResourceID sets the value of the 'external_resource_ID' attribute to the given value.

func (*RegistryCredentialBuilder) HREF ¶

HREF sets the link to the object.

func (*RegistryCredentialBuilder) ID ¶

ID sets the identifier of the object.

Link sets the flag that indicates if this is a link.

func (*RegistryCredentialBuilder) Registry ¶

Registry sets the value of the 'registry' attribute to the given value.

func (*RegistryCredentialBuilder) Token ¶

Token sets the value of the 'token' attribute to the given value.

func (*RegistryCredentialBuilder) UpdatedAt ¶

UpdatedAt sets the value of the 'updated_at' attribute to the given value.

func (*RegistryCredentialBuilder) Username ¶

Username sets the value of the 'username' attribute to the given value.

type RegistryCredentialClient ¶

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

RegistryCredentialClient is the client of the 'registry_credential' resource.

Manages a specific registry credential.

func NewRegistryCredentialClient ¶

func NewRegistryCredentialClient(transport http.RoundTripper, path string) *RegistryCredentialClient

NewRegistryCredentialClient creates a new client for the 'registry_credential' resource using the given transport to send the requests and receive the responses.

func (*RegistryCredentialClient) Delete ¶ added in v0.0.329

Delete creates a request for the 'delete' method.

Delete the registry credential

func (*RegistryCredentialClient) Get ¶

Get creates a request for the 'get' method.

Retrieves the details of the registry credential.

func (*RegistryCredentialClient) Poll ¶

Poll creates a request to repeatedly retrieve the object till the response has one of a given set of states and satisfies a set of predicates.

type RegistryCredentialDeleteRequest ¶ added in v0.0.329

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

RegistryCredentialDeleteRequest is the request for the 'delete' method.

func (*RegistryCredentialDeleteRequest) Header ¶ added in v0.0.329

func (r *RegistryCredentialDeleteRequest) Header(name string, value interface{}) *RegistryCredentialDeleteRequest

Header adds a request header.

func (*RegistryCredentialDeleteRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*RegistryCredentialDeleteRequest) Parameter ¶ added in v0.0.329

func (r *RegistryCredentialDeleteRequest) Parameter(name string, value interface{}) *RegistryCredentialDeleteRequest

Parameter adds a query parameter.

func (*RegistryCredentialDeleteRequest) Send ¶ added in v0.0.329

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*RegistryCredentialDeleteRequest) SendContext ¶ added in v0.0.329

SendContext sends this request, waits for the response, and returns it.

type RegistryCredentialDeleteResponse ¶ added in v0.0.329

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

RegistryCredentialDeleteResponse is the response for the 'delete' method.

func (*RegistryCredentialDeleteResponse) Error ¶ added in v0.0.329

Error returns the response error.

func (*RegistryCredentialDeleteResponse) Header ¶ added in v0.0.329

Header returns header of the response.

func (*RegistryCredentialDeleteResponse) Status ¶ added in v0.0.329

Status returns the response status code.

type RegistryCredentialGetRequest ¶

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

RegistryCredentialGetRequest is the request for the 'get' method.

func (*RegistryCredentialGetRequest) Header ¶

func (r *RegistryCredentialGetRequest) Header(name string, value interface{}) *RegistryCredentialGetRequest

Header adds a request header.

func (*RegistryCredentialGetRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*RegistryCredentialGetRequest) Parameter ¶

func (r *RegistryCredentialGetRequest) Parameter(name string, value interface{}) *RegistryCredentialGetRequest

Parameter adds a query parameter.

func (*RegistryCredentialGetRequest) Send ¶

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*RegistryCredentialGetRequest) SendContext ¶

SendContext sends this request, waits for the response, and returns it.

type RegistryCredentialGetResponse ¶

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

RegistryCredentialGetResponse is the response for the 'get' method.

func (*RegistryCredentialGetResponse) Body ¶

Body returns the value of the 'body' parameter.

func (*RegistryCredentialGetResponse) Error ¶

Error returns the response error.

func (*RegistryCredentialGetResponse) GetBody ¶

func (r *RegistryCredentialGetResponse) GetBody() (value *RegistryCredential, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*RegistryCredentialGetResponse) Header ¶

Header returns header of the response.

func (*RegistryCredentialGetResponse) Status ¶

func (r *RegistryCredentialGetResponse) Status() int

Status returns the response status code.

type RegistryCredentialList ¶

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

RegistryCredentialList is a list of values of the 'registry_credential' type.

func (*RegistryCredentialList) Each ¶

func (l *RegistryCredentialList) Each(f func(item *RegistryCredential) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*RegistryCredentialList) Empty ¶

func (l *RegistryCredentialList) Empty() bool

Empty returns true if the list is empty.

func (*RegistryCredentialList) Get ¶

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*RegistryCredentialList) GetHREF ¶

func (l *RegistryCredentialList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*RegistryCredentialList) HREF ¶

func (l *RegistryCredentialList) HREF() string

HREF returns the link to the list.

func (*RegistryCredentialList) Kind ¶

func (l *RegistryCredentialList) Kind() string

Kind returns the name of the type of the object.

func (*RegistryCredentialList) Len ¶

func (l *RegistryCredentialList) Len() int

Len returns the length of the list.

func (l *RegistryCredentialList) Link() bool

Link returns true iif this is a link.

func (*RegistryCredentialList) Range ¶

func (l *RegistryCredentialList) Range(f func(index int, item *RegistryCredential) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*RegistryCredentialList) Slice ¶

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type RegistryCredentialListBuilder ¶

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

RegistryCredentialListBuilder contains the data and logic needed to build 'registry_credential' objects.

func NewRegistryCredentialList ¶

func NewRegistryCredentialList() *RegistryCredentialListBuilder

NewRegistryCredentialList creates a new builder of 'registry_credential' objects.

func (*RegistryCredentialListBuilder) Build ¶

Build creates a list of 'registry_credential' objects using the configuration stored in the builder.

func (*RegistryCredentialListBuilder) Copy ¶

Copy copies the items of the given list into this builder, discarding any previous items.

func (*RegistryCredentialListBuilder) Empty ¶ added in v0.0.329

Empty returns true if the list is empty.

func (*RegistryCredentialListBuilder) Items ¶

Items sets the items of the list.

type RegistryCredentialPollRequest ¶

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

RegistryCredentialPollRequest is the request for the Poll method.

func (*RegistryCredentialPollRequest) Header ¶

func (r *RegistryCredentialPollRequest) Header(name string, value interface{}) *RegistryCredentialPollRequest

Header adds a request header to all the requests that will be used to retrieve the object.

func (*RegistryCredentialPollRequest) Interval ¶

Interval sets the polling interval. This parameter is mandatory and must be greater than zero.

func (*RegistryCredentialPollRequest) Parameter ¶

func (r *RegistryCredentialPollRequest) Parameter(name string, value interface{}) *RegistryCredentialPollRequest

Parameter adds a query parameter to all the requests that will be used to retrieve the object.

func (*RegistryCredentialPollRequest) Predicate ¶

Predicate adds a predicate that the response should satisfy be considered successful. Multiple predicates can be set calling this method multiple times. The response will be considered successful if all the predicates are satisfied.

func (*RegistryCredentialPollRequest) StartContext ¶

StartContext starts the polling loop. Responses will be considered successful if the status is one of the values specified with the Status method and if all the predicates specified with the Predicate method return nil.

The context must have a timeout or deadline, otherwise this method will immediately return an error.

func (*RegistryCredentialPollRequest) Status ¶

Status set the expected status of the response. Multiple values can be set calling this method multiple times. The response will be considered successful if the status is any of those values.

type RegistryCredentialPollResponse ¶

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

RegistryCredentialPollResponse is the response for the Poll method.

func (*RegistryCredentialPollResponse) Body ¶

Body returns the value of the 'body' parameter.

func (*RegistryCredentialPollResponse) Error ¶

Error returns the response error.

func (*RegistryCredentialPollResponse) GetBody ¶

func (r *RegistryCredentialPollResponse) GetBody() (value *RegistryCredential, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*RegistryCredentialPollResponse) Header ¶

Header returns header of the response.

func (*RegistryCredentialPollResponse) Status ¶

func (r *RegistryCredentialPollResponse) Status() int

Status returns the response status code.

type RegistryCredentialsAddRequest ¶

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

RegistryCredentialsAddRequest is the request for the 'add' method.

func (*RegistryCredentialsAddRequest) Body ¶

Body sets the value of the 'body' parameter.

Registry credential data.

func (*RegistryCredentialsAddRequest) Header ¶

func (r *RegistryCredentialsAddRequest) Header(name string, value interface{}) *RegistryCredentialsAddRequest

Header adds a request header.

func (*RegistryCredentialsAddRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*RegistryCredentialsAddRequest) Parameter ¶

func (r *RegistryCredentialsAddRequest) Parameter(name string, value interface{}) *RegistryCredentialsAddRequest

Parameter adds a query parameter.

func (*RegistryCredentialsAddRequest) Send ¶

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*RegistryCredentialsAddRequest) SendContext ¶

SendContext sends this request, waits for the response, and returns it.

type RegistryCredentialsAddResponse ¶

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

RegistryCredentialsAddResponse is the response for the 'add' method.

func (*RegistryCredentialsAddResponse) Body ¶

Body returns the value of the 'body' parameter.

Registry credential data.

func (*RegistryCredentialsAddResponse) Error ¶

Error returns the response error.

func (*RegistryCredentialsAddResponse) GetBody ¶

func (r *RegistryCredentialsAddResponse) GetBody() (value *RegistryCredential, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

Registry credential data.

func (*RegistryCredentialsAddResponse) Header ¶

Header returns header of the response.

func (*RegistryCredentialsAddResponse) Status ¶

func (r *RegistryCredentialsAddResponse) Status() int

Status returns the response status code.

type RegistryCredentialsClient ¶

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

RegistryCredentialsClient is the client of the 'registry_credentials' resource.

Manages the collection of registry credentials.

func NewRegistryCredentialsClient ¶

func NewRegistryCredentialsClient(transport http.RoundTripper, path string) *RegistryCredentialsClient

NewRegistryCredentialsClient creates a new client for the 'registry_credentials' resource using the given transport to send the requests and receive the responses.

func (*RegistryCredentialsClient) Add ¶

Add creates a request for the 'add' method.

Creates a new registry credential.

func (*RegistryCredentialsClient) List ¶

List creates a request for the 'list' method.

Retrieves the list of accounts.

func (*RegistryCredentialsClient) RegistryCredential ¶

func (c *RegistryCredentialsClient) RegistryCredential(id string) *RegistryCredentialClient

RegistryCredential returns the target 'registry_credential' resource for the given identifier.

Reference to the service that manages an specific registry credential.

type RegistryCredentialsListRequest ¶

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

RegistryCredentialsListRequest is the request for the 'list' method.

func (*RegistryCredentialsListRequest) Header ¶

func (r *RegistryCredentialsListRequest) Header(name string, value interface{}) *RegistryCredentialsListRequest

Header adds a request header.

func (*RegistryCredentialsListRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*RegistryCredentialsListRequest) Order ¶

Order sets the value of the 'order' parameter.

Order criteria.

The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement. For example, in order to sort the RegistryCredentials descending by username the value should be:

```sql username desc ```

If the parameter isn't provided, or if the value is empty, then the order of the results is undefined.

func (*RegistryCredentialsListRequest) Page ¶

Page sets the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*RegistryCredentialsListRequest) Parameter ¶

func (r *RegistryCredentialsListRequest) Parameter(name string, value interface{}) *RegistryCredentialsListRequest

Parameter adds a query parameter.

func (*RegistryCredentialsListRequest) Search ¶

Search sets the value of the 'search' parameter.

Search criteria.

The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the RegistryCredentials instead of the names of the columns of a table. For example, in order to retrieve all the RegistryCredentials for a user the value should be:

```sql username = 'abcxyz...' ```

If the parameter isn't provided, or if the value is empty, then all the RegistryCredentials that the user has permission to see will be returned.

func (*RegistryCredentialsListRequest) Send ¶

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*RegistryCredentialsListRequest) SendContext ¶

SendContext sends this request, waits for the response, and returns it.

func (*RegistryCredentialsListRequest) Size ¶

Size sets the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

type RegistryCredentialsListResponse ¶

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

RegistryCredentialsListResponse is the response for the 'list' method.

func (*RegistryCredentialsListResponse) Error ¶

Error returns the response error.

func (*RegistryCredentialsListResponse) GetItems ¶

func (r *RegistryCredentialsListResponse) GetItems() (value *RegistryCredentialList, ok bool)

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

Retrieved list of registry credentials.

func (*RegistryCredentialsListResponse) GetPage ¶

func (r *RegistryCredentialsListResponse) GetPage() (value int, ok bool)

GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.

Index of the requested page, where one corresponds to the first page.

func (*RegistryCredentialsListResponse) GetSize ¶

func (r *RegistryCredentialsListResponse) GetSize() (value int, ok bool)

GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.

Maximum number of items that will be contained in the returned page.

func (*RegistryCredentialsListResponse) GetTotal ¶

func (r *RegistryCredentialsListResponse) GetTotal() (value int, ok bool)

GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

func (*RegistryCredentialsListResponse) Header ¶

Header returns header of the response.

func (*RegistryCredentialsListResponse) Items ¶

Items returns the value of the 'items' parameter.

Retrieved list of registry credentials.

func (*RegistryCredentialsListResponse) Page ¶

Page returns the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*RegistryCredentialsListResponse) Size ¶

Size returns the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

func (*RegistryCredentialsListResponse) Status ¶

Status returns the response status code.

func (*RegistryCredentialsListResponse) Total ¶

Total returns the value of the 'total' parameter.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

type RegistryGetRequest ¶

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

RegistryGetRequest is the request for the 'get' method.

func (*RegistryGetRequest) Header ¶

func (r *RegistryGetRequest) Header(name string, value interface{}) *RegistryGetRequest

Header adds a request header.

func (*RegistryGetRequest) Impersonate ¶ added in v0.0.329

func (r *RegistryGetRequest) Impersonate(user string) *RegistryGetRequest

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*RegistryGetRequest) Parameter ¶

func (r *RegistryGetRequest) Parameter(name string, value interface{}) *RegistryGetRequest

Parameter adds a query parameter.

func (*RegistryGetRequest) Send ¶

func (r *RegistryGetRequest) Send() (result *RegistryGetResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*RegistryGetRequest) SendContext ¶

func (r *RegistryGetRequest) SendContext(ctx context.Context) (result *RegistryGetResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type RegistryGetResponse ¶

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

RegistryGetResponse is the response for the 'get' method.

func (*RegistryGetResponse) Body ¶

func (r *RegistryGetResponse) Body() *Registry

Body returns the value of the 'body' parameter.

func (*RegistryGetResponse) Error ¶

func (r *RegistryGetResponse) Error() *errors.Error

Error returns the response error.

func (*RegistryGetResponse) GetBody ¶

func (r *RegistryGetResponse) GetBody() (value *Registry, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*RegistryGetResponse) Header ¶

func (r *RegistryGetResponse) Header() http.Header

Header returns header of the response.

func (*RegistryGetResponse) Status ¶

func (r *RegistryGetResponse) Status() int

Status returns the response status code.

type RegistryList ¶

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

RegistryList is a list of values of the 'registry' type.

func (*RegistryList) Each ¶

func (l *RegistryList) Each(f func(item *Registry) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*RegistryList) Empty ¶

func (l *RegistryList) Empty() bool

Empty returns true if the list is empty.

func (*RegistryList) Get ¶

func (l *RegistryList) Get(i int) *Registry

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*RegistryList) GetHREF ¶

func (l *RegistryList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*RegistryList) HREF ¶

func (l *RegistryList) HREF() string

HREF returns the link to the list.

func (*RegistryList) Kind ¶

func (l *RegistryList) Kind() string

Kind returns the name of the type of the object.

func (*RegistryList) Len ¶

func (l *RegistryList) Len() int

Len returns the length of the list.

func (l *RegistryList) Link() bool

Link returns true iif this is a link.

func (*RegistryList) Range ¶

func (l *RegistryList) Range(f func(index int, item *Registry) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*RegistryList) Slice ¶

func (l *RegistryList) Slice() []*Registry

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type RegistryListBuilder ¶

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

RegistryListBuilder contains the data and logic needed to build 'registry' objects.

func NewRegistryList ¶

func NewRegistryList() *RegistryListBuilder

NewRegistryList creates a new builder of 'registry' objects.

func (*RegistryListBuilder) Build ¶

func (b *RegistryListBuilder) Build() (list *RegistryList, err error)

Build creates a list of 'registry' objects using the configuration stored in the builder.

func (*RegistryListBuilder) Copy ¶

Copy copies the items of the given list into this builder, discarding any previous items.

func (*RegistryListBuilder) Empty ¶ added in v0.0.329

func (b *RegistryListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*RegistryListBuilder) Items ¶

Items sets the items of the list.

type RegistryPollRequest ¶

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

RegistryPollRequest is the request for the Poll method.

func (*RegistryPollRequest) Header ¶

func (r *RegistryPollRequest) Header(name string, value interface{}) *RegistryPollRequest

Header adds a request header to all the requests that will be used to retrieve the object.

func (*RegistryPollRequest) Interval ¶

Interval sets the polling interval. This parameter is mandatory and must be greater than zero.

func (*RegistryPollRequest) Parameter ¶

func (r *RegistryPollRequest) Parameter(name string, value interface{}) *RegistryPollRequest

Parameter adds a query parameter to all the requests that will be used to retrieve the object.

func (*RegistryPollRequest) Predicate ¶

Predicate adds a predicate that the response should satisfy be considered successful. Multiple predicates can be set calling this method multiple times. The response will be considered successful if all the predicates are satisfied.

func (*RegistryPollRequest) StartContext ¶

func (r *RegistryPollRequest) StartContext(ctx context.Context) (response *RegistryPollResponse, err error)

StartContext starts the polling loop. Responses will be considered successful if the status is one of the values specified with the Status method and if all the predicates specified with the Predicate method return nil.

The context must have a timeout or deadline, otherwise this method will immediately return an error.

func (*RegistryPollRequest) Status ¶

func (r *RegistryPollRequest) Status(value int) *RegistryPollRequest

Status set the expected status of the response. Multiple values can be set calling this method multiple times. The response will be considered successful if the status is any of those values.

type RegistryPollResponse ¶

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

RegistryPollResponse is the response for the Poll method.

func (*RegistryPollResponse) Body ¶

func (r *RegistryPollResponse) Body() *Registry

Body returns the value of the 'body' parameter.

func (*RegistryPollResponse) Error ¶

func (r *RegistryPollResponse) Error() *errors.Error

Error returns the response error.

func (*RegistryPollResponse) GetBody ¶

func (r *RegistryPollResponse) GetBody() (value *Registry, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*RegistryPollResponse) Header ¶

func (r *RegistryPollResponse) Header() http.Header

Header returns header of the response.

func (*RegistryPollResponse) Status ¶

func (r *RegistryPollResponse) Status() int

Status returns the response status code.

type RelatedResource ¶ added in v0.0.329

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

RelatedResource represents the values of the 'related_resource' type.

Resource which can be provisioned using the allowed quota.

func UnmarshalRelatedResource ¶ added in v0.0.329

func UnmarshalRelatedResource(source interface{}) (object *RelatedResource, err error)

UnmarshalRelatedResource reads a value of the 'related_resource' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalRelatedResourceList ¶ added in v0.0.329

func UnmarshalRelatedResourceList(source interface{}) (items []*RelatedResource, err error)

UnmarshalRelatedResourceList reads a list of values of the 'related_resource' type from the given source, which can be a slice of bytes, a string or a reader.

func (*RelatedResource) AvailabilityZoneType ¶ added in v0.0.329

func (o *RelatedResource) AvailabilityZoneType() string

AvailabilityZoneType returns the value of the 'availability_zone_type' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*RelatedResource) BYOC ¶ added in v0.0.329

func (o *RelatedResource) BYOC() string

BYOC returns the value of the 'BYOC' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*RelatedResource) BillingModel ¶ added in v0.0.329

func (o *RelatedResource) BillingModel() string

BillingModel returns the value of the 'billing_model' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*RelatedResource) CloudProvider ¶ added in v0.0.329

func (o *RelatedResource) CloudProvider() string

CloudProvider returns the value of the 'cloud_provider' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*RelatedResource) Cost ¶ added in v0.0.329

func (o *RelatedResource) Cost() int

Cost returns the value of the 'cost' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*RelatedResource) Empty ¶ added in v0.0.329

func (o *RelatedResource) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*RelatedResource) GetAvailabilityZoneType ¶ added in v0.0.329

func (o *RelatedResource) GetAvailabilityZoneType() (value string, ok bool)

GetAvailabilityZoneType returns the value of the 'availability_zone_type' attribute and a flag indicating if the attribute has a value.

func (*RelatedResource) GetBYOC ¶ added in v0.0.329

func (o *RelatedResource) GetBYOC() (value string, ok bool)

GetBYOC returns the value of the 'BYOC' attribute and a flag indicating if the attribute has a value.

func (*RelatedResource) GetBillingModel ¶ added in v0.0.329

func (o *RelatedResource) GetBillingModel() (value string, ok bool)

GetBillingModel returns the value of the 'billing_model' attribute and a flag indicating if the attribute has a value.

func (*RelatedResource) GetCloudProvider ¶ added in v0.0.329

func (o *RelatedResource) GetCloudProvider() (value string, ok bool)

GetCloudProvider returns the value of the 'cloud_provider' attribute and a flag indicating if the attribute has a value.

func (*RelatedResource) GetCost ¶ added in v0.0.329

func (o *RelatedResource) GetCost() (value int, ok bool)

GetCost returns the value of the 'cost' attribute and a flag indicating if the attribute has a value.

func (*RelatedResource) GetProduct ¶ added in v0.0.329

func (o *RelatedResource) GetProduct() (value string, ok bool)

GetProduct returns the value of the 'product' attribute and a flag indicating if the attribute has a value.

func (*RelatedResource) GetResourceName ¶ added in v0.0.329

func (o *RelatedResource) GetResourceName() (value string, ok bool)

GetResourceName returns the value of the 'resource_name' attribute and a flag indicating if the attribute has a value.

func (*RelatedResource) GetResourceType ¶ added in v0.0.329

func (o *RelatedResource) GetResourceType() (value string, ok bool)

GetResourceType returns the value of the 'resource_type' attribute and a flag indicating if the attribute has a value.

func (*RelatedResource) Product ¶ added in v0.0.329

func (o *RelatedResource) Product() string

Product returns the value of the 'product' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*RelatedResource) ResourceName ¶ added in v0.0.329

func (o *RelatedResource) ResourceName() string

ResourceName returns the value of the 'resource_name' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*RelatedResource) ResourceType ¶ added in v0.0.329

func (o *RelatedResource) ResourceType() string

ResourceType returns the value of the 'resource_type' attribute, or the zero value of the type if the attribute doesn't have a value.

type RelatedResourceBuilder ¶ added in v0.0.329

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

RelatedResourceBuilder contains the data and logic needed to build 'related_resource' objects.

Resource which can be provisioned using the allowed quota.

func NewRelatedResource ¶ added in v0.0.329

func NewRelatedResource() *RelatedResourceBuilder

NewRelatedResource creates a new builder of 'related_resource' objects.

func (*RelatedResourceBuilder) AvailabilityZoneType ¶ added in v0.0.329

func (b *RelatedResourceBuilder) AvailabilityZoneType(value string) *RelatedResourceBuilder

AvailabilityZoneType sets the value of the 'availability_zone_type' attribute to the given value.

func (*RelatedResourceBuilder) BYOC ¶ added in v0.0.329

BYOC sets the value of the 'BYOC' attribute to the given value.

func (*RelatedResourceBuilder) BillingModel ¶ added in v0.0.329

func (b *RelatedResourceBuilder) BillingModel(value string) *RelatedResourceBuilder

BillingModel sets the value of the 'billing_model' attribute to the given value.

func (*RelatedResourceBuilder) Build ¶ added in v0.0.329

func (b *RelatedResourceBuilder) Build() (object *RelatedResource, err error)

Build creates a 'related_resource' object using the configuration stored in the builder.

func (*RelatedResourceBuilder) CloudProvider ¶ added in v0.0.329

func (b *RelatedResourceBuilder) CloudProvider(value string) *RelatedResourceBuilder

CloudProvider sets the value of the 'cloud_provider' attribute to the given value.

func (*RelatedResourceBuilder) Copy ¶ added in v0.0.329

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*RelatedResourceBuilder) Cost ¶ added in v0.0.329

Cost sets the value of the 'cost' attribute to the given value.

func (*RelatedResourceBuilder) Empty ¶ added in v0.0.329

func (b *RelatedResourceBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*RelatedResourceBuilder) Product ¶ added in v0.0.329

Product sets the value of the 'product' attribute to the given value.

func (*RelatedResourceBuilder) ResourceName ¶ added in v0.0.329

func (b *RelatedResourceBuilder) ResourceName(value string) *RelatedResourceBuilder

ResourceName sets the value of the 'resource_name' attribute to the given value.

func (*RelatedResourceBuilder) ResourceType ¶ added in v0.0.329

func (b *RelatedResourceBuilder) ResourceType(value string) *RelatedResourceBuilder

ResourceType sets the value of the 'resource_type' attribute to the given value.

type RelatedResourceList ¶ added in v0.0.329

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

RelatedResourceList is a list of values of the 'related_resource' type.

func (*RelatedResourceList) Each ¶ added in v0.0.329

func (l *RelatedResourceList) Each(f func(item *RelatedResource) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*RelatedResourceList) Empty ¶ added in v0.0.329

func (l *RelatedResourceList) Empty() bool

Empty returns true if the list is empty.

func (*RelatedResourceList) Get ¶ added in v0.0.329

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*RelatedResourceList) Len ¶ added in v0.0.329

func (l *RelatedResourceList) Len() int

Len returns the length of the list.

func (*RelatedResourceList) Range ¶ added in v0.0.329

func (l *RelatedResourceList) Range(f func(index int, item *RelatedResource) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*RelatedResourceList) Slice ¶ added in v0.0.329

func (l *RelatedResourceList) Slice() []*RelatedResource

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type RelatedResourceListBuilder ¶ added in v0.0.329

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

RelatedResourceListBuilder contains the data and logic needed to build 'related_resource' objects.

func NewRelatedResourceList ¶ added in v0.0.329

func NewRelatedResourceList() *RelatedResourceListBuilder

NewRelatedResourceList creates a new builder of 'related_resource' objects.

func (*RelatedResourceListBuilder) Build ¶ added in v0.0.329

func (b *RelatedResourceListBuilder) Build() (list *RelatedResourceList, err error)

Build creates a list of 'related_resource' objects using the configuration stored in the builder.

func (*RelatedResourceListBuilder) Copy ¶ added in v0.0.329

Copy copies the items of the given list into this builder, discarding any previous items.

func (*RelatedResourceListBuilder) Empty ¶ added in v0.0.329

func (b *RelatedResourceListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*RelatedResourceListBuilder) Items ¶ added in v0.0.329

Items sets the items of the list.

type ReservedResource ¶

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

ReservedResource represents the values of the 'reserved_resource' type.

func UnmarshalReservedResource ¶

func UnmarshalReservedResource(source interface{}) (object *ReservedResource, err error)

UnmarshalReservedResource reads a value of the 'reserved_resource' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalReservedResourceList ¶

func UnmarshalReservedResourceList(source interface{}) (items []*ReservedResource, err error)

UnmarshalReservedResourceList reads a list of values of the 'reserved_resource' type from the given source, which can be a slice of bytes, a string or a reader.

func (*ReservedResource) AvailabilityZoneType ¶

func (o *ReservedResource) AvailabilityZoneType() string

AvailabilityZoneType returns the value of the 'availability_zone_type' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ReservedResource) BYOC ¶

func (o *ReservedResource) BYOC() bool

BYOC returns the value of the 'BYOC' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ReservedResource) BillingMarketplaceAccount ¶ added in v0.0.329

func (o *ReservedResource) BillingMarketplaceAccount() string

BillingMarketplaceAccount returns the value of the 'billing_marketplace_account' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ReservedResource) BillingModel ¶ added in v0.0.329

func (o *ReservedResource) BillingModel() BillingModel

BillingModel returns the value of the 'billing_model' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ReservedResource) Count ¶

func (o *ReservedResource) Count() int

Count returns the value of the 'count' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ReservedResource) CreatedAt ¶

func (o *ReservedResource) CreatedAt() time.Time

CreatedAt returns the value of the 'created_at' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ReservedResource) Empty ¶

func (o *ReservedResource) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*ReservedResource) GetAvailabilityZoneType ¶

func (o *ReservedResource) GetAvailabilityZoneType() (value string, ok bool)

GetAvailabilityZoneType returns the value of the 'availability_zone_type' attribute and a flag indicating if the attribute has a value.

func (*ReservedResource) GetBYOC ¶

func (o *ReservedResource) GetBYOC() (value bool, ok bool)

GetBYOC returns the value of the 'BYOC' attribute and a flag indicating if the attribute has a value.

func (*ReservedResource) GetBillingMarketplaceAccount ¶ added in v0.0.329

func (o *ReservedResource) GetBillingMarketplaceAccount() (value string, ok bool)

GetBillingMarketplaceAccount returns the value of the 'billing_marketplace_account' attribute and a flag indicating if the attribute has a value.

func (*ReservedResource) GetBillingModel ¶ added in v0.0.329

func (o *ReservedResource) GetBillingModel() (value BillingModel, ok bool)

GetBillingModel returns the value of the 'billing_model' attribute and a flag indicating if the attribute has a value.

func (*ReservedResource) GetCount ¶

func (o *ReservedResource) GetCount() (value int, ok bool)

GetCount returns the value of the 'count' attribute and a flag indicating if the attribute has a value.

func (*ReservedResource) GetCreatedAt ¶

func (o *ReservedResource) GetCreatedAt() (value time.Time, ok bool)

GetCreatedAt returns the value of the 'created_at' attribute and a flag indicating if the attribute has a value.

func (*ReservedResource) GetResourceName ¶

func (o *ReservedResource) GetResourceName() (value string, ok bool)

GetResourceName returns the value of the 'resource_name' attribute and a flag indicating if the attribute has a value.

func (*ReservedResource) GetResourceType ¶

func (o *ReservedResource) GetResourceType() (value string, ok bool)

GetResourceType returns the value of the 'resource_type' attribute and a flag indicating if the attribute has a value.

func (*ReservedResource) GetScope ¶ added in v0.1.408

func (o *ReservedResource) GetScope() (value string, ok bool)

GetScope returns the value of the 'scope' attribute and a flag indicating if the attribute has a value.

func (*ReservedResource) GetUpdatedAt ¶

func (o *ReservedResource) GetUpdatedAt() (value time.Time, ok bool)

GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.

func (*ReservedResource) ResourceName ¶

func (o *ReservedResource) ResourceName() string

ResourceName returns the value of the 'resource_name' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ReservedResource) ResourceType ¶

func (o *ReservedResource) ResourceType() string

ResourceType returns the value of the 'resource_type' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ReservedResource) Scope ¶ added in v0.1.408

func (o *ReservedResource) Scope() string

Scope returns the value of the 'scope' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ReservedResource) UpdatedAt ¶

func (o *ReservedResource) UpdatedAt() time.Time

UpdatedAt returns the value of the 'updated_at' attribute, or the zero value of the type if the attribute doesn't have a value.

type ReservedResourceBuilder ¶

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

ReservedResourceBuilder contains the data and logic needed to build 'reserved_resource' objects.

func NewReservedResource ¶

func NewReservedResource() *ReservedResourceBuilder

NewReservedResource creates a new builder of 'reserved_resource' objects.

func (*ReservedResourceBuilder) AvailabilityZoneType ¶

func (b *ReservedResourceBuilder) AvailabilityZoneType(value string) *ReservedResourceBuilder

AvailabilityZoneType sets the value of the 'availability_zone_type' attribute to the given value.

func (*ReservedResourceBuilder) BYOC ¶

BYOC sets the value of the 'BYOC' attribute to the given value.

func (*ReservedResourceBuilder) BillingMarketplaceAccount ¶ added in v0.0.329

func (b *ReservedResourceBuilder) BillingMarketplaceAccount(value string) *ReservedResourceBuilder

BillingMarketplaceAccount sets the value of the 'billing_marketplace_account' attribute to the given value.

func (*ReservedResourceBuilder) BillingModel ¶ added in v0.0.329

BillingModel sets the value of the 'billing_model' attribute to the given value.

Billing model for subscripiton and reserved_resource resources.

func (*ReservedResourceBuilder) Build ¶

func (b *ReservedResourceBuilder) Build() (object *ReservedResource, err error)

Build creates a 'reserved_resource' object using the configuration stored in the builder.

func (*ReservedResourceBuilder) Copy ¶

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*ReservedResourceBuilder) Count ¶

Count sets the value of the 'count' attribute to the given value.

func (*ReservedResourceBuilder) CreatedAt ¶

CreatedAt sets the value of the 'created_at' attribute to the given value.

func (*ReservedResourceBuilder) Empty ¶ added in v0.0.329

func (b *ReservedResourceBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*ReservedResourceBuilder) ResourceName ¶

func (b *ReservedResourceBuilder) ResourceName(value string) *ReservedResourceBuilder

ResourceName sets the value of the 'resource_name' attribute to the given value.

func (*ReservedResourceBuilder) ResourceType ¶

func (b *ReservedResourceBuilder) ResourceType(value string) *ReservedResourceBuilder

ResourceType sets the value of the 'resource_type' attribute to the given value.

func (*ReservedResourceBuilder) Scope ¶ added in v0.1.408

Scope sets the value of the 'scope' attribute to the given value.

func (*ReservedResourceBuilder) UpdatedAt ¶

UpdatedAt sets the value of the 'updated_at' attribute to the given value.

type ReservedResourceList ¶

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

ReservedResourceList is a list of values of the 'reserved_resource' type.

func (*ReservedResourceList) Each ¶

func (l *ReservedResourceList) Each(f func(item *ReservedResource) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*ReservedResourceList) Empty ¶

func (l *ReservedResourceList) Empty() bool

Empty returns true if the list is empty.

func (*ReservedResourceList) Get ¶

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*ReservedResourceList) Len ¶

func (l *ReservedResourceList) Len() int

Len returns the length of the list.

func (*ReservedResourceList) Range ¶

func (l *ReservedResourceList) Range(f func(index int, item *ReservedResource) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*ReservedResourceList) Slice ¶

func (l *ReservedResourceList) Slice() []*ReservedResource

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type ReservedResourceListBuilder ¶

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

ReservedResourceListBuilder contains the data and logic needed to build 'reserved_resource' objects.

func NewReservedResourceList ¶

func NewReservedResourceList() *ReservedResourceListBuilder

NewReservedResourceList creates a new builder of 'reserved_resource' objects.

func (*ReservedResourceListBuilder) Build ¶

func (b *ReservedResourceListBuilder) Build() (list *ReservedResourceList, err error)

Build creates a list of 'reserved_resource' objects using the configuration stored in the builder.

func (*ReservedResourceListBuilder) Copy ¶

Copy copies the items of the given list into this builder, discarding any previous items.

func (*ReservedResourceListBuilder) Empty ¶ added in v0.0.329

func (b *ReservedResourceListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*ReservedResourceListBuilder) Items ¶

Items sets the items of the list.

type Resource ¶

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

Resource represents the values of the 'resource' type.

Identifies computing resources

func UnmarshalResource ¶

func UnmarshalResource(source interface{}) (object *Resource, err error)

UnmarshalResource reads a value of the 'resource' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalResourceList ¶

func UnmarshalResourceList(source interface{}) (items []*Resource, err error)

UnmarshalResourceList reads a list of values of the 'resource' type from the given source, which can be a slice of bytes, a string or a reader.

func (*Resource) Allowed ¶

func (o *Resource) Allowed() int

Allowed returns the value of the 'allowed' attribute, or the zero value of the type if the attribute doesn't have a value.

Number of allowed nodes

func (*Resource) AvailabilityZoneType ¶

func (o *Resource) AvailabilityZoneType() string

AvailabilityZoneType returns the value of the 'availability_zone_type' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Resource) BYOC ¶

func (o *Resource) BYOC() bool

BYOC returns the value of the 'BYOC' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Resource) Empty ¶

func (o *Resource) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*Resource) GetAllowed ¶

func (o *Resource) GetAllowed() (value int, ok bool)

GetAllowed returns the value of the 'allowed' attribute and a flag indicating if the attribute has a value.

Number of allowed nodes

func (*Resource) GetAvailabilityZoneType ¶

func (o *Resource) GetAvailabilityZoneType() (value string, ok bool)

GetAvailabilityZoneType returns the value of the 'availability_zone_type' attribute and a flag indicating if the attribute has a value.

func (*Resource) GetBYOC ¶

func (o *Resource) GetBYOC() (value bool, ok bool)

GetBYOC returns the value of the 'BYOC' attribute and a flag indicating if the attribute has a value.

func (*Resource) GetHREF ¶

func (o *Resource) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*Resource) GetID ¶

func (o *Resource) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*Resource) GetResourceName ¶

func (o *Resource) GetResourceName() (value string, ok bool)

GetResourceName returns the value of the 'resource_name' attribute and a flag indicating if the attribute has a value.

platform-specific name, such as "M5.2Xlarge" for a type of EC2 node

func (*Resource) GetResourceType ¶

func (o *Resource) GetResourceType() (value string, ok bool)

GetResourceType returns the value of the 'resource_type' attribute and a flag indicating if the attribute has a value.

func (*Resource) GetSKU ¶

func (o *Resource) GetSKU() (value string, ok bool)

GetSKU returns the value of the 'SKU' attribute and a flag indicating if the attribute has a value.

func (*Resource) HREF ¶

func (o *Resource) HREF() string

HREF returns the link to the object.

func (*Resource) ID ¶

func (o *Resource) ID() string

ID returns the identifier of the object.

func (*Resource) Kind ¶

func (o *Resource) Kind() string

Kind returns the name of the type of the object.

func (o *Resource) Link() bool

Link returns true iif this is a link.

func (*Resource) ResourceName ¶

func (o *Resource) ResourceName() string

ResourceName returns the value of the 'resource_name' attribute, or the zero value of the type if the attribute doesn't have a value.

platform-specific name, such as "M5.2Xlarge" for a type of EC2 node

func (*Resource) ResourceType ¶

func (o *Resource) ResourceType() string

ResourceType returns the value of the 'resource_type' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Resource) SKU ¶

func (o *Resource) SKU() string

SKU returns the value of the 'SKU' attribute, or the zero value of the type if the attribute doesn't have a value.

type ResourceBuilder ¶

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

ResourceBuilder contains the data and logic needed to build 'resource' objects.

Identifies computing resources

func NewResource ¶

func NewResource() *ResourceBuilder

NewResource creates a new builder of 'resource' objects.

func (*ResourceBuilder) Allowed ¶

func (b *ResourceBuilder) Allowed(value int) *ResourceBuilder

Allowed sets the value of the 'allowed' attribute to the given value.

func (*ResourceBuilder) AvailabilityZoneType ¶

func (b *ResourceBuilder) AvailabilityZoneType(value string) *ResourceBuilder

AvailabilityZoneType sets the value of the 'availability_zone_type' attribute to the given value.

func (*ResourceBuilder) BYOC ¶

func (b *ResourceBuilder) BYOC(value bool) *ResourceBuilder

BYOC sets the value of the 'BYOC' attribute to the given value.

func (*ResourceBuilder) Build ¶

func (b *ResourceBuilder) Build() (object *Resource, err error)

Build creates a 'resource' object using the configuration stored in the builder.

func (*ResourceBuilder) Copy ¶

func (b *ResourceBuilder) Copy(object *Resource) *ResourceBuilder

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*ResourceBuilder) Empty ¶ added in v0.0.329

func (b *ResourceBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*ResourceBuilder) HREF ¶

func (b *ResourceBuilder) HREF(value string) *ResourceBuilder

HREF sets the link to the object.

func (*ResourceBuilder) ID ¶

func (b *ResourceBuilder) ID(value string) *ResourceBuilder

ID sets the identifier of the object.

func (b *ResourceBuilder) Link(value bool) *ResourceBuilder

Link sets the flag that indicates if this is a link.

func (*ResourceBuilder) ResourceName ¶

func (b *ResourceBuilder) ResourceName(value string) *ResourceBuilder

ResourceName sets the value of the 'resource_name' attribute to the given value.

func (*ResourceBuilder) ResourceType ¶

func (b *ResourceBuilder) ResourceType(value string) *ResourceBuilder

ResourceType sets the value of the 'resource_type' attribute to the given value.

func (*ResourceBuilder) SKU ¶

func (b *ResourceBuilder) SKU(value string) *ResourceBuilder

SKU sets the value of the 'SKU' attribute to the given value.

type ResourceList ¶

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

ResourceList is a list of values of the 'resource' type.

func (*ResourceList) Each ¶

func (l *ResourceList) Each(f func(item *Resource) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*ResourceList) Empty ¶

func (l *ResourceList) Empty() bool

Empty returns true if the list is empty.

func (*ResourceList) Get ¶

func (l *ResourceList) Get(i int) *Resource

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*ResourceList) GetHREF ¶

func (l *ResourceList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*ResourceList) HREF ¶

func (l *ResourceList) HREF() string

HREF returns the link to the list.

func (*ResourceList) Kind ¶

func (l *ResourceList) Kind() string

Kind returns the name of the type of the object.

func (*ResourceList) Len ¶

func (l *ResourceList) Len() int

Len returns the length of the list.

func (l *ResourceList) Link() bool

Link returns true iif this is a link.

func (*ResourceList) Range ¶

func (l *ResourceList) Range(f func(index int, item *Resource) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*ResourceList) Slice ¶

func (l *ResourceList) Slice() []*Resource

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type ResourceListBuilder ¶

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

ResourceListBuilder contains the data and logic needed to build 'resource' objects.

func NewResourceList ¶

func NewResourceList() *ResourceListBuilder

NewResourceList creates a new builder of 'resource' objects.

func (*ResourceListBuilder) Build ¶

func (b *ResourceListBuilder) Build() (list *ResourceList, err error)

Build creates a list of 'resource' objects using the configuration stored in the builder.

func (*ResourceListBuilder) Copy ¶

Copy copies the items of the given list into this builder, discarding any previous items.

func (*ResourceListBuilder) Empty ¶ added in v0.0.329

func (b *ResourceListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*ResourceListBuilder) Items ¶

Items sets the items of the list.

type ResourceQuota ¶

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

ResourceQuota represents the values of the 'resource_quota' type.

func UnmarshalResourceQuota ¶

func UnmarshalResourceQuota(source interface{}) (object *ResourceQuota, err error)

UnmarshalResourceQuota reads a value of the 'resource_quota' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalResourceQuotaList ¶

func UnmarshalResourceQuotaList(source interface{}) (items []*ResourceQuota, err error)

UnmarshalResourceQuotaList reads a list of values of the 'resource_quota' type from the given source, which can be a slice of bytes, a string or a reader.

func (*ResourceQuota) CreatedAt ¶

func (o *ResourceQuota) CreatedAt() time.Time

CreatedAt returns the value of the 'created_at' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ResourceQuota) Empty ¶

func (o *ResourceQuota) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*ResourceQuota) GetCreatedAt ¶

func (o *ResourceQuota) GetCreatedAt() (value time.Time, ok bool)

GetCreatedAt returns the value of the 'created_at' attribute and a flag indicating if the attribute has a value.

func (*ResourceQuota) GetHREF ¶

func (o *ResourceQuota) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*ResourceQuota) GetID ¶

func (o *ResourceQuota) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*ResourceQuota) GetOrganizationID ¶

func (o *ResourceQuota) GetOrganizationID() (value string, ok bool)

GetOrganizationID returns the value of the 'organization_ID' attribute and a flag indicating if the attribute has a value.

func (*ResourceQuota) GetSKU ¶

func (o *ResourceQuota) GetSKU() (value string, ok bool)

GetSKU returns the value of the 'SKU' attribute and a flag indicating if the attribute has a value.

func (*ResourceQuota) GetSkuCount ¶

func (o *ResourceQuota) GetSkuCount() (value int, ok bool)

GetSkuCount returns the value of the 'sku_count' attribute and a flag indicating if the attribute has a value.

func (*ResourceQuota) GetType ¶

func (o *ResourceQuota) GetType() (value string, ok bool)

GetType returns the value of the 'type' attribute and a flag indicating if the attribute has a value.

func (*ResourceQuota) GetUpdatedAt ¶

func (o *ResourceQuota) GetUpdatedAt() (value time.Time, ok bool)

GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.

func (*ResourceQuota) HREF ¶

func (o *ResourceQuota) HREF() string

HREF returns the link to the object.

func (*ResourceQuota) ID ¶

func (o *ResourceQuota) ID() string

ID returns the identifier of the object.

func (*ResourceQuota) Kind ¶

func (o *ResourceQuota) Kind() string

Kind returns the name of the type of the object.

func (o *ResourceQuota) Link() bool

Link returns true iif this is a link.

func (*ResourceQuota) OrganizationID ¶

func (o *ResourceQuota) OrganizationID() string

OrganizationID returns the value of the 'organization_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ResourceQuota) SKU ¶

func (o *ResourceQuota) SKU() string

SKU returns the value of the 'SKU' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ResourceQuota) SkuCount ¶

func (o *ResourceQuota) SkuCount() int

SkuCount returns the value of the 'sku_count' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ResourceQuota) Type ¶

func (o *ResourceQuota) Type() string

Type returns the value of the 'type' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ResourceQuota) UpdatedAt ¶

func (o *ResourceQuota) UpdatedAt() time.Time

UpdatedAt returns the value of the 'updated_at' attribute, or the zero value of the type if the attribute doesn't have a value.

type ResourceQuotaBuilder ¶

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

ResourceQuotaBuilder contains the data and logic needed to build 'resource_quota' objects.

func NewResourceQuota ¶

func NewResourceQuota() *ResourceQuotaBuilder

NewResourceQuota creates a new builder of 'resource_quota' objects.

func (*ResourceQuotaBuilder) Build ¶

func (b *ResourceQuotaBuilder) Build() (object *ResourceQuota, err error)

Build creates a 'resource_quota' object using the configuration stored in the builder.

func (*ResourceQuotaBuilder) Copy ¶

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*ResourceQuotaBuilder) CreatedAt ¶

func (b *ResourceQuotaBuilder) CreatedAt(value time.Time) *ResourceQuotaBuilder

CreatedAt sets the value of the 'created_at' attribute to the given value.

func (*ResourceQuotaBuilder) Empty ¶ added in v0.0.329

func (b *ResourceQuotaBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*ResourceQuotaBuilder) HREF ¶

HREF sets the link to the object.

func (*ResourceQuotaBuilder) ID ¶

ID sets the identifier of the object.

Link sets the flag that indicates if this is a link.

func (*ResourceQuotaBuilder) OrganizationID ¶

func (b *ResourceQuotaBuilder) OrganizationID(value string) *ResourceQuotaBuilder

OrganizationID sets the value of the 'organization_ID' attribute to the given value.

func (*ResourceQuotaBuilder) SKU ¶

SKU sets the value of the 'SKU' attribute to the given value.

func (*ResourceQuotaBuilder) SkuCount ¶

func (b *ResourceQuotaBuilder) SkuCount(value int) *ResourceQuotaBuilder

SkuCount sets the value of the 'sku_count' attribute to the given value.

func (*ResourceQuotaBuilder) Type ¶

Type sets the value of the 'type' attribute to the given value.

func (*ResourceQuotaBuilder) UpdatedAt ¶

func (b *ResourceQuotaBuilder) UpdatedAt(value time.Time) *ResourceQuotaBuilder

UpdatedAt sets the value of the 'updated_at' attribute to the given value.

type ResourceQuotaClient ¶

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

ResourceQuotaClient is the client of the 'resource_quota' resource.

Manages a specific resource quota.

func NewResourceQuotaClient ¶

func NewResourceQuotaClient(transport http.RoundTripper, path string) *ResourceQuotaClient

NewResourceQuotaClient creates a new client for the 'resource_quota' resource using the given transport to send the requests and receive the responses.

func (*ResourceQuotaClient) Delete ¶

Delete creates a request for the 'delete' method.

Deletes the resource quota.

func (*ResourceQuotaClient) Get ¶

Get creates a request for the 'get' method.

Retrieves the details of the resource quota.

func (*ResourceQuotaClient) Poll ¶

Poll creates a request to repeatedly retrieve the object till the response has one of a given set of states and satisfies a set of predicates.

func (*ResourceQuotaClient) Update ¶

Update creates a request for the 'update' method.

Updates the resource quota.

type ResourceQuotaDeleteRequest ¶

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

ResourceQuotaDeleteRequest is the request for the 'delete' method.

func (*ResourceQuotaDeleteRequest) Header ¶

func (r *ResourceQuotaDeleteRequest) Header(name string, value interface{}) *ResourceQuotaDeleteRequest

Header adds a request header.

func (*ResourceQuotaDeleteRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*ResourceQuotaDeleteRequest) Parameter ¶

func (r *ResourceQuotaDeleteRequest) Parameter(name string, value interface{}) *ResourceQuotaDeleteRequest

Parameter adds a query parameter.

func (*ResourceQuotaDeleteRequest) Send ¶

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*ResourceQuotaDeleteRequest) SendContext ¶

func (r *ResourceQuotaDeleteRequest) SendContext(ctx context.Context) (result *ResourceQuotaDeleteResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type ResourceQuotaDeleteResponse ¶

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

ResourceQuotaDeleteResponse is the response for the 'delete' method.

func (*ResourceQuotaDeleteResponse) Error ¶

Error returns the response error.

func (*ResourceQuotaDeleteResponse) Header ¶

Header returns header of the response.

func (*ResourceQuotaDeleteResponse) Status ¶

func (r *ResourceQuotaDeleteResponse) Status() int

Status returns the response status code.

type ResourceQuotaGetRequest ¶

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

ResourceQuotaGetRequest is the request for the 'get' method.

func (*ResourceQuotaGetRequest) Header ¶

func (r *ResourceQuotaGetRequest) Header(name string, value interface{}) *ResourceQuotaGetRequest

Header adds a request header.

func (*ResourceQuotaGetRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*ResourceQuotaGetRequest) Parameter ¶

func (r *ResourceQuotaGetRequest) Parameter(name string, value interface{}) *ResourceQuotaGetRequest

Parameter adds a query parameter.

func (*ResourceQuotaGetRequest) Send ¶

func (r *ResourceQuotaGetRequest) Send() (result *ResourceQuotaGetResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*ResourceQuotaGetRequest) SendContext ¶

func (r *ResourceQuotaGetRequest) SendContext(ctx context.Context) (result *ResourceQuotaGetResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type ResourceQuotaGetResponse ¶

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

ResourceQuotaGetResponse is the response for the 'get' method.

func (*ResourceQuotaGetResponse) Body ¶

Body returns the value of the 'body' parameter.

func (*ResourceQuotaGetResponse) Error ¶

Error returns the response error.

func (*ResourceQuotaGetResponse) GetBody ¶

func (r *ResourceQuotaGetResponse) GetBody() (value *ResourceQuota, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*ResourceQuotaGetResponse) Header ¶

func (r *ResourceQuotaGetResponse) Header() http.Header

Header returns header of the response.

func (*ResourceQuotaGetResponse) Status ¶

func (r *ResourceQuotaGetResponse) Status() int

Status returns the response status code.

type ResourceQuotaList ¶

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

ResourceQuotaList is a list of values of the 'resource_quota' type.

func (*ResourceQuotaList) Each ¶

func (l *ResourceQuotaList) Each(f func(item *ResourceQuota) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*ResourceQuotaList) Empty ¶

func (l *ResourceQuotaList) Empty() bool

Empty returns true if the list is empty.

func (*ResourceQuotaList) Get ¶

func (l *ResourceQuotaList) Get(i int) *ResourceQuota

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*ResourceQuotaList) GetHREF ¶

func (l *ResourceQuotaList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*ResourceQuotaList) HREF ¶

func (l *ResourceQuotaList) HREF() string

HREF returns the link to the list.

func (*ResourceQuotaList) Kind ¶

func (l *ResourceQuotaList) Kind() string

Kind returns the name of the type of the object.

func (*ResourceQuotaList) Len ¶

func (l *ResourceQuotaList) Len() int

Len returns the length of the list.

func (l *ResourceQuotaList) Link() bool

Link returns true iif this is a link.

func (*ResourceQuotaList) Range ¶

func (l *ResourceQuotaList) Range(f func(index int, item *ResourceQuota) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*ResourceQuotaList) Slice ¶

func (l *ResourceQuotaList) Slice() []*ResourceQuota

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type ResourceQuotaListBuilder ¶

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

ResourceQuotaListBuilder contains the data and logic needed to build 'resource_quota' objects.

func NewResourceQuotaList ¶

func NewResourceQuotaList() *ResourceQuotaListBuilder

NewResourceQuotaList creates a new builder of 'resource_quota' objects.

func (*ResourceQuotaListBuilder) Build ¶

func (b *ResourceQuotaListBuilder) Build() (list *ResourceQuotaList, err error)

Build creates a list of 'resource_quota' objects using the configuration stored in the builder.

func (*ResourceQuotaListBuilder) Copy ¶

Copy copies the items of the given list into this builder, discarding any previous items.

func (*ResourceQuotaListBuilder) Empty ¶ added in v0.0.329

func (b *ResourceQuotaListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*ResourceQuotaListBuilder) Items ¶

Items sets the items of the list.

type ResourceQuotaPollRequest ¶

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

ResourceQuotaPollRequest is the request for the Poll method.

func (*ResourceQuotaPollRequest) Header ¶

func (r *ResourceQuotaPollRequest) Header(name string, value interface{}) *ResourceQuotaPollRequest

Header adds a request header to all the requests that will be used to retrieve the object.

func (*ResourceQuotaPollRequest) Interval ¶

Interval sets the polling interval. This parameter is mandatory and must be greater than zero.

func (*ResourceQuotaPollRequest) Parameter ¶

func (r *ResourceQuotaPollRequest) Parameter(name string, value interface{}) *ResourceQuotaPollRequest

Parameter adds a query parameter to all the requests that will be used to retrieve the object.

func (*ResourceQuotaPollRequest) Predicate ¶

Predicate adds a predicate that the response should satisfy be considered successful. Multiple predicates can be set calling this method multiple times. The response will be considered successful if all the predicates are satisfied.

func (*ResourceQuotaPollRequest) StartContext ¶

func (r *ResourceQuotaPollRequest) StartContext(ctx context.Context) (response *ResourceQuotaPollResponse, err error)

StartContext starts the polling loop. Responses will be considered successful if the status is one of the values specified with the Status method and if all the predicates specified with the Predicate method return nil.

The context must have a timeout or deadline, otherwise this method will immediately return an error.

func (*ResourceQuotaPollRequest) Status ¶

Status set the expected status of the response. Multiple values can be set calling this method multiple times. The response will be considered successful if the status is any of those values.

type ResourceQuotaPollResponse ¶

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

ResourceQuotaPollResponse is the response for the Poll method.

func (*ResourceQuotaPollResponse) Body ¶

Body returns the value of the 'body' parameter.

func (*ResourceQuotaPollResponse) Error ¶

Error returns the response error.

func (*ResourceQuotaPollResponse) GetBody ¶

func (r *ResourceQuotaPollResponse) GetBody() (value *ResourceQuota, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*ResourceQuotaPollResponse) Header ¶

Header returns header of the response.

func (*ResourceQuotaPollResponse) Status ¶

func (r *ResourceQuotaPollResponse) Status() int

Status returns the response status code.

type ResourceQuotaUpdateRequest ¶

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

ResourceQuotaUpdateRequest is the request for the 'update' method.

func (*ResourceQuotaUpdateRequest) Body ¶

Body sets the value of the 'body' parameter.

func (*ResourceQuotaUpdateRequest) Header ¶

func (r *ResourceQuotaUpdateRequest) Header(name string, value interface{}) *ResourceQuotaUpdateRequest

Header adds a request header.

func (*ResourceQuotaUpdateRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*ResourceQuotaUpdateRequest) Parameter ¶

func (r *ResourceQuotaUpdateRequest) Parameter(name string, value interface{}) *ResourceQuotaUpdateRequest

Parameter adds a query parameter.

func (*ResourceQuotaUpdateRequest) Send ¶

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*ResourceQuotaUpdateRequest) SendContext ¶

func (r *ResourceQuotaUpdateRequest) SendContext(ctx context.Context) (result *ResourceQuotaUpdateResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type ResourceQuotaUpdateResponse ¶

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

ResourceQuotaUpdateResponse is the response for the 'update' method.

func (*ResourceQuotaUpdateResponse) Body ¶

Body returns the value of the 'body' parameter.

func (*ResourceQuotaUpdateResponse) Error ¶

Error returns the response error.

func (*ResourceQuotaUpdateResponse) GetBody ¶

func (r *ResourceQuotaUpdateResponse) GetBody() (value *ResourceQuota, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*ResourceQuotaUpdateResponse) Header ¶

Header returns header of the response.

func (*ResourceQuotaUpdateResponse) Status ¶

func (r *ResourceQuotaUpdateResponse) Status() int

Status returns the response status code.

type ResourceQuotasAddRequest ¶

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

ResourceQuotasAddRequest is the request for the 'add' method.

func (*ResourceQuotasAddRequest) Body ¶

Body sets the value of the 'body' parameter.

Resource quota data.

func (*ResourceQuotasAddRequest) Header ¶

func (r *ResourceQuotasAddRequest) Header(name string, value interface{}) *ResourceQuotasAddRequest

Header adds a request header.

func (*ResourceQuotasAddRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*ResourceQuotasAddRequest) Parameter ¶

func (r *ResourceQuotasAddRequest) Parameter(name string, value interface{}) *ResourceQuotasAddRequest

Parameter adds a query parameter.

func (*ResourceQuotasAddRequest) Send ¶

func (r *ResourceQuotasAddRequest) Send() (result *ResourceQuotasAddResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*ResourceQuotasAddRequest) SendContext ¶

func (r *ResourceQuotasAddRequest) SendContext(ctx context.Context) (result *ResourceQuotasAddResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type ResourceQuotasAddResponse ¶

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

ResourceQuotasAddResponse is the response for the 'add' method.

func (*ResourceQuotasAddResponse) Body ¶

Body returns the value of the 'body' parameter.

Resource quota data.

func (*ResourceQuotasAddResponse) Error ¶

Error returns the response error.

func (*ResourceQuotasAddResponse) GetBody ¶

func (r *ResourceQuotasAddResponse) GetBody() (value *ResourceQuota, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

Resource quota data.

func (*ResourceQuotasAddResponse) Header ¶

Header returns header of the response.

func (*ResourceQuotasAddResponse) Status ¶

func (r *ResourceQuotasAddResponse) Status() int

Status returns the response status code.

type ResourceQuotasClient ¶

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

ResourceQuotasClient is the client of the 'resource_quotas' resource.

Manages the collection of resource quotas for an organization.

func NewResourceQuotasClient ¶

func NewResourceQuotasClient(transport http.RoundTripper, path string) *ResourceQuotasClient

NewResourceQuotasClient creates a new client for the 'resource_quotas' resource using the given transport to send the requests and receive the responses.

func (*ResourceQuotasClient) Add ¶

Add creates a request for the 'add' method.

Creates a new resource quota.

func (*ResourceQuotasClient) List ¶

List creates a request for the 'list' method.

Retrieves the list of resource quotas.

func (*ResourceQuotasClient) ResourceQuota ¶

func (c *ResourceQuotasClient) ResourceQuota(id string) *ResourceQuotaClient

ResourceQuota returns the target 'resource_quota' resource for the given identifier.

Reference to the service that manages an specific resource quota.

type ResourceQuotasListRequest ¶

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

ResourceQuotasListRequest is the request for the 'list' method.

func (*ResourceQuotasListRequest) Header ¶

func (r *ResourceQuotasListRequest) Header(name string, value interface{}) *ResourceQuotasListRequest

Header adds a request header.

func (*ResourceQuotasListRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*ResourceQuotasListRequest) Page ¶

Page sets the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*ResourceQuotasListRequest) Parameter ¶

func (r *ResourceQuotasListRequest) Parameter(name string, value interface{}) *ResourceQuotasListRequest

Parameter adds a query parameter.

func (*ResourceQuotasListRequest) Search ¶

Search sets the value of the 'search' parameter.

Search criteria.

The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the account instead of the names of the columns of a table. For example, in order to retrieve resource quota with resource_type cluster.aws:

```sql resource_type = 'cluster.aws' ```

If the parameter isn't provided, or if the value is empty, then all the items that the user has permission to see will be returned.

func (*ResourceQuotasListRequest) Send ¶

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*ResourceQuotasListRequest) SendContext ¶

func (r *ResourceQuotasListRequest) SendContext(ctx context.Context) (result *ResourceQuotasListResponse, err error)

SendContext sends this request, waits for the response, and returns it.

func (*ResourceQuotasListRequest) Size ¶

Size sets the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

type ResourceQuotasListResponse ¶

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

ResourceQuotasListResponse is the response for the 'list' method.

func (*ResourceQuotasListResponse) Error ¶

Error returns the response error.

func (*ResourceQuotasListResponse) GetItems ¶

func (r *ResourceQuotasListResponse) GetItems() (value *ResourceQuotaList, ok bool)

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

Retrieved list of resource quotas.

func (*ResourceQuotasListResponse) GetPage ¶

func (r *ResourceQuotasListResponse) GetPage() (value int, ok bool)

GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.

Index of the requested page, where one corresponds to the first page.

func (*ResourceQuotasListResponse) GetSize ¶

func (r *ResourceQuotasListResponse) GetSize() (value int, ok bool)

GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.

Maximum number of items that will be contained in the returned page.

func (*ResourceQuotasListResponse) GetTotal ¶

func (r *ResourceQuotasListResponse) GetTotal() (value int, ok bool)

GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

func (*ResourceQuotasListResponse) Header ¶

Header returns header of the response.

func (*ResourceQuotasListResponse) Items ¶

Items returns the value of the 'items' parameter.

Retrieved list of resource quotas.

func (*ResourceQuotasListResponse) Page ¶

func (r *ResourceQuotasListResponse) Page() int

Page returns the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*ResourceQuotasListResponse) Size ¶

func (r *ResourceQuotasListResponse) Size() int

Size returns the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

func (*ResourceQuotasListResponse) Status ¶

func (r *ResourceQuotasListResponse) Status() int

Status returns the response status code.

func (*ResourceQuotasListResponse) Total ¶

func (r *ResourceQuotasListResponse) Total() int

Total returns the value of the 'total' parameter.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

type Role ¶

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

Role represents the values of the 'role' type.

func UnmarshalRole ¶

func UnmarshalRole(source interface{}) (object *Role, err error)

UnmarshalRole reads a value of the 'role' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalRoleList ¶

func UnmarshalRoleList(source interface{}) (items []*Role, err error)

UnmarshalRoleList reads a list of values of the 'role' type from the given source, which can be a slice of bytes, a string or a reader.

func (*Role) Empty ¶

func (o *Role) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*Role) GetHREF ¶

func (o *Role) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*Role) GetID ¶

func (o *Role) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*Role) GetName ¶

func (o *Role) GetName() (value string, ok bool)

GetName returns the value of the 'name' attribute and a flag indicating if the attribute has a value.

func (*Role) GetPermissions ¶

func (o *Role) GetPermissions() (value []*Permission, ok bool)

GetPermissions returns the value of the 'permissions' attribute and a flag indicating if the attribute has a value.

func (*Role) HREF ¶

func (o *Role) HREF() string

HREF returns the link to the object.

func (*Role) ID ¶

func (o *Role) ID() string

ID returns the identifier of the object.

func (*Role) Kind ¶

func (o *Role) Kind() string

Kind returns the name of the type of the object.

func (o *Role) Link() bool

Link returns true iif this is a link.

func (*Role) Name ¶

func (o *Role) Name() string

Name returns the value of the 'name' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Role) Permissions ¶

func (o *Role) Permissions() []*Permission

Permissions returns the value of the 'permissions' attribute, or the zero value of the type if the attribute doesn't have a value.

type RoleBinding ¶

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

RoleBinding represents the values of the 'role_binding' type.

func UnmarshalRoleBinding ¶

func UnmarshalRoleBinding(source interface{}) (object *RoleBinding, err error)

UnmarshalRoleBinding reads a value of the 'role_binding' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalRoleBindingList ¶

func UnmarshalRoleBindingList(source interface{}) (items []*RoleBinding, err error)

UnmarshalRoleBindingList reads a list of values of the 'role_binding' type from the given source, which can be a slice of bytes, a string or a reader.

func (*RoleBinding) Account ¶

func (o *RoleBinding) Account() *Account

Account returns the value of the 'account' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*RoleBinding) AccountID ¶

func (o *RoleBinding) AccountID() string

AccountID returns the value of the 'account_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*RoleBinding) ConfigManaged ¶

func (o *RoleBinding) ConfigManaged() bool

ConfigManaged returns the value of the 'config_managed' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*RoleBinding) CreatedAt ¶

func (o *RoleBinding) CreatedAt() time.Time

CreatedAt returns the value of the 'created_at' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*RoleBinding) Empty ¶

func (o *RoleBinding) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*RoleBinding) GetAccount ¶

func (o *RoleBinding) GetAccount() (value *Account, ok bool)

GetAccount returns the value of the 'account' attribute and a flag indicating if the attribute has a value.

func (*RoleBinding) GetAccountID ¶

func (o *RoleBinding) GetAccountID() (value string, ok bool)

GetAccountID returns the value of the 'account_ID' attribute and a flag indicating if the attribute has a value.

func (*RoleBinding) GetConfigManaged ¶

func (o *RoleBinding) GetConfigManaged() (value bool, ok bool)

GetConfigManaged returns the value of the 'config_managed' attribute and a flag indicating if the attribute has a value.

func (*RoleBinding) GetCreatedAt ¶

func (o *RoleBinding) GetCreatedAt() (value time.Time, ok bool)

GetCreatedAt returns the value of the 'created_at' attribute and a flag indicating if the attribute has a value.

func (*RoleBinding) GetHREF ¶

func (o *RoleBinding) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*RoleBinding) GetID ¶

func (o *RoleBinding) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*RoleBinding) GetManagedBy ¶ added in v0.0.329

func (o *RoleBinding) GetManagedBy() (value string, ok bool)

GetManagedBy returns the value of the 'managed_by' attribute and a flag indicating if the attribute has a value.

func (*RoleBinding) GetOrganization ¶

func (o *RoleBinding) GetOrganization() (value *Organization, ok bool)

GetOrganization returns the value of the 'organization' attribute and a flag indicating if the attribute has a value.

func (*RoleBinding) GetOrganizationID ¶

func (o *RoleBinding) GetOrganizationID() (value string, ok bool)

GetOrganizationID returns the value of the 'organization_ID' attribute and a flag indicating if the attribute has a value.

func (*RoleBinding) GetRole ¶

func (o *RoleBinding) GetRole() (value *Role, ok bool)

GetRole returns the value of the 'role' attribute and a flag indicating if the attribute has a value.

func (*RoleBinding) GetRoleID ¶

func (o *RoleBinding) GetRoleID() (value string, ok bool)

GetRoleID returns the value of the 'role_ID' attribute and a flag indicating if the attribute has a value.

func (*RoleBinding) GetSubscription ¶

func (o *RoleBinding) GetSubscription() (value *Subscription, ok bool)

GetSubscription returns the value of the 'subscription' attribute and a flag indicating if the attribute has a value.

func (*RoleBinding) GetSubscriptionID ¶

func (o *RoleBinding) GetSubscriptionID() (value string, ok bool)

GetSubscriptionID returns the value of the 'subscription_ID' attribute and a flag indicating if the attribute has a value.

func (*RoleBinding) GetType ¶

func (o *RoleBinding) GetType() (value string, ok bool)

GetType returns the value of the 'type' attribute and a flag indicating if the attribute has a value.

func (*RoleBinding) GetUpdatedAt ¶

func (o *RoleBinding) GetUpdatedAt() (value time.Time, ok bool)

GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.

func (*RoleBinding) HREF ¶

func (o *RoleBinding) HREF() string

HREF returns the link to the object.

func (*RoleBinding) ID ¶

func (o *RoleBinding) ID() string

ID returns the identifier of the object.

func (*RoleBinding) Kind ¶

func (o *RoleBinding) Kind() string

Kind returns the name of the type of the object.

func (o *RoleBinding) Link() bool

Link returns true iif this is a link.

func (*RoleBinding) ManagedBy ¶ added in v0.0.329

func (o *RoleBinding) ManagedBy() string

ManagedBy returns the value of the 'managed_by' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*RoleBinding) Organization ¶

func (o *RoleBinding) Organization() *Organization

Organization returns the value of the 'organization' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*RoleBinding) OrganizationID ¶

func (o *RoleBinding) OrganizationID() string

OrganizationID returns the value of the 'organization_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*RoleBinding) Role ¶

func (o *RoleBinding) Role() *Role

Role returns the value of the 'role' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*RoleBinding) RoleID ¶

func (o *RoleBinding) RoleID() string

RoleID returns the value of the 'role_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*RoleBinding) Subscription ¶

func (o *RoleBinding) Subscription() *Subscription

Subscription returns the value of the 'subscription' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*RoleBinding) SubscriptionID ¶

func (o *RoleBinding) SubscriptionID() string

SubscriptionID returns the value of the 'subscription_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*RoleBinding) Type ¶

func (o *RoleBinding) Type() string

Type returns the value of the 'type' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*RoleBinding) UpdatedAt ¶

func (o *RoleBinding) UpdatedAt() time.Time

UpdatedAt returns the value of the 'updated_at' attribute, or the zero value of the type if the attribute doesn't have a value.

type RoleBindingBuilder ¶

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

RoleBindingBuilder contains the data and logic needed to build 'role_binding' objects.

func NewRoleBinding ¶

func NewRoleBinding() *RoleBindingBuilder

NewRoleBinding creates a new builder of 'role_binding' objects.

func (*RoleBindingBuilder) Account ¶

Account sets the value of the 'account' attribute to the given value.

func (*RoleBindingBuilder) AccountID ¶

func (b *RoleBindingBuilder) AccountID(value string) *RoleBindingBuilder

AccountID sets the value of the 'account_ID' attribute to the given value.

func (*RoleBindingBuilder) Build ¶

func (b *RoleBindingBuilder) Build() (object *RoleBinding, err error)

Build creates a 'role_binding' object using the configuration stored in the builder.

func (*RoleBindingBuilder) ConfigManaged ¶

func (b *RoleBindingBuilder) ConfigManaged(value bool) *RoleBindingBuilder

ConfigManaged sets the value of the 'config_managed' attribute to the given value.

func (*RoleBindingBuilder) Copy ¶

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*RoleBindingBuilder) CreatedAt ¶

func (b *RoleBindingBuilder) CreatedAt(value time.Time) *RoleBindingBuilder

CreatedAt sets the value of the 'created_at' attribute to the given value.

func (*RoleBindingBuilder) Empty ¶ added in v0.0.329

func (b *RoleBindingBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*RoleBindingBuilder) HREF ¶

HREF sets the link to the object.

func (*RoleBindingBuilder) ID ¶

ID sets the identifier of the object.

func (b *RoleBindingBuilder) Link(value bool) *RoleBindingBuilder

Link sets the flag that indicates if this is a link.

func (*RoleBindingBuilder) ManagedBy ¶ added in v0.0.329

func (b *RoleBindingBuilder) ManagedBy(value string) *RoleBindingBuilder

ManagedBy sets the value of the 'managed_by' attribute to the given value.

func (*RoleBindingBuilder) Organization ¶

Organization sets the value of the 'organization' attribute to the given value.

func (*RoleBindingBuilder) OrganizationID ¶

func (b *RoleBindingBuilder) OrganizationID(value string) *RoleBindingBuilder

OrganizationID sets the value of the 'organization_ID' attribute to the given value.

func (*RoleBindingBuilder) Role ¶

Role sets the value of the 'role' attribute to the given value.

func (*RoleBindingBuilder) RoleID ¶

func (b *RoleBindingBuilder) RoleID(value string) *RoleBindingBuilder

RoleID sets the value of the 'role_ID' attribute to the given value.

func (*RoleBindingBuilder) Subscription ¶

Subscription sets the value of the 'subscription' attribute to the given value.

func (*RoleBindingBuilder) SubscriptionID ¶

func (b *RoleBindingBuilder) SubscriptionID(value string) *RoleBindingBuilder

SubscriptionID sets the value of the 'subscription_ID' attribute to the given value.

func (*RoleBindingBuilder) Type ¶

Type sets the value of the 'type' attribute to the given value.

func (*RoleBindingBuilder) UpdatedAt ¶

func (b *RoleBindingBuilder) UpdatedAt(value time.Time) *RoleBindingBuilder

UpdatedAt sets the value of the 'updated_at' attribute to the given value.

type RoleBindingClient ¶

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

RoleBindingClient is the client of the 'role_binding' resource.

Manages a specific role binding.

func NewRoleBindingClient ¶

func NewRoleBindingClient(transport http.RoundTripper, path string) *RoleBindingClient

NewRoleBindingClient creates a new client for the 'role_binding' resource using the given transport to send the requests and receive the responses.

func (*RoleBindingClient) Delete ¶

Delete creates a request for the 'delete' method.

Deletes the role binding.

func (*RoleBindingClient) Get ¶

Get creates a request for the 'get' method.

Retrieves the details of the role binding.

func (*RoleBindingClient) Poll ¶

Poll creates a request to repeatedly retrieve the object till the response has one of a given set of states and satisfies a set of predicates.

func (*RoleBindingClient) Update ¶

Update creates a request for the 'update' method.

Updates the account.

type RoleBindingDeleteRequest ¶

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

RoleBindingDeleteRequest is the request for the 'delete' method.

func (*RoleBindingDeleteRequest) Header ¶

func (r *RoleBindingDeleteRequest) Header(name string, value interface{}) *RoleBindingDeleteRequest

Header adds a request header.

func (*RoleBindingDeleteRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*RoleBindingDeleteRequest) Parameter ¶

func (r *RoleBindingDeleteRequest) Parameter(name string, value interface{}) *RoleBindingDeleteRequest

Parameter adds a query parameter.

func (*RoleBindingDeleteRequest) Send ¶

func (r *RoleBindingDeleteRequest) Send() (result *RoleBindingDeleteResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*RoleBindingDeleteRequest) SendContext ¶

func (r *RoleBindingDeleteRequest) SendContext(ctx context.Context) (result *RoleBindingDeleteResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type RoleBindingDeleteResponse ¶

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

RoleBindingDeleteResponse is the response for the 'delete' method.

func (*RoleBindingDeleteResponse) Error ¶

Error returns the response error.

func (*RoleBindingDeleteResponse) Header ¶

Header returns header of the response.

func (*RoleBindingDeleteResponse) Status ¶

func (r *RoleBindingDeleteResponse) Status() int

Status returns the response status code.

type RoleBindingGetRequest ¶

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

RoleBindingGetRequest is the request for the 'get' method.

func (*RoleBindingGetRequest) Header ¶

func (r *RoleBindingGetRequest) Header(name string, value interface{}) *RoleBindingGetRequest

Header adds a request header.

func (*RoleBindingGetRequest) Impersonate ¶ added in v0.0.329

func (r *RoleBindingGetRequest) Impersonate(user string) *RoleBindingGetRequest

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*RoleBindingGetRequest) Parameter ¶

func (r *RoleBindingGetRequest) Parameter(name string, value interface{}) *RoleBindingGetRequest

Parameter adds a query parameter.

func (*RoleBindingGetRequest) Send ¶

func (r *RoleBindingGetRequest) Send() (result *RoleBindingGetResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*RoleBindingGetRequest) SendContext ¶

func (r *RoleBindingGetRequest) SendContext(ctx context.Context) (result *RoleBindingGetResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type RoleBindingGetResponse ¶

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

RoleBindingGetResponse is the response for the 'get' method.

func (*RoleBindingGetResponse) Body ¶

Body returns the value of the 'body' parameter.

func (*RoleBindingGetResponse) Error ¶

func (r *RoleBindingGetResponse) Error() *errors.Error

Error returns the response error.

func (*RoleBindingGetResponse) GetBody ¶

func (r *RoleBindingGetResponse) GetBody() (value *RoleBinding, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*RoleBindingGetResponse) Header ¶

func (r *RoleBindingGetResponse) Header() http.Header

Header returns header of the response.

func (*RoleBindingGetResponse) Status ¶

func (r *RoleBindingGetResponse) Status() int

Status returns the response status code.

type RoleBindingList ¶

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

RoleBindingList is a list of values of the 'role_binding' type.

func (*RoleBindingList) Each ¶

func (l *RoleBindingList) Each(f func(item *RoleBinding) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*RoleBindingList) Empty ¶

func (l *RoleBindingList) Empty() bool

Empty returns true if the list is empty.

func (*RoleBindingList) Get ¶

func (l *RoleBindingList) Get(i int) *RoleBinding

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*RoleBindingList) GetHREF ¶

func (l *RoleBindingList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*RoleBindingList) HREF ¶

func (l *RoleBindingList) HREF() string

HREF returns the link to the list.

func (*RoleBindingList) Kind ¶

func (l *RoleBindingList) Kind() string

Kind returns the name of the type of the object.

func (*RoleBindingList) Len ¶

func (l *RoleBindingList) Len() int

Len returns the length of the list.

func (l *RoleBindingList) Link() bool

Link returns true iif this is a link.

func (*RoleBindingList) Range ¶

func (l *RoleBindingList) Range(f func(index int, item *RoleBinding) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*RoleBindingList) Slice ¶

func (l *RoleBindingList) Slice() []*RoleBinding

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type RoleBindingListBuilder ¶

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

RoleBindingListBuilder contains the data and logic needed to build 'role_binding' objects.

func NewRoleBindingList ¶

func NewRoleBindingList() *RoleBindingListBuilder

NewRoleBindingList creates a new builder of 'role_binding' objects.

func (*RoleBindingListBuilder) Build ¶

func (b *RoleBindingListBuilder) Build() (list *RoleBindingList, err error)

Build creates a list of 'role_binding' objects using the configuration stored in the builder.

func (*RoleBindingListBuilder) Copy ¶

Copy copies the items of the given list into this builder, discarding any previous items.

func (*RoleBindingListBuilder) Empty ¶ added in v0.0.329

func (b *RoleBindingListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*RoleBindingListBuilder) Items ¶

Items sets the items of the list.

type RoleBindingPollRequest ¶

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

RoleBindingPollRequest is the request for the Poll method.

func (*RoleBindingPollRequest) Header ¶

func (r *RoleBindingPollRequest) Header(name string, value interface{}) *RoleBindingPollRequest

Header adds a request header to all the requests that will be used to retrieve the object.

func (*RoleBindingPollRequest) Interval ¶

Interval sets the polling interval. This parameter is mandatory and must be greater than zero.

func (*RoleBindingPollRequest) Parameter ¶

func (r *RoleBindingPollRequest) Parameter(name string, value interface{}) *RoleBindingPollRequest

Parameter adds a query parameter to all the requests that will be used to retrieve the object.

func (*RoleBindingPollRequest) Predicate ¶

Predicate adds a predicate that the response should satisfy be considered successful. Multiple predicates can be set calling this method multiple times. The response will be considered successful if all the predicates are satisfied.

func (*RoleBindingPollRequest) StartContext ¶

func (r *RoleBindingPollRequest) StartContext(ctx context.Context) (response *RoleBindingPollResponse, err error)

StartContext starts the polling loop. Responses will be considered successful if the status is one of the values specified with the Status method and if all the predicates specified with the Predicate method return nil.

The context must have a timeout or deadline, otherwise this method will immediately return an error.

func (*RoleBindingPollRequest) Status ¶

Status set the expected status of the response. Multiple values can be set calling this method multiple times. The response will be considered successful if the status is any of those values.

type RoleBindingPollResponse ¶

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

RoleBindingPollResponse is the response for the Poll method.

func (*RoleBindingPollResponse) Body ¶

Body returns the value of the 'body' parameter.

func (*RoleBindingPollResponse) Error ¶

func (r *RoleBindingPollResponse) Error() *errors.Error

Error returns the response error.

func (*RoleBindingPollResponse) GetBody ¶

func (r *RoleBindingPollResponse) GetBody() (value *RoleBinding, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*RoleBindingPollResponse) Header ¶

func (r *RoleBindingPollResponse) Header() http.Header

Header returns header of the response.

func (*RoleBindingPollResponse) Status ¶

func (r *RoleBindingPollResponse) Status() int

Status returns the response status code.

type RoleBindingUpdateRequest ¶

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

RoleBindingUpdateRequest is the request for the 'update' method.

func (*RoleBindingUpdateRequest) Body ¶

Body sets the value of the 'body' parameter.

func (*RoleBindingUpdateRequest) Header ¶

func (r *RoleBindingUpdateRequest) Header(name string, value interface{}) *RoleBindingUpdateRequest

Header adds a request header.

func (*RoleBindingUpdateRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*RoleBindingUpdateRequest) Parameter ¶

func (r *RoleBindingUpdateRequest) Parameter(name string, value interface{}) *RoleBindingUpdateRequest

Parameter adds a query parameter.

func (*RoleBindingUpdateRequest) Send ¶

func (r *RoleBindingUpdateRequest) Send() (result *RoleBindingUpdateResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*RoleBindingUpdateRequest) SendContext ¶

func (r *RoleBindingUpdateRequest) SendContext(ctx context.Context) (result *RoleBindingUpdateResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type RoleBindingUpdateResponse ¶

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

RoleBindingUpdateResponse is the response for the 'update' method.

func (*RoleBindingUpdateResponse) Body ¶

Body returns the value of the 'body' parameter.

func (*RoleBindingUpdateResponse) Error ¶

Error returns the response error.

func (*RoleBindingUpdateResponse) GetBody ¶

func (r *RoleBindingUpdateResponse) GetBody() (value *RoleBinding, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*RoleBindingUpdateResponse) Header ¶

Header returns header of the response.

func (*RoleBindingUpdateResponse) Status ¶

func (r *RoleBindingUpdateResponse) Status() int

Status returns the response status code.

type RoleBindingsAddRequest ¶

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

RoleBindingsAddRequest is the request for the 'add' method.

func (*RoleBindingsAddRequest) Body ¶

Body sets the value of the 'body' parameter.

Role binding data.

func (*RoleBindingsAddRequest) Header ¶

func (r *RoleBindingsAddRequest) Header(name string, value interface{}) *RoleBindingsAddRequest

Header adds a request header.

func (*RoleBindingsAddRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*RoleBindingsAddRequest) Parameter ¶

func (r *RoleBindingsAddRequest) Parameter(name string, value interface{}) *RoleBindingsAddRequest

Parameter adds a query parameter.

func (*RoleBindingsAddRequest) Send ¶

func (r *RoleBindingsAddRequest) Send() (result *RoleBindingsAddResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*RoleBindingsAddRequest) SendContext ¶

func (r *RoleBindingsAddRequest) SendContext(ctx context.Context) (result *RoleBindingsAddResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type RoleBindingsAddResponse ¶

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

RoleBindingsAddResponse is the response for the 'add' method.

func (*RoleBindingsAddResponse) Body ¶

Body returns the value of the 'body' parameter.

Role binding data.

func (*RoleBindingsAddResponse) Error ¶

func (r *RoleBindingsAddResponse) Error() *errors.Error

Error returns the response error.

func (*RoleBindingsAddResponse) GetBody ¶

func (r *RoleBindingsAddResponse) GetBody() (value *RoleBinding, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

Role binding data.

func (*RoleBindingsAddResponse) Header ¶

func (r *RoleBindingsAddResponse) Header() http.Header

Header returns header of the response.

func (*RoleBindingsAddResponse) Status ¶

func (r *RoleBindingsAddResponse) Status() int

Status returns the response status code.

type RoleBindingsClient ¶

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

RoleBindingsClient is the client of the 'role_bindings' resource.

Manages the collection of role bindings.

func NewRoleBindingsClient ¶

func NewRoleBindingsClient(transport http.RoundTripper, path string) *RoleBindingsClient

NewRoleBindingsClient creates a new client for the 'role_bindings' resource using the given transport to send the requests and receive the responses.

func (*RoleBindingsClient) Add ¶

Add creates a request for the 'add' method.

Creates a new role binding.

func (*RoleBindingsClient) List ¶

List creates a request for the 'list' method.

Retrieves a list of role bindings.

func (*RoleBindingsClient) RoleBinding ¶

func (c *RoleBindingsClient) RoleBinding(id string) *RoleBindingClient

RoleBinding returns the target 'role_binding' resource for the given identifier.

Reference to the service that manages a specific role binding.

type RoleBindingsListRequest ¶

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

RoleBindingsListRequest is the request for the 'list' method.

func (*RoleBindingsListRequest) Header ¶

func (r *RoleBindingsListRequest) Header(name string, value interface{}) *RoleBindingsListRequest

Header adds a request header.

func (*RoleBindingsListRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*RoleBindingsListRequest) Page ¶

Page sets the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*RoleBindingsListRequest) Parameter ¶

func (r *RoleBindingsListRequest) Parameter(name string, value interface{}) *RoleBindingsListRequest

Parameter adds a query parameter.

func (*RoleBindingsListRequest) Search ¶

Search sets the value of the 'search' parameter.

Search criteria.

The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the role binding instead of the names of the columns of a table. For example, in order to retrieve role bindings with role_id AuthenticatedUser:

```sql role_id = 'AuthenticatedUser' ```

If the parameter isn't provided, or if the value is empty, then all the items that the user has permission to see will be returned.

func (*RoleBindingsListRequest) Send ¶

func (r *RoleBindingsListRequest) Send() (result *RoleBindingsListResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*RoleBindingsListRequest) SendContext ¶

func (r *RoleBindingsListRequest) SendContext(ctx context.Context) (result *RoleBindingsListResponse, err error)

SendContext sends this request, waits for the response, and returns it.

func (*RoleBindingsListRequest) Size ¶

Size sets the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

type RoleBindingsListResponse ¶

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

RoleBindingsListResponse is the response for the 'list' method.

func (*RoleBindingsListResponse) Error ¶

Error returns the response error.

func (*RoleBindingsListResponse) GetItems ¶

func (r *RoleBindingsListResponse) GetItems() (value *RoleBindingList, ok bool)

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

Retrieved list of role bindings.

func (*RoleBindingsListResponse) GetPage ¶

func (r *RoleBindingsListResponse) GetPage() (value int, ok bool)

GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.

Index of the requested page, where one corresponds to the first page.

func (*RoleBindingsListResponse) GetSize ¶

func (r *RoleBindingsListResponse) GetSize() (value int, ok bool)

GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.

Maximum number of items that will be contained in the returned page.

func (*RoleBindingsListResponse) GetTotal ¶

func (r *RoleBindingsListResponse) GetTotal() (value int, ok bool)

GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

func (*RoleBindingsListResponse) Header ¶

func (r *RoleBindingsListResponse) Header() http.Header

Header returns header of the response.

func (*RoleBindingsListResponse) Items ¶

Items returns the value of the 'items' parameter.

Retrieved list of role bindings.

func (*RoleBindingsListResponse) Page ¶

func (r *RoleBindingsListResponse) Page() int

Page returns the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*RoleBindingsListResponse) Size ¶

func (r *RoleBindingsListResponse) Size() int

Size returns the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

func (*RoleBindingsListResponse) Status ¶

func (r *RoleBindingsListResponse) Status() int

Status returns the response status code.

func (*RoleBindingsListResponse) Total ¶

func (r *RoleBindingsListResponse) Total() int

Total returns the value of the 'total' parameter.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

type RoleBuilder ¶

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

RoleBuilder contains the data and logic needed to build 'role' objects.

func NewRole ¶

func NewRole() *RoleBuilder

NewRole creates a new builder of 'role' objects.

func (*RoleBuilder) Build ¶

func (b *RoleBuilder) Build() (object *Role, err error)

Build creates a 'role' object using the configuration stored in the builder.

func (*RoleBuilder) Copy ¶

func (b *RoleBuilder) Copy(object *Role) *RoleBuilder

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*RoleBuilder) Empty ¶ added in v0.0.329

func (b *RoleBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*RoleBuilder) HREF ¶

func (b *RoleBuilder) HREF(value string) *RoleBuilder

HREF sets the link to the object.

func (*RoleBuilder) ID ¶

func (b *RoleBuilder) ID(value string) *RoleBuilder

ID sets the identifier of the object.

func (b *RoleBuilder) Link(value bool) *RoleBuilder

Link sets the flag that indicates if this is a link.

func (*RoleBuilder) Name ¶

func (b *RoleBuilder) Name(value string) *RoleBuilder

Name sets the value of the 'name' attribute to the given value.

func (*RoleBuilder) Permissions ¶

func (b *RoleBuilder) Permissions(values ...*PermissionBuilder) *RoleBuilder

Permissions sets the value of the 'permissions' attribute to the given values.

type RoleClient ¶

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

RoleClient is the client of the 'role' resource.

Manages a specific role.

func NewRoleClient ¶

func NewRoleClient(transport http.RoundTripper, path string) *RoleClient

NewRoleClient creates a new client for the 'role' resource using the given transport to send the requests and receive the responses.

func (*RoleClient) Delete ¶

func (c *RoleClient) Delete() *RoleDeleteRequest

Delete creates a request for the 'delete' method.

Deletes the role.

func (*RoleClient) Get ¶

func (c *RoleClient) Get() *RoleGetRequest

Get creates a request for the 'get' method.

Retrieves the details of the role.

func (*RoleClient) Poll ¶

func (c *RoleClient) Poll() *RolePollRequest

Poll creates a request to repeatedly retrieve the object till the response has one of a given set of states and satisfies a set of predicates.

func (*RoleClient) Update ¶

func (c *RoleClient) Update() *RoleUpdateRequest

Update creates a request for the 'update' method.

Updates the role.

type RoleDeleteRequest ¶

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

RoleDeleteRequest is the request for the 'delete' method.

func (*RoleDeleteRequest) Header ¶

func (r *RoleDeleteRequest) Header(name string, value interface{}) *RoleDeleteRequest

Header adds a request header.

func (*RoleDeleteRequest) Impersonate ¶ added in v0.0.329

func (r *RoleDeleteRequest) Impersonate(user string) *RoleDeleteRequest

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*RoleDeleteRequest) Parameter ¶

func (r *RoleDeleteRequest) Parameter(name string, value interface{}) *RoleDeleteRequest

Parameter adds a query parameter.

func (*RoleDeleteRequest) Send ¶

func (r *RoleDeleteRequest) Send() (result *RoleDeleteResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*RoleDeleteRequest) SendContext ¶

func (r *RoleDeleteRequest) SendContext(ctx context.Context) (result *RoleDeleteResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type RoleDeleteResponse ¶

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

RoleDeleteResponse is the response for the 'delete' method.

func (*RoleDeleteResponse) Error ¶

func (r *RoleDeleteResponse) Error() *errors.Error

Error returns the response error.

func (*RoleDeleteResponse) Header ¶

func (r *RoleDeleteResponse) Header() http.Header

Header returns header of the response.

func (*RoleDeleteResponse) Status ¶

func (r *RoleDeleteResponse) Status() int

Status returns the response status code.

type RoleGetRequest ¶

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

RoleGetRequest is the request for the 'get' method.

func (*RoleGetRequest) Header ¶

func (r *RoleGetRequest) Header(name string, value interface{}) *RoleGetRequest

Header adds a request header.

func (*RoleGetRequest) Impersonate ¶ added in v0.0.329

func (r *RoleGetRequest) Impersonate(user string) *RoleGetRequest

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*RoleGetRequest) Parameter ¶

func (r *RoleGetRequest) Parameter(name string, value interface{}) *RoleGetRequest

Parameter adds a query parameter.

func (*RoleGetRequest) Send ¶

func (r *RoleGetRequest) Send() (result *RoleGetResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*RoleGetRequest) SendContext ¶

func (r *RoleGetRequest) SendContext(ctx context.Context) (result *RoleGetResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type RoleGetResponse ¶

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

RoleGetResponse is the response for the 'get' method.

func (*RoleGetResponse) Body ¶

func (r *RoleGetResponse) Body() *Role

Body returns the value of the 'body' parameter.

func (*RoleGetResponse) Error ¶

func (r *RoleGetResponse) Error() *errors.Error

Error returns the response error.

func (*RoleGetResponse) GetBody ¶

func (r *RoleGetResponse) GetBody() (value *Role, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*RoleGetResponse) Header ¶

func (r *RoleGetResponse) Header() http.Header

Header returns header of the response.

func (*RoleGetResponse) Status ¶

func (r *RoleGetResponse) Status() int

Status returns the response status code.

type RoleList ¶

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

RoleList is a list of values of the 'role' type.

func (*RoleList) Each ¶

func (l *RoleList) Each(f func(item *Role) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*RoleList) Empty ¶

func (l *RoleList) Empty() bool

Empty returns true if the list is empty.

func (*RoleList) Get ¶

func (l *RoleList) Get(i int) *Role

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*RoleList) GetHREF ¶

func (l *RoleList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*RoleList) HREF ¶

func (l *RoleList) HREF() string

HREF returns the link to the list.

func (*RoleList) Kind ¶

func (l *RoleList) Kind() string

Kind returns the name of the type of the object.

func (*RoleList) Len ¶

func (l *RoleList) Len() int

Len returns the length of the list.

func (l *RoleList) Link() bool

Link returns true iif this is a link.

func (*RoleList) Range ¶

func (l *RoleList) Range(f func(index int, item *Role) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*RoleList) Slice ¶

func (l *RoleList) Slice() []*Role

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type RoleListBuilder ¶

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

RoleListBuilder contains the data and logic needed to build 'role' objects.

func NewRoleList ¶

func NewRoleList() *RoleListBuilder

NewRoleList creates a new builder of 'role' objects.

func (*RoleListBuilder) Build ¶

func (b *RoleListBuilder) Build() (list *RoleList, err error)

Build creates a list of 'role' objects using the configuration stored in the builder.

func (*RoleListBuilder) Copy ¶

func (b *RoleListBuilder) Copy(list *RoleList) *RoleListBuilder

Copy copies the items of the given list into this builder, discarding any previous items.

func (*RoleListBuilder) Empty ¶ added in v0.0.329

func (b *RoleListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*RoleListBuilder) Items ¶

func (b *RoleListBuilder) Items(values ...*RoleBuilder) *RoleListBuilder

Items sets the items of the list.

type RolePollRequest ¶

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

RolePollRequest is the request for the Poll method.

func (*RolePollRequest) Header ¶

func (r *RolePollRequest) Header(name string, value interface{}) *RolePollRequest

Header adds a request header to all the requests that will be used to retrieve the object.

func (*RolePollRequest) Interval ¶

func (r *RolePollRequest) Interval(value time.Duration) *RolePollRequest

Interval sets the polling interval. This parameter is mandatory and must be greater than zero.

func (*RolePollRequest) Parameter ¶

func (r *RolePollRequest) Parameter(name string, value interface{}) *RolePollRequest

Parameter adds a query parameter to all the requests that will be used to retrieve the object.

func (*RolePollRequest) Predicate ¶

func (r *RolePollRequest) Predicate(value func(*RoleGetResponse) bool) *RolePollRequest

Predicate adds a predicate that the response should satisfy be considered successful. Multiple predicates can be set calling this method multiple times. The response will be considered successful if all the predicates are satisfied.

func (*RolePollRequest) StartContext ¶

func (r *RolePollRequest) StartContext(ctx context.Context) (response *RolePollResponse, err error)

StartContext starts the polling loop. Responses will be considered successful if the status is one of the values specified with the Status method and if all the predicates specified with the Predicate method return nil.

The context must have a timeout or deadline, otherwise this method will immediately return an error.

func (*RolePollRequest) Status ¶

func (r *RolePollRequest) Status(value int) *RolePollRequest

Status set the expected status of the response. Multiple values can be set calling this method multiple times. The response will be considered successful if the status is any of those values.

type RolePollResponse ¶

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

RolePollResponse is the response for the Poll method.

func (*RolePollResponse) Body ¶

func (r *RolePollResponse) Body() *Role

Body returns the value of the 'body' parameter.

func (*RolePollResponse) Error ¶

func (r *RolePollResponse) Error() *errors.Error

Error returns the response error.

func (*RolePollResponse) GetBody ¶

func (r *RolePollResponse) GetBody() (value *Role, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*RolePollResponse) Header ¶

func (r *RolePollResponse) Header() http.Header

Header returns header of the response.

func (*RolePollResponse) Status ¶

func (r *RolePollResponse) Status() int

Status returns the response status code.

type RoleUpdateRequest ¶

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

RoleUpdateRequest is the request for the 'update' method.

func (*RoleUpdateRequest) Body ¶

func (r *RoleUpdateRequest) Body(value *Role) *RoleUpdateRequest

Body sets the value of the 'body' parameter.

func (*RoleUpdateRequest) Header ¶

func (r *RoleUpdateRequest) Header(name string, value interface{}) *RoleUpdateRequest

Header adds a request header.

func (*RoleUpdateRequest) Impersonate ¶ added in v0.0.329

func (r *RoleUpdateRequest) Impersonate(user string) *RoleUpdateRequest

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*RoleUpdateRequest) Parameter ¶

func (r *RoleUpdateRequest) Parameter(name string, value interface{}) *RoleUpdateRequest

Parameter adds a query parameter.

func (*RoleUpdateRequest) Send ¶

func (r *RoleUpdateRequest) Send() (result *RoleUpdateResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*RoleUpdateRequest) SendContext ¶

func (r *RoleUpdateRequest) SendContext(ctx context.Context) (result *RoleUpdateResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type RoleUpdateResponse ¶

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

RoleUpdateResponse is the response for the 'update' method.

func (*RoleUpdateResponse) Body ¶

func (r *RoleUpdateResponse) Body() *Role

Body returns the value of the 'body' parameter.

func (*RoleUpdateResponse) Error ¶

func (r *RoleUpdateResponse) Error() *errors.Error

Error returns the response error.

func (*RoleUpdateResponse) GetBody ¶

func (r *RoleUpdateResponse) GetBody() (value *Role, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*RoleUpdateResponse) Header ¶

func (r *RoleUpdateResponse) Header() http.Header

Header returns header of the response.

func (*RoleUpdateResponse) Status ¶

func (r *RoleUpdateResponse) Status() int

Status returns the response status code.

type RolesAddRequest ¶

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

RolesAddRequest is the request for the 'add' method.

func (*RolesAddRequest) Body ¶

func (r *RolesAddRequest) Body(value *Role) *RolesAddRequest

Body sets the value of the 'body' parameter.

Role data.

func (*RolesAddRequest) Header ¶

func (r *RolesAddRequest) Header(name string, value interface{}) *RolesAddRequest

Header adds a request header.

func (*RolesAddRequest) Impersonate ¶ added in v0.0.329

func (r *RolesAddRequest) Impersonate(user string) *RolesAddRequest

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*RolesAddRequest) Parameter ¶

func (r *RolesAddRequest) Parameter(name string, value interface{}) *RolesAddRequest

Parameter adds a query parameter.

func (*RolesAddRequest) Send ¶

func (r *RolesAddRequest) Send() (result *RolesAddResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*RolesAddRequest) SendContext ¶

func (r *RolesAddRequest) SendContext(ctx context.Context) (result *RolesAddResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type RolesAddResponse ¶

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

RolesAddResponse is the response for the 'add' method.

func (*RolesAddResponse) Body ¶

func (r *RolesAddResponse) Body() *Role

Body returns the value of the 'body' parameter.

Role data.

func (*RolesAddResponse) Error ¶

func (r *RolesAddResponse) Error() *errors.Error

Error returns the response error.

func (*RolesAddResponse) GetBody ¶

func (r *RolesAddResponse) GetBody() (value *Role, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

Role data.

func (*RolesAddResponse) Header ¶

func (r *RolesAddResponse) Header() http.Header

Header returns header of the response.

func (*RolesAddResponse) Status ¶

func (r *RolesAddResponse) Status() int

Status returns the response status code.

type RolesClient ¶

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

RolesClient is the client of the 'roles' resource.

Manages the collection of roles.

func NewRolesClient ¶

func NewRolesClient(transport http.RoundTripper, path string) *RolesClient

NewRolesClient creates a new client for the 'roles' resource using the given transport to send the requests and receive the responses.

func (*RolesClient) Add ¶

func (c *RolesClient) Add() *RolesAddRequest

Add creates a request for the 'add' method.

Creates a new role.

func (*RolesClient) List ¶

func (c *RolesClient) List() *RolesListRequest

List creates a request for the 'list' method.

Retrieves a list of roles.

func (*RolesClient) Role ¶

func (c *RolesClient) Role(id string) *RoleClient

Role returns the target 'role' resource for the given identifier.

Reference to the service that manages a specific role.

type RolesListRequest ¶

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

RolesListRequest is the request for the 'list' method.

func (*RolesListRequest) Header ¶

func (r *RolesListRequest) Header(name string, value interface{}) *RolesListRequest

Header adds a request header.

func (*RolesListRequest) Impersonate ¶ added in v0.0.329

func (r *RolesListRequest) Impersonate(user string) *RolesListRequest

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*RolesListRequest) Page ¶

func (r *RolesListRequest) Page(value int) *RolesListRequest

Page sets the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*RolesListRequest) Parameter ¶

func (r *RolesListRequest) Parameter(name string, value interface{}) *RolesListRequest

Parameter adds a query parameter.

func (*RolesListRequest) Search ¶

func (r *RolesListRequest) Search(value string) *RolesListRequest

Search sets the value of the 'search' parameter.

Search criteria.

The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the role instead of the names of the columns of a table. For example, in order to retrieve roles named starting with `Organization`:

```sql name like 'Organization%' ```

If the parameter isn't provided, or if the value is empty, then all the items that the user has permission to see will be returned.

func (*RolesListRequest) Send ¶

func (r *RolesListRequest) Send() (result *RolesListResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*RolesListRequest) SendContext ¶

func (r *RolesListRequest) SendContext(ctx context.Context) (result *RolesListResponse, err error)

SendContext sends this request, waits for the response, and returns it.

func (*RolesListRequest) Size ¶

func (r *RolesListRequest) Size(value int) *RolesListRequest

Size sets the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

type RolesListResponse ¶

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

RolesListResponse is the response for the 'list' method.

func (*RolesListResponse) Error ¶

func (r *RolesListResponse) Error() *errors.Error

Error returns the response error.

func (*RolesListResponse) GetItems ¶

func (r *RolesListResponse) GetItems() (value *RoleList, ok bool)

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

Retrieved list of roles.

func (*RolesListResponse) GetPage ¶

func (r *RolesListResponse) GetPage() (value int, ok bool)

GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.

Index of the requested page, where one corresponds to the first page.

func (*RolesListResponse) GetSize ¶

func (r *RolesListResponse) GetSize() (value int, ok bool)

GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.

Maximum number of items that will be contained in the returned page.

func (*RolesListResponse) GetTotal ¶

func (r *RolesListResponse) GetTotal() (value int, ok bool)

GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

func (*RolesListResponse) Header ¶

func (r *RolesListResponse) Header() http.Header

Header returns header of the response.

func (*RolesListResponse) Items ¶

func (r *RolesListResponse) Items() *RoleList

Items returns the value of the 'items' parameter.

Retrieved list of roles.

func (*RolesListResponse) Page ¶

func (r *RolesListResponse) Page() int

Page returns the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*RolesListResponse) Size ¶

func (r *RolesListResponse) Size() int

Size returns the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

func (*RolesListResponse) Status ¶

func (r *RolesListResponse) Status() int

Status returns the response status code.

func (*RolesListResponse) Total ¶

func (r *RolesListResponse) Total() int

Total returns the value of the 'total' parameter.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

type SkuRule ¶

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

SkuRule represents the values of the 'sku_rule' type.

Identifies sku rule

func UnmarshalSkuRule ¶

func UnmarshalSkuRule(source interface{}) (object *SkuRule, err error)

UnmarshalSkuRule reads a value of the 'sku_rule' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalSkuRuleList ¶

func UnmarshalSkuRuleList(source interface{}) (items []*SkuRule, err error)

UnmarshalSkuRuleList reads a list of values of the 'sku_rule' type from the given source, which can be a slice of bytes, a string or a reader.

func (*SkuRule) Allowed ¶

func (o *SkuRule) Allowed() int

Allowed returns the value of the 'allowed' attribute, or the zero value of the type if the attribute doesn't have a value.

Specifies the allowed parameter for calculation

func (*SkuRule) Empty ¶

func (o *SkuRule) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*SkuRule) GetAllowed ¶

func (o *SkuRule) GetAllowed() (value int, ok bool)

GetAllowed returns the value of the 'allowed' attribute and a flag indicating if the attribute has a value.

Specifies the allowed parameter for calculation

func (*SkuRule) GetHREF ¶

func (o *SkuRule) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*SkuRule) GetID ¶

func (o *SkuRule) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*SkuRule) GetQuotaId ¶

func (o *SkuRule) GetQuotaId() (value string, ok bool)

GetQuotaId returns the value of the 'quota_id' attribute and a flag indicating if the attribute has a value.

Specifies the quota id

func (*SkuRule) GetSku ¶

func (o *SkuRule) GetSku() (value string, ok bool)

GetSku returns the value of the 'sku' attribute and a flag indicating if the attribute has a value.

Specifies the sku, such as ""MW00504""

func (*SkuRule) HREF ¶

func (o *SkuRule) HREF() string

HREF returns the link to the object.

func (*SkuRule) ID ¶

func (o *SkuRule) ID() string

ID returns the identifier of the object.

func (*SkuRule) Kind ¶

func (o *SkuRule) Kind() string

Kind returns the name of the type of the object.

func (o *SkuRule) Link() bool

Link returns true iif this is a link.

func (*SkuRule) QuotaId ¶

func (o *SkuRule) QuotaId() string

QuotaId returns the value of the 'quota_id' attribute, or the zero value of the type if the attribute doesn't have a value.

Specifies the quota id

func (*SkuRule) Sku ¶

func (o *SkuRule) Sku() string

Sku returns the value of the 'sku' attribute, or the zero value of the type if the attribute doesn't have a value.

Specifies the sku, such as ""MW00504""

type SkuRuleBuilder ¶

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

SkuRuleBuilder contains the data and logic needed to build 'sku_rule' objects.

Identifies sku rule

func NewSkuRule ¶

func NewSkuRule() *SkuRuleBuilder

NewSkuRule creates a new builder of 'sku_rule' objects.

func (*SkuRuleBuilder) Allowed ¶

func (b *SkuRuleBuilder) Allowed(value int) *SkuRuleBuilder

Allowed sets the value of the 'allowed' attribute to the given value.

func (*SkuRuleBuilder) Build ¶

func (b *SkuRuleBuilder) Build() (object *SkuRule, err error)

Build creates a 'sku_rule' object using the configuration stored in the builder.

func (*SkuRuleBuilder) Copy ¶

func (b *SkuRuleBuilder) Copy(object *SkuRule) *SkuRuleBuilder

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*SkuRuleBuilder) Empty ¶ added in v0.0.329

func (b *SkuRuleBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*SkuRuleBuilder) HREF ¶

func (b *SkuRuleBuilder) HREF(value string) *SkuRuleBuilder

HREF sets the link to the object.

func (*SkuRuleBuilder) ID ¶

func (b *SkuRuleBuilder) ID(value string) *SkuRuleBuilder

ID sets the identifier of the object.

func (b *SkuRuleBuilder) Link(value bool) *SkuRuleBuilder

Link sets the flag that indicates if this is a link.

func (*SkuRuleBuilder) QuotaId ¶

func (b *SkuRuleBuilder) QuotaId(value string) *SkuRuleBuilder

QuotaId sets the value of the 'quota_id' attribute to the given value.

func (*SkuRuleBuilder) Sku ¶

func (b *SkuRuleBuilder) Sku(value string) *SkuRuleBuilder

Sku sets the value of the 'sku' attribute to the given value.

type SkuRuleClient ¶

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

SkuRuleClient is the client of the 'sku_rule' resource.

Manages a specific Sku Rule.

func NewSkuRuleClient ¶

func NewSkuRuleClient(transport http.RoundTripper, path string) *SkuRuleClient

NewSkuRuleClient creates a new client for the 'sku_rule' resource using the given transport to send the requests and receive the responses.

func (*SkuRuleClient) Get ¶

func (c *SkuRuleClient) Get() *SkuRuleGetRequest

Get creates a request for the 'get' method.

Retrieves the details of the Sku Rule.

func (*SkuRuleClient) Poll ¶

func (c *SkuRuleClient) Poll() *SkuRulePollRequest

Poll creates a request to repeatedly retrieve the object till the response has one of a given set of states and satisfies a set of predicates.

type SkuRuleGetRequest ¶

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

SkuRuleGetRequest is the request for the 'get' method.

func (*SkuRuleGetRequest) Header ¶

func (r *SkuRuleGetRequest) Header(name string, value interface{}) *SkuRuleGetRequest

Header adds a request header.

func (*SkuRuleGetRequest) Impersonate ¶ added in v0.0.329

func (r *SkuRuleGetRequest) Impersonate(user string) *SkuRuleGetRequest

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*SkuRuleGetRequest) Parameter ¶

func (r *SkuRuleGetRequest) Parameter(name string, value interface{}) *SkuRuleGetRequest

Parameter adds a query parameter.

func (*SkuRuleGetRequest) Send ¶

func (r *SkuRuleGetRequest) Send() (result *SkuRuleGetResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*SkuRuleGetRequest) SendContext ¶

func (r *SkuRuleGetRequest) SendContext(ctx context.Context) (result *SkuRuleGetResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type SkuRuleGetResponse ¶

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

SkuRuleGetResponse is the response for the 'get' method.

func (*SkuRuleGetResponse) Body ¶

func (r *SkuRuleGetResponse) Body() *SkuRule

Body returns the value of the 'body' parameter.

func (*SkuRuleGetResponse) Error ¶

func (r *SkuRuleGetResponse) Error() *errors.Error

Error returns the response error.

func (*SkuRuleGetResponse) GetBody ¶

func (r *SkuRuleGetResponse) GetBody() (value *SkuRule, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*SkuRuleGetResponse) Header ¶

func (r *SkuRuleGetResponse) Header() http.Header

Header returns header of the response.

func (*SkuRuleGetResponse) Status ¶

func (r *SkuRuleGetResponse) Status() int

Status returns the response status code.

type SkuRuleList ¶

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

SkuRuleList is a list of values of the 'sku_rule' type.

func (*SkuRuleList) Each ¶

func (l *SkuRuleList) Each(f func(item *SkuRule) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*SkuRuleList) Empty ¶

func (l *SkuRuleList) Empty() bool

Empty returns true if the list is empty.

func (*SkuRuleList) Get ¶

func (l *SkuRuleList) Get(i int) *SkuRule

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*SkuRuleList) GetHREF ¶

func (l *SkuRuleList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*SkuRuleList) HREF ¶

func (l *SkuRuleList) HREF() string

HREF returns the link to the list.

func (*SkuRuleList) Kind ¶

func (l *SkuRuleList) Kind() string

Kind returns the name of the type of the object.

func (*SkuRuleList) Len ¶

func (l *SkuRuleList) Len() int

Len returns the length of the list.

func (l *SkuRuleList) Link() bool

Link returns true iif this is a link.

func (*SkuRuleList) Range ¶

func (l *SkuRuleList) Range(f func(index int, item *SkuRule) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*SkuRuleList) Slice ¶

func (l *SkuRuleList) Slice() []*SkuRule

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type SkuRuleListBuilder ¶

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

SkuRuleListBuilder contains the data and logic needed to build 'sku_rule' objects.

func NewSkuRuleList ¶

func NewSkuRuleList() *SkuRuleListBuilder

NewSkuRuleList creates a new builder of 'sku_rule' objects.

func (*SkuRuleListBuilder) Build ¶

func (b *SkuRuleListBuilder) Build() (list *SkuRuleList, err error)

Build creates a list of 'sku_rule' objects using the configuration stored in the builder.

func (*SkuRuleListBuilder) Copy ¶

Copy copies the items of the given list into this builder, discarding any previous items.

func (*SkuRuleListBuilder) Empty ¶ added in v0.0.329

func (b *SkuRuleListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*SkuRuleListBuilder) Items ¶

Items sets the items of the list.

type SkuRulePollRequest ¶

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

SkuRulePollRequest is the request for the Poll method.

func (*SkuRulePollRequest) Header ¶

func (r *SkuRulePollRequest) Header(name string, value interface{}) *SkuRulePollRequest

Header adds a request header to all the requests that will be used to retrieve the object.

func (*SkuRulePollRequest) Interval ¶

func (r *SkuRulePollRequest) Interval(value time.Duration) *SkuRulePollRequest

Interval sets the polling interval. This parameter is mandatory and must be greater than zero.

func (*SkuRulePollRequest) Parameter ¶

func (r *SkuRulePollRequest) Parameter(name string, value interface{}) *SkuRulePollRequest

Parameter adds a query parameter to all the requests that will be used to retrieve the object.

func (*SkuRulePollRequest) Predicate ¶

func (r *SkuRulePollRequest) Predicate(value func(*SkuRuleGetResponse) bool) *SkuRulePollRequest

Predicate adds a predicate that the response should satisfy be considered successful. Multiple predicates can be set calling this method multiple times. The response will be considered successful if all the predicates are satisfied.

func (*SkuRulePollRequest) StartContext ¶

func (r *SkuRulePollRequest) StartContext(ctx context.Context) (response *SkuRulePollResponse, err error)

StartContext starts the polling loop. Responses will be considered successful if the status is one of the values specified with the Status method and if all the predicates specified with the Predicate method return nil.

The context must have a timeout or deadline, otherwise this method will immediately return an error.

func (*SkuRulePollRequest) Status ¶

func (r *SkuRulePollRequest) Status(value int) *SkuRulePollRequest

Status set the expected status of the response. Multiple values can be set calling this method multiple times. The response will be considered successful if the status is any of those values.

type SkuRulePollResponse ¶

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

SkuRulePollResponse is the response for the Poll method.

func (*SkuRulePollResponse) Body ¶

func (r *SkuRulePollResponse) Body() *SkuRule

Body returns the value of the 'body' parameter.

func (*SkuRulePollResponse) Error ¶

func (r *SkuRulePollResponse) Error() *errors.Error

Error returns the response error.

func (*SkuRulePollResponse) GetBody ¶

func (r *SkuRulePollResponse) GetBody() (value *SkuRule, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*SkuRulePollResponse) Header ¶

func (r *SkuRulePollResponse) Header() http.Header

Header returns header of the response.

func (*SkuRulePollResponse) Status ¶

func (r *SkuRulePollResponse) Status() int

Status returns the response status code.

type SkuRulesClient ¶

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

SkuRulesClient is the client of the 'sku_rules' resource.

Manages the collection of SkuRules.

func NewSkuRulesClient ¶

func NewSkuRulesClient(transport http.RoundTripper, path string) *SkuRulesClient

NewSkuRulesClient creates a new client for the 'sku_rules' resource using the given transport to send the requests and receive the responses.

func (*SkuRulesClient) List ¶

List creates a request for the 'list' method.

Retrieves a list of Sku Rules.

func (*SkuRulesClient) SkuRule ¶

func (c *SkuRulesClient) SkuRule(id string) *SkuRuleClient

SkuRule returns the target 'sku_rule' resource for the given identifier.

Reference to the service that manages a specific SkuRule.

type SkuRulesListRequest ¶

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

SkuRulesListRequest is the request for the 'list' method.

func (*SkuRulesListRequest) Header ¶

func (r *SkuRulesListRequest) Header(name string, value interface{}) *SkuRulesListRequest

Header adds a request header.

func (*SkuRulesListRequest) Impersonate ¶ added in v0.0.329

func (r *SkuRulesListRequest) Impersonate(user string) *SkuRulesListRequest

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*SkuRulesListRequest) Page ¶

Page sets the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*SkuRulesListRequest) Parameter ¶

func (r *SkuRulesListRequest) Parameter(name string, value interface{}) *SkuRulesListRequest

Parameter adds a query parameter.

func (*SkuRulesListRequest) Search ¶

Search sets the value of the 'search' parameter.

Search criteria.

The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the SKU instead of the names of the columns of a table. For example, in order to retrieve SKUS large sized resources:

```sql resource_name like '%large' ```

If the parameter isn't provided, or if the value is empty, then all the items that the user has permission to see will be returned.

func (*SkuRulesListRequest) Send ¶

func (r *SkuRulesListRequest) Send() (result *SkuRulesListResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*SkuRulesListRequest) SendContext ¶

func (r *SkuRulesListRequest) SendContext(ctx context.Context) (result *SkuRulesListResponse, err error)

SendContext sends this request, waits for the response, and returns it.

func (*SkuRulesListRequest) Size ¶

Size sets the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

type SkuRulesListResponse ¶

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

SkuRulesListResponse is the response for the 'list' method.

func (*SkuRulesListResponse) Error ¶

func (r *SkuRulesListResponse) Error() *errors.Error

Error returns the response error.

func (*SkuRulesListResponse) GetItems ¶

func (r *SkuRulesListResponse) GetItems() (value *SkuRuleList, ok bool)

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

Retrieved list of Sku Rules.

func (*SkuRulesListResponse) GetPage ¶

func (r *SkuRulesListResponse) GetPage() (value int, ok bool)

GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.

Index of the requested page, where one corresponds to the first page.

func (*SkuRulesListResponse) GetSize ¶

func (r *SkuRulesListResponse) GetSize() (value int, ok bool)

GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.

Maximum number of items that will be contained in the returned page.

func (*SkuRulesListResponse) GetTotal ¶

func (r *SkuRulesListResponse) GetTotal() (value int, ok bool)

GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

func (*SkuRulesListResponse) Header ¶

func (r *SkuRulesListResponse) Header() http.Header

Header returns header of the response.

func (*SkuRulesListResponse) Items ¶

func (r *SkuRulesListResponse) Items() *SkuRuleList

Items returns the value of the 'items' parameter.

Retrieved list of Sku Rules.

func (*SkuRulesListResponse) Page ¶

func (r *SkuRulesListResponse) Page() int

Page returns the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*SkuRulesListResponse) Size ¶

func (r *SkuRulesListResponse) Size() int

Size returns the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

func (*SkuRulesListResponse) Status ¶

func (r *SkuRulesListResponse) Status() int

Status returns the response status code.

func (*SkuRulesListResponse) Total ¶

func (r *SkuRulesListResponse) Total() int

Total returns the value of the 'total' parameter.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

type Subscription ¶

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

Subscription represents the values of the 'subscription' type.

func UnmarshalSubscription ¶

func UnmarshalSubscription(source interface{}) (object *Subscription, err error)

UnmarshalSubscription reads a value of the 'subscription' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalSubscriptionList ¶

func UnmarshalSubscriptionList(source interface{}) (items []*Subscription, err error)

UnmarshalSubscriptionList reads a list of values of the 'subscription' type from the given source, which can be a slice of bytes, a string or a reader.

func (*Subscription) BillingMarketplaceAccount ¶ added in v0.0.329

func (o *Subscription) BillingMarketplaceAccount() string

BillingMarketplaceAccount returns the value of the 'billing_marketplace_account' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Subscription) Capabilities ¶ added in v0.0.329

func (o *Subscription) Capabilities() []*Capability

Capabilities returns the value of the 'capabilities' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Subscription) CloudAccountID ¶ added in v0.0.329

func (o *Subscription) CloudAccountID() string

CloudAccountID returns the value of the 'cloud_account_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Subscription) CloudProviderID ¶ added in v0.0.329

func (o *Subscription) CloudProviderID() string

CloudProviderID returns the value of the 'cloud_provider_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Subscription) ClusterBillingModel ¶ added in v0.0.329

func (o *Subscription) ClusterBillingModel() BillingModel

ClusterBillingModel returns the value of the 'cluster_billing_model' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Subscription) ClusterID ¶

func (o *Subscription) ClusterID() string

ClusterID returns the value of the 'cluster_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Subscription) ConsoleURL ¶ added in v0.0.329

func (o *Subscription) ConsoleURL() string

ConsoleURL returns the value of the 'console_URL' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Subscription) ConsumerUUID ¶

func (o *Subscription) ConsumerUUID() string

ConsumerUUID returns the value of the 'consumer_UUID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Subscription) CpuTotal ¶

func (o *Subscription) CpuTotal() int

CpuTotal returns the value of the 'cpu_total' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Subscription) CreatedAt ¶

func (o *Subscription) CreatedAt() time.Time

CreatedAt returns the value of the 'created_at' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Subscription) Creator ¶

func (o *Subscription) Creator() *Account

Creator returns the value of the 'creator' attribute, or the zero value of the type if the attribute doesn't have a value.

Link to the account that created the subscription.

func (*Subscription) DisplayName ¶

func (o *Subscription) DisplayName() string

DisplayName returns the value of the 'display_name' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Subscription) Empty ¶

func (o *Subscription) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*Subscription) ExternalClusterID ¶

func (o *Subscription) ExternalClusterID() string

ExternalClusterID returns the value of the 'external_cluster_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Subscription) GetBillingMarketplaceAccount ¶ added in v0.0.329

func (o *Subscription) GetBillingMarketplaceAccount() (value string, ok bool)

GetBillingMarketplaceAccount returns the value of the 'billing_marketplace_account' attribute and a flag indicating if the attribute has a value.

func (*Subscription) GetCapabilities ¶ added in v0.0.329

func (o *Subscription) GetCapabilities() (value []*Capability, ok bool)

GetCapabilities returns the value of the 'capabilities' attribute and a flag indicating if the attribute has a value.

func (*Subscription) GetCloudAccountID ¶ added in v0.0.329

func (o *Subscription) GetCloudAccountID() (value string, ok bool)

GetCloudAccountID returns the value of the 'cloud_account_ID' attribute and a flag indicating if the attribute has a value.

func (*Subscription) GetCloudProviderID ¶ added in v0.0.329

func (o *Subscription) GetCloudProviderID() (value string, ok bool)

GetCloudProviderID returns the value of the 'cloud_provider_ID' attribute and a flag indicating if the attribute has a value.

func (*Subscription) GetClusterBillingModel ¶ added in v0.0.329

func (o *Subscription) GetClusterBillingModel() (value BillingModel, ok bool)

GetClusterBillingModel returns the value of the 'cluster_billing_model' attribute and a flag indicating if the attribute has a value.

func (*Subscription) GetClusterID ¶

func (o *Subscription) GetClusterID() (value string, ok bool)

GetClusterID returns the value of the 'cluster_ID' attribute and a flag indicating if the attribute has a value.

func (*Subscription) GetConsoleURL ¶ added in v0.0.329

func (o *Subscription) GetConsoleURL() (value string, ok bool)

GetConsoleURL returns the value of the 'console_URL' attribute and a flag indicating if the attribute has a value.

func (*Subscription) GetConsumerUUID ¶

func (o *Subscription) GetConsumerUUID() (value string, ok bool)

GetConsumerUUID returns the value of the 'consumer_UUID' attribute and a flag indicating if the attribute has a value.

func (*Subscription) GetCpuTotal ¶

func (o *Subscription) GetCpuTotal() (value int, ok bool)

GetCpuTotal returns the value of the 'cpu_total' attribute and a flag indicating if the attribute has a value.

func (*Subscription) GetCreatedAt ¶

func (o *Subscription) GetCreatedAt() (value time.Time, ok bool)

GetCreatedAt returns the value of the 'created_at' attribute and a flag indicating if the attribute has a value.

func (*Subscription) GetCreator ¶

func (o *Subscription) GetCreator() (value *Account, ok bool)

GetCreator returns the value of the 'creator' attribute and a flag indicating if the attribute has a value.

Link to the account that created the subscription.

func (*Subscription) GetDisplayName ¶

func (o *Subscription) GetDisplayName() (value string, ok bool)

GetDisplayName returns the value of the 'display_name' attribute and a flag indicating if the attribute has a value.

func (*Subscription) GetExternalClusterID ¶

func (o *Subscription) GetExternalClusterID() (value string, ok bool)

GetExternalClusterID returns the value of the 'external_cluster_ID' attribute and a flag indicating if the attribute has a value.

func (*Subscription) GetHREF ¶

func (o *Subscription) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*Subscription) GetID ¶

func (o *Subscription) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*Subscription) GetLabels ¶

func (o *Subscription) GetLabels() (value []*Label, ok bool)

GetLabels returns the value of the 'labels' attribute and a flag indicating if the attribute has a value.

func (*Subscription) GetLastReconcileDate ¶

func (o *Subscription) GetLastReconcileDate() (value time.Time, ok bool)

GetLastReconcileDate returns the value of the 'last_reconcile_date' attribute and a flag indicating if the attribute has a value.

Last time this subscription were reconciled about cluster usage.

func (*Subscription) GetLastReleasedAt ¶ added in v0.0.329

func (o *Subscription) GetLastReleasedAt() (value time.Time, ok bool)

GetLastReleasedAt returns the value of the 'last_released_at' attribute and a flag indicating if the attribute has a value.

Last time status was set to Released for this cluster/subscription.

func (*Subscription) GetLastTelemetryDate ¶

func (o *Subscription) GetLastTelemetryDate() (value time.Time, ok bool)

GetLastTelemetryDate returns the value of the 'last_telemetry_date' attribute and a flag indicating if the attribute has a value.

Last telemetry authorization request for this cluster/subscription in Unix time

func (*Subscription) GetManaged ¶

func (o *Subscription) GetManaged() (value bool, ok bool)

GetManaged returns the value of the 'managed' attribute and a flag indicating if the attribute has a value.

func (*Subscription) GetMetrics ¶ added in v0.0.329

func (o *Subscription) GetMetrics() (value []*SubscriptionMetrics, ok bool)

GetMetrics returns the value of the 'metrics' attribute and a flag indicating if the attribute has a value.

Metrics array. One or zero elements will present.

func (*Subscription) GetNotificationContacts ¶ added in v0.0.329

func (o *Subscription) GetNotificationContacts() (value []*Account, ok bool)

GetNotificationContacts returns the value of the 'notification_contacts' attribute and a flag indicating if the attribute has a value.

func (*Subscription) GetOrganizationID ¶

func (o *Subscription) GetOrganizationID() (value string, ok bool)

GetOrganizationID returns the value of the 'organization_ID' attribute and a flag indicating if the attribute has a value.

func (*Subscription) GetPlan ¶

func (o *Subscription) GetPlan() (value *Plan, ok bool)

GetPlan returns the value of the 'plan' attribute and a flag indicating if the attribute has a value.

func (*Subscription) GetProductBundle ¶

func (o *Subscription) GetProductBundle() (value string, ok bool)

GetProductBundle returns the value of the 'product_bundle' attribute and a flag indicating if the attribute has a value.

func (*Subscription) GetProvenance ¶ added in v0.0.329

func (o *Subscription) GetProvenance() (value string, ok bool)

GetProvenance returns the value of the 'provenance' attribute and a flag indicating if the attribute has a value.

The origin of cluster registration (values are defined in AMS at pkg/api/subscription_types.go).

func (*Subscription) GetRegionID ¶ added in v0.0.329

func (o *Subscription) GetRegionID() (value string, ok bool)

GetRegionID returns the value of the 'region_ID' attribute and a flag indicating if the attribute has a value.

func (*Subscription) GetReleased ¶ added in v0.0.329

func (o *Subscription) GetReleased() (value bool, ok bool)

GetReleased returns the value of the 'released' attribute and a flag indicating if the attribute has a value.

Flag used to denote whether or not the owner of the cluster has released the ownership and ready to be transferred to a different user.

func (*Subscription) GetServiceLevel ¶

func (o *Subscription) GetServiceLevel() (value string, ok bool)

GetServiceLevel returns the value of the 'service_level' attribute and a flag indicating if the attribute has a value.

func (*Subscription) GetSocketTotal ¶

func (o *Subscription) GetSocketTotal() (value int, ok bool)

GetSocketTotal returns the value of the 'socket_total' attribute and a flag indicating if the attribute has a value.

func (*Subscription) GetStatus ¶

func (o *Subscription) GetStatus() (value string, ok bool)

GetStatus returns the value of the 'status' attribute and a flag indicating if the attribute has a value.

func (*Subscription) GetSupportLevel ¶

func (o *Subscription) GetSupportLevel() (value string, ok bool)

GetSupportLevel returns the value of the 'support_level' attribute and a flag indicating if the attribute has a value.

func (*Subscription) GetSystemUnits ¶

func (o *Subscription) GetSystemUnits() (value string, ok bool)

GetSystemUnits returns the value of the 'system_units' attribute and a flag indicating if the attribute has a value.

func (*Subscription) GetTrialEndDate ¶ added in v0.0.329

func (o *Subscription) GetTrialEndDate() (value time.Time, ok bool)

GetTrialEndDate returns the value of the 'trial_end_date' attribute and a flag indicating if the attribute has a value.

If the subscription is a trial, date the trial ends.

func (*Subscription) GetUpdatedAt ¶

func (o *Subscription) GetUpdatedAt() (value time.Time, ok bool)

GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.

func (*Subscription) GetUsage ¶

func (o *Subscription) GetUsage() (value string, ok bool)

GetUsage returns the value of the 'usage' attribute and a flag indicating if the attribute has a value.

func (*Subscription) HREF ¶

func (o *Subscription) HREF() string

HREF returns the link to the object.

func (*Subscription) ID ¶

func (o *Subscription) ID() string

ID returns the identifier of the object.

func (*Subscription) Kind ¶

func (o *Subscription) Kind() string

Kind returns the name of the type of the object.

func (*Subscription) Labels ¶

func (o *Subscription) Labels() []*Label

Labels returns the value of the 'labels' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Subscription) LastReconcileDate ¶

func (o *Subscription) LastReconcileDate() time.Time

LastReconcileDate returns the value of the 'last_reconcile_date' attribute, or the zero value of the type if the attribute doesn't have a value.

Last time this subscription were reconciled about cluster usage.

func (*Subscription) LastReleasedAt ¶ added in v0.0.329

func (o *Subscription) LastReleasedAt() time.Time

LastReleasedAt returns the value of the 'last_released_at' attribute, or the zero value of the type if the attribute doesn't have a value.

Last time status was set to Released for this cluster/subscription.

func (*Subscription) LastTelemetryDate ¶

func (o *Subscription) LastTelemetryDate() time.Time

LastTelemetryDate returns the value of the 'last_telemetry_date' attribute, or the zero value of the type if the attribute doesn't have a value.

Last telemetry authorization request for this cluster/subscription in Unix time

func (o *Subscription) Link() bool

Link returns true iif this is a link.

func (*Subscription) Managed ¶

func (o *Subscription) Managed() bool

Managed returns the value of the 'managed' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Subscription) Metrics ¶ added in v0.0.329

func (o *Subscription) Metrics() []*SubscriptionMetrics

Metrics returns the value of the 'metrics' attribute, or the zero value of the type if the attribute doesn't have a value.

Metrics array. One or zero elements will present.

func (*Subscription) NotificationContacts ¶ added in v0.0.329

func (o *Subscription) NotificationContacts() []*Account

NotificationContacts returns the value of the 'notification_contacts' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Subscription) OrganizationID ¶

func (o *Subscription) OrganizationID() string

OrganizationID returns the value of the 'organization_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Subscription) Plan ¶

func (o *Subscription) Plan() *Plan

Plan returns the value of the 'plan' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Subscription) ProductBundle ¶

func (o *Subscription) ProductBundle() string

ProductBundle returns the value of the 'product_bundle' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Subscription) Provenance ¶ added in v0.0.329

func (o *Subscription) Provenance() string

Provenance returns the value of the 'provenance' attribute, or the zero value of the type if the attribute doesn't have a value.

The origin of cluster registration (values are defined in AMS at pkg/api/subscription_types.go).

func (*Subscription) RegionID ¶ added in v0.0.329

func (o *Subscription) RegionID() string

RegionID returns the value of the 'region_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Subscription) Released ¶ added in v0.0.329

func (o *Subscription) Released() bool

Released returns the value of the 'released' attribute, or the zero value of the type if the attribute doesn't have a value.

Flag used to denote whether or not the owner of the cluster has released the ownership and ready to be transferred to a different user.

func (*Subscription) ServiceLevel ¶

func (o *Subscription) ServiceLevel() string

ServiceLevel returns the value of the 'service_level' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Subscription) SocketTotal ¶

func (o *Subscription) SocketTotal() int

SocketTotal returns the value of the 'socket_total' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Subscription) Status ¶

func (o *Subscription) Status() string

Status returns the value of the 'status' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Subscription) SupportLevel ¶

func (o *Subscription) SupportLevel() string

SupportLevel returns the value of the 'support_level' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Subscription) SystemUnits ¶

func (o *Subscription) SystemUnits() string

SystemUnits returns the value of the 'system_units' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Subscription) TrialEndDate ¶ added in v0.0.329

func (o *Subscription) TrialEndDate() time.Time

TrialEndDate returns the value of the 'trial_end_date' attribute, or the zero value of the type if the attribute doesn't have a value.

If the subscription is a trial, date the trial ends.

func (*Subscription) UpdatedAt ¶

func (o *Subscription) UpdatedAt() time.Time

UpdatedAt returns the value of the 'updated_at' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Subscription) Usage ¶

func (o *Subscription) Usage() string

Usage returns the value of the 'usage' attribute, or the zero value of the type if the attribute doesn't have a value.

type SubscriptionBuilder ¶

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

SubscriptionBuilder contains the data and logic needed to build 'subscription' objects.

func NewSubscription ¶

func NewSubscription() *SubscriptionBuilder

NewSubscription creates a new builder of 'subscription' objects.

func (*SubscriptionBuilder) BillingMarketplaceAccount ¶ added in v0.0.329

func (b *SubscriptionBuilder) BillingMarketplaceAccount(value string) *SubscriptionBuilder

BillingMarketplaceAccount sets the value of the 'billing_marketplace_account' attribute to the given value.

func (*SubscriptionBuilder) Build ¶

func (b *SubscriptionBuilder) Build() (object *Subscription, err error)

Build creates a 'subscription' object using the configuration stored in the builder.

func (*SubscriptionBuilder) Capabilities ¶ added in v0.0.329

func (b *SubscriptionBuilder) Capabilities(values ...*CapabilityBuilder) *SubscriptionBuilder

Capabilities sets the value of the 'capabilities' attribute to the given values.

func (*SubscriptionBuilder) CloudAccountID ¶ added in v0.0.329

func (b *SubscriptionBuilder) CloudAccountID(value string) *SubscriptionBuilder

CloudAccountID sets the value of the 'cloud_account_ID' attribute to the given value.

func (*SubscriptionBuilder) CloudProviderID ¶ added in v0.0.329

func (b *SubscriptionBuilder) CloudProviderID(value string) *SubscriptionBuilder

CloudProviderID sets the value of the 'cloud_provider_ID' attribute to the given value.

func (*SubscriptionBuilder) ClusterBillingModel ¶ added in v0.0.329

func (b *SubscriptionBuilder) ClusterBillingModel(value BillingModel) *SubscriptionBuilder

ClusterBillingModel sets the value of the 'cluster_billing_model' attribute to the given value.

Billing model for subscripiton and reserved_resource resources.

func (*SubscriptionBuilder) ClusterID ¶

func (b *SubscriptionBuilder) ClusterID(value string) *SubscriptionBuilder

ClusterID sets the value of the 'cluster_ID' attribute to the given value.

func (*SubscriptionBuilder) ConsoleURL ¶ added in v0.0.329

func (b *SubscriptionBuilder) ConsoleURL(value string) *SubscriptionBuilder

ConsoleURL sets the value of the 'console_URL' attribute to the given value.

func (*SubscriptionBuilder) ConsumerUUID ¶

func (b *SubscriptionBuilder) ConsumerUUID(value string) *SubscriptionBuilder

ConsumerUUID sets the value of the 'consumer_UUID' attribute to the given value.

func (*SubscriptionBuilder) Copy ¶

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*SubscriptionBuilder) CpuTotal ¶

func (b *SubscriptionBuilder) CpuTotal(value int) *SubscriptionBuilder

CpuTotal sets the value of the 'cpu_total' attribute to the given value.

func (*SubscriptionBuilder) CreatedAt ¶

func (b *SubscriptionBuilder) CreatedAt(value time.Time) *SubscriptionBuilder

CreatedAt sets the value of the 'created_at' attribute to the given value.

func (*SubscriptionBuilder) Creator ¶

Creator sets the value of the 'creator' attribute to the given value.

func (*SubscriptionBuilder) DisplayName ¶

func (b *SubscriptionBuilder) DisplayName(value string) *SubscriptionBuilder

DisplayName sets the value of the 'display_name' attribute to the given value.

func (*SubscriptionBuilder) Empty ¶ added in v0.0.329

func (b *SubscriptionBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*SubscriptionBuilder) ExternalClusterID ¶

func (b *SubscriptionBuilder) ExternalClusterID(value string) *SubscriptionBuilder

ExternalClusterID sets the value of the 'external_cluster_ID' attribute to the given value.

func (*SubscriptionBuilder) HREF ¶

HREF sets the link to the object.

func (*SubscriptionBuilder) ID ¶

ID sets the identifier of the object.

func (*SubscriptionBuilder) Labels ¶

func (b *SubscriptionBuilder) Labels(values ...*LabelBuilder) *SubscriptionBuilder

Labels sets the value of the 'labels' attribute to the given values.

func (*SubscriptionBuilder) LastReconcileDate ¶

func (b *SubscriptionBuilder) LastReconcileDate(value time.Time) *SubscriptionBuilder

LastReconcileDate sets the value of the 'last_reconcile_date' attribute to the given value.

func (*SubscriptionBuilder) LastReleasedAt ¶ added in v0.0.329

func (b *SubscriptionBuilder) LastReleasedAt(value time.Time) *SubscriptionBuilder

LastReleasedAt sets the value of the 'last_released_at' attribute to the given value.

func (*SubscriptionBuilder) LastTelemetryDate ¶

func (b *SubscriptionBuilder) LastTelemetryDate(value time.Time) *SubscriptionBuilder

LastTelemetryDate sets the value of the 'last_telemetry_date' attribute to the given value.

Link sets the flag that indicates if this is a link.

func (*SubscriptionBuilder) Managed ¶

func (b *SubscriptionBuilder) Managed(value bool) *SubscriptionBuilder

Managed sets the value of the 'managed' attribute to the given value.

func (*SubscriptionBuilder) Metrics ¶ added in v0.0.329

Metrics sets the value of the 'metrics' attribute to the given values.

func (*SubscriptionBuilder) NotificationContacts ¶ added in v0.0.329

func (b *SubscriptionBuilder) NotificationContacts(values ...*AccountBuilder) *SubscriptionBuilder

NotificationContacts sets the value of the 'notification_contacts' attribute to the given values.

func (*SubscriptionBuilder) OrganizationID ¶

func (b *SubscriptionBuilder) OrganizationID(value string) *SubscriptionBuilder

OrganizationID sets the value of the 'organization_ID' attribute to the given value.

func (*SubscriptionBuilder) Plan ¶

Plan sets the value of the 'plan' attribute to the given value.

func (*SubscriptionBuilder) ProductBundle ¶

func (b *SubscriptionBuilder) ProductBundle(value string) *SubscriptionBuilder

ProductBundle sets the value of the 'product_bundle' attribute to the given value.

func (*SubscriptionBuilder) Provenance ¶ added in v0.0.329

func (b *SubscriptionBuilder) Provenance(value string) *SubscriptionBuilder

Provenance sets the value of the 'provenance' attribute to the given value.

func (*SubscriptionBuilder) RegionID ¶ added in v0.0.329

func (b *SubscriptionBuilder) RegionID(value string) *SubscriptionBuilder

RegionID sets the value of the 'region_ID' attribute to the given value.

func (*SubscriptionBuilder) Released ¶ added in v0.0.329

func (b *SubscriptionBuilder) Released(value bool) *SubscriptionBuilder

Released sets the value of the 'released' attribute to the given value.

func (*SubscriptionBuilder) ServiceLevel ¶

func (b *SubscriptionBuilder) ServiceLevel(value string) *SubscriptionBuilder

ServiceLevel sets the value of the 'service_level' attribute to the given value.

func (*SubscriptionBuilder) SocketTotal ¶

func (b *SubscriptionBuilder) SocketTotal(value int) *SubscriptionBuilder

SocketTotal sets the value of the 'socket_total' attribute to the given value.

func (*SubscriptionBuilder) Status ¶

Status sets the value of the 'status' attribute to the given value.

func (*SubscriptionBuilder) SupportLevel ¶

func (b *SubscriptionBuilder) SupportLevel(value string) *SubscriptionBuilder

SupportLevel sets the value of the 'support_level' attribute to the given value.

func (*SubscriptionBuilder) SystemUnits ¶

func (b *SubscriptionBuilder) SystemUnits(value string) *SubscriptionBuilder

SystemUnits sets the value of the 'system_units' attribute to the given value.

func (*SubscriptionBuilder) TrialEndDate ¶ added in v0.0.329

func (b *SubscriptionBuilder) TrialEndDate(value time.Time) *SubscriptionBuilder

TrialEndDate sets the value of the 'trial_end_date' attribute to the given value.

func (*SubscriptionBuilder) UpdatedAt ¶

func (b *SubscriptionBuilder) UpdatedAt(value time.Time) *SubscriptionBuilder

UpdatedAt sets the value of the 'updated_at' attribute to the given value.

func (*SubscriptionBuilder) Usage ¶

Usage sets the value of the 'usage' attribute to the given value.

type SubscriptionClient ¶

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

SubscriptionClient is the client of the 'subscription' resource.

Manages a specific subscription.

func NewSubscriptionClient ¶

func NewSubscriptionClient(transport http.RoundTripper, path string) *SubscriptionClient

NewSubscriptionClient creates a new client for the 'subscription' resource using the given transport to send the requests and receive the responses.

func (*SubscriptionClient) Delete ¶

Delete creates a request for the 'delete' method.

Deletes the subscription by ID.

func (*SubscriptionClient) Get ¶

Get creates a request for the 'get' method.

Retrieves the details of the subscription by ID.

func (*SubscriptionClient) Labels ¶

Labels returns the target 'generic_labels' resource.

Reference to the list of labels of a specific subscription.

func (*SubscriptionClient) Poll ¶

Poll creates a request to repeatedly retrieve the object till the response has one of a given set of states and satisfies a set of predicates.

func (*SubscriptionClient) ReservedResources ¶

ReservedResources returns the target 'subscription_reserved_resources' resource.

Reference to the resource that manages the collection of resources reserved by the subscription.

func (*SubscriptionClient) RoleBindings ¶ added in v0.0.329

func (c *SubscriptionClient) RoleBindings() *RoleBindingsClient

RoleBindings returns the target 'role_bindings' resource.

Reference to the role bindings

func (*SubscriptionClient) Update ¶

Update creates a request for the 'update' method.

Update a subscription

type SubscriptionDeleteRequest ¶

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

SubscriptionDeleteRequest is the request for the 'delete' method.

func (*SubscriptionDeleteRequest) Header ¶

func (r *SubscriptionDeleteRequest) Header(name string, value interface{}) *SubscriptionDeleteRequest

Header adds a request header.

func (*SubscriptionDeleteRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*SubscriptionDeleteRequest) Parameter ¶

func (r *SubscriptionDeleteRequest) Parameter(name string, value interface{}) *SubscriptionDeleteRequest

Parameter adds a query parameter.

func (*SubscriptionDeleteRequest) Send ¶

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*SubscriptionDeleteRequest) SendContext ¶

func (r *SubscriptionDeleteRequest) SendContext(ctx context.Context) (result *SubscriptionDeleteResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type SubscriptionDeleteResponse ¶

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

SubscriptionDeleteResponse is the response for the 'delete' method.

func (*SubscriptionDeleteResponse) Error ¶

Error returns the response error.

func (*SubscriptionDeleteResponse) Header ¶

Header returns header of the response.

func (*SubscriptionDeleteResponse) Status ¶

func (r *SubscriptionDeleteResponse) Status() int

Status returns the response status code.

type SubscriptionGetRequest ¶

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

SubscriptionGetRequest is the request for the 'get' method.

func (*SubscriptionGetRequest) Header ¶

func (r *SubscriptionGetRequest) Header(name string, value interface{}) *SubscriptionGetRequest

Header adds a request header.

func (*SubscriptionGetRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*SubscriptionGetRequest) Parameter ¶

func (r *SubscriptionGetRequest) Parameter(name string, value interface{}) *SubscriptionGetRequest

Parameter adds a query parameter.

func (*SubscriptionGetRequest) Send ¶

func (r *SubscriptionGetRequest) Send() (result *SubscriptionGetResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*SubscriptionGetRequest) SendContext ¶

func (r *SubscriptionGetRequest) SendContext(ctx context.Context) (result *SubscriptionGetResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type SubscriptionGetResponse ¶

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

SubscriptionGetResponse is the response for the 'get' method.

func (*SubscriptionGetResponse) Body ¶

Body returns the value of the 'body' parameter.

func (*SubscriptionGetResponse) Error ¶

func (r *SubscriptionGetResponse) Error() *errors.Error

Error returns the response error.

func (*SubscriptionGetResponse) GetBody ¶

func (r *SubscriptionGetResponse) GetBody() (value *Subscription, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*SubscriptionGetResponse) Header ¶

func (r *SubscriptionGetResponse) Header() http.Header

Header returns header of the response.

func (*SubscriptionGetResponse) Status ¶

func (r *SubscriptionGetResponse) Status() int

Status returns the response status code.

type SubscriptionList ¶

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

SubscriptionList is a list of values of the 'subscription' type.

func (*SubscriptionList) Each ¶

func (l *SubscriptionList) Each(f func(item *Subscription) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*SubscriptionList) Empty ¶

func (l *SubscriptionList) Empty() bool

Empty returns true if the list is empty.

func (*SubscriptionList) Get ¶

func (l *SubscriptionList) Get(i int) *Subscription

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*SubscriptionList) GetHREF ¶

func (l *SubscriptionList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*SubscriptionList) HREF ¶

func (l *SubscriptionList) HREF() string

HREF returns the link to the list.

func (*SubscriptionList) Kind ¶

func (l *SubscriptionList) Kind() string

Kind returns the name of the type of the object.

func (*SubscriptionList) Len ¶

func (l *SubscriptionList) Len() int

Len returns the length of the list.

func (l *SubscriptionList) Link() bool

Link returns true iif this is a link.

func (*SubscriptionList) Range ¶

func (l *SubscriptionList) Range(f func(index int, item *Subscription) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*SubscriptionList) Slice ¶

func (l *SubscriptionList) Slice() []*Subscription

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type SubscriptionListBuilder ¶

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

SubscriptionListBuilder contains the data and logic needed to build 'subscription' objects.

func NewSubscriptionList ¶

func NewSubscriptionList() *SubscriptionListBuilder

NewSubscriptionList creates a new builder of 'subscription' objects.

func (*SubscriptionListBuilder) Build ¶

func (b *SubscriptionListBuilder) Build() (list *SubscriptionList, err error)

Build creates a list of 'subscription' objects using the configuration stored in the builder.

func (*SubscriptionListBuilder) Copy ¶

Copy copies the items of the given list into this builder, discarding any previous items.

func (*SubscriptionListBuilder) Empty ¶ added in v0.0.329

func (b *SubscriptionListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*SubscriptionListBuilder) Items ¶

Items sets the items of the list.

type SubscriptionMetrics ¶ added in v0.0.329

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

SubscriptionMetrics represents the values of the 'subscription_metrics' type.

Each field is a metric fetched for a specific Subscription's cluster.

func UnmarshalSubscriptionMetrics ¶ added in v0.0.329

func UnmarshalSubscriptionMetrics(source interface{}) (object *SubscriptionMetrics, err error)

UnmarshalSubscriptionMetrics reads a value of the 'subscription_metrics' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalSubscriptionMetricsList ¶ added in v0.0.329

func UnmarshalSubscriptionMetricsList(source interface{}) (items []*SubscriptionMetrics, err error)

UnmarshalSubscriptionMetricsList reads a list of values of the 'subscription_metrics' type from the given source, which can be a slice of bytes, a string or a reader.

func (*SubscriptionMetrics) CloudProvider ¶ added in v0.0.329

func (o *SubscriptionMetrics) CloudProvider() string

CloudProvider returns the value of the 'cloud_provider' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*SubscriptionMetrics) ComputeNodesCpu ¶ added in v0.0.329

func (o *SubscriptionMetrics) ComputeNodesCpu() *ClusterResource

ComputeNodesCpu returns the value of the 'compute_nodes_cpu' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*SubscriptionMetrics) ComputeNodesMemory ¶ added in v0.0.329

func (o *SubscriptionMetrics) ComputeNodesMemory() *ClusterResource

ComputeNodesMemory returns the value of the 'compute_nodes_memory' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*SubscriptionMetrics) ComputeNodesSockets ¶ added in v0.0.329

func (o *SubscriptionMetrics) ComputeNodesSockets() *ClusterResource

ComputeNodesSockets returns the value of the 'compute_nodes_sockets' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*SubscriptionMetrics) ConsoleUrl ¶ added in v0.0.329

func (o *SubscriptionMetrics) ConsoleUrl() string

ConsoleUrl returns the value of the 'console_url' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*SubscriptionMetrics) Cpu ¶ added in v0.0.329

Cpu returns the value of the 'cpu' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*SubscriptionMetrics) CriticalAlertsFiring ¶ added in v0.0.329

func (o *SubscriptionMetrics) CriticalAlertsFiring() float64

CriticalAlertsFiring returns the value of the 'critical_alerts_firing' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*SubscriptionMetrics) Empty ¶ added in v0.0.329

func (o *SubscriptionMetrics) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*SubscriptionMetrics) GetCloudProvider ¶ added in v0.0.329

func (o *SubscriptionMetrics) GetCloudProvider() (value string, ok bool)

GetCloudProvider returns the value of the 'cloud_provider' attribute and a flag indicating if the attribute has a value.

func (*SubscriptionMetrics) GetComputeNodesCpu ¶ added in v0.0.329

func (o *SubscriptionMetrics) GetComputeNodesCpu() (value *ClusterResource, ok bool)

GetComputeNodesCpu returns the value of the 'compute_nodes_cpu' attribute and a flag indicating if the attribute has a value.

func (*SubscriptionMetrics) GetComputeNodesMemory ¶ added in v0.0.329

func (o *SubscriptionMetrics) GetComputeNodesMemory() (value *ClusterResource, ok bool)

GetComputeNodesMemory returns the value of the 'compute_nodes_memory' attribute and a flag indicating if the attribute has a value.

func (*SubscriptionMetrics) GetComputeNodesSockets ¶ added in v0.0.329

func (o *SubscriptionMetrics) GetComputeNodesSockets() (value *ClusterResource, ok bool)

GetComputeNodesSockets returns the value of the 'compute_nodes_sockets' attribute and a flag indicating if the attribute has a value.

func (*SubscriptionMetrics) GetConsoleUrl ¶ added in v0.0.329

func (o *SubscriptionMetrics) GetConsoleUrl() (value string, ok bool)

GetConsoleUrl returns the value of the 'console_url' attribute and a flag indicating if the attribute has a value.

func (*SubscriptionMetrics) GetCpu ¶ added in v0.0.329

func (o *SubscriptionMetrics) GetCpu() (value *ClusterResource, ok bool)

GetCpu returns the value of the 'cpu' attribute and a flag indicating if the attribute has a value.

func (*SubscriptionMetrics) GetCriticalAlertsFiring ¶ added in v0.0.329

func (o *SubscriptionMetrics) GetCriticalAlertsFiring() (value float64, ok bool)

GetCriticalAlertsFiring returns the value of the 'critical_alerts_firing' attribute and a flag indicating if the attribute has a value.

func (*SubscriptionMetrics) GetHealthState ¶ added in v0.0.329

func (o *SubscriptionMetrics) GetHealthState() (value string, ok bool)

GetHealthState returns the value of the 'health_state' attribute and a flag indicating if the attribute has a value.

func (*SubscriptionMetrics) GetMemory ¶ added in v0.0.329

func (o *SubscriptionMetrics) GetMemory() (value *ClusterResource, ok bool)

GetMemory returns the value of the 'memory' attribute and a flag indicating if the attribute has a value.

func (*SubscriptionMetrics) GetNodes ¶ added in v0.0.329

func (o *SubscriptionMetrics) GetNodes() (value *ClusterMetricsNodes, ok bool)

GetNodes returns the value of the 'nodes' attribute and a flag indicating if the attribute has a value.

func (*SubscriptionMetrics) GetOpenshiftVersion ¶ added in v0.0.329

func (o *SubscriptionMetrics) GetOpenshiftVersion() (value string, ok bool)

GetOpenshiftVersion returns the value of the 'openshift_version' attribute and a flag indicating if the attribute has a value.

func (*SubscriptionMetrics) GetOperatingSystem ¶ added in v0.0.329

func (o *SubscriptionMetrics) GetOperatingSystem() (value string, ok bool)

GetOperatingSystem returns the value of the 'operating_system' attribute and a flag indicating if the attribute has a value.

func (*SubscriptionMetrics) GetOperatorsConditionFailing ¶ added in v0.0.329

func (o *SubscriptionMetrics) GetOperatorsConditionFailing() (value float64, ok bool)

GetOperatorsConditionFailing returns the value of the 'operators_condition_failing' attribute and a flag indicating if the attribute has a value.

func (*SubscriptionMetrics) GetRegion ¶ added in v0.0.329

func (o *SubscriptionMetrics) GetRegion() (value string, ok bool)

GetRegion returns the value of the 'region' attribute and a flag indicating if the attribute has a value.

func (*SubscriptionMetrics) GetSockets ¶ added in v0.0.329

func (o *SubscriptionMetrics) GetSockets() (value *ClusterResource, ok bool)

GetSockets returns the value of the 'sockets' attribute and a flag indicating if the attribute has a value.

func (*SubscriptionMetrics) GetState ¶ added in v0.0.329

func (o *SubscriptionMetrics) GetState() (value string, ok bool)

GetState returns the value of the 'state' attribute and a flag indicating if the attribute has a value.

func (*SubscriptionMetrics) GetStateDescription ¶ added in v0.0.329

func (o *SubscriptionMetrics) GetStateDescription() (value string, ok bool)

GetStateDescription returns the value of the 'state_description' attribute and a flag indicating if the attribute has a value.

func (*SubscriptionMetrics) GetStorage ¶ added in v0.0.329

func (o *SubscriptionMetrics) GetStorage() (value *ClusterResource, ok bool)

GetStorage returns the value of the 'storage' attribute and a flag indicating if the attribute has a value.

func (*SubscriptionMetrics) GetSubscriptionCpuTotal ¶ added in v0.0.329

func (o *SubscriptionMetrics) GetSubscriptionCpuTotal() (value float64, ok bool)

GetSubscriptionCpuTotal returns the value of the 'subscription_cpu_total' attribute and a flag indicating if the attribute has a value.

func (*SubscriptionMetrics) GetSubscriptionObligationExists ¶ added in v0.0.329

func (o *SubscriptionMetrics) GetSubscriptionObligationExists() (value float64, ok bool)

GetSubscriptionObligationExists returns the value of the 'subscription_obligation_exists' attribute and a flag indicating if the attribute has a value.

func (*SubscriptionMetrics) GetSubscriptionSocketTotal ¶ added in v0.0.329

func (o *SubscriptionMetrics) GetSubscriptionSocketTotal() (value float64, ok bool)

GetSubscriptionSocketTotal returns the value of the 'subscription_socket_total' attribute and a flag indicating if the attribute has a value.

func (*SubscriptionMetrics) GetUpgrade ¶ added in v0.0.329

func (o *SubscriptionMetrics) GetUpgrade() (value *ClusterUpgrade, ok bool)

GetUpgrade returns the value of the 'upgrade' attribute and a flag indicating if the attribute has a value.

func (*SubscriptionMetrics) HealthState ¶ added in v0.0.329

func (o *SubscriptionMetrics) HealthState() string

HealthState returns the value of the 'health_state' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*SubscriptionMetrics) Memory ¶ added in v0.0.329

func (o *SubscriptionMetrics) Memory() *ClusterResource

Memory returns the value of the 'memory' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*SubscriptionMetrics) Nodes ¶ added in v0.0.329

Nodes returns the value of the 'nodes' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*SubscriptionMetrics) OpenshiftVersion ¶ added in v0.0.329

func (o *SubscriptionMetrics) OpenshiftVersion() string

OpenshiftVersion returns the value of the 'openshift_version' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*SubscriptionMetrics) OperatingSystem ¶ added in v0.0.329

func (o *SubscriptionMetrics) OperatingSystem() string

OperatingSystem returns the value of the 'operating_system' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*SubscriptionMetrics) OperatorsConditionFailing ¶ added in v0.0.329

func (o *SubscriptionMetrics) OperatorsConditionFailing() float64

OperatorsConditionFailing returns the value of the 'operators_condition_failing' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*SubscriptionMetrics) Region ¶ added in v0.0.329

func (o *SubscriptionMetrics) Region() string

Region returns the value of the 'region' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*SubscriptionMetrics) Sockets ¶ added in v0.0.329

func (o *SubscriptionMetrics) Sockets() *ClusterResource

Sockets returns the value of the 'sockets' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*SubscriptionMetrics) State ¶ added in v0.0.329

func (o *SubscriptionMetrics) State() string

State returns the value of the 'state' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*SubscriptionMetrics) StateDescription ¶ added in v0.0.329

func (o *SubscriptionMetrics) StateDescription() string

StateDescription returns the value of the 'state_description' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*SubscriptionMetrics) Storage ¶ added in v0.0.329

func (o *SubscriptionMetrics) Storage() *ClusterResource

Storage returns the value of the 'storage' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*SubscriptionMetrics) SubscriptionCpuTotal ¶ added in v0.0.329

func (o *SubscriptionMetrics) SubscriptionCpuTotal() float64

SubscriptionCpuTotal returns the value of the 'subscription_cpu_total' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*SubscriptionMetrics) SubscriptionObligationExists ¶ added in v0.0.329

func (o *SubscriptionMetrics) SubscriptionObligationExists() float64

SubscriptionObligationExists returns the value of the 'subscription_obligation_exists' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*SubscriptionMetrics) SubscriptionSocketTotal ¶ added in v0.0.329

func (o *SubscriptionMetrics) SubscriptionSocketTotal() float64

SubscriptionSocketTotal returns the value of the 'subscription_socket_total' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*SubscriptionMetrics) Upgrade ¶ added in v0.0.329

func (o *SubscriptionMetrics) Upgrade() *ClusterUpgrade

Upgrade returns the value of the 'upgrade' attribute, or the zero value of the type if the attribute doesn't have a value.

type SubscriptionMetricsBuilder ¶ added in v0.0.329

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

SubscriptionMetricsBuilder contains the data and logic needed to build 'subscription_metrics' objects.

Each field is a metric fetched for a specific Subscription's cluster.

func NewSubscriptionMetrics ¶ added in v0.0.329

func NewSubscriptionMetrics() *SubscriptionMetricsBuilder

NewSubscriptionMetrics creates a new builder of 'subscription_metrics' objects.

func (*SubscriptionMetricsBuilder) Build ¶ added in v0.0.329

func (b *SubscriptionMetricsBuilder) Build() (object *SubscriptionMetrics, err error)

Build creates a 'subscription_metrics' object using the configuration stored in the builder.

func (*SubscriptionMetricsBuilder) CloudProvider ¶ added in v0.0.329

CloudProvider sets the value of the 'cloud_provider' attribute to the given value.

func (*SubscriptionMetricsBuilder) ComputeNodesCpu ¶ added in v0.0.329

ComputeNodesCpu sets the value of the 'compute_nodes_cpu' attribute to the given value.

func (*SubscriptionMetricsBuilder) ComputeNodesMemory ¶ added in v0.0.329

ComputeNodesMemory sets the value of the 'compute_nodes_memory' attribute to the given value.

func (*SubscriptionMetricsBuilder) ComputeNodesSockets ¶ added in v0.0.329

ComputeNodesSockets sets the value of the 'compute_nodes_sockets' attribute to the given value.

func (*SubscriptionMetricsBuilder) ConsoleUrl ¶ added in v0.0.329

ConsoleUrl sets the value of the 'console_url' attribute to the given value.

func (*SubscriptionMetricsBuilder) Copy ¶ added in v0.0.329

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*SubscriptionMetricsBuilder) Cpu ¶ added in v0.0.329

Cpu sets the value of the 'cpu' attribute to the given value.

func (*SubscriptionMetricsBuilder) CriticalAlertsFiring ¶ added in v0.0.329

func (b *SubscriptionMetricsBuilder) CriticalAlertsFiring(value float64) *SubscriptionMetricsBuilder

CriticalAlertsFiring sets the value of the 'critical_alerts_firing' attribute to the given value.

func (*SubscriptionMetricsBuilder) Empty ¶ added in v0.0.329

func (b *SubscriptionMetricsBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*SubscriptionMetricsBuilder) HealthState ¶ added in v0.0.329

HealthState sets the value of the 'health_state' attribute to the given value.

func (*SubscriptionMetricsBuilder) Memory ¶ added in v0.0.329

Memory sets the value of the 'memory' attribute to the given value.

func (*SubscriptionMetricsBuilder) Nodes ¶ added in v0.0.329

Nodes sets the value of the 'nodes' attribute to the given value.

func (*SubscriptionMetricsBuilder) OpenshiftVersion ¶ added in v0.0.329

func (b *SubscriptionMetricsBuilder) OpenshiftVersion(value string) *SubscriptionMetricsBuilder

OpenshiftVersion sets the value of the 'openshift_version' attribute to the given value.

func (*SubscriptionMetricsBuilder) OperatingSystem ¶ added in v0.0.329

OperatingSystem sets the value of the 'operating_system' attribute to the given value.

func (*SubscriptionMetricsBuilder) OperatorsConditionFailing ¶ added in v0.0.329

func (b *SubscriptionMetricsBuilder) OperatorsConditionFailing(value float64) *SubscriptionMetricsBuilder

OperatorsConditionFailing sets the value of the 'operators_condition_failing' attribute to the given value.

func (*SubscriptionMetricsBuilder) Region ¶ added in v0.0.329

Region sets the value of the 'region' attribute to the given value.

func (*SubscriptionMetricsBuilder) Sockets ¶ added in v0.0.329

Sockets sets the value of the 'sockets' attribute to the given value.

func (*SubscriptionMetricsBuilder) State ¶ added in v0.0.329

State sets the value of the 'state' attribute to the given value.

func (*SubscriptionMetricsBuilder) StateDescription ¶ added in v0.0.329

func (b *SubscriptionMetricsBuilder) StateDescription(value string) *SubscriptionMetricsBuilder

StateDescription sets the value of the 'state_description' attribute to the given value.

func (*SubscriptionMetricsBuilder) Storage ¶ added in v0.0.329

Storage sets the value of the 'storage' attribute to the given value.

func (*SubscriptionMetricsBuilder) SubscriptionCpuTotal ¶ added in v0.0.329

func (b *SubscriptionMetricsBuilder) SubscriptionCpuTotal(value float64) *SubscriptionMetricsBuilder

SubscriptionCpuTotal sets the value of the 'subscription_cpu_total' attribute to the given value.

func (*SubscriptionMetricsBuilder) SubscriptionObligationExists ¶ added in v0.0.329

func (b *SubscriptionMetricsBuilder) SubscriptionObligationExists(value float64) *SubscriptionMetricsBuilder

SubscriptionObligationExists sets the value of the 'subscription_obligation_exists' attribute to the given value.

func (*SubscriptionMetricsBuilder) SubscriptionSocketTotal ¶ added in v0.0.329

func (b *SubscriptionMetricsBuilder) SubscriptionSocketTotal(value float64) *SubscriptionMetricsBuilder

SubscriptionSocketTotal sets the value of the 'subscription_socket_total' attribute to the given value.

func (*SubscriptionMetricsBuilder) Upgrade ¶ added in v0.0.329

Upgrade sets the value of the 'upgrade' attribute to the given value.

type SubscriptionMetricsList ¶ added in v0.0.329

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

SubscriptionMetricsList is a list of values of the 'subscription_metrics' type.

func (*SubscriptionMetricsList) Each ¶ added in v0.0.329

func (l *SubscriptionMetricsList) Each(f func(item *SubscriptionMetrics) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*SubscriptionMetricsList) Empty ¶ added in v0.0.329

func (l *SubscriptionMetricsList) Empty() bool

Empty returns true if the list is empty.

func (*SubscriptionMetricsList) Get ¶ added in v0.0.329

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*SubscriptionMetricsList) Len ¶ added in v0.0.329

func (l *SubscriptionMetricsList) Len() int

Len returns the length of the list.

func (*SubscriptionMetricsList) Range ¶ added in v0.0.329

func (l *SubscriptionMetricsList) Range(f func(index int, item *SubscriptionMetrics) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*SubscriptionMetricsList) Slice ¶ added in v0.0.329

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type SubscriptionMetricsListBuilder ¶ added in v0.0.329

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

SubscriptionMetricsListBuilder contains the data and logic needed to build 'subscription_metrics' objects.

func NewSubscriptionMetricsList ¶ added in v0.0.329

func NewSubscriptionMetricsList() *SubscriptionMetricsListBuilder

NewSubscriptionMetricsList creates a new builder of 'subscription_metrics' objects.

func (*SubscriptionMetricsListBuilder) Build ¶ added in v0.0.329

Build creates a list of 'subscription_metrics' objects using the configuration stored in the builder.

func (*SubscriptionMetricsListBuilder) Copy ¶ added in v0.0.329

Copy copies the items of the given list into this builder, discarding any previous items.

func (*SubscriptionMetricsListBuilder) Empty ¶ added in v0.0.329

Empty returns true if the list is empty.

func (*SubscriptionMetricsListBuilder) Items ¶ added in v0.0.329

Items sets the items of the list.

type SubscriptionPollRequest ¶

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

SubscriptionPollRequest is the request for the Poll method.

func (*SubscriptionPollRequest) Header ¶

func (r *SubscriptionPollRequest) Header(name string, value interface{}) *SubscriptionPollRequest

Header adds a request header to all the requests that will be used to retrieve the object.

func (*SubscriptionPollRequest) Interval ¶

Interval sets the polling interval. This parameter is mandatory and must be greater than zero.

func (*SubscriptionPollRequest) Parameter ¶

func (r *SubscriptionPollRequest) Parameter(name string, value interface{}) *SubscriptionPollRequest

Parameter adds a query parameter to all the requests that will be used to retrieve the object.

func (*SubscriptionPollRequest) Predicate ¶

Predicate adds a predicate that the response should satisfy be considered successful. Multiple predicates can be set calling this method multiple times. The response will be considered successful if all the predicates are satisfied.

func (*SubscriptionPollRequest) StartContext ¶

func (r *SubscriptionPollRequest) StartContext(ctx context.Context) (response *SubscriptionPollResponse, err error)

StartContext starts the polling loop. Responses will be considered successful if the status is one of the values specified with the Status method and if all the predicates specified with the Predicate method return nil.

The context must have a timeout or deadline, otherwise this method will immediately return an error.

func (*SubscriptionPollRequest) Status ¶

Status set the expected status of the response. Multiple values can be set calling this method multiple times. The response will be considered successful if the status is any of those values.

type SubscriptionPollResponse ¶

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

SubscriptionPollResponse is the response for the Poll method.

func (*SubscriptionPollResponse) Body ¶

Body returns the value of the 'body' parameter.

func (*SubscriptionPollResponse) Error ¶

Error returns the response error.

func (*SubscriptionPollResponse) GetBody ¶

func (r *SubscriptionPollResponse) GetBody() (value *Subscription, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*SubscriptionPollResponse) Header ¶

func (r *SubscriptionPollResponse) Header() http.Header

Header returns header of the response.

func (*SubscriptionPollResponse) Status ¶

func (r *SubscriptionPollResponse) Status() int

Status returns the response status code.

type SubscriptionRegistration ¶

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

SubscriptionRegistration represents the values of the 'subscription_registration' type.

Registration of a new subscription.

func UnmarshalSubscriptionRegistration ¶

func UnmarshalSubscriptionRegistration(source interface{}) (object *SubscriptionRegistration, err error)

UnmarshalSubscriptionRegistration reads a value of the 'subscription_registration' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalSubscriptionRegistrationList ¶

func UnmarshalSubscriptionRegistrationList(source interface{}) (items []*SubscriptionRegistration, err error)

UnmarshalSubscriptionRegistrationList reads a list of values of the 'subscription_registration' type from the given source, which can be a slice of bytes, a string or a reader.

func (*SubscriptionRegistration) ClusterUUID ¶

func (o *SubscriptionRegistration) ClusterUUID() string

ClusterUUID returns the value of the 'cluster_UUID' attribute, or the zero value of the type if the attribute doesn't have a value.

External cluster ID.

func (*SubscriptionRegistration) ConsoleURL ¶

func (o *SubscriptionRegistration) ConsoleURL() string

ConsoleURL returns the value of the 'console_URL' attribute, or the zero value of the type if the attribute doesn't have a value.

Console URL of subscription (optional).

func (*SubscriptionRegistration) DisplayName ¶

func (o *SubscriptionRegistration) DisplayName() string

DisplayName returns the value of the 'display_name' attribute, or the zero value of the type if the attribute doesn't have a value.

Display name of subscription (optional).

func (*SubscriptionRegistration) Empty ¶

func (o *SubscriptionRegistration) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*SubscriptionRegistration) GetClusterUUID ¶

func (o *SubscriptionRegistration) GetClusterUUID() (value string, ok bool)

GetClusterUUID returns the value of the 'cluster_UUID' attribute and a flag indicating if the attribute has a value.

External cluster ID.

func (*SubscriptionRegistration) GetConsoleURL ¶

func (o *SubscriptionRegistration) GetConsoleURL() (value string, ok bool)

GetConsoleURL returns the value of the 'console_URL' attribute and a flag indicating if the attribute has a value.

Console URL of subscription (optional).

func (*SubscriptionRegistration) GetDisplayName ¶

func (o *SubscriptionRegistration) GetDisplayName() (value string, ok bool)

GetDisplayName returns the value of the 'display_name' attribute and a flag indicating if the attribute has a value.

Display name of subscription (optional).

func (*SubscriptionRegistration) GetPlanID ¶

func (o *SubscriptionRegistration) GetPlanID() (value PlanID, ok bool)

GetPlanID returns the value of the 'plan_ID' attribute and a flag indicating if the attribute has a value.

Plan ID of subscription.

func (*SubscriptionRegistration) GetStatus ¶

func (o *SubscriptionRegistration) GetStatus() (value string, ok bool)

GetStatus returns the value of the 'status' attribute and a flag indicating if the attribute has a value.

Status of subscription.

func (*SubscriptionRegistration) PlanID ¶

func (o *SubscriptionRegistration) PlanID() PlanID

PlanID returns the value of the 'plan_ID' attribute, or the zero value of the type if the attribute doesn't have a value.

Plan ID of subscription.

func (*SubscriptionRegistration) Status ¶

func (o *SubscriptionRegistration) Status() string

Status returns the value of the 'status' attribute, or the zero value of the type if the attribute doesn't have a value.

Status of subscription.

type SubscriptionRegistrationBuilder ¶

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

SubscriptionRegistrationBuilder contains the data and logic needed to build 'subscription_registration' objects.

Registration of a new subscription.

func NewSubscriptionRegistration ¶

func NewSubscriptionRegistration() *SubscriptionRegistrationBuilder

NewSubscriptionRegistration creates a new builder of 'subscription_registration' objects.

func (*SubscriptionRegistrationBuilder) Build ¶

Build creates a 'subscription_registration' object using the configuration stored in the builder.

func (*SubscriptionRegistrationBuilder) ClusterUUID ¶

ClusterUUID sets the value of the 'cluster_UUID' attribute to the given value.

func (*SubscriptionRegistrationBuilder) ConsoleURL ¶

ConsoleURL sets the value of the 'console_URL' attribute to the given value.

func (*SubscriptionRegistrationBuilder) Copy ¶

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*SubscriptionRegistrationBuilder) DisplayName ¶

DisplayName sets the value of the 'display_name' attribute to the given value.

func (*SubscriptionRegistrationBuilder) Empty ¶ added in v0.0.329

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*SubscriptionRegistrationBuilder) PlanID ¶

PlanID sets the value of the 'plan_ID' attribute to the given value.

Plan ID of subscription.

func (*SubscriptionRegistrationBuilder) Status ¶

Status sets the value of the 'status' attribute to the given value.

type SubscriptionRegistrationList ¶

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

SubscriptionRegistrationList is a list of values of the 'subscription_registration' type.

func (*SubscriptionRegistrationList) Each ¶

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*SubscriptionRegistrationList) Empty ¶

Empty returns true if the list is empty.

func (*SubscriptionRegistrationList) Get ¶

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*SubscriptionRegistrationList) Len ¶

Len returns the length of the list.

func (*SubscriptionRegistrationList) Range ¶

func (l *SubscriptionRegistrationList) Range(f func(index int, item *SubscriptionRegistration) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*SubscriptionRegistrationList) Slice ¶

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type SubscriptionRegistrationListBuilder ¶

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

SubscriptionRegistrationListBuilder contains the data and logic needed to build 'subscription_registration' objects.

func NewSubscriptionRegistrationList ¶

func NewSubscriptionRegistrationList() *SubscriptionRegistrationListBuilder

NewSubscriptionRegistrationList creates a new builder of 'subscription_registration' objects.

func (*SubscriptionRegistrationListBuilder) Build ¶

Build creates a list of 'subscription_registration' objects using the configuration stored in the builder.

func (*SubscriptionRegistrationListBuilder) Copy ¶

Copy copies the items of the given list into this builder, discarding any previous items.

func (*SubscriptionRegistrationListBuilder) Empty ¶ added in v0.0.329

Empty returns true if the list is empty.

func (*SubscriptionRegistrationListBuilder) Items ¶

Items sets the items of the list.

type SubscriptionReservedResourceClient ¶

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

SubscriptionReservedResourceClient is the client of the 'subscription_reserved_resource' resource.

Manages a specific resource reserved by a subscription.

func NewSubscriptionReservedResourceClient ¶

func NewSubscriptionReservedResourceClient(transport http.RoundTripper, path string) *SubscriptionReservedResourceClient

NewSubscriptionReservedResourceClient creates a new client for the 'subscription_reserved_resource' resource using the given transport to send the requests and receive the responses.

func (*SubscriptionReservedResourceClient) Get ¶

Get creates a request for the 'get' method.

Retrieves the reserved resource.

func (*SubscriptionReservedResourceClient) Poll ¶

Poll creates a request to repeatedly retrieve the object till the response has one of a given set of states and satisfies a set of predicates.

type SubscriptionReservedResourceGetRequest ¶

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

SubscriptionReservedResourceGetRequest is the request for the 'get' method.

func (*SubscriptionReservedResourceGetRequest) Header ¶

Header adds a request header.

func (*SubscriptionReservedResourceGetRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*SubscriptionReservedResourceGetRequest) Parameter ¶

Parameter adds a query parameter.

func (*SubscriptionReservedResourceGetRequest) Send ¶

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*SubscriptionReservedResourceGetRequest) SendContext ¶

SendContext sends this request, waits for the response, and returns it.

type SubscriptionReservedResourceGetResponse ¶

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

SubscriptionReservedResourceGetResponse is the response for the 'get' method.

func (*SubscriptionReservedResourceGetResponse) Body ¶

Body returns the value of the 'body' parameter.

Retrieved reserved resource.

func (*SubscriptionReservedResourceGetResponse) Error ¶

Error returns the response error.

func (*SubscriptionReservedResourceGetResponse) GetBody ¶

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

Retrieved reserved resource.

func (*SubscriptionReservedResourceGetResponse) Header ¶

Header returns header of the response.

func (*SubscriptionReservedResourceGetResponse) Status ¶

Status returns the response status code.

type SubscriptionReservedResourcePollRequest ¶

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

SubscriptionReservedResourcePollRequest is the request for the Poll method.

func (*SubscriptionReservedResourcePollRequest) Header ¶

Header adds a request header to all the requests that will be used to retrieve the object.

func (*SubscriptionReservedResourcePollRequest) Interval ¶

Interval sets the polling interval. This parameter is mandatory and must be greater than zero.

func (*SubscriptionReservedResourcePollRequest) Parameter ¶

Parameter adds a query parameter to all the requests that will be used to retrieve the object.

func (*SubscriptionReservedResourcePollRequest) Predicate ¶

Predicate adds a predicate that the response should satisfy be considered successful. Multiple predicates can be set calling this method multiple times. The response will be considered successful if all the predicates are satisfied.

func (*SubscriptionReservedResourcePollRequest) StartContext ¶

StartContext starts the polling loop. Responses will be considered successful if the status is one of the values specified with the Status method and if all the predicates specified with the Predicate method return nil.

The context must have a timeout or deadline, otherwise this method will immediately return an error.

func (*SubscriptionReservedResourcePollRequest) Status ¶

Status set the expected status of the response. Multiple values can be set calling this method multiple times. The response will be considered successful if the status is any of those values.

type SubscriptionReservedResourcePollResponse ¶

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

SubscriptionReservedResourcePollResponse is the response for the Poll method.

func (*SubscriptionReservedResourcePollResponse) Body ¶

Body returns the value of the 'body' parameter.

Retrieved reserved resource.

func (*SubscriptionReservedResourcePollResponse) Error ¶

Error returns the response error.

func (*SubscriptionReservedResourcePollResponse) GetBody ¶

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

Retrieved reserved resource.

func (*SubscriptionReservedResourcePollResponse) Header ¶

Header returns header of the response.

func (*SubscriptionReservedResourcePollResponse) Status ¶

Status returns the response status code.

type SubscriptionReservedResourcesClient ¶

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

SubscriptionReservedResourcesClient is the client of the 'subscription_reserved_resources' resource.

Manages the collection of reserved resources by a subscription.

func NewSubscriptionReservedResourcesClient ¶

func NewSubscriptionReservedResourcesClient(transport http.RoundTripper, path string) *SubscriptionReservedResourcesClient

NewSubscriptionReservedResourcesClient creates a new client for the 'subscription_reserved_resources' resource using the given transport to send the requests and receive the responses.

func (*SubscriptionReservedResourcesClient) List ¶

List creates a request for the 'list' method.

Retrieves items of the collection of reserved resources by the subscription.

func (*SubscriptionReservedResourcesClient) ReservedResource ¶

ReservedResource returns the target 'subscription_reserved_resource' resource for the given identifier.

Reference to the resource that manages the a specific resource reserved by a subscription.

type SubscriptionReservedResourcesListRequest ¶

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

SubscriptionReservedResourcesListRequest is the request for the 'list' method.

func (*SubscriptionReservedResourcesListRequest) Header ¶

Header adds a request header.

func (*SubscriptionReservedResourcesListRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*SubscriptionReservedResourcesListRequest) Page ¶

Page sets the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*SubscriptionReservedResourcesListRequest) Parameter ¶

Parameter adds a query parameter.

func (*SubscriptionReservedResourcesListRequest) Send ¶

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*SubscriptionReservedResourcesListRequest) SendContext ¶

SendContext sends this request, waits for the response, and returns it.

func (*SubscriptionReservedResourcesListRequest) Size ¶

Size sets the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

type SubscriptionReservedResourcesListResponse ¶

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

SubscriptionReservedResourcesListResponse is the response for the 'list' method.

func (*SubscriptionReservedResourcesListResponse) Error ¶

Error returns the response error.

func (*SubscriptionReservedResourcesListResponse) GetItems ¶

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

Retrieved list of reserved resources.

func (*SubscriptionReservedResourcesListResponse) GetPage ¶

func (r *SubscriptionReservedResourcesListResponse) GetPage() (value int, ok bool)

GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.

Index of the requested page, where one corresponds to the first page.

func (*SubscriptionReservedResourcesListResponse) GetSize ¶

func (r *SubscriptionReservedResourcesListResponse) GetSize() (value int, ok bool)

GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.

Maximum number of items that will be contained in the returned page.

func (*SubscriptionReservedResourcesListResponse) GetTotal ¶

func (r *SubscriptionReservedResourcesListResponse) GetTotal() (value int, ok bool)

GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

func (*SubscriptionReservedResourcesListResponse) Header ¶

Header returns header of the response.

func (*SubscriptionReservedResourcesListResponse) Items ¶

Items returns the value of the 'items' parameter.

Retrieved list of reserved resources.

func (*SubscriptionReservedResourcesListResponse) Page ¶

Page returns the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*SubscriptionReservedResourcesListResponse) Size ¶

Size returns the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

func (*SubscriptionReservedResourcesListResponse) Status ¶

Status returns the response status code.

func (*SubscriptionReservedResourcesListResponse) Total ¶

Total returns the value of the 'total' parameter.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

type SubscriptionUpdateRequest ¶

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

SubscriptionUpdateRequest is the request for the 'update' method.

func (*SubscriptionUpdateRequest) Body ¶

Body sets the value of the 'body' parameter.

Updated subscription data

func (*SubscriptionUpdateRequest) Header ¶

func (r *SubscriptionUpdateRequest) Header(name string, value interface{}) *SubscriptionUpdateRequest

Header adds a request header.

func (*SubscriptionUpdateRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*SubscriptionUpdateRequest) Parameter ¶

func (r *SubscriptionUpdateRequest) Parameter(name string, value interface{}) *SubscriptionUpdateRequest

Parameter adds a query parameter.

func (*SubscriptionUpdateRequest) Send ¶

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*SubscriptionUpdateRequest) SendContext ¶

func (r *SubscriptionUpdateRequest) SendContext(ctx context.Context) (result *SubscriptionUpdateResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type SubscriptionUpdateResponse ¶

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

SubscriptionUpdateResponse is the response for the 'update' method.

func (*SubscriptionUpdateResponse) Body ¶

Body returns the value of the 'body' parameter.

Updated subscription data

func (*SubscriptionUpdateResponse) Error ¶

Error returns the response error.

func (*SubscriptionUpdateResponse) GetBody ¶

func (r *SubscriptionUpdateResponse) GetBody() (value *Subscription, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

Updated subscription data

func (*SubscriptionUpdateResponse) Header ¶

Header returns header of the response.

func (*SubscriptionUpdateResponse) Status ¶

func (r *SubscriptionUpdateResponse) Status() int

Status returns the response status code.

type SubscriptionsClient ¶

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

SubscriptionsClient is the client of the 'subscriptions' resource.

Manages the collection of subscriptions.

func NewSubscriptionsClient ¶

func NewSubscriptionsClient(transport http.RoundTripper, path string) *SubscriptionsClient

NewSubscriptionsClient creates a new client for the 'subscriptions' resource using the given transport to send the requests and receive the responses.

func (*SubscriptionsClient) Labels ¶ added in v0.0.329

Labels returns the target 'generic_labels' resource.

Reference to the list of labels of a specific subscription.

func (*SubscriptionsClient) List ¶

List creates a request for the 'list' method.

Retrieves a list of subscriptions.

func (*SubscriptionsClient) Post ¶

Post creates a request for the 'post' method.

Create a new subscription and register a cluster for it.

func (*SubscriptionsClient) Subscription ¶

func (c *SubscriptionsClient) Subscription(id string) *SubscriptionClient

Subscription returns the target 'subscription' resource for the given identifier.

Reference to the service that manages a specific subscription.

type SubscriptionsListRequest ¶

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

SubscriptionsListRequest is the request for the 'list' method.

func (*SubscriptionsListRequest) FetchAccounts ¶ added in v0.1.352

func (r *SubscriptionsListRequest) FetchAccounts(value bool) *SubscriptionsListRequest

FetchAccounts sets the value of the 'fetch_accounts' parameter.

If true, includes the account reference information in the output. Could slow request response time.

func (*SubscriptionsListRequest) FetchLabels ¶ added in v0.1.352

FetchLabels sets the value of the 'fetch_labels' parameter.

If true, includes the labels on a subscription in the output. Could slow request response time.

func (*SubscriptionsListRequest) Fields ¶

Fields sets the value of the 'fields' parameter.

Projection This field contains a comma-separated list of fields you'd like to get in a result. No new fields can be added, only existing ones can be filtered. To specify a field 'id' of a structure 'plan' use 'plan.id'. To specify all fields of a structure 'labels' use 'labels.*'.

func (*SubscriptionsListRequest) Header ¶

func (r *SubscriptionsListRequest) Header(name string, value interface{}) *SubscriptionsListRequest

Header adds a request header.

func (*SubscriptionsListRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*SubscriptionsListRequest) Labels ¶

Labels sets the value of the 'labels' parameter.

Filter subscriptions by a comma separated list of labels:

[source] ---- env=staging,department=sales ----

func (*SubscriptionsListRequest) Order ¶

Order sets the value of the 'order' parameter.

Order criteria.

The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement. For example, in order to sort the subscriptions descending by name identifier the value should be:

```sql name desc ```

If the parameter isn't provided, or if the value is empty, then the order of the results is undefined.

func (*SubscriptionsListRequest) Page ¶

Page sets the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*SubscriptionsListRequest) Parameter ¶

func (r *SubscriptionsListRequest) Parameter(name string, value interface{}) *SubscriptionsListRequest

Parameter adds a query parameter.

func (*SubscriptionsListRequest) Search ¶

Search sets the value of the 'search' parameter.

Search criteria.

The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the subscription instead of the names of the columns of a table. For example, in order to retrieve all the subscriptions for managed clusters the value should be:

```sql managed = 't' ```

If the parameter isn't provided, or if the value is empty, then all the clusters that the user has permission to see will be returned.

func (*SubscriptionsListRequest) Send ¶

func (r *SubscriptionsListRequest) Send() (result *SubscriptionsListResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*SubscriptionsListRequest) SendContext ¶

func (r *SubscriptionsListRequest) SendContext(ctx context.Context) (result *SubscriptionsListResponse, err error)

SendContext sends this request, waits for the response, and returns it.

func (*SubscriptionsListRequest) Size ¶

Size sets the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

type SubscriptionsListResponse ¶

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

SubscriptionsListResponse is the response for the 'list' method.

func (*SubscriptionsListResponse) Error ¶

Error returns the response error.

func (*SubscriptionsListResponse) GetItems ¶

func (r *SubscriptionsListResponse) GetItems() (value *SubscriptionList, ok bool)

GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.

Retrieved list of subscriptions.

func (*SubscriptionsListResponse) GetPage ¶

func (r *SubscriptionsListResponse) GetPage() (value int, ok bool)

GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.

Index of the requested page, where one corresponds to the first page.

func (*SubscriptionsListResponse) GetSize ¶

func (r *SubscriptionsListResponse) GetSize() (value int, ok bool)

GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.

Maximum number of items that will be contained in the returned page.

func (*SubscriptionsListResponse) GetTotal ¶

func (r *SubscriptionsListResponse) GetTotal() (value int, ok bool)

GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

func (*SubscriptionsListResponse) Header ¶

Header returns header of the response.

func (*SubscriptionsListResponse) Items ¶

Items returns the value of the 'items' parameter.

Retrieved list of subscriptions.

func (*SubscriptionsListResponse) Page ¶

func (r *SubscriptionsListResponse) Page() int

Page returns the value of the 'page' parameter.

Index of the requested page, where one corresponds to the first page.

func (*SubscriptionsListResponse) Size ¶

func (r *SubscriptionsListResponse) Size() int

Size returns the value of the 'size' parameter.

Maximum number of items that will be contained in the returned page.

func (*SubscriptionsListResponse) Status ¶

func (r *SubscriptionsListResponse) Status() int

Status returns the response status code.

func (*SubscriptionsListResponse) Total ¶

func (r *SubscriptionsListResponse) Total() int

Total returns the value of the 'total' parameter.

Total number of items of the collection that match the search criteria, regardless of the size of the page.

type SubscriptionsPostRequest ¶

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

SubscriptionsPostRequest is the request for the 'post' method.

func (*SubscriptionsPostRequest) Header ¶

func (r *SubscriptionsPostRequest) Header(name string, value interface{}) *SubscriptionsPostRequest

Header adds a request header.

func (*SubscriptionsPostRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*SubscriptionsPostRequest) Parameter ¶

func (r *SubscriptionsPostRequest) Parameter(name string, value interface{}) *SubscriptionsPostRequest

Parameter adds a query parameter.

func (*SubscriptionsPostRequest) Request ¶

Request sets the value of the 'request' parameter.

func (*SubscriptionsPostRequest) Send ¶

func (r *SubscriptionsPostRequest) Send() (result *SubscriptionsPostResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*SubscriptionsPostRequest) SendContext ¶

func (r *SubscriptionsPostRequest) SendContext(ctx context.Context) (result *SubscriptionsPostResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type SubscriptionsPostResponse ¶

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

SubscriptionsPostResponse is the response for the 'post' method.

func (*SubscriptionsPostResponse) Error ¶

Error returns the response error.

func (*SubscriptionsPostResponse) GetResponse ¶

func (r *SubscriptionsPostResponse) GetResponse() (value *Subscription, ok bool)

GetResponse returns the value of the 'response' parameter and a flag indicating if the parameter has a value.

func (*SubscriptionsPostResponse) Header ¶

Header returns header of the response.

func (*SubscriptionsPostResponse) Response ¶

func (r *SubscriptionsPostResponse) Response() *Subscription

Response returns the value of the 'response' parameter.

func (*SubscriptionsPostResponse) Status ¶

func (r *SubscriptionsPostResponse) Status() int

Status returns the response status code.

type SummaryDashboard ¶ added in v0.0.329

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

SummaryDashboard represents the values of the 'summary_dashboard' type.

func UnmarshalSummaryDashboard ¶ added in v0.0.329

func UnmarshalSummaryDashboard(source interface{}) (object *SummaryDashboard, err error)

UnmarshalSummaryDashboard reads a value of the 'summary_dashboard' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalSummaryDashboardList ¶ added in v0.0.329

func UnmarshalSummaryDashboardList(source interface{}) (items []*SummaryDashboard, err error)

UnmarshalSummaryDashboardList reads a list of values of the 'summary_dashboard' type from the given source, which can be a slice of bytes, a string or a reader.

func (*SummaryDashboard) Empty ¶ added in v0.0.329

func (o *SummaryDashboard) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*SummaryDashboard) GetHREF ¶ added in v0.0.329

func (o *SummaryDashboard) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*SummaryDashboard) GetID ¶ added in v0.0.329

func (o *SummaryDashboard) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*SummaryDashboard) GetMetrics ¶ added in v0.0.329

func (o *SummaryDashboard) GetMetrics() (value []*SummaryMetrics, ok bool)

GetMetrics returns the value of the 'metrics' attribute and a flag indicating if the attribute has a value.

func (*SummaryDashboard) HREF ¶ added in v0.0.329

func (o *SummaryDashboard) HREF() string

HREF returns the link to the object.

func (*SummaryDashboard) ID ¶ added in v0.0.329

func (o *SummaryDashboard) ID() string

ID returns the identifier of the object.

func (*SummaryDashboard) Kind ¶ added in v0.0.329

func (o *SummaryDashboard) Kind() string

Kind returns the name of the type of the object.

func (o *SummaryDashboard) Link() bool

Link returns true iif this is a link.

func (*SummaryDashboard) Metrics ¶ added in v0.0.329

func (o *SummaryDashboard) Metrics() []*SummaryMetrics

Metrics returns the value of the 'metrics' attribute, or the zero value of the type if the attribute doesn't have a value.

type SummaryDashboardBuilder ¶ added in v0.0.329

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

SummaryDashboardBuilder contains the data and logic needed to build 'summary_dashboard' objects.

func NewSummaryDashboard ¶ added in v0.0.329

func NewSummaryDashboard() *SummaryDashboardBuilder

NewSummaryDashboard creates a new builder of 'summary_dashboard' objects.

func (*SummaryDashboardBuilder) Build ¶ added in v0.0.329

func (b *SummaryDashboardBuilder) Build() (object *SummaryDashboard, err error)

Build creates a 'summary_dashboard' object using the configuration stored in the builder.

func (*SummaryDashboardBuilder) Copy ¶ added in v0.0.329

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*SummaryDashboardBuilder) Empty ¶ added in v0.0.329

func (b *SummaryDashboardBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*SummaryDashboardBuilder) HREF ¶ added in v0.0.329

HREF sets the link to the object.

func (*SummaryDashboardBuilder) ID ¶ added in v0.0.329

ID sets the identifier of the object.

Link sets the flag that indicates if this is a link.

func (*SummaryDashboardBuilder) Metrics ¶ added in v0.0.329

Metrics sets the value of the 'metrics' attribute to the given values.

type SummaryDashboardClient ¶ added in v0.0.329

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

SummaryDashboardClient is the client of the 'summary_dashboard' resource.

Manages a specific organization's summary dashboard.

func NewSummaryDashboardClient ¶ added in v0.0.329

func NewSummaryDashboardClient(transport http.RoundTripper, path string) *SummaryDashboardClient

NewSummaryDashboardClient creates a new client for the 'summary_dashboard' resource using the given transport to send the requests and receive the responses.

func (*SummaryDashboardClient) Get ¶ added in v0.0.329

Get creates a request for the 'get' method.

Retrieves the details of the organization's summary dashboard.

func (*SummaryDashboardClient) Poll ¶ added in v0.0.329

Poll creates a request to repeatedly retrieve the object till the response has one of a given set of states and satisfies a set of predicates.

type SummaryDashboardGetRequest ¶ added in v0.0.329

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

SummaryDashboardGetRequest is the request for the 'get' method.

func (*SummaryDashboardGetRequest) Header ¶ added in v0.0.329

func (r *SummaryDashboardGetRequest) Header(name string, value interface{}) *SummaryDashboardGetRequest

Header adds a request header.

func (*SummaryDashboardGetRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*SummaryDashboardGetRequest) Parameter ¶ added in v0.0.329

func (r *SummaryDashboardGetRequest) Parameter(name string, value interface{}) *SummaryDashboardGetRequest

Parameter adds a query parameter.

func (*SummaryDashboardGetRequest) Send ¶ added in v0.0.329

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*SummaryDashboardGetRequest) SendContext ¶ added in v0.0.329

func (r *SummaryDashboardGetRequest) SendContext(ctx context.Context) (result *SummaryDashboardGetResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type SummaryDashboardGetResponse ¶ added in v0.0.329

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

SummaryDashboardGetResponse is the response for the 'get' method.

func (*SummaryDashboardGetResponse) Body ¶ added in v0.0.329

Body returns the value of the 'body' parameter.

func (*SummaryDashboardGetResponse) Error ¶ added in v0.0.329

Error returns the response error.

func (*SummaryDashboardGetResponse) GetBody ¶ added in v0.0.329

func (r *SummaryDashboardGetResponse) GetBody() (value *SummaryDashboard, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*SummaryDashboardGetResponse) Header ¶ added in v0.0.329

Header returns header of the response.

func (*SummaryDashboardGetResponse) Status ¶ added in v0.0.329

func (r *SummaryDashboardGetResponse) Status() int

Status returns the response status code.

type SummaryDashboardList ¶ added in v0.0.329

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

SummaryDashboardList is a list of values of the 'summary_dashboard' type.

func (*SummaryDashboardList) Each ¶ added in v0.0.329

func (l *SummaryDashboardList) Each(f func(item *SummaryDashboard) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*SummaryDashboardList) Empty ¶ added in v0.0.329

func (l *SummaryDashboardList) Empty() bool

Empty returns true if the list is empty.

func (*SummaryDashboardList) Get ¶ added in v0.0.329

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*SummaryDashboardList) GetHREF ¶ added in v0.0.329

func (l *SummaryDashboardList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*SummaryDashboardList) HREF ¶ added in v0.0.329

func (l *SummaryDashboardList) HREF() string

HREF returns the link to the list.

func (*SummaryDashboardList) Kind ¶ added in v0.0.329

func (l *SummaryDashboardList) Kind() string

Kind returns the name of the type of the object.

func (*SummaryDashboardList) Len ¶ added in v0.0.329

func (l *SummaryDashboardList) Len() int

Len returns the length of the list.

func (l *SummaryDashboardList) Link() bool

Link returns true iif this is a link.

func (*SummaryDashboardList) Range ¶ added in v0.0.329

func (l *SummaryDashboardList) Range(f func(index int, item *SummaryDashboard) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*SummaryDashboardList) Slice ¶ added in v0.0.329

func (l *SummaryDashboardList) Slice() []*SummaryDashboard

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type SummaryDashboardListBuilder ¶ added in v0.0.329

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

SummaryDashboardListBuilder contains the data and logic needed to build 'summary_dashboard' objects.

func NewSummaryDashboardList ¶ added in v0.0.329

func NewSummaryDashboardList() *SummaryDashboardListBuilder

NewSummaryDashboardList creates a new builder of 'summary_dashboard' objects.

func (*SummaryDashboardListBuilder) Build ¶ added in v0.0.329

func (b *SummaryDashboardListBuilder) Build() (list *SummaryDashboardList, err error)

Build creates a list of 'summary_dashboard' objects using the configuration stored in the builder.

func (*SummaryDashboardListBuilder) Copy ¶ added in v0.0.329

Copy copies the items of the given list into this builder, discarding any previous items.

func (*SummaryDashboardListBuilder) Empty ¶ added in v0.0.329

func (b *SummaryDashboardListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*SummaryDashboardListBuilder) Items ¶ added in v0.0.329

Items sets the items of the list.

type SummaryDashboardPollRequest ¶ added in v0.0.329

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

SummaryDashboardPollRequest is the request for the Poll method.

func (*SummaryDashboardPollRequest) Header ¶ added in v0.0.329

func (r *SummaryDashboardPollRequest) Header(name string, value interface{}) *SummaryDashboardPollRequest

Header adds a request header to all the requests that will be used to retrieve the object.

func (*SummaryDashboardPollRequest) Interval ¶ added in v0.0.329

Interval sets the polling interval. This parameter is mandatory and must be greater than zero.

func (*SummaryDashboardPollRequest) Parameter ¶ added in v0.0.329

func (r *SummaryDashboardPollRequest) Parameter(name string, value interface{}) *SummaryDashboardPollRequest

Parameter adds a query parameter to all the requests that will be used to retrieve the object.

func (*SummaryDashboardPollRequest) Predicate ¶ added in v0.0.329

Predicate adds a predicate that the response should satisfy be considered successful. Multiple predicates can be set calling this method multiple times. The response will be considered successful if all the predicates are satisfied.

func (*SummaryDashboardPollRequest) StartContext ¶ added in v0.0.329

func (r *SummaryDashboardPollRequest) StartContext(ctx context.Context) (response *SummaryDashboardPollResponse, err error)

StartContext starts the polling loop. Responses will be considered successful if the status is one of the values specified with the Status method and if all the predicates specified with the Predicate method return nil.

The context must have a timeout or deadline, otherwise this method will immediately return an error.

func (*SummaryDashboardPollRequest) Status ¶ added in v0.0.329

Status set the expected status of the response. Multiple values can be set calling this method multiple times. The response will be considered successful if the status is any of those values.

type SummaryDashboardPollResponse ¶ added in v0.0.329

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

SummaryDashboardPollResponse is the response for the Poll method.

func (*SummaryDashboardPollResponse) Body ¶ added in v0.0.329

Body returns the value of the 'body' parameter.

func (*SummaryDashboardPollResponse) Error ¶ added in v0.0.329

Error returns the response error.

func (*SummaryDashboardPollResponse) GetBody ¶ added in v0.0.329

func (r *SummaryDashboardPollResponse) GetBody() (value *SummaryDashboard, ok bool)

GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.

func (*SummaryDashboardPollResponse) Header ¶ added in v0.0.329

Header returns header of the response.

func (*SummaryDashboardPollResponse) Status ¶ added in v0.0.329

func (r *SummaryDashboardPollResponse) Status() int

Status returns the response status code.

type SummaryMetrics ¶ added in v0.0.329

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

SummaryMetrics represents the values of the 'summary_metrics' type.

func UnmarshalSummaryMetrics ¶ added in v0.0.329

func UnmarshalSummaryMetrics(source interface{}) (object *SummaryMetrics, err error)

UnmarshalSummaryMetrics reads a value of the 'summary_metrics' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalSummaryMetricsList ¶ added in v0.0.329

func UnmarshalSummaryMetricsList(source interface{}) (items []*SummaryMetrics, err error)

UnmarshalSummaryMetricsList reads a list of values of the 'summary_metrics' type from the given source, which can be a slice of bytes, a string or a reader.

func (*SummaryMetrics) Empty ¶ added in v0.0.329

func (o *SummaryMetrics) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*SummaryMetrics) GetName ¶ added in v0.0.329

func (o *SummaryMetrics) GetName() (value string, ok bool)

GetName returns the value of the 'name' attribute and a flag indicating if the attribute has a value.

func (*SummaryMetrics) GetVector ¶ added in v0.0.329

func (o *SummaryMetrics) GetVector() (value []*SummarySample, ok bool)

GetVector returns the value of the 'vector' attribute and a flag indicating if the attribute has a value.

func (*SummaryMetrics) Name ¶ added in v0.0.329

func (o *SummaryMetrics) Name() string

Name returns the value of the 'name' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*SummaryMetrics) Vector ¶ added in v0.0.329

func (o *SummaryMetrics) Vector() []*SummarySample

Vector returns the value of the 'vector' attribute, or the zero value of the type if the attribute doesn't have a value.

type SummaryMetricsBuilder ¶ added in v0.0.329

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

SummaryMetricsBuilder contains the data and logic needed to build 'summary_metrics' objects.

func NewSummaryMetrics ¶ added in v0.0.329

func NewSummaryMetrics() *SummaryMetricsBuilder

NewSummaryMetrics creates a new builder of 'summary_metrics' objects.

func (*SummaryMetricsBuilder) Build ¶ added in v0.0.329

func (b *SummaryMetricsBuilder) Build() (object *SummaryMetrics, err error)

Build creates a 'summary_metrics' object using the configuration stored in the builder.

func (*SummaryMetricsBuilder) Copy ¶ added in v0.0.329

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*SummaryMetricsBuilder) Empty ¶ added in v0.0.329

func (b *SummaryMetricsBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*SummaryMetricsBuilder) Name ¶ added in v0.0.329

Name sets the value of the 'name' attribute to the given value.

func (*SummaryMetricsBuilder) Vector ¶ added in v0.0.329

Vector sets the value of the 'vector' attribute to the given values.

type SummaryMetricsList ¶ added in v0.0.329

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

SummaryMetricsList is a list of values of the 'summary_metrics' type.

func (*SummaryMetricsList) Each ¶ added in v0.0.329

func (l *SummaryMetricsList) Each(f func(item *SummaryMetrics) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*SummaryMetricsList) Empty ¶ added in v0.0.329

func (l *SummaryMetricsList) Empty() bool

Empty returns true if the list is empty.

func (*SummaryMetricsList) Get ¶ added in v0.0.329

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*SummaryMetricsList) Len ¶ added in v0.0.329

func (l *SummaryMetricsList) Len() int

Len returns the length of the list.

func (*SummaryMetricsList) Range ¶ added in v0.0.329

func (l *SummaryMetricsList) Range(f func(index int, item *SummaryMetrics) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*SummaryMetricsList) Slice ¶ added in v0.0.329

func (l *SummaryMetricsList) Slice() []*SummaryMetrics

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type SummaryMetricsListBuilder ¶ added in v0.0.329

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

SummaryMetricsListBuilder contains the data and logic needed to build 'summary_metrics' objects.

func NewSummaryMetricsList ¶ added in v0.0.329

func NewSummaryMetricsList() *SummaryMetricsListBuilder

NewSummaryMetricsList creates a new builder of 'summary_metrics' objects.

func (*SummaryMetricsListBuilder) Build ¶ added in v0.0.329

func (b *SummaryMetricsListBuilder) Build() (list *SummaryMetricsList, err error)

Build creates a list of 'summary_metrics' objects using the configuration stored in the builder.

func (*SummaryMetricsListBuilder) Copy ¶ added in v0.0.329

Copy copies the items of the given list into this builder, discarding any previous items.

func (*SummaryMetricsListBuilder) Empty ¶ added in v0.0.329

func (b *SummaryMetricsListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*SummaryMetricsListBuilder) Items ¶ added in v0.0.329

Items sets the items of the list.

type SummarySample ¶ added in v0.0.329

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

SummarySample represents the values of the 'summary_sample' type.

func UnmarshalSummarySample ¶ added in v0.0.329

func UnmarshalSummarySample(source interface{}) (object *SummarySample, err error)

UnmarshalSummarySample reads a value of the 'summary_sample' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalSummarySampleList ¶ added in v0.0.329

func UnmarshalSummarySampleList(source interface{}) (items []*SummarySample, err error)

UnmarshalSummarySampleList reads a list of values of the 'summary_sample' type from the given source, which can be a slice of bytes, a string or a reader.

func (*SummarySample) Empty ¶ added in v0.0.329

func (o *SummarySample) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*SummarySample) GetTime ¶ added in v0.0.329

func (o *SummarySample) GetTime() (value string, ok bool)

GetTime returns the value of the 'time' attribute and a flag indicating if the attribute has a value.

func (*SummarySample) GetValue ¶ added in v0.0.329

func (o *SummarySample) GetValue() (value float64, ok bool)

GetValue returns the value of the 'value' attribute and a flag indicating if the attribute has a value.

func (*SummarySample) Time ¶ added in v0.0.329

func (o *SummarySample) Time() string

Time returns the value of the 'time' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*SummarySample) Value ¶ added in v0.0.329

func (o *SummarySample) Value() float64

Value returns the value of the 'value' attribute, or the zero value of the type if the attribute doesn't have a value.

type SummarySampleBuilder ¶ added in v0.0.329

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

SummarySampleBuilder contains the data and logic needed to build 'summary_sample' objects.

func NewSummarySample ¶ added in v0.0.329

func NewSummarySample() *SummarySampleBuilder

NewSummarySample creates a new builder of 'summary_sample' objects.

func (*SummarySampleBuilder) Build ¶ added in v0.0.329

func (b *SummarySampleBuilder) Build() (object *SummarySample, err error)

Build creates a 'summary_sample' object using the configuration stored in the builder.

func (*SummarySampleBuilder) Copy ¶ added in v0.0.329

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*SummarySampleBuilder) Empty ¶ added in v0.0.329

func (b *SummarySampleBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*SummarySampleBuilder) Time ¶ added in v0.0.329

Time sets the value of the 'time' attribute to the given value.

func (*SummarySampleBuilder) Value ¶ added in v0.0.329

Value sets the value of the 'value' attribute to the given value.

type SummarySampleList ¶ added in v0.0.329

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

SummarySampleList is a list of values of the 'summary_sample' type.

func (*SummarySampleList) Each ¶ added in v0.0.329

func (l *SummarySampleList) Each(f func(item *SummarySample) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*SummarySampleList) Empty ¶ added in v0.0.329

func (l *SummarySampleList) Empty() bool

Empty returns true if the list is empty.

func (*SummarySampleList) Get ¶ added in v0.0.329

func (l *SummarySampleList) Get(i int) *SummarySample

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*SummarySampleList) Len ¶ added in v0.0.329

func (l *SummarySampleList) Len() int

Len returns the length of the list.

func (*SummarySampleList) Range ¶ added in v0.0.329

func (l *SummarySampleList) Range(f func(index int, item *SummarySample) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*SummarySampleList) Slice ¶ added in v0.0.329

func (l *SummarySampleList) Slice() []*SummarySample

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type SummarySampleListBuilder ¶ added in v0.0.329

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

SummarySampleListBuilder contains the data and logic needed to build 'summary_sample' objects.

func NewSummarySampleList ¶ added in v0.0.329

func NewSummarySampleList() *SummarySampleListBuilder

NewSummarySampleList creates a new builder of 'summary_sample' objects.

func (*SummarySampleListBuilder) Build ¶ added in v0.0.329

func (b *SummarySampleListBuilder) Build() (list *SummarySampleList, err error)

Build creates a list of 'summary_sample' objects using the configuration stored in the builder.

func (*SummarySampleListBuilder) Copy ¶ added in v0.0.329

Copy copies the items of the given list into this builder, discarding any previous items.

func (*SummarySampleListBuilder) Empty ¶ added in v0.0.329

func (b *SummarySampleListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*SummarySampleListBuilder) Items ¶ added in v0.0.329

Items sets the items of the list.

type SupportCaseClient ¶

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

SupportCaseClient is the client of the 'support_case' resource.

Manages a specific support case.

func NewSupportCaseClient ¶

func NewSupportCaseClient(transport http.RoundTripper, path string) *SupportCaseClient

NewSupportCaseClient creates a new client for the 'support_case' resource using the given transport to send the requests and receive the responses.

func (*SupportCaseClient) Delete ¶

Delete creates a request for the 'delete' method.

Deletes the support case by Case ID.

type SupportCaseDeleteRequest ¶

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

SupportCaseDeleteRequest is the request for the 'delete' method.

func (*SupportCaseDeleteRequest) Header ¶

func (r *SupportCaseDeleteRequest) Header(name string, value interface{}) *SupportCaseDeleteRequest

Header adds a request header.

func (*SupportCaseDeleteRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*SupportCaseDeleteRequest) Parameter ¶

func (r *SupportCaseDeleteRequest) Parameter(name string, value interface{}) *SupportCaseDeleteRequest

Parameter adds a query parameter.

func (*SupportCaseDeleteRequest) Send ¶

func (r *SupportCaseDeleteRequest) Send() (result *SupportCaseDeleteResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*SupportCaseDeleteRequest) SendContext ¶

func (r *SupportCaseDeleteRequest) SendContext(ctx context.Context) (result *SupportCaseDeleteResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type SupportCaseDeleteResponse ¶

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

SupportCaseDeleteResponse is the response for the 'delete' method.

func (*SupportCaseDeleteResponse) Error ¶

Error returns the response error.

func (*SupportCaseDeleteResponse) Header ¶

Header returns header of the response.

func (*SupportCaseDeleteResponse) Status ¶

func (r *SupportCaseDeleteResponse) Status() int

Status returns the response status code.

type SupportCaseRequest ¶

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

SupportCaseRequest represents the values of the 'support_case_request' type.

func UnmarshalSupportCaseRequest ¶

func UnmarshalSupportCaseRequest(source interface{}) (object *SupportCaseRequest, err error)

UnmarshalSupportCaseRequest reads a value of the 'support_case_request' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalSupportCaseRequestList ¶

func UnmarshalSupportCaseRequestList(source interface{}) (items []*SupportCaseRequest, err error)

UnmarshalSupportCaseRequestList reads a list of values of the 'support_case_request' type from the given source, which can be a slice of bytes, a string or a reader.

func (*SupportCaseRequest) ClusterId ¶

func (o *SupportCaseRequest) ClusterId() string

ClusterId returns the value of the 'cluster_id' attribute, or the zero value of the type if the attribute doesn't have a value.

(optional) cluster id of the cluster on which we create the support case for.

func (*SupportCaseRequest) ClusterUuid ¶

func (o *SupportCaseRequest) ClusterUuid() string

ClusterUuid returns the value of the 'cluster_uuid' attribute, or the zero value of the type if the attribute doesn't have a value.

(optional) cluster uuid of the cluster on which we create the support case for.

func (*SupportCaseRequest) Description ¶

func (o *SupportCaseRequest) Description() string

Description returns the value of the 'description' attribute, or the zero value of the type if the attribute doesn't have a value.

Support case desciption.

func (*SupportCaseRequest) Empty ¶

func (o *SupportCaseRequest) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*SupportCaseRequest) EventStreamId ¶

func (o *SupportCaseRequest) EventStreamId() string

EventStreamId returns the value of the 'event_stream_id' attribute, or the zero value of the type if the attribute doesn't have a value.

(optional) event stream id for the support case so we could track it.

func (*SupportCaseRequest) GetClusterId ¶

func (o *SupportCaseRequest) GetClusterId() (value string, ok bool)

GetClusterId returns the value of the 'cluster_id' attribute and a flag indicating if the attribute has a value.

(optional) cluster id of the cluster on which we create the support case for.

func (*SupportCaseRequest) GetClusterUuid ¶

func (o *SupportCaseRequest) GetClusterUuid() (value string, ok bool)

GetClusterUuid returns the value of the 'cluster_uuid' attribute and a flag indicating if the attribute has a value.

(optional) cluster uuid of the cluster on which we create the support case for.

func (*SupportCaseRequest) GetDescription ¶

func (o *SupportCaseRequest) GetDescription() (value string, ok bool)

GetDescription returns the value of the 'description' attribute and a flag indicating if the attribute has a value.

Support case desciption.

func (*SupportCaseRequest) GetEventStreamId ¶

func (o *SupportCaseRequest) GetEventStreamId() (value string, ok bool)

GetEventStreamId returns the value of the 'event_stream_id' attribute and a flag indicating if the attribute has a value.

(optional) event stream id for the support case so we could track it.

func (*SupportCaseRequest) GetHREF ¶

func (o *SupportCaseRequest) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*SupportCaseRequest) GetID ¶

func (o *SupportCaseRequest) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*SupportCaseRequest) GetSeverity ¶

func (o *SupportCaseRequest) GetSeverity() (value string, ok bool)

GetSeverity returns the value of the 'severity' attribute and a flag indicating if the attribute has a value.

Support case severity.

func (*SupportCaseRequest) GetSubscriptionId ¶

func (o *SupportCaseRequest) GetSubscriptionId() (value string, ok bool)

GetSubscriptionId returns the value of the 'subscription_id' attribute and a flag indicating if the attribute has a value.

(optional) subscription id of the subscription on which we create the support case for.

func (*SupportCaseRequest) GetSummary ¶

func (o *SupportCaseRequest) GetSummary() (value string, ok bool)

GetSummary returns the value of the 'summary' attribute and a flag indicating if the attribute has a value.

Support case title.

func (*SupportCaseRequest) HREF ¶

func (o *SupportCaseRequest) HREF() string

HREF returns the link to the object.

func (*SupportCaseRequest) ID ¶

func (o *SupportCaseRequest) ID() string

ID returns the identifier of the object.

func (*SupportCaseRequest) Kind ¶

func (o *SupportCaseRequest) Kind() string

Kind returns the name of the type of the object.

func (o *SupportCaseRequest) Link() bool

Link returns true iif this is a link.

func (*SupportCaseRequest) Severity ¶

func (o *SupportCaseRequest) Severity() string

Severity returns the value of the 'severity' attribute, or the zero value of the type if the attribute doesn't have a value.

Support case severity.

func (*SupportCaseRequest) SubscriptionId ¶

func (o *SupportCaseRequest) SubscriptionId() string

SubscriptionId returns the value of the 'subscription_id' attribute, or the zero value of the type if the attribute doesn't have a value.

(optional) subscription id of the subscription on which we create the support case for.

func (*SupportCaseRequest) Summary ¶

func (o *SupportCaseRequest) Summary() string

Summary returns the value of the 'summary' attribute, or the zero value of the type if the attribute doesn't have a value.

Support case title.

type SupportCaseRequestBuilder ¶

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

SupportCaseRequestBuilder contains the data and logic needed to build 'support_case_request' objects.

func NewSupportCaseRequest ¶

func NewSupportCaseRequest() *SupportCaseRequestBuilder

NewSupportCaseRequest creates a new builder of 'support_case_request' objects.

func (*SupportCaseRequestBuilder) Build ¶

func (b *SupportCaseRequestBuilder) Build() (object *SupportCaseRequest, err error)

Build creates a 'support_case_request' object using the configuration stored in the builder.

func (*SupportCaseRequestBuilder) ClusterId ¶

ClusterId sets the value of the 'cluster_id' attribute to the given value.

func (*SupportCaseRequestBuilder) ClusterUuid ¶

ClusterUuid sets the value of the 'cluster_uuid' attribute to the given value.

func (*SupportCaseRequestBuilder) Copy ¶

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*SupportCaseRequestBuilder) Description ¶

Description sets the value of the 'description' attribute to the given value.

func (*SupportCaseRequestBuilder) Empty ¶ added in v0.0.329

func (b *SupportCaseRequestBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*SupportCaseRequestBuilder) EventStreamId ¶

EventStreamId sets the value of the 'event_stream_id' attribute to the given value.

func (*SupportCaseRequestBuilder) HREF ¶

HREF sets the link to the object.

func (*SupportCaseRequestBuilder) ID ¶

ID sets the identifier of the object.

Link sets the flag that indicates if this is a link.

func (*SupportCaseRequestBuilder) Severity ¶

Severity sets the value of the 'severity' attribute to the given value.

func (*SupportCaseRequestBuilder) SubscriptionId ¶

SubscriptionId sets the value of the 'subscription_id' attribute to the given value.

func (*SupportCaseRequestBuilder) Summary ¶

Summary sets the value of the 'summary' attribute to the given value.

type SupportCaseRequestList ¶

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

SupportCaseRequestList is a list of values of the 'support_case_request' type.

func (*SupportCaseRequestList) Each ¶

func (l *SupportCaseRequestList) Each(f func(item *SupportCaseRequest) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*SupportCaseRequestList) Empty ¶

func (l *SupportCaseRequestList) Empty() bool

Empty returns true if the list is empty.

func (*SupportCaseRequestList) Get ¶

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*SupportCaseRequestList) GetHREF ¶

func (l *SupportCaseRequestList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*SupportCaseRequestList) HREF ¶

func (l *SupportCaseRequestList) HREF() string

HREF returns the link to the list.

func (*SupportCaseRequestList) Kind ¶

func (l *SupportCaseRequestList) Kind() string

Kind returns the name of the type of the object.

func (*SupportCaseRequestList) Len ¶

func (l *SupportCaseRequestList) Len() int

Len returns the length of the list.

func (l *SupportCaseRequestList) Link() bool

Link returns true iif this is a link.

func (*SupportCaseRequestList) Range ¶

func (l *SupportCaseRequestList) Range(f func(index int, item *SupportCaseRequest) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*SupportCaseRequestList) Slice ¶

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type SupportCaseRequestListBuilder ¶

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

SupportCaseRequestListBuilder contains the data and logic needed to build 'support_case_request' objects.

func NewSupportCaseRequestList ¶

func NewSupportCaseRequestList() *SupportCaseRequestListBuilder

NewSupportCaseRequestList creates a new builder of 'support_case_request' objects.

func (*SupportCaseRequestListBuilder) Build ¶

Build creates a list of 'support_case_request' objects using the configuration stored in the builder.

func (*SupportCaseRequestListBuilder) Copy ¶

Copy copies the items of the given list into this builder, discarding any previous items.

func (*SupportCaseRequestListBuilder) Empty ¶ added in v0.0.329

Empty returns true if the list is empty.

func (*SupportCaseRequestListBuilder) Items ¶

Items sets the items of the list.

type SupportCaseResponse ¶

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

SupportCaseResponse represents the values of the 'support_case_response' type.

func UnmarshalSupportCaseResponse ¶

func UnmarshalSupportCaseResponse(source interface{}) (object *SupportCaseResponse, err error)

UnmarshalSupportCaseResponse reads a value of the 'support_case_response' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalSupportCaseResponseList ¶

func UnmarshalSupportCaseResponseList(source interface{}) (items []*SupportCaseResponse, err error)

UnmarshalSupportCaseResponseList reads a list of values of the 'support_case_response' type from the given source, which can be a slice of bytes, a string or a reader.

func (*SupportCaseResponse) CaseNumber ¶

func (o *SupportCaseResponse) CaseNumber() string

CaseNumber returns the value of the 'case_number' attribute, or the zero value of the type if the attribute doesn't have a value.

Support case number.

func (*SupportCaseResponse) ClusterId ¶

func (o *SupportCaseResponse) ClusterId() string

ClusterId returns the value of the 'cluster_id' attribute, or the zero value of the type if the attribute doesn't have a value.

(optional) cluster id of the cluster on which we created the support case for.

func (*SupportCaseResponse) ClusterUuid ¶

func (o *SupportCaseResponse) ClusterUuid() string

ClusterUuid returns the value of the 'cluster_uuid' attribute, or the zero value of the type if the attribute doesn't have a value.

(optional) cluster uuid of the cluster on which we created the support case for.

func (*SupportCaseResponse) Description ¶

func (o *SupportCaseResponse) Description() string

Description returns the value of the 'description' attribute, or the zero value of the type if the attribute doesn't have a value.

Support case desciption.

func (*SupportCaseResponse) Empty ¶

func (o *SupportCaseResponse) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*SupportCaseResponse) GetCaseNumber ¶

func (o *SupportCaseResponse) GetCaseNumber() (value string, ok bool)

GetCaseNumber returns the value of the 'case_number' attribute and a flag indicating if the attribute has a value.

Support case number.

func (*SupportCaseResponse) GetClusterId ¶

func (o *SupportCaseResponse) GetClusterId() (value string, ok bool)

GetClusterId returns the value of the 'cluster_id' attribute and a flag indicating if the attribute has a value.

(optional) cluster id of the cluster on which we created the support case for.

func (*SupportCaseResponse) GetClusterUuid ¶

func (o *SupportCaseResponse) GetClusterUuid() (value string, ok bool)

GetClusterUuid returns the value of the 'cluster_uuid' attribute and a flag indicating if the attribute has a value.

(optional) cluster uuid of the cluster on which we created the support case for.

func (*SupportCaseResponse) GetDescription ¶

func (o *SupportCaseResponse) GetDescription() (value string, ok bool)

GetDescription returns the value of the 'description' attribute and a flag indicating if the attribute has a value.

Support case desciption.

func (*SupportCaseResponse) GetHREF ¶

func (o *SupportCaseResponse) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*SupportCaseResponse) GetID ¶

func (o *SupportCaseResponse) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*SupportCaseResponse) GetSeverity ¶

func (o *SupportCaseResponse) GetSeverity() (value string, ok bool)

GetSeverity returns the value of the 'severity' attribute and a flag indicating if the attribute has a value.

Support case severity.

func (*SupportCaseResponse) GetStatus ¶

func (o *SupportCaseResponse) GetStatus() (value string, ok bool)

GetStatus returns the value of the 'status' attribute and a flag indicating if the attribute has a value.

Support case status.

func (*SupportCaseResponse) GetSubscriptionId ¶

func (o *SupportCaseResponse) GetSubscriptionId() (value string, ok bool)

GetSubscriptionId returns the value of the 'subscription_id' attribute and a flag indicating if the attribute has a value.

(optional) subscription id of the subscription on which we created the support case for.

func (*SupportCaseResponse) GetSummary ¶

func (o *SupportCaseResponse) GetSummary() (value string, ok bool)

GetSummary returns the value of the 'summary' attribute and a flag indicating if the attribute has a value.

Support case title.

func (*SupportCaseResponse) GetURI ¶

func (o *SupportCaseResponse) GetURI() (value string, ok bool)

GetURI returns the value of the 'URI' attribute and a flag indicating if the attribute has a value.

Support case uri.

func (*SupportCaseResponse) HREF ¶

func (o *SupportCaseResponse) HREF() string

HREF returns the link to the object.

func (*SupportCaseResponse) ID ¶

func (o *SupportCaseResponse) ID() string

ID returns the identifier of the object.

func (*SupportCaseResponse) Kind ¶

func (o *SupportCaseResponse) Kind() string

Kind returns the name of the type of the object.

func (o *SupportCaseResponse) Link() bool

Link returns true iif this is a link.

func (*SupportCaseResponse) Severity ¶

func (o *SupportCaseResponse) Severity() string

Severity returns the value of the 'severity' attribute, or the zero value of the type if the attribute doesn't have a value.

Support case severity.

func (*SupportCaseResponse) Status ¶

func (o *SupportCaseResponse) Status() string

Status returns the value of the 'status' attribute, or the zero value of the type if the attribute doesn't have a value.

Support case status.

func (*SupportCaseResponse) SubscriptionId ¶

func (o *SupportCaseResponse) SubscriptionId() string

SubscriptionId returns the value of the 'subscription_id' attribute, or the zero value of the type if the attribute doesn't have a value.

(optional) subscription id of the subscription on which we created the support case for.

func (*SupportCaseResponse) Summary ¶

func (o *SupportCaseResponse) Summary() string

Summary returns the value of the 'summary' attribute, or the zero value of the type if the attribute doesn't have a value.

Support case title.

func (*SupportCaseResponse) URI ¶

func (o *SupportCaseResponse) URI() string

URI returns the value of the 'URI' attribute, or the zero value of the type if the attribute doesn't have a value.

Support case uri.

type SupportCaseResponseBuilder ¶

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

SupportCaseResponseBuilder contains the data and logic needed to build 'support_case_response' objects.

func NewSupportCaseResponse ¶

func NewSupportCaseResponse() *SupportCaseResponseBuilder

NewSupportCaseResponse creates a new builder of 'support_case_response' objects.

func (*SupportCaseResponseBuilder) Build ¶

func (b *SupportCaseResponseBuilder) Build() (object *SupportCaseResponse, err error)

Build creates a 'support_case_response' object using the configuration stored in the builder.

func (*SupportCaseResponseBuilder) CaseNumber ¶

CaseNumber sets the value of the 'case_number' attribute to the given value.

func (*SupportCaseResponseBuilder) ClusterId ¶

ClusterId sets the value of the 'cluster_id' attribute to the given value.

func (*SupportCaseResponseBuilder) ClusterUuid ¶

ClusterUuid sets the value of the 'cluster_uuid' attribute to the given value.

func (*SupportCaseResponseBuilder) Copy ¶

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*SupportCaseResponseBuilder) Description ¶

Description sets the value of the 'description' attribute to the given value.

func (*SupportCaseResponseBuilder) Empty ¶ added in v0.0.329

func (b *SupportCaseResponseBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*SupportCaseResponseBuilder) HREF ¶

HREF sets the link to the object.

func (*SupportCaseResponseBuilder) ID ¶

ID sets the identifier of the object.

Link sets the flag that indicates if this is a link.

func (*SupportCaseResponseBuilder) Severity ¶

Severity sets the value of the 'severity' attribute to the given value.

func (*SupportCaseResponseBuilder) Status ¶

Status sets the value of the 'status' attribute to the given value.

func (*SupportCaseResponseBuilder) SubscriptionId ¶

SubscriptionId sets the value of the 'subscription_id' attribute to the given value.

func (*SupportCaseResponseBuilder) Summary ¶

Summary sets the value of the 'summary' attribute to the given value.

func (*SupportCaseResponseBuilder) URI ¶

URI sets the value of the 'URI' attribute to the given value.

type SupportCaseResponseList ¶

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

SupportCaseResponseList is a list of values of the 'support_case_response' type.

func (*SupportCaseResponseList) Each ¶

func (l *SupportCaseResponseList) Each(f func(item *SupportCaseResponse) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*SupportCaseResponseList) Empty ¶

func (l *SupportCaseResponseList) Empty() bool

Empty returns true if the list is empty.

func (*SupportCaseResponseList) Get ¶

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*SupportCaseResponseList) GetHREF ¶

func (l *SupportCaseResponseList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*SupportCaseResponseList) HREF ¶

func (l *SupportCaseResponseList) HREF() string

HREF returns the link to the list.

func (*SupportCaseResponseList) Kind ¶

func (l *SupportCaseResponseList) Kind() string

Kind returns the name of the type of the object.

func (*SupportCaseResponseList) Len ¶

func (l *SupportCaseResponseList) Len() int

Len returns the length of the list.

func (l *SupportCaseResponseList) Link() bool

Link returns true iif this is a link.

func (*SupportCaseResponseList) Range ¶

func (l *SupportCaseResponseList) Range(f func(index int, item *SupportCaseResponse) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*SupportCaseResponseList) Slice ¶

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type SupportCaseResponseListBuilder ¶

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

SupportCaseResponseListBuilder contains the data and logic needed to build 'support_case_response' objects.

func NewSupportCaseResponseList ¶

func NewSupportCaseResponseList() *SupportCaseResponseListBuilder

NewSupportCaseResponseList creates a new builder of 'support_case_response' objects.

func (*SupportCaseResponseListBuilder) Build ¶

Build creates a list of 'support_case_response' objects using the configuration stored in the builder.

func (*SupportCaseResponseListBuilder) Copy ¶

Copy copies the items of the given list into this builder, discarding any previous items.

func (*SupportCaseResponseListBuilder) Empty ¶ added in v0.0.329

Empty returns true if the list is empty.

func (*SupportCaseResponseListBuilder) Items ¶

Items sets the items of the list.

type SupportCasesClient ¶

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

SupportCasesClient is the client of the 'support_cases' resource.

Manages the support cases endpoint

func NewSupportCasesClient ¶

func NewSupportCasesClient(transport http.RoundTripper, path string) *SupportCasesClient

NewSupportCasesClient creates a new client for the 'support_cases' resource using the given transport to send the requests and receive the responses.

func (*SupportCasesClient) Post ¶

Post creates a request for the 'post' method.

Create a support case related to Hydra

func (*SupportCasesClient) SupportCase ¶

func (c *SupportCasesClient) SupportCase(id string) *SupportCaseClient

SupportCase returns the target 'support_case' resource for the given identifier.

Reference to the service that manages a specific support case.

type SupportCasesPostRequest ¶

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

SupportCasesPostRequest is the request for the 'post' method.

func (*SupportCasesPostRequest) Header ¶

func (r *SupportCasesPostRequest) Header(name string, value interface{}) *SupportCasesPostRequest

Header adds a request header.

func (*SupportCasesPostRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*SupportCasesPostRequest) Parameter ¶

func (r *SupportCasesPostRequest) Parameter(name string, value interface{}) *SupportCasesPostRequest

Parameter adds a query parameter.

func (*SupportCasesPostRequest) Request ¶

Request sets the value of the 'request' parameter.

func (*SupportCasesPostRequest) Send ¶

func (r *SupportCasesPostRequest) Send() (result *SupportCasesPostResponse, err error)

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*SupportCasesPostRequest) SendContext ¶

func (r *SupportCasesPostRequest) SendContext(ctx context.Context) (result *SupportCasesPostResponse, err error)

SendContext sends this request, waits for the response, and returns it.

type SupportCasesPostResponse ¶

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

SupportCasesPostResponse is the response for the 'post' method.

func (*SupportCasesPostResponse) Error ¶

Error returns the response error.

func (*SupportCasesPostResponse) GetResponse ¶

func (r *SupportCasesPostResponse) GetResponse() (value *SupportCaseResponse, ok bool)

GetResponse returns the value of the 'response' parameter and a flag indicating if the parameter has a value.

func (*SupportCasesPostResponse) Header ¶

func (r *SupportCasesPostResponse) Header() http.Header

Header returns header of the response.

func (*SupportCasesPostResponse) Response ¶

Response returns the value of the 'response' parameter.

func (*SupportCasesPostResponse) Status ¶

func (r *SupportCasesPostResponse) Status() int

Status returns the response status code.

type TemplateParameter ¶

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

TemplateParameter represents the values of the 'template_parameter' type.

A template parameter is used in an email to replace placeholder content with values specific to the email recipient.

func UnmarshalTemplateParameter ¶

func UnmarshalTemplateParameter(source interface{}) (object *TemplateParameter, err error)

UnmarshalTemplateParameter reads a value of the 'template_parameter' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalTemplateParameterList ¶

func UnmarshalTemplateParameterList(source interface{}) (items []*TemplateParameter, err error)

UnmarshalTemplateParameterList reads a list of values of the 'template_parameter' type from the given source, which can be a slice of bytes, a string or a reader.

func (*TemplateParameter) Content ¶

func (o *TemplateParameter) Content() string

Content returns the value of the 'content' attribute, or the zero value of the type if the attribute doesn't have a value.

The content that will replace the template parameter in the email

func (*TemplateParameter) Empty ¶

func (o *TemplateParameter) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*TemplateParameter) GetContent ¶

func (o *TemplateParameter) GetContent() (value string, ok bool)

GetContent returns the value of the 'content' attribute and a flag indicating if the attribute has a value.

The content that will replace the template parameter in the email

func (*TemplateParameter) GetName ¶

func (o *TemplateParameter) GetName() (value string, ok bool)

GetName returns the value of the 'name' attribute and a flag indicating if the attribute has a value.

Name of the value to be replaced

func (*TemplateParameter) Name ¶

func (o *TemplateParameter) Name() string

Name returns the value of the 'name' attribute, or the zero value of the type if the attribute doesn't have a value.

Name of the value to be replaced

type TemplateParameterBuilder ¶

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

TemplateParameterBuilder contains the data and logic needed to build 'template_parameter' objects.

A template parameter is used in an email to replace placeholder content with values specific to the email recipient.

func NewTemplateParameter ¶

func NewTemplateParameter() *TemplateParameterBuilder

NewTemplateParameter creates a new builder of 'template_parameter' objects.

func (*TemplateParameterBuilder) Build ¶

func (b *TemplateParameterBuilder) Build() (object *TemplateParameter, err error)

Build creates a 'template_parameter' object using the configuration stored in the builder.

func (*TemplateParameterBuilder) Content ¶

Content sets the value of the 'content' attribute to the given value.

func (*TemplateParameterBuilder) Copy ¶

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*TemplateParameterBuilder) Empty ¶ added in v0.0.329

func (b *TemplateParameterBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*TemplateParameterBuilder) Name ¶

Name sets the value of the 'name' attribute to the given value.

type TemplateParameterList ¶

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

TemplateParameterList is a list of values of the 'template_parameter' type.

func (*TemplateParameterList) Each ¶

func (l *TemplateParameterList) Each(f func(item *TemplateParameter) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*TemplateParameterList) Empty ¶

func (l *TemplateParameterList) Empty() bool

Empty returns true if the list is empty.

func (*TemplateParameterList) Get ¶

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*TemplateParameterList) Len ¶

func (l *TemplateParameterList) Len() int

Len returns the length of the list.

func (*TemplateParameterList) Range ¶

func (l *TemplateParameterList) Range(f func(index int, item *TemplateParameter) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*TemplateParameterList) Slice ¶

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type TemplateParameterListBuilder ¶

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

TemplateParameterListBuilder contains the data and logic needed to build 'template_parameter' objects.

func NewTemplateParameterList ¶

func NewTemplateParameterList() *TemplateParameterListBuilder

NewTemplateParameterList creates a new builder of 'template_parameter' objects.

func (*TemplateParameterListBuilder) Build ¶

Build creates a list of 'template_parameter' objects using the configuration stored in the builder.

func (*TemplateParameterListBuilder) Copy ¶

Copy copies the items of the given list into this builder, discarding any previous items.

func (*TemplateParameterListBuilder) Empty ¶ added in v0.0.329

Empty returns true if the list is empty.

func (*TemplateParameterListBuilder) Items ¶

Items sets the items of the list.

type TokenAuthorizationClient ¶

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

TokenAuthorizationClient is the client of the 'token_authorization' resource.

Token Authorization Handler.

func NewTokenAuthorizationClient ¶

func NewTokenAuthorizationClient(transport http.RoundTripper, path string) *TokenAuthorizationClient

NewTokenAuthorizationClient creates a new client for the 'token_authorization' resource using the given transport to send the requests and receive the responses.

func (*TokenAuthorizationClient) Post ¶

Post creates a request for the 'post' method.

Returns a specific account based on the given pull secret

type TokenAuthorizationPostRequest ¶

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

TokenAuthorizationPostRequest is the request for the 'post' method.

func (*TokenAuthorizationPostRequest) Header ¶

func (r *TokenAuthorizationPostRequest) Header(name string, value interface{}) *TokenAuthorizationPostRequest

Header adds a request header.

func (*TokenAuthorizationPostRequest) Impersonate ¶ added in v0.0.329

Impersonate wraps requests on behalf of another user. Note: Services that do not support this feature may silently ignore this call.

func (*TokenAuthorizationPostRequest) Parameter ¶

func (r *TokenAuthorizationPostRequest) Parameter(name string, value interface{}) *TokenAuthorizationPostRequest

Parameter adds a query parameter.

func (*TokenAuthorizationPostRequest) Request ¶

Request sets the value of the 'request' parameter.

func (*TokenAuthorizationPostRequest) Send ¶

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*TokenAuthorizationPostRequest) SendContext ¶

SendContext sends this request, waits for the response, and returns it.

type TokenAuthorizationPostResponse ¶

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

TokenAuthorizationPostResponse is the response for the 'post' method.

func (*TokenAuthorizationPostResponse) Error ¶

Error returns the response error.

func (*TokenAuthorizationPostResponse) GetResponse ¶

func (r *TokenAuthorizationPostResponse) GetResponse() (value *TokenAuthorizationResponse, ok bool)

GetResponse returns the value of the 'response' parameter and a flag indicating if the parameter has a value.

func (*TokenAuthorizationPostResponse) Header ¶

Header returns header of the response.

func (*TokenAuthorizationPostResponse) Response ¶

Response returns the value of the 'response' parameter.

func (*TokenAuthorizationPostResponse) Status ¶

func (r *TokenAuthorizationPostResponse) Status() int

Status returns the response status code.

type TokenAuthorizationRequest ¶

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

TokenAuthorizationRequest represents the values of the 'token_authorization_request' type.

func UnmarshalTokenAuthorizationRequest ¶

func UnmarshalTokenAuthorizationRequest(source interface{}) (object *TokenAuthorizationRequest, err error)

UnmarshalTokenAuthorizationRequest reads a value of the 'token_authorization_request' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalTokenAuthorizationRequestList ¶

func UnmarshalTokenAuthorizationRequestList(source interface{}) (items []*TokenAuthorizationRequest, err error)

UnmarshalTokenAuthorizationRequestList reads a list of values of the 'token_authorization_request' type from the given source, which can be a slice of bytes, a string or a reader.

func (*TokenAuthorizationRequest) AuthorizationToken ¶

func (o *TokenAuthorizationRequest) AuthorizationToken() string

AuthorizationToken returns the value of the 'authorization_token' attribute, or the zero value of the type if the attribute doesn't have a value.

The pull secret of a given account

func (*TokenAuthorizationRequest) Empty ¶

func (o *TokenAuthorizationRequest) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*TokenAuthorizationRequest) GetAuthorizationToken ¶

func (o *TokenAuthorizationRequest) GetAuthorizationToken() (value string, ok bool)

GetAuthorizationToken returns the value of the 'authorization_token' attribute and a flag indicating if the attribute has a value.

The pull secret of a given account

type TokenAuthorizationRequestBuilder ¶

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

TokenAuthorizationRequestBuilder contains the data and logic needed to build 'token_authorization_request' objects.

func NewTokenAuthorizationRequest ¶

func NewTokenAuthorizationRequest() *TokenAuthorizationRequestBuilder

NewTokenAuthorizationRequest creates a new builder of 'token_authorization_request' objects.

func (*TokenAuthorizationRequestBuilder) AuthorizationToken ¶

AuthorizationToken sets the value of the 'authorization_token' attribute to the given value.

func (*TokenAuthorizationRequestBuilder) Build ¶

Build creates a 'token_authorization_request' object using the configuration stored in the builder.

func (*TokenAuthorizationRequestBuilder) Copy ¶

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*TokenAuthorizationRequestBuilder) Empty ¶ added in v0.0.329

Empty returns true if the builder is empty, i.e. no attribute has a value.

type TokenAuthorizationRequestList ¶

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

TokenAuthorizationRequestList is a list of values of the 'token_authorization_request' type.

func (*TokenAuthorizationRequestList) Each ¶

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*TokenAuthorizationRequestList) Empty ¶

Empty returns true if the list is empty.

func (*TokenAuthorizationRequestList) Get ¶

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*TokenAuthorizationRequestList) Len ¶

Len returns the length of the list.

func (*TokenAuthorizationRequestList) Range ¶

func (l *TokenAuthorizationRequestList) Range(f func(index int, item *TokenAuthorizationRequest) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*TokenAuthorizationRequestList) Slice ¶

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type TokenAuthorizationRequestListBuilder ¶

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

TokenAuthorizationRequestListBuilder contains the data and logic needed to build 'token_authorization_request' objects.

func NewTokenAuthorizationRequestList ¶

func NewTokenAuthorizationRequestList() *TokenAuthorizationRequestListBuilder

NewTokenAuthorizationRequestList creates a new builder of 'token_authorization_request' objects.

func (*TokenAuthorizationRequestListBuilder) Build ¶

Build creates a list of 'token_authorization_request' objects using the configuration stored in the builder.

func (*TokenAuthorizationRequestListBuilder) Copy ¶

Copy copies the items of the given list into this builder, discarding any previous items.

func (*TokenAuthorizationRequestListBuilder) Empty ¶ added in v0.0.329

Empty returns true if the list is empty.

func (*TokenAuthorizationRequestListBuilder) Items ¶

Items sets the items of the list.

type TokenAuthorizationResponse ¶

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

TokenAuthorizationResponse represents the values of the 'token_authorization_response' type.

func UnmarshalTokenAuthorizationResponse ¶

func UnmarshalTokenAuthorizationResponse(source interface{}) (object *TokenAuthorizationResponse, err error)

UnmarshalTokenAuthorizationResponse reads a value of the 'token_authorization_response' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalTokenAuthorizationResponseList ¶

func UnmarshalTokenAuthorizationResponseList(source interface{}) (items []*TokenAuthorizationResponse, err error)

UnmarshalTokenAuthorizationResponseList reads a list of values of the 'token_authorization_response' type from the given source, which can be a slice of bytes, a string or a reader.

func (*TokenAuthorizationResponse) Account ¶

func (o *TokenAuthorizationResponse) Account() *Account

Account returns the value of the 'account' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*TokenAuthorizationResponse) Empty ¶

func (o *TokenAuthorizationResponse) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*TokenAuthorizationResponse) GetAccount ¶

func (o *TokenAuthorizationResponse) GetAccount() (value *Account, ok bool)

GetAccount returns the value of the 'account' attribute and a flag indicating if the attribute has a value.

type TokenAuthorizationResponseBuilder ¶

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

TokenAuthorizationResponseBuilder contains the data and logic needed to build 'token_authorization_response' objects.

func NewTokenAuthorizationResponse ¶

func NewTokenAuthorizationResponse() *TokenAuthorizationResponseBuilder

NewTokenAuthorizationResponse creates a new builder of 'token_authorization_response' objects.

func (*TokenAuthorizationResponseBuilder) Account ¶

Account sets the value of the 'account' attribute to the given value.

func (*TokenAuthorizationResponseBuilder) Build ¶

Build creates a 'token_authorization_response' object using the configuration stored in the builder.

func (*TokenAuthorizationResponseBuilder) Copy ¶

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*TokenAuthorizationResponseBuilder) Empty ¶ added in v0.0.329

Empty returns true if the builder is empty, i.e. no attribute has a value.

type TokenAuthorizationResponseList ¶

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

TokenAuthorizationResponseList is a list of values of the 'token_authorization_response' type.

func (*TokenAuthorizationResponseList) Each ¶

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*TokenAuthorizationResponseList) Empty ¶

Empty returns true if the list is empty.

func (*TokenAuthorizationResponseList) Get ¶

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*TokenAuthorizationResponseList) Len ¶

Len returns the length of the list.

func (*TokenAuthorizationResponseList) Range ¶

func (l *TokenAuthorizationResponseList) Range(f func(index int, item *TokenAuthorizationResponse) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*TokenAuthorizationResponseList) Slice ¶

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type TokenAuthorizationResponseListBuilder ¶

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

TokenAuthorizationResponseListBuilder contains the data and logic needed to build 'token_authorization_response' objects.

func NewTokenAuthorizationResponseList ¶

func NewTokenAuthorizationResponseList() *TokenAuthorizationResponseListBuilder

NewTokenAuthorizationResponseList creates a new builder of 'token_authorization_response' objects.

func (*TokenAuthorizationResponseListBuilder) Build ¶

Build creates a list of 'token_authorization_response' objects using the configuration stored in the builder.

func (*TokenAuthorizationResponseListBuilder) Copy ¶

Copy copies the items of the given list into this builder, discarding any previous items.

func (*TokenAuthorizationResponseListBuilder) Empty ¶ added in v0.0.329

Empty returns true if the list is empty.

func (*TokenAuthorizationResponseListBuilder) Items ¶

Items sets the items of the list.

type ValueUnit ¶ added in v0.0.329

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

ValueUnit represents the values of the 'value_unit' type.

func UnmarshalValueUnit ¶ added in v0.0.329

func UnmarshalValueUnit(source interface{}) (object *ValueUnit, err error)

UnmarshalValueUnit reads a value of the 'value_unit' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalValueUnitList ¶ added in v0.0.329

func UnmarshalValueUnitList(source interface{}) (items []*ValueUnit, err error)

UnmarshalValueUnitList reads a list of values of the 'value_unit' type from the given source, which can be a slice of bytes, a string or a reader.

func (*ValueUnit) Empty ¶ added in v0.0.329

func (o *ValueUnit) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*ValueUnit) GetUnit ¶ added in v0.0.329

func (o *ValueUnit) GetUnit() (value string, ok bool)

GetUnit returns the value of the 'unit' attribute and a flag indicating if the attribute has a value.

func (*ValueUnit) GetValue ¶ added in v0.0.329

func (o *ValueUnit) GetValue() (value float64, ok bool)

GetValue returns the value of the 'value' attribute and a flag indicating if the attribute has a value.

func (*ValueUnit) Unit ¶ added in v0.0.329

func (o *ValueUnit) Unit() string

Unit returns the value of the 'unit' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ValueUnit) Value ¶ added in v0.0.329

func (o *ValueUnit) Value() float64

Value returns the value of the 'value' attribute, or the zero value of the type if the attribute doesn't have a value.

type ValueUnitBuilder ¶ added in v0.0.329

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

ValueUnitBuilder contains the data and logic needed to build 'value_unit' objects.

func NewValueUnit ¶ added in v0.0.329

func NewValueUnit() *ValueUnitBuilder

NewValueUnit creates a new builder of 'value_unit' objects.

func (*ValueUnitBuilder) Build ¶ added in v0.0.329

func (b *ValueUnitBuilder) Build() (object *ValueUnit, err error)

Build creates a 'value_unit' object using the configuration stored in the builder.

func (*ValueUnitBuilder) Copy ¶ added in v0.0.329

func (b *ValueUnitBuilder) Copy(object *ValueUnit) *ValueUnitBuilder

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*ValueUnitBuilder) Empty ¶ added in v0.0.329

func (b *ValueUnitBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*ValueUnitBuilder) Unit ¶ added in v0.0.329

func (b *ValueUnitBuilder) Unit(value string) *ValueUnitBuilder

Unit sets the value of the 'unit' attribute to the given value.

func (*ValueUnitBuilder) Value ¶ added in v0.0.329

func (b *ValueUnitBuilder) Value(value float64) *ValueUnitBuilder

Value sets the value of the 'value' attribute to the given value.

type ValueUnitList ¶ added in v0.0.329

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

ValueUnitList is a list of values of the 'value_unit' type.

func (*ValueUnitList) Each ¶ added in v0.0.329

func (l *ValueUnitList) Each(f func(item *ValueUnit) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*ValueUnitList) Empty ¶ added in v0.0.329

func (l *ValueUnitList) Empty() bool

Empty returns true if the list is empty.

func (*ValueUnitList) Get ¶ added in v0.0.329

func (l *ValueUnitList) Get(i int) *ValueUnit

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*ValueUnitList) Len ¶ added in v0.0.329

func (l *ValueUnitList) Len() int

Len returns the length of the list.

func (*ValueUnitList) Range ¶ added in v0.0.329

func (l *ValueUnitList) Range(f func(index int, item *ValueUnit) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*ValueUnitList) Slice ¶ added in v0.0.329

func (l *ValueUnitList) Slice() []*ValueUnit

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type ValueUnitListBuilder ¶ added in v0.0.329

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

ValueUnitListBuilder contains the data and logic needed to build 'value_unit' objects.

func NewValueUnitList ¶ added in v0.0.329

func NewValueUnitList() *ValueUnitListBuilder

NewValueUnitList creates a new builder of 'value_unit' objects.

func (*ValueUnitListBuilder) Build ¶ added in v0.0.329

func (b *ValueUnitListBuilder) Build() (list *ValueUnitList, err error)

Build creates a list of 'value_unit' objects using the configuration stored in the builder.

func (*ValueUnitListBuilder) Copy ¶ added in v0.0.329

Copy copies the items of the given list into this builder, discarding any previous items.

func (*ValueUnitListBuilder) Empty ¶ added in v0.0.329

func (b *ValueUnitListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*ValueUnitListBuilder) Items ¶ added in v0.0.329

Items sets the items of the list.

Source Files ¶

Jump to

Keyboard shortcuts

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