mirror of https://github.com/k3s-io/k3s
commit
65c8452946
|
@ -122,23 +122,23 @@
|
|||
},
|
||||
{
|
||||
"ImportPath": "github.com/GoogleCloudPlatform/k8s-cloud-provider/pkg/cloud",
|
||||
"Comment": "1.2.0",
|
||||
"Rev": "773c7a284e1399960745d0e2c501f577a20d4947"
|
||||
"Comment": "1.3.0",
|
||||
"Rev": "f8e99590510076aa1e3ff07df946f05220c50fb4"
|
||||
},
|
||||
{
|
||||
"ImportPath": "github.com/GoogleCloudPlatform/k8s-cloud-provider/pkg/cloud/filter",
|
||||
"Comment": "1.2.0",
|
||||
"Rev": "773c7a284e1399960745d0e2c501f577a20d4947"
|
||||
"Comment": "1.3.0",
|
||||
"Rev": "f8e99590510076aa1e3ff07df946f05220c50fb4"
|
||||
},
|
||||
{
|
||||
"ImportPath": "github.com/GoogleCloudPlatform/k8s-cloud-provider/pkg/cloud/meta",
|
||||
"Comment": "1.2.0",
|
||||
"Rev": "773c7a284e1399960745d0e2c501f577a20d4947"
|
||||
"Comment": "1.3.0",
|
||||
"Rev": "f8e99590510076aa1e3ff07df946f05220c50fb4"
|
||||
},
|
||||
{
|
||||
"ImportPath": "github.com/GoogleCloudPlatform/k8s-cloud-provider/pkg/cloud/mock",
|
||||
"Comment": "1.2.0",
|
||||
"Rev": "773c7a284e1399960745d0e2c501f577a20d4947"
|
||||
"Comment": "1.3.0",
|
||||
"Rev": "f8e99590510076aa1e3ff07df946f05220c50fb4"
|
||||
},
|
||||
{
|
||||
"ImportPath": "github.com/JeffAshton/win_pdh",
|
||||
|
@ -3751,47 +3751,47 @@
|
|||
},
|
||||
{
|
||||
"ImportPath": "google.golang.org/api/compute/v0.alpha",
|
||||
"Rev": "3639d6d93f377f39a1de765fa4ef37b3c7ca8bd9"
|
||||
"Rev": "583d854617af4d2080b5d2a24d72f7fc5a128ab2"
|
||||
},
|
||||
{
|
||||
"ImportPath": "google.golang.org/api/compute/v0.beta",
|
||||
"Rev": "3639d6d93f377f39a1de765fa4ef37b3c7ca8bd9"
|
||||
"Rev": "583d854617af4d2080b5d2a24d72f7fc5a128ab2"
|
||||
},
|
||||
{
|
||||
"ImportPath": "google.golang.org/api/compute/v1",
|
||||
"Rev": "3639d6d93f377f39a1de765fa4ef37b3c7ca8bd9"
|
||||
"Rev": "583d854617af4d2080b5d2a24d72f7fc5a128ab2"
|
||||
},
|
||||
{
|
||||
"ImportPath": "google.golang.org/api/container/v1",
|
||||
"Rev": "3639d6d93f377f39a1de765fa4ef37b3c7ca8bd9"
|
||||
"Rev": "583d854617af4d2080b5d2a24d72f7fc5a128ab2"
|
||||
},
|
||||
{
|
||||
"ImportPath": "google.golang.org/api/gensupport",
|
||||
"Rev": "3639d6d93f377f39a1de765fa4ef37b3c7ca8bd9"
|
||||
"Rev": "583d854617af4d2080b5d2a24d72f7fc5a128ab2"
|
||||
},
|
||||
{
|
||||
"ImportPath": "google.golang.org/api/googleapi",
|
||||
"Rev": "3639d6d93f377f39a1de765fa4ef37b3c7ca8bd9"
|
||||
"Rev": "583d854617af4d2080b5d2a24d72f7fc5a128ab2"
|
||||
},
|
||||
{
|
||||
"ImportPath": "google.golang.org/api/googleapi/internal/uritemplates",
|
||||
"Rev": "3639d6d93f377f39a1de765fa4ef37b3c7ca8bd9"
|
||||
"Rev": "583d854617af4d2080b5d2a24d72f7fc5a128ab2"
|
||||
},
|
||||
{
|
||||
"ImportPath": "google.golang.org/api/logging/v2beta1",
|
||||
"Rev": "3639d6d93f377f39a1de765fa4ef37b3c7ca8bd9"
|
||||
"Rev": "583d854617af4d2080b5d2a24d72f7fc5a128ab2"
|
||||
},
|
||||
{
|
||||
"ImportPath": "google.golang.org/api/monitoring/v3",
|
||||
"Rev": "3639d6d93f377f39a1de765fa4ef37b3c7ca8bd9"
|
||||
"Rev": "583d854617af4d2080b5d2a24d72f7fc5a128ab2"
|
||||
},
|
||||
{
|
||||
"ImportPath": "google.golang.org/api/pubsub/v1",
|
||||
"Rev": "3639d6d93f377f39a1de765fa4ef37b3c7ca8bd9"
|
||||
"Rev": "583d854617af4d2080b5d2a24d72f7fc5a128ab2"
|
||||
},
|
||||
{
|
||||
"ImportPath": "google.golang.org/api/tpu/v1",
|
||||
"Rev": "3639d6d93f377f39a1de765fa4ef37b3c7ca8bd9"
|
||||
"Rev": "583d854617af4d2080b5d2a24d72f7fc5a128ab2"
|
||||
},
|
||||
{
|
||||
"ImportPath": "google.golang.org/genproto/googleapis/rpc/status",
|
||||
|
|
|
@ -7,8 +7,6 @@ go_library(
|
|||
importpath = "google.golang.org/api/compute/v0.alpha",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//vendor/golang.org/x/net/context:go_default_library",
|
||||
"//vendor/golang.org/x/net/context/ctxhttp:go_default_library",
|
||||
"//vendor/google.golang.org/api/gensupport:go_default_library",
|
||||
"//vendor/google.golang.org/api/googleapi:go_default_library",
|
||||
],
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -7,8 +7,6 @@ go_library(
|
|||
importpath = "google.golang.org/api/compute/v0.beta",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//vendor/golang.org/x/net/context:go_default_library",
|
||||
"//vendor/golang.org/x/net/context/ctxhttp:go_default_library",
|
||||
"//vendor/google.golang.org/api/gensupport:go_default_library",
|
||||
"//vendor/google.golang.org/api/googleapi:go_default_library",
|
||||
],
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -7,8 +7,6 @@ go_library(
|
|||
importpath = "google.golang.org/api/compute/v1",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//vendor/golang.org/x/net/context:go_default_library",
|
||||
"//vendor/golang.org/x/net/context/ctxhttp:go_default_library",
|
||||
"//vendor/google.golang.org/api/gensupport:go_default_library",
|
||||
"//vendor/google.golang.org/api/googleapi:go_default_library",
|
||||
],
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -7,8 +7,6 @@ go_library(
|
|||
importpath = "google.golang.org/api/container/v1",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//vendor/golang.org/x/net/context:go_default_library",
|
||||
"//vendor/golang.org/x/net/context/ctxhttp:go_default_library",
|
||||
"//vendor/google.golang.org/api/gensupport:go_default_library",
|
||||
"//vendor/google.golang.org/api/googleapi:go_default_library",
|
||||
],
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
"baseUrl": "https://container.googleapis.com/",
|
||||
"batchPath": "batch",
|
||||
"canonicalName": "Container",
|
||||
"description": "The Google Kubernetes Engine API is used for building and managing container based applications, powered by the open source Kubernetes technology.",
|
||||
"description": "Builds and manages container-based applications, powered by the open source Kubernetes technology.",
|
||||
"discoveryVersion": "v1",
|
||||
"documentationLink": "https://cloud.google.com/container-engine/",
|
||||
"fullyEncodeReservedExpansion": true,
|
||||
|
@ -668,7 +668,7 @@
|
|||
],
|
||||
"parameters": {
|
||||
"parent": {
|
||||
"description": "The parent (project, location, cluster id) where the node pool will be\ncreated. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
|
||||
"description": "The parent (project, location, cluster id) where the node pool will be\ncreated. Specified in the format\n'projects/*/locations/*/clusters/*'.",
|
||||
"location": "path",
|
||||
"pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$",
|
||||
"required": true,
|
||||
|
@ -2361,7 +2361,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"revision": "20180607",
|
||||
"revision": "20181109",
|
||||
"rootUrl": "https://container.googleapis.com/",
|
||||
"schemas": {
|
||||
"AcceleratorConfig": {
|
||||
|
@ -2479,6 +2479,13 @@
|
|||
"description": "The IP address range of the container pods in this cluster, in\n[CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)\nnotation (e.g. `10.96.0.0/14`). Leave blank to have\none automatically chosen or specify a `/14` block in `10.0.0.0/8`.",
|
||||
"type": "string"
|
||||
},
|
||||
"conditions": {
|
||||
"description": "Which conditions caused the current cluster state.",
|
||||
"items": {
|
||||
"$ref": "StatusCondition"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"createTime": {
|
||||
"description": "[Output only] The time the cluster was created, in\n[RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.",
|
||||
"type": "string"
|
||||
|
@ -2488,12 +2495,12 @@
|
|||
"type": "string"
|
||||
},
|
||||
"currentNodeCount": {
|
||||
"description": "[Output only] The number of nodes currently in the cluster.",
|
||||
"description": "[Output only] The number of nodes currently in the cluster. Deprecated.\nCall Kubernetes API directly to retrieve node information.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
"currentNodeVersion": {
|
||||
"description": "[Output only] The current version of the node software components.\nIf they are currently at multiple versions because they're in the process\nof being upgraded, this reflects the minimum version of all nodes.",
|
||||
"description": "[Output only] Deprecated, use\n[NodePool.version](/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePool)\ninstead. The current version of the node software components. If they are\ncurrently at multiple versions because they're in the process of being\nupgraded, this reflects the minimum version of all nodes.",
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
|
@ -2545,7 +2552,7 @@
|
|||
"type": "string"
|
||||
},
|
||||
"locations": {
|
||||
"description": "The list of Google Compute Engine\n[locations](/compute/docs/zones#available) in which the cluster's nodes\nshould be located.",
|
||||
"description": "The list of Google Compute Engine\n[zones](/compute/docs/zones#available) in which the cluster's nodes\nshould be located.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
|
@ -2561,7 +2568,7 @@
|
|||
},
|
||||
"masterAuth": {
|
||||
"$ref": "MasterAuth",
|
||||
"description": "The authentication information for accessing the master endpoint."
|
||||
"description": "The authentication information for accessing the master endpoint.\nIf unspecified, the defaults are used:\nFor clusters before v1.12, if master_auth is unspecified, `username` will\nbe set to \"admin\", a random password will be generated, and a client\ncertificate will be issued."
|
||||
},
|
||||
"masterAuthorizedNetworksConfig": {
|
||||
"$ref": "MasterAuthorizedNetworksConfig",
|
||||
|
@ -2579,6 +2586,10 @@
|
|||
"description": "The name of the Google Compute Engine\n[network](/compute/docs/networks-and-firewalls#networks) to which the\ncluster is connected. If left unspecified, the `default` network\nwill be used.",
|
||||
"type": "string"
|
||||
},
|
||||
"networkConfig": {
|
||||
"$ref": "NetworkConfig",
|
||||
"description": "Configuration for cluster networking."
|
||||
},
|
||||
"networkPolicy": {
|
||||
"$ref": "NetworkPolicy",
|
||||
"description": "Configuration options for the NetworkPolicy feature."
|
||||
|
@ -2599,6 +2610,10 @@
|
|||
},
|
||||
"type": "array"
|
||||
},
|
||||
"privateClusterConfig": {
|
||||
"$ref": "PrivateClusterConfig",
|
||||
"description": "Configuration for private cluster."
|
||||
},
|
||||
"resourceLabels": {
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
|
@ -2664,7 +2679,7 @@
|
|||
"type": "string"
|
||||
},
|
||||
"desiredLocations": {
|
||||
"description": "The desired list of Google Compute Engine\n[locations](/compute/docs/zones#available) in which the cluster's nodes\nshould be located. Changing the locations a cluster is in will result\nin nodes being either created or removed from the cluster, depending on\nwhether locations are being added or removed.\n\nThis list must always include the cluster's primary zone.",
|
||||
"description": "The desired list of Google Compute Engine\n[zones](/compute/docs/zones#available) in which the cluster's nodes\nshould be located. Changing the locations a cluster is in will result\nin nodes being either created or removed from the cluster, depending on\nwhether locations are being added or removed.\n\nThis list must always include the cluster's primary zone.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
|
@ -2756,7 +2771,7 @@
|
|||
"description": "The node pool to create."
|
||||
},
|
||||
"parent": {
|
||||
"description": "The parent (project, location, cluster id) where the node pool will be\ncreated. Specified in the format\n'projects/*/locations/*/clusters/*/nodePools/*'.",
|
||||
"description": "The parent (project, location, cluster id) where the node pool will be\ncreated. Specified in the format\n'projects/*/locations/*/clusters/*'.",
|
||||
"type": "string"
|
||||
},
|
||||
"projectId": {
|
||||
|
@ -2974,7 +2989,7 @@
|
|||
},
|
||||
"clientCertificateConfig": {
|
||||
"$ref": "ClientCertificateConfig",
|
||||
"description": "Configuration for client certificate authentication on the cluster. If no\nconfiguration is specified, a client certificate is issued."
|
||||
"description": "Configuration for client certificate authentication on the cluster. For\nclusters before v1.12, if no configuration is specified, a client\ncertificate is issued."
|
||||
},
|
||||
"clientKey": {
|
||||
"description": "[Output only] Base64-encoded private key used by clients to authenticate\nto the cluster endpoint.",
|
||||
|
@ -2989,7 +3004,7 @@
|
|||
"type": "string"
|
||||
},
|
||||
"username": {
|
||||
"description": "The username to use for HTTP basic authentication to the master endpoint.\nFor clusters v1.6.0 and later, you can disable basic authentication by\nproviding an empty username.",
|
||||
"description": "The username to use for HTTP basic authentication to the master endpoint.\nFor clusters v1.6.0 and later, basic authentication can be disabled by\nleaving username unspecified (or setting it to the empty string).",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
|
@ -3013,6 +3028,21 @@
|
|||
},
|
||||
"type": "object"
|
||||
},
|
||||
"NetworkConfig": {
|
||||
"description": "NetworkConfig reports the relative names of network \u0026 subnetwork.",
|
||||
"id": "NetworkConfig",
|
||||
"properties": {
|
||||
"network": {
|
||||
"description": "Output only. The relative name of the Google Compute Engine\nnetwork(/compute/docs/networks-and-firewalls#networks) to which\nthe cluster is connected.\nExample: projects/my-project/global/networks/my-network",
|
||||
"type": "string"
|
||||
},
|
||||
"subnetwork": {
|
||||
"description": "Output only. The relative name of the Google Compute Engine\n[subnetwork](/compute/docs/vpc) to which the cluster is connected.\nExample: projects/my-project/regions/us-central1/subnetworks/my-subnet",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"NetworkPolicy": {
|
||||
"description": "Configuration options for the NetworkPolicy feature.\nhttps://kubernetes.io/docs/concepts/services-networking/networkpolicies/",
|
||||
"id": "NetworkPolicy",
|
||||
|
@ -3063,6 +3093,10 @@
|
|||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
"diskType": {
|
||||
"description": "Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')\n\nIf unspecified, the default disk type is 'pd-standard'",
|
||||
"type": "string"
|
||||
},
|
||||
"imageType": {
|
||||
"description": "The image type to use for this node. Note that for a given image type,\nthe latest version of it will be used.",
|
||||
"type": "string"
|
||||
|
@ -3087,7 +3121,7 @@
|
|||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "The metadata key/value pairs assigned to instances in the cluster.\n\nKeys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes\nin length. These are reflected as part of a URL in the metadata server.\nAdditionally, to avoid ambiguity, keys must not conflict with any other\nmetadata keys for the project or be one of the reserved keys:\n \"cluster-location\"\n \"cluster-name\"\n \"cluster-uid\"\n \"configure-sh\"\n \"gci-update-strategy\"\n \"gci-ensure-gke-docker\"\n \"instance-template\"\n \"kube-env\"\n \"startup-script\"\n \"user-data\"\n\nValues are free-form strings, and only have meaning as interpreted by\nthe image running in the instance. The only restriction placed on them is\nthat each value's size must be less than or equal to 32 KB.\n\nThe 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.\n\nKeys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes\nin length. These are reflected as part of a URL in the metadata server.\nAdditionally, to avoid ambiguity, keys must not conflict with any other\nmetadata keys for the project or be one of the reserved keys:\n \"cluster-location\"\n \"cluster-name\"\n \"cluster-uid\"\n \"configure-sh\"\n \"enable-os-login\"\n \"gci-update-strategy\"\n \"gci-ensure-gke-docker\"\n \"instance-template\"\n \"kube-env\"\n \"startup-script\"\n \"user-data\"\n\nValues are free-form strings, and only have meaning as interpreted by\nthe image running in the instance. The only restriction placed on them is\nthat each value's size must be less than or equal to 32 KB.\n\nThe total size of all keys and values must be less than 512 KB.",
|
||||
"type": "object"
|
||||
},
|
||||
"minCpuPlatform": {
|
||||
|
@ -3115,6 +3149,13 @@
|
|||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"taints": {
|
||||
"description": "List of kubernetes taints to be applied to each node.\n\nFor more information, including usage and the valid values, see:\nhttps://kubernetes.io/docs/concepts/configuration/taint-and-toleration/",
|
||||
"items": {
|
||||
"$ref": "NodeTaint"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
|
@ -3146,6 +3187,13 @@
|
|||
"$ref": "NodePoolAutoscaling",
|
||||
"description": "Autoscaler configuration for this NodePool. Autoscaler is enabled\nonly if a valid configuration is present."
|
||||
},
|
||||
"conditions": {
|
||||
"description": "Which conditions caused the current node pool state.",
|
||||
"items": {
|
||||
"$ref": "StatusCondition"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"config": {
|
||||
"$ref": "NodeConfig",
|
||||
"description": "The node configuration of the pool."
|
||||
|
@ -3228,10 +3276,48 @@
|
|||
},
|
||||
"type": "object"
|
||||
},
|
||||
"NodeTaint": {
|
||||
"description": "Kubernetes taint is comprised of three fields: key, value, and effect. Effect\ncan only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.\n\nFor more information, including usage and the valid values, see:\nhttps://kubernetes.io/docs/concepts/configuration/taint-and-toleration/",
|
||||
"id": "NodeTaint",
|
||||
"properties": {
|
||||
"effect": {
|
||||
"description": "Effect for taint.",
|
||||
"enum": [
|
||||
"EFFECT_UNSPECIFIED",
|
||||
"NO_SCHEDULE",
|
||||
"PREFER_NO_SCHEDULE",
|
||||
"NO_EXECUTE"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Not set",
|
||||
"NoSchedule",
|
||||
"PreferNoSchedule",
|
||||
"NoExecute"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"key": {
|
||||
"description": "Key for taint.",
|
||||
"type": "string"
|
||||
},
|
||||
"value": {
|
||||
"description": "Value for taint.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Operation": {
|
||||
"description": "This operation resource represents operations that may have happened or are\nhappening on the cluster. All fields are output only.",
|
||||
"id": "Operation",
|
||||
"properties": {
|
||||
"clusterConditions": {
|
||||
"description": "Which conditions caused the current cluster state.",
|
||||
"items": {
|
||||
"$ref": "StatusCondition"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"detail": {
|
||||
"description": "Detailed operation progress, if available.",
|
||||
"type": "string"
|
||||
|
@ -3248,6 +3334,13 @@
|
|||
"description": "The server-assigned ID for the operation.",
|
||||
"type": "string"
|
||||
},
|
||||
"nodepoolConditions": {
|
||||
"description": "Which conditions caused the current node pool state.",
|
||||
"items": {
|
||||
"$ref": "StatusCondition"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"operationType": {
|
||||
"description": "The operation type.",
|
||||
"enum": [
|
||||
|
@ -3331,6 +3424,33 @@
|
|||
},
|
||||
"type": "object"
|
||||
},
|
||||
"PrivateClusterConfig": {
|
||||
"description": "Configuration options for private clusters.",
|
||||
"id": "PrivateClusterConfig",
|
||||
"properties": {
|
||||
"enablePrivateEndpoint": {
|
||||
"description": "Whether the master's internal IP address is used as the cluster endpoint.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"enablePrivateNodes": {
|
||||
"description": "Whether nodes have internal IP addresses only. If enabled, all nodes are\ngiven only RFC 1918 private addresses and communicate with the master via\nprivate networking.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"masterIpv4CidrBlock": {
|
||||
"description": "The IP range in CIDR notation to use for the hosted master network. This\nrange will be used for assigning internal IP addresses to the master or\nset of masters, as well as the ILB VIP. This range must not overlap with\nany other ranges in use within the cluster's network.",
|
||||
"type": "string"
|
||||
},
|
||||
"privateEndpoint": {
|
||||
"description": "Output only. The internal IP address of this cluster's master endpoint.",
|
||||
"type": "string"
|
||||
},
|
||||
"publicEndpoint": {
|
||||
"description": "Output only. The external IP address of this cluster's master endpoint.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"RollbackNodePoolUpgradeRequest": {
|
||||
"description": "RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed\nNodePool upgrade. This will be an no-op if the last upgrade successfully\ncompleted.",
|
||||
"id": "RollbackNodePoolUpgradeRequest",
|
||||
|
@ -3491,7 +3611,7 @@
|
|||
"type": "string"
|
||||
},
|
||||
"locations": {
|
||||
"description": "The desired list of Google Compute Engine\n[locations](/compute/docs/zones#available) in which the cluster's nodes\nshould be located. Changing the locations a cluster is in will result\nin nodes being either created or removed from the cluster, depending on\nwhether locations are being added or removed.\n\nThis list must always include the cluster's primary zone.",
|
||||
"description": "The desired list of Google Compute Engine\n[zones](/compute/docs/zones#available) in which the cluster's nodes\nshould be located. Changing the locations a cluster is in will result\nin nodes being either created or removed from the cluster, depending on\nwhether locations are being added or removed.\n\nThis list must always include the cluster's primary zone.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
|
@ -3784,6 +3904,35 @@
|
|||
},
|
||||
"type": "object"
|
||||
},
|
||||
"StatusCondition": {
|
||||
"description": "StatusCondition describes why a cluster or a node pool has a certain status\n(e.g., ERROR or DEGRADED).",
|
||||
"id": "StatusCondition",
|
||||
"properties": {
|
||||
"code": {
|
||||
"description": "Machine-friendly representation of the condition",
|
||||
"enum": [
|
||||
"UNKNOWN",
|
||||
"GCE_STOCKOUT",
|
||||
"GKE_SERVICE_ACCOUNT_DELETED",
|
||||
"GCE_QUOTA_EXCEEDED",
|
||||
"SET_BY_OPERATOR"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"UNKNOWN indicates a generic condition.",
|
||||
"GCE_STOCKOUT indicates a Google Compute Engine stockout.",
|
||||
"GKE_SERVICE_ACCOUNT_DELETED indicates that the user deleted their robot\nservice account.",
|
||||
"Google Compute Engine quota was exceeded.",
|
||||
"Cluster state was manually changed by an SRE due to a system logic error.\nMore codes TBA"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"message": {
|
||||
"description": "Human-friendly representation of the condition",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"UpdateClusterRequest": {
|
||||
"description": "UpdateClusterRequest updates the settings of a cluster.",
|
||||
"id": "UpdateClusterRequest",
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -6,12 +6,10 @@ go_library(
|
|||
"backoff.go",
|
||||
"buffer.go",
|
||||
"doc.go",
|
||||
"go18.go",
|
||||
"header.go",
|
||||
"json.go",
|
||||
"jsonfloat.go",
|
||||
"media.go",
|
||||
"not_go18.go",
|
||||
"params.go",
|
||||
"resumable.go",
|
||||
"retry.go",
|
||||
|
@ -20,11 +18,7 @@ go_library(
|
|||
importmap = "k8s.io/kubernetes/vendor/google.golang.org/api/gensupport",
|
||||
importpath = "google.golang.org/api/gensupport",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//vendor/golang.org/x/net/context:go_default_library",
|
||||
"//vendor/golang.org/x/net/context/ctxhttp:go_default_library",
|
||||
"//vendor/google.golang.org/api/googleapi:go_default_library",
|
||||
],
|
||||
deps = ["//vendor/google.golang.org/api/googleapi:go_default_library"],
|
||||
)
|
||||
|
||||
filegroup(
|
||||
|
|
|
@ -9,6 +9,8 @@ import (
|
|||
"time"
|
||||
)
|
||||
|
||||
// BackoffStrategy defines the set of functions that a backoff-er must
|
||||
// implement.
|
||||
type BackoffStrategy interface {
|
||||
// Pause returns the duration of the next pause and true if the operation should be
|
||||
// retried, or false if no further retries should be attempted.
|
||||
|
@ -28,6 +30,7 @@ type ExponentialBackoff struct {
|
|||
n uint
|
||||
}
|
||||
|
||||
// Pause returns the amount of time the caller should wait.
|
||||
func (eb *ExponentialBackoff) Pause() (time.Duration, bool) {
|
||||
if eb.total > eb.Max {
|
||||
return 0, false
|
||||
|
@ -40,6 +43,8 @@ func (eb *ExponentialBackoff) Pause() (time.Duration, bool) {
|
|||
return d, true
|
||||
}
|
||||
|
||||
// Reset resets the backoff strategy such that the next Pause call will begin
|
||||
// counting from the start. It is not safe to call concurrently with Pause.
|
||||
func (eb *ExponentialBackoff) Reset() {
|
||||
eb.n = 0
|
||||
eb.total = 0
|
||||
|
|
|
@ -11,7 +11,8 @@ import (
|
|||
"google.golang.org/api/googleapi"
|
||||
)
|
||||
|
||||
// MediaBuffer buffers data from an io.Reader to support uploading media in retryable chunks.
|
||||
// MediaBuffer buffers data from an io.Reader to support uploading media in
|
||||
// retryable chunks. It should be created with NewMediaBuffer.
|
||||
type MediaBuffer struct {
|
||||
media io.Reader
|
||||
|
||||
|
@ -22,6 +23,7 @@ type MediaBuffer struct {
|
|||
off int64
|
||||
}
|
||||
|
||||
// NewMediaBuffer initializes a MediaBuffer.
|
||||
func NewMediaBuffer(media io.Reader, chunkSize int) *MediaBuffer {
|
||||
return &MediaBuffer{media: media, chunk: make([]byte, 0, chunkSize)}
|
||||
}
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
// Copyright 2018 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build go1.8
|
||||
|
||||
package gensupport
|
||||
|
||||
import (
|
||||
"io"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// SetGetBody sets the GetBody field of req to f.
|
||||
func SetGetBody(req *http.Request, f func() (io.ReadCloser, error)) {
|
||||
req.GetBody = f
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2016 Google Inc. All Rights Reserved.
|
||||
// Copyright 2016 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
|
|
|
@ -242,6 +242,7 @@ func NewInfoFromResumableMedia(r io.ReaderAt, size int64, mediaType string) *Med
|
|||
}
|
||||
}
|
||||
|
||||
// SetProgressUpdater sets the progress updater for the media info.
|
||||
func (mi *MediaInfo) SetProgressUpdater(pu googleapi.ProgressUpdater) {
|
||||
if mi != nil {
|
||||
mi.progressUpdater = pu
|
||||
|
@ -334,3 +335,8 @@ func (mi *MediaInfo) ResumableUpload(locURI string) *ResumableUpload {
|
|||
},
|
||||
}
|
||||
}
|
||||
|
||||
// SetGetBody sets the GetBody field of req to f.
|
||||
func SetGetBody(req *http.Request, f func() (io.ReadCloser, error)) {
|
||||
req.GetBody = f
|
||||
}
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
// Copyright 2018 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build !go1.8
|
||||
|
||||
package gensupport
|
||||
|
||||
import (
|
||||
"io"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func SetGetBody(req *http.Request, f func() (io.ReadCloser, error)) {}
|
|
@ -43,6 +43,7 @@ func (u URLParams) Encode() string {
|
|||
return url.Values(u).Encode()
|
||||
}
|
||||
|
||||
// SetOptions sets the URL params and any additional call options.
|
||||
func SetOptions(u URLParams, opts ...googleapi.CallOption) {
|
||||
for _, o := range opts {
|
||||
u.Set(o.Get())
|
||||
|
|
|
@ -5,14 +5,13 @@
|
|||
package gensupport
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"net/http"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2017 Google Inc. All Rights Reserved.
|
||||
// Copyright 2017 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
|
@ -15,12 +15,11 @@
|
|||
package gensupport
|
||||
|
||||
import (
|
||||
"context"
|
||||
"io"
|
||||
"net"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
// Retry invokes the given function, retrying it multiple times if the connection failed or
|
||||
|
|
|
@ -5,12 +5,10 @@
|
|||
package gensupport
|
||||
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"net/http"
|
||||
|
||||
"golang.org/x/net/context"
|
||||
"golang.org/x/net/context/ctxhttp"
|
||||
)
|
||||
|
||||
// Hook is the type of a function that is called once before each HTTP request
|
||||
|
@ -32,7 +30,8 @@ func RegisterHook(h Hook) {
|
|||
|
||||
// SendRequest sends a single HTTP request using the given client.
|
||||
// If ctx is non-nil, it calls all hooks, then sends the request with
|
||||
// ctxhttp.Do, then calls any functions returned by the hooks in reverse order.
|
||||
// req.WithContext, then calls any functions returned by the hooks in
|
||||
// reverse order.
|
||||
func SendRequest(ctx context.Context, client *http.Client, req *http.Request) (*http.Response, error) {
|
||||
// Disallow Accept-Encoding because it interferes with the automatic gzip handling
|
||||
// done by the default http.Transport. See https://github.com/google/google-api-go-client/issues/219.
|
||||
|
@ -50,7 +49,7 @@ func SendRequest(ctx context.Context, client *http.Client, req *http.Request) (*
|
|||
}
|
||||
|
||||
// Send request.
|
||||
resp, err := ctxhttp.Do(ctx, client, req)
|
||||
resp, err := send(ctx, client, req)
|
||||
|
||||
// Call returned funcs in reverse order.
|
||||
for i := len(post) - 1; i >= 0; i-- {
|
||||
|
@ -61,6 +60,23 @@ func SendRequest(ctx context.Context, client *http.Client, req *http.Request) (*
|
|||
return resp, err
|
||||
}
|
||||
|
||||
func send(ctx context.Context, client *http.Client, req *http.Request) (*http.Response, error) {
|
||||
if client == nil {
|
||||
client = http.DefaultClient
|
||||
}
|
||||
resp, err := client.Do(req.WithContext(ctx))
|
||||
// If we got an error, and the context has been canceled,
|
||||
// the context's error is probably more useful.
|
||||
if err != nil {
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
err = ctx.Err()
|
||||
default:
|
||||
}
|
||||
}
|
||||
return resp, err
|
||||
}
|
||||
|
||||
// DecodeResponse decodes the body of res into target. If there is no body,
|
||||
// target is unchanged.
|
||||
func DecodeResponse(target interface{}, res *http.Response) error {
|
||||
|
|
|
@ -37,24 +37,28 @@ type SizeReaderAt interface {
|
|||
// ServerResponse is embedded in each Do response and
|
||||
// provides the HTTP status code and header sent by the server.
|
||||
type ServerResponse struct {
|
||||
// HTTPStatusCode is the server's response status code.
|
||||
// When using a resource method's Do call, this will always be in the 2xx range.
|
||||
// HTTPStatusCode is the server's response status code. When using a
|
||||
// resource method's Do call, this will always be in the 2xx range.
|
||||
HTTPStatusCode int
|
||||
// Header contains the response header fields from the server.
|
||||
Header http.Header
|
||||
}
|
||||
|
||||
const (
|
||||
// Version defines the gax version being used. This is typically sent
|
||||
// in an HTTP header to services.
|
||||
Version = "0.5"
|
||||
|
||||
// UserAgent is the header string used to identify this package.
|
||||
UserAgent = "google-api-go-client/" + Version
|
||||
|
||||
// The default chunk size to use for resumable uploads if not specified by the user.
|
||||
// DefaultUploadChunkSize is the default chunk size to use for resumable
|
||||
// uploads if not specified by the user.
|
||||
DefaultUploadChunkSize = 8 * 1024 * 1024
|
||||
|
||||
// The minimum chunk size that can be used for resumable uploads. All
|
||||
// user-specified chunk sizes must be multiple of this value.
|
||||
// MinUploadChunkSize is the minimum chunk size that can be used for
|
||||
// resumable uploads. All user-specified chunk sizes must be multiple of
|
||||
// this value.
|
||||
MinUploadChunkSize = 256 * 1024
|
||||
)
|
||||
|
||||
|
@ -161,9 +165,13 @@ func CheckMediaResponse(res *http.Response) error {
|
|||
}
|
||||
}
|
||||
|
||||
// MarshalStyle defines whether to marshal JSON with a {"data": ...} wrapper.
|
||||
type MarshalStyle bool
|
||||
|
||||
// WithDataWrapper marshals JSON with a {"data": ...} wrapper.
|
||||
var WithDataWrapper = MarshalStyle(true)
|
||||
|
||||
// WithoutDataWrapper marshals JSON without a {"data": ...} wrapper.
|
||||
var WithoutDataWrapper = MarshalStyle(false)
|
||||
|
||||
func (wrap MarshalStyle) JSONReader(v interface{}) (io.Reader, error) {
|
||||
|
@ -212,6 +220,7 @@ func (w countingWriter) Write(p []byte) (int, error) {
|
|||
// The remaining usable pieces of resumable uploads is exposed in each auto-generated API.
|
||||
type ProgressUpdater func(current, total int64)
|
||||
|
||||
// MediaOption defines the interface for setting media options.
|
||||
type MediaOption interface {
|
||||
setOptions(o *MediaOptions)
|
||||
}
|
||||
|
@ -268,6 +277,11 @@ func ProcessMediaOptions(opts []MediaOption) *MediaOptions {
|
|||
return mo
|
||||
}
|
||||
|
||||
// ResolveRelative resolves relatives such as "http://www.golang.org/" and
|
||||
// "topics/myproject/mytopic" into a single string, such as
|
||||
// "http://www.golang.org/topics/myproject/mytopic". It strips all parent
|
||||
// references (e.g. ../..) as well as anything after the host
|
||||
// (e.g. /bar/gaz gets stripped out of foo.com/bar/gaz).
|
||||
func ResolveRelative(basestr, relstr string) string {
|
||||
u, _ := url.Parse(basestr)
|
||||
afterColonPath := ""
|
||||
|
|
|
@ -120,33 +120,33 @@ func quotedList(n int, fn func(dst []byte, i int) []byte) ([]byte, error) {
|
|||
return dst, nil
|
||||
}
|
||||
|
||||
func (s Int64s) MarshalJSON() ([]byte, error) {
|
||||
return quotedList(len(s), func(dst []byte, i int) []byte {
|
||||
return strconv.AppendInt(dst, s[i], 10)
|
||||
func (q Int64s) MarshalJSON() ([]byte, error) {
|
||||
return quotedList(len(q), func(dst []byte, i int) []byte {
|
||||
return strconv.AppendInt(dst, q[i], 10)
|
||||
})
|
||||
}
|
||||
|
||||
func (s Int32s) MarshalJSON() ([]byte, error) {
|
||||
return quotedList(len(s), func(dst []byte, i int) []byte {
|
||||
return strconv.AppendInt(dst, int64(s[i]), 10)
|
||||
func (q Int32s) MarshalJSON() ([]byte, error) {
|
||||
return quotedList(len(q), func(dst []byte, i int) []byte {
|
||||
return strconv.AppendInt(dst, int64(q[i]), 10)
|
||||
})
|
||||
}
|
||||
|
||||
func (s Uint64s) MarshalJSON() ([]byte, error) {
|
||||
return quotedList(len(s), func(dst []byte, i int) []byte {
|
||||
return strconv.AppendUint(dst, s[i], 10)
|
||||
func (q Uint64s) MarshalJSON() ([]byte, error) {
|
||||
return quotedList(len(q), func(dst []byte, i int) []byte {
|
||||
return strconv.AppendUint(dst, q[i], 10)
|
||||
})
|
||||
}
|
||||
|
||||
func (s Uint32s) MarshalJSON() ([]byte, error) {
|
||||
return quotedList(len(s), func(dst []byte, i int) []byte {
|
||||
return strconv.AppendUint(dst, uint64(s[i]), 10)
|
||||
func (q Uint32s) MarshalJSON() ([]byte, error) {
|
||||
return quotedList(len(q), func(dst []byte, i int) []byte {
|
||||
return strconv.AppendUint(dst, uint64(q[i]), 10)
|
||||
})
|
||||
}
|
||||
|
||||
func (s Float64s) MarshalJSON() ([]byte, error) {
|
||||
return quotedList(len(s), func(dst []byte, i int) []byte {
|
||||
return strconv.AppendFloat(dst, s[i], 'g', -1, 64)
|
||||
func (q Float64s) MarshalJSON() ([]byte, error) {
|
||||
return quotedList(len(q), func(dst []byte, i int) []byte {
|
||||
return strconv.AppendFloat(dst, q[i], 'g', -1, 64)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
@ -7,8 +7,6 @@ go_library(
|
|||
importpath = "google.golang.org/api/logging/v2beta1",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//vendor/golang.org/x/net/context:go_default_library",
|
||||
"//vendor/golang.org/x/net/context/ctxhttp:go_default_library",
|
||||
"//vendor/google.golang.org/api/gensupport:go_default_library",
|
||||
"//vendor/google.golang.org/api/googleapi:go_default_library",
|
||||
],
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
"baseUrl": "https://logging.googleapis.com/",
|
||||
"batchPath": "batch",
|
||||
"canonicalName": "Logging",
|
||||
"description": "Writes log entries and manages your Stackdriver Logging configuration.",
|
||||
"description": "Writes log entries and manages your Logging configuration.",
|
||||
"discoveryVersion": "v1",
|
||||
"documentationLink": "https://cloud.google.com/logging/docs/",
|
||||
"fullyEncodeReservedExpansion": true,
|
||||
|
@ -116,83 +116,10 @@
|
|||
},
|
||||
"protocol": "rest",
|
||||
"resources": {
|
||||
"billingAccounts": {
|
||||
"resources": {
|
||||
"logs": {
|
||||
"methods": {
|
||||
"delete": {
|
||||
"description": "Deletes all the log entries in a log. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be deleted.",
|
||||
"flatPath": "v2beta1/billingAccounts/{billingAccountsId}/logs/{logsId}",
|
||||
"httpMethod": "DELETE",
|
||||
"id": "logging.billingAccounts.logs.delete",
|
||||
"parameterOrder": [
|
||||
"logName"
|
||||
],
|
||||
"parameters": {
|
||||
"logName": {
|
||||
"description": "Required. The resource name of the log to delete:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/[ORGANIZATION_ID]/logs/[LOG_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]\"\n\"folders/[FOLDER_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded. For example, \"projects/my-project-id/logs/syslog\", \"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity\". For more information about log names, see LogEntry.",
|
||||
"location": "path",
|
||||
"pattern": "^billingAccounts/[^/]+/logs/[^/]+$",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v2beta1/{+logName}",
|
||||
"response": {
|
||||
"$ref": "Empty"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/logging.admin"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"description": "Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.",
|
||||
"flatPath": "v2beta1/billingAccounts/{billingAccountsId}/logs",
|
||||
"httpMethod": "GET",
|
||||
"id": "logging.billingAccounts.logs.list",
|
||||
"parameterOrder": [
|
||||
"parent"
|
||||
],
|
||||
"parameters": {
|
||||
"pageSize": {
|
||||
"description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.",
|
||||
"format": "int32",
|
||||
"location": "query",
|
||||
"type": "integer"
|
||||
},
|
||||
"pageToken": {
|
||||
"description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"parent": {
|
||||
"description": "Required. The resource name that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\n",
|
||||
"location": "path",
|
||||
"pattern": "^billingAccounts/[^/]+$",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v2beta1/{+parent}/logs",
|
||||
"response": {
|
||||
"$ref": "ListLogsResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/cloud-platform.read-only",
|
||||
"https://www.googleapis.com/auth/logging.admin",
|
||||
"https://www.googleapis.com/auth/logging.read"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"entries": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"description": "Lists log entries. Use this method to retrieve log entries from Stackdriver Logging. For ways to export log entries, see Exporting Logs.",
|
||||
"description": "Lists log entries. Use this method to retrieve log entries from Logging. For ways to export log entries, see Exporting Logs.",
|
||||
"flatPath": "v2beta1/entries:list",
|
||||
"httpMethod": "POST",
|
||||
"id": "logging.entries.list",
|
||||
|
@ -213,7 +140,7 @@
|
|||
]
|
||||
},
|
||||
"write": {
|
||||
"description": "Writes log entries to Stackdriver Logging. This API method is the only way to send log entries to Stackdriver Logging. This method is used, directly or indirectly, by the Stackdriver Logging agent (fluentd) and all logging libraries configured to use Stackdriver Logging. A single request may contain log entries for a maximum of 1000 different resources (projects, organizations, billing accounts or folders)",
|
||||
"description": "Writes log entries to Logging. This API method is the only way to send log entries to Logging. This method is used, directly or indirectly, by the Logging agent (fluentd) and all logging libraries configured to use Logging. A single request may contain log entries for a maximum of 1000 different resources (projects, organizations, billing accounts or folders)",
|
||||
"flatPath": "v2beta1/entries:write",
|
||||
"httpMethod": "POST",
|
||||
"id": "logging.entries.write",
|
||||
|
@ -237,7 +164,7 @@
|
|||
"monitoredResourceDescriptors": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"description": "Lists the descriptors for monitored resource types used by Stackdriver Logging.",
|
||||
"description": "Lists the descriptors for monitored resource types used by Logging.",
|
||||
"flatPath": "v2beta1/monitoredResourceDescriptors",
|
||||
"httpMethod": "GET",
|
||||
"id": "logging.monitoredResourceDescriptors.list",
|
||||
|
@ -268,150 +195,8 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"organizations": {
|
||||
"resources": {
|
||||
"logs": {
|
||||
"methods": {
|
||||
"delete": {
|
||||
"description": "Deletes all the log entries in a log. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be deleted.",
|
||||
"flatPath": "v2beta1/organizations/{organizationsId}/logs/{logsId}",
|
||||
"httpMethod": "DELETE",
|
||||
"id": "logging.organizations.logs.delete",
|
||||
"parameterOrder": [
|
||||
"logName"
|
||||
],
|
||||
"parameters": {
|
||||
"logName": {
|
||||
"description": "Required. The resource name of the log to delete:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/[ORGANIZATION_ID]/logs/[LOG_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]\"\n\"folders/[FOLDER_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded. For example, \"projects/my-project-id/logs/syslog\", \"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity\". For more information about log names, see LogEntry.",
|
||||
"location": "path",
|
||||
"pattern": "^organizations/[^/]+/logs/[^/]+$",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v2beta1/{+logName}",
|
||||
"response": {
|
||||
"$ref": "Empty"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/logging.admin"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"description": "Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.",
|
||||
"flatPath": "v2beta1/organizations/{organizationsId}/logs",
|
||||
"httpMethod": "GET",
|
||||
"id": "logging.organizations.logs.list",
|
||||
"parameterOrder": [
|
||||
"parent"
|
||||
],
|
||||
"parameters": {
|
||||
"pageSize": {
|
||||
"description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.",
|
||||
"format": "int32",
|
||||
"location": "query",
|
||||
"type": "integer"
|
||||
},
|
||||
"pageToken": {
|
||||
"description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"parent": {
|
||||
"description": "Required. The resource name that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\n",
|
||||
"location": "path",
|
||||
"pattern": "^organizations/[^/]+$",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v2beta1/{+parent}/logs",
|
||||
"response": {
|
||||
"$ref": "ListLogsResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/cloud-platform.read-only",
|
||||
"https://www.googleapis.com/auth/logging.admin",
|
||||
"https://www.googleapis.com/auth/logging.read"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"projects": {
|
||||
"resources": {
|
||||
"logs": {
|
||||
"methods": {
|
||||
"delete": {
|
||||
"description": "Deletes all the log entries in a log. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be deleted.",
|
||||
"flatPath": "v2beta1/projects/{projectsId}/logs/{logsId}",
|
||||
"httpMethod": "DELETE",
|
||||
"id": "logging.projects.logs.delete",
|
||||
"parameterOrder": [
|
||||
"logName"
|
||||
],
|
||||
"parameters": {
|
||||
"logName": {
|
||||
"description": "Required. The resource name of the log to delete:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/[ORGANIZATION_ID]/logs/[LOG_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]\"\n\"folders/[FOLDER_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded. For example, \"projects/my-project-id/logs/syslog\", \"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity\". For more information about log names, see LogEntry.",
|
||||
"location": "path",
|
||||
"pattern": "^projects/[^/]+/logs/[^/]+$",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v2beta1/{+logName}",
|
||||
"response": {
|
||||
"$ref": "Empty"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/logging.admin"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"description": "Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.",
|
||||
"flatPath": "v2beta1/projects/{projectsId}/logs",
|
||||
"httpMethod": "GET",
|
||||
"id": "logging.projects.logs.list",
|
||||
"parameterOrder": [
|
||||
"parent"
|
||||
],
|
||||
"parameters": {
|
||||
"pageSize": {
|
||||
"description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.",
|
||||
"format": "int32",
|
||||
"location": "query",
|
||||
"type": "integer"
|
||||
},
|
||||
"pageToken": {
|
||||
"description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"parent": {
|
||||
"description": "Required. The resource name that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\n",
|
||||
"location": "path",
|
||||
"pattern": "^projects/[^/]+$",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v2beta1/{+parent}/logs",
|
||||
"response": {
|
||||
"$ref": "ListLogsResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/cloud-platform.read-only",
|
||||
"https://www.googleapis.com/auth/logging.admin",
|
||||
"https://www.googleapis.com/auth/logging.read"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"metrics": {
|
||||
"methods": {
|
||||
"create": {
|
||||
|
@ -589,7 +374,7 @@
|
|||
"type": "string"
|
||||
},
|
||||
"uniqueWriterIdentity": {
|
||||
"description": "Optional. Determines the kind of IAM identity returned as writer_identity in the new sink. If this value is omitted or set to false, and if the sink's parent is a project, then the value returned as writer_identity is the same group or service account used by Stackdriver Logging before the addition of writer identities to this API. The sink's destination must be in the same project as the sink itself.If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of writer_identity will be a unique service account used only for exports from the new sink. For more information, see writer_identity in LogSink.",
|
||||
"description": "Optional. Determines the kind of IAM identity returned as writer_identity in the new sink. If this value is omitted or set to false, and if the sink's parent is a project, then the value returned as writer_identity is the same group or service account used by Logging before the addition of writer identities to this API. The sink's destination must be in the same project as the sink itself.If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of writer_identity will be a unique service account used only for exports from the new sink. For more information, see writer_identity in LogSink.",
|
||||
"location": "query",
|
||||
"type": "boolean"
|
||||
}
|
||||
|
@ -721,7 +506,7 @@
|
|||
"type": "boolean"
|
||||
},
|
||||
"updateMask": {
|
||||
"description": "Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes: destination,filter,includeChildren At some point in the future, behavior will be removed and specifying an empty updateMask will be an error.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmaskExample: updateMask=filter.",
|
||||
"description": "Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes: destination,filter,includeChildren At some point in the future, behavior will be removed and specifying an empty updateMask will be an error.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=filter.",
|
||||
"format": "google-fieldmask",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
|
@ -744,7 +529,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"revision": "20180604",
|
||||
"revision": "20181020",
|
||||
"rootUrl": "https://logging.googleapis.com/",
|
||||
"schemas": {
|
||||
"BucketOptions": {
|
||||
|
@ -1006,24 +791,6 @@
|
|||
},
|
||||
"type": "object"
|
||||
},
|
||||
"ListLogsResponse": {
|
||||
"description": "Result returned from ListLogs.",
|
||||
"id": "ListLogsResponse",
|
||||
"properties": {
|
||||
"logNames": {
|
||||
"description": "A list of log names. For example, \"projects/my-project/syslog\" or \"organizations/123/cloudresourcemanager.googleapis.com%2Factivity\".",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"nextPageToken": {
|
||||
"description": "If there might be more results than those appearing in this response, then nextPageToken is included. To get the next set of results, call this method again using the value of nextPageToken as pageToken.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"ListMonitoredResourceDescriptorsResponse": {
|
||||
"description": "Result returned from ListMonitoredResourceDescriptors.",
|
||||
"id": "ListMonitoredResourceDescriptorsResponse",
|
||||
|
@ -1069,7 +836,7 @@
|
|||
"description": "Optional. Information about the HTTP request associated with this log entry, if applicable."
|
||||
},
|
||||
"insertId": {
|
||||
"description": "Optional. A unique identifier for the log entry. If you provide a value, then Stackdriver Logging considers other log entries in the same project, with the same timestamp, and with the same insert_id to be duplicates which can be removed. If omitted in new log entries, then Stackdriver Logging assigns its own unique identifier. The insert_id is also used to order log entries that have the same timestamp value.",
|
||||
"description": "Optional. A unique identifier for the log entry. If you provide a value, then Logging considers other log entries in the same project, with the same timestamp, and with the same insert_id to be duplicates which can be removed. If omitted in new log entries, then Logging assigns its own unique identifier. The insert_id is also used to order log entries that have the same timestamp value.",
|
||||
"type": "string"
|
||||
},
|
||||
"jsonPayload": {
|
||||
|
@ -1108,7 +875,7 @@
|
|||
"type": "object"
|
||||
},
|
||||
"receiveTimestamp": {
|
||||
"description": "Output only. The time the log entry was received by Stackdriver Logging.",
|
||||
"description": "Output only. The time the log entry was received by Logging.",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
},
|
||||
|
@ -1147,7 +914,7 @@
|
|||
"description": "Optional. Source code location information associated with the log entry, if any."
|
||||
},
|
||||
"spanId": {
|
||||
"description": "Optional. The span ID within the trace associated with the log entry. For Stackdriver Trace spans, this is the same format that the Stackdriver Trace API v2 uses: a 16-character hexadecimal encoding of an 8-byte array, such as \u003ccode\u003e\"000000000000004a\"\u003c/code\u003e.",
|
||||
"description": "Optional. The span ID within the trace associated with the log entry. For Trace spans, this is the same format that the Trace API v2 uses: a 16-character hexadecimal encoding of an 8-byte array, such as \u003ccode\u003e\"000000000000004a\"\u003c/code\u003e.",
|
||||
"type": "string"
|
||||
},
|
||||
"textPayload": {
|
||||
|
@ -1155,13 +922,17 @@
|
|||
"type": "string"
|
||||
},
|
||||
"timestamp": {
|
||||
"description": "Optional. The time the event described by the log entry occurred. This time is used to compute the log entry's age and to enforce the logs retention period. If this field is omitted in a new log entry, then Stackdriver Logging assigns it the current time. Timestamps have nanosecond accuracy, but trailing zeros in the fractional seconds might be omitted when the timestamp is displayed.Incoming log entries should have timestamps that are no more than the logs retention period in the past, and no more than 24 hours in the future. Log entries outside those time boundaries will not be available when calling entries.list, but those log entries can still be exported with LogSinks.",
|
||||
"description": "Optional. The time the event described by the log entry occurred. This time is used to compute the log entry's age and to enforce the logs retention period. If this field is omitted in a new log entry, then Logging assigns it the current time. Timestamps have nanosecond accuracy, but trailing zeros in the fractional seconds might be omitted when the timestamp is displayed.Incoming log entries should have timestamps that are no more than the logs retention period in the past, and no more than 24 hours in the future. Log entries outside those time boundaries will not be available when calling entries.list, but those log entries can still be exported with LogSinks.",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
},
|
||||
"trace": {
|
||||
"description": "Optional. Resource name of the trace associated with the log entry, if any. If it contains a relative resource name, the name is assumed to be relative to //tracing.googleapis.com. Example: projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824",
|
||||
"type": "string"
|
||||
},
|
||||
"traceSampled": {
|
||||
"description": "Optional. The sampling decision of the trace associated with the log entry. True means that the trace resource name in the trace field was sampled for storage in a trace backend. False means that the trace was not sampled for storage when this log entry was written, or the sampling decision was unknown at the time. A non-sampled trace value is still useful as a request correlation identifier. The default is False.",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
|
@ -1264,7 +1035,7 @@
|
|||
"description": "Optional. The bucket_options are required when the logs-based metric is using a DISTRIBUTION value type and it describes the bucket boundaries used to create a histogram of the extracted values."
|
||||
},
|
||||
"description": {
|
||||
"description": "Optional. A description of this metric, which is used in documentation.",
|
||||
"description": "Optional. A description of this metric, which is used in documentation. The maximum length of the description is 8000 characters.",
|
||||
"type": "string"
|
||||
},
|
||||
"filter": {
|
||||
|
@ -1297,8 +1068,8 @@
|
|||
"V1"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Stackdriver Logging API v2.",
|
||||
"Stackdriver Logging API v1."
|
||||
"Logging API v2.",
|
||||
"Logging API v1."
|
||||
],
|
||||
"type": "string"
|
||||
}
|
||||
|
@ -1313,11 +1084,6 @@
|
|||
"description": "Required. The export destination:\n\"storage.googleapis.com/[GCS_BUCKET]\"\n\"bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]\"\n\"pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]\"\nThe sink's writer_identity, set when the sink is created, must have permission to write to the destination or else the log entries are not exported. For more information, see Exporting Logs With Sinks.",
|
||||
"type": "string"
|
||||
},
|
||||
"endTime": {
|
||||
"description": "Deprecated. This field is ignored when creating or updating sinks.",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
},
|
||||
"filter": {
|
||||
"description": "Optional. An advanced logs filter. The only exported log entries are those that are in the resource owning the sink and that match the filter. For example:\nlogName=\"projects/[PROJECT_ID]/logs/[LOG_ID]\" AND severity\u003e=ERROR\n",
|
||||
"type": "string"
|
||||
|
@ -1344,13 +1110,8 @@
|
|||
],
|
||||
"type": "string"
|
||||
},
|
||||
"startTime": {
|
||||
"description": "Deprecated. This field is ignored when creating or updating sinks.",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
},
|
||||
"writerIdentity": {
|
||||
"description": "Output only. An IAM identity\u0026mdash;a service account or group\u0026mdash;under which Stackdriver Logging writes the exported log entries to the sink's destination. This field is set by sinks.create and sinks.update, based on the setting of unique_writer_identity in those methods.Until you grant this identity write-access to the destination, log entry exports from this sink will fail. For more information, see Granting access for a resource. Consult the destination service's documentation to determine the appropriate IAM roles to assign to the identity.",
|
||||
"description": "Output only. An IAM identity\u0026mdash;a service account or group\u0026mdash;under which Logging writes the exported log entries to the sink's destination. This field is set by sinks.create and sinks.update, based on the setting of unique_writer_identity in those methods.Until you grant this identity write-access to the destination, log entry exports from this sink will fail. For more information, see Granting access for a resource. Consult the destination service's documentation to determine the appropriate IAM roles to assign to the identity.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
|
@ -1375,6 +1136,10 @@
|
|||
},
|
||||
"type": "array"
|
||||
},
|
||||
"metadata": {
|
||||
"$ref": "MetricDescriptorMetadata",
|
||||
"description": "Optional. Metadata which can be used to guide usage of the metric."
|
||||
},
|
||||
"metricKind": {
|
||||
"description": "Whether the metric records instantaneous values, changes to a value, etc. Some combinations of metric_kind and value_type might not be supported.",
|
||||
"enum": [
|
||||
|
@ -1396,7 +1161,7 @@
|
|||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"description": "The metric type, including its DNS name prefix. The type is not URL-encoded. All user-defined custom metric types have the DNS name custom.googleapis.com. Metric types should use a natural hierarchical grouping. For example:\n\"custom.googleapis.com/invoice/paid/amount\"\n\"appengine.googleapis.com/http/server/response_latencies\"\n",
|
||||
"description": "The metric type, including its DNS name prefix. The type is not URL-encoded. All user-defined metric types have the DNS name custom.googleapis.com or external.googleapis.com. Metric types should use a natural hierarchical grouping. For example:\n\"custom.googleapis.com/invoice/paid/amount\"\n\"external.googleapis.com/prometheus/up\"\n\"appengine.googleapis.com/http/server/response_latencies\"\n",
|
||||
"type": "string"
|
||||
},
|
||||
"unit": {
|
||||
|
@ -1428,6 +1193,43 @@
|
|||
},
|
||||
"type": "object"
|
||||
},
|
||||
"MetricDescriptorMetadata": {
|
||||
"description": "Additional annotations that can be used to guide the usage of a metric.",
|
||||
"id": "MetricDescriptorMetadata",
|
||||
"properties": {
|
||||
"ingestDelay": {
|
||||
"description": "The delay of data points caused by ingestion. Data points older than this age are guaranteed to be ingested and available to be read, excluding data loss due to errors.",
|
||||
"format": "google-duration",
|
||||
"type": "string"
|
||||
},
|
||||
"launchStage": {
|
||||
"description": "The launch stage of the metric definition.",
|
||||
"enum": [
|
||||
"LAUNCH_STAGE_UNSPECIFIED",
|
||||
"EARLY_ACCESS",
|
||||
"ALPHA",
|
||||
"BETA",
|
||||
"GA",
|
||||
"DEPRECATED"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Do not use this default value.",
|
||||
"Early Access features are limited to a closed group of testers. To use these features, you must sign up in advance and sign a Trusted Tester agreement (which includes confidentiality provisions). These features may be unstable, changed in backward-incompatible ways, and are not guaranteed to be released.",
|
||||
"Alpha is a limited availability test for releases before they are cleared for widespread use. By Alpha, all significant design issues are resolved and we are in the process of verifying functionality. Alpha customers need to apply for access, agree to applicable terms, and have their projects whitelisted. Alpha releases don’t have to be feature complete, no SLAs are provided, and there are no technical support obligations, but they will be far enough along that customers can actually use them in test environments or for limited-use tests -- just like they would in normal production cases.",
|
||||
"Beta is the point at which we are ready to open a release for any customer to use. There are no SLA or technical support obligations in a Beta release. Products will be complete from a feature perspective, but may have some open outstanding issues. Beta releases are suitable for limited production use cases.",
|
||||
"GA features are open to all developers and are considered stable and fully qualified for production use.",
|
||||
"Deprecated features are scheduled to be shut down and removed. For more information, see the “Deprecation Policy” section of our Terms of Service (https://cloud.google.com/terms/) and the Google Cloud Platform Subject to the Deprecation Policy (https://cloud.google.com/terms/deprecation) documentation."
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"samplePeriod": {
|
||||
"description": "The sampling period of metric data points. For metrics which are written periodically, consecutive data points are stored at this time interval, excluding data loss due to errors. Metrics with a higher granularity have a smaller sampling period.",
|
||||
"format": "google-duration",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"MonitoredResource": {
|
||||
"description": "An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource's schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for \"gce_instance\" has labels \"instance_id\" and \"zone\":\n{ \"type\": \"gce_instance\",\n \"labels\": { \"instance_id\": \"12345678901234\",\n \"zone\": \"us-central1-a\" }}\n",
|
||||
"id": "MonitoredResource",
|
||||
|
@ -1477,7 +1279,7 @@
|
|||
"type": "object"
|
||||
},
|
||||
"MonitoredResourceMetadata": {
|
||||
"description": "Auxiliary metadata for a MonitoredResource object. MonitoredResource objects contain the minimum set of information to uniquely identify a monitored resource instance. There is some other useful auxiliary metadata. Google Stackdriver Monitoring \u0026 Logging uses an ingestion pipeline to extract metadata for cloud resources of all types , and stores the metadata in this message.",
|
||||
"description": "Auxiliary metadata for a MonitoredResource object. MonitoredResource objects contain the minimum set of information to uniquely identify a monitored resource instance. There is some other useful auxiliary metadata. Monitoring and Logging use an ingestion pipeline to extract metadata for cloud resources of all types, and store the metadata in this message.",
|
||||
"id": "MonitoredResourceMetadata",
|
||||
"properties": {
|
||||
"systemLabels": {
|
||||
|
@ -1485,7 +1287,7 @@
|
|||
"description": "Properties of the object.",
|
||||
"type": "any"
|
||||
},
|
||||
"description": "Output only. Values for predefined system metadata labels. System labels are a kind of metadata extracted by Google Stackdriver. Stackdriver determines what system labels are useful and how to obtain their values. Some examples: \"machine_image\", \"vpc\", \"subnet_id\", \"security_group\", \"name\", etc. System label values can be only strings, Boolean values, or a list of strings. For example:\n{ \"name\": \"my-test-instance\",\n \"security_group\": [\"a\", \"b\", \"c\"],\n \"spot_instance\": false }\n",
|
||||
"description": "Output only. Values for predefined system metadata labels. System labels are a kind of metadata extracted by Google, including \"machine_image\", \"vpc\", \"subnet_id\", \"security_group\", \"name\", etc. System label values can be only strings, Boolean values, or a list of strings. For example:\n{ \"name\": \"my-test-instance\",\n \"security_group\": [\"a\", \"b\", \"c\"],\n \"spot_instance\": false }\n",
|
||||
"type": "object"
|
||||
},
|
||||
"userLabels": {
|
||||
|
@ -1629,6 +1431,10 @@
|
|||
"description": "Stackdriver Trace identifier for this request.",
|
||||
"type": "string"
|
||||
},
|
||||
"traceSampled": {
|
||||
"description": "If true, the value in the 'trace_id' field was sampled for storage in a trace backend.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"urlMapEntry": {
|
||||
"description": "File or class that handled the request.",
|
||||
"type": "string"
|
||||
|
@ -1692,7 +1498,7 @@
|
|||
"type": "boolean"
|
||||
},
|
||||
"entries": {
|
||||
"description": "Required. The log entries to send to Stackdriver Logging. The order of log entries in this list does not matter. Values supplied in this method's log_name, resource, and labels fields are copied into those log entries in this list that do not include values for their corresponding fields. For more information, see the LogEntry type.If the timestamp or insert_id fields are missing in log entries, then this method supplies the current time or a unique identifier, respectively. The supplied values are chosen so that, among the log entries that did not supply their own values, the entries earlier in the list will sort before the entries later in the list. See the entries.list method.Log entries with timestamps that are more than the logs retention period in the past or more than 24 hours in the future will not be available when calling entries.list. However, those log entries can still be exported with LogSinks.To improve throughput and to avoid exceeding the quota limit for calls to entries.write, you should try to include several log entries in this list, rather than calling this method for each individual log entry.",
|
||||
"description": "Required. The log entries to send to Logging. The order of log entries in this list does not matter. Values supplied in this method's log_name, resource, and labels fields are copied into those log entries in this list that do not include values for their corresponding fields. For more information, see the LogEntry type.If the timestamp or insert_id fields are missing in log entries, then this method supplies the current time or a unique identifier, respectively. The supplied values are chosen so that, among the log entries that did not supply their own values, the entries earlier in the list will sort before the entries later in the list. See the entries.list method.Log entries with timestamps that are more than the logs retention period in the past or more than 24 hours in the future will not be available when calling entries.list. However, those log entries can still be exported with LogSinks.To improve throughput and to avoid exceeding the quota limit for calls to entries.write, you should try to include several log entries in this list, rather than calling this method for each individual log entry.",
|
||||
"items": {
|
||||
"$ref": "LogEntry"
|
||||
},
|
||||
|
@ -1706,7 +1512,7 @@
|
|||
"type": "object"
|
||||
},
|
||||
"logName": {
|
||||
"description": "Optional. A default log resource name that is assigned to all log entries in entries that do not specify a value for log_name:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/[ORGANIZATION_ID]/logs/[LOG_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]\"\n\"folders/[FOLDER_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded. For example, \"projects/my-project-id/logs/syslog\" or \"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity\". For more information about log names, see LogEntry.",
|
||||
"description": "Optional. A default log resource name that is assigned to all log entries in entries that do not specify a value for log_name:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/[ORGANIZATION_ID]/logs/[LOG_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]\"\n\"folders/[FOLDER_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded. For example:\n\"projects/my-project-id/logs/syslog\"\n\"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity\"\nThe permission \u003ccode\u003elogging.logEntries.create\u003c/code\u003e is needed on each project, organization, billing account, or folder that is receiving new log entries, whether the resource is specified in \u003ccode\u003elogName\u003c/code\u003e or in an individual log entry.",
|
||||
"type": "string"
|
||||
},
|
||||
"partialSuccess": {
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -7,8 +7,6 @@ go_library(
|
|||
importpath = "google.golang.org/api/monitoring/v3",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//vendor/golang.org/x/net/context:go_default_library",
|
||||
"//vendor/golang.org/x/net/context/ctxhttp:go_default_library",
|
||||
"//vendor/google.golang.org/api/gensupport:go_default_library",
|
||||
"//vendor/google.golang.org/api/googleapi:go_default_library",
|
||||
],
|
||||
|
|
|
@ -837,7 +837,7 @@
|
|||
"notificationChannels": {
|
||||
"methods": {
|
||||
"create": {
|
||||
"description": "Creates a new notification channel, representing a single notification endpoint such as an email address, SMS number, or pagerduty service.",
|
||||
"description": "Creates a new notification channel, representing a single notification endpoint such as an email address, SMS number, or PagerDuty service.",
|
||||
"flatPath": "v3/projects/{projectsId}/notificationChannels",
|
||||
"httpMethod": "POST",
|
||||
"id": "monitoring.projects.notificationChannels.create",
|
||||
|
@ -1452,7 +1452,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"revision": "20180603",
|
||||
"revision": "20181211",
|
||||
"rootUrl": "https://monitoring.googleapis.com/",
|
||||
"schemas": {
|
||||
"Aggregation": {
|
||||
|
@ -1801,11 +1801,11 @@
|
|||
"type": "object"
|
||||
},
|
||||
"ContentMatcher": {
|
||||
"description": "Used to perform string matching. Currently, this matches on the exact content. In the future, it can be expanded to allow for regular expressions and more complex matching.",
|
||||
"description": "Used to perform string matching. It allows substring and regular expressions, together with their negations.",
|
||||
"id": "ContentMatcher",
|
||||
"properties": {
|
||||
"content": {
|
||||
"description": "String content to match (max 1024 bytes)",
|
||||
"description": "String or regex content to match (max 1024 bytes)",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
|
@ -1852,7 +1852,7 @@
|
|||
"id": "CreateTimeSeriesRequest",
|
||||
"properties": {
|
||||
"timeSeries": {
|
||||
"description": "The new data to be added to a list of time series. Adds at most one data point to each of several time series. The new data point must be more recent than any other point in its time series. Each TimeSeries value must fully specify a unique time series by supplying all label values for the metric and the monitored resource.",
|
||||
"description": "The new data to be added to a list of time series. Adds at most one data point to each of several time series. The new data point must be more recent than any other point in its time series. Each TimeSeries value must fully specify a unique time series by supplying all label values for the metric and the monitored resource.The maximum number of TimeSeries objects per Create request is 200.",
|
||||
"items": {
|
||||
"$ref": "TimeSeries"
|
||||
},
|
||||
|
@ -1921,6 +1921,20 @@
|
|||
},
|
||||
"type": "object"
|
||||
},
|
||||
"DroppedLabels": {
|
||||
"description": "A set of (label, value) pairs which were dropped during aggregation, attached to google.api.Distribution.Exemplars in google.api.Distribution values during aggregation.These values are used in combination with the label values that remain on the aggregated Distribution timeseries to construct the full label set for the exemplar values. The resulting full label set may be used to identify the specific task/job/instance (for example) which may be contributing to a long-tail, while allowing the storage savings of only storing aggregated distribution values for a large group.Note that there are no guarantees on ordering of the labels from exemplar-to-exemplar and from distribution-to-distribution in the same stream, and there may be duplicates. It is up to clients to resolve any ambiguities.",
|
||||
"id": "DroppedLabels",
|
||||
"properties": {
|
||||
"label": {
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "Map from label to its value, for all labels dropped in any aggregation.",
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Empty": {
|
||||
"description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance:\nservice Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n}\nThe JSON representation for Empty is empty JSON object {}.",
|
||||
"id": "Empty",
|
||||
|
@ -2189,27 +2203,41 @@
|
|||
"type": "object"
|
||||
},
|
||||
"InternalChecker": {
|
||||
"description": "Nimbus InternalCheckers.",
|
||||
"description": "An internal checker allows uptime checks to run on private/internal GCP resources.",
|
||||
"id": "InternalChecker",
|
||||
"properties": {
|
||||
"checkerId": {
|
||||
"description": "The checker ID.",
|
||||
"type": "string"
|
||||
},
|
||||
"displayName": {
|
||||
"description": "The checker's human-readable name.",
|
||||
"description": "The checker's human-readable name. The display name should be unique within a Stackdriver Workspace in order to make it easier to identify; however, uniqueness is not enforced.",
|
||||
"type": "string"
|
||||
},
|
||||
"gcpZone": {
|
||||
"description": "The GCP zone the uptime check should egress from. Only respected for internal uptime checks, where internal_network is specified.",
|
||||
"type": "string"
|
||||
},
|
||||
"network": {
|
||||
"description": "The internal network to perform this uptime check on.",
|
||||
"name": {
|
||||
"description": "A unique resource name for this InternalChecker. The format is:projects/[PROJECT_ID]/internalCheckers/[INTERNAL_CHECKER_ID].PROJECT_ID is the stackdriver workspace project for the uptime check config associated with the internal checker.",
|
||||
"type": "string"
|
||||
},
|
||||
"projectId": {
|
||||
"description": "The GCP project ID. Not necessarily the same as the project_id for the config.",
|
||||
"network": {
|
||||
"description": "The GCP VPC network (https://cloud.google.com/vpc/docs/vpc) where the internal resource lives (ex: \"default\").",
|
||||
"type": "string"
|
||||
},
|
||||
"peerProjectId": {
|
||||
"description": "The GCP project_id where the internal checker lives. Not necessary the same as the workspace project.",
|
||||
"type": "string"
|
||||
},
|
||||
"state": {
|
||||
"description": "The current operational state of the internal checker.",
|
||||
"enum": [
|
||||
"UNSPECIFIED",
|
||||
"CREATING",
|
||||
"RUNNING"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"An internal checker should never be in the unspecified state.",
|
||||
"The checker is being created, provisioned, and configured. A checker in this state can be returned by ListInternalCheckers or GetInternalChecker, as well as by examining the longrunning.Operation that created it.",
|
||||
"The checker is running and available for use. A checker in this state can be returned by ListInternalCheckers or GetInternalChecker as well as by examining the longrunning.Operation that created it. If a checker is being torn down, it is neither visible nor usable, so there is no \"deleting\" or \"down\" state."
|
||||
],
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
|
@ -2527,6 +2555,10 @@
|
|||
},
|
||||
"type": "array"
|
||||
},
|
||||
"metadata": {
|
||||
"$ref": "MetricDescriptorMetadata",
|
||||
"description": "Optional. Metadata which can be used to guide usage of the metric."
|
||||
},
|
||||
"metricKind": {
|
||||
"description": "Whether the metric records instantaneous values, changes to a value, etc. Some combinations of metric_kind and value_type might not be supported.",
|
||||
"enum": [
|
||||
|
@ -2548,11 +2580,11 @@
|
|||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"description": "The metric type, including its DNS name prefix. The type is not URL-encoded. All user-defined custom metric types have the DNS name custom.googleapis.com. Metric types should use a natural hierarchical grouping. For example:\n\"custom.googleapis.com/invoice/paid/amount\"\n\"appengine.googleapis.com/http/server/response_latencies\"\n",
|
||||
"description": "The metric type, including its DNS name prefix. The type is not URL-encoded. All user-defined metric types have the DNS name custom.googleapis.com or external.googleapis.com. Metric types should use a natural hierarchical grouping. For example:\n\"custom.googleapis.com/invoice/paid/amount\"\n\"external.googleapis.com/prometheus/up\"\n\"appengine.googleapis.com/http/server/response_latencies\"\n",
|
||||
"type": "string"
|
||||
},
|
||||
"unit": {
|
||||
"description": "Optional. The unit in which the metric value is reported. For example, kBy/s means kilobytes/sec, and 1 is the dimensionless unit. The supported units are a subset of The Unified Code for Units of Measure standard (http://unitsofmeasure.org/ucum.html).\u003cbr\u003e\u003cbr\u003e This field is part of the metric's documentation, but it is ignored by Stackdriver.",
|
||||
"description": "The unit in which the metric value is reported. It is only applicable if the value_type is INT64, DOUBLE, or DISTRIBUTION. The supported units are a subset of The Unified Code for Units of Measure (http://unitsofmeasure.org/ucum.html) standard:Basic units (UNIT)\nbit bit\nBy byte\ns second\nmin minute\nh hour\nd dayPrefixes (PREFIX)\nk kilo (10**3)\nM mega (10**6)\nG giga (10**9)\nT tera (10**12)\nP peta (10**15)\nE exa (10**18)\nZ zetta (10**21)\nY yotta (10**24)\nm milli (10**-3)\nu micro (10**-6)\nn nano (10**-9)\np pico (10**-12)\nf femto (10**-15)\na atto (10**-18)\nz zepto (10**-21)\ny yocto (10**-24)\nKi kibi (2**10)\nMi mebi (2**20)\nGi gibi (2**30)\nTi tebi (2**40)GrammarThe grammar also includes these connectors:\n/ division (as an infix operator, e.g. 1/s).\n. multiplication (as an infix operator, e.g. GBy.d)The grammar for a unit is as follows:\nExpression = Component { \".\" Component } { \"/\" Component } ;\n\nComponent = ( [ PREFIX ] UNIT | \"%\" ) [ Annotation ]\n | Annotation\n | \"1\"\n ;\n\nAnnotation = \"{\" NAME \"}\" ;\nNotes:\nAnnotation is just a comment if it follows a UNIT and is equivalent to 1 if it is used alone. For examples, {requests}/s == 1/s, By{transmitted}/s == By/s.\nNAME is a sequence of non-blank printable ASCII characters not containing '{' or '}'.\n1 represents dimensionless value 1, such as in 1/s.\n% represents dimensionless value 1/100, and annotates values giving a percentage.",
|
||||
"type": "string"
|
||||
},
|
||||
"valueType": {
|
||||
|
@ -2580,6 +2612,43 @@
|
|||
},
|
||||
"type": "object"
|
||||
},
|
||||
"MetricDescriptorMetadata": {
|
||||
"description": "Additional annotations that can be used to guide the usage of a metric.",
|
||||
"id": "MetricDescriptorMetadata",
|
||||
"properties": {
|
||||
"ingestDelay": {
|
||||
"description": "The delay of data points caused by ingestion. Data points older than this age are guaranteed to be ingested and available to be read, excluding data loss due to errors.",
|
||||
"format": "google-duration",
|
||||
"type": "string"
|
||||
},
|
||||
"launchStage": {
|
||||
"description": "The launch stage of the metric definition.",
|
||||
"enum": [
|
||||
"LAUNCH_STAGE_UNSPECIFIED",
|
||||
"EARLY_ACCESS",
|
||||
"ALPHA",
|
||||
"BETA",
|
||||
"GA",
|
||||
"DEPRECATED"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Do not use this default value.",
|
||||
"Early Access features are limited to a closed group of testers. To use these features, you must sign up in advance and sign a Trusted Tester agreement (which includes confidentiality provisions). These features may be unstable, changed in backward-incompatible ways, and are not guaranteed to be released.",
|
||||
"Alpha is a limited availability test for releases before they are cleared for widespread use. By Alpha, all significant design issues are resolved and we are in the process of verifying functionality. Alpha customers need to apply for access, agree to applicable terms, and have their projects whitelisted. Alpha releases don’t have to be feature complete, no SLAs are provided, and there are no technical support obligations, but they will be far enough along that customers can actually use them in test environments or for limited-use tests -- just like they would in normal production cases.",
|
||||
"Beta is the point at which we are ready to open a release for any customer to use. There are no SLA or technical support obligations in a Beta release. Products will be complete from a feature perspective, but may have some open outstanding issues. Beta releases are suitable for limited production use cases.",
|
||||
"GA features are open to all developers and are considered stable and fully qualified for production use.",
|
||||
"Deprecated features are scheduled to be shut down and removed. For more information, see the “Deprecation Policy” section of our Terms of Service (https://cloud.google.com/terms/) and the Google Cloud Platform Subject to the Deprecation Policy (https://cloud.google.com/terms/deprecation) documentation."
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"samplePeriod": {
|
||||
"description": "The sampling period of metric data points. For metrics which are written periodically, consecutive data points are stored at this time interval, excluding data loss due to errors. Metrics with a higher granularity have a smaller sampling period.",
|
||||
"format": "google-duration",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"MetricThreshold": {
|
||||
"description": "A condition type that compares a collection of time series against a threshold.",
|
||||
"id": "MetricThreshold",
|
||||
|
@ -2657,7 +2726,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.",
|
||||
"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.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
|
@ -2694,7 +2763,7 @@
|
|||
"type": "object"
|
||||
},
|
||||
"MonitoredResourceMetadata": {
|
||||
"description": "Auxiliary metadata for a MonitoredResource object. MonitoredResource objects contain the minimum set of information to uniquely identify a monitored resource instance. There is some other useful auxiliary metadata. Google Stackdriver Monitoring \u0026 Logging uses an ingestion pipeline to extract metadata for cloud resources of all types , and stores the metadata in this message.",
|
||||
"description": "Auxiliary metadata for a MonitoredResource object. MonitoredResource objects contain the minimum set of information to uniquely identify a monitored resource instance. There is some other useful auxiliary metadata. Monitoring and Logging use an ingestion pipeline to extract metadata for cloud resources of all types, and store the metadata in this message.",
|
||||
"id": "MonitoredResourceMetadata",
|
||||
"properties": {
|
||||
"systemLabels": {
|
||||
|
@ -2702,7 +2771,7 @@
|
|||
"description": "Properties of the object.",
|
||||
"type": "any"
|
||||
},
|
||||
"description": "Output only. Values for predefined system metadata labels. System labels are a kind of metadata extracted by Google Stackdriver. Stackdriver determines what system labels are useful and how to obtain their values. Some examples: \"machine_image\", \"vpc\", \"subnet_id\", \"security_group\", \"name\", etc. System label values can be only strings, Boolean values, or a list of strings. For example:\n{ \"name\": \"my-test-instance\",\n \"security_group\": [\"a\", \"b\", \"c\"],\n \"spot_instance\": false }\n",
|
||||
"description": "Output only. Values for predefined system metadata labels. System labels are a kind of metadata extracted by Google, including \"machine_image\", \"vpc\", \"subnet_id\", \"security_group\", \"name\", etc. System label values can be only strings, Boolean values, or a list of strings. For example:\n{ \"name\": \"my-test-instance\",\n \"security_group\": [\"a\", \"b\", \"c\"],\n \"spot_instance\": false }\n",
|
||||
"type": "object"
|
||||
},
|
||||
"userLabels": {
|
||||
|
@ -2813,8 +2882,8 @@
|
|||
"description": "The tiers that support this notification channel; the project service tier must be one of the supported_tiers.",
|
||||
"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/accounts/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/accounts/tiers)."
|
||||
"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)."
|
||||
],
|
||||
"items": {
|
||||
"enum": [
|
||||
|
@ -2926,6 +2995,17 @@
|
|||
},
|
||||
"type": "object"
|
||||
},
|
||||
"SpanContext": {
|
||||
"description": "The context of a span, attached to google.api.Distribution.Exemplars in google.api.Distribution values during aggregation.It contains the name of a span with format: projects/PROJECT_ID/traces/TRACE_ID/spans/SPAN_ID",
|
||||
"id": "SpanContext",
|
||||
"properties": {
|
||||
"spanName": {
|
||||
"description": "The resource name of the span in the following format:\nprojects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]\nTRACE_ID is a unique identifier for a trace within a project; it is a 32-character hexadecimal encoding of a 16-byte array.SPAN_ID is a unique identifier for a span within a trace; it is a 16-character hexadecimal encoding of an 8-byte array.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Status": {
|
||||
"description": "The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). The error model is designed to be:\nSimple to use and understand for most users\nFlexible enough to meet unexpected needsOverviewThe Status message contains three pieces of data: error code, error message, and error details. The error code should be an enum value of google.rpc.Code, but it may accept additional error codes if needed. The error message should be a developer-facing English message that helps developers understand and resolve the error. If a localized user-facing error message is needed, put the localized message in the error details or localize it in the client. The optional error details may contain arbitrary information about the error. There is a predefined set of error detail types in the package google.rpc that can be used for common error conditions.Language mappingThe Status message is the logical representation of the error model, but it is not necessarily the actual wire format. When the Status message is exposed in different client libraries and different wire protocols, it can be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error codes in C.Other usesThe error model and the Status message can be used in a variety of environments, either with or without APIs, to provide a consistent developer experience across different environments.Example uses of this error model include:\nPartial errors. If a service needs to return partial errors to the client, it may embed the Status in the normal response to indicate the partial errors.\nWorkflow errors. A typical workflow has multiple steps. Each step may have a Status message for error reporting.\nBatch operations. If a client uses batch request and batch response, the Status message should be used directly inside batch response, one for each error sub-response.\nAsynchronous operations. If an API call embeds asynchronous operation results in its response, the status of those operations should be represented directly using the Status message.\nLogging. If some API errors are stored in logs, the message Status could be used directly after any stripping needed for security/privacy reasons.",
|
||||
"id": "Status",
|
||||
|
@ -2966,7 +3046,7 @@
|
|||
"type": "object"
|
||||
},
|
||||
"TimeInterval": {
|
||||
"description": "A time interval extending just after a start time through an end time. If the start time is the same as the end time, then the interval represents a single point in time.",
|
||||
"description": "A time interval extending just after a start time through an end time. The start time must not be later than the end time. The default start time is the end time, making the startTime value technically optional. Whether this is useful depends on the MetricKind. If the start and end times are the same, the interval represents a point in time. This is appropriate for GAUGE metrics, but not for DELTA and CUMULATIVE metrics, which cover a span of time.",
|
||||
"id": "TimeInterval",
|
||||
"properties": {
|
||||
"endTime": {
|
||||
|
@ -3152,7 +3232,7 @@
|
|||
"type": "array"
|
||||
},
|
||||
"displayName": {
|
||||
"description": "A human-friendly name for the uptime check configuration. The display name should be unique within a Stackdriver Account in order to make it easier to identify; however, uniqueness is not enforced. Required.",
|
||||
"description": "A human-friendly name for the uptime check configuration. The display name should be unique within a Stackdriver Workspace in order to make it easier to identify; however, uniqueness is not enforced. Required.",
|
||||
"type": "string"
|
||||
},
|
||||
"httpCheck": {
|
||||
|
@ -3160,14 +3240,14 @@
|
|||
"description": "Contains information needed to make an HTTP or HTTPS check."
|
||||
},
|
||||
"internalCheckers": {
|
||||
"description": "The internal checkers that this check will egress from. If is_internal is true and this list is empty, the check will egress from all InternalCheckers configured for the project that owns this CheckConfig.",
|
||||
"description": "The internal checkers that this check will egress from. If is_internal is true and this list is empty, the check will egress from all the InternalCheckers configured for the project that owns this CheckConfig.",
|
||||
"items": {
|
||||
"$ref": "InternalChecker"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"isInternal": {
|
||||
"description": "Denotes whether this is a check that egresses from InternalCheckers.",
|
||||
"description": "If this is true, then checks are made only from the 'internal_checkers'. If it is false, then checks are made only from the 'selected_regions'. It is an error to provide 'selected_regions' when is_internal is true, or to provide 'internal_checkers' when is_internal is false.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"monitoredResource": {
|
||||
|
@ -3188,7 +3268,7 @@
|
|||
"description": "The group resource associated with the configuration."
|
||||
},
|
||||
"selectedRegions": {
|
||||
"description": "The list of regions from which the check will be run. If this field is specified, enough regions to include a minimum of 3 locations must be provided, or an error message is returned. Not specifying this field will result in uptime checks running from all regions.",
|
||||
"description": "The list of regions from which the check will be run. Some regions contain one location, and others contain more than one. If this field is specified, enough regions to include a minimum of 3 locations must be provided, or an error message is returned. Not specifying this field will result in uptime checks running from all regions.",
|
||||
"enumDescriptions": [
|
||||
"Default value if no region is specified. Will result in uptime checks running from all regions.",
|
||||
"Allows checks to run from locations within the United States of America.",
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -7,8 +7,6 @@ go_library(
|
|||
importpath = "google.golang.org/api/pubsub/v1",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//vendor/golang.org/x/net/context:go_default_library",
|
||||
"//vendor/golang.org/x/net/context/ctxhttp:go_default_library",
|
||||
"//vendor/google.golang.org/api/gensupport:go_default_library",
|
||||
"//vendor/google.golang.org/api/googleapi:go_default_library",
|
||||
],
|
||||
|
|
|
@ -111,7 +111,7 @@
|
|||
"snapshots": {
|
||||
"methods": {
|
||||
"create": {
|
||||
"description": "Creates a snapshot from the requested subscription.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eALPHA:\u003c/b\u003e This feature is part of an alpha release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.\nIf the snapshot already exists, returns `ALREADY_EXISTS`.\nIf the requested subscription doesn't exist, returns `NOT_FOUND`.\nIf the backlog in the subscription is too old -- and the resulting snapshot\nwould expire in less than 1 hour -- then `FAILED_PRECONDITION` is returned.\nSee also the `Snapshot.expire_time` field. If the name is not provided in\nthe request, the server will assign a random\nname for this snapshot on the same project as the subscription, conforming\nto the [resource name format](https://cloud.google.com/pubsub/docs/overview#names).\nThe generated\nname is populated in the returned Snapshot object. Note that for REST API\nrequests, you must specify a name in the request.",
|
||||
"description": "Creates a snapshot from the requested subscription. Snapshots are used in\n\u003ca href=\"https://cloud.google.com/pubsub/docs/replay-overview\"\u003eSeek\u003c/a\u003e\noperations, which allow\nyou to manage message acknowledgments in bulk. That is, you can set the\nacknowledgment state of messages in an existing subscription to the state\ncaptured by a snapshot.\n\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eBETA:\u003c/b\u003e This feature is part of a beta release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.\u003cbr\u003e\u003cbr\u003e\nIf the snapshot already exists, returns `ALREADY_EXISTS`.\nIf the requested subscription doesn't exist, returns `NOT_FOUND`.\nIf the backlog in the subscription is too old -- and the resulting snapshot\nwould expire in less than 1 hour -- then `FAILED_PRECONDITION` is returned.\nSee also the `Snapshot.expire_time` field. If the name is not provided in\nthe request, the server will assign a random\nname for this snapshot on the same project as the subscription, conforming\nto the\n[resource name format](https://cloud.google.com/pubsub/docs/overview#names).\nThe generated name is populated in the returned Snapshot object. Note that\nfor REST API requests, you must specify a name in the request.",
|
||||
"flatPath": "v1/projects/{projectsId}/snapshots/{snapshotsId}",
|
||||
"httpMethod": "PUT",
|
||||
"id": "pubsub.projects.snapshots.create",
|
||||
|
@ -120,7 +120,7 @@
|
|||
],
|
||||
"parameters": {
|
||||
"name": {
|
||||
"description": "Optional user-provided name for this snapshot.\nIf the name is not provided in the request, the server will assign a random\nname for this snapshot on the same project as the subscription.\nNote that for REST API requests, you must specify a name.\nFormat is `projects/{project}/snapshots/{snap}`.",
|
||||
"description": "Optional user-provided name for this snapshot.\nIf the name is not provided in the request, the server will assign a random\nname for this snapshot on the same project as the subscription.\nNote that for REST API requests, you must specify a name. See the\n\u003ca href=\"https://cloud.google.com/pubsub/docs/admin#resource_names\"\u003e\nresource name rules\u003c/a\u003e.\nFormat is `projects/{project}/snapshots/{snap}`.",
|
||||
"location": "path",
|
||||
"pattern": "^projects/[^/]+/snapshots/[^/]+$",
|
||||
"required": true,
|
||||
|
@ -140,7 +140,7 @@
|
|||
]
|
||||
},
|
||||
"delete": {
|
||||
"description": "Removes an existing snapshot. \u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eALPHA:\u003c/b\u003e This feature is part of an alpha release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.\nWhen the snapshot is deleted, all messages retained in the snapshot\nare immediately dropped. After a snapshot is deleted, a new one may be\ncreated with the same name, but the new one has no association with the old\nsnapshot or its subscription, unless the same subscription is specified.",
|
||||
"description": "Removes an existing snapshot. Snapshots are used in\n\u003ca href=\"https://cloud.google.com/pubsub/docs/replay-overview\"\u003eSeek\u003c/a\u003e\noperations, which allow\nyou to manage message acknowledgments in bulk. That is, you can set the\nacknowledgment state of messages in an existing subscription to the state\ncaptured by a snapshot.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eBETA:\u003c/b\u003e This feature is part of a beta release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.\nWhen the snapshot is deleted, all messages retained in the snapshot\nare immediately dropped. After a snapshot is deleted, a new one may be\ncreated with the same name, but the new one has no association with the old\nsnapshot or its subscription, unless the same subscription is specified.",
|
||||
"flatPath": "v1/projects/{projectsId}/snapshots/{snapshotsId}",
|
||||
"httpMethod": "DELETE",
|
||||
"id": "pubsub.projects.snapshots.delete",
|
||||
|
@ -166,7 +166,7 @@
|
|||
]
|
||||
},
|
||||
"get": {
|
||||
"description": "Gets the configuration details of a snapshot.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eALPHA:\u003c/b\u003e This feature is part of an alpha release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.",
|
||||
"description": "Gets the configuration details of a snapshot. Snapshots are used in\n\u003ca href=\"https://cloud.google.com/pubsub/docs/replay-overview\"\u003eSeek\u003c/a\u003e\noperations, which allow you to manage message acknowledgments in bulk. That\nis, you can set the acknowledgment state of messages in an existing\nsubscription to the state captured by a snapshot.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eBETA:\u003c/b\u003e This feature is part of a beta release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.",
|
||||
"flatPath": "v1/projects/{projectsId}/snapshots/{snapshotsId}",
|
||||
"httpMethod": "GET",
|
||||
"id": "pubsub.projects.snapshots.get",
|
||||
|
@ -218,7 +218,7 @@
|
|||
]
|
||||
},
|
||||
"list": {
|
||||
"description": "Lists the existing snapshots.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eALPHA:\u003c/b\u003e This feature is part of an alpha release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.",
|
||||
"description": "Lists the existing snapshots. Snapshots are used in\n\u003ca href=\"https://cloud.google.com/pubsub/docs/replay-overview\"\u003eSeek\u003c/a\u003e\noperations, which allow\nyou to manage message acknowledgments in bulk. That is, you can set the\nacknowledgment state of messages in an existing subscription to the state\ncaptured by a snapshot.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eBETA:\u003c/b\u003e This feature is part of a beta release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.",
|
||||
"flatPath": "v1/projects/{projectsId}/snapshots",
|
||||
"httpMethod": "GET",
|
||||
"id": "pubsub.projects.snapshots.list",
|
||||
|
@ -238,7 +238,7 @@
|
|||
"type": "string"
|
||||
},
|
||||
"project": {
|
||||
"description": "The name of the cloud project that snapshots belong to.\nFormat is `projects/{project}`.",
|
||||
"description": "The name of the project in which to list snapshots.\nFormat is `projects/{project-id}`.",
|
||||
"location": "path",
|
||||
"pattern": "^projects/[^/]+$",
|
||||
"required": true,
|
||||
|
@ -255,7 +255,7 @@
|
|||
]
|
||||
},
|
||||
"patch": {
|
||||
"description": "Updates an existing snapshot.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eALPHA:\u003c/b\u003e This feature is part of an alpha release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.\nNote that certain properties of a snapshot are not modifiable.",
|
||||
"description": "Updates an existing snapshot. Snapshots are used in\n\u003ca href=\"https://cloud.google.com/pubsub/docs/replay-overview\"\u003eSeek\u003c/a\u003e\noperations, which allow\nyou to manage message acknowledgments in bulk. That is, you can set the\nacknowledgment state of messages in an existing subscription to the state\ncaptured by a snapshot.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eBETA:\u003c/b\u003e This feature is part of a beta release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.\nNote that certain properties of a snapshot are not modifiable.",
|
||||
"flatPath": "v1/projects/{projectsId}/snapshots/{snapshotsId}",
|
||||
"httpMethod": "PATCH",
|
||||
"id": "pubsub.projects.snapshots.patch",
|
||||
|
@ -375,7 +375,7 @@
|
|||
]
|
||||
},
|
||||
"create": {
|
||||
"description": "Creates a subscription to a given topic. See the\n\u003ca href=\"/pubsub/docs/admin#resource_names\"\u003e resource name rules\u003c/a\u003e.\nIf the subscription already exists, returns `ALREADY_EXISTS`.\nIf the corresponding topic doesn't exist, returns `NOT_FOUND`.\n\nIf the name is not provided in the request, the server will assign a random\nname for this subscription on the same project as the topic, conforming\nto the\n[resource name format](https://cloud.google.com/pubsub/docs/overview#names).\nThe generated name is populated in the returned Subscription object.\nNote that for REST API requests, you must specify a name in the request.",
|
||||
"description": "Creates a subscription to a given topic. See the\n\u003ca href=\"https://cloud.google.com/pubsub/docs/admin#resource_names\"\u003e\nresource name rules\u003c/a\u003e.\nIf the subscription already exists, returns `ALREADY_EXISTS`.\nIf the corresponding topic doesn't exist, returns `NOT_FOUND`.\n\nIf the name is not provided in the request, the server will assign a random\nname for this subscription on the same project as the topic, conforming\nto the\n[resource name format](https://cloud.google.com/pubsub/docs/overview#names).\nThe generated name is populated in the returned Subscription object.\nNote that for REST API requests, you must specify a name in the request.",
|
||||
"flatPath": "v1/projects/{projectsId}/subscriptions/{subscriptionsId}",
|
||||
"httpMethod": "PUT",
|
||||
"id": "pubsub.projects.subscriptions.create",
|
||||
|
@ -502,7 +502,7 @@
|
|||
"type": "string"
|
||||
},
|
||||
"project": {
|
||||
"description": "The name of the cloud project that subscriptions belong to.\nFormat is `projects/{project}`.",
|
||||
"description": "The name of the project in which to list subscriptions.\nFormat is `projects/{project-id}`.",
|
||||
"location": "path",
|
||||
"pattern": "^projects/[^/]+$",
|
||||
"required": true,
|
||||
|
@ -606,7 +606,7 @@
|
|||
]
|
||||
},
|
||||
"pull": {
|
||||
"description": "Pulls messages from the server. Returns an empty list if there are no\nmessages available in the backlog. The server may return `UNAVAILABLE` if\nthere are too many concurrent pull requests pending for the given\nsubscription.",
|
||||
"description": "Pulls messages from the server. The server may return `UNAVAILABLE` if\nthere are too many concurrent pull requests pending for the given\nsubscription.",
|
||||
"flatPath": "v1/projects/{projectsId}/subscriptions/{subscriptionsId}:pull",
|
||||
"httpMethod": "POST",
|
||||
"id": "pubsub.projects.subscriptions.pull",
|
||||
|
@ -635,7 +635,7 @@
|
|||
]
|
||||
},
|
||||
"seek": {
|
||||
"description": "Seeks an existing subscription to a point in time or to a given snapshot,\nwhichever is provided in the request.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eALPHA:\u003c/b\u003e This feature is part of an alpha release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.",
|
||||
"description": "Seeks an existing subscription to a point in time or to a given snapshot,\nwhichever is provided in the request. Snapshots are used in\n\u003ca href=\"https://cloud.google.com/pubsub/docs/replay-overview\"\u003eSeek\u003c/a\u003e\noperations, which allow\nyou to manage message acknowledgments in bulk. That is, you can set the\nacknowledgment state of messages in an existing subscription to the state\ncaptured by a snapshot. Note that both the subscription and the snapshot\nmust be on the same topic.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eBETA:\u003c/b\u003e This feature is part of a beta release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.",
|
||||
"flatPath": "v1/projects/{projectsId}/subscriptions/{subscriptionsId}:seek",
|
||||
"httpMethod": "POST",
|
||||
"id": "pubsub.projects.subscriptions.seek",
|
||||
|
@ -726,7 +726,7 @@
|
|||
"topics": {
|
||||
"methods": {
|
||||
"create": {
|
||||
"description": "Creates the given topic with the given name. See the\n\u003ca href=\"/pubsub/docs/admin#resource_names\"\u003e resource name rules\u003c/a\u003e.",
|
||||
"description": "Creates the given topic with the given name. See the\n\u003ca href=\"https://cloud.google.com/pubsub/docs/admin#resource_names\"\u003e\nresource name rules\u003c/a\u003e.",
|
||||
"flatPath": "v1/projects/{projectsId}/topics/{topicsId}",
|
||||
"httpMethod": "PUT",
|
||||
"id": "pubsub.projects.topics.create",
|
||||
|
@ -853,7 +853,7 @@
|
|||
"type": "string"
|
||||
},
|
||||
"project": {
|
||||
"description": "The name of the cloud project that topics belong to.\nFormat is `projects/{project}`.",
|
||||
"description": "The name of the project in which to list topics.\nFormat is `projects/{project-id}`.",
|
||||
"location": "path",
|
||||
"pattern": "^projects/[^/]+$",
|
||||
"required": true,
|
||||
|
@ -869,8 +869,37 @@
|
|||
"https://www.googleapis.com/auth/pubsub"
|
||||
]
|
||||
},
|
||||
"patch": {
|
||||
"description": "Updates an existing topic. Note that certain properties of a\ntopic are not modifiable.",
|
||||
"flatPath": "v1/projects/{projectsId}/topics/{topicsId}",
|
||||
"httpMethod": "PATCH",
|
||||
"id": "pubsub.projects.topics.patch",
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"parameters": {
|
||||
"name": {
|
||||
"description": "The name of the topic. It must have the format\n`\"projects/{project}/topics/{topic}\"`. `{topic}` must start with a letter,\nand contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),\nunderscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent\nsigns (`%`). It must be between 3 and 255 characters in length, and it\nmust not start with `\"goog\"`.",
|
||||
"location": "path",
|
||||
"pattern": "^projects/[^/]+/topics/[^/]+$",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v1/{+name}",
|
||||
"request": {
|
||||
"$ref": "UpdateTopicRequest"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Topic"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/pubsub"
|
||||
]
|
||||
},
|
||||
"publish": {
|
||||
"description": "Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic\ndoes not exist. The message payload must not be empty; it must contain\n either a non-empty data field, or at least one attribute.",
|
||||
"description": "Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic\ndoes not exist.",
|
||||
"flatPath": "v1/projects/{projectsId}/topics/{topicsId}:publish",
|
||||
"httpMethod": "POST",
|
||||
"id": "pubsub.projects.topics.publish",
|
||||
|
@ -961,7 +990,7 @@
|
|||
"snapshots": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"description": "Lists the names of the snapshots on this topic.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eALPHA:\u003c/b\u003e This feature is part of an alpha release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.",
|
||||
"description": "Lists the names of the snapshots on this topic. Snapshots are used in\n\u003ca href=\"https://cloud.google.com/pubsub/docs/replay-overview\"\u003eSeek\u003c/a\u003e\noperations, which allow\nyou to manage message acknowledgments in bulk. That is, you can set the\nacknowledgment state of messages in an existing subscription to the state\ncaptured by a snapshot.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eBETA:\u003c/b\u003e This feature is part of a beta release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.",
|
||||
"flatPath": "v1/projects/{projectsId}/topics/{topicsId}/snapshots",
|
||||
"httpMethod": "GET",
|
||||
"id": "pubsub.projects.topics.snapshots.list",
|
||||
|
@ -1045,7 +1074,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"revision": "20180604",
|
||||
"revision": "20181213",
|
||||
"rootUrl": "https://pubsub.googleapis.com/",
|
||||
"schemas": {
|
||||
"AcknowledgeRequest": {
|
||||
|
@ -1066,6 +1095,10 @@
|
|||
"description": "Associates `members` with a `role`.",
|
||||
"id": "Binding",
|
||||
"properties": {
|
||||
"condition": {
|
||||
"$ref": "Expr",
|
||||
"description": "Unimplemented. The condition that is associated with this binding.\nNOTE: an unsatisfied condition will not allow user access via current\nbinding. Different bindings, including their conditions, are examined\nindependently."
|
||||
},
|
||||
"members": {
|
||||
"description": "Specifies the identities requesting access for a Cloud Platform resource.\n`members` can have the following values:\n\n* `allUsers`: A special identifier that represents anyone who is\n on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special identifier that represents anyone\n who is authenticated with a Google account or a service account.\n\n* `user:{emailid}`: An email address that represents a specific Google\n account. For example, `alice@gmail.com` .\n\n\n* `serviceAccount:{emailid}`: An email address that represents a service\n account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{emailid}`: An email address that represents a Google group.\n For example, `admins@example.com`.\n\n\n* `domain:{domain}`: A Google Apps domain name that represents all the\n users of that domain. For example, `google.com` or `example.com`.\n\n",
|
||||
"items": {
|
||||
|
@ -1074,16 +1107,23 @@
|
|||
"type": "array"
|
||||
},
|
||||
"role": {
|
||||
"description": "Role that is assigned to `members`.\nFor example, `roles/viewer`, `roles/editor`, or `roles/owner`.\nRequired",
|
||||
"description": "Role that is assigned to `members`.\nFor example, `roles/viewer`, `roles/editor`, or `roles/owner`.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"CreateSnapshotRequest": {
|
||||
"description": "Request for the `CreateSnapshot` method.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eALPHA:\u003c/b\u003e This feature is part of an alpha release. This API might be changed in\nbackward-incompatible ways and is not recommended for production use.\nIt is not subject to any SLA or deprecation policy.",
|
||||
"description": "Request for the `CreateSnapshot` method.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eBETA:\u003c/b\u003e This feature is part of a beta release. This API might be changed in\nbackward-incompatible ways and is not recommended for production use.\nIt is not subject to any SLA or deprecation policy.",
|
||||
"id": "CreateSnapshotRequest",
|
||||
"properties": {
|
||||
"labels": {
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "See \u003ca href=\"https://cloud.google.com/pubsub/docs/labels\"\u003e Creating and\nmanaging labels\u003c/a\u003e.",
|
||||
"type": "object"
|
||||
},
|
||||
"subscription": {
|
||||
"description": "The subscription whose backlog the snapshot retains.\nSpecifically, the created snapshot is guaranteed to retain:\n (a) The existing backlog on the subscription. More precisely, this is\n defined as the messages in the subscription's backlog that are\n unacknowledged upon the successful completion of the\n `CreateSnapshot` request; as well as:\n (b) Any messages published to the subscription's topic following the\n successful completion of the CreateSnapshot request.\nFormat is `projects/{project}/subscriptions/{sub}`.",
|
||||
"type": "string"
|
||||
|
@ -1097,8 +1137,43 @@
|
|||
"properties": {},
|
||||
"type": "object"
|
||||
},
|
||||
"ExpirationPolicy": {
|
||||
"description": "A policy that specifies the conditions for resource expiration (i.e.,\nautomatic resource deletion).",
|
||||
"id": "ExpirationPolicy",
|
||||
"properties": {
|
||||
"ttl": {
|
||||
"description": "Specifies the \"time-to-live\" duration for an associated resource. The\nresource expires if it is not active for a period of `ttl`. The definition\nof \"activity\" depends on the type of the associated resource. The minimum\nand maximum allowed values for `ttl` depend on the type of the associated\nresource, as well. If `ttl` is not set, the associated resource never\nexpires.",
|
||||
"format": "google-duration",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Expr": {
|
||||
"description": "Represents an expression text. Example:\n\n title: \"User account presence\"\n description: \"Determines whether the request has a user account\"\n expression: \"size(request.user) \u003e 0\"",
|
||||
"id": "Expr",
|
||||
"properties": {
|
||||
"description": {
|
||||
"description": "An optional description of the expression. This is a longer text which\ndescribes the expression, e.g. when hovered over it in a UI.",
|
||||
"type": "string"
|
||||
},
|
||||
"expression": {
|
||||
"description": "Textual representation of an expression in\nCommon Expression Language syntax.\n\nThe application context of the containing message determines which\nwell-known feature set of CEL is supported.",
|
||||
"type": "string"
|
||||
},
|
||||
"location": {
|
||||
"description": "An optional string indicating the location of the expression for error\nreporting, e.g. a file name and a position in the file.",
|
||||
"type": "string"
|
||||
},
|
||||
"title": {
|
||||
"description": "An optional title for the expression, i.e. a short string describing\nits purpose. This can be used e.g. in UIs which allow to enter the\nexpression.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"ListSnapshotsResponse": {
|
||||
"description": "Response for the `ListSnapshots` method.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eALPHA:\u003c/b\u003e This feature is part of an alpha release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.",
|
||||
"description": "Response for the `ListSnapshots` method.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eBETA:\u003c/b\u003e This feature is part of a beta release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.",
|
||||
"id": "ListSnapshotsResponse",
|
||||
"properties": {
|
||||
"nextPageToken": {
|
||||
|
@ -1134,7 +1209,7 @@
|
|||
"type": "object"
|
||||
},
|
||||
"ListTopicSnapshotsResponse": {
|
||||
"description": "Response for the `ListTopicSnapshots` method.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eALPHA:\u003c/b\u003e This feature is part of an alpha release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.",
|
||||
"description": "Response for the `ListTopicSnapshots` method.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eBETA:\u003c/b\u003e This feature is part of a beta release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.",
|
||||
"id": "ListTopicSnapshotsResponse",
|
||||
"properties": {
|
||||
"nextPageToken": {
|
||||
|
@ -1192,7 +1267,7 @@
|
|||
"id": "ModifyAckDeadlineRequest",
|
||||
"properties": {
|
||||
"ackDeadlineSeconds": {
|
||||
"description": "The new ack deadline with respect to the time this request was sent to\nthe Pub/Sub system. For example, if the value is 10, the new\nack deadline will expire 10 seconds after the `ModifyAckDeadline` call\nwas made. Specifying zero may immediately make the message available for\nanother pull request.\nThe minimum deadline you can specify is 0 seconds.\nThe maximum deadline you can specify is 600 seconds (10 minutes).",
|
||||
"description": "The new ack deadline with respect to the time this request was sent to\nthe Pub/Sub system. For example, if the value is 10, the new\nack deadline will expire 10 seconds after the `ModifyAckDeadline` call\nwas made. Specifying zero might immediately make the message available for\ndelivery to another subscriber client. This typically results in an\nincrease in the rate of message redeliveries (that is, duplicates).\nThe minimum deadline you can specify is 0 seconds.\nThe maximum deadline you can specify is 600 seconds (10 minutes).",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
|
@ -1270,7 +1345,7 @@
|
|||
"type": "object"
|
||||
},
|
||||
"PubsubMessage": {
|
||||
"description": "A message data and its attributes. The message payload must not be empty;\nit must contain either a non-empty data field, or at least one attribute.",
|
||||
"description": "A message that is published by publishers and consumed by subscribers. The\nmessage must contain either a non-empty data field or at least one attribute.\nNote that client libraries represent this object differently\ndepending on the language. See the corresponding\n\u003ca href=\"https://cloud.google.com/pubsub/docs/reference/libraries\"\u003eclient\nlibrary documentation\u003c/a\u003e for more information. See\n\u003ca href=\"https://cloud.google.com/pubsub/quotas\"\u003eQuotas and limits\u003c/a\u003e\nfor more information about message limits.",
|
||||
"id": "PubsubMessage",
|
||||
"properties": {
|
||||
"attributes": {
|
||||
|
@ -1281,7 +1356,7 @@
|
|||
"type": "object"
|
||||
},
|
||||
"data": {
|
||||
"description": "The message payload.",
|
||||
"description": "The message data field. If this field is empty, the message must contain\nat least one attribute.",
|
||||
"format": "byte",
|
||||
"type": "string"
|
||||
},
|
||||
|
@ -1307,7 +1382,7 @@
|
|||
"type": "integer"
|
||||
},
|
||||
"returnImmediately": {
|
||||
"description": "If this field set to true, the system will respond immediately even if\nit there are no messages available to return in the `Pull` response.\nOtherwise, the system may wait (for a bounded amount of time) until at\nleast one message is available, rather than returning no messages. The\nclient may cancel the request if it does not wish to wait any longer for\nthe response.",
|
||||
"description": "If this field set to true, the system will respond immediately even if\nit there are no messages available to return in the `Pull` response.\nOtherwise, the system may wait (for a bounded amount of time) until at\nleast one message is available, rather than returning no messages.",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
|
@ -1318,7 +1393,7 @@
|
|||
"id": "PullResponse",
|
||||
"properties": {
|
||||
"receivedMessages": {
|
||||
"description": "Received Pub/Sub messages. The Pub/Sub system will return zero messages if\nthere are no more available in the backlog. The Pub/Sub system may return\nfewer than the `maxMessages` requested even if there are more messages\navailable in the backlog.",
|
||||
"description": "Received Pub/Sub messages. The list will be empty if there are no more\nmessages available in the backlog. For JSON, the response can be entirely\nempty. The Pub/Sub system may return fewer than the `maxMessages` requested\neven if there are more messages available in the backlog.",
|
||||
"items": {
|
||||
"$ref": "ReceivedMessage"
|
||||
},
|
||||
|
@ -1361,7 +1436,7 @@
|
|||
"type": "object"
|
||||
},
|
||||
"SeekRequest": {
|
||||
"description": "Request for the `Seek` method.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eALPHA:\u003c/b\u003e This feature is part of an alpha release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.",
|
||||
"description": "Request for the `Seek` method. \u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eBETA:\u003c/b\u003e This feature is part of a beta release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.",
|
||||
"id": "SeekRequest",
|
||||
"properties": {
|
||||
"snapshot": {
|
||||
|
@ -1377,6 +1452,7 @@
|
|||
"type": "object"
|
||||
},
|
||||
"SeekResponse": {
|
||||
"description": "Response for the `Seek` method (this response is empty).",
|
||||
"id": "SeekResponse",
|
||||
"properties": {},
|
||||
"type": "object"
|
||||
|
@ -1393,7 +1469,7 @@
|
|||
"type": "object"
|
||||
},
|
||||
"Snapshot": {
|
||||
"description": "A snapshot resource.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eALPHA:\u003c/b\u003e This feature is part of an alpha release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.",
|
||||
"description": "A snapshot resource. Snapshots are used in\n\u003ca href=\"https://cloud.google.com/pubsub/docs/replay-overview\"\u003eSeek\u003c/a\u003e\noperations, which allow\nyou to manage message acknowledgments in bulk. That is, you can set the\nacknowledgment state of messages in an existing subscription to the state\ncaptured by a snapshot.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eBETA:\u003c/b\u003e This feature is part of a beta release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.",
|
||||
"id": "Snapshot",
|
||||
"properties": {
|
||||
"expireTime": {
|
||||
|
@ -1401,6 +1477,13 @@
|
|||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
},
|
||||
"labels": {
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "See \u003ca href=\"https://cloud.google.com/pubsub/docs/labels\"\u003e Creating and\nmanaging labels\u003c/a\u003e.",
|
||||
"type": "object"
|
||||
},
|
||||
"name": {
|
||||
"description": "The name of the snapshot.",
|
||||
"type": "string"
|
||||
|
@ -1417,12 +1500,23 @@
|
|||
"id": "Subscription",
|
||||
"properties": {
|
||||
"ackDeadlineSeconds": {
|
||||
"description": "This value is the maximum time after a subscriber receives a message\nbefore the subscriber should acknowledge the message. After message\ndelivery but before the ack deadline expires and before the message is\nacknowledged, it is an outstanding message and will not be delivered\nagain during that time (on a best-effort basis).\n\nFor pull subscriptions, this value is used as the initial value for the ack\ndeadline. To override this value for a given message, call\n`ModifyAckDeadline` with the corresponding `ack_id` if using\nnon-streaming pull or send the `ack_id` in a\n`StreamingModifyAckDeadlineRequest` if using streaming pull.\nThe minimum custom deadline you can specify is 10 seconds.\nThe maximum custom deadline you can specify is 600 seconds (10 minutes).\nIf this parameter is 0, a default value of 10 seconds is used.\n\nFor push delivery, this value is also used to set the request timeout for\nthe call to the push endpoint.\n\nIf the subscriber never acknowledges the message, the Pub/Sub\nsystem will eventually redeliver the message.",
|
||||
"description": "The approximate amount of time (on a best-effort basis) Pub/Sub waits for\nthe subscriber to acknowledge receipt before resending the message. In the\ninterval after the message is delivered and before it is acknowledged, it\nis considered to be \u003ci\u003eoutstanding\u003c/i\u003e. During that time period, the\nmessage will not be redelivered (on a best-effort basis).\n\nFor pull subscriptions, this value is used as the initial value for the ack\ndeadline. To override this value for a given message, call\n`ModifyAckDeadline` with the corresponding `ack_id` if using\nnon-streaming pull or send the `ack_id` in a\n`StreamingModifyAckDeadlineRequest` if using streaming pull.\nThe minimum custom deadline you can specify is 10 seconds.\nThe maximum custom deadline you can specify is 600 seconds (10 minutes).\nIf this parameter is 0, a default value of 10 seconds is used.\n\nFor push delivery, this value is also used to set the request timeout for\nthe call to the push endpoint.\n\nIf the subscriber never acknowledges the message, the Pub/Sub\nsystem will eventually redeliver the message.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
"expirationPolicy": {
|
||||
"$ref": "ExpirationPolicy",
|
||||
"description": "A policy that specifies the conditions for this subscription's expiration.\nA subscription is considered active as long as any connected subscriber is\nsuccessfully consuming messages from the subscription or is issuing\noperations on the subscription. If `expiration_policy` is not set, a\n*default policy* with `ttl` of 31 days will be used. The minimum allowed\nvalue for `expiration_policy.ttl` is 1 day.\n\u003cb\u003eBETA:\u003c/b\u003e This feature is part of a beta release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy."
|
||||
},
|
||||
"labels": {
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "See \u003ca href=\"https://cloud.google.com/pubsub/docs/labels\"\u003e Creating and\nmanaging labels\u003c/a\u003e.",
|
||||
"type": "object"
|
||||
},
|
||||
"messageRetentionDuration": {
|
||||
"description": "How long to retain unacknowledged messages in the subscription's backlog,\nfrom the moment a message is published.\nIf `retain_acked_messages` is true, then this also configures the retention\nof acknowledged messages, and thus configures how far back in time a `Seek`\ncan be done. Defaults to 7 days. Cannot be more than 7 days or less than 10\nminutes.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eALPHA:\u003c/b\u003e This feature is part of an alpha release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.",
|
||||
"description": "How long to retain unacknowledged messages in the subscription's backlog,\nfrom the moment a message is published.\nIf `retain_acked_messages` is true, then this also configures the retention\nof acknowledged messages, and thus configures how far back in time a `Seek`\ncan be done. Defaults to 7 days. Cannot be more than 7 days or less than 10\nminutes.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eBETA:\u003c/b\u003e This feature is part of a beta release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.",
|
||||
"format": "google-duration",
|
||||
"type": "string"
|
||||
},
|
||||
|
@ -1435,7 +1529,7 @@
|
|||
"description": "If push delivery is used with this subscription, this field is\nused to configure it. An empty `pushConfig` signifies that the subscriber\nwill pull and ack messages using API methods."
|
||||
},
|
||||
"retainAckedMessages": {
|
||||
"description": "Indicates whether to retain acknowledged messages. If true, then\nmessages are not expunged from the subscription's backlog, even if they are\nacknowledged, until they fall out of the `message_retention_duration`\nwindow.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eALPHA:\u003c/b\u003e This feature is part of an alpha release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.",
|
||||
"description": "Indicates whether to retain acknowledged messages. If true, then\nmessages are not expunged from the subscription's backlog, even if they are\nacknowledged, until they fall out of the `message_retention_duration`\nwindow. This must be true if you would like to\n\u003ca href=\"https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time\"\u003e\nSeek to a timestamp\u003c/a\u003e.\n\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eBETA:\u003c/b\u003e This feature is part of a beta release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"topic": {
|
||||
|
@ -1477,6 +1571,13 @@
|
|||
"description": "A topic resource.",
|
||||
"id": "Topic",
|
||||
"properties": {
|
||||
"labels": {
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "See \u003ca href=\"https://cloud.google.com/pubsub/docs/labels\"\u003e Creating and\nmanaging labels\u003c/a\u003e.",
|
||||
"type": "object"
|
||||
},
|
||||
"name": {
|
||||
"description": "The name of the topic. It must have the format\n`\"projects/{project}/topics/{topic}\"`. `{topic}` must start with a letter,\nand contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),\nunderscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent\nsigns (`%`). It must be between 3 and 255 characters in length, and it\nmust not start with `\"goog\"`.",
|
||||
"type": "string"
|
||||
|
@ -1485,7 +1586,7 @@
|
|||
"type": "object"
|
||||
},
|
||||
"UpdateSnapshotRequest": {
|
||||
"description": "Request for the UpdateSnapshot method.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eALPHA:\u003c/b\u003e This feature is part of an alpha release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.",
|
||||
"description": "Request for the UpdateSnapshot method.\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eBETA:\u003c/b\u003e This feature is part of a beta release. This API might be\nchanged in backward-incompatible ways and is not recommended for production\nuse. It is not subject to any SLA or deprecation policy.",
|
||||
"id": "UpdateSnapshotRequest",
|
||||
"properties": {
|
||||
"snapshot": {
|
||||
|
@ -1515,6 +1616,22 @@
|
|||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"UpdateTopicRequest": {
|
||||
"description": "Request for the UpdateTopic method.",
|
||||
"id": "UpdateTopicRequest",
|
||||
"properties": {
|
||||
"topic": {
|
||||
"$ref": "Topic",
|
||||
"description": "The updated topic object."
|
||||
},
|
||||
"updateMask": {
|
||||
"description": "Indicates which fields in the provided topic to update. Must be specified\nand non-empty. Note that if `update_mask` contains\n\"message_storage_policy\" then the new value will be determined based on the\npolicy configured at the project or organization level. The\n`message_storage_policy` must not be set in the `topic` provided above.",
|
||||
"format": "google-fieldmask",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"servicePath": "",
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -7,8 +7,6 @@ go_library(
|
|||
importpath = "google.golang.org/api/tpu/v1",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//vendor/golang.org/x/net/context:go_default_library",
|
||||
"//vendor/golang.org/x/net/context/ctxhttp:go_default_library",
|
||||
"//vendor/google.golang.org/api/gensupport:go_default_library",
|
||||
"//vendor/google.golang.org/api/googleapi:go_default_library",
|
||||
],
|
||||
|
|
|
@ -400,34 +400,6 @@
|
|||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
]
|
||||
},
|
||||
"reset": {
|
||||
"description": "Resets a node, which stops and starts the VM.",
|
||||
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:reset",
|
||||
"httpMethod": "POST",
|
||||
"id": "tpu.projects.locations.nodes.reset",
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"parameters": {
|
||||
"name": {
|
||||
"description": "The resource name.",
|
||||
"location": "path",
|
||||
"pattern": "^projects/[^/]+/locations/[^/]+/nodes/[^/]+$",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v1/{+name}:reset",
|
||||
"request": {
|
||||
"$ref": "ResetNodeRequest"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Operation"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
]
|
||||
},
|
||||
"start": {
|
||||
"description": "Starts a node.",
|
||||
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:start",
|
||||
|
@ -686,7 +658,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"revision": "20180601",
|
||||
"revision": "20181010",
|
||||
"rootUrl": "https://tpu.googleapis.com/",
|
||||
"schemas": {
|
||||
"AcceleratorType": {
|
||||
|
@ -760,6 +732,13 @@
|
|||
"$ref": "Node"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"unreachable": {
|
||||
"description": "Locations that could not be reached.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
|
@ -940,7 +919,9 @@
|
|||
"REPAIRING",
|
||||
"STOPPED",
|
||||
"STOPPING",
|
||||
"STARTING"
|
||||
"STARTING",
|
||||
"PREEMPTED",
|
||||
"TERMINATED"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"TPU node state is not known/set.",
|
||||
|
@ -952,7 +933,9 @@
|
|||
"TPU node is being repaired and may be unusable. Details can be\nfound in the `help_description` field.",
|
||||
"7 - Reserved. Was SUSPENDED.\nTPU node is stopped.",
|
||||
"TPU node is currently stopping.",
|
||||
"TPU node is currently starting."
|
||||
"TPU node is currently starting.",
|
||||
"TPU node has been preempted. Only applies to Preemptible TPU Nodes.",
|
||||
"TPU node has been terminated due to maintenance or has reached the end of\nits life cycle (for preemptible nodes)."
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
|
@ -1046,12 +1029,6 @@
|
|||
},
|
||||
"type": "object"
|
||||
},
|
||||
"ResetNodeRequest": {
|
||||
"description": "Request for ResetNode.",
|
||||
"id": "ResetNodeRequest",
|
||||
"properties": {},
|
||||
"type": "object"
|
||||
},
|
||||
"SchedulingConfig": {
|
||||
"id": "SchedulingConfig",
|
||||
"properties": {
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
// Copyright 2018 Google Inc. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// Code generated file. DO NOT EDIT.
|
||||
|
||||
// Package tpu provides access to the Cloud TPU API.
|
||||
//
|
||||
// See https://cloud.google.com/tpu/
|
||||
|
@ -11,18 +17,18 @@ package tpu
|
|||
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
context "golang.org/x/net/context"
|
||||
ctxhttp "golang.org/x/net/context/ctxhttp"
|
||||
gensupport "google.golang.org/api/gensupport"
|
||||
googleapi "google.golang.org/api/googleapi"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
gensupport "google.golang.org/api/gensupport"
|
||||
googleapi "google.golang.org/api/googleapi"
|
||||
)
|
||||
|
||||
// Always reference these packages, just in case the auto-generated code
|
||||
|
@ -38,7 +44,6 @@ var _ = googleapi.Version
|
|||
var _ = errors.New
|
||||
var _ = strings.Replace
|
||||
var _ = context.Canceled
|
||||
var _ = ctxhttp.Do
|
||||
|
||||
const apiId = "tpu:v1"
|
||||
const apiName = "tpu"
|
||||
|
@ -279,6 +284,9 @@ type ListNodesResponse struct {
|
|||
// Nodes: The listed nodes.
|
||||
Nodes []*Node `json:"nodes,omitempty"`
|
||||
|
||||
// Unreachable: Locations that could not be reached.
|
||||
Unreachable []string `json:"unreachable,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
|
@ -575,6 +583,11 @@ type Node struct {
|
|||
// TPU node is stopped.
|
||||
// "STOPPING" - TPU node is currently stopping.
|
||||
// "STARTING" - TPU node is currently starting.
|
||||
// "PREEMPTED" - TPU node has been preempted. Only applies to
|
||||
// Preemptible TPU Nodes.
|
||||
// "TERMINATED" - TPU node has been terminated due to maintenance or
|
||||
// has reached the end of
|
||||
// its life cycle (for preemptible nodes).
|
||||
State string `json:"state,omitempty"`
|
||||
|
||||
// TensorflowVersion: The version of Tensorflow running in the
|
||||
|
@ -769,10 +782,6 @@ func (s *ReimageNodeRequest) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// ResetNodeRequest: Request for ResetNode.
|
||||
type ResetNodeRequest struct {
|
||||
}
|
||||
|
||||
type SchedulingConfig struct {
|
||||
Preemptible bool `json:"preemptible,omitempty"`
|
||||
|
||||
|
@ -1026,9 +1035,13 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error)
|
|||
}
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("GET", urls, body)
|
||||
req, err := http.NewRequest("GET", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"name": c.name,
|
||||
|
@ -1187,9 +1200,13 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error
|
|||
}
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("GET", urls, body)
|
||||
req, err := http.NewRequest("GET", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"name": c.name,
|
||||
|
@ -1363,9 +1380,13 @@ func (c *ProjectsLocationsAcceleratorTypesGetCall) doRequest(alt string) (*http.
|
|||
}
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("GET", urls, body)
|
||||
req, err := http.NewRequest("GET", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"name": c.name,
|
||||
|
@ -1528,9 +1549,13 @@ func (c *ProjectsLocationsAcceleratorTypesListCall) doRequest(alt string) (*http
|
|||
}
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/acceleratorTypes")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("GET", urls, body)
|
||||
req, err := http.NewRequest("GET", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"parent": c.parent,
|
||||
|
@ -1709,9 +1734,13 @@ func (c *ProjectsLocationsNodesCreateCall) doRequest(alt string) (*http.Response
|
|||
}
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/nodes")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req, err := http.NewRequest("POST", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"parent": c.parent,
|
||||
|
@ -1842,9 +1871,13 @@ func (c *ProjectsLocationsNodesDeleteCall) doRequest(alt string) (*http.Response
|
|||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("DELETE", urls, body)
|
||||
req, err := http.NewRequest("DELETE", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"name": c.name,
|
||||
|
@ -1981,9 +2014,13 @@ func (c *ProjectsLocationsNodesGetCall) doRequest(alt string) (*http.Response, e
|
|||
}
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("GET", urls, body)
|
||||
req, err := http.NewRequest("GET", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"name": c.name,
|
||||
|
@ -2134,9 +2171,13 @@ func (c *ProjectsLocationsNodesListCall) doRequest(alt string) (*http.Response,
|
|||
}
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/nodes")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("GET", urls, body)
|
||||
req, err := http.NewRequest("GET", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"parent": c.parent,
|
||||
|
@ -2298,9 +2339,13 @@ func (c *ProjectsLocationsNodesReimageCall) doRequest(alt string) (*http.Respons
|
|||
}
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:reimage")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req, err := http.NewRequest("POST", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"name": c.name,
|
||||
|
@ -2376,141 +2421,6 @@ func (c *ProjectsLocationsNodesReimageCall) Do(opts ...googleapi.CallOption) (*O
|
|||
|
||||
}
|
||||
|
||||
// method id "tpu.projects.locations.nodes.reset":
|
||||
|
||||
type ProjectsLocationsNodesResetCall struct {
|
||||
s *Service
|
||||
name string
|
||||
resetnoderequest *ResetNodeRequest
|
||||
urlParams_ gensupport.URLParams
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Reset: Resets a node, which stops and starts the VM.
|
||||
func (r *ProjectsLocationsNodesService) Reset(name string, resetnoderequest *ResetNodeRequest) *ProjectsLocationsNodesResetCall {
|
||||
c := &ProjectsLocationsNodesResetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.name = name
|
||||
c.resetnoderequest = resetnoderequest
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
func (c *ProjectsLocationsNodesResetCall) Fields(s ...googleapi.Field) *ProjectsLocationsNodesResetCall {
|
||||
c.urlParams_.Set("fields", googleapi.CombineFields(s))
|
||||
return c
|
||||
}
|
||||
|
||||
// Context sets the context to be used in this call's Do method. Any
|
||||
// pending HTTP request will be aborted if the provided context is
|
||||
// canceled.
|
||||
func (c *ProjectsLocationsNodesResetCall) Context(ctx context.Context) *ProjectsLocationsNodesResetCall {
|
||||
c.ctx_ = ctx
|
||||
return c
|
||||
}
|
||||
|
||||
// Header returns an http.Header that can be modified by the caller to
|
||||
// add HTTP headers to the request.
|
||||
func (c *ProjectsLocationsNodesResetCall) Header() http.Header {
|
||||
if c.header_ == nil {
|
||||
c.header_ = make(http.Header)
|
||||
}
|
||||
return c.header_
|
||||
}
|
||||
|
||||
func (c *ProjectsLocationsNodesResetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
var body io.Reader = nil
|
||||
body, err := googleapi.WithoutDataWrapper.JSONReader(c.resetnoderequest)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:reset")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"name": c.name,
|
||||
})
|
||||
return gensupport.SendRequest(c.ctx_, c.s.client, req)
|
||||
}
|
||||
|
||||
// Do executes the "tpu.projects.locations.nodes.reset" call.
|
||||
// Exactly one of *Operation or error will be non-nil. Any non-2xx
|
||||
// status code is an error. Response headers are in either
|
||||
// *Operation.ServerResponse.Header or (if a response was returned at
|
||||
// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
|
||||
// to check whether the returned error was because
|
||||
// http.StatusNotModified was returned.
|
||||
func (c *ProjectsLocationsNodesResetCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
|
||||
gensupport.SetOptions(c.urlParams_, opts...)
|
||||
res, err := c.doRequest("json")
|
||||
if res != nil && res.StatusCode == http.StatusNotModified {
|
||||
if res.Body != nil {
|
||||
res.Body.Close()
|
||||
}
|
||||
return nil, &googleapi.Error{
|
||||
Code: res.StatusCode,
|
||||
Header: res.Header,
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer googleapi.CloseBody(res)
|
||||
if err := googleapi.CheckResponse(res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
ret := &Operation{
|
||||
ServerResponse: googleapi.ServerResponse{
|
||||
Header: res.Header,
|
||||
HTTPStatusCode: res.StatusCode,
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Resets a node, which stops and starts the VM.",
|
||||
// "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:reset",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "tpu.projects.locations.nodes.reset",
|
||||
// "parameterOrder": [
|
||||
// "name"
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "name": {
|
||||
// "description": "The resource name.",
|
||||
// "location": "path",
|
||||
// "pattern": "^projects/[^/]+/locations/[^/]+/nodes/[^/]+$",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// }
|
||||
// },
|
||||
// "path": "v1/{+name}:reset",
|
||||
// "request": {
|
||||
// "$ref": "ResetNodeRequest"
|
||||
// },
|
||||
// "response": {
|
||||
// "$ref": "Operation"
|
||||
// },
|
||||
// "scopes": [
|
||||
// "https://www.googleapis.com/auth/cloud-platform"
|
||||
// ]
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
// method id "tpu.projects.locations.nodes.start":
|
||||
|
||||
type ProjectsLocationsNodesStartCall struct {
|
||||
|
@ -2568,9 +2478,13 @@ func (c *ProjectsLocationsNodesStartCall) doRequest(alt string) (*http.Response,
|
|||
}
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:start")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req, err := http.NewRequest("POST", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"name": c.name,
|
||||
|
@ -2703,9 +2617,13 @@ func (c *ProjectsLocationsNodesStopCall) doRequest(alt string) (*http.Response,
|
|||
}
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:stop")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req, err := http.NewRequest("POST", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"name": c.name,
|
||||
|
@ -2848,9 +2766,13 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res
|
|||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req, err := http.NewRequest("POST", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"name": c.name,
|
||||
|
@ -2979,9 +2901,13 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res
|
|||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("DELETE", urls, body)
|
||||
req, err := http.NewRequest("DELETE", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"name": c.name,
|
||||
|
@ -3122,9 +3048,13 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon
|
|||
}
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("GET", urls, body)
|
||||
req, err := http.NewRequest("GET", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"name": c.name,
|
||||
|
@ -3298,9 +3228,13 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo
|
|||
}
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("GET", urls, body)
|
||||
req, err := http.NewRequest("GET", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"name": c.name,
|
||||
|
@ -3474,9 +3408,13 @@ func (c *ProjectsLocationsTensorflowVersionsGetCall) doRequest(alt string) (*htt
|
|||
}
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("GET", urls, body)
|
||||
req, err := http.NewRequest("GET", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"name": c.name,
|
||||
|
@ -3639,9 +3577,13 @@ func (c *ProjectsLocationsTensorflowVersionsListCall) doRequest(alt string) (*ht
|
|||
}
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/tensorflowVersions")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("GET", urls, body)
|
||||
req, err := http.NewRequest("GET", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"parent": c.parent,
|
||||
|
|
Loading…
Reference in New Issue