diff --git a/baremetalsolution/v2/baremetalsolution-api.json b/baremetalsolution/v2/baremetalsolution-api.json index 3c2bbc073f4..1d7a7db0d8f 100644 --- a/baremetalsolution/v2/baremetalsolution-api.json +++ b/baremetalsolution/v2/baremetalsolution-api.json @@ -176,35 +176,6 @@ } }, "resources": { - "instanceProvisioningSettings": { - "methods": { - "fetch": { - "description": "Get instance provisioning settings for a given project. This is hidden method used by UI only.", - "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/instanceProvisioningSettings:fetch", - "httpMethod": "GET", - "id": "baremetalsolution.projects.locations.instanceProvisioningSettings.fetch", - "parameterOrder": [ - "location" - ], - "parameters": { - "location": { - "description": "Required. The parent project and location containing the ProvisioningSettings.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v2/{+location}/instanceProvisioningSettings:fetch", - "response": { - "$ref": "FetchInstanceProvisioningSettingsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - }, "instances": { "methods": { "detachLun": { @@ -1577,7 +1548,7 @@ } } }, - "revision": "20230607", + "revision": "20230628", "rootUrl": "https://baremetalsolution.googleapis.com/", "schemas": { "AllowedClient": { @@ -1676,25 +1647,12 @@ "properties": {}, "type": "object" }, - "FetchInstanceProvisioningSettingsResponse": { - "description": "Response with all provisioning settings.", - "id": "FetchInstanceProvisioningSettingsResponse", - "properties": { - "images": { - "description": "The OS images available.", - "items": { - "$ref": "OSImage" - }, - "type": "array" - } - }, - "type": "object" - }, "GoogleCloudBaremetalsolutionV2LogicalInterface": { "description": "Each logical interface represents a logical abstraction of the underlying physical interface (for eg. bond, nic) of the instance. Each logical interface can effectively map to multiple network-IP pairs and still be mapped to one underlying physical interface.", "id": "GoogleCloudBaremetalsolutionV2LogicalInterface", "properties": { "interfaceIndex": { + "deprecated": true, "description": "The index of the logical interface mapping to the index of the hardware bond or nic on the chosen network template. This field is deprecated.", "format": "int32", "type": "integer" @@ -1713,35 +1671,6 @@ }, "type": "object" }, - "GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface": { - "description": "Logical interface.", - "id": "GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface", - "properties": { - "name": { - "description": "Interface name. This is not a globally unique identifier. Name is unique only inside the ServerNetworkTemplate. This is of syntax or and forms part of the network template name.", - "type": "string" - }, - "required": { - "description": "If true, interface must have network connected.", - "type": "boolean" - }, - "type": { - "description": "Interface type.", - "enum": [ - "INTERFACE_TYPE_UNSPECIFIED", - "BOND", - "NIC" - ], - "enumDescriptions": [ - "Unspecified value.", - "Bond interface type.", - "NIC interface type." - ], - "type": "string" - } - }, - "type": "object" - }, "Instance": { "description": "A server.", "id": "Instance", @@ -1890,6 +1819,7 @@ }, "clientNetwork": { "$ref": "NetworkAddress", + "deprecated": true, "description": "Client network address. Filled if InstanceConfig.multivlan_config is false." }, "hyperthreading": { @@ -1940,6 +1870,7 @@ }, "privateNetwork": { "$ref": "NetworkAddress", + "deprecated": true, "description": "Private network address, if any. Filled if InstanceConfig.multivlan_config is false." }, "sshKeyNames": { @@ -1970,6 +1901,7 @@ "type": "string" }, "instanceType": { + "deprecated": true, "description": "Instance type. Deprecated: use gcp_service.", "type": "string" }, @@ -2808,40 +2740,6 @@ }, "type": "object" }, - "OSImage": { - "description": "Operation System image.", - "id": "OSImage", - "properties": { - "applicableInstanceTypes": { - "description": "Instance types this image is applicable to. [Available types](https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations)", - "items": { - "type": "string" - }, - "type": "array" - }, - "code": { - "description": "OS Image code.", - "type": "string" - }, - "description": { - "description": "OS Image description.", - "type": "string" - }, - "name": { - "description": "Output only. OS Image's unique name.", - "readOnly": true, - "type": "string" - }, - "supportedNetworkTemplates": { - "description": "Network templates that can be used with this OS Image.", - "items": { - "$ref": "ServerNetworkTemplate" - }, - "type": "array" - } - }, - "type": "object" - }, "Operation": { "description": "This resource represents a long-running operation that is the result of a network API call.", "id": "Operation", @@ -2891,6 +2789,7 @@ "type": "string" }, "email": { + "deprecated": true, "description": "Email provided to send a confirmation with provisioning config to. Deprecated in favour of email field in request messages.", "type": "string" }, @@ -3136,32 +3035,6 @@ }, "type": "object" }, - "ServerNetworkTemplate": { - "description": "Network template.", - "id": "ServerNetworkTemplate", - "properties": { - "applicableInstanceTypes": { - "description": "Instance types this template is applicable to.", - "items": { - "type": "string" - }, - "type": "array" - }, - "logicalInterfaces": { - "description": "Logical interfaces.", - "items": { - "$ref": "GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface" - }, - "type": "array" - }, - "name": { - "description": "Output only. Template's unique name. The full resource name follows the pattern: `projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template}` Generally, the {server_network_template} follows the syntax of \"bond\" or \"nic\".", - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, "SnapshotReservationDetail": { "description": "Details about snapshot space reservation and usage on the storage volume.", "id": "SnapshotReservationDetail", diff --git a/baremetalsolution/v2/baremetalsolution-gen.go b/baremetalsolution/v2/baremetalsolution-gen.go index 238ab001620..ce12cabd714 100644 --- a/baremetalsolution/v2/baremetalsolution-gen.go +++ b/baremetalsolution/v2/baremetalsolution-gen.go @@ -152,7 +152,6 @@ type ProjectsService struct { func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} - rs.InstanceProvisioningSettings = NewProjectsLocationsInstanceProvisioningSettingsService(s) rs.Instances = NewProjectsLocationsInstancesService(s) rs.Networks = NewProjectsLocationsNetworksService(s) rs.NfsShares = NewProjectsLocationsNfsSharesService(s) @@ -167,8 +166,6 @@ func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { type ProjectsLocationsService struct { s *Service - InstanceProvisioningSettings *ProjectsLocationsInstanceProvisioningSettingsService - Instances *ProjectsLocationsInstancesService Networks *ProjectsLocationsNetworksService @@ -186,15 +183,6 @@ type ProjectsLocationsService struct { Volumes *ProjectsLocationsVolumesService } -func NewProjectsLocationsInstanceProvisioningSettingsService(s *Service) *ProjectsLocationsInstanceProvisioningSettingsService { - rs := &ProjectsLocationsInstanceProvisioningSettingsService{s: s} - return rs -} - -type ProjectsLocationsInstanceProvisioningSettingsService struct { - s *Service -} - func NewProjectsLocationsInstancesService(s *Service) *ProjectsLocationsInstancesService { rs := &ProjectsLocationsInstancesService{s: s} return rs @@ -413,39 +401,6 @@ type EvictLunRequest struct { type EvictVolumeRequest struct { } -// FetchInstanceProvisioningSettingsResponse: Response with all -// provisioning settings. -type FetchInstanceProvisioningSettingsResponse struct { - // Images: The OS images available. - Images []*OSImage `json:"images,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Images") 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. "Images") 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:"-"` -} - -func (s *FetchInstanceProvisioningSettingsResponse) MarshalJSON() ([]byte, error) { - type NoMethod FetchInstanceProvisioningSettingsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudBaremetalsolutionV2LogicalInterface: Each logical // interface represents a logical abstraction of the underlying physical // interface (for eg. bond, nic) of the instance. Each logical interface @@ -489,48 +444,6 @@ func (s *GoogleCloudBaremetalsolutionV2LogicalInterface) MarshalJSON() ([]byte, return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface: -// Logical interface. -type GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface struct { - // Name: Interface name. This is not a globally unique identifier. Name - // is unique only inside the ServerNetworkTemplate. This is of syntax or - // and forms part of the network template name. - Name string `json:"name,omitempty"` - - // Required: If true, interface must have network connected. - Required bool `json:"required,omitempty"` - - // Type: Interface type. - // - // Possible values: - // "INTERFACE_TYPE_UNSPECIFIED" - Unspecified value. - // "BOND" - Bond interface type. - // "NIC" - NIC interface type. - Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // Instance: A server. type Instance struct { // CreateTime: Output only. Create a time stamp. @@ -1864,51 +1777,6 @@ func (s *NfsShare) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// OSImage: Operation System image. -type OSImage struct { - // ApplicableInstanceTypes: Instance types this image is applicable to. - // Available types - // (https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations) - ApplicableInstanceTypes []string `json:"applicableInstanceTypes,omitempty"` - - // Code: OS Image code. - Code string `json:"code,omitempty"` - - // Description: OS Image description. - Description string `json:"description,omitempty"` - - // Name: Output only. OS Image's unique name. - Name string `json:"name,omitempty"` - - // SupportedNetworkTemplates: Network templates that can be used with - // this OS Image. - SupportedNetworkTemplates []*ServerNetworkTemplate `json:"supportedNetworkTemplates,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ApplicableInstanceTypes") 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. "ApplicableInstanceTypes") - // 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:"-"` -} - -func (s *OSImage) MarshalJSON() ([]byte, error) { - type NoMethod OSImage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // Operation: This resource represents a long-running operation that is // the result of a network API call. type Operation struct { @@ -2357,47 +2225,6 @@ func (s *SSHKey) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ServerNetworkTemplate: Network template. -type ServerNetworkTemplate struct { - // ApplicableInstanceTypes: Instance types this template is applicable - // to. - ApplicableInstanceTypes []string `json:"applicableInstanceTypes,omitempty"` - - // LogicalInterfaces: Logical interfaces. - LogicalInterfaces []*GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface `json:"logicalInterfaces,omitempty"` - - // Name: Output only. Template's unique name. The full resource name - // follows the pattern: - // `projects/{project}/locations/{location}/serverNetworkTemplate/{server - // _network_template}` Generally, the {server_network_template} follows - // the syntax of "bond" or "nic". - Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ApplicableInstanceTypes") 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. "ApplicableInstanceTypes") - // 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:"-"` -} - -func (s *ServerNetworkTemplate) MarshalJSON() ([]byte, error) { - type NoMethod ServerNetworkTemplate - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // SnapshotReservationDetail: Details about snapshot space reservation // and usage on the storage volume. type SnapshotReservationDetail struct { @@ -3335,156 +3162,6 @@ func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocat } } -// method id "baremetalsolution.projects.locations.instanceProvisioningSettings.fetch": - -type ProjectsLocationsInstanceProvisioningSettingsFetchCall struct { - s *Service - location string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Fetch: Get instance provisioning settings for a given project. This -// is hidden method used by UI only. -// -// - location: The parent project and location containing the -// ProvisioningSettings. -func (r *ProjectsLocationsInstanceProvisioningSettingsService) Fetch(location string) *ProjectsLocationsInstanceProvisioningSettingsFetchCall { - c := &ProjectsLocationsInstanceProvisioningSettingsFetchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.location = location - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsInstanceProvisioningSettingsFetchCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstanceProvisioningSettingsFetchCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// 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 (c *ProjectsLocationsInstanceProvisioningSettingsFetchCall) IfNoneMatch(entityTag string) *ProjectsLocationsInstanceProvisioningSettingsFetchCall { - c.ifNoneMatch_ = entityTag - return c -} - -// 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 (c *ProjectsLocationsInstanceProvisioningSettingsFetchCall) Context(ctx context.Context) *ProjectsLocationsInstanceProvisioningSettingsFetchCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsInstanceProvisioningSettingsFetchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsInstanceProvisioningSettingsFetchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+location}/instanceProvisioningSettings:fetch") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "location": c.location, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "baremetalsolution.projects.locations.instanceProvisioningSettings.fetch" call. -// Exactly one of *FetchInstanceProvisioningSettingsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *FetchInstanceProvisioningSettingsResponse.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 (c *ProjectsLocationsInstanceProvisioningSettingsFetchCall) Do(opts ...googleapi.CallOption) (*FetchInstanceProvisioningSettingsResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &FetchInstanceProvisioningSettingsResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Get instance provisioning settings for a given project. This is hidden method used by UI only.", - // "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/instanceProvisioningSettings:fetch", - // "httpMethod": "GET", - // "id": "baremetalsolution.projects.locations.instanceProvisioningSettings.fetch", - // "parameterOrder": [ - // "location" - // ], - // "parameters": { - // "location": { - // "description": "Required. The parent project and location containing the ProvisioningSettings.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2/{+location}/instanceProvisioningSettings:fetch", - // "response": { - // "$ref": "FetchInstanceProvisioningSettingsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - // method id "baremetalsolution.projects.locations.instances.detachLun": type ProjectsLocationsInstancesDetachLunCall struct { diff --git a/gkehub/v1alpha/gkehub-api.json b/gkehub/v1alpha/gkehub-api.json index c98a290236b..70840db134a 100644 --- a/gkehub/v1alpha/gkehub-api.json +++ b/gkehub/v1alpha/gkehub-api.json @@ -2098,7 +2098,7 @@ } } }, - "revision": "20230620", + "revision": "20230627", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AnthosObservabilityFeatureSpec": { @@ -3787,6 +3787,21 @@ }, "type": "object" }, + "FleetObservabilityFeatureError": { + "description": "All error details of the fleet observability feature.", + "id": "FleetObservabilityFeatureError", + "properties": { + "code": { + "description": "The code of the error.", + "type": "string" + }, + "description": { + "description": "A human-readable description of the current status.", + "type": "string" + } + }, + "type": "object" + }, "FleetObservabilityFeatureSpec": { "description": "**Fleet Observability**: The Hub-wide input for the FleetObservability feature.", "id": "FleetObservabilityFeatureSpec", @@ -3801,7 +3816,70 @@ "FleetObservabilityFeatureState": { "description": "**FleetObservability**: Hub-wide Feature for FleetObservability feature. state.", "id": "FleetObservabilityFeatureState", - "properties": {}, + "properties": { + "logging": { + "$ref": "FleetObservabilityFleetObservabilityLoggingState", + "description": "The feature state of default logging." + }, + "monitoring": { + "$ref": "FleetObservabilityFleetObservabilityMonitoringState", + "description": "The feature state of fleet monitoring." + } + }, + "type": "object" + }, + "FleetObservabilityFleetObservabilityBaseFeatureState": { + "description": "Base state for fleet observability feature.", + "id": "FleetObservabilityFleetObservabilityBaseFeatureState", + "properties": { + "code": { + "description": "The high-level, machine-readable status of this Feature.", + "enum": [ + "CODE_UNSPECIFIED", + "OK", + "ERROR" + ], + "enumDescriptions": [ + "Unknown or not set.", + "The Feature is operating normally.", + "The Feature is encountering errors in the reconciliation. The Feature may need intervention to return to normal operation. See the description and any associated Feature-specific details for more information." + ], + "type": "string" + }, + "errors": { + "description": "Errors after reconciling the monitoring and logging feature if the code is not OK.", + "items": { + "$ref": "FleetObservabilityFeatureError" + }, + "type": "array" + } + }, + "type": "object" + }, + "FleetObservabilityFleetObservabilityLoggingState": { + "description": "Feature state for logging feature.", + "id": "FleetObservabilityFleetObservabilityLoggingState", + "properties": { + "defaultLog": { + "$ref": "FleetObservabilityFleetObservabilityBaseFeatureState", + "description": "The base feature state of fleet default log." + }, + "scopeLog": { + "$ref": "FleetObservabilityFleetObservabilityBaseFeatureState", + "description": "The base feature state of fleet scope log." + } + }, + "type": "object" + }, + "FleetObservabilityFleetObservabilityMonitoringState": { + "description": "Feature state for monitoring feature.", + "id": "FleetObservabilityFleetObservabilityMonitoringState", + "properties": { + "state": { + "$ref": "FleetObservabilityFleetObservabilityBaseFeatureState", + "description": "The base feature state of fleet monitoring feature." + } + }, "type": "object" }, "FleetObservabilityLoggingConfig": { @@ -5069,23 +5147,11 @@ "id": "PolicyControllerBundleInstallSpec", "properties": { "exemptedNamespaces": { - "description": "the set of namespaces to be exempted from the bundle", + "description": "The set of namespaces to be exempted from the bundle.", "items": { "type": "string" }, "type": "array" - }, - "management": { - "description": "Management specifies how the bundle will be managed by the controller.", - "enum": [ - "MANAGEMENT_UNSPECIFIED", - "INSTALLED" - ], - "enumDescriptions": [ - "No Management strategy has been specified.", - "The entity should be insistently reconciled by the Hub controller" - ], - "type": "string" } }, "type": "object" @@ -5153,10 +5219,6 @@ "referentialRulesEnabled": { "description": "Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated.", "type": "boolean" - }, - "templateLibraryConfig": { - "$ref": "PolicyControllerTemplateLibraryConfig", - "description": "Configures the library templates to install along with Policy Controller." } }, "type": "object" @@ -5187,13 +5249,6 @@ "description": "Currently these include (also serving as map keys): 1. \"admission\" 2. \"audit\" 3. \"mutation\"", "type": "object" }, - "contentStates": { - "additionalProperties": { - "$ref": "PolicyControllerOnClusterState" - }, - "description": "The state of the template library and any bundles included in the chosen version of the manifest", - "type": "object" - }, "policyContentState": { "$ref": "PolicyControllerPolicyContentState", "description": "The overall content state observed by the Hub Feature controller." @@ -5336,6 +5391,20 @@ "$ref": "PolicyControllerResourceRequirements", "description": "Container resource requirements." }, + "podAffinity": { + "description": "Pod affinity configuration.", + "enum": [ + "AFFINITY_UNSPECIFIED", + "NO_AFFINITY", + "ANTI_AFFINITY" + ], + "enumDescriptions": [ + "No affinity configuration has been specified.", + "Affinity configurations will be removed from the deployment.", + "Anti-affinity configuration will be applied to this deployment. Default for admissions deployment." + ], + "type": "string" + }, "podAntiAffinity": { "description": "Pod anti-affinity enablement.", "type": "boolean" @@ -5389,10 +5458,6 @@ "description": "The config specifying which default library templates to install.", "id": "PolicyControllerTemplateLibraryConfig", "properties": { - "included": { - "description": "Whether the standard template library should be installed or not.", - "type": "boolean" - }, "installation": { "description": "Configures the manner in which the template library is installed on the cluster.", "enum": [ diff --git a/gkehub/v1alpha/gkehub-gen.go b/gkehub/v1alpha/gkehub-gen.go index e89306db282..2a1165d870f 100644 --- a/gkehub/v1alpha/gkehub-gen.go +++ b/gkehub/v1alpha/gkehub-gen.go @@ -3055,6 +3055,38 @@ func (s *FleetLifecycleState) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// FleetObservabilityFeatureError: All error details of the fleet +// observability feature. +type FleetObservabilityFeatureError struct { + // Code: The code of the error. + Code string `json:"code,omitempty"` + + // Description: A human-readable description of the current status. + Description string `json:"description,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:"-"` +} + +func (s *FleetObservabilityFeatureError) MarshalJSON() ([]byte, error) { + type NoMethod FleetObservabilityFeatureError + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // FleetObservabilityFeatureSpec: **Fleet Observability**: The Hub-wide // input for the FleetObservability feature. type FleetObservabilityFeatureSpec struct { @@ -3089,6 +3121,135 @@ func (s *FleetObservabilityFeatureSpec) MarshalJSON() ([]byte, error) { // FleetObservabilityFeatureState: **FleetObservability**: Hub-wide // Feature for FleetObservability feature. state. type FleetObservabilityFeatureState struct { + // Logging: The feature state of default logging. + Logging *FleetObservabilityFleetObservabilityLoggingState `json:"logging,omitempty"` + + // Monitoring: The feature state of fleet monitoring. + Monitoring *FleetObservabilityFleetObservabilityMonitoringState `json:"monitoring,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Logging") 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. "Logging") 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:"-"` +} + +func (s *FleetObservabilityFeatureState) MarshalJSON() ([]byte, error) { + type NoMethod FleetObservabilityFeatureState + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// FleetObservabilityFleetObservabilityBaseFeatureState: Base state for +// fleet observability feature. +type FleetObservabilityFleetObservabilityBaseFeatureState struct { + // Code: The high-level, machine-readable status of this Feature. + // + // Possible values: + // "CODE_UNSPECIFIED" - Unknown or not set. + // "OK" - The Feature is operating normally. + // "ERROR" - The Feature is encountering errors in the reconciliation. + // The Feature may need intervention to return to normal operation. See + // the description and any associated Feature-specific details for more + // information. + Code string `json:"code,omitempty"` + + // Errors: Errors after reconciling the monitoring and logging feature + // if the code is not OK. + Errors []*FleetObservabilityFeatureError `json:"errors,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:"-"` +} + +func (s *FleetObservabilityFleetObservabilityBaseFeatureState) MarshalJSON() ([]byte, error) { + type NoMethod FleetObservabilityFleetObservabilityBaseFeatureState + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// FleetObservabilityFleetObservabilityLoggingState: Feature state for +// logging feature. +type FleetObservabilityFleetObservabilityLoggingState struct { + // DefaultLog: The base feature state of fleet default log. + DefaultLog *FleetObservabilityFleetObservabilityBaseFeatureState `json:"defaultLog,omitempty"` + + // ScopeLog: The base feature state of fleet scope log. + ScopeLog *FleetObservabilityFleetObservabilityBaseFeatureState `json:"scopeLog,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DefaultLog") 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. "DefaultLog") 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:"-"` +} + +func (s *FleetObservabilityFleetObservabilityLoggingState) MarshalJSON() ([]byte, error) { + type NoMethod FleetObservabilityFleetObservabilityLoggingState + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// FleetObservabilityFleetObservabilityMonitoringState: Feature state +// for monitoring feature. +type FleetObservabilityFleetObservabilityMonitoringState struct { + // State: The base feature state of fleet monitoring feature. + State *FleetObservabilityFleetObservabilityBaseFeatureState `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:"-"` +} + +func (s *FleetObservabilityFleetObservabilityMonitoringState) MarshalJSON() ([]byte, error) { + type NoMethod FleetObservabilityFleetObservabilityMonitoringState + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // FleetObservabilityLoggingConfig: LoggingConfig defines the @@ -5205,20 +5366,10 @@ func (s *Policy) MarshalJSON() ([]byte, error) { // PolicyControllerBundleInstallSpec: BundleInstallSpec is the // specification configuration for a single managed bundle. type PolicyControllerBundleInstallSpec struct { - // ExemptedNamespaces: the set of namespaces to be exempted from the - // bundle + // ExemptedNamespaces: The set of namespaces to be exempted from the + // bundle. ExemptedNamespaces []string `json:"exemptedNamespaces,omitempty"` - // Management: Management specifies how the bundle will be managed by - // the controller. - // - // Possible values: - // "MANAGEMENT_UNSPECIFIED" - No Management strategy has been - // specified. - // "INSTALLED" - The entity should be insistently reconciled by the - // Hub controller - Management string `json:"management,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExemptedNamespaces") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -5298,10 +5449,6 @@ type PolicyControllerHubConfig struct { // being evaluated. ReferentialRulesEnabled bool `json:"referentialRulesEnabled,omitempty"` - // TemplateLibraryConfig: Configures the library templates to install - // along with Policy Controller. - TemplateLibraryConfig *PolicyControllerTemplateLibraryConfig `json:"templateLibraryConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. // "AuditIntervalSeconds") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API @@ -5369,10 +5516,6 @@ type PolicyControllerMembershipState struct { // 1. "admission" 2. "audit" 3. "mutation" ComponentStates map[string]PolicyControllerOnClusterState `json:"componentStates,omitempty"` - // ContentStates: The state of the template library and any bundles - // included in the chosen version of the manifest - ContentStates map[string]PolicyControllerOnClusterState `json:"contentStates,omitempty"` - // PolicyContentState: The overall content state observed by the Hub // Feature controller. PolicyContentState *PolicyControllerPolicyContentState `json:"policyContentState,omitempty"` @@ -5630,6 +5773,17 @@ type PolicyControllerPolicyControllerDeploymentConfig struct { // ContainerResources: Container resource requirements. ContainerResources *PolicyControllerResourceRequirements `json:"containerResources,omitempty"` + // PodAffinity: Pod affinity configuration. + // + // Possible values: + // "AFFINITY_UNSPECIFIED" - No affinity configuration has been + // specified. + // "NO_AFFINITY" - Affinity configurations will be removed from the + // deployment. + // "ANTI_AFFINITY" - Anti-affinity configuration will be applied to + // this deployment. Default for admissions deployment. + PodAffinity string `json:"podAffinity,omitempty"` + // PodAntiAffinity: Pod anti-affinity enablement. PodAntiAffinity bool `json:"podAntiAffinity,omitempty"` @@ -5732,10 +5886,6 @@ func (s *PolicyControllerResourceRequirements) MarshalJSON() ([]byte, error) { // PolicyControllerTemplateLibraryConfig: The config specifying which // default library templates to install. type PolicyControllerTemplateLibraryConfig struct { - // Included: Whether the standard template library should be installed - // or not. - Included bool `json:"included,omitempty"` - // Installation: Configures the manner in which the template library is // installed on the cluster. // @@ -5746,7 +5896,7 @@ type PolicyControllerTemplateLibraryConfig struct { // "ALL" - Install the entire template library. Installation string `json:"installation,omitempty"` - // ForceSendFields is a list of field names (e.g. "Included") to + // ForceSendFields is a list of field names (e.g. "Installation") 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 @@ -5754,10 +5904,10 @@ type PolicyControllerTemplateLibraryConfig struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Included") 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 + // NullFields is a list of field names (e.g. "Installation") 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:"-"` diff --git a/gkehub/v1beta/gkehub-api.json b/gkehub/v1beta/gkehub-api.json index 60eb05b57bb..8232f54cc92 100644 --- a/gkehub/v1beta/gkehub-api.json +++ b/gkehub/v1beta/gkehub-api.json @@ -1784,7 +1784,7 @@ } } }, - "revision": "20230620", + "revision": "20230627", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AnthosObservabilityFeatureSpec": { @@ -3076,6 +3076,21 @@ }, "type": "object" }, + "FleetObservabilityFeatureError": { + "description": "All error details of the fleet observability feature.", + "id": "FleetObservabilityFeatureError", + "properties": { + "code": { + "description": "The code of the error.", + "type": "string" + }, + "description": { + "description": "A human-readable description of the current status.", + "type": "string" + } + }, + "type": "object" + }, "FleetObservabilityFeatureSpec": { "description": "**Fleet Observability**: The Hub-wide input for the FleetObservability feature.", "id": "FleetObservabilityFeatureSpec", @@ -3090,7 +3105,70 @@ "FleetObservabilityFeatureState": { "description": "**FleetObservability**: Hub-wide Feature for FleetObservability feature. state.", "id": "FleetObservabilityFeatureState", - "properties": {}, + "properties": { + "logging": { + "$ref": "FleetObservabilityFleetObservabilityLoggingState", + "description": "The feature state of default logging." + }, + "monitoring": { + "$ref": "FleetObservabilityFleetObservabilityMonitoringState", + "description": "The feature state of fleet monitoring." + } + }, + "type": "object" + }, + "FleetObservabilityFleetObservabilityBaseFeatureState": { + "description": "Base state for fleet observability feature.", + "id": "FleetObservabilityFleetObservabilityBaseFeatureState", + "properties": { + "code": { + "description": "The high-level, machine-readable status of this Feature.", + "enum": [ + "CODE_UNSPECIFIED", + "OK", + "ERROR" + ], + "enumDescriptions": [ + "Unknown or not set.", + "The Feature is operating normally.", + "The Feature is encountering errors in the reconciliation. The Feature may need intervention to return to normal operation. See the description and any associated Feature-specific details for more information." + ], + "type": "string" + }, + "errors": { + "description": "Errors after reconciling the monitoring and logging feature if the code is not OK.", + "items": { + "$ref": "FleetObservabilityFeatureError" + }, + "type": "array" + } + }, + "type": "object" + }, + "FleetObservabilityFleetObservabilityLoggingState": { + "description": "Feature state for logging feature.", + "id": "FleetObservabilityFleetObservabilityLoggingState", + "properties": { + "defaultLog": { + "$ref": "FleetObservabilityFleetObservabilityBaseFeatureState", + "description": "The base feature state of fleet default log." + }, + "scopeLog": { + "$ref": "FleetObservabilityFleetObservabilityBaseFeatureState", + "description": "The base feature state of fleet scope log." + } + }, + "type": "object" + }, + "FleetObservabilityFleetObservabilityMonitoringState": { + "description": "Feature state for monitoring feature.", + "id": "FleetObservabilityFleetObservabilityMonitoringState", + "properties": { + "state": { + "$ref": "FleetObservabilityFleetObservabilityBaseFeatureState", + "description": "The base feature state of fleet monitoring feature." + } + }, "type": "object" }, "FleetObservabilityLoggingConfig": { @@ -3978,23 +4056,11 @@ "id": "PolicyControllerBundleInstallSpec", "properties": { "exemptedNamespaces": { - "description": "the set of namespaces to be exempted from the bundle", + "description": "The set of namespaces to be exempted from the bundle.", "items": { "type": "string" }, "type": "array" - }, - "management": { - "description": "Management specifies how the bundle will be managed by the controller.", - "enum": [ - "MANAGEMENT_UNSPECIFIED", - "INSTALLED" - ], - "enumDescriptions": [ - "No Management strategy has been specified.", - "The entity should be insistently reconciled by the Hub controller" - ], - "type": "string" } }, "type": "object" @@ -4062,10 +4128,6 @@ "referentialRulesEnabled": { "description": "Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated.", "type": "boolean" - }, - "templateLibraryConfig": { - "$ref": "PolicyControllerTemplateLibraryConfig", - "description": "Configures the library templates to install along with Policy Controller." } }, "type": "object" @@ -4096,13 +4158,6 @@ "description": "Currently these include (also serving as map keys): 1. \"admission\" 2. \"audit\" 3. \"mutation\"", "type": "object" }, - "contentStates": { - "additionalProperties": { - "$ref": "PolicyControllerOnClusterState" - }, - "description": "The state of the template library and any bundles included in the chosen version of the manifest", - "type": "object" - }, "policyContentState": { "$ref": "PolicyControllerPolicyContentState", "description": "The overall content state observed by the Hub Feature controller." @@ -4245,6 +4300,20 @@ "$ref": "PolicyControllerResourceRequirements", "description": "Container resource requirements." }, + "podAffinity": { + "description": "Pod affinity configuration.", + "enum": [ + "AFFINITY_UNSPECIFIED", + "NO_AFFINITY", + "ANTI_AFFINITY" + ], + "enumDescriptions": [ + "No affinity configuration has been specified.", + "Affinity configurations will be removed from the deployment.", + "Anti-affinity configuration will be applied to this deployment. Default for admissions deployment." + ], + "type": "string" + }, "podAntiAffinity": { "description": "Pod anti-affinity enablement.", "type": "boolean" @@ -4298,10 +4367,6 @@ "description": "The config specifying which default library templates to install.", "id": "PolicyControllerTemplateLibraryConfig", "properties": { - "included": { - "description": "Whether the standard template library should be installed or not.", - "type": "boolean" - }, "installation": { "description": "Configures the manner in which the template library is installed on the cluster.", "enum": [ diff --git a/gkehub/v1beta/gkehub-gen.go b/gkehub/v1beta/gkehub-gen.go index 46d62a3e952..12305921ef4 100644 --- a/gkehub/v1beta/gkehub-gen.go +++ b/gkehub/v1beta/gkehub-gen.go @@ -2323,6 +2323,38 @@ func (s *FleetLifecycleState) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// FleetObservabilityFeatureError: All error details of the fleet +// observability feature. +type FleetObservabilityFeatureError struct { + // Code: The code of the error. + Code string `json:"code,omitempty"` + + // Description: A human-readable description of the current status. + Description string `json:"description,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:"-"` +} + +func (s *FleetObservabilityFeatureError) MarshalJSON() ([]byte, error) { + type NoMethod FleetObservabilityFeatureError + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // FleetObservabilityFeatureSpec: **Fleet Observability**: The Hub-wide // input for the FleetObservability feature. type FleetObservabilityFeatureSpec struct { @@ -2357,6 +2389,135 @@ func (s *FleetObservabilityFeatureSpec) MarshalJSON() ([]byte, error) { // FleetObservabilityFeatureState: **FleetObservability**: Hub-wide // Feature for FleetObservability feature. state. type FleetObservabilityFeatureState struct { + // Logging: The feature state of default logging. + Logging *FleetObservabilityFleetObservabilityLoggingState `json:"logging,omitempty"` + + // Monitoring: The feature state of fleet monitoring. + Monitoring *FleetObservabilityFleetObservabilityMonitoringState `json:"monitoring,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Logging") 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. "Logging") 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:"-"` +} + +func (s *FleetObservabilityFeatureState) MarshalJSON() ([]byte, error) { + type NoMethod FleetObservabilityFeatureState + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// FleetObservabilityFleetObservabilityBaseFeatureState: Base state for +// fleet observability feature. +type FleetObservabilityFleetObservabilityBaseFeatureState struct { + // Code: The high-level, machine-readable status of this Feature. + // + // Possible values: + // "CODE_UNSPECIFIED" - Unknown or not set. + // "OK" - The Feature is operating normally. + // "ERROR" - The Feature is encountering errors in the reconciliation. + // The Feature may need intervention to return to normal operation. See + // the description and any associated Feature-specific details for more + // information. + Code string `json:"code,omitempty"` + + // Errors: Errors after reconciling the monitoring and logging feature + // if the code is not OK. + Errors []*FleetObservabilityFeatureError `json:"errors,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:"-"` +} + +func (s *FleetObservabilityFleetObservabilityBaseFeatureState) MarshalJSON() ([]byte, error) { + type NoMethod FleetObservabilityFleetObservabilityBaseFeatureState + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// FleetObservabilityFleetObservabilityLoggingState: Feature state for +// logging feature. +type FleetObservabilityFleetObservabilityLoggingState struct { + // DefaultLog: The base feature state of fleet default log. + DefaultLog *FleetObservabilityFleetObservabilityBaseFeatureState `json:"defaultLog,omitempty"` + + // ScopeLog: The base feature state of fleet scope log. + ScopeLog *FleetObservabilityFleetObservabilityBaseFeatureState `json:"scopeLog,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DefaultLog") 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. "DefaultLog") 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:"-"` +} + +func (s *FleetObservabilityFleetObservabilityLoggingState) MarshalJSON() ([]byte, error) { + type NoMethod FleetObservabilityFleetObservabilityLoggingState + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// FleetObservabilityFleetObservabilityMonitoringState: Feature state +// for monitoring feature. +type FleetObservabilityFleetObservabilityMonitoringState struct { + // State: The base feature state of fleet monitoring feature. + State *FleetObservabilityFleetObservabilityBaseFeatureState `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:"-"` +} + +func (s *FleetObservabilityFleetObservabilityMonitoringState) MarshalJSON() ([]byte, error) { + type NoMethod FleetObservabilityFleetObservabilityMonitoringState + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // FleetObservabilityLoggingConfig: LoggingConfig defines the @@ -3854,20 +4015,10 @@ func (s *Policy) MarshalJSON() ([]byte, error) { // PolicyControllerBundleInstallSpec: BundleInstallSpec is the // specification configuration for a single managed bundle. type PolicyControllerBundleInstallSpec struct { - // ExemptedNamespaces: the set of namespaces to be exempted from the - // bundle + // ExemptedNamespaces: The set of namespaces to be exempted from the + // bundle. ExemptedNamespaces []string `json:"exemptedNamespaces,omitempty"` - // Management: Management specifies how the bundle will be managed by - // the controller. - // - // Possible values: - // "MANAGEMENT_UNSPECIFIED" - No Management strategy has been - // specified. - // "INSTALLED" - The entity should be insistently reconciled by the - // Hub controller - Management string `json:"management,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExemptedNamespaces") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -3947,10 +4098,6 @@ type PolicyControllerHubConfig struct { // being evaluated. ReferentialRulesEnabled bool `json:"referentialRulesEnabled,omitempty"` - // TemplateLibraryConfig: Configures the library templates to install - // along with Policy Controller. - TemplateLibraryConfig *PolicyControllerTemplateLibraryConfig `json:"templateLibraryConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. // "AuditIntervalSeconds") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API @@ -4018,10 +4165,6 @@ type PolicyControllerMembershipState struct { // 1. "admission" 2. "audit" 3. "mutation" ComponentStates map[string]PolicyControllerOnClusterState `json:"componentStates,omitempty"` - // ContentStates: The state of the template library and any bundles - // included in the chosen version of the manifest - ContentStates map[string]PolicyControllerOnClusterState `json:"contentStates,omitempty"` - // PolicyContentState: The overall content state observed by the Hub // Feature controller. PolicyContentState *PolicyControllerPolicyContentState `json:"policyContentState,omitempty"` @@ -4279,6 +4422,17 @@ type PolicyControllerPolicyControllerDeploymentConfig struct { // ContainerResources: Container resource requirements. ContainerResources *PolicyControllerResourceRequirements `json:"containerResources,omitempty"` + // PodAffinity: Pod affinity configuration. + // + // Possible values: + // "AFFINITY_UNSPECIFIED" - No affinity configuration has been + // specified. + // "NO_AFFINITY" - Affinity configurations will be removed from the + // deployment. + // "ANTI_AFFINITY" - Anti-affinity configuration will be applied to + // this deployment. Default for admissions deployment. + PodAffinity string `json:"podAffinity,omitempty"` + // PodAntiAffinity: Pod anti-affinity enablement. PodAntiAffinity bool `json:"podAntiAffinity,omitempty"` @@ -4381,10 +4535,6 @@ func (s *PolicyControllerResourceRequirements) MarshalJSON() ([]byte, error) { // PolicyControllerTemplateLibraryConfig: The config specifying which // default library templates to install. type PolicyControllerTemplateLibraryConfig struct { - // Included: Whether the standard template library should be installed - // or not. - Included bool `json:"included,omitempty"` - // Installation: Configures the manner in which the template library is // installed on the cluster. // @@ -4395,7 +4545,7 @@ type PolicyControllerTemplateLibraryConfig struct { // "ALL" - Install the entire template library. Installation string `json:"installation,omitempty"` - // ForceSendFields is a list of field names (e.g. "Included") to + // ForceSendFields is a list of field names (e.g. "Installation") 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 @@ -4403,10 +4553,10 @@ type PolicyControllerTemplateLibraryConfig struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Included") 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 + // NullFields is a list of field names (e.g. "Installation") 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:"-"` diff --git a/searchconsole/v1/searchconsole-api.json b/searchconsole/v1/searchconsole-api.json index 80ce11f5311..9e620f9f94e 100644 --- a/searchconsole/v1/searchconsole-api.json +++ b/searchconsole/v1/searchconsole-api.json @@ -400,7 +400,7 @@ } } }, - "revision": "20220816", + "revision": "20230701", "rootUrl": "https://searchconsole.googleapis.com/", "schemas": { "AmpInspectionResult": { @@ -1416,6 +1416,15 @@ "PATTERN_SITEMAP", "OCEANFRONT" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + true, + true + ], "enumDescriptions": [ "", "", @@ -1440,6 +1449,7 @@ "id": "WmxSitemapContent", "properties": { "indexed": { + "deprecated": true, "description": "*Deprecated; do not use.*", "format": "int64", "type": "string" @@ -1462,6 +1472,17 @@ "IOS_APP", "DATA_FEED_ELEMENT" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + true + ], "enumDescriptions": [ "", "",