1<html><body> 2<style> 3 4body, h1, h2, h3, div, span, p, pre, a { 5 margin: 0; 6 padding: 0; 7 border: 0; 8 font-weight: inherit; 9 font-style: inherit; 10 font-size: 100%; 11 font-family: inherit; 12 vertical-align: baseline; 13} 14 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, h2, h3 { 50 border-bottom: solid #CCC 1px; 51} 52 53.toc_element { 54 margin-top: 0.5em; 55} 56 57.firstline { 58 margin-left: 2 em; 59} 60 61.method { 62 margin-top: 1em; 63 border: solid 1px #CCC; 64 padding: 1em; 65 background: #EEE; 66} 67 68.details { 69 font-weight: bold; 70 font-size: 14px; 71} 72 73</style> 74 75<h1><a href="gkehub_v1alpha.html">GKE Hub</a> . <a href="gkehub_v1alpha.projects.html">projects</a> . <a href="gkehub_v1alpha.projects.locations.html">locations</a> . <a href="gkehub_v1alpha.projects.locations.global_.html">global_</a> . <a href="gkehub_v1alpha.projects.locations.global_.features.html">features</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#close">close()</a></code></p> 79<p class="firstline">Close httplib2 connections.</p> 80<p class="toc_element"> 81 <code><a href="#create">create(parent, body=None, featureId=None, requestId=None, x__xgafv=None)</a></code></p> 82<p class="firstline">Adds a new Feature.</p> 83<p class="toc_element"> 84 <code><a href="#delete">delete(name, force=None, requestId=None, x__xgafv=None)</a></code></p> 85<p class="firstline">Removes a Feature.</p> 86<p class="toc_element"> 87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p> 88<p class="firstline">Gets details of a single Feature.</p> 89<p class="toc_element"> 90 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p> 91<p class="firstline">Lists Features in a given project and location.</p> 92<p class="toc_element"> 93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 94<p class="firstline">Retrieves the next page of results.</p> 95<p class="toc_element"> 96 <code><a href="#patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</a></code></p> 97<p class="firstline">Updates an existing Feature.</p> 98<h3>Method Details</h3> 99<div class="method"> 100 <code class="details" id="close">close()</code> 101 <pre>Close httplib2 connections.</pre> 102</div> 103 104<div class="method"> 105 <code class="details" id="create">create(parent, body=None, featureId=None, requestId=None, x__xgafv=None)</code> 106 <pre>Adds a new Feature. 107 108Args: 109 parent: string, The parent (project and location) where the Feature will be created. Specified in the format `projects/*/locations/global`. (required) 110 body: object, The request body. 111 The object takes the form of: 112 113{ # Feature represents the settings and status of any Hub Feature. 114 "createTime": "A String", # Output only. When the Feature resource was created. 115 "deleteTime": "A String", # Output only. When the Feature resource was deleted. 116 "labels": { # GCP labels for this Feature. 117 "a_key": "A String", 118 }, 119 "membershipSpecs": { # Optional. Membership-specific configuration for this Feature. If this Feature does not support any per-Membership configuration, this field may be unused. The keys indicate which Membership the configuration is for, in the form: projects/{p}/locations/{l}/memberships/{m} Where {p} is the project, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} WILL match the Feature's project. {p} will always be returned as the project number, but the project ID is also accepted during input. If the same Membership is specified in the map twice (using the project ID form, and the project number form), exactly ONE of the entries will be saved, with no guarantees as to which. For this reason, it is recommended the same format be used for all entries when mutating a Feature. 120 "a_key": { # MembershipFeatureSpec contains configuration information for a single Membership. 121 "configmanagement": { # Configuration for a single cluster. Intended to parallel the ConfigManagement CR. # Config Management-specific spec. 122 "binauthz": { # Configuration for Binauthz # Binauthz conifguration for the cluster. 123 "enabled": True or False, # Whether binauthz is enabled in this cluster. 124 }, 125 "configSync": { # Configuration for Config Sync # Config Sync configuration for the cluster. 126 "git": { # Git repo configuration for a single cluster. # Git repo configuration for the cluster. 127 "gcpServiceAccountEmail": "A String", # The GCP Service Account Email used for auth when secret_type is gcpServiceAccount. 128 "httpsProxy": "A String", # URL for the HTTPS proxy to be used when communicating with the Git repo. 129 "policyDir": "A String", # The path within the Git repository that represents the top level of the repo to sync. Default: the root directory of the repository. 130 "secretType": "A String", # Type of secret configured for access to the Git repo. 131 "syncBranch": "A String", # The branch of the repository to sync from. Default: master. 132 "syncRepo": "A String", # The URL of the Git repository to use as the source of truth. 133 "syncRev": "A String", # Git revision (tag or hash) to check out. Default HEAD. 134 "syncWaitSecs": "A String", # Period in seconds between consecutive syncs. Default: 15. 135 }, 136 "sourceFormat": "A String", # Specifies whether the Config Sync Repo is in “hierarchical” or “unstructured” mode. 137 }, 138 "hierarchyController": { # Configuration for Hierarchy Controller # Hierarchy Controller configuration for the cluster. 139 "enableHierarchicalResourceQuota": True or False, # Whether hierarchical resource quota is enabled in this cluster. 140 "enablePodTreeLabels": True or False, # Whether pod tree labels are enabled in this cluster. 141 "enabled": True or False, # Whether Hierarchy Controller is enabled in this cluster. 142 }, 143 "policyController": { # Configuration for Policy Controller # Policy Controller configuration for the cluster. 144 "auditIntervalSeconds": "A String", # Sets the interval for Policy Controller Audit Scans (in seconds). When set to 0, this disables audit functionality altogether. 145 "enabled": True or False, # Enables the installation of Policy Controller. If false, the rest of PolicyController fields take no effect. 146 "exemptableNamespaces": [ # The set of namespaces that are excluded from Policy Controller checks. Namespaces do not need to currently exist on the cluster. 147 "A String", 148 ], 149 "logDeniesEnabled": True or False, # Logs all denies and dry run failures. 150 "referentialRulesEnabled": True or False, # Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated. 151 "templateLibraryInstalled": True or False, # Installs the default template library along with Policy Controller. 152 }, 153 "version": "A String", # Version of ACM installed. 154 }, 155 }, 156 }, 157 "membershipStates": { # Output only. Membership-specific Feature status. If this Feature does report any per-Membership status, this field may be unused. The keys indicate which Membership the state is for, in the form: projects/{p}/locations/{l}/memberships/{m} Where {p} is the project number, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} MUST match the Feature's project number. 158 "a_key": { # MembershipFeatureState contains Feature status information for a single Membership. 159 "configmanagement": { # State for Anthos Config Management # Config Management-specific state. 160 "binauthzState": { # State for Binauthz # Binauthz status 161 "version": { # The version of binauthz. # The version of binauthz that is installed. 162 "webhookVersion": "A String", # The version of the binauthz webhook. 163 }, 164 "webhook": "A String", # The state of the binauthz webhook. 165 }, 166 "clusterName": "A String", # The user-defined name for the cluster used by ClusterSelectors to group clusters together. This should match Membership's membership_name, unless the user installed ACM on the cluster manually prior to enabling the ACM hub feature. Unique within a Anthos Config Management installation. 167 "configSyncState": { # State information for ConfigSync # Current sync status 168 "deploymentState": { # The state of ConfigSync's deployment on a cluster # Information about the deployment of ConfigSync, including the version of the various Pods deployed 169 "gitSync": "A String", # Deployment state of the git-sync pod 170 "importer": "A String", # Deployment state of the importer pod 171 "monitor": "A String", # Deployment state of the monitor pod 172 "reconcilerManager": "A String", # Deployment state of reconciler-manager pod 173 "rootReconciler": "A String", # Deployment state of root-reconciler 174 "syncer": "A String", # Deployment state of the syncer pod 175 }, 176 "syncState": { # State indicating an ACM's progress syncing configurations to a cluster # The state of ConfigSync's process to sync configs to a cluster 177 "code": "A String", # Sync status code 178 "errors": [ # A list of errors resulting from problematic configs. This list will be truncated after 100 errors, although it is unlikely for that many errors to simultaneously exist. 179 { # An ACM created error representing a problem syncing configurations 180 "code": "A String", # An ACM defined error code 181 "errorMessage": "A String", # A description of the error 182 "errorResources": [ # A list of config(s) associated with the error, if any 183 { # Model for a config file in the git repo with an associated Sync error 184 "resourceGvk": { # A Kubernetes object's GVK # Group/version/kind of the resource that is causing an error 185 "group": "A String", # Kubernetes Group 186 "kind": "A String", # Kubernetes Kind 187 "version": "A String", # Kubernetes Version 188 }, 189 "resourceName": "A String", # Metadata name of the resource that is causing an error 190 "resourceNamespace": "A String", # Namespace of the resource that is causing an error 191 "sourcePath": "A String", # Path in the git repo of the erroneous config 192 }, 193 ], 194 }, 195 ], 196 "importToken": "A String", # Token indicating the state of the importer. 197 "lastSync": "A String", # Timestamp of when ACM last successfully synced the repo The time format is specified in https://golang.org/pkg/time/#Time.String This field is being deprecated. Use last_sync_time instead. (b/154053616) 198 "lastSyncTime": "A String", # Timestamp type of when ACM last successfully synced the repo 199 "sourceToken": "A String", # Token indicating the state of the repo. 200 "syncToken": "A String", # Token indicating the state of the syncer. 201 }, 202 "version": { # Specific versioning information pertaining to ConfigSync's Pods # The version of ConfigSync deployed 203 "gitSync": "A String", # Version of the deployed git-sync pod 204 "importer": "A String", # Version of the deployed importer pod 205 "monitor": "A String", # Version of the deployed monitor pod 206 "reconcilerManager": "A String", # Version of the deployed reconciler-manager pod 207 "rootReconciler": "A String", # Version of the deployed reconciler container in root-reconciler pod 208 "syncer": "A String", # Version of the deployed syncer pod 209 }, 210 }, 211 "hierarchyControllerState": { # State for Hierarchy Controller # Hierarchy Controller status 212 "state": { # Deployment state for Hierarchy Controller # The deployment state for Hierarchy Controller 213 "extension": "A String", # The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1) 214 "hnc": "A String", # The deployment state for open source HNC (e.g. v0.7.0-hc.0) 215 }, 216 "version": { # Version for Hierarchy Controller # The version for Hierarchy Controller 217 "extension": "A String", # Version for Hierarchy Controller extension 218 "hnc": "A String", # Version for open source HNC 219 }, 220 }, 221 "membershipSpec": { # Configuration for a single cluster. Intended to parallel the ConfigManagement CR. # Membership configuration in the cluster. This represents the actual state in the cluster, while the MembershipSpec in the FeatureSpec represents the intended state 222 "binauthz": { # Configuration for Binauthz # Binauthz conifguration for the cluster. 223 "enabled": True or False, # Whether binauthz is enabled in this cluster. 224 }, 225 "configSync": { # Configuration for Config Sync # Config Sync configuration for the cluster. 226 "git": { # Git repo configuration for a single cluster. # Git repo configuration for the cluster. 227 "gcpServiceAccountEmail": "A String", # The GCP Service Account Email used for auth when secret_type is gcpServiceAccount. 228 "httpsProxy": "A String", # URL for the HTTPS proxy to be used when communicating with the Git repo. 229 "policyDir": "A String", # The path within the Git repository that represents the top level of the repo to sync. Default: the root directory of the repository. 230 "secretType": "A String", # Type of secret configured for access to the Git repo. 231 "syncBranch": "A String", # The branch of the repository to sync from. Default: master. 232 "syncRepo": "A String", # The URL of the Git repository to use as the source of truth. 233 "syncRev": "A String", # Git revision (tag or hash) to check out. Default HEAD. 234 "syncWaitSecs": "A String", # Period in seconds between consecutive syncs. Default: 15. 235 }, 236 "sourceFormat": "A String", # Specifies whether the Config Sync Repo is in “hierarchical” or “unstructured” mode. 237 }, 238 "hierarchyController": { # Configuration for Hierarchy Controller # Hierarchy Controller configuration for the cluster. 239 "enableHierarchicalResourceQuota": True or False, # Whether hierarchical resource quota is enabled in this cluster. 240 "enablePodTreeLabels": True or False, # Whether pod tree labels are enabled in this cluster. 241 "enabled": True or False, # Whether Hierarchy Controller is enabled in this cluster. 242 }, 243 "policyController": { # Configuration for Policy Controller # Policy Controller configuration for the cluster. 244 "auditIntervalSeconds": "A String", # Sets the interval for Policy Controller Audit Scans (in seconds). When set to 0, this disables audit functionality altogether. 245 "enabled": True or False, # Enables the installation of Policy Controller. If false, the rest of PolicyController fields take no effect. 246 "exemptableNamespaces": [ # The set of namespaces that are excluded from Policy Controller checks. Namespaces do not need to currently exist on the cluster. 247 "A String", 248 ], 249 "logDeniesEnabled": True or False, # Logs all denies and dry run failures. 250 "referentialRulesEnabled": True or False, # Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated. 251 "templateLibraryInstalled": True or False, # Installs the default template library along with Policy Controller. 252 }, 253 "version": "A String", # Version of ACM installed. 254 }, 255 "operatorState": { # State information for an ACM's Operator # Current install status of ACM's Operator 256 "deploymentState": "A String", # The state of the Operator's deployment 257 "errors": [ # Install errors. 258 { # Errors pertaining to the installation of ACM 259 "errorMessage": "A String", # A string representing the user facing error message 260 }, 261 ], 262 "version": "A String", # The semenatic version number of the operator 263 }, 264 "policyControllerState": { # State for PolicyControllerState. # PolicyController status 265 "deploymentState": { # State of Policy Controller installation. # The state about the policy controller installation. 266 "gatekeeperAudit": "A String", # Status of gatekeeper-audit deployment. 267 "gatekeeperControllerManagerState": "A String", # Status of gatekeeper-controller-manager pod. 268 }, 269 "version": { # The build version of Gatekeeper Policy Controller is using. # The version of Gatekeeper Policy Controller deployed. 270 "version": "A String", # The gatekeeper image tag that is composed of ACM version, git tag, build number. 271 }, 272 }, 273 }, 274 "metering": { # Metering per-Membership Feature State. # Metering-specific spec. 275 "lastMeasurementTime": "A String", # The time stamp of the most recent measurement of the number of vCPUs in the cluster. 276 "preciseLastMeasuredClusterVcpuCapacity": 3.14, # The vCPUs capacity in the cluster according to the most recent measurement (1/1000 precision). 277 }, 278 "servicemesh": { # MembershipState describes the state of the Service Mesh Hub Feature as analyzed by the Service Mesh Hub Controller, for single Membership. # Service Mesh-specific state. 279 "analysisMessages": [ # Output only. Results of running Service Mesh analyzers. 280 { # AnalysisMessage is a single message produced by an analyzer, and it used to communicate to the end user about the state of their Service Mesh configuration. 281 "args": { # A UI can combine these args with a template (based on message_base.type) to produce an internationalized message. 282 "a_key": "", # Properties of the object. 283 }, 284 "description": "A String", # A human readable description of what the error means. It is suitable for non-internationalize display purposes. 285 "messageBase": { # AnalysisMessageBase describes some common information that is needed for all messages. # Details common to all types of Istio and ServiceMesh analysis messages. 286 "documentationUrl": "A String", # A url pointing to the Service Mesh or Istio documentation for this specific error type. 287 "level": "A String", # Represents how severe a message is. 288 "type": { # A unique identifier for the type of message. Display_name is intended to be human-readable, code is intended to be machine readable. There should be a one-to-one mapping between display_name and code. (i.e. do not re-use display_names or codes between message types.) See istio.analysis.v1alpha1.AnalysisMessageBase.Type # Represents the specific type of a message. 289 "code": "A String", # A 7 character code matching `^IST[0-9]{4}$` or `^ASM[0-9]{4}$`, intended to uniquely identify the message type. (e.g. "IST0001" is mapped to the "InternalError" message type.) 290 "displayName": "A String", # A human-readable name for the message type. e.g. "InternalError", "PodMissingProxy". This should be the same for all messages of the same type. (This corresponds to the `name` field in open-source Istio.) 291 }, 292 }, 293 "resourcePaths": [ # A list of strings specifying the resource identifiers that were the cause of message generation. A "path" here may be: * MEMBERSHIP_ID if the cause is a specific member cluster * MEMBERSHIP_ID/(NAMESPACE\/)?RESOURCETYPE/NAME if the cause is a resource in a cluster 294 "A String", 295 ], 296 }, 297 ], 298 }, 299 "state": { # FeatureState describes the high-level state of a Feature. It may be used to describe a Feature's state at the environ-level, or per-membershop, depending on the context. # The high-level state of this Feature for a single membership. 300 "code": "A String", # The high-level, machine-readable status of this Feature. 301 "description": "A String", # A human-readable description of the current status. 302 "updateTime": "A String", # The time this status and any related Feature-specific details were updated. 303 }, 304 }, 305 }, 306 "name": "A String", # Output only. The full, unique name of this Feature resource in the format `projects/*/locations/global/features/*`. 307 "resourceState": { # FeatureResourceState describes the state of a Feature *resource* in the GkeHub API. See `FeatureState` for the "running state" of the Feature in the Hub and across Memberships. # Output only. State of the Feature resource itself. 308 "state": "A String", # The current state of the Feature resource in the Hub API. 309 }, 310 "spec": { # CommonFeatureSpec contains Hub-wide configuration information # Optional. Hub-wide Feature configuration. If this Feature does not support any Hub-wide configuration, this field may be unused. 311 "cloudauditlogging": { # Spec for Audit Logging Allowlisting. # Cloud Audit Logging-specific spec. 312 "allowlistedServiceAccounts": [ # Service account that should be allowlisted to send the audit logs; eg [email protected]. These accounts must already exist, but do not need to have any permissions granted to them. The customer's entitlements will be checked prior to allowlisting (i.e. the customer must be an Anthos customer.) 313 "A String", 314 ], 315 }, 316 "multiclusteringress": { # FeatureSpec contains the input for the MultiClusterIngress feature. # Multicluster Ingress-specific spec. 317 "configMembership": "A String", # Fully-qualified Membership name which hosts the MultiClusterIngress CRD. Example: `projects/foo-proj/locations/global/memberships/bar` 318 }, 319 }, 320 "state": { # CommonFeatureState contains Hub-wide Feature status information. # Output only. The Hub-wide Feature state. 321 "servicemesh": { # FeatureState describes the state of the Service Mesh Hub Feature as analyzed by the Service Mesh Hub Controller, for the whole Hub. # Service Mesh-specific state. 322 "analysisMessages": [ # Output only. Results of running Service Mesh analyzers. 323 { # AnalysisMessage is a single message produced by an analyzer, and it used to communicate to the end user about the state of their Service Mesh configuration. 324 "args": { # A UI can combine these args with a template (based on message_base.type) to produce an internationalized message. 325 "a_key": "", # Properties of the object. 326 }, 327 "description": "A String", # A human readable description of what the error means. It is suitable for non-internationalize display purposes. 328 "messageBase": { # AnalysisMessageBase describes some common information that is needed for all messages. # Details common to all types of Istio and ServiceMesh analysis messages. 329 "documentationUrl": "A String", # A url pointing to the Service Mesh or Istio documentation for this specific error type. 330 "level": "A String", # Represents how severe a message is. 331 "type": { # A unique identifier for the type of message. Display_name is intended to be human-readable, code is intended to be machine readable. There should be a one-to-one mapping between display_name and code. (i.e. do not re-use display_names or codes between message types.) See istio.analysis.v1alpha1.AnalysisMessageBase.Type # Represents the specific type of a message. 332 "code": "A String", # A 7 character code matching `^IST[0-9]{4}$` or `^ASM[0-9]{4}$`, intended to uniquely identify the message type. (e.g. "IST0001" is mapped to the "InternalError" message type.) 333 "displayName": "A String", # A human-readable name for the message type. e.g. "InternalError", "PodMissingProxy". This should be the same for all messages of the same type. (This corresponds to the `name` field in open-source Istio.) 334 }, 335 }, 336 "resourcePaths": [ # A list of strings specifying the resource identifiers that were the cause of message generation. A "path" here may be: * MEMBERSHIP_ID if the cause is a specific member cluster * MEMBERSHIP_ID/(NAMESPACE\/)?RESOURCETYPE/NAME if the cause is a resource in a cluster 337 "A String", 338 ], 339 }, 340 ], 341 }, 342 "state": { # FeatureState describes the high-level state of a Feature. It may be used to describe a Feature's state at the environ-level, or per-membershop, depending on the context. # Output only. The "running state" of the Feature in this Hub. 343 "code": "A String", # The high-level, machine-readable status of this Feature. 344 "description": "A String", # A human-readable description of the current status. 345 "updateTime": "A String", # The time this status and any related Feature-specific details were updated. 346 }, 347 }, 348 "updateTime": "A String", # Output only. When the Feature resource was last updated. 349} 350 351 featureId: string, The ID of the feature to create. 352 requestId: string, Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). 353 x__xgafv: string, V1 error format. 354 Allowed values 355 1 - v1 error format 356 2 - v2 error format 357 358Returns: 359 An object of the form: 360 361 { # This resource represents a long-running operation that is the result of a network API call. 362 "done": True or False, # 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. 363 "error": { # 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). # The error result of the operation in case of failure or cancellation. 364 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 365 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 366 { 367 "a_key": "", # Properties of the object. Contains field @type with type URL. 368 }, 369 ], 370 "message": "A String", # 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. 371 }, 372 "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. 373 "a_key": "", # Properties of the object. Contains field @type with type URL. 374 }, 375 "name": "A String", # 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}`. 376 "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`. 377 "a_key": "", # Properties of the object. Contains field @type with type URL. 378 }, 379}</pre> 380</div> 381 382<div class="method"> 383 <code class="details" id="delete">delete(name, force=None, requestId=None, x__xgafv=None)</code> 384 <pre>Removes a Feature. 385 386Args: 387 name: string, The Feature resource name in the format `projects/*/locations/global/features/*`. (required) 388 force: boolean, If set to true, the delete will ignore any outstanding resources for this Feature (that is, `FeatureState.has_resources` is set to true). These resources will NOT be cleaned up or modified in any way. 389 requestId: string, Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). 390 x__xgafv: string, V1 error format. 391 Allowed values 392 1 - v1 error format 393 2 - v2 error format 394 395Returns: 396 An object of the form: 397 398 { # This resource represents a long-running operation that is the result of a network API call. 399 "done": True or False, # 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. 400 "error": { # 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). # The error result of the operation in case of failure or cancellation. 401 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 402 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 403 { 404 "a_key": "", # Properties of the object. Contains field @type with type URL. 405 }, 406 ], 407 "message": "A String", # 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. 408 }, 409 "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. 410 "a_key": "", # Properties of the object. Contains field @type with type URL. 411 }, 412 "name": "A String", # 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}`. 413 "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`. 414 "a_key": "", # Properties of the object. Contains field @type with type URL. 415 }, 416}</pre> 417</div> 418 419<div class="method"> 420 <code class="details" id="get">get(name, x__xgafv=None)</code> 421 <pre>Gets details of a single Feature. 422 423Args: 424 name: string, The Feature resource name in the format `projects/*/locations/global/features/*` (required) 425 x__xgafv: string, V1 error format. 426 Allowed values 427 1 - v1 error format 428 2 - v2 error format 429 430Returns: 431 An object of the form: 432 433 { # Feature represents the settings and status of any Hub Feature. 434 "createTime": "A String", # Output only. When the Feature resource was created. 435 "deleteTime": "A String", # Output only. When the Feature resource was deleted. 436 "labels": { # GCP labels for this Feature. 437 "a_key": "A String", 438 }, 439 "membershipSpecs": { # Optional. Membership-specific configuration for this Feature. If this Feature does not support any per-Membership configuration, this field may be unused. The keys indicate which Membership the configuration is for, in the form: projects/{p}/locations/{l}/memberships/{m} Where {p} is the project, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} WILL match the Feature's project. {p} will always be returned as the project number, but the project ID is also accepted during input. If the same Membership is specified in the map twice (using the project ID form, and the project number form), exactly ONE of the entries will be saved, with no guarantees as to which. For this reason, it is recommended the same format be used for all entries when mutating a Feature. 440 "a_key": { # MembershipFeatureSpec contains configuration information for a single Membership. 441 "configmanagement": { # Configuration for a single cluster. Intended to parallel the ConfigManagement CR. # Config Management-specific spec. 442 "binauthz": { # Configuration for Binauthz # Binauthz conifguration for the cluster. 443 "enabled": True or False, # Whether binauthz is enabled in this cluster. 444 }, 445 "configSync": { # Configuration for Config Sync # Config Sync configuration for the cluster. 446 "git": { # Git repo configuration for a single cluster. # Git repo configuration for the cluster. 447 "gcpServiceAccountEmail": "A String", # The GCP Service Account Email used for auth when secret_type is gcpServiceAccount. 448 "httpsProxy": "A String", # URL for the HTTPS proxy to be used when communicating with the Git repo. 449 "policyDir": "A String", # The path within the Git repository that represents the top level of the repo to sync. Default: the root directory of the repository. 450 "secretType": "A String", # Type of secret configured for access to the Git repo. 451 "syncBranch": "A String", # The branch of the repository to sync from. Default: master. 452 "syncRepo": "A String", # The URL of the Git repository to use as the source of truth. 453 "syncRev": "A String", # Git revision (tag or hash) to check out. Default HEAD. 454 "syncWaitSecs": "A String", # Period in seconds between consecutive syncs. Default: 15. 455 }, 456 "sourceFormat": "A String", # Specifies whether the Config Sync Repo is in “hierarchical” or “unstructured” mode. 457 }, 458 "hierarchyController": { # Configuration for Hierarchy Controller # Hierarchy Controller configuration for the cluster. 459 "enableHierarchicalResourceQuota": True or False, # Whether hierarchical resource quota is enabled in this cluster. 460 "enablePodTreeLabels": True or False, # Whether pod tree labels are enabled in this cluster. 461 "enabled": True or False, # Whether Hierarchy Controller is enabled in this cluster. 462 }, 463 "policyController": { # Configuration for Policy Controller # Policy Controller configuration for the cluster. 464 "auditIntervalSeconds": "A String", # Sets the interval for Policy Controller Audit Scans (in seconds). When set to 0, this disables audit functionality altogether. 465 "enabled": True or False, # Enables the installation of Policy Controller. If false, the rest of PolicyController fields take no effect. 466 "exemptableNamespaces": [ # The set of namespaces that are excluded from Policy Controller checks. Namespaces do not need to currently exist on the cluster. 467 "A String", 468 ], 469 "logDeniesEnabled": True or False, # Logs all denies and dry run failures. 470 "referentialRulesEnabled": True or False, # Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated. 471 "templateLibraryInstalled": True or False, # Installs the default template library along with Policy Controller. 472 }, 473 "version": "A String", # Version of ACM installed. 474 }, 475 }, 476 }, 477 "membershipStates": { # Output only. Membership-specific Feature status. If this Feature does report any per-Membership status, this field may be unused. The keys indicate which Membership the state is for, in the form: projects/{p}/locations/{l}/memberships/{m} Where {p} is the project number, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} MUST match the Feature's project number. 478 "a_key": { # MembershipFeatureState contains Feature status information for a single Membership. 479 "configmanagement": { # State for Anthos Config Management # Config Management-specific state. 480 "binauthzState": { # State for Binauthz # Binauthz status 481 "version": { # The version of binauthz. # The version of binauthz that is installed. 482 "webhookVersion": "A String", # The version of the binauthz webhook. 483 }, 484 "webhook": "A String", # The state of the binauthz webhook. 485 }, 486 "clusterName": "A String", # The user-defined name for the cluster used by ClusterSelectors to group clusters together. This should match Membership's membership_name, unless the user installed ACM on the cluster manually prior to enabling the ACM hub feature. Unique within a Anthos Config Management installation. 487 "configSyncState": { # State information for ConfigSync # Current sync status 488 "deploymentState": { # The state of ConfigSync's deployment on a cluster # Information about the deployment of ConfigSync, including the version of the various Pods deployed 489 "gitSync": "A String", # Deployment state of the git-sync pod 490 "importer": "A String", # Deployment state of the importer pod 491 "monitor": "A String", # Deployment state of the monitor pod 492 "reconcilerManager": "A String", # Deployment state of reconciler-manager pod 493 "rootReconciler": "A String", # Deployment state of root-reconciler 494 "syncer": "A String", # Deployment state of the syncer pod 495 }, 496 "syncState": { # State indicating an ACM's progress syncing configurations to a cluster # The state of ConfigSync's process to sync configs to a cluster 497 "code": "A String", # Sync status code 498 "errors": [ # A list of errors resulting from problematic configs. This list will be truncated after 100 errors, although it is unlikely for that many errors to simultaneously exist. 499 { # An ACM created error representing a problem syncing configurations 500 "code": "A String", # An ACM defined error code 501 "errorMessage": "A String", # A description of the error 502 "errorResources": [ # A list of config(s) associated with the error, if any 503 { # Model for a config file in the git repo with an associated Sync error 504 "resourceGvk": { # A Kubernetes object's GVK # Group/version/kind of the resource that is causing an error 505 "group": "A String", # Kubernetes Group 506 "kind": "A String", # Kubernetes Kind 507 "version": "A String", # Kubernetes Version 508 }, 509 "resourceName": "A String", # Metadata name of the resource that is causing an error 510 "resourceNamespace": "A String", # Namespace of the resource that is causing an error 511 "sourcePath": "A String", # Path in the git repo of the erroneous config 512 }, 513 ], 514 }, 515 ], 516 "importToken": "A String", # Token indicating the state of the importer. 517 "lastSync": "A String", # Timestamp of when ACM last successfully synced the repo The time format is specified in https://golang.org/pkg/time/#Time.String This field is being deprecated. Use last_sync_time instead. (b/154053616) 518 "lastSyncTime": "A String", # Timestamp type of when ACM last successfully synced the repo 519 "sourceToken": "A String", # Token indicating the state of the repo. 520 "syncToken": "A String", # Token indicating the state of the syncer. 521 }, 522 "version": { # Specific versioning information pertaining to ConfigSync's Pods # The version of ConfigSync deployed 523 "gitSync": "A String", # Version of the deployed git-sync pod 524 "importer": "A String", # Version of the deployed importer pod 525 "monitor": "A String", # Version of the deployed monitor pod 526 "reconcilerManager": "A String", # Version of the deployed reconciler-manager pod 527 "rootReconciler": "A String", # Version of the deployed reconciler container in root-reconciler pod 528 "syncer": "A String", # Version of the deployed syncer pod 529 }, 530 }, 531 "hierarchyControllerState": { # State for Hierarchy Controller # Hierarchy Controller status 532 "state": { # Deployment state for Hierarchy Controller # The deployment state for Hierarchy Controller 533 "extension": "A String", # The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1) 534 "hnc": "A String", # The deployment state for open source HNC (e.g. v0.7.0-hc.0) 535 }, 536 "version": { # Version for Hierarchy Controller # The version for Hierarchy Controller 537 "extension": "A String", # Version for Hierarchy Controller extension 538 "hnc": "A String", # Version for open source HNC 539 }, 540 }, 541 "membershipSpec": { # Configuration for a single cluster. Intended to parallel the ConfigManagement CR. # Membership configuration in the cluster. This represents the actual state in the cluster, while the MembershipSpec in the FeatureSpec represents the intended state 542 "binauthz": { # Configuration for Binauthz # Binauthz conifguration for the cluster. 543 "enabled": True or False, # Whether binauthz is enabled in this cluster. 544 }, 545 "configSync": { # Configuration for Config Sync # Config Sync configuration for the cluster. 546 "git": { # Git repo configuration for a single cluster. # Git repo configuration for the cluster. 547 "gcpServiceAccountEmail": "A String", # The GCP Service Account Email used for auth when secret_type is gcpServiceAccount. 548 "httpsProxy": "A String", # URL for the HTTPS proxy to be used when communicating with the Git repo. 549 "policyDir": "A String", # The path within the Git repository that represents the top level of the repo to sync. Default: the root directory of the repository. 550 "secretType": "A String", # Type of secret configured for access to the Git repo. 551 "syncBranch": "A String", # The branch of the repository to sync from. Default: master. 552 "syncRepo": "A String", # The URL of the Git repository to use as the source of truth. 553 "syncRev": "A String", # Git revision (tag or hash) to check out. Default HEAD. 554 "syncWaitSecs": "A String", # Period in seconds between consecutive syncs. Default: 15. 555 }, 556 "sourceFormat": "A String", # Specifies whether the Config Sync Repo is in “hierarchical” or “unstructured” mode. 557 }, 558 "hierarchyController": { # Configuration for Hierarchy Controller # Hierarchy Controller configuration for the cluster. 559 "enableHierarchicalResourceQuota": True or False, # Whether hierarchical resource quota is enabled in this cluster. 560 "enablePodTreeLabels": True or False, # Whether pod tree labels are enabled in this cluster. 561 "enabled": True or False, # Whether Hierarchy Controller is enabled in this cluster. 562 }, 563 "policyController": { # Configuration for Policy Controller # Policy Controller configuration for the cluster. 564 "auditIntervalSeconds": "A String", # Sets the interval for Policy Controller Audit Scans (in seconds). When set to 0, this disables audit functionality altogether. 565 "enabled": True or False, # Enables the installation of Policy Controller. If false, the rest of PolicyController fields take no effect. 566 "exemptableNamespaces": [ # The set of namespaces that are excluded from Policy Controller checks. Namespaces do not need to currently exist on the cluster. 567 "A String", 568 ], 569 "logDeniesEnabled": True or False, # Logs all denies and dry run failures. 570 "referentialRulesEnabled": True or False, # Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated. 571 "templateLibraryInstalled": True or False, # Installs the default template library along with Policy Controller. 572 }, 573 "version": "A String", # Version of ACM installed. 574 }, 575 "operatorState": { # State information for an ACM's Operator # Current install status of ACM's Operator 576 "deploymentState": "A String", # The state of the Operator's deployment 577 "errors": [ # Install errors. 578 { # Errors pertaining to the installation of ACM 579 "errorMessage": "A String", # A string representing the user facing error message 580 }, 581 ], 582 "version": "A String", # The semenatic version number of the operator 583 }, 584 "policyControllerState": { # State for PolicyControllerState. # PolicyController status 585 "deploymentState": { # State of Policy Controller installation. # The state about the policy controller installation. 586 "gatekeeperAudit": "A String", # Status of gatekeeper-audit deployment. 587 "gatekeeperControllerManagerState": "A String", # Status of gatekeeper-controller-manager pod. 588 }, 589 "version": { # The build version of Gatekeeper Policy Controller is using. # The version of Gatekeeper Policy Controller deployed. 590 "version": "A String", # The gatekeeper image tag that is composed of ACM version, git tag, build number. 591 }, 592 }, 593 }, 594 "metering": { # Metering per-Membership Feature State. # Metering-specific spec. 595 "lastMeasurementTime": "A String", # The time stamp of the most recent measurement of the number of vCPUs in the cluster. 596 "preciseLastMeasuredClusterVcpuCapacity": 3.14, # The vCPUs capacity in the cluster according to the most recent measurement (1/1000 precision). 597 }, 598 "servicemesh": { # MembershipState describes the state of the Service Mesh Hub Feature as analyzed by the Service Mesh Hub Controller, for single Membership. # Service Mesh-specific state. 599 "analysisMessages": [ # Output only. Results of running Service Mesh analyzers. 600 { # AnalysisMessage is a single message produced by an analyzer, and it used to communicate to the end user about the state of their Service Mesh configuration. 601 "args": { # A UI can combine these args with a template (based on message_base.type) to produce an internationalized message. 602 "a_key": "", # Properties of the object. 603 }, 604 "description": "A String", # A human readable description of what the error means. It is suitable for non-internationalize display purposes. 605 "messageBase": { # AnalysisMessageBase describes some common information that is needed for all messages. # Details common to all types of Istio and ServiceMesh analysis messages. 606 "documentationUrl": "A String", # A url pointing to the Service Mesh or Istio documentation for this specific error type. 607 "level": "A String", # Represents how severe a message is. 608 "type": { # A unique identifier for the type of message. Display_name is intended to be human-readable, code is intended to be machine readable. There should be a one-to-one mapping between display_name and code. (i.e. do not re-use display_names or codes between message types.) See istio.analysis.v1alpha1.AnalysisMessageBase.Type # Represents the specific type of a message. 609 "code": "A String", # A 7 character code matching `^IST[0-9]{4}$` or `^ASM[0-9]{4}$`, intended to uniquely identify the message type. (e.g. "IST0001" is mapped to the "InternalError" message type.) 610 "displayName": "A String", # A human-readable name for the message type. e.g. "InternalError", "PodMissingProxy". This should be the same for all messages of the same type. (This corresponds to the `name` field in open-source Istio.) 611 }, 612 }, 613 "resourcePaths": [ # A list of strings specifying the resource identifiers that were the cause of message generation. A "path" here may be: * MEMBERSHIP_ID if the cause is a specific member cluster * MEMBERSHIP_ID/(NAMESPACE\/)?RESOURCETYPE/NAME if the cause is a resource in a cluster 614 "A String", 615 ], 616 }, 617 ], 618 }, 619 "state": { # FeatureState describes the high-level state of a Feature. It may be used to describe a Feature's state at the environ-level, or per-membershop, depending on the context. # The high-level state of this Feature for a single membership. 620 "code": "A String", # The high-level, machine-readable status of this Feature. 621 "description": "A String", # A human-readable description of the current status. 622 "updateTime": "A String", # The time this status and any related Feature-specific details were updated. 623 }, 624 }, 625 }, 626 "name": "A String", # Output only. The full, unique name of this Feature resource in the format `projects/*/locations/global/features/*`. 627 "resourceState": { # FeatureResourceState describes the state of a Feature *resource* in the GkeHub API. See `FeatureState` for the "running state" of the Feature in the Hub and across Memberships. # Output only. State of the Feature resource itself. 628 "state": "A String", # The current state of the Feature resource in the Hub API. 629 }, 630 "spec": { # CommonFeatureSpec contains Hub-wide configuration information # Optional. Hub-wide Feature configuration. If this Feature does not support any Hub-wide configuration, this field may be unused. 631 "cloudauditlogging": { # Spec for Audit Logging Allowlisting. # Cloud Audit Logging-specific spec. 632 "allowlistedServiceAccounts": [ # Service account that should be allowlisted to send the audit logs; eg [email protected]. These accounts must already exist, but do not need to have any permissions granted to them. The customer's entitlements will be checked prior to allowlisting (i.e. the customer must be an Anthos customer.) 633 "A String", 634 ], 635 }, 636 "multiclusteringress": { # FeatureSpec contains the input for the MultiClusterIngress feature. # Multicluster Ingress-specific spec. 637 "configMembership": "A String", # Fully-qualified Membership name which hosts the MultiClusterIngress CRD. Example: `projects/foo-proj/locations/global/memberships/bar` 638 }, 639 }, 640 "state": { # CommonFeatureState contains Hub-wide Feature status information. # Output only. The Hub-wide Feature state. 641 "servicemesh": { # FeatureState describes the state of the Service Mesh Hub Feature as analyzed by the Service Mesh Hub Controller, for the whole Hub. # Service Mesh-specific state. 642 "analysisMessages": [ # Output only. Results of running Service Mesh analyzers. 643 { # AnalysisMessage is a single message produced by an analyzer, and it used to communicate to the end user about the state of their Service Mesh configuration. 644 "args": { # A UI can combine these args with a template (based on message_base.type) to produce an internationalized message. 645 "a_key": "", # Properties of the object. 646 }, 647 "description": "A String", # A human readable description of what the error means. It is suitable for non-internationalize display purposes. 648 "messageBase": { # AnalysisMessageBase describes some common information that is needed for all messages. # Details common to all types of Istio and ServiceMesh analysis messages. 649 "documentationUrl": "A String", # A url pointing to the Service Mesh or Istio documentation for this specific error type. 650 "level": "A String", # Represents how severe a message is. 651 "type": { # A unique identifier for the type of message. Display_name is intended to be human-readable, code is intended to be machine readable. There should be a one-to-one mapping between display_name and code. (i.e. do not re-use display_names or codes between message types.) See istio.analysis.v1alpha1.AnalysisMessageBase.Type # Represents the specific type of a message. 652 "code": "A String", # A 7 character code matching `^IST[0-9]{4}$` or `^ASM[0-9]{4}$`, intended to uniquely identify the message type. (e.g. "IST0001" is mapped to the "InternalError" message type.) 653 "displayName": "A String", # A human-readable name for the message type. e.g. "InternalError", "PodMissingProxy". This should be the same for all messages of the same type. (This corresponds to the `name` field in open-source Istio.) 654 }, 655 }, 656 "resourcePaths": [ # A list of strings specifying the resource identifiers that were the cause of message generation. A "path" here may be: * MEMBERSHIP_ID if the cause is a specific member cluster * MEMBERSHIP_ID/(NAMESPACE\/)?RESOURCETYPE/NAME if the cause is a resource in a cluster 657 "A String", 658 ], 659 }, 660 ], 661 }, 662 "state": { # FeatureState describes the high-level state of a Feature. It may be used to describe a Feature's state at the environ-level, or per-membershop, depending on the context. # Output only. The "running state" of the Feature in this Hub. 663 "code": "A String", # The high-level, machine-readable status of this Feature. 664 "description": "A String", # A human-readable description of the current status. 665 "updateTime": "A String", # The time this status and any related Feature-specific details were updated. 666 }, 667 }, 668 "updateTime": "A String", # Output only. When the Feature resource was last updated. 669}</pre> 670</div> 671 672<div class="method"> 673 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code> 674 <pre>Lists Features in a given project and location. 675 676Args: 677 parent: string, The parent (project and location) where the Features will be listed. Specified in the format `projects/*/locations/global`. (required) 678 filter: string, Lists Features that match the filter expression, following the syntax outlined in https://google.aip.dev/160. Examples: - Feature with the name "servicemesh" in project "foo-proj": name = "projects/foo-proj/locations/global/features/servicemesh" - Features that have a label called `foo`: labels.foo:* - Features that have a label called `foo` whose value is `bar`: labels.foo = bar 679 orderBy: string, One or more fields to compare and use to sort the output. See https://google.aip.dev/132#ordering. 680 pageSize: integer, 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. 681 pageToken: string, Token returned by previous call to `ListFeatures` which specifies the position in the list from where to continue listing the resources. 682 x__xgafv: string, V1 error format. 683 Allowed values 684 1 - v1 error format 685 2 - v2 error format 686 687Returns: 688 An object of the form: 689 690 { # Response message for the `GkeHub.ListFeatures` method. 691 "nextPageToken": "A String", # A token to request the next page of resources from the `ListFeatures` method. The value of an empty string means that there are no more resources to return. 692 "resources": [ # The list of matching Features 693 { # Feature represents the settings and status of any Hub Feature. 694 "createTime": "A String", # Output only. When the Feature resource was created. 695 "deleteTime": "A String", # Output only. When the Feature resource was deleted. 696 "labels": { # GCP labels for this Feature. 697 "a_key": "A String", 698 }, 699 "membershipSpecs": { # Optional. Membership-specific configuration for this Feature. If this Feature does not support any per-Membership configuration, this field may be unused. The keys indicate which Membership the configuration is for, in the form: projects/{p}/locations/{l}/memberships/{m} Where {p} is the project, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} WILL match the Feature's project. {p} will always be returned as the project number, but the project ID is also accepted during input. If the same Membership is specified in the map twice (using the project ID form, and the project number form), exactly ONE of the entries will be saved, with no guarantees as to which. For this reason, it is recommended the same format be used for all entries when mutating a Feature. 700 "a_key": { # MembershipFeatureSpec contains configuration information for a single Membership. 701 "configmanagement": { # Configuration for a single cluster. Intended to parallel the ConfigManagement CR. # Config Management-specific spec. 702 "binauthz": { # Configuration for Binauthz # Binauthz conifguration for the cluster. 703 "enabled": True or False, # Whether binauthz is enabled in this cluster. 704 }, 705 "configSync": { # Configuration for Config Sync # Config Sync configuration for the cluster. 706 "git": { # Git repo configuration for a single cluster. # Git repo configuration for the cluster. 707 "gcpServiceAccountEmail": "A String", # The GCP Service Account Email used for auth when secret_type is gcpServiceAccount. 708 "httpsProxy": "A String", # URL for the HTTPS proxy to be used when communicating with the Git repo. 709 "policyDir": "A String", # The path within the Git repository that represents the top level of the repo to sync. Default: the root directory of the repository. 710 "secretType": "A String", # Type of secret configured for access to the Git repo. 711 "syncBranch": "A String", # The branch of the repository to sync from. Default: master. 712 "syncRepo": "A String", # The URL of the Git repository to use as the source of truth. 713 "syncRev": "A String", # Git revision (tag or hash) to check out. Default HEAD. 714 "syncWaitSecs": "A String", # Period in seconds between consecutive syncs. Default: 15. 715 }, 716 "sourceFormat": "A String", # Specifies whether the Config Sync Repo is in “hierarchical” or “unstructured” mode. 717 }, 718 "hierarchyController": { # Configuration for Hierarchy Controller # Hierarchy Controller configuration for the cluster. 719 "enableHierarchicalResourceQuota": True or False, # Whether hierarchical resource quota is enabled in this cluster. 720 "enablePodTreeLabels": True or False, # Whether pod tree labels are enabled in this cluster. 721 "enabled": True or False, # Whether Hierarchy Controller is enabled in this cluster. 722 }, 723 "policyController": { # Configuration for Policy Controller # Policy Controller configuration for the cluster. 724 "auditIntervalSeconds": "A String", # Sets the interval for Policy Controller Audit Scans (in seconds). When set to 0, this disables audit functionality altogether. 725 "enabled": True or False, # Enables the installation of Policy Controller. If false, the rest of PolicyController fields take no effect. 726 "exemptableNamespaces": [ # The set of namespaces that are excluded from Policy Controller checks. Namespaces do not need to currently exist on the cluster. 727 "A String", 728 ], 729 "logDeniesEnabled": True or False, # Logs all denies and dry run failures. 730 "referentialRulesEnabled": True or False, # Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated. 731 "templateLibraryInstalled": True or False, # Installs the default template library along with Policy Controller. 732 }, 733 "version": "A String", # Version of ACM installed. 734 }, 735 }, 736 }, 737 "membershipStates": { # Output only. Membership-specific Feature status. If this Feature does report any per-Membership status, this field may be unused. The keys indicate which Membership the state is for, in the form: projects/{p}/locations/{l}/memberships/{m} Where {p} is the project number, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} MUST match the Feature's project number. 738 "a_key": { # MembershipFeatureState contains Feature status information for a single Membership. 739 "configmanagement": { # State for Anthos Config Management # Config Management-specific state. 740 "binauthzState": { # State for Binauthz # Binauthz status 741 "version": { # The version of binauthz. # The version of binauthz that is installed. 742 "webhookVersion": "A String", # The version of the binauthz webhook. 743 }, 744 "webhook": "A String", # The state of the binauthz webhook. 745 }, 746 "clusterName": "A String", # The user-defined name for the cluster used by ClusterSelectors to group clusters together. This should match Membership's membership_name, unless the user installed ACM on the cluster manually prior to enabling the ACM hub feature. Unique within a Anthos Config Management installation. 747 "configSyncState": { # State information for ConfigSync # Current sync status 748 "deploymentState": { # The state of ConfigSync's deployment on a cluster # Information about the deployment of ConfigSync, including the version of the various Pods deployed 749 "gitSync": "A String", # Deployment state of the git-sync pod 750 "importer": "A String", # Deployment state of the importer pod 751 "monitor": "A String", # Deployment state of the monitor pod 752 "reconcilerManager": "A String", # Deployment state of reconciler-manager pod 753 "rootReconciler": "A String", # Deployment state of root-reconciler 754 "syncer": "A String", # Deployment state of the syncer pod 755 }, 756 "syncState": { # State indicating an ACM's progress syncing configurations to a cluster # The state of ConfigSync's process to sync configs to a cluster 757 "code": "A String", # Sync status code 758 "errors": [ # A list of errors resulting from problematic configs. This list will be truncated after 100 errors, although it is unlikely for that many errors to simultaneously exist. 759 { # An ACM created error representing a problem syncing configurations 760 "code": "A String", # An ACM defined error code 761 "errorMessage": "A String", # A description of the error 762 "errorResources": [ # A list of config(s) associated with the error, if any 763 { # Model for a config file in the git repo with an associated Sync error 764 "resourceGvk": { # A Kubernetes object's GVK # Group/version/kind of the resource that is causing an error 765 "group": "A String", # Kubernetes Group 766 "kind": "A String", # Kubernetes Kind 767 "version": "A String", # Kubernetes Version 768 }, 769 "resourceName": "A String", # Metadata name of the resource that is causing an error 770 "resourceNamespace": "A String", # Namespace of the resource that is causing an error 771 "sourcePath": "A String", # Path in the git repo of the erroneous config 772 }, 773 ], 774 }, 775 ], 776 "importToken": "A String", # Token indicating the state of the importer. 777 "lastSync": "A String", # Timestamp of when ACM last successfully synced the repo The time format is specified in https://golang.org/pkg/time/#Time.String This field is being deprecated. Use last_sync_time instead. (b/154053616) 778 "lastSyncTime": "A String", # Timestamp type of when ACM last successfully synced the repo 779 "sourceToken": "A String", # Token indicating the state of the repo. 780 "syncToken": "A String", # Token indicating the state of the syncer. 781 }, 782 "version": { # Specific versioning information pertaining to ConfigSync's Pods # The version of ConfigSync deployed 783 "gitSync": "A String", # Version of the deployed git-sync pod 784 "importer": "A String", # Version of the deployed importer pod 785 "monitor": "A String", # Version of the deployed monitor pod 786 "reconcilerManager": "A String", # Version of the deployed reconciler-manager pod 787 "rootReconciler": "A String", # Version of the deployed reconciler container in root-reconciler pod 788 "syncer": "A String", # Version of the deployed syncer pod 789 }, 790 }, 791 "hierarchyControllerState": { # State for Hierarchy Controller # Hierarchy Controller status 792 "state": { # Deployment state for Hierarchy Controller # The deployment state for Hierarchy Controller 793 "extension": "A String", # The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1) 794 "hnc": "A String", # The deployment state for open source HNC (e.g. v0.7.0-hc.0) 795 }, 796 "version": { # Version for Hierarchy Controller # The version for Hierarchy Controller 797 "extension": "A String", # Version for Hierarchy Controller extension 798 "hnc": "A String", # Version for open source HNC 799 }, 800 }, 801 "membershipSpec": { # Configuration for a single cluster. Intended to parallel the ConfigManagement CR. # Membership configuration in the cluster. This represents the actual state in the cluster, while the MembershipSpec in the FeatureSpec represents the intended state 802 "binauthz": { # Configuration for Binauthz # Binauthz conifguration for the cluster. 803 "enabled": True or False, # Whether binauthz is enabled in this cluster. 804 }, 805 "configSync": { # Configuration for Config Sync # Config Sync configuration for the cluster. 806 "git": { # Git repo configuration for a single cluster. # Git repo configuration for the cluster. 807 "gcpServiceAccountEmail": "A String", # The GCP Service Account Email used for auth when secret_type is gcpServiceAccount. 808 "httpsProxy": "A String", # URL for the HTTPS proxy to be used when communicating with the Git repo. 809 "policyDir": "A String", # The path within the Git repository that represents the top level of the repo to sync. Default: the root directory of the repository. 810 "secretType": "A String", # Type of secret configured for access to the Git repo. 811 "syncBranch": "A String", # The branch of the repository to sync from. Default: master. 812 "syncRepo": "A String", # The URL of the Git repository to use as the source of truth. 813 "syncRev": "A String", # Git revision (tag or hash) to check out. Default HEAD. 814 "syncWaitSecs": "A String", # Period in seconds between consecutive syncs. Default: 15. 815 }, 816 "sourceFormat": "A String", # Specifies whether the Config Sync Repo is in “hierarchical” or “unstructured” mode. 817 }, 818 "hierarchyController": { # Configuration for Hierarchy Controller # Hierarchy Controller configuration for the cluster. 819 "enableHierarchicalResourceQuota": True or False, # Whether hierarchical resource quota is enabled in this cluster. 820 "enablePodTreeLabels": True or False, # Whether pod tree labels are enabled in this cluster. 821 "enabled": True or False, # Whether Hierarchy Controller is enabled in this cluster. 822 }, 823 "policyController": { # Configuration for Policy Controller # Policy Controller configuration for the cluster. 824 "auditIntervalSeconds": "A String", # Sets the interval for Policy Controller Audit Scans (in seconds). When set to 0, this disables audit functionality altogether. 825 "enabled": True or False, # Enables the installation of Policy Controller. If false, the rest of PolicyController fields take no effect. 826 "exemptableNamespaces": [ # The set of namespaces that are excluded from Policy Controller checks. Namespaces do not need to currently exist on the cluster. 827 "A String", 828 ], 829 "logDeniesEnabled": True or False, # Logs all denies and dry run failures. 830 "referentialRulesEnabled": True or False, # Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated. 831 "templateLibraryInstalled": True or False, # Installs the default template library along with Policy Controller. 832 }, 833 "version": "A String", # Version of ACM installed. 834 }, 835 "operatorState": { # State information for an ACM's Operator # Current install status of ACM's Operator 836 "deploymentState": "A String", # The state of the Operator's deployment 837 "errors": [ # Install errors. 838 { # Errors pertaining to the installation of ACM 839 "errorMessage": "A String", # A string representing the user facing error message 840 }, 841 ], 842 "version": "A String", # The semenatic version number of the operator 843 }, 844 "policyControllerState": { # State for PolicyControllerState. # PolicyController status 845 "deploymentState": { # State of Policy Controller installation. # The state about the policy controller installation. 846 "gatekeeperAudit": "A String", # Status of gatekeeper-audit deployment. 847 "gatekeeperControllerManagerState": "A String", # Status of gatekeeper-controller-manager pod. 848 }, 849 "version": { # The build version of Gatekeeper Policy Controller is using. # The version of Gatekeeper Policy Controller deployed. 850 "version": "A String", # The gatekeeper image tag that is composed of ACM version, git tag, build number. 851 }, 852 }, 853 }, 854 "metering": { # Metering per-Membership Feature State. # Metering-specific spec. 855 "lastMeasurementTime": "A String", # The time stamp of the most recent measurement of the number of vCPUs in the cluster. 856 "preciseLastMeasuredClusterVcpuCapacity": 3.14, # The vCPUs capacity in the cluster according to the most recent measurement (1/1000 precision). 857 }, 858 "servicemesh": { # MembershipState describes the state of the Service Mesh Hub Feature as analyzed by the Service Mesh Hub Controller, for single Membership. # Service Mesh-specific state. 859 "analysisMessages": [ # Output only. Results of running Service Mesh analyzers. 860 { # AnalysisMessage is a single message produced by an analyzer, and it used to communicate to the end user about the state of their Service Mesh configuration. 861 "args": { # A UI can combine these args with a template (based on message_base.type) to produce an internationalized message. 862 "a_key": "", # Properties of the object. 863 }, 864 "description": "A String", # A human readable description of what the error means. It is suitable for non-internationalize display purposes. 865 "messageBase": { # AnalysisMessageBase describes some common information that is needed for all messages. # Details common to all types of Istio and ServiceMesh analysis messages. 866 "documentationUrl": "A String", # A url pointing to the Service Mesh or Istio documentation for this specific error type. 867 "level": "A String", # Represents how severe a message is. 868 "type": { # A unique identifier for the type of message. Display_name is intended to be human-readable, code is intended to be machine readable. There should be a one-to-one mapping between display_name and code. (i.e. do not re-use display_names or codes between message types.) See istio.analysis.v1alpha1.AnalysisMessageBase.Type # Represents the specific type of a message. 869 "code": "A String", # A 7 character code matching `^IST[0-9]{4}$` or `^ASM[0-9]{4}$`, intended to uniquely identify the message type. (e.g. "IST0001" is mapped to the "InternalError" message type.) 870 "displayName": "A String", # A human-readable name for the message type. e.g. "InternalError", "PodMissingProxy". This should be the same for all messages of the same type. (This corresponds to the `name` field in open-source Istio.) 871 }, 872 }, 873 "resourcePaths": [ # A list of strings specifying the resource identifiers that were the cause of message generation. A "path" here may be: * MEMBERSHIP_ID if the cause is a specific member cluster * MEMBERSHIP_ID/(NAMESPACE\/)?RESOURCETYPE/NAME if the cause is a resource in a cluster 874 "A String", 875 ], 876 }, 877 ], 878 }, 879 "state": { # FeatureState describes the high-level state of a Feature. It may be used to describe a Feature's state at the environ-level, or per-membershop, depending on the context. # The high-level state of this Feature for a single membership. 880 "code": "A String", # The high-level, machine-readable status of this Feature. 881 "description": "A String", # A human-readable description of the current status. 882 "updateTime": "A String", # The time this status and any related Feature-specific details were updated. 883 }, 884 }, 885 }, 886 "name": "A String", # Output only. The full, unique name of this Feature resource in the format `projects/*/locations/global/features/*`. 887 "resourceState": { # FeatureResourceState describes the state of a Feature *resource* in the GkeHub API. See `FeatureState` for the "running state" of the Feature in the Hub and across Memberships. # Output only. State of the Feature resource itself. 888 "state": "A String", # The current state of the Feature resource in the Hub API. 889 }, 890 "spec": { # CommonFeatureSpec contains Hub-wide configuration information # Optional. Hub-wide Feature configuration. If this Feature does not support any Hub-wide configuration, this field may be unused. 891 "cloudauditlogging": { # Spec for Audit Logging Allowlisting. # Cloud Audit Logging-specific spec. 892 "allowlistedServiceAccounts": [ # Service account that should be allowlisted to send the audit logs; eg [email protected]. These accounts must already exist, but do not need to have any permissions granted to them. The customer's entitlements will be checked prior to allowlisting (i.e. the customer must be an Anthos customer.) 893 "A String", 894 ], 895 }, 896 "multiclusteringress": { # FeatureSpec contains the input for the MultiClusterIngress feature. # Multicluster Ingress-specific spec. 897 "configMembership": "A String", # Fully-qualified Membership name which hosts the MultiClusterIngress CRD. Example: `projects/foo-proj/locations/global/memberships/bar` 898 }, 899 }, 900 "state": { # CommonFeatureState contains Hub-wide Feature status information. # Output only. The Hub-wide Feature state. 901 "servicemesh": { # FeatureState describes the state of the Service Mesh Hub Feature as analyzed by the Service Mesh Hub Controller, for the whole Hub. # Service Mesh-specific state. 902 "analysisMessages": [ # Output only. Results of running Service Mesh analyzers. 903 { # AnalysisMessage is a single message produced by an analyzer, and it used to communicate to the end user about the state of their Service Mesh configuration. 904 "args": { # A UI can combine these args with a template (based on message_base.type) to produce an internationalized message. 905 "a_key": "", # Properties of the object. 906 }, 907 "description": "A String", # A human readable description of what the error means. It is suitable for non-internationalize display purposes. 908 "messageBase": { # AnalysisMessageBase describes some common information that is needed for all messages. # Details common to all types of Istio and ServiceMesh analysis messages. 909 "documentationUrl": "A String", # A url pointing to the Service Mesh or Istio documentation for this specific error type. 910 "level": "A String", # Represents how severe a message is. 911 "type": { # A unique identifier for the type of message. Display_name is intended to be human-readable, code is intended to be machine readable. There should be a one-to-one mapping between display_name and code. (i.e. do not re-use display_names or codes between message types.) See istio.analysis.v1alpha1.AnalysisMessageBase.Type # Represents the specific type of a message. 912 "code": "A String", # A 7 character code matching `^IST[0-9]{4}$` or `^ASM[0-9]{4}$`, intended to uniquely identify the message type. (e.g. "IST0001" is mapped to the "InternalError" message type.) 913 "displayName": "A String", # A human-readable name for the message type. e.g. "InternalError", "PodMissingProxy". This should be the same for all messages of the same type. (This corresponds to the `name` field in open-source Istio.) 914 }, 915 }, 916 "resourcePaths": [ # A list of strings specifying the resource identifiers that were the cause of message generation. A "path" here may be: * MEMBERSHIP_ID if the cause is a specific member cluster * MEMBERSHIP_ID/(NAMESPACE\/)?RESOURCETYPE/NAME if the cause is a resource in a cluster 917 "A String", 918 ], 919 }, 920 ], 921 }, 922 "state": { # FeatureState describes the high-level state of a Feature. It may be used to describe a Feature's state at the environ-level, or per-membershop, depending on the context. # Output only. The "running state" of the Feature in this Hub. 923 "code": "A String", # The high-level, machine-readable status of this Feature. 924 "description": "A String", # A human-readable description of the current status. 925 "updateTime": "A String", # The time this status and any related Feature-specific details were updated. 926 }, 927 }, 928 "updateTime": "A String", # Output only. When the Feature resource was last updated. 929 }, 930 ], 931}</pre> 932</div> 933 934<div class="method"> 935 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 936 <pre>Retrieves the next page of results. 937 938Args: 939 previous_request: The request for the previous page. (required) 940 previous_response: The response from the request for the previous page. (required) 941 942Returns: 943 A request object that you can call 'execute()' on to request the next 944 page. Returns None if there are no more items in the collection. 945 </pre> 946</div> 947 948<div class="method"> 949 <code class="details" id="patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</code> 950 <pre>Updates an existing Feature. 951 952Args: 953 name: string, The Feature resource name in the format `projects/*/locations/global/features/*`. (required) 954 body: object, The request body. 955 The object takes the form of: 956 957{ # Feature represents the settings and status of any Hub Feature. 958 "createTime": "A String", # Output only. When the Feature resource was created. 959 "deleteTime": "A String", # Output only. When the Feature resource was deleted. 960 "labels": { # GCP labels for this Feature. 961 "a_key": "A String", 962 }, 963 "membershipSpecs": { # Optional. Membership-specific configuration for this Feature. If this Feature does not support any per-Membership configuration, this field may be unused. The keys indicate which Membership the configuration is for, in the form: projects/{p}/locations/{l}/memberships/{m} Where {p} is the project, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} WILL match the Feature's project. {p} will always be returned as the project number, but the project ID is also accepted during input. If the same Membership is specified in the map twice (using the project ID form, and the project number form), exactly ONE of the entries will be saved, with no guarantees as to which. For this reason, it is recommended the same format be used for all entries when mutating a Feature. 964 "a_key": { # MembershipFeatureSpec contains configuration information for a single Membership. 965 "configmanagement": { # Configuration for a single cluster. Intended to parallel the ConfigManagement CR. # Config Management-specific spec. 966 "binauthz": { # Configuration for Binauthz # Binauthz conifguration for the cluster. 967 "enabled": True or False, # Whether binauthz is enabled in this cluster. 968 }, 969 "configSync": { # Configuration for Config Sync # Config Sync configuration for the cluster. 970 "git": { # Git repo configuration for a single cluster. # Git repo configuration for the cluster. 971 "gcpServiceAccountEmail": "A String", # The GCP Service Account Email used for auth when secret_type is gcpServiceAccount. 972 "httpsProxy": "A String", # URL for the HTTPS proxy to be used when communicating with the Git repo. 973 "policyDir": "A String", # The path within the Git repository that represents the top level of the repo to sync. Default: the root directory of the repository. 974 "secretType": "A String", # Type of secret configured for access to the Git repo. 975 "syncBranch": "A String", # The branch of the repository to sync from. Default: master. 976 "syncRepo": "A String", # The URL of the Git repository to use as the source of truth. 977 "syncRev": "A String", # Git revision (tag or hash) to check out. Default HEAD. 978 "syncWaitSecs": "A String", # Period in seconds between consecutive syncs. Default: 15. 979 }, 980 "sourceFormat": "A String", # Specifies whether the Config Sync Repo is in “hierarchical” or “unstructured” mode. 981 }, 982 "hierarchyController": { # Configuration for Hierarchy Controller # Hierarchy Controller configuration for the cluster. 983 "enableHierarchicalResourceQuota": True or False, # Whether hierarchical resource quota is enabled in this cluster. 984 "enablePodTreeLabels": True or False, # Whether pod tree labels are enabled in this cluster. 985 "enabled": True or False, # Whether Hierarchy Controller is enabled in this cluster. 986 }, 987 "policyController": { # Configuration for Policy Controller # Policy Controller configuration for the cluster. 988 "auditIntervalSeconds": "A String", # Sets the interval for Policy Controller Audit Scans (in seconds). When set to 0, this disables audit functionality altogether. 989 "enabled": True or False, # Enables the installation of Policy Controller. If false, the rest of PolicyController fields take no effect. 990 "exemptableNamespaces": [ # The set of namespaces that are excluded from Policy Controller checks. Namespaces do not need to currently exist on the cluster. 991 "A String", 992 ], 993 "logDeniesEnabled": True or False, # Logs all denies and dry run failures. 994 "referentialRulesEnabled": True or False, # Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated. 995 "templateLibraryInstalled": True or False, # Installs the default template library along with Policy Controller. 996 }, 997 "version": "A String", # Version of ACM installed. 998 }, 999 }, 1000 }, 1001 "membershipStates": { # Output only. Membership-specific Feature status. If this Feature does report any per-Membership status, this field may be unused. The keys indicate which Membership the state is for, in the form: projects/{p}/locations/{l}/memberships/{m} Where {p} is the project number, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} MUST match the Feature's project number. 1002 "a_key": { # MembershipFeatureState contains Feature status information for a single Membership. 1003 "configmanagement": { # State for Anthos Config Management # Config Management-specific state. 1004 "binauthzState": { # State for Binauthz # Binauthz status 1005 "version": { # The version of binauthz. # The version of binauthz that is installed. 1006 "webhookVersion": "A String", # The version of the binauthz webhook. 1007 }, 1008 "webhook": "A String", # The state of the binauthz webhook. 1009 }, 1010 "clusterName": "A String", # The user-defined name for the cluster used by ClusterSelectors to group clusters together. This should match Membership's membership_name, unless the user installed ACM on the cluster manually prior to enabling the ACM hub feature. Unique within a Anthos Config Management installation. 1011 "configSyncState": { # State information for ConfigSync # Current sync status 1012 "deploymentState": { # The state of ConfigSync's deployment on a cluster # Information about the deployment of ConfigSync, including the version of the various Pods deployed 1013 "gitSync": "A String", # Deployment state of the git-sync pod 1014 "importer": "A String", # Deployment state of the importer pod 1015 "monitor": "A String", # Deployment state of the monitor pod 1016 "reconcilerManager": "A String", # Deployment state of reconciler-manager pod 1017 "rootReconciler": "A String", # Deployment state of root-reconciler 1018 "syncer": "A String", # Deployment state of the syncer pod 1019 }, 1020 "syncState": { # State indicating an ACM's progress syncing configurations to a cluster # The state of ConfigSync's process to sync configs to a cluster 1021 "code": "A String", # Sync status code 1022 "errors": [ # A list of errors resulting from problematic configs. This list will be truncated after 100 errors, although it is unlikely for that many errors to simultaneously exist. 1023 { # An ACM created error representing a problem syncing configurations 1024 "code": "A String", # An ACM defined error code 1025 "errorMessage": "A String", # A description of the error 1026 "errorResources": [ # A list of config(s) associated with the error, if any 1027 { # Model for a config file in the git repo with an associated Sync error 1028 "resourceGvk": { # A Kubernetes object's GVK # Group/version/kind of the resource that is causing an error 1029 "group": "A String", # Kubernetes Group 1030 "kind": "A String", # Kubernetes Kind 1031 "version": "A String", # Kubernetes Version 1032 }, 1033 "resourceName": "A String", # Metadata name of the resource that is causing an error 1034 "resourceNamespace": "A String", # Namespace of the resource that is causing an error 1035 "sourcePath": "A String", # Path in the git repo of the erroneous config 1036 }, 1037 ], 1038 }, 1039 ], 1040 "importToken": "A String", # Token indicating the state of the importer. 1041 "lastSync": "A String", # Timestamp of when ACM last successfully synced the repo The time format is specified in https://golang.org/pkg/time/#Time.String This field is being deprecated. Use last_sync_time instead. (b/154053616) 1042 "lastSyncTime": "A String", # Timestamp type of when ACM last successfully synced the repo 1043 "sourceToken": "A String", # Token indicating the state of the repo. 1044 "syncToken": "A String", # Token indicating the state of the syncer. 1045 }, 1046 "version": { # Specific versioning information pertaining to ConfigSync's Pods # The version of ConfigSync deployed 1047 "gitSync": "A String", # Version of the deployed git-sync pod 1048 "importer": "A String", # Version of the deployed importer pod 1049 "monitor": "A String", # Version of the deployed monitor pod 1050 "reconcilerManager": "A String", # Version of the deployed reconciler-manager pod 1051 "rootReconciler": "A String", # Version of the deployed reconciler container in root-reconciler pod 1052 "syncer": "A String", # Version of the deployed syncer pod 1053 }, 1054 }, 1055 "hierarchyControllerState": { # State for Hierarchy Controller # Hierarchy Controller status 1056 "state": { # Deployment state for Hierarchy Controller # The deployment state for Hierarchy Controller 1057 "extension": "A String", # The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1) 1058 "hnc": "A String", # The deployment state for open source HNC (e.g. v0.7.0-hc.0) 1059 }, 1060 "version": { # Version for Hierarchy Controller # The version for Hierarchy Controller 1061 "extension": "A String", # Version for Hierarchy Controller extension 1062 "hnc": "A String", # Version for open source HNC 1063 }, 1064 }, 1065 "membershipSpec": { # Configuration for a single cluster. Intended to parallel the ConfigManagement CR. # Membership configuration in the cluster. This represents the actual state in the cluster, while the MembershipSpec in the FeatureSpec represents the intended state 1066 "binauthz": { # Configuration for Binauthz # Binauthz conifguration for the cluster. 1067 "enabled": True or False, # Whether binauthz is enabled in this cluster. 1068 }, 1069 "configSync": { # Configuration for Config Sync # Config Sync configuration for the cluster. 1070 "git": { # Git repo configuration for a single cluster. # Git repo configuration for the cluster. 1071 "gcpServiceAccountEmail": "A String", # The GCP Service Account Email used for auth when secret_type is gcpServiceAccount. 1072 "httpsProxy": "A String", # URL for the HTTPS proxy to be used when communicating with the Git repo. 1073 "policyDir": "A String", # The path within the Git repository that represents the top level of the repo to sync. Default: the root directory of the repository. 1074 "secretType": "A String", # Type of secret configured for access to the Git repo. 1075 "syncBranch": "A String", # The branch of the repository to sync from. Default: master. 1076 "syncRepo": "A String", # The URL of the Git repository to use as the source of truth. 1077 "syncRev": "A String", # Git revision (tag or hash) to check out. Default HEAD. 1078 "syncWaitSecs": "A String", # Period in seconds between consecutive syncs. Default: 15. 1079 }, 1080 "sourceFormat": "A String", # Specifies whether the Config Sync Repo is in “hierarchical” or “unstructured” mode. 1081 }, 1082 "hierarchyController": { # Configuration for Hierarchy Controller # Hierarchy Controller configuration for the cluster. 1083 "enableHierarchicalResourceQuota": True or False, # Whether hierarchical resource quota is enabled in this cluster. 1084 "enablePodTreeLabels": True or False, # Whether pod tree labels are enabled in this cluster. 1085 "enabled": True or False, # Whether Hierarchy Controller is enabled in this cluster. 1086 }, 1087 "policyController": { # Configuration for Policy Controller # Policy Controller configuration for the cluster. 1088 "auditIntervalSeconds": "A String", # Sets the interval for Policy Controller Audit Scans (in seconds). When set to 0, this disables audit functionality altogether. 1089 "enabled": True or False, # Enables the installation of Policy Controller. If false, the rest of PolicyController fields take no effect. 1090 "exemptableNamespaces": [ # The set of namespaces that are excluded from Policy Controller checks. Namespaces do not need to currently exist on the cluster. 1091 "A String", 1092 ], 1093 "logDeniesEnabled": True or False, # Logs all denies and dry run failures. 1094 "referentialRulesEnabled": True or False, # Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated. 1095 "templateLibraryInstalled": True or False, # Installs the default template library along with Policy Controller. 1096 }, 1097 "version": "A String", # Version of ACM installed. 1098 }, 1099 "operatorState": { # State information for an ACM's Operator # Current install status of ACM's Operator 1100 "deploymentState": "A String", # The state of the Operator's deployment 1101 "errors": [ # Install errors. 1102 { # Errors pertaining to the installation of ACM 1103 "errorMessage": "A String", # A string representing the user facing error message 1104 }, 1105 ], 1106 "version": "A String", # The semenatic version number of the operator 1107 }, 1108 "policyControllerState": { # State for PolicyControllerState. # PolicyController status 1109 "deploymentState": { # State of Policy Controller installation. # The state about the policy controller installation. 1110 "gatekeeperAudit": "A String", # Status of gatekeeper-audit deployment. 1111 "gatekeeperControllerManagerState": "A String", # Status of gatekeeper-controller-manager pod. 1112 }, 1113 "version": { # The build version of Gatekeeper Policy Controller is using. # The version of Gatekeeper Policy Controller deployed. 1114 "version": "A String", # The gatekeeper image tag that is composed of ACM version, git tag, build number. 1115 }, 1116 }, 1117 }, 1118 "metering": { # Metering per-Membership Feature State. # Metering-specific spec. 1119 "lastMeasurementTime": "A String", # The time stamp of the most recent measurement of the number of vCPUs in the cluster. 1120 "preciseLastMeasuredClusterVcpuCapacity": 3.14, # The vCPUs capacity in the cluster according to the most recent measurement (1/1000 precision). 1121 }, 1122 "servicemesh": { # MembershipState describes the state of the Service Mesh Hub Feature as analyzed by the Service Mesh Hub Controller, for single Membership. # Service Mesh-specific state. 1123 "analysisMessages": [ # Output only. Results of running Service Mesh analyzers. 1124 { # AnalysisMessage is a single message produced by an analyzer, and it used to communicate to the end user about the state of their Service Mesh configuration. 1125 "args": { # A UI can combine these args with a template (based on message_base.type) to produce an internationalized message. 1126 "a_key": "", # Properties of the object. 1127 }, 1128 "description": "A String", # A human readable description of what the error means. It is suitable for non-internationalize display purposes. 1129 "messageBase": { # AnalysisMessageBase describes some common information that is needed for all messages. # Details common to all types of Istio and ServiceMesh analysis messages. 1130 "documentationUrl": "A String", # A url pointing to the Service Mesh or Istio documentation for this specific error type. 1131 "level": "A String", # Represents how severe a message is. 1132 "type": { # A unique identifier for the type of message. Display_name is intended to be human-readable, code is intended to be machine readable. There should be a one-to-one mapping between display_name and code. (i.e. do not re-use display_names or codes between message types.) See istio.analysis.v1alpha1.AnalysisMessageBase.Type # Represents the specific type of a message. 1133 "code": "A String", # A 7 character code matching `^IST[0-9]{4}$` or `^ASM[0-9]{4}$`, intended to uniquely identify the message type. (e.g. "IST0001" is mapped to the "InternalError" message type.) 1134 "displayName": "A String", # A human-readable name for the message type. e.g. "InternalError", "PodMissingProxy". This should be the same for all messages of the same type. (This corresponds to the `name` field in open-source Istio.) 1135 }, 1136 }, 1137 "resourcePaths": [ # A list of strings specifying the resource identifiers that were the cause of message generation. A "path" here may be: * MEMBERSHIP_ID if the cause is a specific member cluster * MEMBERSHIP_ID/(NAMESPACE\/)?RESOURCETYPE/NAME if the cause is a resource in a cluster 1138 "A String", 1139 ], 1140 }, 1141 ], 1142 }, 1143 "state": { # FeatureState describes the high-level state of a Feature. It may be used to describe a Feature's state at the environ-level, or per-membershop, depending on the context. # The high-level state of this Feature for a single membership. 1144 "code": "A String", # The high-level, machine-readable status of this Feature. 1145 "description": "A String", # A human-readable description of the current status. 1146 "updateTime": "A String", # The time this status and any related Feature-specific details were updated. 1147 }, 1148 }, 1149 }, 1150 "name": "A String", # Output only. The full, unique name of this Feature resource in the format `projects/*/locations/global/features/*`. 1151 "resourceState": { # FeatureResourceState describes the state of a Feature *resource* in the GkeHub API. See `FeatureState` for the "running state" of the Feature in the Hub and across Memberships. # Output only. State of the Feature resource itself. 1152 "state": "A String", # The current state of the Feature resource in the Hub API. 1153 }, 1154 "spec": { # CommonFeatureSpec contains Hub-wide configuration information # Optional. Hub-wide Feature configuration. If this Feature does not support any Hub-wide configuration, this field may be unused. 1155 "cloudauditlogging": { # Spec for Audit Logging Allowlisting. # Cloud Audit Logging-specific spec. 1156 "allowlistedServiceAccounts": [ # Service account that should be allowlisted to send the audit logs; eg [email protected]. These accounts must already exist, but do not need to have any permissions granted to them. The customer's entitlements will be checked prior to allowlisting (i.e. the customer must be an Anthos customer.) 1157 "A String", 1158 ], 1159 }, 1160 "multiclusteringress": { # FeatureSpec contains the input for the MultiClusterIngress feature. # Multicluster Ingress-specific spec. 1161 "configMembership": "A String", # Fully-qualified Membership name which hosts the MultiClusterIngress CRD. Example: `projects/foo-proj/locations/global/memberships/bar` 1162 }, 1163 }, 1164 "state": { # CommonFeatureState contains Hub-wide Feature status information. # Output only. The Hub-wide Feature state. 1165 "servicemesh": { # FeatureState describes the state of the Service Mesh Hub Feature as analyzed by the Service Mesh Hub Controller, for the whole Hub. # Service Mesh-specific state. 1166 "analysisMessages": [ # Output only. Results of running Service Mesh analyzers. 1167 { # AnalysisMessage is a single message produced by an analyzer, and it used to communicate to the end user about the state of their Service Mesh configuration. 1168 "args": { # A UI can combine these args with a template (based on message_base.type) to produce an internationalized message. 1169 "a_key": "", # Properties of the object. 1170 }, 1171 "description": "A String", # A human readable description of what the error means. It is suitable for non-internationalize display purposes. 1172 "messageBase": { # AnalysisMessageBase describes some common information that is needed for all messages. # Details common to all types of Istio and ServiceMesh analysis messages. 1173 "documentationUrl": "A String", # A url pointing to the Service Mesh or Istio documentation for this specific error type. 1174 "level": "A String", # Represents how severe a message is. 1175 "type": { # A unique identifier for the type of message. Display_name is intended to be human-readable, code is intended to be machine readable. There should be a one-to-one mapping between display_name and code. (i.e. do not re-use display_names or codes between message types.) See istio.analysis.v1alpha1.AnalysisMessageBase.Type # Represents the specific type of a message. 1176 "code": "A String", # A 7 character code matching `^IST[0-9]{4}$` or `^ASM[0-9]{4}$`, intended to uniquely identify the message type. (e.g. "IST0001" is mapped to the "InternalError" message type.) 1177 "displayName": "A String", # A human-readable name for the message type. e.g. "InternalError", "PodMissingProxy". This should be the same for all messages of the same type. (This corresponds to the `name` field in open-source Istio.) 1178 }, 1179 }, 1180 "resourcePaths": [ # A list of strings specifying the resource identifiers that were the cause of message generation. A "path" here may be: * MEMBERSHIP_ID if the cause is a specific member cluster * MEMBERSHIP_ID/(NAMESPACE\/)?RESOURCETYPE/NAME if the cause is a resource in a cluster 1181 "A String", 1182 ], 1183 }, 1184 ], 1185 }, 1186 "state": { # FeatureState describes the high-level state of a Feature. It may be used to describe a Feature's state at the environ-level, or per-membershop, depending on the context. # Output only. The "running state" of the Feature in this Hub. 1187 "code": "A String", # The high-level, machine-readable status of this Feature. 1188 "description": "A String", # A human-readable description of the current status. 1189 "updateTime": "A String", # The time this status and any related Feature-specific details were updated. 1190 }, 1191 }, 1192 "updateTime": "A String", # Output only. When the Feature resource was last updated. 1193} 1194 1195 requestId: string, Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). 1196 updateMask: string, Mask of fields to update. 1197 x__xgafv: string, V1 error format. 1198 Allowed values 1199 1 - v1 error format 1200 2 - v2 error format 1201 1202Returns: 1203 An object of the form: 1204 1205 { # This resource represents a long-running operation that is the result of a network API call. 1206 "done": True or False, # 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. 1207 "error": { # 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). # The error result of the operation in case of failure or cancellation. 1208 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 1209 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 1210 { 1211 "a_key": "", # Properties of the object. Contains field @type with type URL. 1212 }, 1213 ], 1214 "message": "A String", # 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. 1215 }, 1216 "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. 1217 "a_key": "", # Properties of the object. Contains field @type with type URL. 1218 }, 1219 "name": "A String", # 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}`. 1220 "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`. 1221 "a_key": "", # Properties of the object. Contains field @type with type URL. 1222 }, 1223}</pre> 1224</div> 1225 1226</body></html>