update kube-controller-manager dependencies
This commit is contained in:
17925
vendor/google.golang.org/api/compute/v0.alpha/compute-api.json
generated
vendored
17925
vendor/google.golang.org/api/compute/v0.alpha/compute-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
61662
vendor/google.golang.org/api/compute/v0.alpha/compute-gen.go
generated
vendored
61662
vendor/google.golang.org/api/compute/v0.alpha/compute-gen.go
generated
vendored
File diff suppressed because it is too large
Load Diff
13125
vendor/google.golang.org/api/compute/v0.beta/compute-api.json
generated
vendored
13125
vendor/google.golang.org/api/compute/v0.beta/compute-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
45717
vendor/google.golang.org/api/compute/v0.beta/compute-gen.go
generated
vendored
45717
vendor/google.golang.org/api/compute/v0.beta/compute-gen.go
generated
vendored
File diff suppressed because it is too large
Load Diff
12737
vendor/google.golang.org/api/compute/v1/compute-api.json
generated
vendored
12737
vendor/google.golang.org/api/compute/v1/compute-api.json
generated
vendored
File diff suppressed because it is too large
Load Diff
43431
vendor/google.golang.org/api/compute/v1/compute-gen.go
generated
vendored
43431
vendor/google.golang.org/api/compute/v1/compute-gen.go
generated
vendored
File diff suppressed because it is too large
Load Diff
373
vendor/google.golang.org/api/container/v1/container-api.json
generated
vendored
373
vendor/google.golang.org/api/container/v1/container-api.json
generated
vendored
@@ -3,7 +3,7 @@
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/cloud-platform": {
|
||||
"description": "See, edit, configure, and delete your Google Cloud Platform data"
|
||||
"description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account."
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2459,7 +2459,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20210419",
|
||||
"revision": "20211008",
|
||||
"rootUrl": "https://container.googleapis.com/",
|
||||
"schemas": {
|
||||
"AcceleratorConfig": {
|
||||
@@ -2474,6 +2474,10 @@
|
||||
"acceleratorType": {
|
||||
"description": "The accelerator type resource name. List of supported accelerators [here](https://cloud.google.com/compute/docs/gpus)",
|
||||
"type": "string"
|
||||
},
|
||||
"gpuPartitionSize": {
|
||||
"description": "Size of partitions to create on the GPU. Valid values are described in the NVIDIA [mig user guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
@@ -2498,6 +2502,10 @@
|
||||
"$ref": "GcePersistentDiskCsiDriverConfig",
|
||||
"description": "Configuration for the Compute Engine Persistent Disk CSI driver."
|
||||
},
|
||||
"gcpFilestoreCsiDriverConfig": {
|
||||
"$ref": "GcpFilestoreCsiDriverConfig",
|
||||
"description": "Configuration for the GCP Filestore CSI driver."
|
||||
},
|
||||
"horizontalPodAutoscaling": {
|
||||
"$ref": "HorizontalPodAutoscaling",
|
||||
"description": "Configuration for the horizontal pod autoscaling feature, which increases or decreases the number of replica pods a replication controller has based on the resource usage of the existing pods."
|
||||
@@ -2575,6 +2583,10 @@
|
||||
"description": "Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or 'pd-balanced') If unspecified, the default disk type is 'pd-standard'",
|
||||
"type": "string"
|
||||
},
|
||||
"imageType": {
|
||||
"description": "The image type to use for NAP created node.",
|
||||
"type": "string"
|
||||
},
|
||||
"management": {
|
||||
"$ref": "NodeManagement",
|
||||
"description": "Specifies the node management options for NAP created node-pools."
|
||||
@@ -2829,6 +2841,10 @@
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"loggingConfig": {
|
||||
"$ref": "LoggingConfig",
|
||||
"description": "Logging configuration for the cluster."
|
||||
},
|
||||
"loggingService": {
|
||||
"description": "The logging service the cluster should use to write logs. Currently available options: * `logging.googleapis.com/kubernetes` - The Cloud Logging service with a Kubernetes-native resource model * `logging.googleapis.com` - The legacy Cloud Logging service (no longer available as of GKE 1.15). * `none` - no logs will be exported from the cluster. If left as an empty string,`logging.googleapis.com/kubernetes` will be used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.",
|
||||
"type": "string"
|
||||
@@ -2845,6 +2861,14 @@
|
||||
"$ref": "MasterAuthorizedNetworksConfig",
|
||||
"description": "The configuration options for master authorized networks feature."
|
||||
},
|
||||
"meshCertificates": {
|
||||
"$ref": "MeshCertificates",
|
||||
"description": "Configuration for issuance of mTLS keys and certificates to Kubernetes pods."
|
||||
},
|
||||
"monitoringConfig": {
|
||||
"$ref": "MonitoringConfig",
|
||||
"description": "Monitoring configuration for the cluster."
|
||||
},
|
||||
"monitoringService": {
|
||||
"description": "The monitoring service the cluster should use to write metrics. Currently available options: * \"monitoring.googleapis.com/kubernetes\" - The Cloud Monitoring service with a Kubernetes-native resource model * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no longer available as of GKE 1.15). * `none` - No metrics will be exported from the cluster. If left as an empty string,`monitoring.googleapis.com/kubernetes` will be used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.",
|
||||
"type": "string"
|
||||
@@ -2874,6 +2898,10 @@
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
"nodePoolDefaults": {
|
||||
"$ref": "NodePoolDefaults",
|
||||
"description": "Default NodePool settings for the entire cluster. These settings are overridden if specified on the specific NodePool object."
|
||||
},
|
||||
"nodePools": {
|
||||
"description": "The node pools associated with this cluster. This field should not be set if \"node_config\" or \"initial_node_count\" are specified.",
|
||||
"items": {
|
||||
@@ -2980,6 +3008,20 @@
|
||||
"$ref": "AutoprovisioningNodePoolDefaults",
|
||||
"description": "AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP."
|
||||
},
|
||||
"autoscalingProfile": {
|
||||
"description": "Defines autoscaling behaviour.",
|
||||
"enum": [
|
||||
"PROFILE_UNSPECIFIED",
|
||||
"OPTIMIZE_UTILIZATION",
|
||||
"BALANCED"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"No change to autoscaling configuration.",
|
||||
"Prioritize optimizing utilization of resources.",
|
||||
"Use default (balanced) autoscaling configuration."
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"enableNodeAutoprovisioning": {
|
||||
"description": "Enables automatic node pool creation and deletion.",
|
||||
"type": "boolean"
|
||||
@@ -3002,9 +3044,9 @@
|
||||
"$ref": "AddonsConfig",
|
||||
"description": "Configurations for the various addons available to run in the cluster."
|
||||
},
|
||||
"desiredAutopilot": {
|
||||
"$ref": "Autopilot",
|
||||
"description": "The desired Autopilot configuration for the cluster."
|
||||
"desiredAuthenticatorGroupsConfig": {
|
||||
"$ref": "AuthenticatorGroupsConfig",
|
||||
"description": "The desired authenticator groups config for the cluster."
|
||||
},
|
||||
"desiredBinaryAuthorization": {
|
||||
"$ref": "BinaryAuthorization",
|
||||
@@ -3018,10 +3060,32 @@
|
||||
"$ref": "DatabaseEncryption",
|
||||
"description": "Configuration of etcd encryption."
|
||||
},
|
||||
"desiredDatapathProvider": {
|
||||
"description": "The desired datapath provider for the cluster.",
|
||||
"enum": [
|
||||
"DATAPATH_PROVIDER_UNSPECIFIED",
|
||||
"LEGACY_DATAPATH",
|
||||
"ADVANCED_DATAPATH"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Default value.",
|
||||
"Use the IPTables implementation based on kube-proxy.",
|
||||
"Use the eBPF based GKE Dataplane V2 with additional features. See the [GKE Dataplane V2 documentation](https://cloud.google.com/kubernetes-engine/docs/how-to/dataplane-v2) for more."
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"desiredDefaultSnatStatus": {
|
||||
"$ref": "DefaultSnatStatus",
|
||||
"description": "The desired status of whether to disable default sNAT for this cluster."
|
||||
},
|
||||
"desiredDnsConfig": {
|
||||
"$ref": "DNSConfig",
|
||||
"description": "DNSConfig contains clusterDNS config for this cluster."
|
||||
},
|
||||
"desiredGcfsConfig": {
|
||||
"$ref": "GcfsConfig",
|
||||
"description": "The desired GCFS config for the cluster"
|
||||
},
|
||||
"desiredImageType": {
|
||||
"description": "The desired image type for the node pool. NOTE: Set the \"desired_node_pool\" field as well.",
|
||||
"type": "string"
|
||||
@@ -3030,6 +3094,10 @@
|
||||
"$ref": "IntraNodeVisibilityConfig",
|
||||
"description": "The desired config of Intra-node visibility."
|
||||
},
|
||||
"desiredL4ilbSubsettingConfig": {
|
||||
"$ref": "ILBSubsettingConfig",
|
||||
"description": "The desired L4 Internal Load Balancer Subsetting configuration."
|
||||
},
|
||||
"desiredLocations": {
|
||||
"description": "The desired list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes should be located. This list must always include the cluster's primary zone. Warning: changing cluster locations will update the locations of all node pools and will result in nodes being added and/or removed.",
|
||||
"items": {
|
||||
@@ -3037,6 +3105,10 @@
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"desiredLoggingConfig": {
|
||||
"$ref": "LoggingConfig",
|
||||
"description": "The desired logging configuration."
|
||||
},
|
||||
"desiredLoggingService": {
|
||||
"description": "The logging service the cluster should use to write logs. Currently available options: * `logging.googleapis.com/kubernetes` - The Cloud Logging service with a Kubernetes-native resource model * `logging.googleapis.com` - The legacy Cloud Logging service (no longer available as of GKE 1.15). * `none` - no logs will be exported from the cluster. If left as an empty string,`logging.googleapis.com/kubernetes` will be used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.",
|
||||
"type": "string"
|
||||
@@ -3049,6 +3121,14 @@
|
||||
"description": "The Kubernetes version to change the master to. Users may specify either explicit versions offered by Kubernetes Engine or version aliases, which have the following behavior: - \"latest\": picks the highest valid Kubernetes version - \"1.X\": picks the highest valid patch+gke.N patch in the 1.X version - \"1.X.Y\": picks the highest valid gke.N patch in the 1.X.Y version - \"1.X.Y-gke.N\": picks an explicit Kubernetes version - \"-\": picks the default Kubernetes version",
|
||||
"type": "string"
|
||||
},
|
||||
"desiredMeshCertificates": {
|
||||
"$ref": "MeshCertificates",
|
||||
"description": "Configuration for issuance of mTLS keys and certificates to Kubernetes pods."
|
||||
},
|
||||
"desiredMonitoringConfig": {
|
||||
"$ref": "MonitoringConfig",
|
||||
"description": "The desired monitoring configuration."
|
||||
},
|
||||
"desiredMonitoringService": {
|
||||
"description": "The monitoring service the cluster should use to write metrics. Currently available options: * \"monitoring.googleapis.com/kubernetes\" - The Cloud Monitoring service with a Kubernetes-native resource model * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no longer available as of GKE 1.15). * `none` - No metrics will be exported from the cluster. If left as an empty string,`monitoring.googleapis.com/kubernetes` will be used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.",
|
||||
"type": "string"
|
||||
@@ -3218,6 +3298,43 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"DNSConfig": {
|
||||
"description": "DNSConfig contains the desired set of options for configuring clusterDNS.",
|
||||
"id": "DNSConfig",
|
||||
"properties": {
|
||||
"clusterDns": {
|
||||
"description": "cluster_dns indicates which in-cluster DNS provider should be used.",
|
||||
"enum": [
|
||||
"PROVIDER_UNSPECIFIED",
|
||||
"PLATFORM_DEFAULT",
|
||||
"CLOUD_DNS"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Default value",
|
||||
"Use GKE default DNS provider(kube-dns) for DNS resolution.",
|
||||
"Use CloudDNS for DNS resolution."
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"clusterDnsDomain": {
|
||||
"description": "cluster_dns_domain is the suffix used for all cluster service records.",
|
||||
"type": "string"
|
||||
},
|
||||
"clusterDnsScope": {
|
||||
"description": "cluster_dns_scope indicates the scope of access to cluster DNS records.",
|
||||
"enum": [
|
||||
"DNS_SCOPE_UNSPECIFIED",
|
||||
"VPC_SCOPE"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Default value, will be inferred as cluster scope.",
|
||||
"DNS records are accessible from within the VPC."
|
||||
],
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"DailyMaintenanceWindow": {
|
||||
"description": "Time window specified for daily maintenance operations.",
|
||||
"id": "DailyMaintenanceWindow",
|
||||
@@ -3297,6 +3414,28 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"GcfsConfig": {
|
||||
"description": "GcfsConfig contains configurations of Google Container File System (image streaming).",
|
||||
"id": "GcfsConfig",
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"description": "Whether to use GCFS.",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"GcpFilestoreCsiDriverConfig": {
|
||||
"description": "Configuration for the GCP Filestore CSI driver.",
|
||||
"id": "GcpFilestoreCsiDriverConfig",
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"description": "Whether the GCP Filestore CSI driver is enabled for this cluster.",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"GetJSONWebKeysResponse": {
|
||||
"description": "GetJSONWebKeysResponse is a valid JSON Web Key Set as specififed in rfc 7517",
|
||||
"id": "GetJSONWebKeysResponse",
|
||||
@@ -3411,6 +3550,17 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"ILBSubsettingConfig": {
|
||||
"description": "ILBSubsettingConfig contains the desired config of L4 Internal LoadBalancer subsetting on this cluster.",
|
||||
"id": "ILBSubsettingConfig",
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"description": "Enables l4 ILB subsetting for this cluster.",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"IPAllocationPolicy": {
|
||||
"description": "Configuration for controlling how IPs are allocated in the cluster.",
|
||||
"id": "IPAllocationPolicy",
|
||||
@@ -3634,6 +3784,41 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"LoggingComponentConfig": {
|
||||
"description": "LoggingComponentConfig is cluster logging component configuration.",
|
||||
"id": "LoggingComponentConfig",
|
||||
"properties": {
|
||||
"enableComponents": {
|
||||
"description": "Select components to collect logs. An empty set would disable all logging.",
|
||||
"items": {
|
||||
"enum": [
|
||||
"COMPONENT_UNSPECIFIED",
|
||||
"SYSTEM_COMPONENTS",
|
||||
"WORKLOADS"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Default value. This shouldn't be used.",
|
||||
"system components",
|
||||
"workloads"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"LoggingConfig": {
|
||||
"description": "LoggingConfig is cluster logging configuration.",
|
||||
"id": "LoggingConfig",
|
||||
"properties": {
|
||||
"componentConfig": {
|
||||
"$ref": "LoggingComponentConfig",
|
||||
"description": "Logging components configuration"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"MaintenancePolicy": {
|
||||
"description": "MaintenancePolicy defines the maintenance policy to be used for the cluster.",
|
||||
"id": "MaintenancePolicy",
|
||||
@@ -3732,6 +3917,12 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"MeshCertificates": {
|
||||
"description": "Configuration for issuance of mTLS keys and certificates to Kubernetes pods.",
|
||||
"id": "MeshCertificates",
|
||||
"properties": {},
|
||||
"type": "object"
|
||||
},
|
||||
"Metric": {
|
||||
"description": "Progress metric is (string, int|float|string) pair.",
|
||||
"id": "Metric",
|
||||
@@ -3757,18 +3948,73 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"MonitoringComponentConfig": {
|
||||
"description": "MonitoringComponentConfig is cluster monitoring component configuration.",
|
||||
"id": "MonitoringComponentConfig",
|
||||
"properties": {
|
||||
"enableComponents": {
|
||||
"description": "Select components to collect metrics. An empty set would disable all monitoring.",
|
||||
"items": {
|
||||
"enum": [
|
||||
"COMPONENT_UNSPECIFIED",
|
||||
"SYSTEM_COMPONENTS"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Default value. This shouldn't be used.",
|
||||
"system components"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"MonitoringConfig": {
|
||||
"description": "MonitoringConfig is cluster monitoring configuration.",
|
||||
"id": "MonitoringConfig",
|
||||
"properties": {
|
||||
"componentConfig": {
|
||||
"$ref": "MonitoringComponentConfig",
|
||||
"description": "Monitoring components configuration"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"NetworkConfig": {
|
||||
"description": "NetworkConfig reports the relative names of network \u0026 subnetwork.",
|
||||
"id": "NetworkConfig",
|
||||
"properties": {
|
||||
"datapathProvider": {
|
||||
"description": "The desired datapath provider for this cluster. By default, uses the IPTables-based kube-proxy implementation.",
|
||||
"enum": [
|
||||
"DATAPATH_PROVIDER_UNSPECIFIED",
|
||||
"LEGACY_DATAPATH",
|
||||
"ADVANCED_DATAPATH"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Default value.",
|
||||
"Use the IPTables implementation based on kube-proxy.",
|
||||
"Use the eBPF based GKE Dataplane V2 with additional features. See the [GKE Dataplane V2 documentation](https://cloud.google.com/kubernetes-engine/docs/how-to/dataplane-v2) for more."
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"defaultSnatStatus": {
|
||||
"$ref": "DefaultSnatStatus",
|
||||
"description": "Whether the cluster disables default in-node sNAT rules. In-node sNAT rules will be disabled when default_snat_status is disabled. When disabled is set to false, default IP masquerade rules will be applied to the nodes to prevent sNAT on cluster internal traffic."
|
||||
},
|
||||
"dnsConfig": {
|
||||
"$ref": "DNSConfig",
|
||||
"description": "DNSConfig contains clusterDNS config for this cluster."
|
||||
},
|
||||
"enableIntraNodeVisibility": {
|
||||
"description": "Whether Intra-node visibility is enabled for this cluster. This makes same node pod to pod traffic visible for VPC network.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"enableL4ilbSubsetting": {
|
||||
"description": "Whether L4ILB Subsetting is enabled for this cluster.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"network": {
|
||||
"description": "Output only. The relative name of the Google Compute Engine network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which the cluster is connected. Example: projects/my-project/global/networks/my-network",
|
||||
"type": "string"
|
||||
@@ -3854,6 +4100,14 @@
|
||||
"description": "Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or 'pd-balanced') If unspecified, the default disk type is 'pd-standard'",
|
||||
"type": "string"
|
||||
},
|
||||
"gcfsConfig": {
|
||||
"$ref": "GcfsConfig",
|
||||
"description": "Google Container File System (image streaming) configs."
|
||||
},
|
||||
"gvnic": {
|
||||
"$ref": "VirtualNIC",
|
||||
"description": "Enable or disable gvnic in the node pool."
|
||||
},
|
||||
"imageType": {
|
||||
"description": "The image type to use for this node. Note that for a given image type, the latest version of it will be used.",
|
||||
"type": "string"
|
||||
@@ -3886,7 +4140,7 @@
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "The metadata key/value pairs assigned to instances in the cluster. Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes in length. These are reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project or be one of the reserved keys: - \"cluster-location\" - \"cluster-name\" - \"cluster-uid\" - \"configure-sh\" - \"containerd-configure-sh\" - \"enable-os-login\" - \"gci-ensure-gke-docker\" - \"gci-metrics-enabled\" - \"gci-update-strategy\" - \"instance-template\" - \"kube-env\" - \"startup-script\" - \"user-data\" - \"disable-address-manager\" - \"windows-startup-script-ps1\" - \"common-psm1\" - \"k8s-node-setup-psm1\" - \"install-ssh-psm1\" - \"user-profile-psm1\" The following keys are reserved for Windows nodes: - \"serial-port-logging-enable\" Values are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on them is that each value's size must be less than or equal to 32 KB. The total size of all keys and values must be less than 512 KB.",
|
||||
"description": "The metadata key/value pairs assigned to instances in the cluster. Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes in length. These are reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project or be one of the reserved keys: - \"cluster-location\" - \"cluster-name\" - \"cluster-uid\" - \"configure-sh\" - \"containerd-configure-sh\" - \"enable-os-login\" - \"gci-ensure-gke-docker\" - \"gci-metrics-enabled\" - \"gci-update-strategy\" - \"instance-template\" - \"kube-env\" - \"startup-script\" - \"user-data\" - \"disable-address-manager\" - \"windows-startup-script-ps1\" - \"common-psm1\" - \"k8s-node-setup-psm1\" - \"install-ssh-psm1\" - \"user-profile-psm1\" Values are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on them is that each value's size must be less than or equal to 32 KB. The total size of all keys and values must be less than 512 KB.",
|
||||
"type": "object"
|
||||
},
|
||||
"minCpuPlatform": {
|
||||
@@ -3945,6 +4199,17 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"NodeConfigDefaults": {
|
||||
"description": "Subset of NodeConfig message that has defaults.",
|
||||
"id": "NodeConfigDefaults",
|
||||
"properties": {
|
||||
"gcfsConfig": {
|
||||
"$ref": "GcfsConfig",
|
||||
"description": "GCFS (Google Container File System, a.k.a Riptide) options."
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"NodeKubeletConfig": {
|
||||
"description": "Node kubelet configs.",
|
||||
"id": "NodeKubeletConfig",
|
||||
@@ -3983,6 +4248,25 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"NodeNetworkConfig": {
|
||||
"description": "Parameters for node pool-level network config.",
|
||||
"id": "NodeNetworkConfig",
|
||||
"properties": {
|
||||
"createPodRange": {
|
||||
"description": "Input only. Whether to create a new range for pod IPs in this node pool. Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they are not specified. If neither `create_pod_range` or `pod_range` are specified, the cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is used. Only applicable if `ip_allocation_policy.use_ip_aliases` is true. This field cannot be changed after the node pool has been created.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"podIpv4CidrBlock": {
|
||||
"description": "The IP address range for pod IPs in this node pool. Only applicable if `create_pod_range` is true. Set to blank to have a range chosen with the default size. Set to /netmask (e.g. `/14`) to have a range chosen with a specific netmask. Set to a [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.0.0/14`) to pick a specific range to use. Only applicable if `ip_allocation_policy.use_ip_aliases` is true. This field cannot be changed after the node pool has been created.",
|
||||
"type": "string"
|
||||
},
|
||||
"podRange": {
|
||||
"description": "The ID of the secondary range for pod IPs. If `create_pod_range` is true, this ID is used for the new range. If `create_pod_range` is false, uses an existing secondary range with this ID. Only applicable if `ip_allocation_policy.use_ip_aliases` is true. This field cannot be changed after the node pool has been created.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"NodePool": {
|
||||
"description": "NodePool contains the name and configuration for a cluster's node pool. Node pools are a set of nodes (i.e. VM's), with a common configuration and specification, under the control of the cluster master. They may have a set of Kubernetes labels applied to them, which may be used to reference them during pod scheduling. They may also be resized up or down, to accommodate the workload.",
|
||||
"id": "NodePool",
|
||||
@@ -4033,6 +4317,10 @@
|
||||
"description": "The name of the node pool.",
|
||||
"type": "string"
|
||||
},
|
||||
"networkConfig": {
|
||||
"$ref": "NodeNetworkConfig",
|
||||
"description": "Networking configuration for this NodePool. If specified, it overrides the cluster-level defaults."
|
||||
},
|
||||
"podIpv4CidrSize": {
|
||||
"description": "[Output only] The pod CIDR block size per node in this node pool.",
|
||||
"format": "int32",
|
||||
@@ -4092,18 +4380,29 @@
|
||||
"type": "boolean"
|
||||
},
|
||||
"maxNodeCount": {
|
||||
"description": "Maximum number of nodes in the NodePool. Must be \u003e= min_node_count. There has to enough quota to scale up the cluster.",
|
||||
"description": "Maximum number of nodes for one location in the NodePool. Must be \u003e= min_node_count. There has to be enough quota to scale up the cluster.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
"minNodeCount": {
|
||||
"description": "Minimum number of nodes in the NodePool. Must be \u003e= 1 and \u003c= max_node_count.",
|
||||
"description": "Minimum number of nodes for one location in the NodePool. Must be \u003e= 1 and \u003c= max_node_count.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"NodePoolDefaults": {
|
||||
"description": "Subset of Nodepool message that has defaults.",
|
||||
"id": "NodePoolDefaults",
|
||||
"properties": {
|
||||
"nodeConfigDefaults": {
|
||||
"$ref": "NodeConfigDefaults",
|
||||
"description": "Subset of NodeConfig message that has defaults."
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"NodeTaint": {
|
||||
"description": "Kubernetes taint is comprised of three fields: key, value, and effect. Effect can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute. See [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration) for more information, including usage and the valid values.",
|
||||
"id": "NodeTaint",
|
||||
@@ -5109,7 +5408,8 @@
|
||||
"GKE_SERVICE_ACCOUNT_DELETED",
|
||||
"GCE_QUOTA_EXCEEDED",
|
||||
"SET_BY_OPERATOR",
|
||||
"CLOUD_KMS_KEY_ERROR"
|
||||
"CLOUD_KMS_KEY_ERROR",
|
||||
"CA_EXPIRING"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"UNKNOWN indicates a generic condition.",
|
||||
@@ -5117,7 +5417,8 @@
|
||||
"GKE_SERVICE_ACCOUNT_DELETED indicates that the user deleted their robot service account.",
|
||||
"Google Compute Engine quota was exceeded.",
|
||||
"Cluster state was manually changed by an SRE due to a system logic error.",
|
||||
"Unable to perform an encrypt operation against the CloudKMS key used for etcd level encryption. More codes TBA"
|
||||
"Unable to perform an encrypt operation against the CloudKMS key used for etcd level encryption.",
|
||||
"Cluster CA is expiring soon."
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
@@ -5207,6 +5508,14 @@
|
||||
"description": "Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.",
|
||||
"type": "string"
|
||||
},
|
||||
"gcfsConfig": {
|
||||
"$ref": "GcfsConfig",
|
||||
"description": "GCFS config."
|
||||
},
|
||||
"gvnic": {
|
||||
"$ref": "VirtualNIC",
|
||||
"description": "Enable or disable gvnic on the node pool."
|
||||
},
|
||||
"imageType": {
|
||||
"description": "Required. The desired image type for the node pool.",
|
||||
"type": "string"
|
||||
@@ -5257,6 +5566,39 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"UpgradeAvailableEvent": {
|
||||
"description": "UpgradeAvailableEvent is a notification sent to customers when a new available version is released.",
|
||||
"id": "UpgradeAvailableEvent",
|
||||
"properties": {
|
||||
"releaseChannel": {
|
||||
"$ref": "ReleaseChannel",
|
||||
"description": "The release channel of the version. If empty, it means a non-channel release."
|
||||
},
|
||||
"resource": {
|
||||
"description": "Optional relative path to the resource. For example, the relative path of the node pool.",
|
||||
"type": "string"
|
||||
},
|
||||
"resourceType": {
|
||||
"description": "The resource type of the release version.",
|
||||
"enum": [
|
||||
"UPGRADE_RESOURCE_TYPE_UNSPECIFIED",
|
||||
"MASTER",
|
||||
"NODE_POOL"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Default value. This shouldn't be used.",
|
||||
"Master / control plane",
|
||||
"Node pool"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"version": {
|
||||
"description": "The release version available for upgrade.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"UpgradeEvent": {
|
||||
"description": "UpgradeEvent is a notification sent to customers by the cluster server when a resource is upgrading.",
|
||||
"id": "UpgradeEvent",
|
||||
@@ -5390,6 +5732,17 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"VirtualNIC": {
|
||||
"description": "Configuration of gVNIC feature.",
|
||||
"id": "VirtualNIC",
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"description": "Whether gVNIC features are enabled in the node pool.",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"WorkloadIdentityConfig": {
|
||||
"description": "Configuration for the use of Kubernetes Service Accounts in GCP IAM policies.",
|
||||
"id": "WorkloadIdentityConfig",
|
||||
|
1505
vendor/google.golang.org/api/container/v1/container-gen.go
generated
vendored
1505
vendor/google.golang.org/api/container/v1/container-gen.go
generated
vendored
File diff suppressed because it is too large
Load Diff
28
vendor/google.golang.org/api/googleapi/googleapi.go
generated
vendored
28
vendor/google.golang.org/api/googleapi/googleapi.go
generated
vendored
@@ -391,6 +391,14 @@ type CallOption interface {
|
||||
Get() (key, value string)
|
||||
}
|
||||
|
||||
// A MultiCallOption is an option argument to an API call and can be passed
|
||||
// anywhere a CallOption is accepted. It additionally supports returning a slice
|
||||
// of values for a given key.
|
||||
type MultiCallOption interface {
|
||||
CallOption
|
||||
GetMulti() (key string, value []string)
|
||||
}
|
||||
|
||||
// QuotaUser returns a CallOption that will set the quota user for a call.
|
||||
// The quota user can be used by server-side applications to control accounting.
|
||||
// It can be an arbitrary string up to 40 characters, and will override UserIP
|
||||
@@ -417,4 +425,24 @@ type traceTok string
|
||||
|
||||
func (t traceTok) Get() (string, string) { return "trace", "token:" + string(t) }
|
||||
|
||||
type queryParameter struct {
|
||||
key string
|
||||
values []string
|
||||
}
|
||||
|
||||
// QueryParameter allows setting the value(s) of an arbitrary key.
|
||||
func QueryParameter(key string, values ...string) CallOption {
|
||||
return queryParameter{key: key, values: append([]string{}, values...)}
|
||||
}
|
||||
|
||||
// Get will never actually be called -- GetMulti will.
|
||||
func (q queryParameter) Get() (string, string) {
|
||||
return "", ""
|
||||
}
|
||||
|
||||
// GetMulti returns the key and values values associated to that key.
|
||||
func (q queryParameter) GetMulti() (string, []string) {
|
||||
return q.key, q.values
|
||||
}
|
||||
|
||||
// TODO: Fields too
|
||||
|
76
vendor/google.golang.org/api/internal/creds.go
generated
vendored
76
vendor/google.golang.org/api/internal/creds.go
generated
vendored
@@ -7,6 +7,7 @@ package internal
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
|
||||
@@ -30,6 +31,9 @@ func Creds(ctx context.Context, ds *DialSettings) (*google.Credentials, error) {
|
||||
}
|
||||
|
||||
func baseCreds(ctx context.Context, ds *DialSettings) (*google.Credentials, error) {
|
||||
if ds.InternalCredentials != nil {
|
||||
return ds.InternalCredentials, nil
|
||||
}
|
||||
if ds.Credentials != nil {
|
||||
return ds.Credentials, nil
|
||||
}
|
||||
@@ -62,56 +66,68 @@ const (
|
||||
serviceAccountKey = "service_account"
|
||||
)
|
||||
|
||||
// credentialsFromJSON returns a google.Credentials based on the input.
|
||||
// credentialsFromJSON returns a google.Credentials from the JSON data
|
||||
//
|
||||
// - A self-signed JWT auth flow will be executed if: the data file is a service
|
||||
// account, no user are scopes provided, an audience is provided, a user
|
||||
// specified endpoint is not provided, and credentials will not be
|
||||
// impersonated.
|
||||
// - A self-signed JWT flow will be executed if the following conditions are
|
||||
// met:
|
||||
// (1) At least one of the following is true:
|
||||
// (a) No scope is provided
|
||||
// (b) Scope for self-signed JWT flow is enabled
|
||||
// (c) Audiences are explicitly provided by users
|
||||
// (2) No service account impersontation
|
||||
//
|
||||
// - Otherwise, executes a stanard OAuth 2.0 flow.
|
||||
// - Otherwise, executes standard OAuth 2.0 flow
|
||||
// More details: google.aip.dev/auth/4111
|
||||
func credentialsFromJSON(ctx context.Context, data []byte, ds *DialSettings) (*google.Credentials, error) {
|
||||
// By default, a standard OAuth 2.0 token source is created
|
||||
cred, err := google.CredentialsFromJSON(ctx, data, ds.GetScopes()...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
// Standard OAuth 2.0 Flow
|
||||
if len(data) == 0 ||
|
||||
len(ds.Scopes) > 0 ||
|
||||
(ds.DefaultAudience == "" && len(ds.Audiences) == 0) ||
|
||||
ds.ImpersonationConfig != nil ||
|
||||
ds.Endpoint != "" {
|
||||
return cred, nil
|
||||
}
|
||||
|
||||
// Check if JSON is a service account and if so create a self-signed JWT.
|
||||
var f struct {
|
||||
Type string `json:"type"`
|
||||
// The rest JSON fields are omitted because they are not used.
|
||||
}
|
||||
if err := json.Unmarshal(cred.JSON, &f); err != nil {
|
||||
// Override the token source to use self-signed JWT if conditions are met
|
||||
isJWTFlow, err := isSelfSignedJWTFlow(data, ds)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if f.Type == serviceAccountKey {
|
||||
ts, err := selfSignedJWTTokenSource(data, ds.DefaultAudience, ds.Audiences)
|
||||
if isJWTFlow {
|
||||
ts, err := selfSignedJWTTokenSource(data, ds)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
cred.TokenSource = ts
|
||||
}
|
||||
|
||||
return cred, err
|
||||
}
|
||||
|
||||
func selfSignedJWTTokenSource(data []byte, defaultAudience string, audiences []string) (oauth2.TokenSource, error) {
|
||||
audience := defaultAudience
|
||||
if len(audiences) > 0 {
|
||||
// TODO(shinfan): Update golang oauth to support multiple audiences.
|
||||
if len(audiences) > 1 {
|
||||
return nil, fmt.Errorf("multiple audiences support is not implemented")
|
||||
func isSelfSignedJWTFlow(data []byte, ds *DialSettings) (bool, error) {
|
||||
if (ds.EnableJwtWithScope || ds.HasCustomAudience()) &&
|
||||
ds.ImpersonationConfig == nil {
|
||||
// Check if JSON is a service account and if so create a self-signed JWT.
|
||||
var f struct {
|
||||
Type string `json:"type"`
|
||||
// The rest JSON fields are omitted because they are not used.
|
||||
}
|
||||
audience = audiences[0]
|
||||
if err := json.Unmarshal(data, &f); err != nil {
|
||||
return false, err
|
||||
}
|
||||
return f.Type == serviceAccountKey, nil
|
||||
}
|
||||
return false, nil
|
||||
}
|
||||
|
||||
func selfSignedJWTTokenSource(data []byte, ds *DialSettings) (oauth2.TokenSource, error) {
|
||||
if len(ds.GetScopes()) > 0 && !ds.HasCustomAudience() {
|
||||
// Scopes are preferred in self-signed JWT unless the scope is not available
|
||||
// or a custom audience is used.
|
||||
return google.JWTAccessTokenSourceWithScope(data, ds.GetScopes()...)
|
||||
} else if ds.GetAudience() != "" {
|
||||
// Fallback to audience if scope is not provided
|
||||
return google.JWTAccessTokenSourceFromJSON(data, ds.GetAudience())
|
||||
} else {
|
||||
return nil, errors.New("neither scopes or audience are available for the self-signed JWT")
|
||||
}
|
||||
return google.JWTAccessTokenSourceFromJSON(data, audience)
|
||||
}
|
||||
|
||||
// QuotaProjectFromCreds returns the quota project from the JSON blob in the provided credentials.
|
||||
|
8
vendor/google.golang.org/api/internal/gensupport/params.go
generated
vendored
8
vendor/google.golang.org/api/internal/gensupport/params.go
generated
vendored
@@ -43,9 +43,15 @@ func (u URLParams) Encode() string {
|
||||
return url.Values(u).Encode()
|
||||
}
|
||||
|
||||
// SetOptions sets the URL params and any additional call options.
|
||||
// SetOptions sets the URL params and any additional `CallOption` or
|
||||
// `MultiCallOption` passed in.
|
||||
func SetOptions(u URLParams, opts ...googleapi.CallOption) {
|
||||
for _, o := range opts {
|
||||
m, ok := o.(googleapi.MultiCallOption)
|
||||
if ok {
|
||||
u.SetMulti(m.GetMulti())
|
||||
continue
|
||||
}
|
||||
u.Set(o.Get())
|
||||
}
|
||||
}
|
||||
|
1
vendor/google.golang.org/api/internal/gensupport/retryable_linux.go
generated
vendored
1
vendor/google.golang.org/api/internal/gensupport/retryable_linux.go
generated
vendored
@@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build linux
|
||||
// +build linux
|
||||
|
||||
package gensupport
|
||||
|
66
vendor/google.golang.org/api/internal/settings.go
generated
vendored
66
vendor/google.golang.org/api/internal/settings.go
generated
vendored
@@ -19,31 +19,34 @@ import (
|
||||
// DialSettings holds information needed to establish a connection with a
|
||||
// Google API service.
|
||||
type DialSettings struct {
|
||||
Endpoint string
|
||||
DefaultEndpoint string
|
||||
DefaultMTLSEndpoint string
|
||||
Scopes []string
|
||||
DefaultScopes []string
|
||||
TokenSource oauth2.TokenSource
|
||||
Credentials *google.Credentials
|
||||
CredentialsFile string // if set, Token Source is ignored.
|
||||
CredentialsJSON []byte
|
||||
UserAgent string
|
||||
APIKey string
|
||||
Audiences []string
|
||||
DefaultAudience string
|
||||
HTTPClient *http.Client
|
||||
GRPCDialOpts []grpc.DialOption
|
||||
GRPCConn *grpc.ClientConn
|
||||
GRPCConnPool ConnPool
|
||||
GRPCConnPoolSize int
|
||||
NoAuth bool
|
||||
TelemetryDisabled bool
|
||||
ClientCertSource func(*tls.CertificateRequestInfo) (*tls.Certificate, error)
|
||||
CustomClaims map[string]interface{}
|
||||
SkipValidation bool
|
||||
ImpersonationConfig *impersonate.Config
|
||||
EnableDirectPath bool
|
||||
Endpoint string
|
||||
DefaultEndpoint string
|
||||
DefaultMTLSEndpoint string
|
||||
Scopes []string
|
||||
DefaultScopes []string
|
||||
EnableJwtWithScope bool
|
||||
TokenSource oauth2.TokenSource
|
||||
Credentials *google.Credentials
|
||||
CredentialsFile string // if set, Token Source is ignored.
|
||||
CredentialsJSON []byte
|
||||
InternalCredentials *google.Credentials
|
||||
UserAgent string
|
||||
APIKey string
|
||||
Audiences []string
|
||||
DefaultAudience string
|
||||
HTTPClient *http.Client
|
||||
GRPCDialOpts []grpc.DialOption
|
||||
GRPCConn *grpc.ClientConn
|
||||
GRPCConnPool ConnPool
|
||||
GRPCConnPoolSize int
|
||||
NoAuth bool
|
||||
TelemetryDisabled bool
|
||||
ClientCertSource func(*tls.CertificateRequestInfo) (*tls.Certificate, error)
|
||||
CustomClaims map[string]interface{}
|
||||
SkipValidation bool
|
||||
ImpersonationConfig *impersonate.Config
|
||||
EnableDirectPath bool
|
||||
AllowNonDefaultServiceAccount bool
|
||||
|
||||
// Google API system parameters. For more information please read:
|
||||
// https://cloud.google.com/apis/docs/system-parameters
|
||||
@@ -60,6 +63,19 @@ func (ds *DialSettings) GetScopes() []string {
|
||||
return ds.DefaultScopes
|
||||
}
|
||||
|
||||
// GetAudience returns the user-provided audience, if set, or else falls back to the default audience.
|
||||
func (ds *DialSettings) GetAudience() string {
|
||||
if ds.HasCustomAudience() {
|
||||
return ds.Audiences[0]
|
||||
}
|
||||
return ds.DefaultAudience
|
||||
}
|
||||
|
||||
// HasCustomAudience returns true if a custom audience is provided by users.
|
||||
func (ds *DialSettings) HasCustomAudience() bool {
|
||||
return len(ds.Audiences) > 0
|
||||
}
|
||||
|
||||
// Validate reports an error if ds is invalid.
|
||||
func (ds *DialSettings) Validate() error {
|
||||
if ds.SkipValidation {
|
||||
|
176
vendor/google.golang.org/api/monitoring/v3/monitoring-api.json
generated
vendored
176
vendor/google.golang.org/api/monitoring/v3/monitoring-api.json
generated
vendored
@@ -3,7 +3,7 @@
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/cloud-platform": {
|
||||
"description": "See, edit, configure, and delete your Google Cloud Platform data"
|
||||
"description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account."
|
||||
},
|
||||
"https://www.googleapis.com/auth/monitoring": {
|
||||
"description": "View and write monitoring data for all of your Google and third-party Cloud and API projects"
|
||||
@@ -21,7 +21,7 @@
|
||||
"baseUrl": "https://monitoring.googleapis.com/",
|
||||
"batchPath": "batch",
|
||||
"canonicalName": "Monitoring",
|
||||
"description": "Manages your Cloud Monitoring data and configurations. Most projects must be associated with a Workspace, with a few exceptions as noted on the individual method pages. The table entries below are presented in alphabetical order, not in order of common use. For explanations of the concepts found in the table entries, read the Cloud Monitoring documentation.",
|
||||
"description": "Manages your Cloud Monitoring data and configurations. Most projects must be associated with a Workspace, with a few exceptions as noted on the individual method pages. The table entries below are presented in alphabetical order, not in order of common use. For explanations of the concepts found in the table entries, read the Cloud Monitoring documentation (https://cloud.google.com/monitoring/docs).",
|
||||
"discoveryVersion": "v1",
|
||||
"documentationLink": "https://cloud.google.com/monitoring/api/",
|
||||
"fullyEncodeReservedExpansion": true,
|
||||
@@ -1112,7 +1112,7 @@
|
||||
"metricDescriptors": {
|
||||
"methods": {
|
||||
"create": {
|
||||
"description": "Creates a new metric descriptor. User-created metric descriptors define custom metrics (https://cloud.google.com/monitoring/custom-metrics).",
|
||||
"description": "Creates a new metric descriptor. The creation is executed asynchronously and callers may check the returned operation to track its progress. User-created metric descriptors define custom metrics (https://cloud.google.com/monitoring/custom-metrics).",
|
||||
"flatPath": "v3/projects/{projectsId}/metricDescriptors",
|
||||
"httpMethod": "POST",
|
||||
"id": "monitoring.projects.metricDescriptors.create",
|
||||
@@ -1679,6 +1679,36 @@
|
||||
"https://www.googleapis.com/auth/monitoring.write"
|
||||
]
|
||||
},
|
||||
"createService": {
|
||||
"description": "Creates or adds data to one or more service time series. A service time series is a time series for a metric from a Google Cloud service. The response is empty if all time series in the request were written. If any time series could not be written, a corresponding failure message is included in the error response. This endpoint rejects writes to user-defined metrics. This method is only for use by Google Cloud services. Use projects.timeSeries.create instead.",
|
||||
"flatPath": "v3/projects/{projectsId}/timeSeries:createService",
|
||||
"httpMethod": "POST",
|
||||
"id": "monitoring.projects.timeSeries.createService",
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"parameters": {
|
||||
"name": {
|
||||
"description": "Required. The project (https://cloud.google.com/monitoring/api/v3#project_name) on which to execute the request. The format is: projects/[PROJECT_ID_OR_NUMBER] ",
|
||||
"location": "path",
|
||||
"pattern": "^projects/[^/]+$",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v3/{+name}/timeSeries:createService",
|
||||
"request": {
|
||||
"$ref": "CreateTimeSeriesRequest"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Empty"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/monitoring",
|
||||
"https://www.googleapis.com/auth/monitoring.write"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"description": "Lists time series that match a filter. This method does not require a Workspace.",
|
||||
"flatPath": "v3/projects/{projectsId}/timeSeries",
|
||||
@@ -2541,7 +2571,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20210427",
|
||||
"revision": "20211017",
|
||||
"rootUrl": "https://monitoring.googleapis.com/",
|
||||
"schemas": {
|
||||
"Aggregation": {
|
||||
@@ -2649,6 +2679,10 @@
|
||||
"description": "A description of the conditions under which some aspect of your system is considered to be \"unhealthy\" and the ways to notify people or services about this state. For an overview of alert policies, see Introduction to Alerting (https://cloud.google.com/monitoring/alerts/).",
|
||||
"id": "AlertPolicy",
|
||||
"properties": {
|
||||
"alertStrategy": {
|
||||
"$ref": "AlertStrategy",
|
||||
"description": "Control over how this alert policy's notification channels are notified."
|
||||
},
|
||||
"combiner": {
|
||||
"description": "How to combine the results of multiple conditions to determine if an incident should be opened. If condition_time_series_query_language is present, this must be COMBINE_UNSPECIFIED.",
|
||||
"enum": [
|
||||
@@ -2717,6 +2751,22 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"AlertStrategy": {
|
||||
"description": "Control over how the notification channels in notification_channels are notified when this alert fires.",
|
||||
"id": "AlertStrategy",
|
||||
"properties": {
|
||||
"autoClose": {
|
||||
"description": "If an alert policy that was active has no data for this long, any open incidents will close",
|
||||
"format": "google-duration",
|
||||
"type": "string"
|
||||
},
|
||||
"notificationRateLimit": {
|
||||
"$ref": "NotificationRateLimit",
|
||||
"description": "Required for alert policies with a LogMatch condition.This limit is not implemented for alert policies that are not log-based."
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"AppEngine": {
|
||||
"description": "App Engine service. Learn more at https://cloud.google.com/appengine.",
|
||||
"id": "AppEngine",
|
||||
@@ -2965,6 +3015,10 @@
|
||||
"$ref": "MetricAbsence",
|
||||
"description": "A condition that checks that a time series continues to receive new data points."
|
||||
},
|
||||
"conditionMatchedLog": {
|
||||
"$ref": "LogMatch",
|
||||
"description": "A condition that checks for log messages matching given constraints. If set, no other conditions can be present."
|
||||
},
|
||||
"conditionMonitoringQueryLanguage": {
|
||||
"$ref": "MonitoringQueryLanguageCondition",
|
||||
"description": "A condition that uses the Monitoring Query Language to define alerts."
|
||||
@@ -3143,7 +3197,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"DistributionCut": {
|
||||
"description": "A DistributionCut defines a TimeSeries and thresholds used for measuring good service and total service. The TimeSeries must have ValueType = DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE. The computed good_service will be the count of values x in the Distribution such that range.min \u003c= x \u003c range.max.",
|
||||
"description": "A DistributionCut defines a TimeSeries and thresholds used for measuring good service and total service. The TimeSeries must have ValueType = DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE. The computed good_service will be the estimated count of values in the Distribution that fall within the specified min and max.",
|
||||
"id": "DistributionCut",
|
||||
"properties": {
|
||||
"distributionFilter": {
|
||||
@@ -3408,7 +3462,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"GoogleMonitoringV3Range": {
|
||||
"description": "Range of numerical values, inclusive of min and exclusive of max. If the open range \"\u003c range.max\" is desired, set range.min = -infinity. If the open range \"\u003e= range.min\" is desired, set range.max = infinity.",
|
||||
"description": "Range of numerical values within min and max.",
|
||||
"id": "GoogleMonitoringV3Range",
|
||||
"properties": {
|
||||
"max": {
|
||||
@@ -3911,6 +3965,24 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"LogMatch": {
|
||||
"description": "A condition type that checks whether a log message in the scoping project (https://cloud.google.com/monitoring/api/v3#project_name) satisfies the given filter. Logs from other projects in the metrics scope are not evaluated.",
|
||||
"id": "LogMatch",
|
||||
"properties": {
|
||||
"filter": {
|
||||
"description": "Required. A logs-based filter. See Advanced Logs Queries (https://cloud.google.com/logging/docs/view/advanced-queries) for how this filter should be constructed.",
|
||||
"type": "string"
|
||||
},
|
||||
"labelExtractors": {
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "Optional. A map from a label key to an extractor expression, which is used to extract the value for this label key. Each entry in this map is a specification for how data should be extracted from log entries that match filter. Each combination of extracted values is treated as a separate rule for the purposes of triggering notifications. Label keys and corresponding values can be used in notifications generated by this condition.Please see the documentation on logs-based metric valueExtractors (https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor) for syntax and examples.",
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"MeshIstio": {
|
||||
"description": "Istio service scoped to an Istio mesh. Anthos clusters running ASM \u003c 1.6.8 will have their services ingested as this type.",
|
||||
"id": "MeshIstio",
|
||||
@@ -3953,7 +4025,7 @@
|
||||
"id": "MetricAbsence",
|
||||
"properties": {
|
||||
"aggregations": {
|
||||
"description": "Specifies the alignment of data points in individual time series as well as how to combine the retrieved time series together (such as when aggregating multiple streams on each resource to a single stream for each resource or when aggregating streams across all members of a group of resrouces). Multiple aggregations are applied in the order specified.This field is similar to the one in the ListTimeSeries request (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list). It is advisable to use the ListTimeSeries method when debugging this field.",
|
||||
"description": "Specifies the alignment of data points in individual time series as well as how to combine the retrieved time series together (such as when aggregating multiple streams on each resource to a single stream for each resource or when aggregating streams across all members of a group of resources). Multiple aggregations are applied in the order specified.This field is similar to the one in the ListTimeSeries request (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list). It is advisable to use the ListTimeSeries method when debugging this field.",
|
||||
"items": {
|
||||
"$ref": "Aggregation"
|
||||
},
|
||||
@@ -4124,7 +4196,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"MetricRange": {
|
||||
"description": "A MetricRange is used when each window is good when the value x of a single TimeSeries satisfies range.min \u003c= x \u003c range.max. The provided TimeSeries must have ValueType = INT64 or ValueType = DOUBLE and MetricKind = GAUGE.",
|
||||
"description": "A MetricRange is used when each window is good when the value x of a single TimeSeries satisfies range.min \u003c= x \u003c= range.max. The provided TimeSeries must have ValueType = INT64 or ValueType = DOUBLE and MetricKind = GAUGE.",
|
||||
"id": "MetricRange",
|
||||
"properties": {
|
||||
"range": {
|
||||
@@ -4143,7 +4215,7 @@
|
||||
"id": "MetricThreshold",
|
||||
"properties": {
|
||||
"aggregations": {
|
||||
"description": "Specifies the alignment of data points in individual time series as well as how to combine the retrieved time series together (such as when aggregating multiple streams on each resource to a single stream for each resource or when aggregating streams across all members of a group of resrouces). Multiple aggregations are applied in the order specified.This field is similar to the one in the ListTimeSeries request (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list). It is advisable to use the ListTimeSeries method when debugging this field.",
|
||||
"description": "Specifies the alignment of data points in individual time series as well as how to combine the retrieved time series together (such as when aggregating multiple streams on each resource to a single stream for each resource or when aggregating streams across all members of a group of resources). Multiple aggregations are applied in the order specified.This field is similar to the one in the ListTimeSeries request (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list). It is advisable to use the ListTimeSeries method when debugging this field.",
|
||||
"items": {
|
||||
"$ref": "Aggregation"
|
||||
},
|
||||
@@ -4215,7 +4287,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"type": {
|
||||
"description": "Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Compute Engine VM instance is gce_instance. For a list of types, see Monitoring resource types and Logging resource types.",
|
||||
"description": "Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Compute Engine VM instance is gce_instance. For a list of types, see Monitoring resource types (https://cloud.google.com/monitoring/api/resources) and Logging resource types (https://cloud.google.com/logging/docs/api/v2/resource-list).",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
@@ -4269,7 +4341,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"description": "Required. The monitored resource type. For example, the type \"cloudsql_database\" represents databases in Google Cloud SQL.",
|
||||
"description": "Required. The monitored resource type. For example, the type \"cloudsql_database\" represents databases in Google Cloud SQL. For a list of types, see Monitoring resource types (https://cloud.google.com/monitoring/api/resources) and Logging resource types (https://cloud.google.com/logging/docs/api/v2/resource-list).",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
@@ -4446,6 +4518,23 @@
|
||||
"description": "The full REST resource name for this descriptor. The format is: projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[TYPE] In the above, [TYPE] is the value of the type field.",
|
||||
"type": "string"
|
||||
},
|
||||
"supportedTiers": {
|
||||
"description": "The tiers that support this notification channel; the project service tier must be one of the supported_tiers.",
|
||||
"items": {
|
||||
"enum": [
|
||||
"SERVICE_TIER_UNSPECIFIED",
|
||||
"SERVICE_TIER_BASIC",
|
||||
"SERVICE_TIER_PREMIUM"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"An invalid sentinel value, used to indicate that a tier has not been provided explicitly.",
|
||||
"The Stackdriver Basic tier, a free tier of service that provides basic features, a moderate allotment of logs, and access to built-in metrics. A number of features are not available in this tier. For more details, see the service tiers documentation (https://cloud.google.com/monitoring/workspaces/tiers).",
|
||||
"The Stackdriver Premium tier, a higher, more expensive tier of service that provides access to all Stackdriver features, lets you use Stackdriver with AWS accounts, and has a larger allotments for logs and metrics. For more details, see the service tiers documentation (https://cloud.google.com/monitoring/workspaces/tiers)."
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"type": {
|
||||
"description": "The type of notification channel, such as \"email\" and \"sms\". To view the full list of channels, see Channel descriptors (https://cloud.google.com/monitoring/alerts/using-channels-api#ncd). Notification channel types are globally unique.",
|
||||
"type": "string"
|
||||
@@ -4453,6 +4542,53 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"NotificationRateLimit": {
|
||||
"description": "Control over the rate of notifications sent to this alert policy's notification channels.",
|
||||
"id": "NotificationRateLimit",
|
||||
"properties": {
|
||||
"period": {
|
||||
"description": "Not more than one notification per period.",
|
||||
"format": "google-duration",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"OperationMetadata": {
|
||||
"description": "Contains metadata for longrunning operation for the edit Metrics Scope endpoints.",
|
||||
"id": "OperationMetadata",
|
||||
"properties": {
|
||||
"createTime": {
|
||||
"description": "The time when the batch request was received.",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
},
|
||||
"state": {
|
||||
"description": "Current state of the batch operation.",
|
||||
"enum": [
|
||||
"STATE_UNSPECIFIED",
|
||||
"CREATED",
|
||||
"RUNNING",
|
||||
"DONE",
|
||||
"CANCELLED"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Invalid.",
|
||||
"Request has been received.",
|
||||
"Request is actively being processed.",
|
||||
"The batch processing is done.",
|
||||
"The batch processing was cancelled."
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"updateTime": {
|
||||
"description": "The time when the operation result was last updated.",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Option": {
|
||||
"description": "A protocol buffer option, which can be attached to a message, field, enumeration, etc.",
|
||||
"id": "Option",
|
||||
@@ -4676,6 +4812,13 @@
|
||||
"telemetry": {
|
||||
"$ref": "Telemetry",
|
||||
"description": "Configuration for how to query telemetry on a Service."
|
||||
},
|
||||
"userLabels": {
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "Labels which have been used to annotate the service. Label keys must start with a letter. Label keys and values may contain lowercase letters, numbers, underscores, and dashes. Label keys and values have a maximum length of 63 characters, and must be less than 128 bytes in size. Up to 64 label entries may be stored. For labels which do not have a semantic value, the empty string may be supplied for the label value.",
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
@@ -4748,6 +4891,13 @@
|
||||
"serviceLevelIndicator": {
|
||||
"$ref": "ServiceLevelIndicator",
|
||||
"description": "The definition of good service, used to measure and calculate the quality of the Service's performance with respect to a single aspect of service quality."
|
||||
},
|
||||
"userLabels": {
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "Labels which have been used to annotate the service-level objective. Label keys must start with a letter. Label keys and values may contain lowercase letters, numbers, underscores, and dashes. Label keys and values have a maximum length of 63 characters, and must be less than 128 bytes in size. Up to 64 label entries may be stored. For labels which do not have a semantic value, the empty string may be supplied for the label value.",
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
@@ -4825,7 +4975,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"TimeInterval": {
|
||||
"description": "A closed time interval. It extends from the start time to the end time, and includes both: [startTime, endTime]. Valid time intervals depend on the MetricKind of the metric value. The end time must not be earlier than the start time. When writing data points, the start time must not be more than 25 hours in the past and the end time must not be more than five minutes in the future. For GAUGE metrics, the startTime value is technically optional; if no value is specified, the start time defaults to the value of the end time, and the interval represents a single point in time. If both start and end times are specified, they must be identical. Such an interval is valid only for GAUGE metrics, which are point-in-time measurements. The end time of a new interval must be at least a millisecond after the end time of the previous interval. For DELTA metrics, the start time and end time must specify a non-zero interval, with subsequent points specifying contiguous and non-overlapping intervals. For DELTA metrics, the start time of the next interval must be at least a millisecond after the end time of the previous interval. For CUMULATIVE metrics, the start time and end time must specify a a non-zero interval, with subsequent points specifying the same start time and increasing end times, until an event resets the cumulative value to zero and sets a new start time for the following points. The new start time must be at least a millisecond after the end time of the previous interval. The start time of a new interval must be at least a millisecond after the end time of the previous interval because intervals are closed. If the start time of a new interval is the same as the end time of the previous interval, then data written at the new start time could overwrite data written at the previous end time.",
|
||||
"description": "A closed time interval. It extends from the start time to the end time, and includes both: [startTime, endTime]. Valid time intervals depend on the MetricKind (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.metricDescriptors#MetricKind) of the metric value. The end time must not be earlier than the start time. When writing data points, the start time must not be more than 25 hours in the past and the end time must not be more than five minutes in the future. For GAUGE metrics, the startTime value is technically optional; if no value is specified, the start time defaults to the value of the end time, and the interval represents a single point in time. If both start and end times are specified, they must be identical. Such an interval is valid only for GAUGE metrics, which are point-in-time measurements. The end time of a new interval must be at least a millisecond after the end time of the previous interval. For DELTA metrics, the start time and end time must specify a non-zero interval, with subsequent points specifying contiguous and non-overlapping intervals. For DELTA metrics, the start time of the next interval must be at least a millisecond after the end time of the previous interval. For CUMULATIVE metrics, the start time and end time must specify a non-zero interval, with subsequent points specifying the same start time and increasing end times, until an event resets the cumulative value to zero and sets a new start time for the following points. The new start time must be at least a millisecond after the end time of the previous interval. The start time of a new interval must be at least a millisecond after the end time of the previous interval because intervals are closed. If the start time of a new interval is the same as the end time of the previous interval, then data written at the new start time could overwrite data written at the previous end time.",
|
||||
"id": "TimeInterval",
|
||||
"properties": {
|
||||
"endTime": {
|
||||
@@ -5096,7 +5246,7 @@
|
||||
},
|
||||
"monitoredResource": {
|
||||
"$ref": "MonitoredResource",
|
||||
"description": "The monitored resource (https://cloud.google.com/monitoring/api/resources) associated with the configuration. The following monitored resource types are valid for this field: uptime_url, gce_instance, gae_app, aws_ec2_instance, aws_elb_load_balancer"
|
||||
"description": "The monitored resource (https://cloud.google.com/monitoring/api/resources) associated with the configuration. The following monitored resource types are valid for this field: uptime_url, gce_instance, gae_app, aws_ec2_instance, aws_elb_load_balancer k8s_service"
|
||||
},
|
||||
"name": {
|
||||
"description": "A unique resource name for this Uptime check configuration. The format is: projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID] [PROJECT_ID_OR_NUMBER] is the Workspace host project associated with the Uptime check.This field should be omitted when creating the Uptime check configuration; on create, the resource name is assigned by the server and included in the response.",
|
||||
|
1302
vendor/google.golang.org/api/monitoring/v3/monitoring-gen.go
generated
vendored
1302
vendor/google.golang.org/api/monitoring/v3/monitoring-gen.go
generated
vendored
File diff suppressed because it is too large
Load Diff
1
vendor/google.golang.org/api/option/credentials_go19.go
generated
vendored
1
vendor/google.golang.org/api/option/credentials_go19.go
generated
vendored
@@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build go1.9
|
||||
// +build go1.9
|
||||
|
||||
package option
|
||||
|
1
vendor/google.golang.org/api/option/credentials_notgo19.go
generated
vendored
1
vendor/google.golang.org/api/option/credentials_notgo19.go
generated
vendored
@@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !go1.9
|
||||
// +build !go1.9
|
||||
|
||||
package option
|
||||
|
40
vendor/google.golang.org/api/option/internaloption/internaloption.go
generated
vendored
40
vendor/google.golang.org/api/option/internaloption/internaloption.go
generated
vendored
@@ -6,6 +6,7 @@
|
||||
package internaloption
|
||||
|
||||
import (
|
||||
"golang.org/x/oauth2/google"
|
||||
"google.golang.org/api/internal"
|
||||
"google.golang.org/api/option"
|
||||
)
|
||||
@@ -66,6 +67,21 @@ func (e enableDirectPath) Apply(o *internal.DialSettings) {
|
||||
o.EnableDirectPath = bool(e)
|
||||
}
|
||||
|
||||
// AllowNonDefaultServiceAccount returns a ClientOption that overrides the default
|
||||
// requirement for using the default service account for DirectPath.
|
||||
//
|
||||
// It should only be used internally by generated clients.
|
||||
// This is an EXPERIMENTAL API and may be changed or removed in the future.
|
||||
func AllowNonDefaultServiceAccount(nd bool) option.ClientOption {
|
||||
return allowNonDefaultServiceAccount(nd)
|
||||
}
|
||||
|
||||
type allowNonDefaultServiceAccount bool
|
||||
|
||||
func (a allowNonDefaultServiceAccount) Apply(o *internal.DialSettings) {
|
||||
o.AllowNonDefaultServiceAccount = bool(a)
|
||||
}
|
||||
|
||||
// WithDefaultAudience returns a ClientOption that specifies a default audience
|
||||
// to be used as the audience field ("aud") for the JWT token authentication.
|
||||
//
|
||||
@@ -94,3 +110,27 @@ func (w withDefaultScopes) Apply(o *internal.DialSettings) {
|
||||
o.DefaultScopes = make([]string, len(w))
|
||||
copy(o.DefaultScopes, w)
|
||||
}
|
||||
|
||||
// EnableJwtWithScope returns a ClientOption that specifies if scope can be used
|
||||
// with self-signed JWT.
|
||||
func EnableJwtWithScope() option.ClientOption {
|
||||
return enableJwtWithScope(true)
|
||||
}
|
||||
|
||||
type enableJwtWithScope bool
|
||||
|
||||
func (w enableJwtWithScope) Apply(o *internal.DialSettings) {
|
||||
o.EnableJwtWithScope = bool(w)
|
||||
}
|
||||
|
||||
// WithCredentials returns a client option to specify credentials which will be used to authenticate API calls.
|
||||
// This credential takes precedence over all other credential options.
|
||||
func WithCredentials(creds *google.Credentials) option.ClientOption {
|
||||
return (*withCreds)(creds)
|
||||
}
|
||||
|
||||
type withCreds google.Credentials
|
||||
|
||||
func (w *withCreds) Apply(o *internal.DialSettings) {
|
||||
o.InternalCredentials = (*google.Credentials)(w)
|
||||
}
|
||||
|
29
vendor/google.golang.org/api/tpu/v1/tpu-api.json
generated
vendored
29
vendor/google.golang.org/api/tpu/v1/tpu-api.json
generated
vendored
@@ -3,7 +3,7 @@
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/cloud-platform": {
|
||||
"description": "See, edit, configure, and delete your Google Cloud Platform data"
|
||||
"description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account."
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -430,7 +430,7 @@
|
||||
]
|
||||
},
|
||||
"stop": {
|
||||
"description": "Stops a node.",
|
||||
"description": "Stops a node, this operation is only available with single TPU nodes.",
|
||||
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:stop",
|
||||
"httpMethod": "POST",
|
||||
"id": "tpu.projects.locations.nodes.stop",
|
||||
@@ -659,7 +659,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20210414",
|
||||
"revision": "20210824",
|
||||
"rootUrl": "https://tpu.googleapis.com/",
|
||||
"schemas": {
|
||||
"AcceleratorType": {
|
||||
@@ -971,7 +971,7 @@
|
||||
"enumDescriptions": [
|
||||
"TPU node state is not known/set.",
|
||||
"TPU node is being created.",
|
||||
"TPU node has been created and is fully usable.",
|
||||
"TPU node has been created.",
|
||||
"TPU node is restarting.",
|
||||
"TPU node is undergoing reimaging.",
|
||||
"TPU node is being deleted.",
|
||||
@@ -1047,33 +1047,40 @@
|
||||
"id": "OperationMetadata",
|
||||
"properties": {
|
||||
"apiVersion": {
|
||||
"description": "[Output only] API version used to start the operation.",
|
||||
"description": "Output only. API version used to start the operation.",
|
||||
"readOnly": true,
|
||||
"type": "string"
|
||||
},
|
||||
"cancelRequested": {
|
||||
"description": "[Output only] Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.",
|
||||
"description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.",
|
||||
"readOnly": true,
|
||||
"type": "boolean"
|
||||
},
|
||||
"createTime": {
|
||||
"description": "[Output only] The time the operation was created.",
|
||||
"description": "Output only. The time the operation was created.",
|
||||
"format": "google-datetime",
|
||||
"readOnly": true,
|
||||
"type": "string"
|
||||
},
|
||||
"endTime": {
|
||||
"description": "[Output only] The time the operation finished running.",
|
||||
"description": "Output only. The time the operation finished running.",
|
||||
"format": "google-datetime",
|
||||
"readOnly": true,
|
||||
"type": "string"
|
||||
},
|
||||
"statusDetail": {
|
||||
"description": "[Output only] Human-readable status of the operation, if any.",
|
||||
"description": "Output only. Human-readable status of the operation, if any.",
|
||||
"readOnly": true,
|
||||
"type": "string"
|
||||
},
|
||||
"target": {
|
||||
"description": "[Output only] Server-defined resource path for the target of the operation.",
|
||||
"description": "Output only. Server-defined resource path for the target of the operation.",
|
||||
"readOnly": true,
|
||||
"type": "string"
|
||||
},
|
||||
"verb": {
|
||||
"description": "[Output only] Name of the verb executed by the operation.",
|
||||
"description": "Output only. Name of the verb executed by the operation.",
|
||||
"readOnly": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
|
192
vendor/google.golang.org/api/tpu/v1/tpu-gen.go
generated
vendored
192
vendor/google.golang.org/api/tpu/v1/tpu-gen.go
generated
vendored
@@ -79,7 +79,8 @@ const mtlsBasePath = "https://tpu.mtls.googleapis.com/"
|
||||
|
||||
// OAuth2 scopes used by this API.
|
||||
const (
|
||||
// See, edit, configure, and delete your Google Cloud Platform data
|
||||
// See, edit, configure, and delete your Google Cloud data and see the
|
||||
// email address for your Google Account.
|
||||
CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
|
||||
)
|
||||
|
||||
@@ -219,10 +220,10 @@ type AcceleratorType struct {
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Name") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
// empty or default values are omitted from API requests. However, any
|
||||
// non-pointer, non-interface field appearing in ForceSendFields will be
|
||||
// sent to the server regardless of whether the field is empty or not.
|
||||
// This may be used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Name") to include in API
|
||||
@@ -269,10 +270,10 @@ type ListAcceleratorTypesResponse struct {
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "AcceleratorTypes") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
// empty or default values are omitted from API requests. However, any
|
||||
// non-pointer, non-interface field appearing in ForceSendFields will be
|
||||
// sent to the server regardless of whether the field is empty or not.
|
||||
// This may be used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "AcceleratorTypes") to
|
||||
@@ -307,10 +308,10 @@ type ListLocationsResponse struct {
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Locations") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
// empty or default values are omitted from API requests. However, any
|
||||
// non-pointer, non-interface field appearing in ForceSendFields will be
|
||||
// sent to the server regardless of whether the field is empty or not.
|
||||
// This may be used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Locations") to include in
|
||||
@@ -345,10 +346,10 @@ type ListNodesResponse struct {
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "NextPageToken") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
// empty or default values are omitted from API requests. However, any
|
||||
// non-pointer, non-interface field appearing in ForceSendFields will be
|
||||
// sent to the server regardless of whether the field is empty or not.
|
||||
// This may be used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "NextPageToken") to include
|
||||
@@ -382,10 +383,10 @@ type ListOperationsResponse struct {
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "NextPageToken") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
// empty or default values are omitted from API requests. However, any
|
||||
// non-pointer, non-interface field appearing in ForceSendFields will be
|
||||
// sent to the server regardless of whether the field is empty or not.
|
||||
// This may be used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "NextPageToken") to include
|
||||
@@ -420,10 +421,10 @@ type ListTensorFlowVersionsResponse struct {
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "NextPageToken") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
// empty or default values are omitted from API requests. However, any
|
||||
// non-pointer, non-interface field appearing in ForceSendFields will be
|
||||
// sent to the server regardless of whether the field is empty or not.
|
||||
// This may be used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "NextPageToken") to include
|
||||
@@ -470,10 +471,10 @@ type Location struct {
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "DisplayName") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
// empty or default values are omitted from API requests. However, any
|
||||
// non-pointer, non-interface field appearing in ForceSendFields will be
|
||||
// sent to the server regardless of whether the field is empty or not.
|
||||
// This may be used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "DisplayName") to include
|
||||
@@ -502,10 +503,10 @@ type NetworkEndpoint struct {
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "IpAddress") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
// empty or default values are omitted from API requests. However, any
|
||||
// non-pointer, non-interface field appearing in ForceSendFields will be
|
||||
// sent to the server regardless of whether the field is empty or not.
|
||||
// This may be used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "IpAddress") to include in
|
||||
@@ -613,7 +614,7 @@ type Node struct {
|
||||
// Possible values:
|
||||
// "STATE_UNSPECIFIED" - TPU node state is not known/set.
|
||||
// "CREATING" - TPU node is being created.
|
||||
// "READY" - TPU node has been created and is fully usable.
|
||||
// "READY" - TPU node has been created.
|
||||
// "RESTARTING" - TPU node is restarting.
|
||||
// "REIMAGING" - TPU node is undergoing reimaging.
|
||||
// "DELETING" - TPU node is being deleted.
|
||||
@@ -653,10 +654,10 @@ type Node struct {
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "AcceleratorType") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
// empty or default values are omitted from API requests. However, any
|
||||
// non-pointer, non-interface field appearing in ForceSendFields will be
|
||||
// sent to the server regardless of whether the field is empty or not.
|
||||
// This may be used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "AcceleratorType") to
|
||||
@@ -716,10 +717,10 @@ type Operation struct {
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Done") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
// empty or default values are omitted from API requests. However, any
|
||||
// non-pointer, non-interface field appearing in ForceSendFields will be
|
||||
// sent to the server regardless of whether the field is empty or not.
|
||||
// This may be used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Done") to include in API
|
||||
@@ -740,38 +741,38 @@ func (s *Operation) MarshalJSON() ([]byte, error) {
|
||||
// OperationMetadata: Represents the metadata of the long-running
|
||||
// operation.
|
||||
type OperationMetadata struct {
|
||||
// ApiVersion: [Output only] API version used to start the operation.
|
||||
// ApiVersion: Output only. API version used to start the operation.
|
||||
ApiVersion string `json:"apiVersion,omitempty"`
|
||||
|
||||
// CancelRequested: [Output only] Identifies whether the user has
|
||||
// requested cancellation of the operation. Operations that have
|
||||
// successfully been cancelled have Operation.error value with a
|
||||
// CancelRequested: Output only. Identifies whether the user has
|
||||
// requested cancellation of the operation. Operations that have been
|
||||
// cancelled successfully have Operation.error value with a
|
||||
// google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
|
||||
CancelRequested bool `json:"cancelRequested,omitempty"`
|
||||
|
||||
// CreateTime: [Output only] The time the operation was created.
|
||||
// CreateTime: Output only. The time the operation was created.
|
||||
CreateTime string `json:"createTime,omitempty"`
|
||||
|
||||
// EndTime: [Output only] The time the operation finished running.
|
||||
// EndTime: Output only. The time the operation finished running.
|
||||
EndTime string `json:"endTime,omitempty"`
|
||||
|
||||
// StatusDetail: [Output only] Human-readable status of the operation,
|
||||
// if any.
|
||||
// StatusDetail: Output only. Human-readable status of the operation, if
|
||||
// any.
|
||||
StatusDetail string `json:"statusDetail,omitempty"`
|
||||
|
||||
// Target: [Output only] Server-defined resource path for the target of
|
||||
// Target: Output only. Server-defined resource path for the target of
|
||||
// the operation.
|
||||
Target string `json:"target,omitempty"`
|
||||
|
||||
// Verb: [Output only] Name of the verb executed by the operation.
|
||||
// Verb: Output only. Name of the verb executed by the operation.
|
||||
Verb string `json:"verb,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "ApiVersion") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
// empty or default values are omitted from API requests. However, any
|
||||
// non-pointer, non-interface field appearing in ForceSendFields will be
|
||||
// sent to the server regardless of whether the field is empty or not.
|
||||
// This may be used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "ApiVersion") to include in
|
||||
@@ -796,10 +797,10 @@ type ReimageNodeRequest struct {
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "TensorflowVersion")
|
||||
// to unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
// empty or default values are omitted from API requests. However, any
|
||||
// non-pointer, non-interface field appearing in ForceSendFields will be
|
||||
// sent to the server regardless of whether the field is empty or not.
|
||||
// This may be used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "TensorflowVersion") to
|
||||
@@ -828,10 +829,10 @@ type SchedulingConfig struct {
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Preemptible") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
// empty or default values are omitted from API requests. However, any
|
||||
// non-pointer, non-interface field appearing in ForceSendFields will be
|
||||
// sent to the server regardless of whether the field is empty or not.
|
||||
// This may be used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Preemptible") to include
|
||||
@@ -876,10 +877,10 @@ type Status struct {
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Code") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
// empty or default values are omitted from API requests. However, any
|
||||
// non-pointer, non-interface field appearing in ForceSendFields will be
|
||||
// sent to the server regardless of whether the field is empty or not.
|
||||
// This may be used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Code") to include in API
|
||||
@@ -929,10 +930,10 @@ type Symptom struct {
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "CreateTime") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
// empty or default values are omitted from API requests. However, any
|
||||
// non-pointer, non-interface field appearing in ForceSendFields will be
|
||||
// sent to the server regardless of whether the field is empty or not.
|
||||
// This may be used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "CreateTime") to include in
|
||||
@@ -965,10 +966,10 @@ type TensorFlowVersion struct {
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Name") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
// empty or default values are omitted from API requests. However, any
|
||||
// non-pointer, non-interface field appearing in ForceSendFields will be
|
||||
// sent to the server regardless of whether the field is empty or not.
|
||||
// This may be used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Name") to include in API
|
||||
@@ -1043,7 +1044,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header {
|
||||
|
||||
func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211027")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
@@ -1215,7 +1216,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header {
|
||||
|
||||
func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211027")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
@@ -1398,7 +1399,7 @@ func (c *ProjectsLocationsAcceleratorTypesGetCall) Header() http.Header {
|
||||
|
||||
func (c *ProjectsLocationsAcceleratorTypesGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211027")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
@@ -1570,7 +1571,7 @@ func (c *ProjectsLocationsAcceleratorTypesListCall) Header() http.Header {
|
||||
|
||||
func (c *ProjectsLocationsAcceleratorTypesListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211027")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
@@ -1756,7 +1757,7 @@ func (c *ProjectsLocationsNodesCreateCall) Header() http.Header {
|
||||
|
||||
func (c *ProjectsLocationsNodesCreateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211027")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
@@ -1901,7 +1902,7 @@ func (c *ProjectsLocationsNodesDeleteCall) Header() http.Header {
|
||||
|
||||
func (c *ProjectsLocationsNodesDeleteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211027")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
@@ -2044,7 +2045,7 @@ func (c *ProjectsLocationsNodesGetCall) Header() http.Header {
|
||||
|
||||
func (c *ProjectsLocationsNodesGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211027")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
@@ -2204,7 +2205,7 @@ func (c *ProjectsLocationsNodesListCall) Header() http.Header {
|
||||
|
||||
func (c *ProjectsLocationsNodesListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211027")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
@@ -2373,7 +2374,7 @@ func (c *ProjectsLocationsNodesReimageCall) Header() http.Header {
|
||||
|
||||
func (c *ProjectsLocationsNodesReimageCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211027")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
@@ -2515,7 +2516,7 @@ func (c *ProjectsLocationsNodesStartCall) Header() http.Header {
|
||||
|
||||
func (c *ProjectsLocationsNodesStartCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211027")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
@@ -2620,7 +2621,8 @@ type ProjectsLocationsNodesStopCall struct {
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Stop: Stops a node.
|
||||
// Stop: Stops a node, this operation is only available with single TPU
|
||||
// nodes.
|
||||
//
|
||||
// - name: The resource name.
|
||||
func (r *ProjectsLocationsNodesService) Stop(name string, stopnoderequest *StopNodeRequest) *ProjectsLocationsNodesStopCall {
|
||||
@@ -2657,7 +2659,7 @@ func (c *ProjectsLocationsNodesStopCall) Header() http.Header {
|
||||
|
||||
func (c *ProjectsLocationsNodesStopCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211027")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
@@ -2721,7 +2723,7 @@ func (c *ProjectsLocationsNodesStopCall) Do(opts ...googleapi.CallOption) (*Oper
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Stops a node.",
|
||||
// "description": "Stops a node, this operation is only available with single TPU nodes.",
|
||||
// "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:stop",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "tpu.projects.locations.nodes.stop",
|
||||
@@ -2806,7 +2808,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header {
|
||||
|
||||
func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211027")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
@@ -2941,7 +2943,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header {
|
||||
|
||||
func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211027")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
@@ -3086,7 +3088,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
|
||||
|
||||
func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211027")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
@@ -3262,7 +3264,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
|
||||
|
||||
func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211027")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
@@ -3445,7 +3447,7 @@ func (c *ProjectsLocationsTensorflowVersionsGetCall) Header() http.Header {
|
||||
|
||||
func (c *ProjectsLocationsTensorflowVersionsGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211027")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
@@ -3617,7 +3619,7 @@ func (c *ProjectsLocationsTensorflowVersionsListCall) Header() http.Header {
|
||||
|
||||
func (c *ProjectsLocationsTensorflowVersionsListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210502")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20211027")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
3
vendor/google.golang.org/api/transport/http/configure_http2_go116.go
generated
vendored
3
vendor/google.golang.org/api/transport/http/configure_http2_go116.go
generated
vendored
@@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build go1.16
|
||||
// +build go1.16
|
||||
|
||||
package http
|
||||
@@ -20,6 +21,6 @@ import (
|
||||
func configureHTTP2(trans *http.Transport) {
|
||||
http2Trans, err := http2.ConfigureTransports(trans)
|
||||
if err == nil {
|
||||
http2Trans.ReadIdleTimeout = time.Second * 15
|
||||
http2Trans.ReadIdleTimeout = time.Second * 31
|
||||
}
|
||||
}
|
||||
|
1
vendor/google.golang.org/api/transport/http/configure_http2_not_go116.go
generated
vendored
1
vendor/google.golang.org/api/transport/http/configure_http2_not_go116.go
generated
vendored
@@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !go1.16
|
||||
// +build !go1.16
|
||||
|
||||
package http
|
||||
|
1
vendor/google.golang.org/api/transport/http/default_transport_go113.go
generated
vendored
1
vendor/google.golang.org/api/transport/http/default_transport_go113.go
generated
vendored
@@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build go1.13
|
||||
// +build go1.13
|
||||
|
||||
package http
|
||||
|
1
vendor/google.golang.org/api/transport/http/default_transport_not_go113.go
generated
vendored
1
vendor/google.golang.org/api/transport/http/default_transport_not_go113.go
generated
vendored
@@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !go1.13
|
||||
// +build !go1.13
|
||||
|
||||
package http
|
||||
|
1
vendor/google.golang.org/api/transport/http/dial_appengine.go
generated
vendored
1
vendor/google.golang.org/api/transport/http/dial_appengine.go
generated
vendored
@@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build appengine
|
||||
// +build appengine
|
||||
|
||||
package http
|
||||
|
1
vendor/google.golang.org/api/transport/http/internal/propagation/http.go
generated
vendored
1
vendor/google.golang.org/api/transport/http/internal/propagation/http.go
generated
vendored
@@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build go1.8
|
||||
// +build go1.8
|
||||
|
||||
// Package propagation implements X-Cloud-Trace-Context header propagation used
|
||||
|
2
vendor/google.golang.org/api/transport/internal/dca/dca.go
generated
vendored
2
vendor/google.golang.org/api/transport/internal/dca/dca.go
generated
vendored
@@ -68,8 +68,6 @@ func GetClientCertificateSourceAndEndpoint(settings *internal.DialSettings) (cer
|
||||
func getClientCertificateSource(settings *internal.DialSettings) (cert.Source, error) {
|
||||
if !isClientCertificateEnabled() {
|
||||
return nil, nil
|
||||
} else if settings.HTTPClient != nil {
|
||||
return nil, nil // HTTPClient is incompatible with ClientCertificateSource
|
||||
} else if settings.ClientCertSource != nil {
|
||||
return settings.ClientCertSource, nil
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user