Documentation ¶
Overview ¶
Package gkehub provides access to the GKE Hub API.
For product documentation, see: https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster
Creating a client ¶
Usage example:
import "google.golang.org/api/gkehub/v2alpha" ... ctx := context.Background() gkehubService, err := gkehub.NewService(ctx)
In this example, Google Application Default Credentials are used for authentication.
For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options ¶
To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
gkehubService, err := gkehub.NewService(ctx, option.WithAPIKey("AIza..."))
To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:
config := &oauth2.Config{...} // ... token, err := config.Exchange(ctx, ...) gkehubService, err := gkehub.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
See https://godoc.org/google.golang.org/api/option/ for details on options.
Index ¶
- Constants
- type CancelOperationRequest
- type Empty
- type FeatureConfig
- type FeatureConfigRef
- type FeatureConfigState
- type FeatureSpec
- type FeatureState
- type GoogleRpcStatus
- type ListFeatureConfigsResponse
- type ListLocationsResponse
- type ListMembershipFeaturesResponse
- type ListOperationsResponse
- type Location
- type MembershipFeature
- type Operation
- type OperationMetadata
- type ProjectsLocationsFeatureConfigsCreateCall
- func (c *ProjectsLocationsFeatureConfigsCreateCall) Context(ctx context.Context) *ProjectsLocationsFeatureConfigsCreateCall
- func (c *ProjectsLocationsFeatureConfigsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsFeatureConfigsCreateCall) FeatureConfigId(featureConfigId string) *ProjectsLocationsFeatureConfigsCreateCall
- func (c *ProjectsLocationsFeatureConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureConfigsCreateCall
- func (c *ProjectsLocationsFeatureConfigsCreateCall) Header() http.Header
- func (c *ProjectsLocationsFeatureConfigsCreateCall) RequestId(requestId string) *ProjectsLocationsFeatureConfigsCreateCall
- type ProjectsLocationsFeatureConfigsDeleteCall
- func (c *ProjectsLocationsFeatureConfigsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureConfigsDeleteCall
- func (c *ProjectsLocationsFeatureConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsFeatureConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureConfigsDeleteCall
- func (c *ProjectsLocationsFeatureConfigsDeleteCall) Header() http.Header
- func (c *ProjectsLocationsFeatureConfigsDeleteCall) RequestId(requestId string) *ProjectsLocationsFeatureConfigsDeleteCall
- type ProjectsLocationsFeatureConfigsGetCall
- func (c *ProjectsLocationsFeatureConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureConfigsGetCall
- func (c *ProjectsLocationsFeatureConfigsGetCall) Do(opts ...googleapi.CallOption) (*FeatureConfig, error)
- func (c *ProjectsLocationsFeatureConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureConfigsGetCall
- func (c *ProjectsLocationsFeatureConfigsGetCall) Header() http.Header
- func (c *ProjectsLocationsFeatureConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureConfigsGetCall
- type ProjectsLocationsFeatureConfigsListCall
- func (c *ProjectsLocationsFeatureConfigsListCall) Context(ctx context.Context) *ProjectsLocationsFeatureConfigsListCall
- func (c *ProjectsLocationsFeatureConfigsListCall) Do(opts ...googleapi.CallOption) (*ListFeatureConfigsResponse, error)
- func (c *ProjectsLocationsFeatureConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureConfigsListCall
- func (c *ProjectsLocationsFeatureConfigsListCall) Filter(filter string) *ProjectsLocationsFeatureConfigsListCall
- func (c *ProjectsLocationsFeatureConfigsListCall) Header() http.Header
- func (c *ProjectsLocationsFeatureConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureConfigsListCall
- func (c *ProjectsLocationsFeatureConfigsListCall) OrderBy(orderBy string) *ProjectsLocationsFeatureConfigsListCall
- func (c *ProjectsLocationsFeatureConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureConfigsListCall
- func (c *ProjectsLocationsFeatureConfigsListCall) PageToken(pageToken string) *ProjectsLocationsFeatureConfigsListCall
- func (c *ProjectsLocationsFeatureConfigsListCall) Pages(ctx context.Context, f func(*ListFeatureConfigsResponse) error) error
- type ProjectsLocationsFeatureConfigsService
- func (r *ProjectsLocationsFeatureConfigsService) Create(parent string, featureconfig *FeatureConfig) *ProjectsLocationsFeatureConfigsCreateCall
- func (r *ProjectsLocationsFeatureConfigsService) Delete(name string) *ProjectsLocationsFeatureConfigsDeleteCall
- func (r *ProjectsLocationsFeatureConfigsService) Get(name string) *ProjectsLocationsFeatureConfigsGetCall
- func (r *ProjectsLocationsFeatureConfigsService) List(parent string) *ProjectsLocationsFeatureConfigsListCall
- type ProjectsLocationsGetCall
- func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall
- func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error)
- func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall
- func (c *ProjectsLocationsGetCall) Header() http.Header
- func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall
- type ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error)
- func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Header() http.Header
- func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error
- type ProjectsLocationsMembershipsFeaturesCreateCall
- func (c *ProjectsLocationsMembershipsFeaturesCreateCall) Context(ctx context.Context) *ProjectsLocationsMembershipsFeaturesCreateCall
- func (c *ProjectsLocationsMembershipsFeaturesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsMembershipsFeaturesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsFeaturesCreateCall
- func (c *ProjectsLocationsMembershipsFeaturesCreateCall) Header() http.Header
- func (c *ProjectsLocationsMembershipsFeaturesCreateCall) RequestId(requestId string) *ProjectsLocationsMembershipsFeaturesCreateCall
- type ProjectsLocationsMembershipsFeaturesDeleteCall
- func (c *ProjectsLocationsMembershipsFeaturesDeleteCall) Context(ctx context.Context) *ProjectsLocationsMembershipsFeaturesDeleteCall
- func (c *ProjectsLocationsMembershipsFeaturesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsMembershipsFeaturesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsFeaturesDeleteCall
- func (c *ProjectsLocationsMembershipsFeaturesDeleteCall) Header() http.Header
- func (c *ProjectsLocationsMembershipsFeaturesDeleteCall) RequestId(requestId string) *ProjectsLocationsMembershipsFeaturesDeleteCall
- type ProjectsLocationsMembershipsFeaturesGetCall
- func (c *ProjectsLocationsMembershipsFeaturesGetCall) Context(ctx context.Context) *ProjectsLocationsMembershipsFeaturesGetCall
- func (c *ProjectsLocationsMembershipsFeaturesGetCall) Do(opts ...googleapi.CallOption) (*MembershipFeature, error)
- func (c *ProjectsLocationsMembershipsFeaturesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsFeaturesGetCall
- func (c *ProjectsLocationsMembershipsFeaturesGetCall) Header() http.Header
- func (c *ProjectsLocationsMembershipsFeaturesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMembershipsFeaturesGetCall
- type ProjectsLocationsMembershipsFeaturesListCall
- func (c *ProjectsLocationsMembershipsFeaturesListCall) Context(ctx context.Context) *ProjectsLocationsMembershipsFeaturesListCall
- func (c *ProjectsLocationsMembershipsFeaturesListCall) Do(opts ...googleapi.CallOption) (*ListMembershipFeaturesResponse, error)
- func (c *ProjectsLocationsMembershipsFeaturesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsFeaturesListCall
- func (c *ProjectsLocationsMembershipsFeaturesListCall) Filter(filter string) *ProjectsLocationsMembershipsFeaturesListCall
- func (c *ProjectsLocationsMembershipsFeaturesListCall) Header() http.Header
- func (c *ProjectsLocationsMembershipsFeaturesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMembershipsFeaturesListCall
- func (c *ProjectsLocationsMembershipsFeaturesListCall) OrderBy(orderBy string) *ProjectsLocationsMembershipsFeaturesListCall
- func (c *ProjectsLocationsMembershipsFeaturesListCall) PageSize(pageSize int64) *ProjectsLocationsMembershipsFeaturesListCall
- func (c *ProjectsLocationsMembershipsFeaturesListCall) PageToken(pageToken string) *ProjectsLocationsMembershipsFeaturesListCall
- func (c *ProjectsLocationsMembershipsFeaturesListCall) Pages(ctx context.Context, f func(*ListMembershipFeaturesResponse) error) error
- type ProjectsLocationsMembershipsFeaturesPatchCall
- func (c *ProjectsLocationsMembershipsFeaturesPatchCall) Context(ctx context.Context) *ProjectsLocationsMembershipsFeaturesPatchCall
- func (c *ProjectsLocationsMembershipsFeaturesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsMembershipsFeaturesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsFeaturesPatchCall
- func (c *ProjectsLocationsMembershipsFeaturesPatchCall) Header() http.Header
- func (c *ProjectsLocationsMembershipsFeaturesPatchCall) RequestId(requestId string) *ProjectsLocationsMembershipsFeaturesPatchCall
- func (c *ProjectsLocationsMembershipsFeaturesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsMembershipsFeaturesPatchCall
- type ProjectsLocationsMembershipsFeaturesService
- func (r *ProjectsLocationsMembershipsFeaturesService) Create(parent string, membershipfeature *MembershipFeature) *ProjectsLocationsMembershipsFeaturesCreateCall
- func (r *ProjectsLocationsMembershipsFeaturesService) Delete(name string) *ProjectsLocationsMembershipsFeaturesDeleteCall
- func (r *ProjectsLocationsMembershipsFeaturesService) Get(name string) *ProjectsLocationsMembershipsFeaturesGetCall
- func (r *ProjectsLocationsMembershipsFeaturesService) List(parent string) *ProjectsLocationsMembershipsFeaturesListCall
- func (r *ProjectsLocationsMembershipsFeaturesService) Patch(nameid string, membershipfeature *MembershipFeature) *ProjectsLocationsMembershipsFeaturesPatchCall
- type ProjectsLocationsMembershipsService
- type ProjectsLocationsOperationsCancelCall
- func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall
- func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall
- func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header
- type ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Header() http.Header
- func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall
- type ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error)
- func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Header() http.Header
- func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error
- type ProjectsLocationsOperationsService
- func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall
- func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall
- func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall
- type ProjectsLocationsService
- type ProjectsService
- type ResourceState
- type Service
- type State
Constants ¶
const ( // See, edit, configure, and delete your Google Cloud data and see the // email address for your Google Account. CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" )
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CancelOperationRequest ¶
type CancelOperationRequest struct { }
CancelOperationRequest: The request message for Operations.CancelOperation.
type Empty ¶
type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` }
Empty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
type FeatureConfig ¶
type FeatureConfig struct { // CreateTime: Output only. When the FeatureConfig resource was created. CreateTime string `json:"createTime,omitempty"` // DeleteTime: Output only. When the FeatureConfig resource was deleted. DeleteTime string `json:"deleteTime,omitempty"` // Labels: GCP labels for this FeatureConfig. Labels map[string]string `json:"labels,omitempty"` // Name: Output only. Resource name of this FeatureConfig, in the // format: // `projects/{project}/locations/global/FeatureConfigs/{feature_type}/{fe // ature_config}` Name string `json:"name,omitempty"` // Spec: Input only. Immutable. User input of feature spec. Note that // this field is immutable. Must create a new FeatureConfig if a new // feature spec is needed. Spec *FeatureSpec `json:"spec,omitempty"` // State: Lifecycle information of the FeatureConfig. State *FeatureConfigState `json:"state,omitempty"` // UniqueId: Output only. Google-generated UUID for this resource. This // is unique across all FeatureConfig resources. If a Membership // resource is deleted and another resource with the same name is // created, it gets a different unique_id. UniqueId string `json:"uniqueId,omitempty"` // UpdateTime: Output only. When the FeatureConfig resource was last // updated. UpdateTime string `json:"updateTime,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreateTime") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CreateTime") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
FeatureConfig: FeatureConfig contains configurations for a Fleet feature. FeatureConfig can be applied to MembershipFeature(s) to setup per-membership FeatureSpec.
func (*FeatureConfig) MarshalJSON ¶
func (s *FeatureConfig) MarshalJSON() ([]byte, error)
type FeatureConfigRef ¶
type FeatureConfigRef struct { // Config: Input only. Resource name of FeatureConfig, in the format: // `projects/{project}/locations/global/featureConfigs/{feature_config}`. Config string `json:"config,omitempty"` // ConfigUpdateTime: Output only. When the FeatureConfig was last // applied and copied to FeatureSpec. ConfigUpdateTime string `json:"configUpdateTime,omitempty"` // Uuid: Output only. An id that uniquely identify a FeatureConfig // object. Uuid string `json:"uuid,omitempty"` // ForceSendFields is a list of field names (e.g. "Config") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Config") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
FeatureConfigRef: Information of the FeatureConfig applied on the MembershipFeature.
func (*FeatureConfigRef) MarshalJSON ¶
func (s *FeatureConfigRef) MarshalJSON() ([]byte, error)
type FeatureConfigState ¶
type FeatureConfigState struct { // State: Output only. The current state of the FeatureConfig resource. // // Possible values: // "STATE_UNSPECIFIED" - The code is not set. // "CREATING" - The FeatureConfig is being created. // "ACTIVE" - The FeatureConfig has been created. // "DELETING" - The FeatureConfig is being deleted. State string `json:"state,omitempty"` // ForceSendFields is a list of field names (e.g. "State") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "State") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
FeatureConfigState: FeatureConfigState describes the state of a FeatureConfig resource.
func (*FeatureConfigState) MarshalJSON ¶
func (s *FeatureConfigState) MarshalJSON() ([]byte, error)
type FeatureSpec ¶
type FeatureSpec struct { }
FeatureSpec: FeatureSpec contains user input per-feature spec information.
type FeatureState ¶
type FeatureState struct { // State: The high-level state of this MembershipFeature. State *State `json:"state,omitempty"` // ForceSendFields is a list of field names (e.g. "State") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "State") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
FeatureState: FeatureState contains high-level state information and per-feature state information for this MembershipFeature.
func (*FeatureState) MarshalJSON ¶
func (s *FeatureState) MarshalJSON() ([]byte, error)
type GoogleRpcStatus ¶
type GoogleRpcStatus struct { // Code: The status code, which should be an enum value of // google.rpc.Code. Code int64 `json:"code,omitempty"` // Details: A list of messages that carry the error details. There is a // common set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` // Message: A developer-facing error message, which should be in // English. Any user-facing error message should be localized and sent // in the google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` // ForceSendFields is a list of field names (e.g. "Code") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Code") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleRpcStatus: The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors).
func (*GoogleRpcStatus) MarshalJSON ¶
func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error)
type ListFeatureConfigsResponse ¶
type ListFeatureConfigsResponse struct { // FeatureConfigs: The list of FeatureConfig(s). FeatureConfigs []*FeatureConfig `json:"featureConfigs,omitempty"` // NextPageToken: A token to request the next page of resources from the // `ListFeatureConfigs` method. The value of an empty string means that // there are no more resources to return. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "FeatureConfigs") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "FeatureConfigs") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ListFeatureConfigsResponse: Response message for the `GkeHubFeature.ListFeatureConfigs` method.
func (*ListFeatureConfigsResponse) MarshalJSON ¶
func (s *ListFeatureConfigsResponse) MarshalJSON() ([]byte, error)
type ListLocationsResponse ¶
type ListLocationsResponse struct { // Locations: A list of locations that matches the specified filter in // the request. Locations []*Location `json:"locations,omitempty"` // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Locations") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Locations") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListLocationsResponse: The response message for Locations.ListLocations.
func (*ListLocationsResponse) MarshalJSON ¶
func (s *ListLocationsResponse) MarshalJSON() ([]byte, error)
type ListMembershipFeaturesResponse ¶
type ListMembershipFeaturesResponse struct { // MembershipFeatures: The list of matching MembershipFeatures. MembershipFeatures []*MembershipFeature `json:"membershipFeatures,omitempty"` // NextPageToken: A token to request the next page of resources from the // `ListMembershipFeatures` method. The value of an empty string means // that there are no more resources to return. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "MembershipFeatures") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "MembershipFeatures") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ListMembershipFeaturesResponse: Response message for the `GkeHubFeature.ListMembershipFeatures` method.
func (*ListMembershipFeaturesResponse) MarshalJSON ¶
func (s *ListMembershipFeaturesResponse) MarshalJSON() ([]byte, error)
type ListOperationsResponse ¶
type ListOperationsResponse struct { // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` // Operations: A list of operations that matches the specified filter in // the request. Operations []*Operation `json:"operations,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListOperationsResponse: The response message for Operations.ListOperations.
func (*ListOperationsResponse) MarshalJSON ¶
func (s *ListOperationsResponse) MarshalJSON() ([]byte, error)
type Location ¶
type Location struct { // DisplayName: The friendly name for this location, typically a nearby // city name. For example, "Tokyo". DisplayName string `json:"displayName,omitempty"` // Labels: Cross-service attributes for the location. For example // {"cloud.googleapis.com/region": "us-east1"} Labels map[string]string `json:"labels,omitempty"` // LocationId: The canonical id for this location. For example: // "us-east1". LocationId string `json:"locationId,omitempty"` // Metadata: Service-specific metadata. For example the available // capacity at the given location. Metadata googleapi.RawMessage `json:"metadata,omitempty"` // Name: Resource name for the location, which may vary between // implementations. For example: // "projects/example-project/locations/us-east1" Name string `json:"name,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "DisplayName") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DisplayName") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Location: A resource that represents Google Cloud Platform location.
func (*Location) MarshalJSON ¶
type MembershipFeature ¶
type MembershipFeature struct { // CreateTime: Output only. When the MembershipFeature resource was // created. CreateTime string `json:"createTime,omitempty"` // DeleteTime: Output only. When the MembershipFeature resource was // deleted. DeleteTime string `json:"deleteTime,omitempty"` // FeatureConfigRef: Reference information for a FeatureConfig applied // on the MembershipFeature. FeatureConfigRef *FeatureConfigRef `json:"featureConfigRef,omitempty"` // Labels: GCP labels for this MembershipFeature. Labels map[string]string `json:"labels,omitempty"` // Name: Output only. The resource name of the membershipFeature, in the // format: // `projects/{project}/locations/{location}/memberships/{membership}/feat // ures/{feature}`. Note that `membershipFeatures` is shortened to // `features` in the resource name. (see // http://go/aip/122#collection-identifiers) Name string `json:"name,omitempty"` // ResourceState: Lifecycle information of the resource itself. ResourceState *ResourceState `json:"resourceState,omitempty"` // Spec: Output only. Spec of this membershipFeature. Spec *FeatureSpec `json:"spec,omitempty"` // State: Output only. State of the this membershipFeature. State *FeatureState `json:"state,omitempty"` // UpdateTime: Output only. When the MembershipFeature resource was last // updated. UpdateTime string `json:"updateTime,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreateTime") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CreateTime") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
MembershipFeature: MembershipFeature represents the settings and status of a Fleet Feature enabled on a single Fleet Membership.
func (*MembershipFeature) MarshalJSON ¶
func (s *MembershipFeature) MarshalJSON() ([]byte, error)
type Operation ¶
type Operation struct { // Done: If the value is `false`, it means the operation is still in // progress. If `true`, the operation is completed, and either `error` // or `response` is available. Done bool `json:"done,omitempty"` // Error: The error result of the operation in case of failure or // cancellation. Error *GoogleRpcStatus `json:"error,omitempty"` // Metadata: Service-specific metadata associated with the operation. It // typically contains progress information and common metadata such as // create time. Some services might not provide such metadata. Any // method that returns a long-running operation should document the // metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` // Name: The server-assigned name, which is only unique within the same // service that originally returns it. If you use the default HTTP // mapping, the `name` should be a resource name ending with // `operations/{unique_id}`. Name string `json:"name,omitempty"` // Response: The normal response of the operation in case of success. If // the original method returns no data on success, such as `Delete`, the // response is `google.protobuf.Empty`. If the original method is // standard `Get`/`Create`/`Update`, the response should be the // resource. For other methods, the response should have the type // `XxxResponse`, where `Xxx` is the original method name. For example, // if the original method name is `TakeSnapshot()`, the inferred // response type is `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Done") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Done") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Operation: This resource represents a long-running operation that is the result of a network API call.
func (*Operation) MarshalJSON ¶
type OperationMetadata ¶
type OperationMetadata struct { // ApiVersion: Output only. API version used to start the operation. ApiVersion string `json:"apiVersion,omitempty"` // CancelRequested: Output only. Identifies whether the user has // requested cancellation of the operation. Operations that have // successfully been cancelled have Operation.error value with a // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. CancelRequested bool `json:"cancelRequested,omitempty"` // CreateTime: Output only. The time the operation was created. CreateTime string `json:"createTime,omitempty"` // EndTime: Output only. The time the operation finished running. EndTime string `json:"endTime,omitempty"` // StatusDetail: Output only. Human-readable status of the operation, if // any. StatusDetail string `json:"statusDetail,omitempty"` // Target: Output only. Server-defined resource path for the target of // the operation. Target string `json:"target,omitempty"` // Verb: Output only. Name of the verb executed by the operation. Verb string `json:"verb,omitempty"` // ForceSendFields is a list of field names (e.g. "ApiVersion") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ApiVersion") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
OperationMetadata: Metadata of the long-running operation.
func (*OperationMetadata) MarshalJSON ¶
func (s *OperationMetadata) MarshalJSON() ([]byte, error)
type ProjectsLocationsFeatureConfigsCreateCall ¶
type ProjectsLocationsFeatureConfigsCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsFeatureConfigsCreateCall) Context ¶
func (c *ProjectsLocationsFeatureConfigsCreateCall) Context(ctx context.Context) *ProjectsLocationsFeatureConfigsCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsFeatureConfigsCreateCall) Do ¶
func (c *ProjectsLocationsFeatureConfigsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "gkehub.projects.locations.featureConfigs.create" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsFeatureConfigsCreateCall) FeatureConfigId ¶
func (c *ProjectsLocationsFeatureConfigsCreateCall) FeatureConfigId(featureConfigId string) *ProjectsLocationsFeatureConfigsCreateCall
FeatureConfigId sets the optional parameter "featureConfigId": The ID of the feature config to create.
func (*ProjectsLocationsFeatureConfigsCreateCall) Fields ¶
func (c *ProjectsLocationsFeatureConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureConfigsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsFeatureConfigsCreateCall) Header ¶
func (c *ProjectsLocationsFeatureConfigsCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsFeatureConfigsCreateCall) RequestId ¶
func (c *ProjectsLocationsFeatureConfigsCreateCall) RequestId(requestId string) *ProjectsLocationsFeatureConfigsCreateCall
RequestId sets the optional parameter "requestId": Idempotent request UUID.
type ProjectsLocationsFeatureConfigsDeleteCall ¶
type ProjectsLocationsFeatureConfigsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsFeatureConfigsDeleteCall) Context ¶
func (c *ProjectsLocationsFeatureConfigsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureConfigsDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsFeatureConfigsDeleteCall) Do ¶
func (c *ProjectsLocationsFeatureConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "gkehub.projects.locations.featureConfigs.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsFeatureConfigsDeleteCall) Fields ¶
func (c *ProjectsLocationsFeatureConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureConfigsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsFeatureConfigsDeleteCall) Header ¶
func (c *ProjectsLocationsFeatureConfigsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsFeatureConfigsDeleteCall) RequestId ¶
func (c *ProjectsLocationsFeatureConfigsDeleteCall) RequestId(requestId string) *ProjectsLocationsFeatureConfigsDeleteCall
RequestId sets the optional parameter "requestId": Idempotent request UUID.
type ProjectsLocationsFeatureConfigsGetCall ¶
type ProjectsLocationsFeatureConfigsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsFeatureConfigsGetCall) Context ¶
func (c *ProjectsLocationsFeatureConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureConfigsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsFeatureConfigsGetCall) Do ¶
func (c *ProjectsLocationsFeatureConfigsGetCall) Do(opts ...googleapi.CallOption) (*FeatureConfig, error)
Do executes the "gkehub.projects.locations.featureConfigs.get" call. Exactly one of *FeatureConfig or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *FeatureConfig.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsFeatureConfigsGetCall) Fields ¶
func (c *ProjectsLocationsFeatureConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureConfigsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsFeatureConfigsGetCall) Header ¶
func (c *ProjectsLocationsFeatureConfigsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsFeatureConfigsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsFeatureConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureConfigsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsFeatureConfigsListCall ¶
type ProjectsLocationsFeatureConfigsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsFeatureConfigsListCall) Context ¶
func (c *ProjectsLocationsFeatureConfigsListCall) Context(ctx context.Context) *ProjectsLocationsFeatureConfigsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsFeatureConfigsListCall) Do ¶
func (c *ProjectsLocationsFeatureConfigsListCall) Do(opts ...googleapi.CallOption) (*ListFeatureConfigsResponse, error)
Do executes the "gkehub.projects.locations.featureConfigs.list" call. Exactly one of *ListFeatureConfigsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListFeatureConfigsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsFeatureConfigsListCall) Fields ¶
func (c *ProjectsLocationsFeatureConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureConfigsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsFeatureConfigsListCall) Filter ¶
func (c *ProjectsLocationsFeatureConfigsListCall) Filter(filter string) *ProjectsLocationsFeatureConfigsListCall
Filter sets the optional parameter "filter": Lists FeatureConfigs that match the filter expression, following the syntax outlined in https://google.aip.dev/160.
func (*ProjectsLocationsFeatureConfigsListCall) Header ¶
func (c *ProjectsLocationsFeatureConfigsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsFeatureConfigsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsFeatureConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureConfigsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsFeatureConfigsListCall) OrderBy ¶
func (c *ProjectsLocationsFeatureConfigsListCall) OrderBy(orderBy string) *ProjectsLocationsFeatureConfigsListCall
OrderBy sets the optional parameter "orderBy": One or more fields to compare and use to sort the output. See https://google.aip.dev/132#ordering.
func (*ProjectsLocationsFeatureConfigsListCall) PageSize ¶
func (c *ProjectsLocationsFeatureConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureConfigsListCall
PageSize sets the optional parameter "pageSize": When requesting a 'page' of resources, `page_size` specifies number of resources to return. If unspecified or set to 0, all resources will be returned.
func (*ProjectsLocationsFeatureConfigsListCall) PageToken ¶
func (c *ProjectsLocationsFeatureConfigsListCall) PageToken(pageToken string) *ProjectsLocationsFeatureConfigsListCall
PageToken sets the optional parameter "pageToken": Token returned by previous call to `ListFeatures` which specifies the position in the list from where to continue listing the resources.
func (*ProjectsLocationsFeatureConfigsListCall) Pages ¶
func (c *ProjectsLocationsFeatureConfigsListCall) Pages(ctx context.Context, f func(*ListFeatureConfigsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsFeatureConfigsService ¶
type ProjectsLocationsFeatureConfigsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsFeatureConfigsService ¶
func NewProjectsLocationsFeatureConfigsService(s *Service) *ProjectsLocationsFeatureConfigsService
func (*ProjectsLocationsFeatureConfigsService) Create ¶
func (r *ProjectsLocationsFeatureConfigsService) Create(parent string, featureconfig *FeatureConfig) *ProjectsLocationsFeatureConfigsCreateCall
Create: Creates FeatureConfig under a given parent.
- parent: The name of parent where the FeatureConfig will be created. Specified in the format `projects/{project}/locations/global/featureConfigs/{feature_type}/{ feature_config}/`.
func (*ProjectsLocationsFeatureConfigsService) Delete ¶
func (r *ProjectsLocationsFeatureConfigsService) Delete(name string) *ProjectsLocationsFeatureConfigsDeleteCall
Delete: Removes a FeatureConfig.
- name: The name of the membershipFeature to be deleted. Specified in the format `projects/*/locations/*/featureConfigs/**`.
func (*ProjectsLocationsFeatureConfigsService) Get ¶
func (r *ProjectsLocationsFeatureConfigsService) Get(name string) *ProjectsLocationsFeatureConfigsGetCall
Get: ========= FeatureConfig Services ========= Gets details of a featureConfig.
- name: The FeatureConfig resource name in the format `projects/*/locations/*/featureConfigs/**`.
func (*ProjectsLocationsFeatureConfigsService) List ¶
func (r *ProjectsLocationsFeatureConfigsService) List(parent string) *ProjectsLocationsFeatureConfigsListCall
List: Lists all FeatureConfigs in a given project and location.
- parent: The parent where the FeatureConfigs will be listed. In the format: `projects/*/locations/*`.
type ProjectsLocationsGetCall ¶
type ProjectsLocationsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsGetCall) Context ¶
func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsGetCall) Do ¶
func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error)
Do executes the "gkehub.projects.locations.get" call. Exactly one of *Location or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Location.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsGetCall) Fields ¶
func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsGetCall) Header ¶
func (c *ProjectsLocationsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsListCall ¶
type ProjectsLocationsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsListCall) Context ¶
func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsListCall) Do ¶
func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error)
Do executes the "gkehub.projects.locations.list" call. Exactly one of *ListLocationsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListLocationsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsListCall) Fields ¶
func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsListCall) Filter ¶
func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall
Filter sets the optional parameter "filter": A filter to narrow down results to a preferred subset. The filtering language accepts strings like "displayName=tokyo", and is documented in more detail in AIP-160 (https://google.aip.dev/160).
func (*ProjectsLocationsListCall) Header ¶
func (c *ProjectsLocationsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsListCall) PageSize ¶
func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall
PageSize sets the optional parameter "pageSize": The maximum number of results to return. If not set, the service selects a default.
func (*ProjectsLocationsListCall) PageToken ¶
func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall
PageToken sets the optional parameter "pageToken": A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.
func (*ProjectsLocationsListCall) Pages ¶
func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsMembershipsFeaturesCreateCall ¶
type ProjectsLocationsMembershipsFeaturesCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsMembershipsFeaturesCreateCall) Context ¶
func (c *ProjectsLocationsMembershipsFeaturesCreateCall) Context(ctx context.Context) *ProjectsLocationsMembershipsFeaturesCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsMembershipsFeaturesCreateCall) Do ¶
func (c *ProjectsLocationsMembershipsFeaturesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "gkehub.projects.locations.memberships.features.create" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsMembershipsFeaturesCreateCall) Fields ¶
func (c *ProjectsLocationsMembershipsFeaturesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsFeaturesCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsMembershipsFeaturesCreateCall) Header ¶
func (c *ProjectsLocationsMembershipsFeaturesCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsMembershipsFeaturesCreateCall) RequestId ¶
func (c *ProjectsLocationsMembershipsFeaturesCreateCall) RequestId(requestId string) *ProjectsLocationsMembershipsFeaturesCreateCall
RequestId sets the optional parameter "requestId": Idempotent request UUID.
type ProjectsLocationsMembershipsFeaturesDeleteCall ¶
type ProjectsLocationsMembershipsFeaturesDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsMembershipsFeaturesDeleteCall) Context ¶
func (c *ProjectsLocationsMembershipsFeaturesDeleteCall) Context(ctx context.Context) *ProjectsLocationsMembershipsFeaturesDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsMembershipsFeaturesDeleteCall) Do ¶
func (c *ProjectsLocationsMembershipsFeaturesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "gkehub.projects.locations.memberships.features.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsMembershipsFeaturesDeleteCall) Fields ¶
func (c *ProjectsLocationsMembershipsFeaturesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsFeaturesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsMembershipsFeaturesDeleteCall) Header ¶
func (c *ProjectsLocationsMembershipsFeaturesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsMembershipsFeaturesDeleteCall) RequestId ¶
func (c *ProjectsLocationsMembershipsFeaturesDeleteCall) RequestId(requestId string) *ProjectsLocationsMembershipsFeaturesDeleteCall
RequestId sets the optional parameter "requestId": Idempotent request UUID.
type ProjectsLocationsMembershipsFeaturesGetCall ¶
type ProjectsLocationsMembershipsFeaturesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsMembershipsFeaturesGetCall) Context ¶
func (c *ProjectsLocationsMembershipsFeaturesGetCall) Context(ctx context.Context) *ProjectsLocationsMembershipsFeaturesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsMembershipsFeaturesGetCall) Do ¶
func (c *ProjectsLocationsMembershipsFeaturesGetCall) Do(opts ...googleapi.CallOption) (*MembershipFeature, error)
Do executes the "gkehub.projects.locations.memberships.features.get" call. Exactly one of *MembershipFeature or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *MembershipFeature.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsMembershipsFeaturesGetCall) Fields ¶
func (c *ProjectsLocationsMembershipsFeaturesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsFeaturesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsMembershipsFeaturesGetCall) Header ¶
func (c *ProjectsLocationsMembershipsFeaturesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsMembershipsFeaturesGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsMembershipsFeaturesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMembershipsFeaturesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsMembershipsFeaturesListCall ¶
type ProjectsLocationsMembershipsFeaturesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsMembershipsFeaturesListCall) Context ¶
func (c *ProjectsLocationsMembershipsFeaturesListCall) Context(ctx context.Context) *ProjectsLocationsMembershipsFeaturesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsMembershipsFeaturesListCall) Do ¶
func (c *ProjectsLocationsMembershipsFeaturesListCall) Do(opts ...googleapi.CallOption) (*ListMembershipFeaturesResponse, error)
Do executes the "gkehub.projects.locations.memberships.features.list" call. Exactly one of *ListMembershipFeaturesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListMembershipFeaturesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsMembershipsFeaturesListCall) Fields ¶
func (c *ProjectsLocationsMembershipsFeaturesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsFeaturesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsMembershipsFeaturesListCall) Filter ¶
func (c *ProjectsLocationsMembershipsFeaturesListCall) Filter(filter string) *ProjectsLocationsMembershipsFeaturesListCall
Filter sets the optional parameter "filter": Lists MembershipFeatures that match the filter expression, following the syntax outlined in https://google.aip.dev/160. Examples: - Feature with the name "helloworld" in project "foo-proj" and membership "member-bar": name = "projects/foo-proj/locations/global/memberships/member-bar/features/he lloworld" - Features that have a label called `foo`: labels.foo:* - Features that have a label called `foo` whose value is `bar`: labels.foo = bar
func (*ProjectsLocationsMembershipsFeaturesListCall) Header ¶
func (c *ProjectsLocationsMembershipsFeaturesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsMembershipsFeaturesListCall) IfNoneMatch ¶
func (c *ProjectsLocationsMembershipsFeaturesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMembershipsFeaturesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsMembershipsFeaturesListCall) OrderBy ¶
func (c *ProjectsLocationsMembershipsFeaturesListCall) OrderBy(orderBy string) *ProjectsLocationsMembershipsFeaturesListCall
OrderBy sets the optional parameter "orderBy": One or more fields to compare and use to sort the output. See https://google.aip.dev/132#ordering.
func (*ProjectsLocationsMembershipsFeaturesListCall) PageSize ¶
func (c *ProjectsLocationsMembershipsFeaturesListCall) PageSize(pageSize int64) *ProjectsLocationsMembershipsFeaturesListCall
PageSize sets the optional parameter "pageSize": When requesting a 'page' of resources, `page_size` specifies number of resources to return. If unspecified or set to 0, all resources will be returned.
func (*ProjectsLocationsMembershipsFeaturesListCall) PageToken ¶
func (c *ProjectsLocationsMembershipsFeaturesListCall) PageToken(pageToken string) *ProjectsLocationsMembershipsFeaturesListCall
PageToken sets the optional parameter "pageToken": Token returned by previous call to `ListFeatures` which specifies the position in the list from where to continue listing the resources.
func (*ProjectsLocationsMembershipsFeaturesListCall) Pages ¶
func (c *ProjectsLocationsMembershipsFeaturesListCall) Pages(ctx context.Context, f func(*ListMembershipFeaturesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsMembershipsFeaturesPatchCall ¶
type ProjectsLocationsMembershipsFeaturesPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsMembershipsFeaturesPatchCall) Context ¶
func (c *ProjectsLocationsMembershipsFeaturesPatchCall) Context(ctx context.Context) *ProjectsLocationsMembershipsFeaturesPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsMembershipsFeaturesPatchCall) Do ¶
func (c *ProjectsLocationsMembershipsFeaturesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "gkehub.projects.locations.memberships.features.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsMembershipsFeaturesPatchCall) Fields ¶
func (c *ProjectsLocationsMembershipsFeaturesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsMembershipsFeaturesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsMembershipsFeaturesPatchCall) Header ¶
func (c *ProjectsLocationsMembershipsFeaturesPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsMembershipsFeaturesPatchCall) RequestId ¶
func (c *ProjectsLocationsMembershipsFeaturesPatchCall) RequestId(requestId string) *ProjectsLocationsMembershipsFeaturesPatchCall
RequestId sets the optional parameter "requestId": Idempotent request UUID.
func (*ProjectsLocationsMembershipsFeaturesPatchCall) UpdateMask ¶
func (c *ProjectsLocationsMembershipsFeaturesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsMembershipsFeaturesPatchCall
UpdateMask sets the optional parameter "updateMask": Required. Mask of fields to update.
type ProjectsLocationsMembershipsFeaturesService ¶
type ProjectsLocationsMembershipsFeaturesService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsMembershipsFeaturesService ¶
func NewProjectsLocationsMembershipsFeaturesService(s *Service) *ProjectsLocationsMembershipsFeaturesService
func (*ProjectsLocationsMembershipsFeaturesService) Create ¶
func (r *ProjectsLocationsMembershipsFeaturesService) Create(parent string, membershipfeature *MembershipFeature) *ProjectsLocationsMembershipsFeaturesCreateCall
Create: Creates membershipFeature under a given parent.
- parent: The name of parent where the MembershipFeature will be created. Specified in the format `projects/*/locations/*/memberships/*/features/*`.
func (*ProjectsLocationsMembershipsFeaturesService) Delete ¶
func (r *ProjectsLocationsMembershipsFeaturesService) Delete(name string) *ProjectsLocationsMembershipsFeaturesDeleteCall
Delete: Removes a membershipFeature.
- name: The name of the membershipFeature to be deleted. Specified in the format `projects/*/locations/*/memberships/*/features/*`.
func (*ProjectsLocationsMembershipsFeaturesService) Get ¶
func (r *ProjectsLocationsMembershipsFeaturesService) Get(name string) *ProjectsLocationsMembershipsFeaturesGetCall
Get: ========= MembershipFeature Services ========= Gets details of a membershipFeature.
- name: The MembershipFeature resource name in the format `projects/*/locations/*/memberships/*/features/*`.
func (*ProjectsLocationsMembershipsFeaturesService) List ¶
func (r *ProjectsLocationsMembershipsFeaturesService) List(parent string) *ProjectsLocationsMembershipsFeaturesListCall
List: Lists MembershipFeatures in a given project and location.
- parent: The parent where the MembershipFeature will be listed. In the format: `projects/*/locations/*/memberships/*`.
func (*ProjectsLocationsMembershipsFeaturesService) Patch ¶
func (r *ProjectsLocationsMembershipsFeaturesService) Patch(nameid string, membershipfeature *MembershipFeature) *ProjectsLocationsMembershipsFeaturesPatchCall
Patch: Updates an existing MembershipFeature.
- name: Output only. The resource name of the membershipFeature, in the format: `projects/{project}/locations/{location}/memberships/{membership}/fe atures/{feature}`. Note that `membershipFeatures` is shortened to `features` in the resource name. (see http://go/aip/122#collection-identifiers).
type ProjectsLocationsMembershipsService ¶
type ProjectsLocationsMembershipsService struct { Features *ProjectsLocationsMembershipsFeaturesService // contains filtered or unexported fields }
func NewProjectsLocationsMembershipsService ¶
func NewProjectsLocationsMembershipsService(s *Service) *ProjectsLocationsMembershipsService
type ProjectsLocationsOperationsCancelCall ¶
type ProjectsLocationsOperationsCancelCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsCancelCall) Context ¶
func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsOperationsCancelCall) Do ¶
func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "gkehub.projects.locations.operations.cancel" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsCancelCall) Fields ¶
func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsOperationsCancelCall) Header ¶
func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsOperationsGetCall ¶
type ProjectsLocationsOperationsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsGetCall) Context ¶
func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsOperationsGetCall) Do ¶
func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "gkehub.projects.locations.operations.get" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsGetCall) Fields ¶
func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsOperationsGetCall) Header ¶
func (c *ProjectsLocationsOperationsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsOperationsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsOperationsListCall ¶
type ProjectsLocationsOperationsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsListCall) Context ¶
func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsOperationsListCall) Do ¶
func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error)
Do executes the "gkehub.projects.locations.operations.list" call. Exactly one of *ListOperationsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListOperationsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsListCall) Fields ¶
func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsOperationsListCall) Filter ¶
func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall
Filter sets the optional parameter "filter": The standard list filter.
func (*ProjectsLocationsOperationsListCall) Header ¶
func (c *ProjectsLocationsOperationsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsOperationsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsOperationsListCall) PageSize ¶
func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall
PageSize sets the optional parameter "pageSize": The standard list page size.
func (*ProjectsLocationsOperationsListCall) PageToken ¶
func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall
PageToken sets the optional parameter "pageToken": The standard list page token.
func (*ProjectsLocationsOperationsListCall) Pages ¶
func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsOperationsService ¶
type ProjectsLocationsOperationsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsOperationsService ¶
func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService
func (*ProjectsLocationsOperationsService) Cancel ¶
func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall
Cancel: Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
- name: The name of the operation resource to be cancelled.
func (*ProjectsLocationsOperationsService) Get ¶
func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall
Get: Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
- name: The name of the operation resource.
func (*ProjectsLocationsOperationsService) List ¶
func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall
List: Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as "/v1/{name=users/*}/operations" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.
- name: The name of the operation's parent resource.
type ProjectsLocationsService ¶
type ProjectsLocationsService struct { FeatureConfigs *ProjectsLocationsFeatureConfigsService Memberships *ProjectsLocationsMembershipsService Operations *ProjectsLocationsOperationsService // contains filtered or unexported fields }
func NewProjectsLocationsService ¶
func NewProjectsLocationsService(s *Service) *ProjectsLocationsService
func (*ProjectsLocationsService) Get ¶
func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall
Get: Gets information about a location.
- name: Resource name for the location.
func (*ProjectsLocationsService) List ¶
func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall
List: Lists information about the supported locations for this service.
- name: The resource that owns the locations collection, if applicable.
type ProjectsService ¶
type ProjectsService struct { Locations *ProjectsLocationsService // contains filtered or unexported fields }
func NewProjectsService ¶
func NewProjectsService(s *Service) *ProjectsService
type ResourceState ¶
type ResourceState struct { // State: Output only. The current state of the Feature resource in the // Hub API. // // Possible values: // "STATE_UNSPECIFIED" - State is unknown or not set. // "ENABLING" - The MembershipFeature is being enabled, and the // MembershipFeature resource is being created. Once complete, the // corresponding MembershipFeature will be enabled in this Hub. // "ACTIVE" - The MembershipFeature is enabled in this Hub, and the // MembershipFeature resource is fully available. // "DISABLING" - The MembershipFeature is being disabled in this Hub, // and the MembershipFeature resource is being deleted. // "UPDATING" - The MembershipFeature resource is being updated. // "SERVICE_UPDATING" - The MembershipFeature resource is being // updated by the Hub Service. State string `json:"state,omitempty"` // ForceSendFields is a list of field names (e.g. "State") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "State") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ResourceState: ResourceState describes the state of a MembershipFeature *resource* in the GkeHub API. See `FeatureState` for the "running state" of the MembershipFeature.
func (*ResourceState) MarshalJSON ¶
func (s *ResourceState) MarshalJSON() ([]byte, error)
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment Projects *ProjectsService // contains filtered or unexported fields }
func New
deprecated
New creates a new Service. It uses the provided http.Client for requests.
Deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
func NewService ¶
NewService creates a new Service.
type State ¶
type State struct { // Code: The high-level, machine-readable status of this // MembershipFeature. // // Possible values: // "CODE_UNSPECIFIED" - Unknown or not set. // "OK" - The MembershipFeature is operating normally. // "WARNING" - The MembershipFeature has encountered an issue, and is // operating in a degraded state. The MembershipFeature may need // intervention to return to normal operation. See the description and // any associated MembershipFeature-specific details for more // information. // "ERROR" - The MembershipFeature is not operating or is in a // severely degraded state. The MembershipFeature may need intervention // to return to normal operation. See the description and any associated // MembershipFeature-specific details for more information. Code string `json:"code,omitempty"` // Description: A human-readable description of the current status. Description string `json:"description,omitempty"` // UpdateTime: The time this status and any related Feature-specific // details were updated. UpdateTime string `json:"updateTime,omitempty"` // ForceSendFields is a list of field names (e.g. "Code") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Code") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
State: High-level state of a MembershipFeature.